diff --git a/.github/workflows/maestro-changelog.yml b/.github/workflows/maestro-changelog.yml index 330ad82f10..2de99a009e 100644 --- a/.github/workflows/maestro-changelog.yml +++ b/.github/workflows/maestro-changelog.yml @@ -16,20 +16,20 @@ jobs: dotnet run https://github.com/$GITHUB_REPOSITORY/pull/${GITHUB_REF_NAME/\/*/} > changelog.txt 2>&1 # need to replace newlines with actual "\n" - rm -f changelog2.txt - echo "CHANGELOG_MESSAGE<> changelog2.txt - cat changelog.txt | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/\\n/g' >> changelog2.txt - echo EOF >> changelog2.txt - cat changelog2.txt + CHANGELOG_FILE=changelog2.txt + rm -f "$CHANGELOG_FILE" + cat changelog.txt | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/\\n/g' >> "$CHANGELOG_FILE" + cat "$CHANGELOG_FILE" - # export the changelog message - cat changelog2.txt >> $GITHUB_ENV + cp "$CHANGELOG_FILE" /tmp/changelog.txt - name: 'Add changelog' uses: actions/github-script@v6.3.3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | + const fs = require('fs'); + const changelog_message = fs.readFileSync('/tmp/changelog.txt', 'utf8'); // check if we've already added a changelog to this PR, and if so, update that comment, otherwise add a new comment var commentId = "" await github.paginate (github.rest.issues.listComments, @@ -48,13 +48,13 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, - body: '${{ env.CHANGELOG_MESSAGE }}' + body: changelog_message }) } else { github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: commentId, - body: '${{ env.CHANGELOG_MESSAGE }}' + body: changelog_message }) } diff --git a/NuGet.config b/NuGet.config index 4cf07053a0..b0b78156a2 100644 --- a/NuGet.config +++ b/NuGet.config @@ -10,10 +10,13 @@ + + + @@ -34,6 +37,8 @@ + + diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.cs.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.cs.json index 21a1832e9b..ff76b64ca4 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.cs.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.cs.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Aplikace Mac Catalyst", + "description": "Projekt pro vytvoření aplikace .NET Mac Catalyst", "symbols/bundleId/description": "Přepíše CFBundleIdentifier v souboru Info.plist.", "symbols/minOSVersion/description": "Přepíše SupportedOSPlatformVersion v souboru projektu." } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.de.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.de.json index 019c937d78..a36ea69d22 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.de.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.de.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst-Anwendung", + "description": "Ein Projekt zum Erstellen einer .NET Mac-Anwendung", "symbols/bundleId/description": "Überschreibt „CFBundleIdentifier“ in „Info.plist“", "symbols/minOSVersion/description": "Überschreibt „SupportedOSPlatformVersion“ in der Projektdatei." } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.es.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.es.json index c564b3a024..4d5d3bd7c8 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.es.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.es.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Aplicación Mac Catalyst", + "description": "Proyecto para crear una aplicación Mac Catalyst de .NET", "symbols/bundleId/description": "Invalida CFBundleIdentifier en Info.plist", "symbols/minOSVersion/description": "Invalida SupportedOSPlatformVersion en el archivo de proyecto" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.fr.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.fr.json index 73c03f33e1..d68b19abf1 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.fr.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.fr.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Application Mac Catalyst", + "description": "Projet de création d’une application Mac Catalyst .NET", "symbols/bundleId/description": "Remplace CFBundleIdentifier dans Info.plist", "symbols/minOSVersion/description": "Remplace SupportedOSPlatformVersion dans le fichier projet" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.it.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.it.json index ad9e355f64..a0601abdf3 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.it.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.it.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Applicazione Mac Catalyst", + "description": "Progetto per la creazione di un'applicazione Mac Catalyst .NET", "symbols/bundleId/description": "Esegue l'override di CFBundleIdentifier in Info.plist", "symbols/minOSVersion/description": "Esegue l'override di SupportedOSPlatformVersion nel file di progetto" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ja.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ja.json index 0e6b5ed89a..c0fe8909f8 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ja.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ja.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst アプリケーション", + "description": ".NET Mac Catalyst アプリケーションを作成するためのプロジェクト", "symbols/bundleId/description": "Info.plist の CFBundleIdentifier をオーバーライドします", "symbols/minOSVersion/description": "プロジェクト ファイルの SupportedOSPlatformVersion をオーバーライドします" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ko.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ko.json index 337e584b31..75d6b3a021 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ko.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ko.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst 애플리케이션", + "description": ".NET Mac Catalyst 애플리케이션을 만들기 위한 프로젝트", "symbols/bundleId/description": "Info.plist에서 CFBundleIdentifier 재정의", "symbols/minOSVersion/description": "프로젝트 파일에서 SupportedOSPlatformVersion 재정의" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pl.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pl.json index 54b545e046..fd2c0b9d3d 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pl.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pl.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Aplikacja Mac Catalyst", + "description": "Projekt służący do tworzenia aplikacji platformy .NET Mac Catalyst", "symbols/bundleId/description": "Nadpisuje element CFBundleIdentifier w pliku Info.plist", "symbols/minOSVersion/description": "Nadpisuje element SupportedOSPlatformVersion w pliku projektu" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pt-BR.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pt-BR.json index b582df4dfe..92312bec2e 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pt-BR.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.pt-BR.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Aplicativo Mac Catalyst", + "description": "Um projeto para criar um aplicativo .NET Mac Catalyst", "symbols/bundleId/description": "Substitui o CFBundleIdentifier no Info.plist", "symbols/minOSVersion/description": "Substitui o SupportedOSPlatformVersion no arquivo de projetos" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ru.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ru.json index bab439ea02..a741b7e4ab 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ru.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.ru.json @@ -1,7 +1,7 @@ { "author": "Майкрософт", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Приложение Mac Catalyst", + "description": "Проект для создания приложения .NET Mac Catalyst", "symbols/bundleId/description": "Переопределяет CFBundleIdentifier в Info.plist", "symbols/minOSVersion/description": "Переопределяет SupportedOSPlatformVersion в файле проекта" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.tr.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.tr.json index c6b8c272f4..54746dc911 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.tr.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.tr.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst Uygulaması", + "description": ".NET Mac Catalyst uygulaması oluşturmaya yönelik bir proje", "symbols/bundleId/description": "Info.plist dosyasındaki CFBundleIdentifier öğesini geçersiz kılar", "symbols/minOSVersion/description": "Proje dosyasındaki SupportedOSPlatformVersion öğesini geçersiz kılar" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hans.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hans.json index 7d1693b434..1919f12c10 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hans.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hans.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst 应用程序", + "description": "用于创建 .NET Mac Catalyst 应用程序的项目", "symbols/bundleId/description": "在 Info.plist 中替代 CFBundleIdentifier", "symbols/minOSVersion/description": "替代项目文件中的 SupportedOSPlatformVersion" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hant.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hant.json index 3c6ca38b0b..6dff8ecfa3 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hant.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/.template.config/localize/templatestrings.zh-Hant.json @@ -1,7 +1,7 @@ { "author": "Microsoft", - "name": "Mac Catalyst Application", - "description": "A project for creating a .NET Mac Catalyst application", + "name": "Mac Catalyst 應用程式", + "description": "用於建立 .NET Mac Catalyst 應用程式的專案", "symbols/bundleId/description": "覆寫 Info.plist 中的 CFBundleIdentifier", "symbols/minOSVersion/description": "覆寫專案檔中的 SupportedOSPlatformVersion" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.cs.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.cs.json index 29f214c577..b2e1f36694 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.cs.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.cs.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Knihovna vazeb Mac Catalyst", + "description": "Projekt pro vytvoření knihovny vazeb .NET Mac Catalyst" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.de.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.de.json index 29f214c577..255b6bbd6e 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.de.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.de.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst-Bindungsbibliothek", + "description": "Ein Projekt zum Erstellen einer .NET Mac Catalyst-Bindungsbibliothek" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.es.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.es.json index 29f214c577..578cd730e8 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.es.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.es.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Biblioteca de enlace de Mac Catalyst", + "description": "Proyecto para crear una biblioteca de enlace de Mac Catalyst de .NET" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.fr.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.fr.json index 29f214c577..58b504a770 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.fr.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.fr.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Bibliothèque de liaisons Mac Catalyst", + "description": "Projet de création d’une bibliothèque de liaisons Mac Catalyst .NET" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.it.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.it.json index 29f214c577..b497d2e5bb 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.it.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.it.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Libreria di binding Mac Catalyst", + "description": "Progetto per la creazione di una libreria di binding Mac Catalyst .NET" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ja.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ja.json index 29f214c577..cf1f07488b 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ja.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ja.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst バインド ライブラリ", + "description": ".NET Mac Catalyst バインド ライブラリを作成するためのプロジェクト" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ko.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ko.json index 29f214c577..0f881733e0 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ko.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ko.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst 바인딩 라이브러리", + "description": ".NET Mac Catalyst 바인딩 라이브러리를 만들기 위한 프로젝트" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pl.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pl.json index 29f214c577..2c9dfaa06c 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pl.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pl.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Biblioteka powiązań programu Mac Catalyst", + "description": "Projekt służący do tworzenia biblioteki powiązań dla programu .NET Mac Catalyst" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pt-BR.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pt-BR.json index 29f214c577..89d5ae1e8c 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pt-BR.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.pt-BR.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Biblioteca de Vinculação do Mac Catalyst", + "description": "Um projeto para criar uma biblioteca de vinculação do .NET Mac Catalyst" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ru.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ru.json index 87c01af346..5f5e51c6f9 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ru.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.ru.json @@ -1,5 +1,5 @@ { "author": "Майкрософт", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Библиотека привязок Mac Catalyst", + "description": "Проект для создания библиотеки привязок .NET Mac Catalyst" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.tr.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.tr.json index 29f214c577..f1c6b8b22a 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.tr.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.tr.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst Bağlama Kitaplığı", + "description": ".NET Mac Catalyst bağlama kitaplığı oluşturmaya yönelik bir proje" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hans.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hans.json index 29f214c577..0b36b136f4 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hans.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hans.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst 绑定库", + "description": "用于创建 .NET Mac Catalyst 绑定库的项目" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hant.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hant.json index 29f214c577..c33fff0a22 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hant.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/.template.config/localize/templatestrings.zh-Hant.json @@ -1,5 +1,5 @@ { "author": "Microsoft", - "name": "Mac Catalyst Binding Library", - "description": "A project for creating a .NET Mac Catalyst binding library" + "name": "Mac Catalyst 繫結程式庫", + "description": "用於建立 .NET Mac Catalyst 繫結程式庫的專案" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.cs.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.cs.json index cc4444ba3f..d08b57f29d 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.cs.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.cs.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Kontroler iOS", "description": "Třída kontroleru iOS", "symbols/namespace/description": "obor názvů pro vygenerovaný kód" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.de.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.de.json index f97d32568b..28c86824b4 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.de.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.de.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS-Controller", "description": "iOS-Controllerklasse", "symbols/namespace/description": "Namespace für den generierten Code" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.es.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.es.json index 467f9c0172..6d861f1179 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.es.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.es.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Controlador de iOS", "description": "Clase de controladora iOS", "symbols/namespace/description": "espacio de nombres para el código generado" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.fr.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.fr.json index 3a8dd00b98..876f5315ec 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.fr.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.fr.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Contrôleur iOS", "description": "Classe de contrôleur iOS", "symbols/namespace/description": "espace de noms pour le code généré" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.it.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.it.json index 9aa9c7f740..9095738647 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.it.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.it.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Controller iOS", "description": "Una classe controller iOS", "symbols/namespace/description": "spazio dei nomi per il codice generato" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ja.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ja.json index 2916e7fc3b..de3f6d9fd8 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ja.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ja.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS コントローラー", "description": "iOS コントローラー クラス", "symbols/namespace/description": "生成されたコードの名前空間" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ko.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ko.json index 8574422ea2..1d4dfbcb79 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ko.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ko.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS 컨트롤러", "description": "iOS 컨트롤러 클래스", "symbols/namespace/description": "생성된 코드의 네임스페이스" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pl.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pl.json index 8232884646..e026e32f91 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pl.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pl.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Kontroler systemu iOS", "description": "Klasa kontrolera systemu iOS", "symbols/namespace/description": "przestrzeń nazw wygenerowanego kodu." } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pt-BR.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pt-BR.json index 75995c9ce2..2b13e4402c 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pt-BR.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.pt-BR.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "Controlador iOS", "description": "Uma classe de Controlador do iOS", "symbols/namespace/description": "namespace do código gerado" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ru.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ru.json index d95280e448..81308682dc 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ru.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.ru.json @@ -1,6 +1,6 @@ { "author": "Майкрософт", - "name": "iOS Controller", + "name": "Контроллер iOS", "description": "Класс контроллера iOS", "symbols/namespace/description": "пространство имен для созданного кода" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.tr.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.tr.json index c3591e11d5..f3bd2ee3e0 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.tr.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.tr.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS Denetleyicisi", "description": "Bir iOS Denetleyici sınıfı", "symbols/namespace/description": "oluşturulan kod için ad alanı" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hans.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hans.json index 79502231bc..3bd900b7da 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hans.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hans.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS 控制器", "description": "iOS 控制器类", "symbols/namespace/description": "生成的代码的命名空间" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hant.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hant.json index 0b1a1ccde2..a3e9e12ad6 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hant.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-controller/.template.config/localize/templatestrings.zh-Hant.json @@ -1,6 +1,6 @@ { "author": "Microsoft", - "name": "iOS Controller", + "name": "iOS 控制器", "description": "iOS 控制器類別", "symbols/namespace/description": "適用於產生之程式碼的命名空間" } \ No newline at end of file diff --git a/dotnet/Templates/Microsoft.iOS.Templates/ios-storyboard/.template.config/template.json b/dotnet/Templates/Microsoft.iOS.Templates/ios-storyboard/.template.config/template.json index 70a60de832..713fe42d97 100644 --- a/dotnet/Templates/Microsoft.iOS.Templates/ios-storyboard/.template.config/template.json +++ b/dotnet/Templates/Microsoft.iOS.Templates/ios-storyboard/.template.config/template.json @@ -12,7 +12,7 @@ "shortName": "ios-storyboard", "sourceName": "Storyboard1", "primaryOutputs": [ - { "path": "Stortboard1.storyboard" } + { "path": "Storyboard1.storyboard" } ], "defaultName": "Storyboard1" } diff --git a/dotnet/generate-vs-workload.csharp b/dotnet/generate-vs-workload.csharp index 50364b7f59..02391197b2 100755 --- a/dotnet/generate-vs-workload.csharp +++ b/dotnet/generate-vs-workload.csharp @@ -87,7 +87,7 @@ using (TextWriter writer = new StreamWriter (outputPath)) { foreach (var entry in platforms) { var platform = entry.Item1; var version = entry.Item2; - writer.WriteLine ($" "); + writer.WriteLine ($" "); } foreach (var entry in platforms) { var platform = entry.Item1; diff --git a/external/Xamarin.MacDev b/external/Xamarin.MacDev index 33502e15ba..ac2647b643 160000 --- a/external/Xamarin.MacDev +++ b/external/Xamarin.MacDev @@ -1 +1 @@ -Subproject commit 33502e15ba3fa75b68a4a4c303b56ede374dc5ff +Subproject commit ac2647b6436972218f07555487abb564506c9eb5 diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.cs.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.cs.resx index 6b41ee96eb..321f8a9e08 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.cs.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.cs.resx @@ -1148,13 +1148,13 @@ Neznámá vlastnost {0} s hodnotou {1}. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Neplatná hodnota {0} pro nárok {1} typu {2} zadaná ve skupině položek CustomEntitlements. Neočekávala se vůbec žádná hodnota. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Neplatná hodnota {0} pro nárok {1} typu {2} zadaná ve skupině položek CustomEntitlements. Očekávala se hodnota true nebo false. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Neznámý typ {0} pro nárok {1} zadaný ve skupině položek CustomEntitlements Očekávala se hodnota Remove, Boolean, String nebo StringArray. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Neočekávané rozšíření{0}pro nativní odkaz{1}v manifestu{2} {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.de.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.de.resx index ba127cebe6..c45293c34d 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.de.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.de.resx @@ -1148,13 +1148,13 @@ Unbekannte Eigenschaft „{0}“ mit dem Wert „{1}“. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Ungültiger Wert „{0}“ für die Berechtigung „{1}“ vom Typ „{2}“, die in der CustomEntitlements-Elementgruppe angegeben ist. Es wurde überhaupt kein Wert erwartet. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Ungültiger Wert „{0}“ für die Berechtigung „{1}“ vom Typ „{2}“, die in der CustomEntitlements-Elementgruppe angegeben ist. Es wurde „true“ oder „false“ erwartet. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Unbekannter Typ „{0}“ für die Berechtigung „{1}“, die in der CustomEntitlements-Elementgruppe angegeben ist. „Remove“, „Boolean“, „String“ oder „StringArray“ wurden erwartet. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Unerwartete Erweiterung "{0}" für systemeigenen Verweis "{1}" im Manifest "{2}". {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.es.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.es.resx index 35f2809b20..9eaf440160 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.es.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.es.resx @@ -1148,13 +1148,13 @@ Propiedad desconocida \"{0}\" con el valor \"{1}\". - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + El valor "{0}" no es válido para el derecho "{1}" de tipo "{2}" especificado en el grupo de elementos CustomEntitlements. No se esperaba ningún valor. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + El valor "{0}" no es válido para el derecho "{1}" de tipo "{2}" especificado en el grupo de elementos CustomEntitlements. Se esperaba "true" o "false". Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Tipo desconocido "{0}" para el derecho "{1}" especificado en el grupo de elementos CustomEntitlements. Se esperaba "Remove", "Boolean", "String" o "StringArray". Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Extensión inesperada '{0}' para la referencia nativa '{1}' en el manifiesto '{2}'. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.fr.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.fr.resx index 6d1a6cb417..1d7c8af06f 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.fr.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.fr.resx @@ -1148,13 +1148,13 @@ Propriété inconnue '{0}' avec la valeur '{1}'. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Valeur «{0}» non valide pour le droit «{1}» de type «{2}» spécifié dans le groupe d’éléments CustomEntitlements. Aucune valeur attendue. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Valeur «{0}» non valide pour le droit «{1}» de type «{2}» spécifié dans le groupe d’éléments CustomEntitlements. 'true' ou 'false' attendu. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Type inconnu '{0}' pour le droit '{1}' spécifié dans le groupe d’éléments CustomEntitlements. 'Remove', 'Boolean', 'String' ou 'StringArray' attendu. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Extension inattendue '{0}' pour la référence native '{1}' dans le manifeste '{2}'. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.it.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.it.resx index 2aa50108d4..a913d94e8c 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.it.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.it.resx @@ -1148,13 +1148,13 @@ Proprietà sconosciuta '{0}' con valore '{1}'. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Valore non valido '{0}' per l'entitlement '{1}' di tipo '{2}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: nessun valore. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Valore non valido '{0}' per l'entitlement '{1}' di tipo '{2}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: 'true' o 'false'. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Tipo sconosciuto '{0}' per l'entitlement '{1}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: 'Remove', 'Boolean', 'String' o 'StringArray'. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Estensione imprevista '{0}' per il riferimento nativo '{1}' nel manifesto '{2}'. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ja.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ja.resx index 1459310dc9..6a3fd9aebf 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ja.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ja.resx @@ -1148,13 +1148,13 @@ 値 '{1}' のプロパティ '{0}' が不明です。 - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + CustomEntitlements アイテム グループで指定された '{2}' 種類のエンタイトルメント '{1}' の値 '{0}' が無効です。値がないことが必要です。 Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + CustomEntitlements アイテム グループで指定された '{2}' 種類のエンタイトルメント '{1}' の値 '{0}' が無効です。'true' または 'false' であることが必要です。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + CustomEntitlements アイテム グループで指定されたエンタイトルメント '{1}' の不明な種類 '{0}'。'Remove'、'Boolean'、'String'、または 'StringArray' が必要です。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + マニフェスト '{2}' のネイティブ参照 '{1}' に予期しない拡張機能 '{0}'。 {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ko.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ko.resx index e669c58813..83ea7aa25b 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ko.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ko.resx @@ -1148,13 +1148,13 @@ 알 수 없는 속성 '{0}'과(와) 값 '{1}'입니다. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + CustomEntitlements 항목 그룹에 지정된 '{2}' 유형의 인타이틀먼트 '{1}'에 대한 값 '{0}'이(가) 잘못되었습니다. 값이 전혀 필요되지 않습니다. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + CustomEntitlements 항목 그룹에 지정된 '{2}' 유형의 인타이틀먼트 '{1}'에 대한 값 '{0}'이(가) 잘못되었습니다. 'true' 또는 'false'가 필요합니다. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + CustomEntitlements 항목 그룹에 지정된 인타이틀먼트 '{1}'에 대해 알 수 없는 유형 '{0}'. 'Remove', 'Boolean', 'String' 또는 'StringArray'가 필요합니다. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + 매니페스트 '{2}'의 네이티브 참조 '{1}'에 대한 예기치 않은 확장 '{0}'. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pl.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pl.resx index 1cc614f183..397c4b5b71 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pl.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pl.resx @@ -1148,13 +1148,13 @@ Nieznana właściwość „{0}“ z wartością „{1}“. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Nieprawidłowa wartość „{0}” dla uprawnienia „{1}” typu „{2}” określona w grupie elementów CustomEntitlements. Nie oczekiwano żadnej wartości. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Nieprawidłowa wartość „{0}” dla uprawnienia „{1}” typu „{2}” określona w grupie elementów CustomEntitlements. Oczekiwano wartości „true” lub „false”. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Nieznany typ „{0}” dla uprawnienia „{1}” określony w grupie elementów CustomEntitlements. Oczekiwano instrukcji „Remove”, „Boolean”, „String” lub „StringArray”. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Nieoczekiwane rozszerzenie „{0}” dla natywnego odwołania „{1}” w manifeście „{2}”. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pt-BR.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pt-BR.resx index 9a9739a219..4ba4b87e44 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pt-BR.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.pt-BR.resx @@ -1148,13 +1148,13 @@ Propriedade desconhecida '{0}' com valor '{1}'. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Valor '{0}' inválido para o direito '{1}' do tipo '{2}' especificado no grupo de itens CustomEntitlements. Nenhum valor esperado. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Valor '{0}' inválido para o direito '{1}' do tipo '{2}' especificado no grupo de itens CustomEntitlements. Esperado 'true' ou 'false'. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Tipo '{0}' desconhecido para o direito '{1}' especificado no grupo de itens CustomEntitlements. Esperado 'Remove', 'Boolean', 'String' ou 'StringArray'. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Extensão inesperada '{0}' para referência nativa '{1}' no manifesto '{2}'. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ru.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ru.resx index e273fc69bc..4334aa206e 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ru.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.ru.resx @@ -1148,13 +1148,13 @@ Неизвестное свойство \"{0}\" со значением \"{1}\". - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + Недопустимое значение "{0}" для объема обслуживания "{1}" типа "{2}", указанного в группе элементов CustomEntitlements. Ожидается отсутствие значения. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + Недопустимое значение "{0}" для объема обслуживания "{1}" типа "{2}", указанного в группе элементов CustomEntitlements. Ожидается ИСТИНА или ЛОЖЬ. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + Неизвестный тип "{0}" для объема обслуживания "{1}", указанного в группе элементов CustomEntitlements. Ожидается "Remove", "Boolean", "String" или "StringArray". Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + Непредвиденное расширение "{0}" для собственной ссылки "{1}" в манифесте "{2}". {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.tr.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.tr.resx index 37e87d9282..2ac3d959c3 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.tr.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.tr.resx @@ -1148,13 +1148,13 @@ '{0}' değerine sahip bilinmeyen özellik '{1}'. - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + '{2}' türündeki '{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' değeri geçersiz. Hiçbir değer beklenmiyordu. Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + '{2}' türündeki '{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' değeri geçersiz. 'true' veya 'false' bekleniyordu. Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + '{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' türü bilinmiyor. 'Remove', 'Boolean', 'String' veya 'StringArray' bekleniyordu. Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + '{2}' bildiriminde '{1}' yerel başvurusu için beklenmeyen '{0}' uzantısı. {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hans.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hans.resx index 0d5ae6b25f..94ca84b682 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hans.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hans.resx @@ -1148,13 +1148,13 @@ 值为“{1}”的未知属性“{0}”。 - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + 在 CustomEntitlements 项组中为类型为“{2}”的权利“{1}”指定的值“{0}”无效。根本不应为任何值。 Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + 在 CustomEntitlements 项组中为类型为“{2}”的权利“{1}”指定的值“{0}”无效。应为 “true” 或 “false”。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + 在 CustomEntitlements 项组中指定的权利“{1}”的类型“{0}”未知。应为 “Remove”、“Boolean”、“String” 或“StringArray”。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + 清单“{2}”中本机引用“{1}”的意外扩展“{0}”。 {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hant.resx b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hant.resx index f736a30fcc..a6241a8ef6 100644 --- a/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hant.resx +++ b/msbuild/Xamarin.Localization.MSBuild/TranslatedAssemblies/MSBStrings.zh-Hant.resx @@ -1148,13 +1148,13 @@ 值為 '{1}' 的未知屬性'{0}'。 - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all. + CustomEntitlements 項目群組中指定之類型為 '{2}' 之權利 '{1}' 的值 '{0}' 無效。預期沒有任何值。 Don't translate: CustomEntitlements (name of option in project file) - Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'. + CustomEntitlements 項目群組中指定之類型為 '{2}' 之權利 '{1}' 的值 '{0}' 無效。必須是 'true' 或 'false'。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1162,7 +1162,7 @@ - Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'. + CustomEntitlements 項目群組中指定之權利 '{1}' 的未知類型 '{0}'。必須是 'Remove'、'Boolean'、'String' 或 'StringArray'。 Don't translate: * CustomEntitlements (name of option in project file) @@ -1170,7 +1170,7 @@ - Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'. + 在資訊清單 '{2}' 中的原生參考 '{1}' 發生非預期的延伸模組 '{0}'。 {0}: file extension {1}: path to a file diff --git a/msbuild/Xamarin.MacDev.Tasks/MsBuildTasks/Delete.cs b/msbuild/Xamarin.MacDev.Tasks/MsBuildTasks/Delete.cs index 2885067f25..c67db543ac 100644 --- a/msbuild/Xamarin.MacDev.Tasks/MsBuildTasks/Delete.cs +++ b/msbuild/Xamarin.MacDev.Tasks/MsBuildTasks/Delete.cs @@ -22,9 +22,7 @@ namespace Microsoft.Build.Tasks { return result; } - foreach (var file in Files) { - client.DeleteFileAsync (file.ItemSpec).Wait (); - } + client.DeleteFilesAsync (Files.Select (x => x.ItemSpec).ToArray ()).Wait (); return result; } diff --git a/src/Foundation/MonoTouchException.cs b/src/Foundation/MonoTouchException.cs index 19570251d0..2d07d1ee6a 100644 --- a/src/Foundation/MonoTouchException.cs +++ b/src/Foundation/MonoTouchException.cs @@ -49,8 +49,9 @@ namespace Foundation { void AppendNativeStackTrace (StringBuilder sb) { - if (native_exc is not null) { - foreach (var symbol in native_exc.CallStackSymbols) + var callStackSymbols = native_exc?.CallStackSymbols; + if (callStackSymbols is not null) { + foreach (var symbol in callStackSymbols) sb.Append ('\t').AppendLine (symbol); } } diff --git a/src/Foundation/NSAttributedString.iOS.cs b/src/Foundation/NSAttributedString.iOS.cs index 800546c823..9d4bd6034e 100644 --- a/src/Foundation/NSAttributedString.iOS.cs +++ b/src/Foundation/NSAttributedString.iOS.cs @@ -69,13 +69,13 @@ namespace Foundation { public NSDocumentType DocumentType { get { var s = GetNSStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute); - if (s == UIStringAttributeKey.NSPlainTextDocumentType) + if (s == NSAttributedStringDocumentType.NSPlainTextDocumentType) return NSDocumentType.PlainText; - if (s == UIStringAttributeKey.NSRTFDTextDocumentType) + if (s == NSAttributedStringDocumentType.NSRtfdTextDocumentType) return NSDocumentType.RTFD; - if (s == UIStringAttributeKey.NSRTFTextDocumentType) + if (s == NSAttributedStringDocumentType.NSRtfTextDocumentType) return NSDocumentType.RTF; - if (s == UIStringAttributeKey.NSHTMLTextDocumentType) + if (s == NSAttributedStringDocumentType.NSHtmlTextDocumentType) return NSDocumentType.HTML; return NSDocumentType.Unknown; } @@ -83,16 +83,16 @@ namespace Foundation { set { switch (value) { case NSDocumentType.PlainText: - SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, UIStringAttributeKey.NSPlainTextDocumentType); + SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, NSAttributedStringDocumentType.NSPlainTextDocumentType); break; case NSDocumentType.RTFD: - SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, UIStringAttributeKey.NSRTFDTextDocumentType); + SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, NSAttributedStringDocumentType.NSRtfdTextDocumentType); break; case NSDocumentType.RTF: - SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, UIStringAttributeKey.NSRTFTextDocumentType); + SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, NSAttributedStringDocumentType.NSRtfTextDocumentType); break; case NSDocumentType.HTML: - SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, UIStringAttributeKey.NSHTMLTextDocumentType); + SetStringValue (UIStringAttributeKey.NSDocumentTypeDocumentAttribute, NSAttributedStringDocumentType.NSHtmlTextDocumentType); break; } } diff --git a/src/Foundation/NSAttributedString.mac.cs b/src/Foundation/NSAttributedString.mac.cs index 74f69bb79a..17cbcac353 100644 --- a/src/Foundation/NSAttributedString.mac.cs +++ b/src/Foundation/NSAttributedString.mac.cs @@ -194,25 +194,25 @@ namespace Foundation get { var s = GetNSStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption); - if (s == NSStringAttributeKey.NSPlainTextDocumentType) + if (s == NSAttributedStringDocumentType.NSPlainTextDocumentType) return NSDocumentType.PlainText; - if (s == NSStringAttributeKey.NSRtfTextDocumentType) + if (s == NSAttributedStringDocumentType.NSRtfTextDocumentType) return NSDocumentType.RTF; - if (s == NSStringAttributeKey.NSRtfdTextDocumentType) + if (s == NSAttributedStringDocumentType.NSRtfdTextDocumentType) return NSDocumentType.RTFD; - if (s == NSStringAttributeKey.NSMacSimpleTextDocumentType) + if (s == NSAttributedStringDocumentType.NSMacSimpleTextDocumentType) return NSDocumentType.MacSimpleText; - if (s == NSStringAttributeKey.NSHTMLTextDocumentType) + if (s == NSAttributedStringDocumentType.NSHtmlTextDocumentType) return NSDocumentType.HTML; - if (s == NSStringAttributeKey.NSDocFormatTextDocumentType) + if (s == NSAttributedStringDocumentType.NSDocFormatTextDocumentType) return NSDocumentType.DocFormat; - if (s == NSStringAttributeKey.NSWordMLTextDocumentType) + if (s == NSAttributedStringDocumentType.NSWordMLTextDocumentType) return NSDocumentType.WordML; - if (s == NSStringAttributeKey.NSWebArchiveTextDocumentType) + if (s == NSAttributedStringDocumentType.NSWebArchiveTextDocumentType) return NSDocumentType.WebArchive; - if (s == NSStringAttributeKey.NSOfficeOpenXMLTextDocumentType) + if (s == NSAttributedStringDocumentType.NSOfficeOpenXMLTextDocumentType) return NSDocumentType.OfficeOpenXml; - if (s == NSStringAttributeKey.NSOpenDocumentTextDocumentType) + if (s == NSAttributedStringDocumentType.NSOpenDocumentTextDocumentType) return NSDocumentType.OpenDocument; return NSDocumentType.Unknown; } @@ -220,34 +220,34 @@ namespace Foundation set { switch (value){ case NSDocumentType.PlainText: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSPlainTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSPlainTextDocumentType); break; case NSDocumentType.RTFD: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSRtfdTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSRtfdTextDocumentType); break; case NSDocumentType.RTF: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSRtfTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSRtfTextDocumentType); break; case NSDocumentType.HTML: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSHTMLTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSHtmlTextDocumentType); break; case NSDocumentType.MacSimpleText: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSMacSimpleTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSMacSimpleTextDocumentType); break; case NSDocumentType.DocFormat: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSDocFormatTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSDocFormatTextDocumentType); break; case NSDocumentType.WordML: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSWordMLTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSWordMLTextDocumentType); break; case NSDocumentType.WebArchive: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSWebArchiveTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSWebArchiveTextDocumentType); break; case NSDocumentType.OfficeOpenXml: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSOfficeOpenXMLTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSOfficeOpenXMLTextDocumentType); break; case NSDocumentType.OpenDocument: - SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSStringAttributeKey.NSOpenDocumentTextDocumentType); + SetStringValue (NSStringAttributeKey.NSDocumentTypeDocumentOption, NSAttributedStringDocumentType.NSOpenDocumentTextDocumentType); break; } } diff --git a/src/Foundation/NSFastEnumerationState.cs b/src/Foundation/NSFastEnumerationState.cs index 0ce3d76d9b..85f617cea2 100644 --- a/src/Foundation/NSFastEnumerationState.cs +++ b/src/Foundation/NSFastEnumerationState.cs @@ -7,6 +7,8 @@ // Copyright 2015, Xamarin Inc. // +#nullable enable + using System; using System.Collections.Generic; using System.Runtime.InteropServices; @@ -17,12 +19,33 @@ namespace Foundation { [StructLayout (LayoutKind.Sequential)] internal struct NSFastEnumerationState { nint state; - internal IntPtr itemsPtr; - internal IntPtr mutationsPtr; + unsafe internal IntPtr* itemsPtr; + unsafe internal IntPtr* mutationsPtr; nint extra1; nint extra2; nint extra3; nint extra4; nint extra5; + + // An array where the enumerator might store stuff. + // This isn't part of the native declaration of NSFastEnumerationState, + // we've added it to simplify our enumeration code. + internal const int ArrayLength = 16; + internal IntPtr array1; + IntPtr array2; + IntPtr array3; + IntPtr array4; + IntPtr array5; + IntPtr array6; + IntPtr array7; + IntPtr array8; + IntPtr array9; + IntPtr array10; + IntPtr array11; + IntPtr array12; + IntPtr array13; + IntPtr array14; + IntPtr array15; + IntPtr array16; } } diff --git a/src/Foundation/NSFastEnumerator.cs b/src/Foundation/NSFastEnumerator.cs index 6e50cd0a4a..89ec5982e5 100644 --- a/src/Foundation/NSFastEnumerator.cs +++ b/src/Foundation/NSFastEnumerator.cs @@ -17,14 +17,13 @@ using ObjCRuntime; namespace Foundation { internal class NSFastEnumerator { [DllImport (Messaging.LIBOBJC_DYLIB, EntryPoint = "objc_msgSend")] - public extern static nuint objc_msgSend (IntPtr receiver, IntPtr selector, ref NSFastEnumerationState arg1, IntPtr [] arg2, nuint arg3); + public unsafe extern static nuint objc_msgSend (IntPtr receiver, IntPtr selector, NSFastEnumerationState* arg1, IntPtr* arg2, nuint arg3); } internal class NSFastEnumerator : IEnumerator where T : class, INativeObject { - NSFastEnumerationState state; + unsafe NSFastEnumerationState* state; NSObject collection; - IntPtr [] array; nuint count; IntPtr mutationValue; nuint current; @@ -33,30 +32,46 @@ namespace Foundation { public NSFastEnumerator (NSObject collection) { this.collection = collection; + + unsafe { + // Create one blob of native memory that holds both our NSFastEnumerationState and the array of pointers we pass to the enumerator. + // + // Note that we *must* pass native memory to the countByEnumeratingWithState:objects:count: method + // (and not a field on the NSFastEnumerator instance), because: + // * The pointers in the state (NSFastEnumerationState.mutationsPtr / NSFastEnumerationState.itemsPtr) might point back into the structure. + // * We access those pointers using unsafe code (in a way the GC doesn't see). + // * If the GC happens to move the NSFastEnumerator instance in memory, it won't update these pointers. + // * The next time we read these pointers, we'll read random memory, and thus get random results. + // * Ref: https://github.com/xamarin/maccore/issues/2606. + // * It would probably also work to create a pinned GCHandle to the NSFastEnumerator structure (instead of allocating native memory), but that doesn't seem easier on the GC. + state = (NSFastEnumerationState*) Marshal.AllocHGlobal (sizeof (NSFastEnumerationState)); + // Zero-initialize + *state = default (NSFastEnumerationState); + } } void Fetch () { - if (array == null) - array = new IntPtr [16]; - count = NSFastEnumerator.objc_msgSend (collection.Handle, Selector.GetHandle ("countByEnumeratingWithState:objects:count:"), ref state, array, (nuint) array.Length); - if (!started) { - started = true; - mutationValue = Marshal.ReadIntPtr (state.mutationsPtr); + unsafe { + count = NSFastEnumerator.objc_msgSend (collection.Handle, Selector.GetHandle ("countByEnumeratingWithState:objects:count:"), state, &state->array1, (nuint) NSFastEnumerationState.ArrayLength); + if (!started) { + started = true; + mutationValue = *state->mutationsPtr; + } } current = 0; } - void VerifyNonMutated () + unsafe void VerifyNonMutated () { - if (mutationValue != Marshal.ReadIntPtr (state.mutationsPtr)) + if (mutationValue != *state->mutationsPtr) throw new InvalidOperationException ("Collection was modified"); } #region IEnumerator implementation bool System.Collections.IEnumerator.MoveNext () { - if (array == null || current == count - 1) { + if (!started || current == count - 1) { Fetch (); if (count == 0) return false; @@ -69,7 +84,9 @@ namespace Foundation { void System.Collections.IEnumerator.Reset () { - state = new NSFastEnumerationState (); + unsafe { + *state = new NSFastEnumerationState (); + } started = false; } @@ -84,14 +101,21 @@ namespace Foundation { #region IDisposable implementation void IDisposable.Dispose () { - // Nothing to do + unsafe { + Marshal.FreeHGlobal ((IntPtr) state); + state = null; + } } #endregion #region IEnumerator implementation - public T Current { + public unsafe T Current { get { - return Runtime.GetINativeObject (Marshal.ReadIntPtr (state.itemsPtr, IntPtr.Size * (int) current), false); + IntPtr ptr; + unsafe { + ptr = state->itemsPtr [(int) current]; + } + return Runtime.GetINativeObject (ptr, false); } } #endregion diff --git a/src/UIKit/UIFont.cs b/src/UIKit/UIFont.cs index ea979fc638..d1b30e136d 100644 --- a/src/UIKit/UIFont.cs +++ b/src/UIKit/UIFont.cs @@ -14,6 +14,35 @@ using ObjCRuntime; using Foundation; namespace UIKit { + + public static class UIFontWeightExtensions { + public static nfloat GetWeight (this UIFontWeight weight) + { + switch (weight) { + case UIFontWeight.UltraLight: + return UIFontWeightConstants.UltraLight; + case UIFontWeight.Thin: + return UIFontWeightConstants.Thin; + case UIFontWeight.Light: + return UIFontWeightConstants.Light; + case UIFontWeight.Regular: + return UIFontWeightConstants.Regular; + case UIFontWeight.Medium: + return UIFontWeightConstants.Medium; + case UIFontWeight.Semibold: + return UIFontWeightConstants.Semibold; + case UIFontWeight.Bold: + return UIFontWeightConstants.Bold; + case UIFontWeight.Heavy: + return UIFontWeightConstants.Heavy; + case UIFontWeight.Black: + return UIFontWeightConstants.Black; + default: + throw new ArgumentException (weight.ToString ()); + } + } + } + public partial class UIFont { public override string ToString () { @@ -150,32 +179,6 @@ namespace UIKit { } } - static nfloat GetFontWeight (UIFontWeight weight) - { - switch (weight) { - case UIFontWeight.UltraLight: - return UIFontWeightConstants.UltraLight; - case UIFontWeight.Thin: - return UIFontWeightConstants.Thin; - case UIFontWeight.Light: - return UIFontWeightConstants.Light; - case UIFontWeight.Regular: - return UIFontWeightConstants.Regular; - case UIFontWeight.Medium: - return UIFontWeightConstants.Medium; - case UIFontWeight.Semibold: - return UIFontWeightConstants.Semibold; - case UIFontWeight.Bold: - return UIFontWeightConstants.Bold; - case UIFontWeight.Heavy: - return UIFontWeightConstants.Heavy; - case UIFontWeight.Black: - return UIFontWeightConstants.Black; - default: - throw new ArgumentException (weight.ToString ()); - } - } - #if NET [SupportedOSPlatform ("ios16.0")] [SupportedOSPlatform ("maccatalyst16.0")] @@ -209,7 +212,7 @@ namespace UIKit { #endif public static UIFont SystemFontOfSize (nfloat size, UIFontWeight weight) { - return SystemFontOfSize (size, GetFontWeight (weight)); + return SystemFontOfSize (size, weight.GetWeight ()); } #if NET @@ -234,7 +237,7 @@ namespace UIKit { #endif public static UIFont MonospacedDigitSystemFontOfSize (nfloat fontSize, UIFontWeight weight) { - return MonospacedDigitSystemFontOfSize (fontSize, GetFontWeight (weight)); + return MonospacedDigitSystemFontOfSize (fontSize, weight.GetWeight ()); } #if NET @@ -259,7 +262,7 @@ namespace UIKit { [iOS (13, 0)] [TV (13, 0)] #endif - public static UIFont GetMonospacedSystemFont (nfloat size, UIFontWeight weight) => GetMonospacedSystemFont (size, GetFontWeight (weight)); + public static UIFont GetMonospacedSystemFont (nfloat size, UIFontWeight weight) => GetMonospacedSystemFont (size, weight.GetWeight ()); // In this case we want to _always_ return a different managed instance // so one can be disposed without affecting others @@ -351,7 +354,7 @@ namespace UIKit { #endif public static UIFont SystemFontOfSize (nfloat fontSize, UIFontWeight weight, UIFontWidth width) { - var ptr = _SystemFontOfSize (fontSize, GetFontWeight (weight), GetFontWidth (width)); + var ptr = _SystemFontOfSize (fontSize, weight.GetWeight (), GetFontWidth (width)); return ptr == IntPtr.Zero ? null : new UIFont (ptr); } diff --git a/src/accessibility.cs b/src/accessibility.cs index ad6f794e1e..82fa077aa4 100644 --- a/src/accessibility.cs +++ b/src/accessibility.cs @@ -9,36 +9,33 @@ using NativeHandle = System.IntPtr; namespace Accessibility { - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXCategoricalDataAxisDescriptor : AXDataAxisDescriptor - { + interface AXCategoricalDataAxisDescriptor : AXDataAxisDescriptor { [Export ("categoryOrder", ArgumentSemantic.Copy)] - string[] CategoryOrder { get; set; } + string [] CategoryOrder { get; set; } [Export ("initWithTitle:categoryOrder:")] [DesignatedInitializer] - NativeHandle Constructor (string title, string[] categoryOrder); + NativeHandle Constructor (string title, string [] categoryOrder); [Export ("initWithAttributedTitle:categoryOrder:")] [DesignatedInitializer] - NativeHandle Constructor (NSAttributedString attributedTitle, string[] categoryOrder); + NativeHandle Constructor (NSAttributedString attributedTitle, string [] categoryOrder); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface AXChart - { + interface AXChart { [Abstract] [NullAllowed, Export ("accessibilityChartDescriptor", ArgumentSemantic.Strong)] AXChartDescriptor AccessibilityChartDescriptor { get; set; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum AXChartDescriptorContentDirection : long - { + public enum AXChartDescriptorContentDirection : long { LeftToRight = 0, RightToLeft, TopToBottom, @@ -47,11 +44,10 @@ namespace Accessibility { RadialCounterClockwise, } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXChartDescriptor : NSCopying - { + interface AXChartDescriptor : NSCopying { [NullAllowed, Export ("title")] string Title { get; set; } @@ -68,7 +64,7 @@ namespace Accessibility { CGRect ContentFrame { get; set; } [Export ("series", ArgumentSemantic.Copy)] - AXDataSeriesDescriptor[] Series { get; set; } + AXDataSeriesDescriptor [] Series { get; set; } [Export ("xAxis", ArgumentSemantic.Strong)] IAXDataAxisDescriptor XAxis { get; set; } @@ -77,38 +73,36 @@ namespace Accessibility { AXNumericDataAxisDescriptor YAxis { get; set; } [NullAllowed, Export ("additionalAxes", ArgumentSemantic.Copy)] - IAXDataAxisDescriptor[] AdditionalAxes { get; set; } + IAXDataAxisDescriptor [] AdditionalAxes { get; set; } [Export ("initWithTitle:summary:xAxisDescriptor:yAxisDescriptor:series:")] - NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, AXDataSeriesDescriptor[] series); + NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, AXDataSeriesDescriptor [] series); [Export ("initWithAttributedTitle:summary:xAxisDescriptor:yAxisDescriptor:series:")] - NativeHandle Constructor ([NullAllowed] NSAttributedString attributedTitle, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, AXNumericDataAxisDescriptor yAxis, AXDataSeriesDescriptor[] series); + NativeHandle Constructor ([NullAllowed] NSAttributedString attributedTitle, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, AXNumericDataAxisDescriptor yAxis, AXDataSeriesDescriptor [] series); [Export ("initWithTitle:summary:xAxisDescriptor:yAxisDescriptor:additionalAxes:series:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, [NullAllowed] IAXDataAxisDescriptor[] additionalAxes, AXDataSeriesDescriptor[] series); + NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, [NullAllowed] IAXDataAxisDescriptor [] additionalAxes, AXDataSeriesDescriptor [] series); [Export ("initWithAttributedTitle:summary:xAxisDescriptor:yAxisDescriptor:additionalAxes:series:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] NSAttributedString attributedTitle, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, [NullAllowed] IAXDataAxisDescriptor[] additionalAxes, AXDataSeriesDescriptor[] series); + NativeHandle Constructor ([NullAllowed] NSAttributedString attributedTitle, [NullAllowed] string summary, IAXDataAxisDescriptor xAxis, [NullAllowed] AXNumericDataAxisDescriptor yAxis, [NullAllowed] IAXDataAxisDescriptor [] additionalAxes, AXDataSeriesDescriptor [] series); } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Native] - public enum AXCustomContentImportance : ulong - { + public enum AXCustomContentImportance : ulong { Default, High, } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXCustomContent : NSCopying, NSSecureCoding - { + interface AXCustomContent : NSCopying, NSSecureCoding { [Static] [Export ("customContentWithLabel:value:")] AXCustomContent Create (string label, string value); @@ -134,21 +128,19 @@ namespace Accessibility { } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Protocol] - interface AXCustomContentProvider - { + interface AXCustomContentProvider { [Abstract] [NullAllowed, Export ("accessibilityCustomContent", ArgumentSemantic.Copy)] - AXCustomContent[] AccessibilityCustomContent { get; set; } + AXCustomContent [] AccessibilityCustomContent { get; set; } } - interface IAXDataAxisDescriptor {} + interface IAXDataAxisDescriptor { } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface AXDataAxisDescriptor : NSCopying - { + interface AXDataAxisDescriptor : NSCopying { [Abstract] [Export ("title")] string Title { get; set; } @@ -158,11 +150,10 @@ namespace Accessibility { NSAttributedString AttributedTitle { get; set; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXDataPoint : NSCopying - { + interface AXDataPoint : NSCopying { [Export ("xValue", ArgumentSemantic.Copy)] AXDataPointValue XValue { get; set; } @@ -170,7 +161,7 @@ namespace Accessibility { AXDataPointValue YValue { get; set; } [Export ("additionalValues", ArgumentSemantic.Copy)] - AXDataPointValue[] AdditionalValues { get; set; } + AXDataPointValue [] AdditionalValues { get; set; } [NullAllowed, Export ("label")] string Label { get; set; } @@ -182,18 +173,17 @@ namespace Accessibility { NativeHandle Constructor (AXDataPointValue xValue, [NullAllowed] AXDataPointValue yValue); [Export ("initWithX:y:additionalValues:")] - NativeHandle Constructor (AXDataPointValue xValue, [NullAllowed] AXDataPointValue yValue, [NullAllowed] AXDataPointValue[] additionalValues); + NativeHandle Constructor (AXDataPointValue xValue, [NullAllowed] AXDataPointValue yValue, [NullAllowed] AXDataPointValue [] additionalValues); [Export ("initWithX:y:additionalValues:label:")] [DesignatedInitializer] - NativeHandle Constructor (AXDataPointValue xValue, [NullAllowed] AXDataPointValue yValue, [NullAllowed] AXDataPointValue[] additionalValues, [NullAllowed] string label); + NativeHandle Constructor (AXDataPointValue xValue, [NullAllowed] AXDataPointValue yValue, [NullAllowed] AXDataPointValue [] additionalValues, [NullAllowed] string label); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXDataPointValue : NSCopying - { + interface AXDataPointValue : NSCopying { [Export ("number", ArgumentSemantic.Assign)] double Number { get; set; } @@ -209,11 +199,10 @@ namespace Accessibility { AXDataPointValue CreateValueWithCategory (string category); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXDataSeriesDescriptor : NSCopying - { + interface AXDataSeriesDescriptor : NSCopying { [NullAllowed, Export ("name")] string Name { get; set; } @@ -224,33 +213,31 @@ namespace Accessibility { bool IsContinuous { get; set; } [Export ("dataPoints", ArgumentSemantic.Copy)] - AXDataPoint[] DataPoints { get; set; } + AXDataPoint [] DataPoints { get; set; } [Export ("initWithName:isContinuous:dataPoints:")] [DesignatedInitializer] - NativeHandle Constructor (string name, bool isContinuous, AXDataPoint[] dataPoints); + NativeHandle Constructor (string name, bool isContinuous, AXDataPoint [] dataPoints); [Export ("initWithAttributedName:isContinuous:dataPoints:")] [DesignatedInitializer] - NativeHandle Constructor (NSAttributedString attributedName, bool isContinuous, AXDataPoint[] dataPoints); + NativeHandle Constructor (NSAttributedString attributedName, bool isContinuous, AXDataPoint [] dataPoints); } - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] - public enum AXHearingDeviceEar : ulong - { + public enum AXHearingDeviceEar : ulong { None = 0, Left = 1 << 1, Right = 1 << 2, Both = Left | Right, } - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Partial] - partial interface AXHearingUtilities - { + partial interface AXHearingUtilities { [Field ("AXMFiHearingDeviceStreamingEarDidChangeNotification")] [Notification] NSString StreamingEarDidChangeNotification { get; } @@ -260,11 +247,10 @@ namespace Accessibility { NSString PairedUUIDsDidChangeNotification { get; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXLiveAudioGraph - { + interface AXLiveAudioGraph { [Static] [Export ("start")] void Start (); @@ -278,10 +264,9 @@ namespace Accessibility { void Stop (); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum AXNumericDataAxisDescriptorScale : long - { + public enum AXNumericDataAxisDescriptorScale : long { Linear = 0, Log10, Ln, @@ -289,11 +274,10 @@ namespace Accessibility { delegate NSString ValueDescriptionProviderHandler (double dataValue); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AXNumericDataAxisDescriptor : AXDataAxisDescriptor - { + interface AXNumericDataAxisDescriptor : AXDataAxisDescriptor { [Export ("scaleType", ArgumentSemantic.Assign)] AXNumericDataAxisDescriptorScale ScaleType { get; set; } @@ -307,18 +291,18 @@ namespace Accessibility { ValueDescriptionProviderHandler ValueDescriptionProvider { get; set; } [Export ("gridlinePositions", ArgumentSemantic.Copy)] - NSNumber[] GridlinePositions { get; set; } + NSNumber [] GridlinePositions { get; set; } [Export ("initWithTitle:lowerBound:upperBound:gridlinePositions:valueDescriptionProvider:")] [DesignatedInitializer] - NativeHandle Constructor (string title, double lowerBound, double upperBound, [NullAllowed] NSNumber[] gridlinePositions, Func valueDescriptionProvider); + NativeHandle Constructor (string title, double lowerBound, double upperBound, [NullAllowed] NSNumber [] gridlinePositions, Func valueDescriptionProvider); [Export ("initWithAttributedTitle:lowerBound:upperBound:gridlinePositions:valueDescriptionProvider:")] [DesignatedInitializer] - NativeHandle Constructor (NSAttributedString attributedTitle, double lowerBound, double upperBound, [NullAllowed] NSNumber[] gridlinePositions, Func valueDescriptionProvider); + NativeHandle Constructor (NSAttributedString attributedTitle, double lowerBound, double upperBound, [NullAllowed] NSNumber [] gridlinePositions, Func valueDescriptionProvider); } - [Watch (8,3), TV (15,2), Mac (12,1), iOS (15,2), MacCatalyst (15,2)] + [Watch (8, 3), TV (15, 2), Mac (12, 1), iOS (15, 2), MacCatalyst (15, 2)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AXBrailleMap : NSCopying, NSSecureCoding { @@ -336,7 +320,7 @@ namespace Accessibility { void Present (CGImage image); } - [Watch (8,3), TV (15,2), Mac (12,1), iOS (15,2), MacCatalyst (15,2)] + [Watch (8, 3), TV (15, 2), Mac (12, 1), iOS (15, 2), MacCatalyst (15, 2)] [Protocol] interface AXBrailleMapRenderer { diff --git a/src/accounts.cs b/src/accounts.cs index 6851b88709..c9b75fec59 100644 --- a/src/accounts.cs +++ b/src/accounts.cs @@ -11,29 +11,29 @@ using NativeHandle = System.IntPtr; #endif namespace Accounts { - + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [BaseType (typeof (NSObject))] interface ACAccount : NSSecureCoding { [Export ("identifier", ArgumentSemantic.Weak)] - string Identifier { get; } + string Identifier { get; } [NullAllowed] // by default this property is null [Export ("accountType", ArgumentSemantic.Retain)] - ACAccountType AccountType { get; set; } + ACAccountType AccountType { get; set; } [NullAllowed] // by default this property is null [Export ("accountDescription", ArgumentSemantic.Copy)] - string AccountDescription { get; set; } + string AccountDescription { get; set; } [NullAllowed] // by default this property is null [Export ("username", ArgumentSemantic.Copy)] - string Username { get; set; } + string Username { get; set; } [NullAllowed] // by default this property is null [Export ("credential", ArgumentSemantic.Retain)] - ACAccountCredential Credential { get; set; } + ACAccountCredential Credential { get; set; } [DesignatedInitializer] [Export ("initWithAccountType:")] @@ -45,7 +45,8 @@ namespace Accounts { NSString ErrorDomain { get; } #endif - [iOS (7,0)][NoMac] + [iOS (7, 0)] + [NoMac] [Export ("userFullName")] string UserFullName { get; } } @@ -62,19 +63,19 @@ namespace Accounts { [NullAllowed] // by default this property is null [Export ("oauthToken", ArgumentSemantic.Copy)] - string OAuthToken { get; set; } + string OAuthToken { get; set; } } delegate void ACAccountStoreSaveCompletionHandler (bool success, NSError error); delegate void ACAccountStoreRemoveCompletionHandler (bool success, NSError error); delegate void ACRequestCompletionHandler (bool granted, NSError error); - + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [BaseType (typeof (NSObject))] interface ACAccountStore { [Export ("accounts", ArgumentSemantic.Weak)] - ACAccount [] Accounts { get; } + ACAccount [] Accounts { get; } [Export ("accountWithIdentifier:")] ACAccount FindAccount (string identifier); @@ -102,10 +103,10 @@ namespace Accounts { [Field ("ACAccountStoreDidChangeNotification")] [Notification] NSString ChangeNotification { get; } - + [Export ("renewCredentialsForAccount:completion:")] [Async] - void RenewCredentials (ACAccount account, Action completionHandler); + void RenewCredentials (ACAccount account, Action completionHandler); [Protected] [Export ("requestAccessToAccountsWithType:options:completion:")] @@ -126,13 +127,13 @@ namespace Accounts { [BaseType (typeof (NSObject))] interface ACAccountType : NSSecureCoding { [Export ("accountTypeDescription")] - string Description { get; } + string Description { get; } [Export ("identifier")] - string Identifier { get; } + string Identifier { get; } [Export ("accessGranted")] - bool AccessGranted { get; } + bool AccessGranted { get; } [Deprecated (PlatformName.iOS, 11, 0, message: "Use Twitter SDK instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Twitter SDK instead.")] @@ -151,14 +152,16 @@ namespace Accounts { [Deprecated (PlatformName.iOS, 11, 0, message: "Use Tencent Weibo SDK instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Tencent Weibo SDK instead.")] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("ACAccountTypeIdentifierTencentWeibo")] NSString TencentWeibo { get; } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use LinkedIn SDK instead.")] - [Mac (10,9)] + [Mac (10, 9)] [Field ("ACAccountTypeIdentifierLinkedIn")] NSString LinkedIn { get; } } @@ -169,7 +172,7 @@ namespace Accounts { interface ACFacebookKey { [Field ("ACFacebookAppIdKey")] NSString AppId { get; } - + [Field ("ACFacebookPermissionsKey")] NSString Permissions { get; } @@ -181,8 +184,7 @@ namespace Accounts { [Deprecated (PlatformName.iOS, 11, 0, message: "Use Facebook SDK instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Facebook SDK instead.")] [Static] - interface ACFacebookAudienceValue - { + interface ACFacebookAudienceValue { [Field ("ACFacebookAudienceEveryone")] NSString Everyone { get; } @@ -195,17 +197,19 @@ namespace Accounts { [Deprecated (PlatformName.iOS, 11, 0, message: "Use Tencent Weibo SDK instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Tencent Weibo SDK instead.")] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Static] interface ACTencentWeiboKey { [Field ("ACTencentWeiboAppIdKey")] NSString AppId { get; } } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use LinkedIn SDK instead.")] - [Mac (10,9)] + [Mac (10, 9)] [Static] interface ACLinkedInKey { [Field ("ACLinkedInAppIdKey")] diff --git a/src/addressbookui.cs b/src/addressbookui.cs index 42a34dcea4..40d2ab3148 100644 --- a/src/addressbookui.cs +++ b/src/addressbookui.cs @@ -36,7 +36,7 @@ namespace AddressBookUI { IntPtr _AddressBook { get; set; } [Export ("parentGroup"), Internal] - IntPtr _ParentGroup {get; set;} + IntPtr _ParentGroup { get; set; } [Wrap ("WeakDelegate")] [Protocolize] @@ -54,7 +54,7 @@ namespace AddressBookUI { [Export ("newPersonViewController:didCompleteWithNewPerson:")] [Abstract] - void DidCompleteWithNewPerson (ABNewPersonViewController controller, [NullAllowed]ABPerson person); + void DidCompleteWithNewPerson (ABNewPersonViewController controller, [NullAllowed] ABPerson person); } [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Contacts' API instead.")] @@ -70,30 +70,30 @@ namespace AddressBookUI { [NullAllowed] [Export ("displayedProperties", ArgumentSemantic.Copy), Internal] - NSNumber[] _DisplayedProperties {get; set;} + NSNumber [] _DisplayedProperties { get; set; } [Export ("addressBook"), Internal] - IntPtr _AddressBook {get; set;} + IntPtr _AddressBook { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - ABPeoplePickerNavigationControllerDelegate Delegate {get; set;} + ABPeoplePickerNavigationControllerDelegate Delegate { get; set; } [NullAllowed] // by default this property is null [Export ("peoplePickerDelegate", ArgumentSemantic.Assign)] - NSObject WeakDelegate {get; set;} + NSObject WeakDelegate { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("predicateForEnablingPerson", ArgumentSemantic.Copy)] [NullAllowed] NSPredicate PredicateForEnablingPerson { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("predicateForSelectionOfPerson", ArgumentSemantic.Copy)] [NullAllowed] NSPredicate PredicateForSelectionOfPerson { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("predicateForSelectionOfProperty", ArgumentSemantic.Copy)] [NullAllowed] NSPredicate PredicateForSelectionOfProperty { get; set; } @@ -124,7 +124,7 @@ namespace AddressBookUI { [Export ("peoplePickerNavigationController:didSelectPerson:property:identifier:")] void DidSelectPerson (ABPeoplePickerNavigationController peoplePicker, ABPerson selectedPerson, int /* ABPropertyId = int32 */ propertyId, int /* ABMultiValueIdentifier = int32 */ identifier); - } + } [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Contacts' API instead.")] [BaseType (typeof (UIViewController))] @@ -134,31 +134,31 @@ namespace AddressBookUI { NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); [Export ("displayedPerson"), Internal] - IntPtr _DisplayedPerson {get; set;} + IntPtr _DisplayedPerson { get; set; } [NullAllowed] [Export ("displayedProperties", ArgumentSemantic.Copy), Internal] - NSNumber[] _DisplayedProperties { get; set; } + NSNumber [] _DisplayedProperties { get; set; } [Export ("addressBook"), Internal] - IntPtr _AddressBook {get; set;} + IntPtr _AddressBook { get; set; } [Export ("allowsActions")] - bool AllowsActions { get; set;} + bool AllowsActions { get; set; } [Export ("allowsEditing")] - bool AllowsEditing {get; set;} + bool AllowsEditing { get; set; } [Export ("shouldShowLinkedPeople")] bool ShouldShowLinkedPeople { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - ABPersonViewControllerDelegate Delegate {get; set;} + ABPersonViewControllerDelegate Delegate { get; set; } [NullAllowed] // by default this property is null [Export ("personViewDelegate", ArgumentSemantic.Assign)] - NSObject WeakDelegate {get; set;} + NSObject WeakDelegate { get; set; } // Obsolete for public use; we should "remove" this member by making // it [Internal] in some future release, as it's needed internally. @@ -168,74 +168,74 @@ namespace AddressBookUI { } [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Contacts' API instead.")] - [Static, iOS (8,0)] + [Static, iOS (8, 0)] interface ABPersonPredicateKey { [Field ("ABPersonBirthdayProperty")] NSString Birthday { get; } - + [Field ("ABPersonDatesProperty")] NSString Dates { get; } - + [Field ("ABPersonDepartmentNameProperty")] NSString DepartmentName { get; } - + [Field ("ABPersonEmailAddressesProperty")] NSString EmailAddresses { get; } - + [Field ("ABPersonFamilyNameProperty")] NSString FamilyName { get; } - + [Field ("ABPersonGivenNameProperty")] NSString GivenName { get; } - + [Field ("ABPersonInstantMessageAddressesProperty")] NSString InstantMessageAddresses { get; } - + [Field ("ABPersonJobTitleProperty")] NSString JobTitle { get; } - + [Field ("ABPersonMiddleNameProperty")] NSString MiddleName { get; } - + [Field ("ABPersonNamePrefixProperty")] NSString NamePrefix { get; } - + [Field ("ABPersonNameSuffixProperty")] NSString NameSuffix { get; } - + [Field ("ABPersonNicknameProperty")] NSString Nickname { get; } - + [Field ("ABPersonNoteProperty")] NSString Note { get; } - + [Field ("ABPersonOrganizationNameProperty")] NSString OrganizationName { get; } - + [Field ("ABPersonPhoneNumbersProperty")] NSString PhoneNumbers { get; } - + [Field ("ABPersonPhoneticFamilyNameProperty")] NSString PhoneticFamilyName { get; } - + [Field ("ABPersonPhoneticGivenNameProperty")] NSString PhoneticGivenName { get; } - + [Field ("ABPersonPhoneticMiddleNameProperty")] NSString PhoneticMiddleName { get; } - + [Field ("ABPersonPostalAddressesProperty")] NSString PostalAddresses { get; } - + [Field ("ABPersonPreviousFamilyNameProperty")] NSString PreviousFamilyName { get; } - + [Field ("ABPersonRelatedNamesProperty")] NSString RelatedNames { get; } - + [Field ("ABPersonSocialProfilesProperty")] NSString SocialProfiles { get; } - + [Field ("ABPersonUrlAddressesProperty")] NSString UrlAddresses { get; } } @@ -260,31 +260,31 @@ namespace AddressBookUI { [NullAllowed] // by default this property is null [Export ("alternateName", ArgumentSemantic.Copy)] - string AlternateName {get; set;} + string AlternateName { get; set; } [NullAllowed] // by default this property is null [Export ("message", ArgumentSemantic.Copy)] - string Message {get; set;} + string Message { get; set; } [Export ("displayedPerson"), Internal] - IntPtr _DisplayedPerson {get; set;} + IntPtr _DisplayedPerson { get; set; } [Export ("addressBook"), Internal] - IntPtr _AddressBook {get; set;} + IntPtr _AddressBook { get; set; } [Export ("allowsActions")] - bool AllowsActions {get; set;} + bool AllowsActions { get; set; } [Export ("allowsAddingToAddressBook")] - bool AllowsAddingToAddressBook {get; set;} + bool AllowsAddingToAddressBook { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - ABUnknownPersonViewControllerDelegate Delegate {get; set;} + ABUnknownPersonViewControllerDelegate Delegate { get; set; } [NullAllowed] // by default this property is null [Export ("unknownPersonViewDelegate", ArgumentSemantic.Assign)] - NSObject WeakDelegate {get; set;} + NSObject WeakDelegate { get; set; } } [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Contacts' API instead.")] diff --git a/src/adservices.cs b/src/adservices.cs index 463aa2c192..3310f64e22 100644 --- a/src/adservices.cs +++ b/src/adservices.cs @@ -4,9 +4,10 @@ using System; namespace AdServices { - [Mac (11,1), iOS (14,3)] - [MacCatalyst (14,3)] - [NoTV][NoWatch] + [Mac (11, 1), iOS (14, 3)] + [MacCatalyst (14, 3)] + [NoTV] + [NoWatch] [Native] [ErrorDomain ("AAAttributionErrorDomain")] enum AAAttributionErrorCode : long { @@ -15,9 +16,10 @@ namespace AdServices { PlatformNotSupported = 3, } - [Mac (11,1), iOS (14,3)] - [MacCatalyst (14,3)] - [NoTV][NoWatch] + [Mac (11, 1), iOS (14, 3)] + [MacCatalyst (14, 3)] + [NoTV] + [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AAAttribution { diff --git a/src/adsupport.cs b/src/adsupport.cs index ea76ed3301..e975398976 100644 --- a/src/adsupport.cs +++ b/src/adsupport.cs @@ -13,7 +13,7 @@ using System; namespace AdSupport { - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASIdentifierManager { @@ -31,7 +31,8 @@ namespace AdSupport { [Export ("advertisingIdentifier")] NSUuid AdvertisingIdentifier { get; } - [NoTV][NoiOS] + [NoTV] + [NoiOS] [NoMac] // unclear when that was changed (xcode 12 GM allowed it) [Export ("clearAdvertisingIdentifier")] void ClearAdvertisingIdentifier (); diff --git a/src/appclip.cs b/src/appclip.cs index 5155d0c11b..c5cb966faf 100644 --- a/src/appclip.cs +++ b/src/appclip.cs @@ -6,8 +6,8 @@ using Foundation; namespace AppClip { - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [ErrorDomain ("APActivationPayloadErrorDomain")] [Native] public enum APActivationPayloadErrorCode : long { @@ -15,8 +15,8 @@ namespace AppClip { DoesNotMatch = 2, } - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface APActivationPayload : NSSecureCoding, NSCopying { diff --git a/src/appkit.cs b/src/appkit.cs index 6328753321..98a9e987c3 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -79,42 +79,40 @@ namespace AppKit { // [Export ("drawAtPoint:fromRect:operation:fraction:")] // void DrawAtPoint (CGPoint atPoint, CGRect fromRect, NSCompositingOperation operation, float fractionDelta); //} - + [NoMacCatalyst] [BaseType (typeof (NSCell))] interface NSActionCell { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); - + NativeHandle Constructor (NSImage image); + [Export ("target", ArgumentSemantic.Weak), NullAllowed] - NSObject Target { get; set; } - + NSObject Target { get; set; } + [Export ("action"), NullAllowed] - Selector Action { get; set; } - + Selector Action { get; set; } + [Export ("tag")] - nint Tag { get; set; } - + nint Tag { get; set; } + } [MacCatalyst (13, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSAlignmentFeedbackToken - { + [BaseType (typeof (NSObject))] + interface NSAlignmentFeedbackToken { } interface INSAlignmentFeedbackToken { } // @interface NSAlignmentFeedbackFilter : NSObject - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSAlignmentFeedbackFilter - { + [BaseType (typeof (NSObject))] + interface NSAlignmentFeedbackFilter { [Static] [Export ("inputEventMask")] NSEventMask InputEventMask { get; } @@ -138,7 +136,7 @@ namespace AppKit { INSAlignmentFeedbackToken GetTokenForVerticalMovement ([NullAllowed] NSView view, nfloat previousY, nfloat alignedY, nfloat defaultY); [Export ("performFeedback:performanceTime:")] - void PerformFeedback (INSAlignmentFeedbackToken[] tokens, NSHapticFeedbackPerformanceTime performanceTime); + void PerformFeedback (INSAlignmentFeedbackToken [] tokens, NSHapticFeedbackPerformanceTime performanceTime); } // @@ -147,24 +145,24 @@ namespace AppKit { interface NSAnimatablePropertyContainer { [Export ("animator")] NSObject Animator { [return: Proxy] get; } - + [Export ("animations")] NSDictionary Animations { get; set; } - + [Export ("animationForKey:")] NSObject AnimationFor (NSString key); - + [Static, Export ("defaultAnimationForKey:")] NSObject DefaultAnimationFor (NSString key); } - + interface NSAnimationProgressMarkEventArgs { [Export ("NSAnimationProgressMark")] float Progress { get; } /* float, not CGFloat */ } [NoMacCatalyst] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSAnimationDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSAnimationDelegate) })] interface NSAnimation : NSCoding, NSCopying { #if NET [DesignatedInitializer] @@ -180,34 +178,34 @@ namespace AppKit { [Export ("initWithDuration:animationCurve:")] IntPtr Constant (double duration, NSAnimationCurve animationCurve); #endif - + [Export ("startAnimation")] void StartAnimation (); - + [Export ("stopAnimation")] void StopAnimation (); - + [Export ("isAnimating")] bool IsAnimating (); - + [Export ("currentProgress")] float CurrentProgress { get; set; } /* NSAnimationProgress = float */ - + [Export ("duration")] - double Duration { get; set; } - + double Duration { get; set; } + [Export ("animationBlockingMode")] - NSAnimationBlockingMode AnimationBlockingMode { get; set; } - + NSAnimationBlockingMode AnimationBlockingMode { get; set; } + [Export ("frameRate")] - float FrameRate { get; set; } /* float, not CGFloat */ - + float FrameRate { get; set; } /* float, not CGFloat */ + [Export ("animationCurve")] - NSAnimationCurve AnimationCurve { get; set; } - + NSAnimationCurve AnimationCurve { get; set; } + [Export ("currentValue")] float CurrentValue { get; } /* float, not CGFloat */ - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -216,23 +214,23 @@ namespace AppKit { NSAnimationDelegate Delegate { get; set; } [Export ("progressMarks", ArgumentSemantic.Copy)] - NSNumber [] ProgressMarks { get; set; } - + NSNumber [] ProgressMarks { get; set; } + [Export ("addProgressMark:")] void AddProgressMark (float /* NSAnimationProgress = float */ progressMark); - + [Export ("removeProgressMark:")] void RemoveProgressMark (float /* NSAnimationProgress = float */ progressMark); - + [Export ("startWhenAnimation:reachesProgress:")] void StartWhenAnimationReaches (NSAnimation animation, float /* NSAnimationProgress = float */ startProgress); - + [Export ("stopWhenAnimation:reachesProgress:")] void StopWhenAnimationReaches (NSAnimation animation, float /* NSAnimationProgress = float */ stopProgress); - + [Export ("clearStartAnimation")] void ClearStartAnimation (); - + [Export ("clearStopAnimation")] void ClearStopAnimation (); @@ -251,7 +249,7 @@ namespace AppKit { [Field ("NSAnimationTriggerOrderOut")] NSString TriggerOrderOut { get; } } - + [NoiOS] [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -260,16 +258,16 @@ namespace AppKit { interface NSAnimationDelegate { [Export ("animationShouldStart:"), DelegateName ("NSAnimationPredicate"), DefaultValue (true)] bool AnimationShouldStart (NSAnimation animation); - + [Export ("animationDidStop:"), EventArgs ("NSAnimation")] void AnimationDidStop (NSAnimation animation); - + [Export ("animationDidEnd:"), EventArgs ("NSAnimation")] void AnimationDidEnd (NSAnimation animation); - + [Export ("animation:valueForProgress:"), DelegateName ("NSAnimationProgress"), DefaultValueFromArgumentAttribute ("progress")] float /* float, not CGFloat */ ComputeAnimationCurve (NSAnimation animation, float /* NSAnimationProgress = float */ progress); - + [Export ("animation:didReachProgressMark:"), EventArgs ("NSAnimation")] void AnimationDidReachProgressMark (NSAnimation animation, float /* NSAnimationProgress = float */ progress); } @@ -301,7 +299,7 @@ namespace AppKit { void RunAnimation (Action changes, [NullAllowed] Action completionHandler); [Static] - [Mac (10,12)] + [Mac (10, 12)] [Export ("runAnimationGroup:")] void RunAnimation (Action changes); @@ -313,81 +311,81 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSAlertDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSAlertDelegate) })] interface NSAlert { [Static, Export ("alertWithError:")] - NSAlert WithError (NSError error); - + NSAlert WithError (NSError error); + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use constructor instead.")] [Static, Export ("alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:")] - NSAlert WithMessage([NullAllowed] string message, [NullAllowed] string defaultButton, [NullAllowed] string alternateButton, [NullAllowed] string otherButton, string full); - + NSAlert WithMessage ([NullAllowed] string message, [NullAllowed] string defaultButton, [NullAllowed] string alternateButton, [NullAllowed] string otherButton, string full); + [Export ("messageText")] string MessageText { get; set; } - + [Export ("informativeText")] string InformativeText { get; set; } - + [Export ("icon", ArgumentSemantic.Retain)] NSImage Icon { get; set; } - + [Export ("addButtonWithTitle:")] NSButton AddButton (string title); - + [Export ("buttons")] NSButton [] Buttons { get; } - + [Export ("showsHelp")] bool ShowsHelp { get; set; } - + [Export ("helpAnchor")] string HelpAnchor { get; set; } - + [Export ("alertStyle")] NSAlertStyle AlertStyle { get; set; } - + [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] NSAlertDelegate Delegate { get; set; } - + [Export ("showsSuppressionButton")] - bool ShowsSuppressionButton { get; set; } - + bool ShowsSuppressionButton { get; set; } + [Export ("suppressionButton")] - NSButton SuppressionButton { get; } - + NSButton SuppressionButton { get; } + [Export ("accessoryView", ArgumentSemantic.Retain), NullAllowed] - NSView AccessoryView { get; set; } - + NSView AccessoryView { get; set; } + [Export ("layout")] void Layout (); - + [Export ("runModal")] nint RunModal (); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use BeginSheetModalForWindow (NSWindow sheetWindow, Action handler) instead.")] [Export ("beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:")] - void BeginSheet ([NullAllowed] NSWindow window, [NullAllowed] NSObject modalDelegate, [NullAllowed] Selector didEndSelector, IntPtr contextInfo); + void BeginSheet ([NullAllowed] NSWindow window, [NullAllowed] NSObject modalDelegate, [NullAllowed] Selector didEndSelector, IntPtr contextInfo); - [Mac (10,9)] + [Mac (10, 9)] [Export ("beginSheetModalForWindow:completionHandler:")] [Async] - void BeginSheet ([NullAllowed]NSWindow Window, [NullAllowed] Action handler); + void BeginSheet ([NullAllowed] NSWindow Window, [NullAllowed] Action handler); [Export ("window")] - NSPanel Window { get; } + NSPanel Window { get; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] [Protocol] interface NSAlertDelegate { [Export ("alertShowHelp:"), DelegateName ("NSAlertPredicate"), DefaultValue (false)] - bool ShowHelp (NSAlert alert); + bool ShowHelp (NSAlert alert); } [NoMacCatalyst] @@ -399,7 +397,7 @@ namespace AppKit { bool IsLaunchFromUserNotification { get; } } - [Mac (10,9)] + [Mac (10, 9)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSAppearance : NSSecureCoding { @@ -410,20 +408,20 @@ namespace AppKit { [Export ("name")] string Name { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("allowsVibrancy")] bool AllowsVibrancy { get; } [Static, Export ("currentAppearance")] [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'CurrentDrawingAppearance' instead.")] - NSAppearance CurrentAppearance { get; [Bind("setCurrentAppearance:")] set; } + NSAppearance CurrentAppearance { get; [Bind ("setCurrentAppearance:")] set; } [Mac (11, 0)] [Static] [Export ("currentDrawingAppearance", ArgumentSemantic.Strong)] NSAppearance CurrentDrawingAppearance { get; } - [Mac (11,0)] + [Mac (11, 0)] [Export ("performAsCurrentDrawingAppearance:")] void PerformAsCurrentDrawingAppearance (Action receiver); @@ -442,11 +440,11 @@ namespace AppKit { [Field ("NSAppearanceNameLightContent")] NSString NameLightContent { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("NSAppearanceNameVibrantDark")] NSString NameVibrantDark { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("NSAppearanceNameVibrantLight")] NSString NameVibrantLight { get; } @@ -466,15 +464,15 @@ namespace AppKit { [Field ("NSAppearanceNameAccessibilityHighContrastVibrantDark")] NSString NameAccessibilityHighContrastVibrantDark { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("bestMatchFromAppearancesWithNames:")] [return: NullAllowed] - string FindBestMatch (string[] appearances); + string FindBestMatch (string [] appearances); } - interface INSAppearanceCustomization {} + interface INSAppearanceCustomization { } - [Mac (10,9)] + [Mac (10, 9)] [NoMacCatalyst] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -482,7 +480,7 @@ namespace AppKit { #if NET [Abstract] #endif - [Mac (10,9)] + [Mac (10, 9)] [NullAllowed] [Export ("appearance", ArgumentSemantic.Strong)] NSAppearance Appearance { get; set; } @@ -490,123 +488,123 @@ namespace AppKit { #if NET [Abstract] #endif - [Mac (10,9)] + [Mac (10, 9)] [Export ("effectiveAppearance", ArgumentSemantic.Strong)] NSAppearance EffectiveAppearance { get; } } [NoMacCatalyst] - [BaseType (typeof (NSResponder), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSApplicationDelegate) })] + [BaseType (typeof (NSResponder), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSApplicationDelegate) })] [DisableDefaultCtor] // An uncaught exception was raised: Creating more than one Application interface NSApplication : NSAccessibilityElementProtocol, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibility, NSAppearanceCustomization { [Export ("sharedApplication"), Static, ThreadSafe] NSApplication SharedApplication { get; } - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] NSApplicationDelegate Delegate { get; set; } - + [Export ("context")] [Deprecated (PlatformName.MacOSX, 10, 12, message: "This method always returns null. If you need access to the current drawing context, use NSGraphicsContext.CurrentContext inside of a draw operation.")] NSGraphicsContext Context { get; } - + [Export ("hide:")] void Hide (NSObject sender); - + [Export ("unhide:")] void Unhide (NSObject sender); - + [Export ("unhideWithoutActivation")] void UnhideWithoutActivation (); - + [Export ("windowWithWindowNumber:")] NSWindow WindowWithWindowNumber (nint windowNum); - + [Export ("mainWindow")] NSWindow MainWindow { get; } - + [Export ("keyWindow")] NSWindow KeyWindow { get; } - + [Export ("isActive")] bool Active { get; } - + [Export ("isHidden")] bool Hidden { get; } - + [Export ("isRunning")] bool Running { get; } - + [Export ("deactivate")] void Deactivate (); - + [Export ("activateIgnoringOtherApps:")] void ActivateIgnoringOtherApps (bool flag); - + [Export ("hideOtherApplications:")] void HideOtherApplications (NSObject sender); - + [Export ("unhideAllApplications:")] void UnhideAllApplications (NSObject sender); - + [Export ("finishLaunching")] void FinishLaunching (); - + [Export ("run")] void Run (); - + [Export ("runModalForWindow:")] nint RunModalForWindow (NSWindow theWindow); - + [Export ("stop:")] void Stop (NSObject sender); - + [Export ("stopModal")] void StopModal (); - + [Export ("stopModalWithCode:")] void StopModalWithCode (nint returnCode); - + [Export ("abortModal"), ThreadSafe] void AbortModal (); - + [Export ("modalWindow")] NSWindow ModalWindow { get; } - + [Export ("beginModalSessionForWindow:")] IntPtr BeginModalSession (NSWindow theWindow); - + [Export ("runModalSession:")] nint RunModalSession (IntPtr session); - + [Export ("endModalSession:")] void EndModalSession (IntPtr session); - + [Export ("terminate:")] void Terminate ([NullAllowed] NSObject sender); - + [Export ("requestUserAttention:")] nint RequestUserAttention (NSRequestUserAttentionType requestType); - + [Export ("cancelUserAttentionRequest:")] void CancelUserAttentionRequest (nint request); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use NSWindow.BeginSheet instead.")] [Export ("beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:")] void BeginSheet (NSWindow sheet, NSWindow docWindow, [NullAllowed] NSObject modalDelegate, [NullAllowed] Selector didEndSelector, IntPtr contextInfo); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use NSWindow.EndSheet instead.")] [Export ("endSheet:")] void EndSheet (NSWindow sheet); - + [Deprecated (PlatformName.MacOSX, 10, 9)] [Export ("endSheet:returnCode:")] - void EndSheet (NSWindow sheet, nint returnCode); - + void EndSheet (NSWindow sheet, nint returnCode); + [Export ("nextEventMatchingMask:untilDate:inMode:dequeue:"), Protected] NSEvent NextEvent (NSEventMask mask, [NullAllowed] NSDate expiration, NSString runLoopMode, bool deqFlag); @@ -627,51 +625,51 @@ namespace AppKit { [Export ("discardEventsMatchingMask:beforeEvent:"), Protected] void DiscardEvents (nuint mask, NSEvent lastEvent); - + [ThreadSafe] [Export ("postEvent:atStart:")] void PostEvent (NSEvent theEvent, bool atStart); - + [Export ("currentEvent")] NSEvent CurrentEvent { get; } - + [Export ("sendEvent:")] void SendEvent (NSEvent theEvent); - + [Export ("preventWindowOrdering")] void PreventWindowOrdering (); - + [Export ("makeWindowsPerform:inOrder:")] [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use EnumerateWindows instead.")] NSWindow MakeWindowsPerform (Selector aSelector, bool inOrder); - + #if !NET [Obsolete ("Remove usage or use 'DangerousWindows' instead.")] [EditorBrowsable (EditorBrowsableState.Never)] - [Wrap ("DangerousWindows", IsVirtual = true)] + [Wrap ("DangerousWindows", IsVirtual = true)] NSWindow [] Windows { get; } #endif [Advice ("Use of DangerousWindows can prevent windows from leaving memory.")] [Export ("windows")] NSArray DangerousWindows { get; } - + [Export ("setWindowsNeedUpdate:")] void SetWindowsNeedUpdate (bool needUpdate); - + [Export ("updateWindows")] void UpdateWindows (); - + [Export ("mainMenu", ArgumentSemantic.Retain)] NSMenu MainMenu { get; set; } - + [Export ("helpMenu", ArgumentSemantic.Retain)] [NullAllowed] NSMenu HelpMenu { get; set; } - + [Export ("applicationIconImage", ArgumentSemantic.Retain)] NSImage ApplicationIconImage { get; set; } - + [Export ("activationPolicy"), Protected] NSApplicationActivationPolicy GetActivationPolicy (); @@ -680,72 +678,72 @@ namespace AppKit { [Export ("dockTile")] NSDockTile DockTile { get; } - + [Export ("sendAction:to:from:")] bool SendAction (Selector theAction, [NullAllowed] NSObject theTarget, [NullAllowed] NSObject sender); - + [Export ("targetForAction:")] NSObject TargetForAction (Selector theAction); - + [Export ("targetForAction:to:from:")] NSObject TargetForAction (Selector theAction, [NullAllowed] NSObject theTarget, [NullAllowed] NSObject sender); - + [Export ("tryToPerform:with:")] bool TryToPerform (Selector anAction, [NullAllowed] NSObject target); - + [Export ("validRequestorForSendType:returnType:")] [return: NullAllowed] NSObject ValidRequestor (string sendType, string returnType); - + [Export ("reportException:")] void ReportException (NSException theException); - + [Static] [Export ("detachDrawingThread:toTarget:withObject:")] void DetachDrawingThread (Selector selector, NSObject target, NSObject argument); - + [Export ("replyToApplicationShouldTerminate:")] void ReplyToApplicationShouldTerminate (bool shouldTerminate); - + [Export ("replyToOpenOrPrint:")] void ReplyToOpenOrPrint (NSApplicationDelegateReply reply); - + [Export ("orderFrontCharacterPalette:")] void OrderFrontCharacterPalette (NSObject sender); - + [Export ("presentationOptions")] NSApplicationPresentationOptions PresentationOptions { get; set; } - + [Export ("currentSystemPresentationOptions")] NSApplicationPresentationOptions CurrentSystemPresentationOptions { get; } - + [Export ("windowsMenu")] NSMenu WindowsMenu { get; set; } - + [Export ("arrangeInFront:")] void ArrangeInFront (NSObject sender); - + [Export ("removeWindowsItem:")] - void RemoveWindowsItem (NSWindow win); - + void RemoveWindowsItem (NSWindow win); + [Export ("addWindowsItem:title:filename:")] - void AddWindowsItem (NSWindow win, string title, bool isFilename); - + void AddWindowsItem (NSWindow win, string title, bool isFilename); + [Export ("changeWindowsItem:title:filename:")] - void ChangeWindowsItem (NSWindow win, string title, bool isFilename); - + void ChangeWindowsItem (NSWindow win, string title, bool isFilename); + [Export ("updateWindowsItem:")] - void UpdateWindowsItem (NSWindow win); - + void UpdateWindowsItem (NSWindow win); + [Export ("miniaturizeAll:")] void MiniaturizeAll (NSObject sender); - + [Export ("isFullKeyboardAccessEnabled")] bool FullKeyboardAccessEnabled { get; } [Export ("servicesProvider")] NSObject ServicesProvider { get; set; } - + [Export ("userInterfaceLayoutDirection")] #if !NET NSApplicationLayoutDirection UserInterfaceLayoutDirection { get; } @@ -775,7 +773,7 @@ namespace AppKit { [Export ("unregisterForRemoteNotifications")] void UnregisterForRemoteNotifications (); - [Mac (10,14)] + [Mac (10, 14)] [Export ("registerForRemoteNotifications")] void RegisterForRemoteNotifications (); @@ -825,16 +823,16 @@ namespace AppKit { [Notification, Field ("NSApplicationDidChangeScreenParametersNotification")] NSString DidChangeScreenParametersNotification { get; } - [Notification, Mac (12,1)] + [Notification, Mac (12, 1)] [Field ("NSApplicationProtectedDataWillBecomeUnavailableNotification")] NSString ProtectedDataWillBecomeUnavailableNotification { get; } - [Notification, Mac (12,1)] + [Notification, Mac (12, 1)] [Field ("NSApplicationProtectedDataDidBecomeAvailableNotification")] NSString ProtectedDataDidBecomeAvailableNotification { get; } [Field ("NSApplicationLaunchIsDefaultLaunchKey")] - NSString LaunchIsDefaultLaunchKey { get; } + NSString LaunchIsDefaultLaunchKey { get; } [Field ("NSApplicationLaunchRemoteNotificationKey")] NSString LaunchRemoteNotificationKey { get; } @@ -846,7 +844,7 @@ namespace AppKit { NSString DidFinishRestoringWindowsNotification { get; } [Export ("occlusionState")] - [Mac (10,9)] + [Mac (10, 9)] NSApplicationOcclusionState OcclusionState { get; } // This comes from the NSWindowRestoration category (defined on NSApplication: '@interface NSApplication (NSWindowRestoration)') @@ -873,18 +871,18 @@ namespace AppKit { void OrderFrontStandardAboutPanelWithOptions2 (NSDictionary optionsDictionary); #endif - [Mac (10,12)] + [Mac (10, 12)] [Export ("enumerateWindowsWithOptions:usingBlock:")] void EnumerateWindows (NSWindowListOptions options, NSApplicationEnumerateWindowsHandler block); - [Mac (12,0)] + [Mac (12, 0)] [Export ("protectedDataAvailable")] bool ProtectedDataAvailable { [Bind ("isProtectedDataAvailable")] get; } } [NoMacCatalyst] [Category] - [BaseType (typeof(NSApplication))] + [BaseType (typeof (NSApplication))] interface NSApplication_NSServicesMenu { [Export ("registerServicesMenuSendTypes:returnTypes:"), EventArgs ("NSApplicationRegister")] void RegisterServicesMenu (string [] sendTypes, string [] returnTypes); @@ -892,7 +890,7 @@ namespace AppKit { [NoMacCatalyst] [Category] - [BaseType (typeof(NSApplication))] + [BaseType (typeof (NSApplication))] interface NSApplication_NSStandardAboutPanel { [Export ("orderFrontStandardAboutPanel:")] void OrderFrontStandardAboutPanel ([NullAllowed] NSObject sender); @@ -936,90 +934,90 @@ namespace AppKit { #else delegate void ContinueUserActivityRestorationHandler (NSObject [] restorableObjects); #endif - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] [Protocol] interface NSApplicationDelegate { [Export ("applicationShouldTerminate:"), DelegateName ("NSApplicationTermination"), DefaultValue (NSApplicationTerminateReply.Now)] - NSApplicationTerminateReply ApplicationShouldTerminate (NSApplication sender); - + NSApplicationTerminateReply ApplicationShouldTerminate (NSApplication sender); + [Export ("application:openFile:"), DelegateName ("NSApplicationFile"), DefaultValue (false)] - bool OpenFile (NSApplication sender, string filename); - + bool OpenFile (NSApplication sender, string filename); + [Export ("application:openFiles:"), EventArgs ("NSApplicationFiles")] void OpenFiles (NSApplication sender, string [] filenames); - + [Export ("application:openTempFile:"), DelegateName ("NSApplicationFile"), DefaultValue (false)] - bool OpenTempFile (NSApplication sender, string filename); - + bool OpenTempFile (NSApplication sender, string filename); + [Export ("applicationShouldOpenUntitledFile:"), DelegateName ("NSApplicationPredicate"), DefaultValue (false)] - bool ApplicationShouldOpenUntitledFile (NSApplication sender); - + bool ApplicationShouldOpenUntitledFile (NSApplication sender); + [Export ("applicationOpenUntitledFile:"), DelegateName ("NSApplicationPredicate"), DefaultValue (false)] bool ApplicationOpenUntitledFile (NSApplication sender); - + [Export ("application:openFileWithoutUI:"), DelegateName ("NSApplicationFileCommand"), DefaultValue (false)] bool OpenFileWithoutUI (NSObject sender, string filename); - + [Export ("application:printFile:"), DelegateName ("NSApplicationFile"), DefaultValue (false)] bool PrintFile (NSApplication sender, string filename); - + [Export ("application:printFiles:withSettings:showPrintPanels:"), DelegateName ("NSApplicationPrint"), DefaultValue (NSApplicationPrintReply.Failure)] NSApplicationPrintReply PrintFiles (NSApplication application, string [] fileNames, NSDictionary printSettings, bool showPrintPanels); - + [Export ("applicationShouldTerminateAfterLastWindowClosed:"), DelegateName ("NSApplicationPredicate"), DefaultValue (false)] bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender); - + [Export ("applicationShouldHandleReopen:hasVisibleWindows:"), DelegateName ("NSApplicationReopen"), DefaultValue (false)] bool ApplicationShouldHandleReopen (NSApplication sender, bool hasVisibleWindows); - + [Export ("applicationDockMenu:"), DelegateName ("NSApplicationMenu"), DefaultValue (null)] NSMenu ApplicationDockMenu (NSApplication sender); - + [Export ("application:willPresentError:"), DelegateName ("NSApplicationError"), DefaultValue (null)] NSError WillPresentError (NSApplication application, NSError error); - + [Export ("applicationWillFinishLaunching:"), EventArgs ("NSNotification")] void WillFinishLaunching (NSNotification notification); - + [Export ("applicationDidFinishLaunching:"), EventArgs ("NSNotification")] void DidFinishLaunching (NSNotification notification); - + [Export ("applicationWillHide:"), EventArgs ("NSNotification")] void WillHide (NSNotification notification); - + [Export ("applicationDidHide:"), EventArgs ("NSNotification")] void DidHide (NSNotification notification); - + [Export ("applicationWillUnhide:"), EventArgs ("NSNotification")] void WillUnhide (NSNotification notification); - + [Export ("applicationDidUnhide:"), EventArgs ("NSNotification")] void DidUnhide (NSNotification notification); - + [Export ("applicationWillBecomeActive:"), EventArgs ("NSNotification")] void WillBecomeActive (NSNotification notification); - + [Export ("applicationDidBecomeActive:"), EventArgs ("NSNotification")] void DidBecomeActive (NSNotification notification); - + [Export ("applicationWillResignActive:"), EventArgs ("NSNotification")] void WillResignActive (NSNotification notification); - + [Export ("applicationDidResignActive:"), EventArgs ("NSNotification")] void DidResignActive (NSNotification notification); - + [Export ("applicationWillUpdate:"), EventArgs ("NSNotification")] void WillUpdate (NSNotification notification); - + [Export ("applicationDidUpdate:"), EventArgs ("NSNotification")] void DidUpdate (NSNotification notification); - + [Export ("applicationWillTerminate:"), EventArgs ("NSNotification")] void WillTerminate (NSNotification notification); - + [Export ("applicationDidChangeScreenParameters:"), EventArgs ("NSNotification")] void ScreenParametersChanged (NSNotification notification); @@ -1027,19 +1025,19 @@ namespace AppKit { [Obsolete ("Use the 'RegisterServicesMenu2' on NSApplication.")] [Export ("registerServicesMenuSendTypes:returnTypes:"), EventArgs ("NSApplicationRegister")] void RegisterServicesMenu (string [] sendTypes, string [] returnTypes); - + [Obsolete ("Use the 'INSServicesMenuRequestor' protocol.")] [Export ("writeSelectionToPasteboard:types:"), DelegateName ("NSApplicationSelection"), DefaultValue (false)] bool WriteSelectionToPasteboard (NSPasteboard board, string [] types); - + [Obsolete ("Use the 'INSServicesMenuRequestor' protocol.")] [Export ("readSelectionFromPasteboard:"), DelegateName ("NSPasteboardPredicate"), DefaultValue (false)] bool ReadSelectionFromPasteboard (NSPasteboard pboard); - + [Obsolete ("Use the 'OrderFrontStandardAboutPanel2' on NSApplication.")] [Export ("orderFrontStandardAboutPanel:"), EventArgs ("NSObject")] void OrderFrontStandardAboutPanel (NSObject sender); - + [Obsolete ("Use the 'OrderFrontStandardAboutPanelWithOptions2' on NSApplication.")] [Export ("orderFrontStandardAboutPanelWithOptions:"), EventArgs ("NSDictionary")] void OrderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary); @@ -1060,65 +1058,64 @@ namespace AppKit { [Export ("application:didDecodeRestorableState:"), EventArgs ("NSCoder")] void DecodedRestorableState (NSApplication app, NSCoder state); - [Mac (10,10)] + [Mac (10, 10)] [Export ("application:willContinueUserActivityWithType:"), DelegateName ("NSApplicationUserActivityType"), DefaultValue (false)] bool WillContinueUserActivity (NSApplication application, string userActivityType); - [Mac (10,10)] + [Mac (10, 10)] [Export ("application:continueUserActivity:restorationHandler:"), DelegateName ("NSApplicationContinueUserActivity"), DefaultValue (false)] bool ContinueUserActivity (NSApplication application, NSUserActivity userActivity, ContinueUserActivityRestorationHandler restorationHandler); - [Mac (10,10)] + [Mac (10, 10)] [Export ("application:didFailToContinueUserActivityWithType:error:"), EventArgs ("NSApplicationFailed"), DefaultValue (false)] void FailedToContinueUserActivity (NSApplication application, string userActivityType, NSError error); - [Mac (10,10)] + [Mac (10, 10)] [Export ("application:didUpdateUserActivity:"), EventArgs ("NSApplicationUpdatedUserActivity"), DefaultValue (false)] void UpdatedUserActivity (NSApplication application, NSUserActivity userActivity); - [Mac (10,12)] + [Mac (10, 12)] [Export ("application:userDidAcceptCloudKitShareWithMetadata:"), EventArgs ("NSApplicationUserAcceptedCloudKitShare")] void UserDidAcceptCloudKitShare (NSApplication application, CKShareMetadata metadata); - [Mac (10,13), EventArgs ("NSApplicationOpenUrls")] + [Mac (10, 13), EventArgs ("NSApplicationOpenUrls")] [Export ("application:openURLs:")] - void OpenUrls (NSApplication application, NSUrl[] urls); + void OpenUrls (NSApplication application, NSUrl [] urls); [Deprecated (PlatformName.MacOSX, 11, 0, message: "Now optional on NSApplicationDelegate.")] [Export ("application:delegateHandlesKey:"), DelegateName ("NSApplicationHandlesKey"), NoDefaultValue] bool HandlesKey (NSApplication sender, string key); - [Mac (12,0)] + [Mac (12, 0)] [IgnoredInDelegate] [Export ("applicationSupportsSecureRestorableState:")] bool SupportsSecureRestorableState (NSApplication application); - [Mac (12,0)] + [Mac (12, 0)] [IgnoredInDelegate] [Export ("application:handlerForIntent:")] [return: NullAllowed] NSObject GetHandler (NSApplication application, INIntent intent); - [Mac (12,0)] + [Mac (12, 0)] [IgnoredInDelegate] [Export ("applicationShouldAutomaticallyLocalizeKeyEquivalents:")] bool ShouldAutomaticallyLocalizeKeyEquivalents (NSApplication application); - [Mac (12,0)] + [Mac (12, 0)] [Export ("applicationProtectedDataWillBecomeUnavailable:")] void ProtectedDataWillBecomeUnavailable (NSNotification notification); - [Mac (12,0)] + [Mac (12, 0)] [Export ("applicationProtectedDataDidBecomeAvailable:")] void ProtectedDataDidBecomeAvailable (NSNotification notification); } [NoMacCatalyst] [Protocol] - interface NSServicesMenuRequestor - { + interface NSServicesMenuRequestor { [Export ("writeSelectionToPasteboard:types:")] - bool WriteSelectionToPasteboard (NSPasteboard pboard, string[] types); + bool WriteSelectionToPasteboard (NSPasteboard pboard, string [] types); [Export ("readSelectionFromPasteboard:")] bool ReadSelectionFromPasteboard (NSPasteboard pboard); @@ -1127,9 +1124,8 @@ namespace AppKit { [NoMacCatalyst] [Mac (10, 12, 2)] [Category] - [BaseType (typeof(NSApplication))] - interface NSApplication_NSTouchBarCustomization - { + [BaseType (typeof (NSApplication))] + interface NSApplication_NSTouchBarCustomization { [Export ("isAutomaticCustomizeTouchBarMenuItemEnabled")] bool GetAutomaticCustomizeTouchBarMenuItemEnabled (); @@ -1140,7 +1136,7 @@ namespace AppKit { void ToggleTouchBarCustomizationPalette ([NullAllowed] NSObject sender); } - + [NoMacCatalyst] [BaseType (typeof (NSObjectController))] interface NSArrayController { @@ -1459,11 +1455,11 @@ namespace AppKit { [Export ("flatness")] nfloat Flatness { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("appendBezierPathWithCGGlyph:inFont:")] void AppendPathWithCGGlyph (CGGlyph glyph, NSFont font); - [Mac (10,13)] + [Mac (10, 13)] [Export ("appendBezierPathWithCGGlyphs:count:inFont:")] [Internal] void _AppendBezierPathWithCGGlyphs (IntPtr glyphs, nint count, NSFont font); @@ -1482,11 +1478,11 @@ namespace AppKit { [Export ("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:")] NativeHandle Constructor (IntPtr planes, nint width, nint height, nint bps, nint spp, bool alpha, bool isPlanar, - string colorSpaceName, nint rBytes, nint pBits); + string colorSpaceName, nint rBytes, nint pBits); [Export ("initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:")] NativeHandle Constructor (IntPtr planes, nint width, nint height, nint bps, nint spp, bool alpha, bool isPlanar, string colorSpaceName, - NSBitmapFormat bitmapFormat, nint rBytes, nint pBits); + NSBitmapFormat bitmapFormat, nint rBytes, nint pBits); [Export ("initWithCGImage:")] NativeHandle Constructor (CGImage cgImage); @@ -1593,9 +1589,9 @@ namespace AppKit { [Export ("bitmapImageRepByRetaggingWithColorSpace:")] NSBitmapImageRep RetaggedWithColorSpace (NSColorSpace newSpace); - + [Export ("representationUsingType:properties:")] - NSData RepresentationUsingTypeProperties(NSBitmapImageFileType storageType, [NullAllowed] NSDictionary properties); + NSData RepresentationUsingTypeProperties (NSBitmapImageFileType storageType, [NullAllowed] NSDictionary properties); [Field ("NSImageCompressionMethod")] NSString CompressionMethod { get; } @@ -1636,7 +1632,7 @@ namespace AppKit { [Field ("NSImageEXIFData")] NSString EXIFData { get; } - [Mac (12,0)] + [Mac (12, 0)] [Field ("NSImageIPTCData")] NSString IptcData { get; } @@ -1653,40 +1649,40 @@ namespace AppKit { [Export ("borderType")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Transparent' property for NSNoBorder instead.")] NSBorderType BorderType { get; set; } - + [Export ("titlePosition")] NSTitlePosition TitlePosition { get; set; } - + [Export ("boxType")] NSBoxType BoxType { get; set; } - + [Export ("title")] string Title { get; set; } - + [Export ("titleFont", ArgumentSemantic.Retain)] NSFont TitleFont { get; set; } - + [Export ("borderRect")] - CGRect BorderRect { get; } - + CGRect BorderRect { get; } + [Export ("titleRect")] CGRect TitleRect { get; } - + [Export ("titleCell")] NSObject TitleCell { get; } - + [Export ("sizeToFit")] void SizeToFit (); - + [Export ("contentViewMargins")] - CGSize ContentViewMargins { get; set; } - + CGSize ContentViewMargins { get; set; } + [Export ("setFrameFromContentFrame:")] void SetFrameFromContentFrame (CGRect contentFrame); - + [Export ("contentView")] NSObject ContentView { get; set; } - + [Export ("transparent")] bool Transparent { [Bind ("isTransparent")] get; set; } @@ -1696,22 +1692,22 @@ namespace AppKit { [Export ("borderWidth")] nfloat BorderWidth { get; set; } - + [Export ("cornerRadius")] nfloat CornerRadius { get; set; } - + [ThreadSafe] // Bug 22909 - This can be called from a non-ui thread <= OS X 10.9 [Export ("borderColor", ArgumentSemantic.Copy)] NSColor BorderColor { get; set; } - + [ThreadSafe] // Bug 22909 - This can be called from a non-ui thread <= OS X 10.9 [Export ("fillColor", ArgumentSemantic.Copy)] NSColor FillColor { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSControl))] - // , Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSBrowserDelegate)})] + // , Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSBrowserDelegate)})] partial interface NSBrowser { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -1723,7 +1719,7 @@ namespace AppKit { bool Loaded { get; } [Export ("autohidesScroller")] - bool AutohidesScroller { get; set; } + bool AutohidesScroller { get; set; } [Export ("itemAtIndexPath:")] NSObject ItemAtIndexPath (NSIndexPath indexPath); @@ -1784,7 +1780,7 @@ namespace AppKit { NSIndexPath SelectionIndexPath { get; set; } [Export ("selectionIndexPaths", ArgumentSemantic.Copy)] - NSIndexPath [] SelectionIndexPaths { get; set; } + NSIndexPath [] SelectionIndexPaths { get; set; } [Export ("selectRowIndexes:inColumn:")] void SelectRowIndexes (NSIndexSet indexes, nint column); @@ -1894,7 +1890,7 @@ namespace AppKit { nfloat DefaultColumnWidth { get; set; } [Export ("columnsAutosaveName")] - string ColumnsAutosaveName { get; set; } + string ColumnsAutosaveName { get; set; } [Static] [Export ("removeSavedColumnsWithAutosaveName:")] @@ -1911,10 +1907,10 @@ namespace AppKit { void SetDraggingSourceOperationMask (NSDragOperation mask, bool isLocal); [Export ("allowsTypeSelect")] - bool AllowsTypeSelect { get; set; } + bool AllowsTypeSelect { get; set; } [Export ("backgroundColor", ArgumentSemantic.Retain)] - NSColor BackgroundColor { get; set; } + NSColor BackgroundColor { get; set; } [Export ("editItemAtIndexPath:withEvent:select:")] void EditItemAtIndexPath (NSIndexPath indexPath, NSEvent theEvent, bool select); @@ -1955,7 +1951,7 @@ namespace AppKit { bool SeparatesColumns { get; set; } [Export ("titled")] - bool Titled { [Bind ("isTitled")]get; set; } + bool Titled { [Bind ("isTitled")] get; set; } [Export ("minColumnWidth")] nfloat MinColumnWidth { get; set; } @@ -2114,12 +2110,12 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSCell))] interface NSBrowserCell { - [Mac (10,12)] + [Mac (10, 12)] [Export ("initTextCell:")] [DesignatedInitializer] NativeHandle Constructor (string str); - [Mac (10,12)] + [Mac (10, 12)] [Export ("initImageCell:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSImage image); @@ -2143,10 +2139,10 @@ namespace AppKit { //Detected properties [Export ("leaf")] - bool Leaf { [Bind ("isLeaf")]get; set; } + bool Leaf { [Bind ("isLeaf")] get; set; } [Export ("loaded")] - bool Loaded { [Bind ("isLoaded")]get; set; } + bool Loaded { [Bind ("isLoaded")] get; set; } [Export ("image", ArgumentSemantic.Retain)] NSImage Image { get; set; } @@ -2162,197 +2158,197 @@ namespace AppKit { [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [DesignatedInitializer] [Export ("initImageCell:")] NativeHandle Constructor (NSImage image); [Export ("title")] string Title { get; set; } - + [Export ("alternateTitle")] string AlternateTitle { get; set; } - + [Export ("alternateImage", ArgumentSemantic.Retain)] NSImage AlternateImage { get; set; } - + [Export ("imagePosition")] NSCellImagePosition ImagePosition { get; set; } - + [Export ("imageScaling")] NSImageScale ImageScale { get; set; } - + [Export ("highlightsBy")] nint HighlightsBy { get; set; } - + [Export ("showsStateBy")] nint ShowsStateBy { get; set; } - + [Export ("setButtonType:")] void SetButtonType (NSButtonType aType); - + [Export ("isOpaque")] bool IsOpaque { get; } - + [Export ("setFont:")] - void SetFont (NSFont fontObj); - + void SetFont (NSFont fontObj); + [Export ("transparent")] bool Transparent { [Bind ("isTransparent")] get; set; } - + [Export ("setPeriodicDelay:interval:")] void SetPeriodicDelay (float /* float, not CGFloat */ delay, float /* float, not CGFloat */ interval); - + [Export ("getPeriodicDelay:interval:")] void GetPeriodicDelay (out float /* float, not CGFloat */ delay, out float /* float, not CGFloat */ interval); - + [Export ("keyEquivalent")] string KeyEquivalent { get; set; } - + [Export ("keyEquivalentModifierMask")] NSEventModifierMask KeyEquivalentModifierMask { get; set; } - + [NullAllowed, Export ("keyEquivalentFont", ArgumentSemantic.Strong)] [Deprecated (PlatformName.MacOSX, 10, 15, message: "It always returns the NSButtonCell's font.")] NSFont KeyEquivalentFont { get; set; } - + [Export ("setKeyEquivalentFont:size:")] [Deprecated (PlatformName.MacOSX, 10, 15)] - void SetKeyEquivalentFont (string fontName, nfloat fontSize); - + void SetKeyEquivalentFont (string fontName, nfloat fontSize); + [Export ("performClick:")] void PerformClick (NSObject sender); - + [Export ("drawImage:withFrame:inView:")] void DrawImage (NSImage image, CGRect frame, NSView controlView); - + [Export ("drawTitle:withFrame:inView:")] CGRect DrawTitle (NSAttributedString title, CGRect frame, NSView controlView); - + [Export ("drawBezelWithFrame:inView:")] void DrawBezelWithFrame (CGRect frame, NSView controlView); [Deprecated (PlatformName.MacOSX, 10, 8, message: "This method no longer does anything and should not be called.")] [Export ("alternateMnemonicLocation")] nint AlternateMnemonicLocation { get; set; } - + [Export ("alternateMnemonic")] [Deprecated (PlatformName.MacOSX, 10, 8, message: "This method still will set Title with the ampersand stripped from the value, but does nothing else. Set the Title directly.")] string AlternateMnemonic { get; [Bind ("setAlternateTitleWithMnemonic:")] set; } - + [Export ("setGradientType:")] [Deprecated (PlatformName.MacOSX, 10, 12, message: "The GradientType property is unused, and setting it has no effect.")] void SetGradientType (NSGradientType type); - + [Export ("imageDimsWhenDisabled")] bool ImageDimsWhenDisabled { get; set; } - + [Export ("showsBorderOnlyWhileMouseInside")] bool ShowsBorderOnlyWhileMouseInside { get; set; } - + [Export ("mouseEntered:")] void MouseEntered (NSEvent theEvent); - + [Export ("mouseExited:")] void MouseExited (NSEvent theEvent); - + [Export ("backgroundColor")] NSColor BackgroundColor { get; set; } [Export ("attributedTitle")] NSAttributedString AttributedTitle { get; set; } - + [Export ("attributedAlternateTitle")] NSAttributedString AttributedAlternateTitle { get; set; } - + [Export ("bezelStyle")] NSBezelStyle BezelStyle { get; set; } [Export ("sound")] NSSound Sound { get; set; } - + } - + [NoMacCatalyst] [BaseType (typeof (NSControl))] interface NSButton : NSAccessibilityButton, NSUserInterfaceCompression, NSUserInterfaceValidations { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("buttonWithTitle:image:target:action:")] NSButton _CreateButton (string title, NSImage image, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("buttonWithTitle:target:action:")] NSButton _CreateButton (string title, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("buttonWithImage:target:action:")] NSButton _CreateButton (NSImage image, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("checkboxWithTitle:target:action:")] NSButton _CreateCheckbox (string title, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("radioButtonWithTitle:target:action:")] NSButton _CreateRadioButton (string title, [NullAllowed] NSObject target, [NullAllowed] Selector action); [Export ("title")] - string Title { get; set; } - + string Title { get; set; } + [Export ("alternateTitle")] string AlternateTitle { get; set; } - + [Export ("image", ArgumentSemantic.Retain), NullAllowed] NSImage Image { get; set; } - + [Export ("alternateImage", ArgumentSemantic.Retain), NullAllowed] - NSImage AlternateImage { get; set; } - + NSImage AlternateImage { get; set; } + [Export ("imagePosition")] - NSCellImagePosition ImagePosition { get; set; } - + NSCellImagePosition ImagePosition { get; set; } + [Export ("setButtonType:")] void SetButtonType (NSButtonType aType); - + [Export ("state")] NSCellStateValue State { get; set; } - + [Export ("bordered")] - bool Bordered { [Bind ("isBordered")] get; set; } - + bool Bordered { [Bind ("isBordered")] get; set; } + [Export ("transparent")] - bool Transparent { [Bind ("isTransparent")] get; set; } - + bool Transparent { [Bind ("isTransparent")] get; set; } + [Export ("setPeriodicDelay:interval:")] void SetPeriodicDelay (float /* float, not CGFloat */ delay, /* float, not CGFloat */ float interval); - + [Export ("getPeriodicDelay:interval:")] void GetPeriodicDelay (ref float /* float, not CGFloat */ delay, ref float /* float, not CGFloat */ interval); - + [Export ("keyEquivalent")] - string KeyEquivalent { get; set; } - + string KeyEquivalent { get; set; } + [Export ("keyEquivalentModifierMask")] - NSEventModifierMask KeyEquivalentModifierMask { get; set; } - + NSEventModifierMask KeyEquivalentModifierMask { get; set; } + [Export ("highlight:")] void Highlight (bool flag); - + [Export ("performKeyEquivalent:")] - bool PerformKeyEquivalent (NSEvent key); + bool PerformKeyEquivalent (NSEvent key); [Deprecated (PlatformName.MacOSX, 10, 8, message: "On 10.8, this method still will set the Title with the ampersand stripped from stringWithAmpersand, but does nothing else. Set the Title directly.")] [Export ("setTitleWithMnemonic:")] @@ -2362,14 +2358,14 @@ namespace AppKit { NSAttributedString AttributedTitle { get; set; } [Export ("attributedAlternateTitle")] - NSAttributedString AttributedAlternateTitle { get; set; } + NSAttributedString AttributedAlternateTitle { get; set; } [Export ("bezelStyle")] NSBezelStyle BezelStyle { get; set; } [Export ("allowsMixedState")] - bool AllowsMixedState { get; set;} - + bool AllowsMixedState { get; set; } + [Export ("setNextState")] void SetNextState (); @@ -2379,20 +2375,20 @@ namespace AppKit { [Export ("sound")] NSSound Sound { get; set; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("springLoaded")] bool IsSpringLoaded { [Bind ("isSpringLoaded")] get; set; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("maxAcceleratorLevel")] nint MaxAcceleratorLevel { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("imageHugsTitle")] bool ImageHugsTitle { get; set; } [NullAllowed] - [Mac (11,0)] + [Mac (11, 0)] [Export ("symbolConfiguration", ArgumentSemantic.Copy)] NSImageSymbolConfiguration SymbolConfiguration { get; set; } @@ -2411,7 +2407,7 @@ namespace AppKit { [Export ("hasDestructiveAction")] bool HasDestructiveAction { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSImageRep))] [DisableDefaultCtor] // An uncaught exception was raised: -[NSCachedImageRep init]: unrecognized selector sent to instance 0x14890e0 @@ -2433,130 +2429,130 @@ namespace AppKit { [Export ("rect")] CGRect Rectangle { get; } } - + [NoMacCatalyst] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] interface NSCell : NSUserInterfaceItemIdentification, NSCoding, NSCopying, NSAccessibilityElementProtocol, NSAccessibility, NSObjectAccessibilityExtensions { [Static, Export ("prefersTrackingUntilMouseUp")] bool PrefersTrackingUntilMouseUp { get; } - + [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [DesignatedInitializer] [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); - + NativeHandle Constructor (NSImage image); + [Export ("controlView")] NSView ControlView { get; set; } - + [Export ("type")] NSCellType CellType { get; set; } - + [Export ("state")] NSCellStateValue State { get; set; } - + [Export ("target", ArgumentSemantic.Weak), NullAllowed] NSObject Target { get; set; } - + [Export ("action"), NullAllowed] Selector Action { get; set; } - + [Export ("tag")] nint Tag { get; set; } - + [Export ("title")] string Title { get; set; } - + [Export ("isOpaque")] - bool IsOpaque { get; } - + bool IsOpaque { get; } + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } - + [Export ("sendActionOn:")] nint SendActionOn (NSEventType mask); - + [Export ("continuous")] bool IsContinuous { [Bind ("isContinuous")] get; set; } - + [Export ("editable")] bool Editable { [Bind ("isEditable")] get; set; } - + [Export ("selectable")] bool Selectable { [Bind ("isSelectable")] get; set; } - + [Export ("bordered")] bool Bordered { [Bind ("isBordered")] get; set; } - + [Export ("bezeled")] bool Bezeled { [Bind ("isBezeled")] get; set; } - + [Export ("scrollable")] bool Scrollable { [Bind ("isScrollable")] get; set; } - + [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } - + [Export ("alignment")] NSTextAlignment Alignment { get; set; } - + [Export ("wraps")] bool Wraps { get; set; } - + [Export ("font", ArgumentSemantic.Retain)] NSFont Font { get; set; } - + [Export ("isEntryAcceptable:")] - bool IsEntryAcceptable (string aString); - + bool IsEntryAcceptable (string aString); + [Export ("keyEquivalent")] string KeyEquivalent { get; } - + [Export ("formatter", ArgumentSemantic.Retain), NullAllowed] NSFormatter Formatter { get; set; } - + [Export ("objectValue", ArgumentSemantic.Copy), NullAllowed] NSObject ObjectValue { get; set; } - + [Export ("hasValidObjectValue")] bool HasValidObjectValue { get; } - + [Export ("stringValue")] string StringValue { get; set; } - + [Export ("compare:")] NSComparisonResult Compare (NSObject otherCell); - + [Export ("intValue")] - int IntValue { get; set; } /* int, not NSInteger */ - + int IntValue { get; set; } /* int, not NSInteger */ + [Export ("floatValue")] float FloatValue { get; set; } /* float, not CGFloat */ - + [Export ("doubleValue")] double DoubleValue { get; set; } - + [Export ("takeIntValueFrom:")] void TakeIntValueFrom (NSObject sender); - + [Export ("takeFloatValueFrom:")] void TakeFloatValueFrom (NSObject sender); - + [Export ("takeDoubleValueFrom:")] void TakeDoubleValueFrom (NSObject sender); - + [Export ("takeStringValueFrom:")] void TakeStringValueFrom (NSObject sender); - + [Export ("takeObjectValueFrom:")] void TakeObjectValueFrom (NSObject sender); - + [Export ("image", ArgumentSemantic.Retain)] - NSImage Image { get; set; } - + NSImage Image { get; set; } + [Deprecated (PlatformName.MacOSX, 10, 14, message: "'ControlTint' property not honored on 10.14. For custom cells, use 'NSColor.ControlAccentColor'.")] [Export ("controlTint")] NSControlTint ControlTint { get; set; } @@ -2567,195 +2563,195 @@ namespace AppKit { [Export ("controlSize")] NSControlSize ControlSize { get; set; } - + [Export ("representedObject", ArgumentSemantic.Retain)] NSObject RepresentedObject { get; set; } - + [Export ("cellAttribute:")] nint CellAttribute (NSCellAttribute aParameter); - + [Export ("setCellAttribute:to:")] void SetCellAttribute (NSCellAttribute aParameter, nint value); - + [Export ("imageRectForBounds:")] CGRect ImageRectForBounds (CGRect theRect); - + [Export ("titleRectForBounds:")] CGRect TitleRectForBounds (CGRect theRect); - + [Export ("drawingRectForBounds:")] CGRect DrawingRectForBounds (CGRect theRect); - + [Export ("cellSize")] CGSize CellSize { get; } - + [Export ("cellSizeForBounds:")] CGSize CellSizeForBounds (CGRect bounds); - + [Export ("highlightColorWithFrame:inView:")] [return: NullAllowed] NSColor HighlightColor (CGRect cellFrame, NSView controlView); - + [Export ("calcDrawInfo:")] void CalcDrawInfo (CGRect aRect); - + [Export ("setUpFieldEditorAttributes:")] NSText SetUpFieldEditorAttributes (NSText textObj); - + [Export ("drawInteriorWithFrame:inView:")] - void DrawInteriorWithFrame (CGRect cellFrame, NSView inView); - + void DrawInteriorWithFrame (CGRect cellFrame, NSView inView); + [Export ("drawWithFrame:inView:")] void DrawWithFrame (CGRect cellFrame, NSView inView); - + [Export ("highlight:withFrame:inView:")] - void Highlight (bool highlight, CGRect withFrame, NSView inView); - + void Highlight (bool highlight, CGRect withFrame, NSView inView); + [Export ("mouseDownFlags")] nint MouseDownFlags { get; } - + [Export ("getPeriodicDelay:interval:")] void GetPeriodicDelay (ref float /* float, not CGFloat */ delay, ref float /* float, not CGFloat */ interval); - + [Export ("startTrackingAt:inView:")] bool StartTracking (CGPoint startPoint, NSView inView); - + [Export ("continueTracking:at:inView:")] bool ContinueTracking (CGPoint lastPoint, CGPoint currentPoint, NSView inView); - + [Export ("stopTracking:at:inView:mouseIsUp:")] void StopTracking (CGPoint lastPoint, CGPoint stopPoint, NSView inView, bool mouseIsUp); - + [Export ("trackMouse:inRect:ofView:untilMouseUp:")] - bool TrackMouse (NSEvent theEvent, CGRect cellFrame, NSView controlView, bool untilMouseUp); - + bool TrackMouse (NSEvent theEvent, CGRect cellFrame, NSView controlView, bool untilMouseUp); + [Export ("editWithFrame:inView:editor:delegate:event:")] - void EditWithFrame (CGRect aRect, [NullAllowed] NSView inView, [NullAllowed] NSText editor, [NullAllowed] NSObject delegateObject, NSEvent theEvent); - + void EditWithFrame (CGRect aRect, [NullAllowed] NSView inView, [NullAllowed] NSText editor, [NullAllowed] NSObject delegateObject, NSEvent theEvent); + [Export ("selectWithFrame:inView:editor:delegate:start:length:")] void SelectWithFrame (CGRect aRect, [NullAllowed] NSView inView, [NullAllowed] NSText editor, [NullAllowed] NSObject delegateObject, nint selStart, nint selLength); - + [Export ("endEditing:")] void EndEditing ([NullAllowed] NSText textObj); - + [Export ("resetCursorRect:inView:")] - void ResetCursorRect (CGRect cellFrame, NSView inView); - + void ResetCursorRect (CGRect cellFrame, NSView inView); + [Export ("menu", ArgumentSemantic.Retain)] [NullAllowed] NSMenu Menu { get; set; } - + [Export ("menuForEvent:inRect:ofView:")] - NSMenu MenuForEvent (NSEvent theEvent, CGRect cellFrame, NSView view); - + NSMenu MenuForEvent (NSEvent theEvent, CGRect cellFrame, NSView view); + [Static] [Export ("defaultMenu")] [NullAllowed] NSMenu DefaultMenu { get; } - + [Export ("setSendsActionOnEndEditing:")] void SetSendsActionOnEndEditing (bool flag); - + [Export ("sendsActionOnEndEditing")] bool SendsActionOnEndEditing (); - + [Export ("baseWritingDirection")] NSWritingDirection BaseWritingDirection { get; set; } - + [Export ("lineBreakMode")] NSLineBreakMode LineBreakMode { get; set; } - + [Export ("allowsUndo")] bool AllowsUndo { get; set; } - + [Export ("integerValue")] nint IntegerValue { get; set; } - + [Export ("takeIntegerValueFrom:")] void TakeIntegerValueFrom (NSObject sender); - + [Export ("truncatesLastVisibleLine")] bool TruncatesLastVisibleLine { get; set; } - + [Export ("userInterfaceLayoutDirection")] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } - + [Export ("fieldEditorForView:")] - NSTextView FieldEditorForView (NSView aControlView); - + NSTextView FieldEditorForView (NSView aControlView); + [Export ("usesSingleLineMode")] bool UsesSingleLineMode { get; set; } // NSCell(NSCellAttributedStringMethods) [Export ("refusesFirstResponder")] bool RefusesFirstResponder (); - + [Export ("acceptsFirstResponder")] bool AcceptsFirstResponder (); - + [Export ("showsFirstResponder")] bool ShowsFirstResponder { get; set; } [Deprecated (PlatformName.MacOSX, 10, 8, message: "Mnemonic methods have typically not been used.")] [Export ("mnemonicLocation")] nint MnemonicLocation { get; set; } - + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Mnemonic methods have typically not been used.")] [Export ("mnemonic")] string Mnemonic { get; } - + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Mnemonic methods have typically not been used.")] [Export ("setTitleWithMnemonic:")] - void SetTitleWithMnemonic (string stringWithAmpersand); - + void SetTitleWithMnemonic (string stringWithAmpersand); + [Export ("performClick:")] void PerformClick (NSObject sender); - + [Export ("focusRingType")] NSFocusRingType FocusRingType { get; set; } - + [Static, Export ("defaultFocusRingType")] NSFocusRingType DefaultFocusRingType { get; } - + [Export ("wantsNotificationForMarkedText")] bool WantsNotificationForMarkedText { get; [NotImplemented] set; } - + // NSCell(NSCellAttributedStringMethods) [Export ("attributedStringValue")] NSAttributedString AttributedStringValue { get; set; } - + [Export ("allowsEditingTextAttributes")] bool AllowsEditingTextAttributes { get; set; } - + [Export ("importsGraphics")] bool ImportsGraphics { get; set; } - + // NSCell(NSCellMixedState) { [Export ("allowsMixedState")] bool AllowsMixedState { get; set; } - + [Export ("nextState")] nint NextState { get; } - + [Export ("setNextState")] void SetNextState (); - + [Export ("hitTestForEvent:inRect:ofView:")] - NSCellHit HitTest (NSEvent forEvent, CGRect inRect, NSView ofView); - + NSCellHit HitTest (NSEvent forEvent, CGRect inRect, NSView ofView); + // NSCell(NSCellExpansion) [Export ("expansionFrameWithFrame:inView:")] CGRect ExpansionFrame (CGRect withFrame, NSView inView); - + [Export ("drawWithExpansionFrame:inView:")] void DrawWithExpansionFrame (CGRect cellFrame, NSView inView); - + [Export ("backgroundStyle")] NSBackgroundStyle BackgroundStyle { get; set; } - + [Export ("interiorBackgroundStyle")] NSBackgroundStyle InteriorBackgroundStyle { get; } - + [Export ("draggingImageComponentsWithFrame:inView:")] NSDraggingImageComponent [] GenerateDraggingImageComponents (CGRect frame, NSView view); @@ -2781,7 +2777,7 @@ namespace AppKit { CIImage CIImage { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSGestureRecognizer))] interface NSClickGestureRecognizer : NSCoding { @@ -2798,7 +2794,7 @@ namespace AppKit { [Export ("numberOfTouchesRequired")] nint NumberOfTouchesRequired { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSView))] interface NSClipView { @@ -2807,54 +2803,54 @@ namespace AppKit { [Export ("backgroundColor", ArgumentSemantic.Copy)] NSColor BackgroundColor { get; set; } - + [Export ("drawsBackground")] bool DrawsBackground { get; set; } - + [Export ("documentView")] NSView DocumentView { get; set; } - + [Export ("documentRect")] CGRect DocumentRect { get; } - + [Export ("documentCursor", ArgumentSemantic.Retain)] NSCursor DocumentCursor { get; set; } - + [Export ("documentVisibleRect")] CGRect DocumentVisibleRect (); - + [Export ("viewFrameChanged:")] - void ViewFrameChanged (NSNotification notification); - + void ViewFrameChanged (NSNotification notification); + [Export ("viewBoundsChanged:")] - void ViewBoundsChanged (NSNotification notification); - + void ViewBoundsChanged (NSNotification notification); + [Export ("copiesOnScroll")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "'NSClipView' minimizes area of the document view that is invalidated. Use the 'SetNeedsDisplayInRect' method to force invalidation.")] bool CopiesOnScroll { get; set; } - + [Export ("autoscroll:")] - bool Autoscroll (NSEvent theEvent); - + bool Autoscroll (NSEvent theEvent); + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use ConstrainBoundsRect instead.")] [Export ("constrainScrollPoint:")] CGPoint ConstrainScrollPoint (CGPoint newOrigin); - [Mac (10,9)] + [Mac (10, 9)] [Export ("constrainBoundsRect:")] CGRect ConstrainBoundsRect (CGRect proposedBounds); - + [Export ("scrollToPoint:")] void ScrollToPoint (CGPoint newOrigin); [Export ("scrollClipView:toPoint:")] - void ScrollClipView (NSClipView aClipView, CGPoint aPoint); + void ScrollClipView (NSClipView aClipView, CGPoint aPoint); - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentInsets")] NSEdgeInsets ContentInsets { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("automaticallyAdjustsContentInsets")] bool AutomaticallyAdjustsContentInsets { get; set; } } @@ -2878,18 +2874,18 @@ namespace AppKit { NSCollectionView CollectionView { get; } [Export ("selected")] - bool Selected { [Bind ("isSelected")]get; set; } + bool Selected { [Bind ("isSelected")] get; set; } [Export ("imageView", ArgumentSemantic.Assign)] - NSImageView ImageView { get; set; } + NSImageView ImageView { get; set; } [Export ("textField", ArgumentSemantic.Assign)] - NSTextField TextField { get; set; } + NSTextField TextField { get; set; } [Export ("draggingImageComponents")] - NSDraggingImageComponent [] DraggingImageComponents { get; } + NSDraggingImageComponent [] DraggingImageComponents { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("highlightState", ArgumentSemantic.Assign)] NSCollectionViewItemHighlightState HighlightState { get; set; } } @@ -2901,7 +2897,7 @@ namespace AppKit { NativeHandle Constructor (CGRect frameRect); [Export ("isFirstResponder")] - bool IsFirstResponder { get; } + bool IsFirstResponder { get; } [Export ("newItemForRepresentedObject:")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSCollectionViewDataSource.GetItem()' instead.")] @@ -2932,7 +2928,7 @@ namespace AppKit { //Detected properties [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } - + [Wrap ("WeakDelegate")] [Protocolize] NSCollectionViewDelegate Delegate { get; set; } @@ -2941,7 +2937,7 @@ namespace AppKit { NSObject [] Content { get; set; } [Export ("selectable")] - bool Selectable { [Bind ("isSelectable")]get; set; } + bool Selectable { [Bind ("isSelectable")] get; set; } [Export ("allowsMultipleSelection")] bool AllowsMultipleSelection { get; set; } @@ -2979,172 +2975,172 @@ namespace AppKit { CGRect FrameForItemAtIndex (nint index, nint numberOfItems); #endif - [Mac (10,11)] + [Mac (10, 11)] [Protocolize] [NullAllowed, Export ("dataSource", ArgumentSemantic.Weak)] NSCollectionViewDataSource DataSource { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("reloadData")] void ReloadData (); - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed, Export ("backgroundView", ArgumentSemantic.Strong)] NSView BackgroundView { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed, Export ("collectionViewLayout", ArgumentSemantic.Strong)] NSCollectionViewLayout CollectionViewLayout { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutAttributesForItemAtIndexPath:")] [return: NullAllowed] NSCollectionViewLayoutAttributes GetLayoutAttributes (NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutAttributesForSupplementaryElementOfKind:atIndexPath:")] [return: NullAllowed] NSCollectionViewLayoutAttributes GetLayoutAttributes (string kind, NSIndexPath indexPath); // -(NSInteger)numberOfSections __attribute__((availability(macosx, introduced=10.11))); - [Mac (10,11)] + [Mac (10, 11)] [Export ("numberOfSections")] // [Verify (MethodToProperty)] nint NumberOfSections { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("numberOfItemsInSection:")] nint GetNumberOfItems (nint section); - [Mac (10,11)] + [Mac (10, 11)] [Export ("allowsEmptySelection")] bool AllowsEmptySelection { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("selectionIndexPaths", ArgumentSemantic.Copy)] NSSet SelectionIndexPaths { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("selectItemsAtIndexPaths:scrollPosition:")] void SelectItems (NSSet indexPaths, NSCollectionViewScrollPosition scrollPosition); - [Mac (10,11)] + [Mac (10, 11)] [Export ("deselectItemsAtIndexPaths:")] void DeselectItems (NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("registerClass:forItemWithIdentifier:"), Internal] void _RegisterClassForItem ([NullAllowed] IntPtr itemClass, string identifier); - [Mac (10,11)] + [Mac (10, 11)] [Export ("registerNib:forItemWithIdentifier:")] void RegisterNib ([NullAllowed] NSNib nib, string identifier); - [Mac (10,11)] + [Mac (10, 11)] [Export ("registerClass:forSupplementaryViewOfKind:withIdentifier:"), Internal] void _RegisterClassForSupplementaryView ([NullAllowed] IntPtr viewClass, NSString kind, string identifier); - [Mac (10,11)] + [Mac (10, 11)] [Export ("registerNib:forSupplementaryViewOfKind:withIdentifier:")] void RegisterNib ([NullAllowed] NSNib nib, NSString kind, string identifier); - [Mac (10,11)] + [Mac (10, 11)] [Export ("makeItemWithIdentifier:forIndexPath:")] NSCollectionViewItem MakeItem (string identifier, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("makeSupplementaryViewOfKind:withIdentifier:forIndexPath:")] NSView MakeSupplementaryView (NSString elementKind, string identifier, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("itemAtIndexPath:")] [return: NullAllowed] NSCollectionViewItem GetItem (NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("visibleItems")] // [Verify (MethodToProperty)] - NSCollectionViewItem[] VisibleItems { get; } + NSCollectionViewItem [] VisibleItems { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("indexPathsForVisibleItems")] // [Verify (MethodToProperty)] NSSet IndexPathsForVisibleItems { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("indexPathForItem:")] [return: NullAllowed] NSIndexPath GetIndexPath (NSCollectionViewItem item); - [Mac (10,11)] + [Mac (10, 11)] [Export ("indexPathForItemAtPoint:")] [return: NullAllowed] NSIndexPath GetIndexPath (CGPoint point); // -(NSView * __nullable)supplementaryViewForElementKind:(NSString * __nonnull)elementKind atIndexPath:(NSIndexPath * __nonnull)indexPath __attribute__((availability(macosx, introduced=10.11))); - [Mac (10,11)] + [Mac (10, 11)] [Export ("supplementaryViewForElementKind:atIndexPath:")] [return: NullAllowed] INSCollectionViewElement GetSupplementaryView (NSString elementKind, NSIndexPath indexPath); // -(NSArray * __nonnull> * __nonnull)visibleSupplementaryViewsOfKind:(NSString * __nonnull)elementKind __attribute__((availability(macosx, introduced=10.11))); - [Mac (10,11)] + [Mac (10, 11)] [Export ("visibleSupplementaryViewsOfKind:")] - INSCollectionViewElement[] GetVisibleSupplementaryViews (NSString elementKind); + INSCollectionViewElement [] GetVisibleSupplementaryViews (NSString elementKind); - [Mac (10,11)] + [Mac (10, 11)] [Export ("indexPathsForVisibleSupplementaryElementsOfKind:")] NSSet GetIndexPaths (string elementKind); - [Mac (10,11)] + [Mac (10, 11)] [Export ("insertSections:")] void InsertSections (NSIndexSet sections); - [Mac (10,11)] + [Mac (10, 11)] [Export ("deleteSections:")] void DeleteSections (NSIndexSet sections); - [Mac (10,11)] + [Mac (10, 11)] [Export ("reloadSections:")] void ReloadSections (NSIndexSet sections); - [Mac (10,11)] + [Mac (10, 11)] [Export ("moveSection:toSection:")] void MoveSection (nint section, nint newSection); - [Mac (10,11)] + [Mac (10, 11)] [Export ("insertItemsAtIndexPaths:")] void InsertItems (NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("deleteItemsAtIndexPaths:")] void DeleteItems (NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("reloadItemsAtIndexPaths:")] void ReloadItems (NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("moveItemAtIndexPath:toIndexPath:")] void MoveItem (NSIndexPath indexPath, NSIndexPath newIndexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("performBatchUpdates:completionHandler:")] void PerformBatchUpdates (Action updates, Action completionHandler); - [Mac (10,11)] + [Mac (10, 11)] [Export ("scrollToItemsAtIndexPaths:scrollPosition:")] void ScrollToItems (NSSet indexPaths, NSCollectionViewScrollPosition scrollPosition); - [Mac (10,11)] + [Mac (10, 11)] [Export ("draggingImageForItemsAtIndexPaths:withEvent:offset:")] NSImage GetDraggingImage (NSSet indexPaths, NSEvent theEvent, ref CGPoint dragImageOffset); - [Mac (10,11)] // Not marked as 10.11 in the header files, but didn't exist previously + [Mac (10, 11)] // Not marked as 10.11 in the header files, but didn't exist previously [Export ("selectAll:")] void SelectAll ([NullAllowed] NSObject sender); - [Mac (10,11)] // Not marked as 10.11 in the header files, but didn't exist previously + [Mac (10, 11)] // Not marked as 10.11 in the header files, but didn't exist previously [Export ("deselectAll:")] void DeselectAll ([NullAllowed] NSObject sender); @@ -3152,7 +3148,7 @@ namespace AppKit { [Export ("backgroundViewScrollsWithContent")] bool BackgroundViewScrollsWithContent { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("toggleSectionCollapse:")] void ToggleSectionCollapse (NSObject sender); @@ -3164,20 +3160,19 @@ namespace AppKit { // @protocol NSCollectionViewDataSource [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSCollectionViewDataSource - { - [Mac (10,11)] + [BaseType (typeof (NSObject))] + interface NSCollectionViewDataSource { + [Mac (10, 11)] [Abstract] [Export ("collectionView:numberOfItemsInSection:")] nint GetNumberofItems (NSCollectionView collectionView, nint section); - [Mac (10,11)] + [Mac (10, 11)] [Abstract] [Export ("collectionView:itemForRepresentedObjectAtIndexPath:")] NSCollectionViewItem GetItem (NSCollectionView collectionView, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("numberOfSectionsInCollectionView:")] nint GetNumberOfSections (NSCollectionView collectionView); @@ -3218,26 +3213,26 @@ namespace AppKit { bool AcceptDrop (NSCollectionView collectionView, [Protocolize (4)] NSDraggingInfo draggingInfo, nint index, NSCollectionViewDropOperation dropOperation); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:canDragItemsAtIndexPaths:withEvent:")] bool CanDragItems (NSCollectionView collectionView, NSSet indexPaths, NSEvent theEvent); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:writeItemsAtIndexPaths:toPasteboard:")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'GetPasteboardWriter' method instead.")] bool WriteItems (NSCollectionView collectionView, NSSet indexPaths, NSPasteboard pasteboard); - [Mac (10,11)] + [Mac (10, 11)] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSFilePromiseReceiver' objects instead.")] [Export ("collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexPaths:")] - string[] GetNamesOfPromisedFiles (NSCollectionView collectionView, NSUrl dropURL, NSSet indexPaths); + string [] GetNamesOfPromisedFiles (NSCollectionView collectionView, NSUrl dropURL, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:draggingImageForItemsAtIndexPaths:withEvent:offset:")] NSImage GetDraggingImage (NSCollectionView collectionView, NSSet indexPaths, NSEvent theEvent, ref CGPoint dragImageOffset); #if !NET - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:validateDrop:proposedIndexPath:dropOperation:")] NSDragOperation ValidateDropOperation (NSCollectionView collectionView, [Protocolize (4)] NSDraggingInfo draggingInfo, ref NSIndexPath proposedDropIndexPath, ref NSCollectionViewDropOperation proposedDropOperation); #else @@ -3246,7 +3241,7 @@ namespace AppKit { NSDragOperation ValidateDrop (NSCollectionView collectionView, INSDraggingInfo draggingInfo, ref NSIndexPath proposedDropIndexPath, ref NSCollectionViewDropOperation proposedDropOperation); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:acceptDrop:indexPath:dropOperation:")] #if NET bool AcceptDrop (NSCollectionView collectionView, INSDraggingInfo draggingInfo, NSIndexPath indexPath, NSCollectionViewDropOperation dropOperation); @@ -3254,68 +3249,67 @@ namespace AppKit { bool AcceptDrop (NSCollectionView collectionView, [Protocolize (4)] NSDraggingInfo draggingInfo, NSIndexPath indexPath, NSCollectionViewDropOperation dropOperation); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:pasteboardWriterForItemAtIndexPath:")] [return: NullAllowed] INSPasteboardWriting GetPasteboardWriter (NSCollectionView collectionView, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexPaths:")] void DraggingSessionWillBegin (NSCollectionView collectionView, NSDraggingSession session, CGPoint screenPoint, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:shouldChangeItemsAtIndexPaths:toHighlightState:")] NSSet ShouldChangeItems (NSCollectionView collectionView, NSSet indexPaths, NSCollectionViewItemHighlightState highlightState); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:didChangeItemsAtIndexPaths:toHighlightState:")] void ItemsChanged (NSCollectionView collectionView, NSSet indexPaths, NSCollectionViewItemHighlightState highlightState); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:shouldSelectItemsAtIndexPaths:")] NSSet ShouldSelectItems (NSCollectionView collectionView, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:shouldDeselectItemsAtIndexPaths:")] NSSet ShouldDeselectItems (NSCollectionView collectionView, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:didSelectItemsAtIndexPaths:")] void ItemsSelected (NSCollectionView collectionView, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:didDeselectItemsAtIndexPaths:")] void ItemsDeselected (NSCollectionView collectionView, NSSet indexPaths); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:")] void WillDisplayItem (NSCollectionView collectionView, NSCollectionViewItem item, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:")] void WillDisplaySupplementaryView (NSCollectionView collectionView, NSView view, NSString elementKind, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:")] void DisplayingItemEnded (NSCollectionView collectionView, NSCollectionViewItem item, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:")] void DisplayingSupplementaryViewEnded (NSCollectionView collectionView, NSView view, string elementKind, NSIndexPath indexPath); - [Mac (10,11)] + [Mac (10, 11)] [Export ("collectionView:transitionLayoutForOldLayout:newLayout:")] NSCollectionViewTransitionLayout TransitionLayout (NSCollectionView collectionView, NSCollectionViewLayout fromLayout, NSCollectionViewLayout toLayout); } - interface INSCollectionViewElement {} + interface INSCollectionViewElement { } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSCollectionViewElement : NSUserInterfaceItemIdentification - { + [BaseType (typeof (NSObject))] + interface NSCollectionViewElement : NSUserInterfaceItemIdentification { [Export ("prepareForReuse")] void PrepareForReuse (); @@ -3334,26 +3328,24 @@ namespace AppKit { [Static] [NoMacCatalyst] - interface NSCollectionElementKind - { - [Mac (10,11)] + interface NSCollectionElementKind { + [Mac (10, 11)] [Field ("NSCollectionElementKindInterItemGapIndicator")] NSString InterItemGapIndicator { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSCollectionElementKindSectionHeader")] NSString SectionHeader { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSCollectionElementKindSectionFooter")] NSString SectionFooter { get; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSCollectionViewLayoutAttributes : NSCopying - { + [BaseType (typeof (NSObject))] + interface NSCollectionViewLayoutAttributes : NSCopying { [Export ("frame", ArgumentSemantic.Assign)] CGRect Frame { get; set; } @@ -3395,11 +3387,10 @@ namespace AppKit { NSCollectionViewLayoutAttributes CreateForDecorationView (NSString decorationViewKind, NSIndexPath indexPath); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSCollectionViewUpdateItem - { + [BaseType (typeof (NSObject))] + interface NSCollectionViewUpdateItem { [NullAllowed, Export ("indexPathBeforeUpdate")] NSIndexPath IndexPathBeforeUpdate { get; } @@ -3410,11 +3401,10 @@ namespace AppKit { NSCollectionUpdateAction UpdateAction { get; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSCollectionViewLayoutInvalidationContext - { + [BaseType (typeof (NSObject))] + interface NSCollectionViewLayoutInvalidationContext { [Export ("invalidateEverything")] bool InvalidateEverything { get; } @@ -3446,11 +3436,10 @@ namespace AppKit { CGSize ContentSizeAdjustment { get; set; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSCollectionViewLayout : NSCoding - { + [BaseType (typeof (NSObject))] + interface NSCollectionViewLayout : NSCoding { [NullAllowed, Export ("collectionView", ArgumentSemantic.Weak)] NSCollectionView CollectionView { get; } @@ -3488,7 +3477,7 @@ namespace AppKit { // -(__nonnull NSArray *)layoutAttributesForElementsInRect:(NSRect)rect; [Export ("layoutAttributesForElementsInRect:")] // [Verify (StronglyTypedNSArray)] - NSCollectionViewLayoutAttributes[] GetLayoutAttributesForElements (CGRect rect); + NSCollectionViewLayoutAttributes [] GetLayoutAttributesForElements (CGRect rect); [Export ("layoutAttributesForItemAtIndexPath:")] [return: NullAllowed] @@ -3537,7 +3526,7 @@ namespace AppKit { // [Export ("prepareForCollectionViewUpdates:")] - void PrepareForCollectionViewUpdates (NSCollectionViewUpdateItem[] updateItems); + void PrepareForCollectionViewUpdates (NSCollectionViewUpdateItem [] updateItems); [Export ("finalizeCollectionViewUpdates")] void FinalizeCollectionViewUpdates (); @@ -3594,11 +3583,10 @@ namespace AppKit { NSSet GetIndexPathsToInsertForDecorationView (NSString elementKind); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSCollectionViewLayoutInvalidationContext))] - interface NSCollectionViewFlowLayoutInvalidationContext - { + [BaseType (typeof (NSCollectionViewLayoutInvalidationContext))] + interface NSCollectionViewFlowLayoutInvalidationContext { [Export ("invalidateFlowLayoutDelegateMetrics")] bool InvalidateFlowLayoutDelegateMetrics { get; set; } @@ -3606,12 +3594,11 @@ namespace AppKit { bool InvalidateFlowLayoutAttributes { get; set; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [Protocol, Model] - interface NSCollectionViewDelegateFlowLayout: NSCollectionViewDelegate - { + interface NSCollectionViewDelegateFlowLayout : NSCollectionViewDelegate { [Export ("collectionView:layout:sizeForItemAtIndexPath:")] CGSize SizeForItem (NSCollectionView collectionView, NSCollectionViewLayout collectionViewLayout, NSIndexPath indexPath); @@ -3631,11 +3618,10 @@ namespace AppKit { CGSize ReferenceSizeForFooter (NSCollectionView collectionView, NSCollectionViewLayout collectionViewLayout, nint section); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSCollectionViewLayout))] - interface NSCollectionViewFlowLayout - { + [BaseType (typeof (NSCollectionViewLayout))] + interface NSCollectionViewFlowLayout { [Export ("minimumLineSpacing", ArgumentSemantic.Assign)] nfloat MinimumLineSpacing { get; set; } @@ -3668,24 +3654,23 @@ namespace AppKit { [Export ("sectionFootersPinToVisibleBounds")] bool SectionFootersPinToVisibleBounds { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("sectionAtIndexIsCollapsed:")] bool SectionAtIndexIsCollapsed (nuint sectionIndex); - [Mac (10,12)] + [Mac (10, 12)] [Export ("collapseSectionAtIndex:")] void CollapseSectionAtIndex (nuint sectionIndex); - [Mac (10,12)] + [Mac (10, 12)] [Export ("expandSectionAtIndex:")] void ExpandSectionAtIndex (nuint sectionIndex); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSCollectionViewLayout))] - interface NSCollectionViewGridLayout - { + [BaseType (typeof (NSCollectionViewLayout))] + interface NSCollectionViewGridLayout { [Export ("margins", ArgumentSemantic.Assign)] NSEdgeInsets Margins { get; set; } @@ -3708,15 +3693,14 @@ namespace AppKit { CGSize MaximumItemSize { get; set; } [Export ("backgroundColors", ArgumentSemantic.Copy)] - NSColor[] BackgroundColors { get; set; } + NSColor [] BackgroundColors { get; set; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [DisableDefaultCtor] - [BaseType (typeof(NSCollectionViewLayout))] - interface NSCollectionViewTransitionLayout - { + [BaseType (typeof (NSCollectionViewLayout))] + interface NSCollectionViewTransitionLayout { #if !NET [Obsolete ("Use the constructor that allows you to set currentLayout and newLayout.")] [Export ("init")] @@ -3746,8 +3730,7 @@ namespace AppKit { [ThreadSafe] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // -colorSpaceName not valid for the NSColor ; need to first convert colorspace. - partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting - { + partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting { [Static] [Export ("colorWithCalibratedWhite:alpha:")] NSColor FromCalibratedWhite (nfloat white, nfloat alpha); @@ -3784,25 +3767,25 @@ namespace AppKit { [Export ("colorWithColorSpace:components:count:"), Internal] NSColor _FromColorSpace (NSColorSpace space, IntPtr components, nint numberOfComponents); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("colorWithWhite:alpha:")] NSColor FromWhite (nfloat white, nfloat alpha); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("colorWithRed:green:blue:alpha:")] NSColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("colorWithHue:saturation:brightness:alpha:")] NSColor FromHsba (nfloat hue, nfloat saturation, nfloat brightness, nfloat alpha); - + [Static] [Export ("blackColor")] NSColor Black { get; } [Static] [Export ("darkGrayColor")] - NSColor DarkGray { get; } + NSColor DarkGray { get; } [Static] [Export ("lightGrayColor")] @@ -3984,7 +3967,7 @@ namespace AppKit { NSColor HeaderText { get; } [Static] - [Deprecated (PlatformName.MacOSX, message : "Use 'SelectedContentBackgroundColor' instead.")] + [Deprecated (PlatformName.MacOSX, message: "Use 'SelectedContentBackgroundColor' instead.")] [Export ("alternateSelectedControlColor")] NSColor AlternateSelectedControl { get; } @@ -4042,19 +4025,19 @@ namespace AppKit { [Export ("colorWithAlphaComponent:")] NSColor ColorWithAlphaComponent (nfloat alpha); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("catalogNameComponent")] string CatalogNameComponent { get; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("colorNameComponent")] string ColorNameComponent { get; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("localizedCatalogNameComponent")] string LocalizedCatalogNameComponent { get; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("localizedColorNameComponent")] string LocalizedColorNameComponent { get; } @@ -4103,11 +4086,11 @@ namespace AppKit { [Export ("getCyan:magenta:yellow:black:alpha:")] void GetCmyka (out nfloat cyan, out nfloat magenta, out nfloat yellow, out nfloat black, out nfloat alpha); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("colorSpace")] NSColorSpace ColorSpace { get; } - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("numberOfComponents")] nint ComponentCount { get; } @@ -4128,12 +4111,12 @@ namespace AppKit { [Export ("colorWithPatternImage:")] NSColor FromPatternImage (NSImage image); - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("patternImage")] NSImage PatternImage { get; } - [Export ("CGColor")] - CGColor CGColor { get; } + [Export ("CGColor")] + CGColor CGColor { get; } [Export ("drawSwatchInRect:")] void DrawSwatchInRect (CGRect rect); @@ -4148,45 +4131,45 @@ namespace AppKit { #if !NET [Obsolete ("Use 'Label' instead.")] - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("labelColor")] NSColor LabelColor { get; } #endif - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("labelColor")] NSColor Label { get; } #if !NET [Obsolete ("Use 'SecondaryLabel' instead.")] - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("secondaryLabelColor")] NSColor SecondaryLabelColor { get; } #endif - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("secondaryLabelColor")] NSColor SecondaryLabel { get; } #if !NET [Obsolete ("Use 'TertiaryLabel' instead.")] - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("tertiaryLabelColor")] - NSColor TertiaryLabelColor { get; } + NSColor TertiaryLabelColor { get; } #endif - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("tertiaryLabelColor")] NSColor TertiaryLabel { get; } #if !NET [Obsolete ("Use 'QuaternaryLabel' instead.")] - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("quaternaryLabelColor")] NSColor QuaternaryLabelColor { get; } #endif - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("quaternaryLabelColor")] NSColor QuaternaryLabel { get; } @@ -4200,13 +4183,13 @@ namespace AppKit { [Mac (10, 10)] [Static, Export ("linkColor", ArgumentSemantic.Strong)] NSColor Link { get; } - - [Mac (10,12)] + + [Mac (10, 12)] [Static] [Export ("colorWithDisplayP3Red:green:blue:alpha:")] NSColor FromDisplayP3 (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("colorWithColorSpace:hue:saturation:brightness:alpha:")] NSColor FromColor (NSColorSpace space, nfloat hue, nfloat saturation, nfloat brightness, nfloat alpha); @@ -4224,13 +4207,13 @@ namespace AppKit { [Export ("scrubberTexturedBackgroundColor", ArgumentSemantic.Strong)] NSColor ScrubberTexturedBackground { get; } - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("colorNamed:bundle:")] [return: NullAllowed] NSColor FromName (string name, [NullAllowed] NSBundle bundle); - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("colorNamed:")] [return: NullAllowed] @@ -4240,7 +4223,7 @@ namespace AppKit { [Export ("type")] NSColorType Type { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("colorUsingType:")] [return: NullAllowed] NSColor GetColor (NSColorType type); @@ -4456,7 +4439,7 @@ namespace AppKit { [Mac (10, 14)] [Static] [Export ("alternatingContentBackgroundColors", ArgumentSemantic.Strong)] - NSColor[] AlternatingContentBackgroundColors { get; } + NSColor [] AlternatingContentBackgroundColors { get; } #if !NET [Obsolete ("Use 'UnemphasizedSelectedTextBackground' instead.")] @@ -4497,7 +4480,7 @@ namespace AppKit { [Export ("controlAccentColor", ArgumentSemantic.Strong)] NSColor ControlAccent { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("colorWithSystemEffect:")] NSColor FromSystemEffect (NSColorSystemEffect systemEffect); @@ -4527,7 +4510,7 @@ namespace AppKit { [Export ("placeholderTextColor", ArgumentSemantic.Strong)] NSColor PlaceholderText { get; } - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("colorWithName:dynamicProvider:")] NSColor GetColor ([NullAllowed] string colorName, Func dynamicProvider); @@ -4578,7 +4561,7 @@ namespace AppKit { [Export ("removeFile")] void RemoveFile (); - [Mac (10,11)] + [Mac (10, 11)] [Export ("writeToURL:error:")] bool WriteToUrl ([NullAllowed] NSUrl url, [NullAllowed] out NSError error); } @@ -4586,8 +4569,7 @@ namespace AppKit { [NoMacCatalyst] [Mac (10, 14)] [Protocol] - interface NSColorChanging - { + interface NSColorChanging { [Abstract] [Export ("changeColor:")] void ChangeColor ([NullAllowed] NSColorPanel sender); @@ -4635,7 +4617,7 @@ namespace AppKit { NSView AccessoryView { get; set; } [Export ("continuous")] - bool Continuous { [Bind ("isContinuous")]get; set; } + bool Continuous { [Bind ("isContinuous")] get; set; } [Export ("showsAlpha")] bool ShowsAlpha { get; set; } @@ -4774,7 +4756,7 @@ namespace AppKit { [Field ("NSCalibratedBlackColorSpace")] NSString CalibratedBlack { get; } - + [Field ("NSCalibratedRGBColorSpace")] NSString CalibratedRGB { get; } @@ -4823,7 +4805,7 @@ namespace AppKit { //Detected properties [Export ("bordered")] - bool Bordered { [Bind ("isBordered")]get; set; } + bool Bordered { [Bind ("isBordered")] get; set; } [Export ("color", ArgumentSemantic.Copy)] NSColor Color { get; set; } @@ -4907,7 +4889,8 @@ namespace AppKit { [Export ("completes")] bool Completes { get; set; } - [Export ("dataSource", ArgumentSemantic.Assign)][NullAllowed] + [Export ("dataSource", ArgumentSemantic.Assign)] + [NullAllowed] [Protocolize] NSComboBoxDataSource DataSource { get; set; } @@ -4964,13 +4947,13 @@ namespace AppKit { interface NSComboBoxDataSource { [Export ("comboBox:objectValueForItemAtIndex:")] NSObject ObjectValueForItem (NSComboBox comboBox, nint index); - + [Export ("numberOfItemsInComboBox:")] nint ItemCount (NSComboBox comboBox); - + [Export ("comboBox:completedString:")] string CompletedString (NSComboBox comboBox, string uncompletedString); - + [Export ("comboBox:indexOfItemWithStringValue:")] nint IndexOfItem (NSComboBox comboBox, string value); } @@ -5026,7 +5009,8 @@ namespace AppKit { [Export ("completes")] bool Completes { get; set; } - [Export ("dataSource", ArgumentSemantic.Assign)][NullAllowed] + [Export ("dataSource", ArgumentSemantic.Assign)] + [NullAllowed] [Protocolize] NSComboBoxCellDataSource DataSource { get; set; } @@ -5065,7 +5049,7 @@ namespace AppKit { [Export ("completedString:")] string CompletedString (string substring); - + } [NoMacCatalyst] @@ -5194,10 +5178,10 @@ namespace AppKit { bool IgnoresMultiClick { get; set; } [Export ("continuous")] - bool Continuous { [Bind ("isContinuous")]get; set; } + bool Continuous { [Bind ("isContinuous")] get; set; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")]get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("alignment")] NSTextAlignment Alignment { get; set; } @@ -5225,7 +5209,7 @@ namespace AppKit { int IntValue { get; set; } /* int, not NSInteger */ [Export ("floatValue")] - float FloatValue { get; set; } /* float, not CGFloat */ + float FloatValue { get; set; } /* float, not CGFloat */ [Export ("doubleValue")] double DoubleValue { get; set; } @@ -5242,39 +5226,39 @@ namespace AppKit { [Export ("refusesFirstResponder")] bool RefusesFirstResponder { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; [Bind ("setHighlighted:")] set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("controlSize")] NSControlSize ControlSize { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("sizeThatFits:")] CGSize SizeThatFits (CGSize size); - [Mac (10,10)] + [Mac (10, 10)] [Export ("lineBreakMode")] NSLineBreakMode LineBreakMode { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("usesSingleLineMode")] bool UsesSingleLineMode { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("drawWithExpansionFrame:inView:")] void DrawWithExpansionFrame (CGRect cellFrame, NSView view); - [Mac (10,10)] + [Mac (10, 10)] [Export ("editWithFrame:editor:delegate:event:")] void EditWithFrame (CGRect aRect, [NullAllowed] NSText textObj, [NullAllowed] NSObject anObject, NSEvent theEvent); - [Mac (10,10)] + [Mac (10, 10)] [Export ("selectWithFrame:editor:delegate:start:length:")] void SelectWithFrame (CGRect aRect, [NullAllowed] NSText textObj, [NullAllowed] NSObject anObject, nint selStart, nint selLength); - [Mac (10,10)] + [Mac (10, 10)] [Export ("endEditing:")] void EndEditing ([NullAllowed] NSText textObj); } @@ -5282,8 +5266,7 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSEditorRegistration - { + interface NSEditorRegistration { [Export ("objectDidBeginEditing:")] void ObjectDidBeginEditing (INSEditor editor); @@ -5294,9 +5277,8 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Category] - [BaseType (typeof(NSObject))] - interface NSObject_NSEditorRegistration - { + [BaseType (typeof (NSObject))] + interface NSObject_NSEditorRegistration { [Export ("objectDidBeginEditing:")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'NSEditorRegistration' instead.")] void ObjectDidBeginEditing (INSEditor editor); @@ -5305,21 +5287,20 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'NSEditorRegistration' instead.")] void ObjectDidEndEditing (INSEditor editor); } - - interface INSEditor {} + + interface INSEditor { } [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSEditor - { + interface NSEditor { [Abstract] [Export ("discardEditing")] void DiscardEditing (); [Abstract] [Export ("commitEditing")] - bool CommitEditing (); + bool CommitEditing (); [Abstract] [Export ("commitEditingWithDelegate:didCommitSelector:contextInfo:")] @@ -5333,7 +5314,7 @@ namespace AppKit { [NoMacCatalyst] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] - interface NSController : NSCoding, NSEditorRegistration + interface NSController : NSCoding, NSEditorRegistration #if NET , NSEditor // Conflict over if CommitEditing is a property or a method. NSViewController has it right so can't "fix" NSEditor to match existing API #endif @@ -5383,7 +5364,7 @@ namespace AppKit { bool IsEditing { get; } } - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] interface NSCursor : NSCoding { [Static] @@ -5466,7 +5447,7 @@ namespace AppKit { [Static] [Export ("IBeamCursorForVerticalLayout")] NSCursor IBeamCursorForVerticalLayout { get; } - + [DesignatedInitializer] [Export ("initWithImage:hotSpot:")] NativeHandle Constructor (NSImage newImage, CGPoint aPoint); @@ -5544,14 +5525,14 @@ namespace AppKit { [NullAllowed] [Export ("drawSelector")] Selector DrawSelector { get; } - + [NullAllowed] - [Export ("delegate", ArgumentSemantic.Assign)] - NSObject Delegate { get; } - } + [Export ("delegate", ArgumentSemantic.Assign)] + NSObject Delegate { get; } + } [NoMacCatalyst] - [BaseType (typeof (NSControl), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (NSDatePickerCellDelegate)})] + [BaseType (typeof (NSControl), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSDatePickerCellDelegate) })] interface NSDatePicker { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -5561,10 +5542,10 @@ namespace AppKit { NSDatePickerStyle DatePickerStyle { get; set; } [Export ("bezeled")] - bool Bezeled { [Bind ("isBezeled")]get; set; } + bool Bezeled { [Bind ("isBezeled")] get; set; } [Export ("bordered")] - bool Bordered { [Bind ("isBordered")]get; set; } + bool Bordered { [Bind ("isBordered")] get; set; } [Export ("drawsBackground")] bool DrawsBackground { get; set; } @@ -5605,7 +5586,7 @@ namespace AppKit { [Export ("maxDate", ArgumentSemantic.Copy)] NSDate MaxDate { get; set; } - [Mac (10,15,4)] + [Mac (10, 15, 4)] [Export ("presentsCalendarOverlay")] bool PresentsCalendarOverlay { get; set; } @@ -5618,14 +5599,14 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof (NSActionCell), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (NSDatePickerCellDelegate)})] + [BaseType (typeof (NSActionCell), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSDatePickerCellDelegate) })] interface NSDatePickerCell { [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); //Detected properties [Export ("datePickerStyle")] @@ -5685,12 +5666,11 @@ namespace AppKit { void ValidateProposedDateValue (NSDatePickerCell aDatePickerCell, ref NSDate proposedDateValue, double proposedTimeInterval); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSDictionaryControllerKeyValuePair - { + interface NSDictionaryControllerKeyValuePair { [NullAllowed, Export ("key")] string Key { get; set; } @@ -5705,9 +5685,8 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof(NSArrayController))] - interface NSDictionaryController - { + [BaseType (typeof (NSArrayController))] + interface NSDictionaryController { // -(NSDictionaryControllerKeyValuePair * __nonnull)newObject; [Export ("newObject")] // [Verify (MethodToProperty)] @@ -5720,10 +5699,10 @@ namespace AppKit { NSObject InitialValue { get; set; } [Export ("includedKeys", ArgumentSemantic.Copy)] - string[] IncludedKeys { get; set; } + string [] IncludedKeys { get; set; } [Export ("excludedKeys", ArgumentSemantic.Copy)] - string[] ExcludedKeys { get; set; } + string [] ExcludedKeys { get; set; } [Export ("localizedKeyDictionary", ArgumentSemantic.Copy)] NSDictionary LocalizedKeyDictionary { get; set; } @@ -5772,7 +5751,7 @@ namespace AppKit { } delegate void NSDocumentCompletionHandler (IntPtr nsErrorPointerOrZero); - + [NoMacCatalyst] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] @@ -5838,12 +5817,12 @@ namespace AppKit { [Export ("saveDocumentWithDelegate:didSaveSelector:contextInfo:")] void SaveDocument ([NullAllowed] NSObject delegateObject, [NullAllowed] Selector didSaveSelector, [NullAllowed] IntPtr contextInfo); - [Mac (10,9)] + [Mac (10, 9)] [Export ("saveDocumentToPDF:")] void SaveDocumentAsPdf ([NullAllowed] NSObject sender); - [Mac (10,9)] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [Mac (10, 9)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("PDFPrintOperation", ArgumentSemantic.Retain)] NSPrintOperation PDFPrintOperation { get; } @@ -6104,33 +6083,33 @@ namespace AppKit { [Export ("restorableStateKeyPaths", ArgumentSemantic.Copy)] string [] RestorableStateKeyPaths (); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("allowedClassesForRestorableStateKeyPath:")] - Class[] GetAllowedClasses (string keyPath); + Class [] GetAllowedClasses (string keyPath); - [Mac (10,10)] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [Mac (10, 10)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("userActivity", ArgumentSemantic.Strong)] NSUserActivity UserActivity { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("updateUserActivityState:")] void UpdateUserActivityState (NSUserActivity userActivity); #if !NET // Should be removed but radar://42781537 - Classes fail to conformsToProtocol despite header declaration - [Mac (10,10)] + [Mac (10, 10)] [Export ("restoreUserActivityState:")] new void RestoreUserActivityState (NSUserActivity userActivity); #endif - [Mac (10,12)] - [Export ("isBrowsingVersions")] + [Mac (10, 12)] + [Export ("isBrowsingVersions")] bool IsBrowsingVersions { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("stopBrowsingVersionsWithCompletionHandler:")] [Async] void StopBrowsingVersions ([NullAllowed] Action completionHandler); @@ -6139,12 +6118,12 @@ namespace AppKit { [Export ("allowsDocumentSharing")] bool AllowsDocumentSharing { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("shareDocumentWithSharingService:completionHandler:")] [Async] void ShareDocument (NSSharingService sharingService, [NullAllowed] Action completionHandler); - [Mac (10,13)] + [Mac (10, 13)] [Export ("prepareSharingServicePicker:")] void Prepare (NSSharingServicePicker sharingServicePicker); } @@ -6257,7 +6236,7 @@ namespace AppKit { string TypeForUrl (NSUrl url, out NSError outError); [Export ("documentClassNames")] - string [] DocumentClassNames {get; } + string [] DocumentClassNames { get; } [Export ("documentClassForType:")] Class DocumentClassForType (string typeName); @@ -6291,13 +6270,13 @@ namespace AppKit { [BaseType (typeof (NSObject))] interface NSDraggingImageComponent { [Export ("key", ArgumentSemantic.Copy)] - string Key { get; set; } + string Key { get; set; } [Export ("contents", ArgumentSemantic.Strong)] - NSObject Contents { get; set; } + NSObject Contents { get; set; } [Export ("frame")] - CGRect Frame { get; set; } + CGRect Frame { get; set; } [Static] [Export ("draggingImageComponentWithKey:")] @@ -6316,18 +6295,18 @@ namespace AppKit { [NoMacCatalyst] delegate NSDraggingImageComponent [] NSDraggingItemImagesContentProvider (); - + [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSDraggingItem { [Export ("item", ArgumentSemantic.Strong)] - NSObject Item { get; } + NSObject Item { get; } [Export ("draggingFrame")] - CGRect DraggingFrame { get; set; } + CGRect DraggingFrame { get; set; } [Export ("imageComponents", ArgumentSemantic.Copy)] - NSDraggingImageComponent [] ImageComponents { get; } + NSDraggingImageComponent [] ImageComponents { get; } [Export ("initWithPasteboardWriter:")] [DesignatedInitializer] @@ -6340,13 +6319,13 @@ namespace AppKit { void SetDraggingFrame (CGRect frame, NSObject contents); } - + [NoMacCatalyst] #if !NET [BaseType (typeof (NSObject))] #endif [Protocol] // Apple docs say: "you never need to create a class that implements the NSDraggingInfo protocol.", so don't add [Model] - interface NSDraggingInfo { + interface NSDraggingInfo { #if NET [Abstract] #endif @@ -6364,7 +6343,7 @@ namespace AppKit { #endif [Export ("draggingLocation")] CGPoint DraggingLocation { get; } - + #if NET [Abstract] #endif @@ -6425,23 +6404,23 @@ namespace AppKit { [Abstract] #endif [Export ("draggingFormation")] - NSDraggingFormation DraggingFormation { get; set; } + NSDraggingFormation DraggingFormation { get; set; } #if NET [Abstract] #endif [Export ("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:")] void EnumerateDraggingItems (NSDraggingItemEnumerationOptions enumOpts, NSView view, IntPtr classArray, - NSDictionary searchOptions, NSDraggingEnumerator enumerator); + NSDictionary searchOptions, NSDraggingEnumerator enumerator); - [Mac (10,11)] + [Mac (10, 11)] #if NET [Abstract] #endif [Export ("springLoadingHighlight")] NSSpringLoadingHighlight SpringLoadingHighlight { get; } - [Mac (10,11)] + [Mac (10, 11)] #if NET [Abstract] #endif @@ -6518,22 +6497,22 @@ namespace AppKit { [DisableDefaultCtor] // warning on dispose - created using NSView.BeginDraggingSession interface NSDraggingSession { [Export ("draggingFormation")] - NSDraggingFormation DraggingFormation { get; set; } + NSDraggingFormation DraggingFormation { get; set; } [Export ("animatesToStartingPositionsOnCancelOrFail")] - bool AnimatesToStartingPositionsOnCancelOrFail { get; set; } + bool AnimatesToStartingPositionsOnCancelOrFail { get; set; } [Export ("draggingLeaderIndex")] - nint DraggingLeaderIndex { get; set; } + nint DraggingLeaderIndex { get; set; } [Export ("draggingPasteboard")] - NSPasteboard DraggingPasteboard { get; } + NSPasteboard DraggingPasteboard { get; } [Export ("draggingSequenceNumber")] - nint DraggingSequenceNumber { get; } + nint DraggingSequenceNumber { get; } [Export ("draggingLocation")] - CGPoint DraggingLocation { get; } + CGPoint DraggingLocation { get; } [Internal] [Export ("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:")] @@ -6549,7 +6528,7 @@ namespace AppKit { NSDragOperation DraggingSourceOperationMaskForLocal (bool flag); [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use NSFilePromiseProvider objects instead.")] - [Export ("namesOfPromisedFilesDroppedAtDestination:"), DefaultValue (new string[0])] + [Export ("namesOfPromisedFilesDroppedAtDestination:"), DefaultValue (new string [0])] string [] NamesOfPromisedFilesDroppedAtDestination (NSUrl dropDestination); [Export ("draggedImage:beganAt:")] @@ -6568,9 +6547,9 @@ namespace AppKit { [Export ("draggedImage:endedAt:deposited:")] void DraggedImageEndedAtDeposited (NSImage image, CGPoint screenPoint, bool deposited); } - + [NoMacCatalyst] - [BaseType (typeof (NSResponder), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSDrawerDelegate)})] + [BaseType (typeof (NSResponder), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSDrawerDelegate) })] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSSplitViewController' instead.")] partial interface NSDrawer : NSAccessibilityElementProtocol, NSAccessibility { [Export ("initWithContentSize:preferredEdge:")] @@ -6584,7 +6563,7 @@ namespace AppKit { [Export ("preferredEdge")] NSRectEdge PreferredEdge { get; set; } - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -6640,7 +6619,7 @@ namespace AppKit { interface NSDrawerDelegate { [Export ("drawerDidClose:"), EventArgs ("NSNotification")] void DrawerDidClose (NSNotification notification); - + [Export ("drawerDidOpen:"), EventArgs ("NSNotification")] void DrawerDidOpen (NSNotification notification); @@ -6649,10 +6628,10 @@ namespace AppKit { [Export ("drawerShouldOpen:"), DelegateName ("DrawerShouldOpenDelegate"), DefaultValue (true)] bool DrawerShouldOpen (NSDrawer sender); - + [Export ("drawerWillClose:"), EventArgs ("NSNotification")] void DrawerWillClose (NSNotification notification); - + [Export ("drawerWillOpen:"), EventArgs ("NSNotification")] void DrawerWillOpen (NSNotification notification); @@ -6664,8 +6643,7 @@ namespace AppKit { [NoMacCatalyst] [Mac (10, 14)] [Protocol] - interface NSFontChanging - { + interface NSFontChanging { [Export ("changeFont:")] void ChangeFont ([NullAllowed] NSFontManager sender); @@ -6743,12 +6721,12 @@ namespace AppKit { [Static] [Internal] - [Export("menuBarFontOfSize:")] + [Export ("menuBarFontOfSize:")] IntPtr _MenuBarFontOfSize (nfloat fontSize); [Static] [Internal] - [Export("messageFontOfSize:")] + [Export ("messageFontOfSize:")] IntPtr _MessageFontOfSize (nfloat fontSize); [Static] @@ -6962,54 +6940,54 @@ namespace AppKit { [Field ("NSFontFeatureSelectorIdentifierKey")] NSString FeatureSelectorIdentifierKey { get; } - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("systemFontOfSize:weight:")] [Internal] IntPtr _SystemFontOfSize (nfloat fontSize, nfloat weight); - [Mac (13,0)] + [Mac (13, 0)] [Static] [Export ("systemFontOfSize:weight:width:")] [Internal] IntPtr _SystemFontOfSize (nfloat fontSize, nfloat weight, nfloat width); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("monospacedDigitSystemFontOfSize:weight:")] [Internal] IntPtr _MonospacedDigitSystemFontOfSize (nfloat fontSize, nfloat weight); - [Mac (10,13)] + [Mac (10, 13)] [Export ("boundingRectForCGGlyph:")] CGRect GetBoundingRect (CGGlyph glyph); - [Mac (10,13)] + [Mac (10, 13)] [Export ("advancementForCGGlyph:")] CGSize GetAdvancement (CGGlyph glyph); - [Mac (10,13)] + [Mac (10, 13)] [Internal] [Export ("getBoundingRects:forCGGlyphs:count:")] void _GetBoundingRects (IntPtr bounds, IntPtr glyphs, nuint glyphCount); - [Mac (10,13)] + [Mac (10, 13)] [Internal] [Export ("getAdvancements:forCGGlyphs:count:")] void _GetAdvancements (IntPtr advancements, IntPtr glyphs, nuint glyphCount); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("monospacedSystemFontOfSize:weight:")] [Internal] IntPtr _MonospacedSystemFont (nfloat fontSize, nfloat weight); - - [Mac (11,0)] + + [Mac (11, 0)] [Static] [Export ("preferredFontForTextStyle:options:")] NSFont GetPreferredFont (string textStyle, NSDictionary options); - [Mac (11,0)] + [Mac (11, 0)] [Export ("fontWithSize:")] NSFont GetFont (nfloat fontSize); } @@ -7088,49 +7066,49 @@ namespace AppKit { [Field ("NSFontCollectionIncludeDisabledFontsOption")] NSString IncludeDisabledFontsOption { get; } - + [Field ("NSFontCollectionRemoveDuplicatesOption")] NSString RemoveDuplicatesOption { get; } - + [Field ("NSFontCollectionDisallowAutoActivationOption")] NSString DisallowAutoActivationOption { get; } - + [Notification (typeof (NSFontCollectionChangedEventArgs)), Field ("NSFontCollectionDidChangeNotification")] NSString ChangedNotification { get; } - + [Field ("NSFontCollectionActionKey")] NSString ActionKey { get; } - + [Field ("NSFontCollectionNameKey")] NSString NameKey { get; } - + [Field ("NSFontCollectionOldNameKey")] NSString OldNameKey { get; } - + [Field ("NSFontCollectionVisibilityKey")] NSString VisibilityKey { get; } - + [Field ("NSFontCollectionWasShown")] NSString ActionWasShown { get; } - + [Field ("NSFontCollectionWasHidden")] NSString ActionWasHidden { get; } - + [Field ("NSFontCollectionWasRenamed")] NSString ActionWasRenamed { get; } - + [Field ("NSFontCollectionAllFonts")] NSString NameAllFonts { get; } - + [Field ("NSFontCollectionUser")] NSString NameUser { get; } - + [Field ("NSFontCollectionFavorites")] NSString NameFavorites { get; } - + [Field ("NSFontCollectionRecentlyUsed")] NSString NameRecentlyUsed { get; } - + } [NoMacCatalyst] @@ -7149,31 +7127,31 @@ namespace AppKit { [Export ("removeQueryForDescriptors:")] void RemoveQueryForDescriptors (NSFontDescriptor [] descriptors); - [Mac(10,10)] + [Mac (10, 10)] [Static] [Export ("fontCollectionWithDescriptors:")] NSMutableFontCollection FromDescriptors (NSFontDescriptor [] queryDescriptors); - [Mac(10,10)] + [Mac (10, 10)] [Static] [Export ("fontCollectionWithAllAvailableDescriptors", ArgumentSemantic.Copy)] NSMutableFontCollection GetAllAvailableFonts (); - [Mac(10,10)] + [Mac (10, 10)] [Static] [Export ("fontCollectionWithLocale:")] NSMutableFontCollection FromLocale (NSLocale locale); - [Mac(10,10)] + [Mac (10, 10)] [Static] [Export ("fontCollectionWithName:")] NSMutableFontCollection FromName (string name); - [Mac(10,10)] + [Mac (10, 10)] [Static] [Export ("fontCollectionWithName:visibility:")] NSMutableFontCollection FromName (string name, NSFontCollectionVisibility visibility); - } + } [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -7239,12 +7217,12 @@ namespace AppKit { [Export ("requiresFontAssetRequest")] bool RequiresFontAssetRequest { get; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("fontDescriptorWithDesign:")] [return: NullAllowed] NSFontDescriptor Create (NSFontDescriptorSystemDesign design); - - [Mac (11,0)] + + [Mac (11, 0)] [Static] [Export ("preferredFontDescriptorForTextStyle:options:")] NSFontDescriptor GetPreferredFont (string textStyle, NSDictionary options); @@ -7329,8 +7307,9 @@ namespace AppKit { bool SendAction { get; } [Deprecated (PlatformName.MacOSX, 10, 11)] - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] - NSObject WeakDelegate { get; set; } + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] + NSObject WeakDelegate { get; set; } [Export ("localizedNameForFamily:face:")] string LocalizedNameForFamily (string family, string faceKey); @@ -7431,10 +7410,10 @@ namespace AppKit { NSView AccessoryView { get; set; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")]get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [Static] interface NSFontWeight { @@ -7469,8 +7448,7 @@ namespace AppKit { [Mac (10, 10)] [NoMacCatalyst] [Static] - interface NSFontWidth - { + interface NSFontWidth { [Mac (13, 0)] [Field ("NSFontWidthCompressed")] double Compressed { get; } @@ -7488,7 +7466,7 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 10)] [NoMacCatalyst] [BaseType (typeof (NSMatrix))] - partial interface NSForm { + partial interface NSForm { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -7555,16 +7533,16 @@ namespace AppKit { [Export ("setTextBaseWritingDirection:")] void SetTextBaseWritingDirection (NSWritingDirection writingDirection); } - + [NoMacCatalyst] [BaseType (typeof (NSActionCell))] partial interface NSFormCell { [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("isOpaque")] bool IsOpaque { get; } @@ -7574,7 +7552,7 @@ namespace AppKit { nfloat TitleWidth { get; set; } [Export ("titleWidth:")] - nfloat TitleWidthConstraintedToSize (CGSize aSize); + nfloat TitleWidthConstraintedToSize (CGSize aSize); [Export ("title")] string Title { get; set; } @@ -7596,8 +7574,8 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 8, message: "Set Title instead.")] [Export ("setTitleWithMnemonic:")] - void SetTitleWithMnemonic (string stringWithAmpersand); - + void SetTitleWithMnemonic (string stringWithAmpersand); + [Export ("attributedTitle")] NSAttributedString AttributedTitle { get; set; } } @@ -7611,15 +7589,15 @@ namespace AppKit { [Static, Export ("sharedGlyphGenerator")] NSGlyphGenerator SharedGlyphGenerator { get; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSGradient : NSSecureCoding, NSCopying { [Export ("initWithStartingColor:endingColor:")] - NativeHandle Constructor (NSColor startingColor, NSColor endingColor); + NativeHandle Constructor (NSColor startingColor, NSColor endingColor); [Export ("initWithColors:")] - NativeHandle Constructor (NSColor[] colorArray); + NativeHandle Constructor (NSColor [] colorArray); // See AppKit/NSGradiant.cs //[Export ("initWithColorsAndLocations:")] @@ -7653,7 +7631,7 @@ namespace AppKit { void GetColor (out NSColor color, out nfloat location, nint index); [Export ("interpolatedColorAtLocation:")] - NSColor GetInterpolatedColor(nfloat location); + NSColor GetInterpolatedColor (nfloat location); } [NoMacCatalyst] @@ -7662,89 +7640,88 @@ namespace AppKit { interface NSGraphicsContext { [Static, Export ("graphicsContextWithAttributes:")] NSGraphicsContext FromAttributes (NSDictionary attributes); - + [Static, Export ("graphicsContextWithWindow:")] NSGraphicsContext FromWindow (NSWindow window); - + [Static, Export ("graphicsContextWithBitmapImageRep:")] NSGraphicsContext FromBitmap (NSBitmapImageRep bitmapRep); - + [Static, Export ("graphicsContextWithGraphicsPort:flipped:")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'FromCGContext' instead.")] NSGraphicsContext FromGraphicsPort (IntPtr graphicsPort, bool initialFlippedState); - + [Static, Export ("currentContext"), NullAllowed] NSGraphicsContext CurrentContext { get; set; } - + [Static, Export ("currentContextDrawingToScreen")] bool IsCurrentContextDrawingToScreen { get; } - + [Static, Export ("saveGraphicsState")] void GlobalSaveGraphicsState (); - + [Static, Export ("restoreGraphicsState")] void GlobalRestoreGraphicsState (); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "This method has no effect.")] [Static, Export ("setGraphicsState:")] void SetGraphicsState (nint gState); - + [Export ("attributes")] - NSDictionary Attributes { get; } - + NSDictionary Attributes { get; } + [Export ("isDrawingToScreen")] bool IsDrawingToScreen { get; } - + [Export ("saveGraphicsState")] void SaveGraphicsState (); - + [Export ("restoreGraphicsState")] void RestoreGraphicsState (); - + [Export ("flushGraphics")] void FlushGraphics (); // keep signature in sync with 'graphicsContextWithGraphicsPort:flipped:' [Export ("graphicsPort")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'CGContext' instead.")] - IntPtr GraphicsPortHandle {get; } - + IntPtr GraphicsPortHandle { get; } + [Export ("isFlipped")] bool IsFlipped { get; } - + [Export ("shouldAntialias")] bool ShouldAntialias { get; set; } - + [Export ("imageInterpolation")] NSImageInterpolation ImageInterpolation { get; set; } - + [Export ("patternPhase")] CGPoint PatternPhase { get; set; } - + [Export ("compositingOperation")] NSComposite CompositingOperation { get; set; } - + [Export ("colorRenderingIntent")] NSColorRenderingIntent ColorRenderingIntent { get; set; } [Export ("CIContext")] - CoreImage.CIContext CIContext { get; } + CoreImage.CIContext CIContext { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("CGContext")] CGContext CGContext { get; } - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("graphicsContextWithCGContext:flipped:")] NSGraphicsContext FromCGContext (CGContext graphicsPort, bool initialFlippedState); } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSView))] - interface NSGridView - { + [BaseType (typeof (NSView))] + interface NSGridView { [Export ("initWithFrame:")] [DesignatedInitializer] NativeHandle Constructor (CGRect frameRect); @@ -7752,18 +7729,18 @@ namespace AppKit { [Static] [Export ("gridViewWithNumberOfColumns:rows:")] NSGridView Create (nint columnCount, nint rowCount); - + #if !NET [Static] - [EditorBrowsable(EditorBrowsableState.Never)] + [EditorBrowsable (EditorBrowsableState.Never)] [Obsolete ("You should use either 'NSGridView.Create(NSView [][] rowsAndColumns)' or 'NSGridView.Create(NSView [,] rowsAndColumns)'.")] [Export ("gridViewWithViews:")] NSGridView Create (NSView [] rows); #endif - + [Static] [Export ("gridViewWithViews:")] - NSGridView Create (NSView [][] rowsAndColumns); + NSGridView Create (NSView [] [] rowsAndColumns); [Static] [Export ("gridViewWithViews:")] @@ -7795,10 +7772,10 @@ namespace AppKit { NSGridCell GetCell (NSView view); [Export ("addRowWithViews:")] - NSGridRow AddRow (NSView[] views); + NSGridRow AddRow (NSView [] views); [Export ("insertRowAtIndex:withViews:")] - NSGridRow InsertRow (nint index, NSView[] views); + NSGridRow InsertRow (nint index, NSView [] views); [Export ("moveRowAtIndex:toIndex:")] void MoveRow (nint fromIndex, nint toIndex); @@ -7807,10 +7784,10 @@ namespace AppKit { void RemoveRow (nint index); [Export ("addColumnWithViews:")] - NSGridColumn AddColumn (NSView[] views); + NSGridColumn AddColumn (NSView [] views); [Export ("insertColumnAtIndex:withViews:")] - NSGridColumn InsertColumn (nint index, NSView[] views); + NSGridColumn InsertColumn (nint index, NSView [] views); [Export ("moveColumnAtIndex:toIndex:")] void MoveColumn (nint fromIndex, nint toIndex); @@ -7840,12 +7817,11 @@ namespace AppKit { nfloat SizeForContent { get; } } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSGridRow : NSCoding - { + interface NSGridRow : NSCoding { [NullAllowed, Export ("gridView", ArgumentSemantic.Weak)] NSGridView GridView { get; } @@ -7877,12 +7853,11 @@ namespace AppKit { void MergeCells (NSRange range); } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSGridColumn : NSCoding - { + interface NSGridColumn : NSCoding { [NullAllowed, Export ("gridView", ArgumentSemantic.Weak)] NSGridView GridView { get; } @@ -7911,12 +7886,11 @@ namespace AppKit { void MergeCells (NSRange range); } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSGridCell : NSCoding - { + interface NSGridCell : NSCoding { [Export ("contentView", ArgumentSemantic.Strong), NullAllowed] NSView ContentView { get; set; } @@ -7940,7 +7914,7 @@ namespace AppKit { NSGridRowAlignment RowAlignment { get; set; } [Export ("customPlacementConstraints", ArgumentSemantic.Copy)] - NSLayoutConstraint[] CustomPlacementConstraints { get; set; } + NSLayoutConstraint [] CustomPlacementConstraints { get; set; } } [NoMacCatalyst] @@ -8221,11 +8195,11 @@ namespace AppKit { [Static] [Export ("addGlobalMonitorForEventsMatchingMask:handler:")] NSObject AddGlobalMonitorForEventsMatchingMask (NSEventMask mask, GlobalEventHandler handler); - + [Static] [Export ("addLocalMonitorForEventsMatchingMask:handler:")] NSObject AddLocalMonitorForEventsMatchingMask (NSEventMask mask, LocalEventHandler handler); - + [Static] [Export ("removeMonitor:")] void RemoveMonitor (NSObject eventMonitor); @@ -8233,7 +8207,7 @@ namespace AppKit { //Detected properties [Static] [Export ("mouseCoalescingEnabled")] - bool MouseCoalescingEnabled { [Bind ("isMouseCoalescingEnabled")]get; set; } + bool MouseCoalescingEnabled { [Bind ("isMouseCoalescingEnabled")] get; set; } [Export ("hasPreciseScrollingDeltas")] [DebuggerBrowsable (DebuggerBrowsableState.Never)] @@ -8266,15 +8240,15 @@ namespace AppKit { [Export ("trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:")] void TrackSwipeEvent (NSEventSwipeTrackingOptions options, nfloat minDampenThreshold, nfloat maxDampenThreshold, NSEventTrackHandler trackingHandler); - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("stage")] nint Stage { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("stageTransition")] nfloat StageTransition { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("associatedEventsMask")] NSEventMask AssociatedEventsMask { get; } @@ -8282,15 +8256,15 @@ namespace AppKit { [Export ("allTouches")] NSSet AllTouches { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("touchesForView:")] NSSet GetTouches (NSView view); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("coalescedTouchesForTouch:")] - NSTouch[] GetCoalescedTouches (NSTouch touch); + NSTouch [] GetCoalescedTouches (NSTouch touch); - [Mac (10,15)] + [Mac (10, 15)] [Export ("charactersByApplyingModifiers:")] [return: NullAllowed] string GetCharacters (NSEventModifierFlags modifiers); @@ -8298,10 +8272,9 @@ namespace AppKit { [Flags] [Native] - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] - public enum NSEventModifierFlags : ulong - { + public enum NSEventModifierFlags : ulong { CapsLock = 1uL << 16, Shift = 1uL << 17, Control = 1uL << 18, @@ -8313,9 +8286,9 @@ namespace AppKit { DeviceIndependentFlagsMask = 0xffff0000L, } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] - [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type[] {typeof (NSGestureRecognizerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSGestureRecognizerDelegate) })] interface NSGestureRecognizer : NSCoding { [DesignatedInitializer] [Export ("initWithTarget:action:")] @@ -8426,32 +8399,32 @@ namespace AppKit { [Export ("rotateWithEvent:")] void Rotate (NSEvent rotateEvent); - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("pressureChangeWithEvent:")] void PressureChange (NSEvent pressureChangeEvent); - [Mac (10,11)] + [Mac (10, 11)] [Export ("pressureConfiguration", ArgumentSemantic.Strong)] NSPressureConfiguration PressureConfiguration { get; set; } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("touchesBeganWithEvent:")] void TouchesBegan (NSEvent touchEvent); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("touchesMovedWithEvent:")] void TouchesMoved (NSEvent touchEvent); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("touchesEndedWithEvent:")] void TouchesEnded (NSEvent touchEvent); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("touchesCancelledWithEvent:")] void TouchesCancelled (NSEvent touchEvent); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -8474,11 +8447,11 @@ namespace AppKit { bool ShouldReceiveEvent (NSGestureRecognizer gestureRecognizer, NSEvent gestureEvent); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("gestureRecognizer:shouldAttemptToRecognizeWithEvent:"), DelegateName ("NSGestureEvent"), DefaultValue (true)] bool ShouldAttemptToRecognize (NSGestureRecognizer gestureRecognizer, NSEvent theEvent); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("gestureRecognizer:shouldReceiveTouch:"), DelegateName ("NSTouchEvent"), DefaultValue (true)] bool ShouldReceiveTouch (NSGestureRecognizer gestureRecognizer, NSTouch touch); } @@ -8486,7 +8459,7 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSObject))] [ThreadSafe] // Not documented anywhere, but their Finder extension sample uses it on non-ui thread - partial interface NSMenu : NSCoding, NSCopying, NSAccessibility, NSAccessibilityElement, NSAppearanceCustomization, NSUserInterfaceItemIdentification { + partial interface NSMenu : NSCoding, NSCopying, NSAccessibility, NSAccessibilityElement, NSAppearanceCustomization, NSUserInterfaceItemIdentification { [DesignatedInitializer] [Export ("initWithTitle:")] NativeHandle Constructor (string title); @@ -8530,7 +8503,7 @@ namespace AppKit { void RemoveAllItems (); [Export ("itemArray", ArgumentSemantic.Copy)] - NSMenuItem[] Items { get; [Mac (10, 14)] set; } + NSMenuItem [] Items { get; [Mac (10, 14)] set; } #if !NET [Obsolete ("Use 'Items' instead.")] @@ -8626,14 +8599,15 @@ namespace AppKit { [Export ("autoenablesItems")] bool AutoEnablesItems { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] [NullAllowed] NSMenuDelegate Delegate { get; set; } - + [Export ("minimumWidth")] nfloat MinimumWidth { get; set; } @@ -8653,7 +8627,7 @@ namespace AppKit { [Export ("propertiesToUpdate")] NSMenuProperty PropertiesToUpdate (); - [Mac (10,11)] + [Mac (10, 11)] [Export ("userInterfaceLayoutDirection", ArgumentSemantic.Assign)] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } } @@ -8769,10 +8743,10 @@ namespace AppKit { NSImage MixedStateImage { get; set; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")]get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("alternate")] - bool Alternate { [Bind ("isAlternate")]get; set; } + bool Alternate { [Bind ("isAlternate")] get; set; } [Export ("indentationLevel")] nint IndentationLevel { get; set; } @@ -8819,9 +8793,9 @@ namespace AppKit { [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("calcSize")] void CalcSize (); @@ -8995,7 +8969,7 @@ namespace AppKit { NSMenu Menu { get; set; } [Export ("horizontal")] - bool Horizontal { [Bind ("isHorizontal")]get; set; } + bool Horizontal { [Bind ("isHorizontal")] get; set; } [Export ("font")] NSFont Font { get; set; } @@ -9020,7 +8994,7 @@ namespace AppKit { [Export ("initWithNibNamed:bundle:")] NativeHandle Constructor (string nibName, [NullAllowed] NSBundle bundle); - + [Export ("initWithNibData:bundle:")] NativeHandle Constructor (NSData nibData, NSBundle bundle); @@ -9030,7 +9004,7 @@ namespace AppKit { [Export ("instantiateWithOwner:topLevelObjects:")] bool InstantiateNibWithOwner ([NullAllowed] NSObject owner, out NSArray topLevelObjects); - } + } [NoMacCatalyst] [BaseType (typeof (NSController))] @@ -9108,7 +9082,7 @@ namespace AppKit { [ThreadSafe] [BaseType (typeof (NSObject))] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Metal' Framework instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' Framework instead.")] [NoMacCatalyst] interface NSOpenGLPixelFormat : NSCoding { [Export ("initWithData:")] @@ -9125,7 +9099,7 @@ namespace AppKit { } [ThreadSafe] - [Deprecated (PlatformName.MacOSX, 10, 7, message : "Use 'Metal' Framework instead.")] + [Deprecated (PlatformName.MacOSX, 10, 7, message: "Use 'Metal' Framework instead.")] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSOpenGLPixelBuffer { @@ -9158,7 +9132,7 @@ namespace AppKit { [ThreadSafe] // single thread - but not restricted to the main thread [BaseType (typeof (NSObject))] [DisableDefaultCtor] // warns with "invalid context" at runtime - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Metal' Framework instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' Framework instead.")] [NoMacCatalyst] interface NSOpenGLContext { [Export ("initWithFormat:shareContext:")] @@ -9185,7 +9159,7 @@ namespace AppKit { [Export ("flushBuffer")] void FlushBuffer (); - [ThreadSafe] + [ThreadSafe] [Export ("makeCurrentContext")] void MakeCurrentContext (); @@ -9244,14 +9218,14 @@ namespace AppKit { [Export ("currentVirtualScreen")] int CurrentVirtualScreen { get; set; } /* GLint = int32_t */ - [Mac (10,10)] + [Mac (10, 10)] [Export ("pixelFormat", ArgumentSemantic.Retain)] NSOpenGLPixelFormat PixelFormat { get; } } [NoMacCatalyst] [BaseType (typeof (NSView))] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Metal' Framework instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' Framework instead.")] partial interface NSOpenGLView { [Static] [Export ("defaultPixelFormat")] @@ -9343,7 +9317,7 @@ namespace AppKit { // This class doesn't show up in any documentation [BaseType (typeof (NSOpenPanel))] [DisableDefaultCtor] // should not be created by (only returned to) user code - interface NSRemoteOpenPanel {} + interface NSRemoteOpenPanel { } #endif [NoMacCatalyst] @@ -9455,32 +9429,36 @@ namespace AppKit { [Export ("autosaveExpandedItems")] bool AutosaveExpandedItems { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] - NSObject WeakDelegate { get; set; } + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] + NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][NullAllowed] + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] - NSOutlineViewDelegate Delegate { get; set; } + NSOutlineViewDelegate Delegate { get; set; } - [Export ("dataSource", ArgumentSemantic.Weak)][NullAllowed] - NSObject WeakDataSource { get; set; } + [Export ("dataSource", ArgumentSemantic.Weak)] + [NullAllowed] + NSObject WeakDataSource { get; set; } - [Wrap ("WeakDataSource")][NullAllowed] + [Wrap ("WeakDataSource")] + [NullAllowed] [Protocolize] - NSOutlineViewDataSource DataSource { get; set; } + NSOutlineViewDataSource DataSource { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("numberOfChildrenOfItem:")] nint NumberOfChildren ([NullAllowed] NSObject item); - [Mac (10,10)] + [Mac (10, 10)] [Export ("child:ofItem:")] NSObject GetChild (nint index, [NullAllowed] NSObject parentItem); [Export ("userInterfaceLayoutDirection")] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("childIndexForItem:")] nint GetChildIndex (NSObject item); @@ -9496,97 +9474,100 @@ namespace AppKit { partial interface NSOutlineViewDelegate { [Export ("outlineView:willDisplayCell:forTableColumn:item:")] void WillDisplayCell (NSOutlineView outlineView, NSObject cell, [NullAllowed] NSTableColumn tableColumn, NSObject item); - - [Export ("outlineView:shouldEditTableColumn:item:")] [DefaultValue (false)] + + [Export ("outlineView:shouldEditTableColumn:item:")] + [DefaultValue (false)] bool ShouldEditTableColumn (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn, NSObject item); - - [Export ("selectionShouldChangeInOutlineView:")] [DefaultValue (false)] + + [Export ("selectionShouldChangeInOutlineView:")] + [DefaultValue (false)] bool SelectionShouldChange (NSOutlineView outlineView); - - [Export ("outlineView:shouldSelectItem:")] [DefaultValue (true)] + + [Export ("outlineView:shouldSelectItem:")] + [DefaultValue (true)] bool ShouldSelectItem (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:selectionIndexesForProposedSelection:")] NSIndexSet GetSelectionIndexes (NSOutlineView outlineView, NSIndexSet proposedSelectionIndexes); - + [Export ("outlineView:shouldSelectTableColumn:")] bool ShouldSelectTableColumn (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn); - + [Export ("outlineView:mouseDownInHeaderOfTableColumn:")] void MouseDown (NSOutlineView outlineView, NSTableColumn tableColumn); - + [Export ("outlineView:didClickTableColumn:")] void DidClickTableColumn (NSOutlineView outlineView, NSTableColumn tableColumn); - + [Export ("outlineView:didDragTableColumn:")] void DidDragTableColumn (NSOutlineView outlineView, NSTableColumn tableColumn); - + [Export ("outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:")] string ToolTipForCell (NSOutlineView outlineView, NSCell cell, ref CGRect rect, [NullAllowed] NSTableColumn tableColumn, NSObject item, CGPoint mouseLocation); - + [Export ("outlineView:heightOfRowByItem:"), NoDefaultValue] nfloat GetRowHeight (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:typeSelectStringForTableColumn:item:")] string GetSelectString (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn, NSObject item); - + [Export ("outlineView:nextTypeSelectMatchFromItem:toItem:forString:")] NSObject GetNextTypeSelectMatch (NSOutlineView outlineView, NSObject startItem, NSObject endItem, string searchString); - + [Export ("outlineView:shouldTypeSelectForEvent:withCurrentSearchString:")] bool ShouldTypeSelect (NSOutlineView outlineView, NSEvent theEvent, [NullAllowed] string searchString); - + [Export ("outlineView:shouldShowCellExpansionForTableColumn:item:")] bool ShouldShowCellExpansion (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn, NSObject item); - + [Export ("outlineView:shouldTrackCell:forTableColumn:item:")] bool ShouldTrackCell (NSOutlineView outlineView, NSCell cell, [NullAllowed] NSTableColumn tableColumn, NSObject item); - + [Export ("outlineView:dataCellForTableColumn:item:"), NoDefaultValue] NSCell GetCell (NSOutlineView outlineView, NSTableColumn tableColumn, NSObject item); [Export ("outlineView:viewForTableColumn:item:"), NoDefaultValue] NSView GetView (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn, NSObject item); - + [Export ("outlineView:isGroupItem:")] bool IsGroupItem (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:shouldExpandItem:")] bool ShouldExpandItem (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:shouldCollapseItem:")] bool ShouldCollapseItem (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:willDisplayOutlineCell:forTableColumn:item:")] void WillDisplayOutlineCell (NSOutlineView outlineView, NSObject cell, [NullAllowed] NSTableColumn tableColumn, NSObject item); - + [Export ("outlineView:sizeToFitWidthOfColumn:"), NoDefaultValue] nfloat GetSizeToFitColumnWidth (NSOutlineView outlineView, nint column); - + [Export ("outlineView:shouldReorderColumn:toColumn:")] bool ShouldReorder (NSOutlineView outlineView, nint columnIndex, nint newColumnIndex); - + [Export ("outlineView:shouldShowOutlineCellForItem:")] bool ShouldShowOutlineCell (NSOutlineView outlineView, NSObject item); - + [Export ("outlineViewColumnDidMove:")] void ColumnDidMove (NSNotification notification); - + [Export ("outlineViewColumnDidResize:")] void ColumnDidResize (NSNotification notification); - + [Export ("outlineViewSelectionIsChanging:")] void SelectionIsChanging (NSNotification notification); - + [Export ("outlineViewItemWillExpand:")] void ItemWillExpand (NSNotification notification); - + [Export ("outlineViewItemDidExpand:")] void ItemDidExpand (NSNotification notification); - + [Export ("outlineViewItemWillCollapse:")] void ItemWillCollapse (NSNotification notification); - + [Export ("outlineViewItemDidCollapse:")] void ItemDidCollapse (NSNotification notification); @@ -9602,12 +9583,12 @@ namespace AppKit { [Export ("outlineView:didRemoveRowView:forRow:")] void DidRemoveRowView (NSOutlineView outlineView, NSTableRowView rowView, nint row); - [Mac (11,0)] + [Mac (11, 0)] [Export ("outlineView:tintConfigurationForItem:")] [return: NullAllowed] NSTintConfiguration GetTintConfiguration (NSOutlineView outlineView, NSObject item); } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] @@ -9615,46 +9596,46 @@ namespace AppKit { partial interface NSOutlineViewDataSource { [Export ("outlineView:child:ofItem:")] NSObject GetChild (NSOutlineView outlineView, nint childIndex, [NullAllowed] NSObject item); - + [Export ("outlineView:isItemExpandable:")] bool ItemExpandable (NSOutlineView outlineView, NSObject item); - + [Export ("outlineView:numberOfChildrenOfItem:")] nint GetChildrenCount (NSOutlineView outlineView, [NullAllowed] NSObject item); - + [Export ("outlineView:objectValueForTableColumn:byItem:")] NSObject GetObjectValue (NSOutlineView outlineView, [NullAllowed] NSTableColumn tableColumn, [NullAllowed] NSObject item); - + [Export ("outlineView:setObjectValue:forTableColumn:byItem:")] void SetObjectValue (NSOutlineView outlineView, [NullAllowed] NSObject theObject, [NullAllowed] NSTableColumn tableColumn, [NullAllowed] NSObject item); - + [Export ("outlineView:itemForPersistentObject:")] NSObject ItemForPersistentObject (NSOutlineView outlineView, NSObject theObject); - + [Export ("outlineView:persistentObjectForItem:")] NSObject PersistentObjectForItem (NSOutlineView outlineView, [NullAllowed] NSObject item); - + [Export ("outlineView:sortDescriptorsDidChange:")] void SortDescriptorsChanged (NSOutlineView outlineView, NSSortDescriptor [] oldDescriptors); - + [Export ("outlineView:writeItems:toPasteboard:")] [Deprecated (PlatformName.MacOSX, 10, 15)] bool OutlineViewwriteItemstoPasteboard (NSOutlineView outlineView, NSArray items, NSPasteboard pboard); - + [Export ("outlineView:validateDrop:proposedItem:proposedChildIndex:")] #if NET NSDragOperation ValidateDrop (NSOutlineView outlineView, INSDraggingInfo info, [NullAllowed] NSObject item, nint index); #else NSDragOperation ValidateDrop (NSOutlineView outlineView, [Protocolize (4)] NSDraggingInfo info, [NullAllowed] NSObject item, nint index); #endif - + [Export ("outlineView:acceptDrop:item:childIndex:")] #if NET bool AcceptDrop (NSOutlineView outlineView, INSDraggingInfo info, [NullAllowed] NSObject item, nint index); #else bool AcceptDrop (NSOutlineView outlineView, [Protocolize (4)] NSDraggingInfo info, [NullAllowed] NSObject item, nint index); #endif - + [Export ("outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems:")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSFilePromiseReceiver' objects instead.")] string [] FilesDropped (NSOutlineView outlineView, NSUrl dropDestination, NSArray items); @@ -9662,9 +9643,8 @@ namespace AppKit { [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSHapticFeedbackPerformer - { + [BaseType (typeof (NSObject))] + interface NSHapticFeedbackPerformer { [Abstract] [Export ("performFeedbackPattern:performanceTime:")] void PerformFeedback (NSHapticFeedbackPattern pattern, NSHapticFeedbackPerformanceTime performanceTime); @@ -9672,11 +9652,10 @@ namespace AppKit { interface INSHapticFeedbackPerformer { } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSHapticFeedbackManager - { + [BaseType (typeof (NSObject))] + interface NSHapticFeedbackManager { [Static] [Export ("defaultPerformer")] INSHapticFeedbackPerformer DefaultPerformer { get; } @@ -9708,18 +9687,18 @@ namespace AppKit { void FindString (string query, string book); [Export ("registerBooksInBundle:")] - bool RegisterBooks (NSBundle bundle ); + bool RegisterBooks (NSBundle bundle); //Detected properties [Static] [Export ("contextHelpModeActive")] - bool ContextHelpModeActive { [Bind ("isContextHelpModeActive")]get; set; } + bool ContextHelpModeActive { [Bind ("isContextHelpModeActive")] get; set; } } - [MacCatalyst (13,0)] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" } + [MacCatalyst (13, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" } #if !__MACCATALYST__ - , Events=new Type [] { typeof (NSImageDelegate) } + , Events = new Type [] { typeof (NSImageDelegate) } #endif )] [ThreadSafe] @@ -9774,7 +9753,7 @@ namespace AppKit { [Export ("drawInRect:fromRect:operation:fraction:respectFlipped:hints:")] void Draw (CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, nfloat requestedAlpha, bool respectContextIsFlipped, [NullAllowed] NSDictionary hints); - [Mac (10,9)] + [Mac (10, 9)] [Export ("drawInRect:")] void Draw (CGRect rect); @@ -9846,7 +9825,7 @@ namespace AppKit { [Static] [Export ("imagePasteboardTypes")] string [] ImagePasteboardTypes { get; } - + [Static] [Export ("imageTypes", ArgumentSemantic.Copy)] string [] ImageTypes { get; } @@ -9854,7 +9833,7 @@ namespace AppKit { [Static] [Export ("imageUnfilteredTypes", ArgumentSemantic.Copy)] string [] ImageUnfilteredTypes { get; } - + [NoMacCatalyst] [Static] [Export ("canInitWithPasteboard:")] @@ -9865,7 +9844,7 @@ namespace AppKit { [NullAllowed] [Export ("accessibilityDescription")] - string AccessibilityDescription { get; set; } + string AccessibilityDescription { get; set; } [Export ("initWithCGImage:size:")] NativeHandle Constructor (CGImage cgImage, CGSize size); @@ -9924,7 +9903,7 @@ namespace AppKit { CGRect AlignmentRect { get; set; } [Export ("template")] - bool Template { [Bind ("isTemplate")]get; set; } + bool Template { [Bind ("isTemplate")] get; set; } #if !NET [Obsolete ("Use 'Draw' instead.")] @@ -9938,11 +9917,11 @@ namespace AppKit { [Export ("flipped")] bool Flipped { [Bind ("isFlipped")] get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("capInsets")] NSEdgeInsets CapInsets { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Export ("resizingMode")] NSImageResizingMode ResizingMode { get; set; } @@ -9954,30 +9933,30 @@ namespace AppKit { NSObject GetLayerContentsForContentsScale (nfloat layerContentsScale); [NoMacCatalyst] - [Mac (11,0)] + [Mac (11, 0)] [Static] [Export ("imageWithSystemSymbolName:accessibilityDescription:")] [return: NullAllowed] NSImage GetSystemSymbol (string symbolName, [NullAllowed] string accessibilityDescription); - [Mac (11,0)] + [Mac (11, 0)] [NoMacCatalyst] [Export ("imageWithSymbolConfiguration:")] [return: NullAllowed] NSImage GetImage (NSImageSymbolConfiguration configuration); - [Mac (12,0)] + [Mac (12, 0)] [NoMacCatalyst] [Export ("symbolConfiguration", ArgumentSemantic.Copy)] NSImageSymbolConfiguration SymbolConfiguration { get; } - [NoMacCatalyst, Mac (13,0)] + [NoMacCatalyst, Mac (13, 0)] [Static] [Export ("imageWithSymbolName:variableValue:")] [return: NullAllowed] NSImage GetImage (string symbolName, double variableValue); - [NoMacCatalyst, Mac (13,0)] + [NoMacCatalyst, Mac (13, 0)] [Static] [Export ("imageWithSystemSymbolName:variableValue:accessibilityDescription:")] [return: NullAllowed] @@ -9985,8 +9964,7 @@ namespace AppKit { } [MacCatalyst (13, 0)] - public enum NSImageName - { + public enum NSImageName { [Field ("NSImageNameQuickLookTemplate")] QuickLookTemplate, @@ -10447,10 +10425,9 @@ namespace AppKit { [NoMacCatalyst] // Also defined in foundation.cs, use that declaration instead [ThreadSafe] - [Mac (10,11)] - [BaseType (typeof(NSObject))] - interface NSStringDrawingContext - { + [Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface NSStringDrawingContext { [Export ("minimumScaleFactor", ArgumentSemantic.Assign)] nfloat MinimumScaleFactor { get; set; } @@ -10501,14 +10478,13 @@ namespace AppKit { [NoMacCatalyst] [ThreadSafe] [Category] - [BaseType (typeof(NSAttributedString))] - interface NSAttributedString_NSExtendedStringDrawing - { - [Mac (10,11)] + [BaseType (typeof (NSAttributedString))] + interface NSAttributedString_NSExtendedStringDrawing { + [Mac (10, 11)] [Export ("drawWithRect:options:context:")] void DrawWithRect (CGRect rect, NSStringDrawingOptions options, [NullAllowed] NSStringDrawingContext context); - [Mac (10,11)] + [Mac (10, 11)] [Export ("boundingRectWithSize:options:context:")] CGRect BoundingRectWithSize (CGSize size, NSStringDrawingOptions options, [NullAllowed] NSStringDrawingContext context); } @@ -10562,7 +10538,7 @@ namespace AppKit { [Export ("fixFontAttributeInRange:")] void FixFontAttributeInRange (NSRange range); - + [Export ("fixParagraphStyleAttributeInRange:")] void FixParagraphStyleAttributeInRange (NSRange range); @@ -10610,9 +10586,9 @@ namespace AppKit { // Inlined from parent [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); } [NoMacCatalyst] @@ -10707,7 +10683,7 @@ namespace AppKit { [Static] [Export ("imageUnfilteredTypes", ArgumentSemantic.Copy)] - string []ImageUnfilteredTypes { get; } + string [] ImageUnfilteredTypes { get; } [Static] [Export ("imageTypes", ArgumentSemantic.Copy)] @@ -10749,7 +10725,7 @@ namespace AppKit { CGSize Size { get; set; } [Export ("opaque")] - bool Opaque { [Bind ("isOpaque")]get; set; } + bool Opaque { [Bind ("isOpaque")] get; set; } [Export ("colorSpaceName")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Type' and 'NSColorType' instead.")] @@ -10790,7 +10766,7 @@ namespace AppKit { NSImageFrameStyle ImageFrameStyle { get; set; } [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } + bool Editable { [Bind ("isEditable")] get; set; } [Export ("animates")] bool Animates { get; set; } @@ -10798,7 +10774,7 @@ namespace AppKit { [Export ("allowsCutCopyPaste")] bool AllowsCutCopyPaste { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("imageViewWithImage:")] NSImageView FromImage (NSImage image); @@ -10808,13 +10784,13 @@ namespace AppKit { NSColor ContentTintColor { get; set; } [NullAllowed] - [Mac (11,0)] + [Mac (11, 0)] [Export ("symbolConfiguration", ArgumentSemantic.Copy)] NSImageSymbolConfiguration SymbolConfiguration { get; set; } } [NoMacCatalyst] - [BaseType (typeof (NSControl), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSMatrixDelegate)})] + [BaseType (typeof (NSControl), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSMatrixDelegate) })] partial interface NSMatrix { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -10887,7 +10863,8 @@ namespace AppKit { [Export ("numberOfColumns")] nint Columns { get; } - [Export ("cellAtRow:column:")][Internal] + [Export ("cellAtRow:column:")] + [Internal] NSCell CellAtRowColumn (nint row, nint column); [Export ("cellFrameAtRow:column:")] @@ -10940,7 +10917,7 @@ namespace AppKit { [Export ("sizeToCells")] void SizeToCells (); - + [Export ("setValidateSize:")] void SetValidateSize (bool flag); @@ -11016,7 +10993,7 @@ namespace AppKit { bool AllowsEmptySelection { get; set; } [Export ("selectionByRect")] - bool SelectionByRect { [Bind ("isSelectionByRect")]get; set; } + bool SelectionByRect { [Bind ("isSelectionByRect")] get; set; } [Export ("cellSize")] CGSize CellSize { get; set; } @@ -11044,7 +11021,7 @@ namespace AppKit { bool AutosizesCells { get; set; } [Export ("autoscroll")] - bool Autoscroll { [Bind ("isAutoscroll")]get; set; } + bool Autoscroll { [Bind ("isAutoscroll")] get; set; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -11094,7 +11071,7 @@ namespace AppKit { [Export ("rectOfTickMarkAtIndex:")] CGRect RectOfTickMark (nint index); - [Mac (10,10)] + [Mac (10, 10)] [Export ("levelIndicatorStyle")] NSLevelIndicatorStyle LevelIndicatorStyle { get; set; } @@ -11136,9 +11113,9 @@ namespace AppKit { interface NSLevelIndicatorCell { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("initWithLevelIndicatorStyle:")] NativeHandle Constructor (NSLevelIndicatorStyle levelIndicatorStyle); @@ -11176,7 +11153,7 @@ namespace AppKit { [Export ("setImage:")] void SetImage (NSImage image); } - + [NoMacCatalyst] [Protocol (IsInformal = true)] interface NSLayerDelegateContentsScaleUpdating { @@ -11184,11 +11161,10 @@ namespace AppKit { bool ShouldInheritContentsScale (CALayer layer, nfloat newScale, NSWindow fromWindow); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSLayoutGuide : NSCoding, NSUserInterfaceItemIdentification - { + [BaseType (typeof (NSObject))] + interface NSLayoutGuide : NSCoding, NSUserInterfaceItemIdentification { [Export ("frame")] CGRect Frame { get; } @@ -11229,12 +11205,12 @@ namespace AppKit { [Export ("hasAmbiguousLayout")] bool HasAmbiguousLayout { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("constraintsAffectingLayoutForOrientation:")] NSLayoutConstraint [] GetConstraintsAffectingLayout (NSLayoutConstraintOrientation orientation); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSGestureRecognizer))] interface NSMagnificationGestureRecognizer { @@ -11322,7 +11298,7 @@ namespace AppKit { interface NSPanel { //Detected properties [Export ("floatingPanel")] - bool FloatingPanel { [Bind ("isFloatingPanel")]get; set; } + bool FloatingPanel { [Bind ("isFloatingPanel")] get; set; } [Export ("becomesKeyOnlyIfNeeded")] bool BecomesKeyOnlyIfNeeded { get; set; } @@ -11334,7 +11310,7 @@ namespace AppKit { NativeHandle Constructor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSGestureRecognizer))] interface NSPanGestureRecognizer : NSCoding { @@ -11358,7 +11334,7 @@ namespace AppKit { nint NumberOfTouchesRequired { get; set; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSGestureRecognizer))] interface NSPressGestureRecognizer { @@ -11382,8 +11358,7 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSPasteboardTypeOwner - { + interface NSPasteboardTypeOwner { [Abstract] [Export ("pasteboard:provideDataForType:")] void ProvideData (NSPasteboard sender, string type); @@ -11474,74 +11449,74 @@ namespace AppKit { // Pasteboard data types [Field ("NSStringPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeString' instead.")] - NSString NSStringType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeString' instead.")] + NSString NSStringType { get; } + [Field ("NSFilenamesPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Create multiple items with 'NSPasteboardTypeFileUrl' or 'MobileCoreServices.UTType.FileURL' instead.")] - NSString NSFilenamesType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Create multiple items with 'NSPasteboardTypeFileUrl' or 'MobileCoreServices.UTType.FileURL' instead.")] + NSString NSFilenamesType { get; } + [Field ("NSPostScriptPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'com.adobe.encapsulated-postscript' instead.")] - NSString NSPostScriptType{ get; } + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'com.adobe.encapsulated-postscript' instead.")] + NSString NSPostScriptType { get; } [Field ("NSTIFFPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeTIFF' instead.")] - NSString NSTiffType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeTIFF' instead.")] + NSString NSTiffType { get; } + [Field ("NSRTFPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeRTF' instead.")] - NSString NSRtfType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeRTF' instead.")] + NSString NSRtfType { get; } + [Field ("NSTabularTextPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeTabularText' instead.")] - NSString NSTabularTextType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeTabularText' instead.")] + NSString NSTabularTextType { get; } + [Field ("NSFontPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeFont' instead.")] - NSString NSFontType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeFont' instead.")] + NSString NSFontType { get; } + [Field ("NSRulerPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeRuler' instead.")] - NSString NSRulerType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeRuler' instead.")] + NSString NSRulerType { get; } + [Field ("NSFileContentsPboardType")] - NSString NSFileContentsType{ get; } - + NSString NSFileContentsType { get; } + [Field ("NSColorPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeColor' instead.")] - NSString NSColorType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeColor' instead.")] + NSString NSColorType { get; } + [Field ("NSRTFDPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeRTFD' instead.")] - NSString NSRtfdType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeRTFD' instead.")] + NSString NSRtfdType { get; } + [Field ("NSHTMLPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeHTML' instead.")] - NSString NSHtmlType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeHTML' instead.")] + NSString NSHtmlType { get; } + [Field ("NSPICTPboardType")] - NSString NSPictType{ get; } - + NSString NSPictType { get; } + [Field ("NSURLPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeUrl' instead.")] - NSString NSUrlType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeUrl' instead.")] + NSString NSUrlType { get; } + [Field ("NSPDFPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypePDF' instead.")] - NSString NSPdfType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypePDF' instead.")] + NSString NSPdfType { get; } + [Field ("NSVCardPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'MobileCoreServices.UTType.VCard' instead.")] - NSString NSVCardType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'MobileCoreServices.UTType.VCard' instead.")] + NSString NSVCardType { get; } + [Field ("NSFilesPromisePboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'com.apple.pasteboard.promised-file-url' instead.")] - NSString NSFilesPromiseType{ get; } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'com.apple.pasteboard.promised-file-url' instead.")] + NSString NSFilesPromiseType { get; } + [Field ("NSMultipleTextSelectionPboardType")] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'NSPasteboardTypeMultipleTextSelection' instead.")] - NSString NSMultipleTextSelectionType{ get; } + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSPasteboardTypeMultipleTextSelection' instead.")] + NSString NSMultipleTextSelectionType { get; } // Pasteboard names: for NSPasteboard.FromName() @@ -11639,12 +11614,14 @@ namespace AppKit { [Field ("NSPasteboardTypeFileURL")] NSString NSPasteboardTypeFileUrl { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("prepareForNewContentsWithOptions:")] nint PrepareForNewContents (NSPasteboardContentsOptions options); } - - [NoiOS][NoTV][NoMacCatalyst] + + [NoiOS] + [NoTV] + [NoMacCatalyst] #if !NET // A class that implements only NSPasteboardWriting does not make sense, it's // used to add pasteboard support to existing classes. @@ -11701,7 +11678,7 @@ namespace AppKit { // @interface SWCollaborationMetadata (NSPasteboardItem) - [Mac (13,0)] + [Mac (13, 0)] [NullAllowed, Export ("collaborationMetadata", ArgumentSemantic.Copy)] SWCollaborationMetadata CollaborationMetadata { get; set; } @@ -11723,10 +11700,12 @@ namespace AppKit { void FinishedWithDataProvider (NSPasteboard pasteboard); } - interface INSPasteboardReading {} - interface INSPasteboardWriting {} + interface INSPasteboardReading { } + interface INSPasteboardWriting { } - [NoMacCatalyst][NoTV][NoiOS] + [NoMacCatalyst] + [NoTV] + [NoiOS] #if !NET [BaseType (typeof (NSObject))] // A class that implements only NSPasteboardReading does not make sense, it's @@ -11753,15 +11732,15 @@ namespace AppKit { NSObject InitWithPasteboardPropertyList (NSObject propertyList, string type); #endif } - + [NoMacCatalyst] - [BaseType (typeof (NSActionCell), Events=new Type [] { typeof (NSPathCellDelegate) }, Delegates=new string [] { "WeakDelegate" })] + [BaseType (typeof (NSActionCell), Events = new Type [] { typeof (NSPathCellDelegate) }, Delegates = new string [] { "WeakDelegate" })] interface NSPathCell : NSMenuItemValidation { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("pathStyle")] NSPathStyle PathStyle { get; set; } @@ -11887,27 +11866,27 @@ namespace AppKit { [NullAllowed] NSMenu Menu { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("editable")] bool Editable { [Bind ("isEditable")] get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("allowedTypes", ArgumentSemantic.Copy)] NSString [] AllowedTypes { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("placeholderString")] string PlaceholderString { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("placeholderAttributedString", ArgumentSemantic.Copy)] NSAttributedString PlaceholderAttributedString { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("clickedPathItem")] NSPathControlItem ClickedPathItem { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("pathItems", ArgumentSemantic.Copy)] NSPathControlItem [] PathItems { get; set; } @@ -11941,16 +11920,15 @@ namespace AppKit { [Export ("pathControl:willPopUpMenu:")] void WillPopUpMenu (NSPathControl pathControl, NSMenu menu); - [Mac (10,10)] + [Mac (10, 10)] [Export ("pathControl:shouldDragItem:withPasteboard:")] bool ShouldDragItem (NSPathControl pathControl, NSPathControlItem pathItem, NSPasteboard pasteboard); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface NSPathControlItem - { + interface NSPathControlItem { [Export ("title", ArgumentSemantic.Copy)] string Title { get; set; } @@ -11971,26 +11949,26 @@ namespace AppKit { #if !NET [Obsolete ("Use 'GetAppearance' and 'SetAppearance' methods instead.")] [Export ("appearance", ArgumentSemantic.Retain)] - new NSPopoverAppearance Appearance { get; set; } + new NSPopoverAppearance Appearance { get; set; } #endif [Export ("behavior")] - NSPopoverBehavior Behavior { get; set; } + NSPopoverBehavior Behavior { get; set; } [Export ("animates")] - bool Animates { get; set; } + bool Animates { get; set; } [Export ("contentViewController", ArgumentSemantic.Retain)] - NSViewController ContentViewController { get; set; } + NSViewController ContentViewController { get; set; } [Export ("contentSize")] - CGSize ContentSize { get; set; } + CGSize ContentSize { get; set; } [Export ("shown")] - bool Shown { [Bind ("isShown")] get; } + bool Shown { [Bind ("isShown")] get; } [Export ("positioningRect")] - CGRect PositioningRect { get; set; } + CGRect PositioningRect { get; set; } [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } @@ -11998,7 +11976,7 @@ namespace AppKit { [Wrap ("WeakDelegate")] [Protocolize] NSPopoverDelegate Delegate { set; get; } - + [Export ("showRelativeToRect:ofView:preferredEdge:")] void Show (CGRect relativePositioningRect, NSView positioningView, NSRectEdge preferredEdge); @@ -12010,26 +11988,26 @@ namespace AppKit { [Field ("NSPopoverCloseReasonKey")] NSString CloseReasonKey { get; } - + [Field ("NSPopoverCloseReasonStandard")] NSString CloseReasonStandard { get; } - + [Field ("NSPopoverCloseReasonDetachToWindow")] NSString CloseReasonDetachToWindow { get; } - + [Notification, Field ("NSPopoverWillShowNotification")] NSString WillShowNotification { get; } - + [Notification, Field ("NSPopoverDidShowNotification")] NSString DidShowNotification { get; } - + [Notification (typeof (NSPopoverCloseEventArgs)), Field ("NSPopoverWillCloseNotification")] NSString WillCloseNotification { get; } - + [Notification (typeof (NSPopoverCloseEventArgs)), Field ("NSPopoverDidCloseNotification")] NSString DidCloseNotification { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("detached")] bool Detached { [Bind ("isDetached")] get; } } @@ -12062,7 +12040,7 @@ namespace AppKit { [Export ("popoverDidClose:")] void DidClose (NSNotification notification); - [Mac (10,10)] + [Mac (10, 10)] [Export ("popoverDidDetach:")] void DidDetach (NSPopover popover); } @@ -12168,7 +12146,7 @@ namespace AppKit { [Export ("preferredEdge")] NSRectEdge PreferredEdge { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("selectedTag")] nint SelectedTag { get; } } @@ -12178,9 +12156,9 @@ namespace AppKit { partial interface NSPopUpButtonCell { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [DesignatedInitializer] [Export ("initTextCell:pullsDown:")] @@ -12308,7 +12286,7 @@ namespace AppKit { interface NSPrinter : NSCoding, NSCopying { [Static] [Export ("printerNames", ArgumentSemantic.Copy)] - string [] PrinterNames{ get; } + string [] PrinterNames { get; } [Static] [Export ("printerTypes", ArgumentSemantic.Copy)] @@ -12332,7 +12310,7 @@ namespace AppKit { nint LanguageLevel { get; } [Export ("pageSizeForPaper:")] - CGSize PageSizeForPaper (string paperName); + CGSize PageSizeForPaper (string paperName); [Deprecated (PlatformName.MacOSX, 10, 9)] [Export ("statusForTable:")] @@ -12454,10 +12432,10 @@ namespace AppKit { nfloat BottomMargin { get; set; } [Export ("horizontallyCentered")] - bool HorizontallyCentered { [Bind ("isHorizontallyCentered")]get; set; } + bool HorizontallyCentered { [Bind ("isHorizontallyCentered")] get; set; } [Export ("verticallyCentered")] - bool VerticallyCentered { [Bind ("isVerticallyCentered")]get; set; } + bool VerticallyCentered { [Bind ("isVerticallyCentered")] get; set; } [Export ("horizontalPagination")] NSPrintingPaginationMode HorizontalPagination { get; set; } @@ -12472,7 +12450,7 @@ namespace AppKit { NSPrinter Printer { get; set; } [Export ("selectionOnly")] - bool SelectionOnly { [Bind ("isSelectionOnly")]get; set; } + bool SelectionOnly { [Bind ("isSelectionOnly")] get; set; } } @@ -12655,10 +12633,10 @@ namespace AppKit { //Detected properties [Export ("indeterminate")] - bool Indeterminate { [Bind ("isIndeterminate")]get; set; } + bool Indeterminate { [Bind ("isIndeterminate")] get; set; } [Export ("bezeled")] - bool Bezeled { [Bind ("isBezeled")]get; set; } + bool Bezeled { [Bind ("isBezeled")] get; set; } [Export ("controlTint")] NSControlTint ControlTint { get; set; } @@ -12684,8 +12662,7 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSStandardKeyBindingResponding - { + interface NSStandardKeyBindingResponding { [Export ("insertText:")] void InsertText (NSObject insertString); @@ -12975,7 +12952,7 @@ namespace AppKit { [NoMacCatalyst] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] - partial interface NSResponder : NSCoding, NSTouchBarProvider , NSUserActivityRestoring { + partial interface NSResponder : NSCoding, NSTouchBarProvider, NSUserActivityRestoring { [Export ("tryToPerform:with:")] bool TryToPerformwith (Selector anAction, [NullAllowed] NSObject anObject); @@ -13097,12 +13074,13 @@ namespace AppKit { bool ShouldBeTreatedAsInkEvent (NSEvent theEvent); //Detected properties - [Export ("nextResponder")][NullAllowed] + [Export ("nextResponder")] + [NullAllowed] NSResponder NextResponder { get; set; } [Export ("menu", ArgumentSemantic.Retain)] [NullAllowed] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] NSMenu Menu { get; set; } [Export ("encodeRestorableStateWithCoder:")] @@ -13118,35 +13096,35 @@ namespace AppKit { [Export ("restorableStateKeyPaths", ArgumentSemantic.Copy)] string [] RestorableStateKeyPaths (); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("allowedClassesForRestorableStateKeyPath:")] - Class[] GetAllowedClassesForRestorableStateKeyPath (string keyPath); + Class [] GetAllowedClassesForRestorableStateKeyPath (string keyPath); [Export ("wantsForwardedScrollEventsForAxis:")] bool WantsForwardedScrollEventsForAxis (NSEventGestureAxis axis); - [Mac (10,10)] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [Mac (10, 10)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("userActivity", ArgumentSemantic.Strong)] NSUserActivity UserActivity { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("updateUserActivityState:")] void UpdateUserActivityState (NSUserActivity userActivity); #if !NET // Should be removed but radar://42781537 - Classes fail to conformsToProtocol despite header declaration - [Mac (10,10)] + [Mac (10, 10)] [Export ("restoreUserActivityState:")] new void RestoreUserActivityState (NSUserActivity userActivity); #endif - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("pressureChangeWithEvent:")] void PressureChange (NSEvent pressureChangeEvent); - [Mac (10,12)] + [Mac (10, 12)] [Export ("newWindowForTab:")] void GetNewWindowForTab ([NullAllowed] NSObject sender); @@ -13160,16 +13138,15 @@ namespace AppKit { [Export ("presentError:modalForWindow:delegate:didPresentSelector:contextInfo:")] void PresentError (NSError error, NSWindow window, [NullAllowed] NSObject @delegate, [NullAllowed] Selector didPresentSelector, IntPtr contextInfo); - [Mac (10,13)] + [Mac (10, 13)] [Export ("encodeRestorableStateWithCoder:backgroundQueue:")] void EncodeRestorableState (NSCoder coder, NSOperationQueue queue); } [NoMacCatalyst] [Protocol] - interface NSUserActivityRestoring - { - [Mac (10,10)] + interface NSUserActivityRestoring { + [Mac (10, 10)] [Abstract] [Export ("restoreUserActivityState:")] void RestoreUserActivityState (NSUserActivity userActivity); @@ -13179,9 +13156,8 @@ namespace AppKit { [NoMacCatalyst] [Category] - [BaseType (typeof(NSResponder))] - interface NSResponder_NSTouchBarProvider : INSTouchBarProvider - { + [BaseType (typeof (NSResponder))] + interface NSResponder_NSTouchBarProvider : INSTouchBarProvider { [Mac (10, 12, 2)] [Export ("touchBar")] [return: NullAllowed] @@ -13189,14 +13165,14 @@ namespace AppKit { [Mac (10, 12, 2)] [Export ("setTouchBar:")] - void SetTouchBar ([NullAllowed]NSTouchBar bar); + void SetTouchBar ([NullAllowed] NSTouchBar bar); [Mac (10, 12, 2)] [Export ("makeTouchBar")] NSTouchBar MakeTouchBar (); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSGestureRecognizer))] interface NSRotationGestureRecognizer { @@ -13246,10 +13222,10 @@ namespace AppKit { CGPoint ImageOrigin { get; set; } [Export ("movable")] - bool Movable { [Bind ("isMovable")]get; set; } + bool Movable { [Bind ("isMovable")] get; set; } [Export ("removable")] - bool Removable { [Bind ("isRemovable")]get; set; } + bool Removable { [Bind ("isRemovable")] get; set; } [Export ("representedObject", ArgumentSemantic.Retain)] NSObject RepresentedObject { get; set; } @@ -13338,8 +13314,7 @@ namespace AppKit { [Mac (10, 13)] [NoMacCatalyst] - enum NSRulerViewUnits - { + enum NSRulerViewUnits { [Field ("NSRulerViewUnitInches")] Inches, @@ -13354,9 +13329,9 @@ namespace AppKit { } delegate void NSSavePanelComplete (nint result); - + [NoMacCatalyst] - [BaseType (typeof (NSPanel), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSOpenSavePanelDelegate)})] + [BaseType (typeof (NSPanel), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSOpenSavePanelDelegate) })] [DisableDefaultCtor] interface NSSavePanel { [Static] @@ -13401,10 +13376,10 @@ namespace AppKit { [Export ("allowedFileTypes")] [NullAllowed] string [] AllowedFileTypes { get; set; } - + [Mac (11, 0)] [Export ("allowedContentTypes", ArgumentSemantic.Copy)] - UTType[] AllowedContentTypes { get; set; } + UTType [] AllowedContentTypes { get; set; } [Export ("allowsOtherFileTypes")] bool AllowsOtherFileTypes { get; set; } @@ -13426,7 +13401,7 @@ namespace AppKit { bool CanSelectHiddenExtension { get; set; } [Export ("extensionHidden")] - bool ExtensionHidden { [Bind ("isExtensionHidden")]get; set; } + bool ExtensionHidden { [Bind ("isExtensionHidden")] get; set; } [Export ("treatsFilePackagesAsDirectories")] bool TreatsFilePackagesAsDirectories { get; set; } @@ -13467,23 +13442,23 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 6, message: "Use RunModal without parameters instead.")] [Export ("runModalForDirectory:file:")] - nint RunModal ([NullAllowed] string directory, [NullAllowed] string filename); + nint RunModal ([NullAllowed] string directory, [NullAllowed] string filename); -[Mac (10,9)] + [Mac (10, 9)] [Export ("showsTagField")] bool ShowsTagField { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("tagNames", ArgumentSemantic.Copy)] string [] TagNames { get; set; } - + } #if !NET && !__MACCATALYST__ // This class doesn't show up in any documentation. [BaseType (typeof (NSSavePanel))] [DisableDefaultCtor] // should not be created by (only returned to) user code - interface NSRemoteSavePanel {} + interface NSRemoteSavePanel { } #endif [NoMacCatalyst] @@ -13546,17 +13521,17 @@ namespace AppKit { nfloat BackingScaleFactor { get; } [ThreadSafe] - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("screensHaveSeparateSpaces")] bool ScreensHaveSeparateSpaces (); - [Mac (10,12)] + [Mac (10, 12)] [Export ("canRepresentDisplayGamut:")] bool CanRepresentDisplayGamut (NSDisplayGamut displayGamut); // Inlined from unnamed category. [ThreadSafe] - [Mac (10,11)] + [Mac (10, 11)] [Export ("maximumExtendedDynamicRangeColorComponentValue")] nfloat MaximumExtendedDynamicRangeColorComponentValue { get; } @@ -13576,37 +13551,37 @@ namespace AppKit { string LocalizedName { get; } [ThreadSafe] - [Mac (12,0)] + [Mac (12, 0)] [Export ("safeAreaInsets")] NSEdgeInsets SafeAreaInsets { get; } [ThreadSafe] - [Mac (12,0)] + [Mac (12, 0)] [Export ("auxiliaryTopLeftArea")] CGRect AuxiliaryTopLeftArea { get; } [ThreadSafe] - [Mac (12,0)] + [Mac (12, 0)] [Export ("auxiliaryTopRightArea")] CGRect AuxiliaryTopRightArea { get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("maximumFramesPerSecond")] nint MaximumFramesPerSecond { get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("minimumRefreshInterval")] double MinimumRefreshInterval { get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("maximumRefreshInterval")] double MaximumRefreshInterval { get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("displayUpdateGranularity")] double DisplayUpdateGranularity { get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("lastDisplayUpdateTimestamp")] double LastDisplayUpdateTimestamp { get; } } @@ -13681,25 +13656,25 @@ namespace AppKit { [Export ("knobProportion")] nfloat KnobProportion { get; set; } - + [Static] [Export ("isCompatibleWithOverlayScrollers")] bool CompatibleWithOverlayScrollers { get; } - + [Export ("knobStyle")] NSScrollerKnobStyle KnobStyle { get; set; } - + [Static] [Export ("preferredScrollerStyle")] NSScrollerStyle PreferredScrollerStyle { get; } - + [Export ("scrollerStyle")] NSScrollerStyle ScrollerStyle { get; set; } - + [Static] [Export ("scrollerWidthForControlSize:scrollerStyle:")] nfloat GetScrollerWidth (NSControlSize forControlSize, NSScrollerStyle scrollerStyle); - + [Notification, Field ("NSPreferredScrollerStyleDidChangeNotification")] NSString PreferredStyleChangedNotification { get; } @@ -13765,7 +13740,7 @@ namespace AppKit { [Export ("hasHorizontalScroller")] bool HasHorizontalScroller { get; set; } - + [Export ("verticalScroller", ArgumentSemantic.Retain)] NSScroller VerticalScroller { get; set; } @@ -13795,47 +13770,47 @@ namespace AppKit { [Export ("scrollsDynamically")] bool ScrollsDynamically { get; set; } - + [Export ("hasVerticalRuler")] bool HasVerticalRuler { get; set; } [Export ("hasHorizontalRuler")] bool HasHorizontalRuler { get; set; } - + [Export ("rulersVisible")] bool RulersVisible { get; set; } - + [Export ("horizontalRulerView")] NSRulerView HorizontalRulerView { get; set; } - + [Export ("verticalRulerView")] NSRulerView VerticalRulerView { get; set; } [Static] [Export ("contentSizeForFrameSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:")] CGSize GetContentSizeForFrame (CGSize forFrameSize, [NullAllowed] Class horizontalScrollerClass, [NullAllowed] Class verticalScrollerClass, NSBorderType borderType, NSControlSize controlSize, NSScrollerStyle scrollerStyle); - - [Export ("findBarPosition")] - NSScrollViewFindBarPosition FindBarPosition { get; set; } - [Export ("flashScrollers")] - void FlashScrollers (); - + [Export ("findBarPosition")] + NSScrollViewFindBarPosition FindBarPosition { get; set; } + + [Export ("flashScrollers")] + void FlashScrollers (); + [Static] [Export ("frameSizeForContentSize:horizontalScrollerClass:verticalScrollerClass:borderType:controlSize:scrollerStyle:")] CGSize GetFrameSizeForContent (CGSize contentSize, [NullAllowed] Class horizontalScrollerClass, [NullAllowed] Class verticalScrollerClass, NSBorderType borderType, NSControlSize controlSize, NSScrollerStyle scrollerStyle); - + [Export ("horizontalScrollElasticity")] NSScrollElasticity HorizontalScrollElasticity { get; set; } - - [Export ("scrollerKnobStyle")] - NSScrollerKnobStyle ScrollerKnobStyle { get; set; } - - [Export ("scrollerStyle")] - NSScrollerStyle ScrollerStyle { get; set; } - + + [Export ("scrollerKnobStyle")] + NSScrollerKnobStyle ScrollerKnobStyle { get; set; } + + [Export ("scrollerStyle")] + NSScrollerStyle ScrollerStyle { get; set; } + [Export ("usesPredominantAxisScrolling")] - bool UsesPredominantAxisScrolling { get; set; } + bool UsesPredominantAxisScrolling { get; set; } [Export ("verticalScrollElasticity")] NSScrollElasticity VerticalScrollElasticity { get; set; } @@ -13863,17 +13838,17 @@ namespace AppKit { [Notification, Field ("NSScrollViewDidEndLiveMagnifyNotification")] NSString DidEndLiveMagnifyNotification { get; } - + [Notification, Field ("NSScrollViewWillStartLiveScrollNotification")] NSString WillStartLiveScrollNotification { get; } - [Mac (10,9), Notification, Field ("NSScrollViewDidLiveScrollNotification")] + [Mac (10, 9), Notification, Field ("NSScrollViewDidLiveScrollNotification")] NSString DidLiveScrollNotification { get; } - [Mac (10,9), Notification, Field ("NSScrollViewDidEndLiveScrollNotification")] + [Mac (10, 9), Notification, Field ("NSScrollViewDidEndLiveScrollNotification")] NSString DidEndLiveScrollNotification { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("automaticallyAdjustsContentInsets")] bool AutomaticallyAdjustsContentInsets { get; set; } @@ -13887,13 +13862,13 @@ namespace AppKit { [Export ("scrollerInsets", ArgumentSemantic.Assign)] NSEdgeInsets ScrollerInsets { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("addFloatingSubview:forAxis:")] void AddFloatingSubview (NSView view, NSEventGestureAxis axis); } [NoMacCatalyst] - [BaseType (typeof (NSTextField), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSSearchFieldDelegate)})] + [BaseType (typeof (NSTextField), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSSearchFieldDelegate) })] interface NSSearchField { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -13907,47 +13882,48 @@ namespace AppKit { [New, Export ("cell")] NSSearchFieldCell Cell { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("searchMenuTemplate", ArgumentSemantic.Retain)] NSMenu SearchMenuTemplate { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("sendsWholeSearchString")] bool SendsWholeSearchString { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("maximumRecents")] nint MaximumRecents { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("sendsSearchStringImmediately")] bool SendsSearchStringImmediately { get; set; } [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'SearchTextBounds' instead.")] - [Mac (10,11)] + [Mac (10, 11)] [Export ("rectForSearchTextWhenCentered:")] CGRect GetRectForSearchText (bool isCentered); [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'SearchButtonBounds' instead.")] - [Mac (10,11)] + [Mac (10, 11)] [Export ("rectForSearchButtonWhenCentered:")] CGRect GetRectForSearchButton (bool isCentered); [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CancelButtonBounds' instead.")] - [Mac (10,11)] + [Mac (10, 11)] [Export ("rectForCancelButtonWhenCentered:")] CGRect GetRectForCancelButton (bool isCentered); [Wrap ("WeakDelegate")] - [NullAllowed][Protocolize] + [NullAllowed] + [Protocolize] NSSearchFieldDelegate Delegate { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed, Export ("delegate", ArgumentSemantic.Assign)] NSObject WeakDelegate { get; set; } [Deprecated (PlatformName.MacOSX, 12, 0, message: "No longer availabile, now a no-op.")] - [Mac (10,11)] + [Mac (10, 11)] [Export ("centersPlaceholder")] bool CentersPlaceholder { get; set; } @@ -13963,17 +13939,16 @@ namespace AppKit { [Export ("cancelButtonBounds")] CGRect CancelButtonBounds { get; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Protocol, Model] - interface NSSearchFieldDelegate : NSTextFieldDelegate - { - [Mac (10,11)] + interface NSSearchFieldDelegate : NSTextFieldDelegate { + [Mac (10, 11)] [Export ("searchFieldDidStartSearching:")] void SearchingStarted (NSSearchField sender); - [Mac (10,11)] + [Mac (10, 11)] [Export ("searchFieldDidEndSearching:")] void SearchingEnded (NSSearchField sender); } @@ -14024,7 +13999,7 @@ namespace AppKit { [Export ("sendsSearchStringImmediately")] bool SendsSearchStringImmediately { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSControl))] interface NSSegmentedControl : NSUserInterfaceCompression { @@ -14086,64 +14061,64 @@ namespace AppKit { [Export ("segmentStyle")] NSSegmentStyle SegmentStyle { get; set; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("springLoaded")] bool IsSpringLoaded { [Bind ("isSpringLoaded")] get; set; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("trackingMode")] NSSegmentSwitchTracking TrackingMode { get; set; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("doubleValueForSelectedSegment")] double GetValueForSelectedSegment (); // actually returns double - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("segmentedControlWithLabels:trackingMode:target:action:")] - NSSegmentedControl _FromLabels (string[] labels, NSSegmentSwitchTracking trackingMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSSegmentedControl _FromLabels (string [] labels, NSSegmentSwitchTracking trackingMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("segmentedControlWithImages:trackingMode:target:action:")] - NSSegmentedControl _FromImages (NSImage[] images, NSSegmentSwitchTracking trackingMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSSegmentedControl _FromImages (NSImage [] images, NSSegmentSwitchTracking trackingMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); [Mac (10, 12, 2)] [NullAllowed, Export ("selectedSegmentBezelColor", ArgumentSemantic.Copy)] NSColor SelectedSegmentBezelColor { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("setToolTip:forSegment:")] void SetToolTip ([NullAllowed] string toolTip, nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("toolTipForSegment:")] [return: NullAllowed] string GetToolTip (nint forSegment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("setTag:forSegment:")] void SetTag (nint tag, nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("tagForSegment:")] nint GetTag (nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("setShowsMenuIndicator:forSegment:")] void SetShowsMenuIndicator (bool showsMenuIndicator, nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("showsMenuIndicatorForSegment:")] bool ShowsMenuIndicator (nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("setAlignment:forSegment:")] void SetAlignment (NSTextAlignment alignment, nint segment); - [Mac (10,13)] + [Mac (10, 13)] [Export ("alignmentForSegment:")] NSTextAlignment GetAlignment (nint segment); @@ -14151,15 +14126,15 @@ namespace AppKit { [Export ("segmentDistribution", ArgumentSemantic.Assign)] NSSegmentDistribution SegmentDistribution { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSActionCell))] interface NSSegmentedCell { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("selectSegmentWithTag:")] bool SelectSegment (nint tag); @@ -14293,7 +14268,7 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 9)] [Export ("image")] NSImage Image { get; set; } - + [Export ("tickMarkValueAtIndex:")] double TickMarkValue (nint index); @@ -14316,17 +14291,17 @@ namespace AppKit { [Export ("allowsTickMarkValuesOnly")] bool AllowsTickMarkValuesOnly { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("sliderType")] NSSliderType SliderType { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("sliderWithTarget:action:")] NSSlider _FromTarget ([NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Internal] [Export ("sliderWithValue:minValue:maxValue:target:action:")] @@ -14336,15 +14311,15 @@ namespace AppKit { [NullAllowed, Export ("trackFillColor", ArgumentSemantic.Copy)] NSColor TrackFillColor { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSActionCell))] interface NSSliderCell { [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Static] [Export ("prefersTrackingUntilMouseUp")] @@ -14371,7 +14346,7 @@ namespace AppKit { void DrawBar (CGRect aRect, bool flipped); [Export ("trackRect")] - CGRect TrackRect{ get; } + CGRect TrackRect { get; } //Detected properties [Export ("minValue")] @@ -14405,7 +14380,7 @@ namespace AppKit { [Export ("sliderType")] NSSliderType SliderType { get; set; } - + [Export ("tickMarkValueAtIndex:")] double TickMarkValue (nint index); @@ -14428,17 +14403,16 @@ namespace AppKit { [Export ("allowsTickMarkValuesOnly")] bool AllowsTickMarkValuesOnly { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("barRectFlipped:")] CGRect BarRectFlipped (bool flipped); } - [Mac (10,12,2)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 12, 2)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSSliderTouchBarItem - { + interface NSSliderTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -14469,7 +14443,7 @@ namespace AppKit { [Export ("customizationLabel")] string CustomizationLabel { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] [Export ("view")] INSUserInterfaceCompression View { get; } @@ -14486,7 +14460,7 @@ namespace AppKit { [Export ("maximumSliderWidth")] nfloat MaximumSliderWidth { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSSpeechRecognizer { @@ -14659,7 +14633,7 @@ namespace AppKit { [Field ("NSTextCheckingDocumentAuthorKey")] NSString DocumentAuthorKey { get; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] partial interface NSSpellChecker { @@ -14685,7 +14659,7 @@ namespace AppKit { nint CountWords (string stringToCount, string language); [Export ("checkGrammarOfString:startingAt:language:wrap:inSpellDocumentWithTag:details:")] - NSRange CheckGrammar (string stringToCheck, nint startingOffset, string language, bool wrapFlag, nint documentTag, NSDictionary[] details ); + NSRange CheckGrammar (string stringToCheck, nint startingOffset, string language, bool wrapFlag, nint documentTag, NSDictionary [] details); [Export ("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:")] NSTextCheckingResult [] CheckString (string stringToCheck, NSRange range, NSTextCheckingTypes checkingTypes, [NullAllowed] NSDictionary options, nint tag, out NSOrthography orthography, out nint wordCount); @@ -14698,7 +14672,7 @@ namespace AppKit { [Wrap ("RequestChecking (stringToCheck, range, checkingTypes, options.GetDictionary (), tag, completionHandler)")] nint RequestChecking (string stringToCheck, NSRange range, NSTextCheckingTypes checkingTypes, NSTextCheckingOptions options, nint tag, Action completionHandler); - + [Export ("menuForResult:string:options:atLocation:inView:")] NSMenu MenuForResults (NSTextCheckingResult result, string checkedString, NSDictionary options, CGPoint location, NSView view); @@ -14778,14 +14752,14 @@ namespace AppKit { [Export ("setLanguage:"), Protected] bool SetLanguage (string language); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("isAutomaticQuoteSubstitutionEnabled")] bool IsAutomaticQuoteSubstitutionEnabled (); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("isAutomaticDashSubstitutionEnabled")] bool IsAutomaticDashSubstitutionEnabled (); - + [Mac (10, 12)] [Static] [Export ("isAutomaticCapitalizationEnabled")] @@ -14796,7 +14770,7 @@ namespace AppKit { [Export ("isAutomaticPeriodSubstitutionEnabled")] bool IsAutomaticPeriodSubstitutionEnabled { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("preventsAutocorrectionBeforeString:language:")] bool PreventsAutocorrectionBefore (string aString, [NullAllowed] string language); @@ -14805,26 +14779,25 @@ namespace AppKit { [Export ("isAutomaticTextCompletionEnabled")] bool IsAutomaticTextCompletionEnabled { get; } - [Mac (10,12,2)] + [Mac (10, 12, 2)] #if NET [Async (ResultTypeName="NSSpellCheckerCandidates")] #else - [Async (ResultTypeName="NSSpellCheckerCanidates")] + [Async (ResultTypeName = "NSSpellCheckerCanidates")] #endif [Export ("requestCandidatesForSelectedRange:inString:types:options:inSpellDocumentWithTag:completionHandler:")] nint RequestCandidates (NSRange selectedRange, string stringToCheck, ulong checkingTypes, [NullAllowed] NSDictionary options, nint tag, [NullAllowed] Action completionHandler); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("deletesAutospaceBetweenString:andString:language:")] bool DeletesAutospace (string precedingString, string followingString, [NullAllowed] string language); } [NoMacCatalyst] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSSoundDelegate) })] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSSoundDelegate) })] [DisableDefaultCtor] // no valid handle is returned - partial interface NSSound : NSSecureCoding, NSCopying, NSPasteboardReading, NSPasteboardWriting - { + partial interface NSSound : NSSecureCoding, NSCopying, NSPasteboardReading, NSPasteboardWriting { [Static] [Export ("soundNamed:")] NSSound FromName (string name); @@ -14941,14 +14914,14 @@ namespace AppKit { //Detected properties [Export ("vertical")] - bool IsVertical { [Bind ("isVertical")]get; set; } + bool IsVertical { [Bind ("isVertical")] get; set; } [Export ("dividerStyle")] NSSplitViewDividerStyle DividerStyle { get; set; } [Export ("autosaveName")] string AutosaveName { get; set; } - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -14956,28 +14929,28 @@ namespace AppKit { [Protocolize] NSSplitViewDelegate Delegate { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("arrangesAllSubviews")] bool ArrangesAllSubviews { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("arrangedSubviews", ArgumentSemantic.Copy)] - NSView[] ArrangedSubviews { get; } + NSView [] ArrangedSubviews { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("addArrangedSubview:")] void AddArrangedSubview (NSView view); - [Mac (10,11)] + [Mac (10, 11)] [Export ("insertArrangedSubview:atIndex:")] void InsertArrangedSubview (NSView view, nint index); - [Mac (10,11)] + [Mac (10, 11)] [Export ("removeArrangedSubview:")] void RemoveArrangedSubview (NSView view); [Export ("holdingPriorityForSubviewAtIndex:")] - float /*NSLayoutPriority*/ HoldingPriorityForSubview (nint subviewIndex); + float /*NSLayoutPriority*/ HoldingPriorityForSubview (nint subviewIndex); [Export ("setHoldingPriority:forSubviewAtIndex:")] void SetHoldingPriority (float /*NSLayoutPriority*/ priority, nint subviewIndex); @@ -14991,9 +14964,9 @@ namespace AppKit { NSString NSSplitViewDidResizeSubviewsNotification { get; } } - interface INSSplitViewDelegate {} + interface INSSplitViewDelegate { } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSViewController))] interface NSSplitViewController : NSSplitViewDelegate, NSUserInterfaceValidations { @@ -15018,15 +14991,15 @@ namespace AppKit { [Export ("splitViewItemForViewController:")] NSSplitViewItem GetSplitViewItem (NSViewController viewController); - [Mac (10,11)] + [Mac (10, 11)] [Export ("minimumThicknessForInlineSidebars", ArgumentSemantic.Assign)] nfloat MinimumThicknessForInlineSidebars { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("toggleSidebar:")] void ToggleSidebar ([NullAllowed] NSObject sender); - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSSplitViewControllerAutomaticDimension")] nfloat AutomaticDimension { get; } @@ -15057,7 +15030,7 @@ namespace AppKit { new bool ShouldCollapseForDoubleClick (NSSplitView splitView, NSView subview, nint doubleClickAtDividerIndex); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSSplitViewItem : NSAnimatablePropertyContainer, NSCoding { @@ -15076,41 +15049,41 @@ namespace AppKit { [Static, Export ("splitViewItemWithViewController:")] NSSplitViewItem FromViewController (NSViewController viewController); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("sidebarWithViewController:")] NSSplitViewItem CreateSidebar (NSViewController viewController); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("contentListWithViewController:")] NSSplitViewItem CreateContentList (NSViewController viewController); - [Mac (10,11)] + [Mac (10, 11)] [Export ("behavior")] NSSplitViewItemBehavior Behavior { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("minimumThickness", ArgumentSemantic.Assign)] nfloat MinimumThickness { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("maximumThickness", ArgumentSemantic.Assign)] nfloat MaximumThickness { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("preferredThicknessFraction", ArgumentSemantic.Assign)] nfloat PreferredThicknessFraction { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("automaticMaximumThickness", ArgumentSemantic.Assign)] nfloat AutomaticMaximumThickness { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("springLoaded")] bool SpringLoaded { [Bind ("isSpringLoaded")] get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSSplitViewItemUnspecifiedDimension")] nfloat UnspecifiedDimension { get; } @@ -15127,10 +15100,12 @@ namespace AppKit { [BaseType (typeof (NSObject))] [Model, Protocol] interface NSSplitViewDelegate { - [Export ("splitView:canCollapseSubview:") ] [DefaultValue (true)] + [Export ("splitView:canCollapseSubview:")] + [DefaultValue (true)] bool CanCollapse (NSSplitView splitView, NSView subview); - [Export ("splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:")] [DefaultValue (true)] + [Export ("splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:")] + [DefaultValue (true)] [Deprecated (PlatformName.MacOSX, 10, 15, message: "This delegate method is never called.")] bool ShouldCollapseForDoubleClick (NSSplitView splitView, NSView subview, nint doubleClickAtDividerIndex); @@ -15146,10 +15121,12 @@ namespace AppKit { [Export ("splitView:resizeSubviewsWithOldSize:")] void Resize (NSSplitView splitView, CGSize oldSize); - [Export ("splitView:shouldAdjustSizeOfSubview:")][DefaultValue (true)] + [Export ("splitView:shouldAdjustSizeOfSubview:")] + [DefaultValue (true)] bool ShouldAdjustSize (NSSplitView splitView, NSView view); - [Export ("splitView:shouldHideDividerAtIndex:")] [DefaultValue (false)] + [Export ("splitView:shouldHideDividerAtIndex:")] + [DefaultValue (false)] bool ShouldHideDivider (NSSplitView splitView, nint dividerIndex); [Export ("splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:")] @@ -15165,12 +15142,11 @@ namespace AppKit { void DidResizeSubviews (NSNotification notification); } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSSpringLoadingDestination - { + [BaseType (typeof (NSObject))] + interface NSSpringLoadingDestination { [Abstract] [Export ("springLoadingActivated:draggingInfo:")] #if NET @@ -15216,14 +15192,15 @@ namespace AppKit { #endif } - [Mac (10,9)] + [Mac (10, 9)] [NoMacCatalyst] [BaseType (typeof (NSView))] interface NSStackView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -15294,28 +15271,28 @@ namespace AppKit { [Export ("setHuggingPriority:forOrientation:")] void SetHuggingPriority (float /* NSLayoutPriority = float */ huggingPriority, NSLayoutConstraintOrientation orientation); - [Mac (10,11)] + [Mac (10, 11)] [Export ("detachesHiddenViews")] bool DetachesHiddenViews { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("distribution", ArgumentSemantic.Assign)] NSStackViewDistribution Distribution { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("arrangedSubviews", ArgumentSemantic.Copy)] -// [Verify (StronglyTypedNSArray)] - NSView[] ArrangedSubviews { get; } + // [Verify (StronglyTypedNSArray)] + NSView [] ArrangedSubviews { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("addArrangedSubview:")] void AddArrangedSubview (NSView view); - [Mac (10,11)] + [Mac (10, 11)] [Export ("insertArrangedSubview:atIndex:")] void InsertArrangedSubview (NSView view, nint index); - [Mac (10,11)] + [Mac (10, 11)] [Export ("removeArrangedSubview:")] void RemoveArrangedSubview (NSView view); } @@ -15350,7 +15327,7 @@ namespace AppKit { nfloat Thickness { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSButton))] interface NSStatusBarButton { @@ -15360,7 +15337,7 @@ namespace AppKit { [Export ("appearsDisabled")] bool AppearsDisabled { get; set; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [PrivateDefaultCtor] @@ -15419,7 +15396,7 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 10, message: "Soft-deprecation, forwards message to button, but will be gone in the future.")] [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")]get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Deprecated (PlatformName.MacOSX, 10, 10, message: "Soft-deprecation, forwards message to button, but will be gone in the future.")] [Export ("toolTip"), NullAllowed] @@ -15434,7 +15411,7 @@ namespace AppKit { [NullAllowed] NSView View { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("button", ArgumentSemantic.Retain)] NSStatusBarButton Button { get; } @@ -15484,7 +15461,7 @@ namespace AppKit { [Field ("NSKernAttributeName")] NSString KerningAdjustment { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSTrackingAttributeName")] NSString Tracking { get; } @@ -15542,7 +15519,7 @@ namespace AppKit { [Field ("NSTextAlternativesAttributeName")] NSString TextAlternatives { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("NSTextEffectAttributeName")] NSString TextEffect { get; } @@ -15577,37 +15554,7 @@ namespace AppKit { [Internal, Field ("NSFileTypeDocumentOption")] NSString NSFileTypeDocumentOption { get; } - [Internal, Field ("NSPlainTextDocumentType")] - NSString NSPlainTextDocumentType { get; } - - [Internal, Field ("NSRTFTextDocumentType")] - NSString NSRtfTextDocumentType { get; } - - [Internal, Field ("NSRTFDTextDocumentType")] - NSString NSRtfdTextDocumentType { get; } - - [Internal, Field ("NSMacSimpleTextDocumentType")] - NSString NSMacSimpleTextDocumentType { get; } - - [Internal, Field ("NSHTMLTextDocumentType")] - NSString NSHTMLTextDocumentType { get; } - - [Internal, Field ("NSDocFormatTextDocumentType")] - NSString NSDocFormatTextDocumentType { get; } - - [Internal, Field ("NSWordMLTextDocumentType")] - NSString NSWordMLTextDocumentType { get; } - - [Internal, Field ("NSWebArchiveTextDocumentType")] - NSString NSWebArchiveTextDocumentType { get; } - - [Internal, Field ("NSOfficeOpenXMLTextDocumentType")] - NSString NSOfficeOpenXMLTextDocumentType { get; } - - [Internal, Field ("NSOpenDocumentTextDocumentType")] - NSString NSOpenDocumentTextDocumentType { get; } - - [Mac (10,11)] + [Mac (10, 11)] [Internal, Field ("NSDefaultAttributesDocumentAttribute")] NSString NSDefaultAttributesDocumentAttribute { get; } @@ -15622,7 +15569,7 @@ namespace AppKit { delegate NSObject NSStoryboardControllerCreator (NSCoder coder); - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSStoryboard { @@ -15640,17 +15587,17 @@ namespace AppKit { [NullAllowed, Export ("mainStoryboard", ArgumentSemantic.Strong)] NSStoryboard MainStoryboard { get; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("instantiateInitialControllerWithCreator:")] [return: NullAllowed] NSViewController InstantiateInitialController ([NullAllowed] NSStoryboardControllerCreator handler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("instantiateControllerWithIdentifier:creator:")] NSViewController InstantiateController (string identifier, [NullAllowed] NSStoryboardControllerCreator handler); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSStoryboardSegue { @@ -15674,7 +15621,7 @@ namespace AppKit { void Perform (); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -15695,10 +15642,10 @@ namespace AppKit { [DesignatedInitializer] [Export ("initWithDefaults:initialValues:")] NativeHandle Constructor ([NullAllowed] NSUserDefaults defaults, [NullAllowed] NSDictionary initialValues); -// -// [Export ("initWithCoder:")] -// NativeHandle Constructor (NSCoder coder); -// + // + // [Export ("initWithCoder:")] + // NativeHandle Constructor (NSCoder coder); + // [Export ("defaults", ArgumentSemantic.Strong)] NSUserDefaults Defaults { get; } @@ -15727,7 +15674,7 @@ namespace AppKit { void RevertToInitialValues (NSObject sender); } - interface INSUserInterfaceItemIdentification {} + interface INSUserInterfaceItemIdentification { } [NoMacCatalyst] [Protocol] @@ -15750,43 +15697,43 @@ namespace AppKit { [Abstract] #endif [Export ("allowsMultipleSelection")] - bool AllowsMultipleSelection { get; } + bool AllowsMultipleSelection { get; } #if !NET [Abstract] #endif [Export ("editable")] - bool Editable { [Bind ("isEditable")] get; } + bool Editable { [Bind ("isEditable")] get; } #if !NET [Abstract] #endif [Export ("string", ArgumentSemantic.Copy)] - string String { get; } + string String { get; } #if !NET [Abstract] #endif [Export ("firstSelectedRange")] - NSRange FirstSelectedRange { get; } + NSRange FirstSelectedRange { get; } #if !NET [Abstract] #endif [Export ("selectedRanges", ArgumentSemantic.Copy)] - NSArray SelectedRanges { get; set; } + NSArray SelectedRanges { get; set; } #if !NET [Abstract] #endif [Export ("visibleCharacterRanges", ArgumentSemantic.Copy)] - NSArray VisibleCharacterRanges { get; } + NSArray VisibleCharacterRanges { get; } #if !NET [Abstract] #endif [Export ("selectable")] - bool Selectable { [Bind ("isSelectable")] get; } + bool Selectable { [Bind ("isSelectable")] get; } #if !NET [Abstract] @@ -15876,7 +15823,7 @@ namespace AppKit { [BaseType (typeof (NSObject)), Model, Protocol] partial interface NSTextFinderBarContainer { [Abstract, Export ("findBarVisible")] - bool FindBarVisible { [Bind ("isFindBarVisible")] get; set; } + bool FindBarVisible { [Bind ("isFindBarVisible")] get; set; } [Abstract, Export ("findBarView", ArgumentSemantic.Retain)] NSView FindBarView { get; set; } @@ -15904,10 +15851,10 @@ namespace AppKit { bool FindIndicatorNeedsUpdate { get; set; } [Export ("incrementalSearchingEnabled")] - bool IncrementalSearchingEnabled { [Bind ("isIncrementalSearchingEnabled")] get; set; } + bool IncrementalSearchingEnabled { [Bind ("isIncrementalSearchingEnabled")] get; set; } [Export ("incrementalMatchRanges", ArgumentSemantic.Copy)] - NSArray IncrementalMatchRanges { get; } + NSArray IncrementalMatchRanges { get; } [Export ("performAction:")] void PerformAction (NSTextFinderAction op); @@ -16095,18 +16042,21 @@ namespace AppKit { void LockFocus (); [Deprecated (PlatformName.MacOSX, 10, 14, message: "Subclass NSView and implement 'DrawRect'.")] - [Export ("unlockFocus")][ThreadSafe] + [Export ("unlockFocus")] + [ThreadSafe] void UnlockFocus (); [Deprecated (PlatformName.MacOSX, 10, 14, message: "Subclass NSView and implement 'DrawRect'.")] - [Export ("lockFocusIfCanDraw")][ThreadSafe] + [Export ("lockFocusIfCanDraw")] + [ThreadSafe] bool LockFocusIfCanDraw (); [Export ("lockFocusIfCanDrawInContext:")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSView.DisplayRectIgnoringOpacity (CGRect, NSGraphicsContext)' to draw into a graphics context.")] bool LockFocusIfCanDrawInContext (NSGraphicsContext context); - [Export ("focusView")][Static] + [Export ("focusView")] + [Static] [return: NullAllowed] NSView FocusView (); @@ -16315,7 +16265,7 @@ namespace AppKit { //Detected properties [Export ("hidden")] - bool Hidden { [Bind ("isHidden")]get; set; } + bool Hidden { [Bind ("isHidden")] get; set; } [Export ("subviews", ArgumentSemantic.Copy)] NSView [] Subviews { get; set; } @@ -16389,15 +16339,15 @@ namespace AppKit { [Export ("toolTip"), NullAllowed] string ToolTip { get; set; } - + [Export ("registerForDraggedTypes:")] void RegisterForDraggedTypes (string [] newTypes); [Export ("unregisterDraggedTypes")] void UnregisterDraggedTypes (); - + [Export ("registeredDraggedTypes")] - string[] RegisteredDragTypes(); + string [] RegisteredDragTypes (); [Export ("beginDraggingSessionWithItems:event:source:")] NSDraggingSession BeginDraggingSession (NSDraggingItem [] items, NSEvent evnt, [Protocolize] NSDraggingSource source); @@ -16409,36 +16359,36 @@ namespace AppKit { [Export ("dragFile:fromRect:slideBack:event:")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'BeginDraggingSession (NSDraggingItem [], NSEvent, NSDraggingSource)' instead.")] bool DragFile (string filename, CGRect aRect, bool slideBack, NSEvent theEvent); - + [Export ("dragPromisedFilesOfTypes:fromRect:source:slideBack:event:")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'BeginDraggingSession (NSDraggingItem [], NSEvent, NSDraggingSource)' instead.")] - bool DragPromisedFilesOfTypes (string[] typeArray, CGRect aRect, NSObject sourceObject, bool slideBack, NSEvent theEvent); - + bool DragPromisedFilesOfTypes (string [] typeArray, CGRect aRect, NSObject sourceObject, bool slideBack, NSEvent theEvent); + [Export ("exitFullScreenModeWithOptions:")] - void ExitFullscreenModeWithOptions(NSDictionary options); - + void ExitFullscreenModeWithOptions (NSDictionary options); + [Export ("enterFullScreenMode:withOptions:")] - bool EnterFullscreenModeWithOptions(NSScreen screen, NSDictionary options); - + bool EnterFullscreenModeWithOptions (NSScreen screen, NSDictionary options); + [Export ("isInFullScreenMode")] bool IsInFullscreenMode { get; } - - [Field ("NSFullScreenModeApplicationPresentationOptions")] + + [Field ("NSFullScreenModeApplicationPresentationOptions")] NSString NSFullScreenModeApplicationPresentationOptions { get; } - + // Fields [Field ("NSFullScreenModeAllScreens")] NSString NSFullScreenModeAllScreens { get; } - + [Field ("NSFullScreenModeSetting")] NSString NSFullScreenModeSetting { get; } - + [Field ("NSFullScreenModeWindowLevel")] NSString NSFullScreenModeWindowLevel { get; } [Notification, Field ("NSViewFrameDidChangeNotification")] NSString FrameChangedNotification { get; } - + [Notification, Field ("NSViewFocusDidChangeNotification")] [Deprecated (PlatformName.MacOSX, 10, 4)] NSString FocusChangedNotification { get; } @@ -16455,7 +16405,7 @@ namespace AppKit { [Export ("constraints")] NSLayoutConstraint [] Constraints { get; } - + [Export ("addConstraint:")] void AddConstraint (NSLayoutConstraint constraint); @@ -16577,22 +16527,22 @@ namespace AppKit { [Export ("isDrawingFindIndicator")] bool IsDrawingFindIndicator { get; } - + [Export ("dataWithEPSInsideRect:")] NSData DataWithEpsInsideRect (CGRect rect); - + [Export ("dataWithPDFInsideRect:")] NSData DataWithPdfInsideRect (CGRect rect); - + [Export ("print:")] void Print (NSObject sender); - + [Export ("printJobTitle")] string PrintJobTitle { get; } [Export ("beginDocument")] void BeginDocument (); - + [Export ("endDocument")] void EndDocument (); @@ -16601,7 +16551,7 @@ namespace AppKit { [Export ("endPage")] void EndPage (); - + [Export ("pageHeader")] NSAttributedString PageHeader { get; } @@ -16613,36 +16563,36 @@ namespace AppKit { [Export ("writePDFInsideRect:toPasteboard:")] void WritePdfInsideRect (CGRect rect, NSPasteboard pboard); - + [Export ("drawPageBorderWithSize:")] void DrawPageBorder (CGSize borderSize); - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Never called.")] [Export ("drawSheetBorderWithSize:")] void DrawSheetBorder (CGSize borderSize); - + [Export ("heightAdjustLimit")] nfloat HeightAdjustLimit { get; } - + [Export ("widthAdjustLimit")] nfloat WidthAdjustLimit { get; } - + [Export ("adjustPageWidthNew:left:right:limit:")] void AdjustPageWidthNew (ref nfloat newRight, nfloat left, nfloat proposedRight, nfloat rightLimit); - + [Export ("adjustPageHeightNew:top:bottom:limit:")] void AdjustPageHeightNew (ref nfloat newBottom, nfloat top, nfloat proposedBottom, nfloat bottomLimit); - + [Export ("knowsPageRange:")] bool KnowsPageRange (ref NSRange aRange); - + [Export ("rectForPage:")] CGRect RectForPage (nint pageNumber); - + [Export ("locationOfPrintRect:")] CGPoint LocationOfPrintRect (CGRect aRect); - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Metal' Framework instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' Framework instead.")] [Export ("wantsBestResolutionOpenGLSurface")] bool WantsBestResolutionOpenGLSurface { get; set; } @@ -16688,136 +16638,136 @@ namespace AppKit { [Export ("viewDidChangeBackingProperties")] void DidChangeBackingProperties (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("allowsVibrancy")] bool AllowsVibrancy { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("gestureRecognizers", ArgumentSemantic.Copy)] NSGestureRecognizer [] GestureRecognizers { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("addGestureRecognizer:")] void AddGestureRecognizer (NSGestureRecognizer gestureRecognizer); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeGestureRecognizer:")] void RemoveGestureRecognizer (NSGestureRecognizer gestureRecognizer); [Export ("prepareForReuse")] void PrepareForReuse (); - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("isCompatibleWithResponsiveScrolling")] bool IsCompatibleWithResponsiveScrolling { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("prepareContentInRect:")] void PrepareContentInRect (CGRect rect); - - [Mac (10,9)] + + [Mac (10, 9)] [Export ("canDrawSubviewsIntoLayer")] bool CanDrawSubviewsIntoLayer { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("layerUsesCoreImageFilters")] bool LayerUsesCoreImageFilters { get; set; } - [Mac (10,9)] // NS_AVAILABLE_MAC(10,8); but the 10.8 headers do not contain this member, nor can the dontlink tests find it in 10.8. + [Mac (10, 9)] // NS_AVAILABLE_MAC(10,8); but the 10.8 headers do not contain this member, nor can the dontlink tests find it in 10.8. [Export ("userInterfaceLayoutDirection")] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("preparedContentRect")] CGRect PreparedContentRect { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("pressureConfiguration", ArgumentSemantic.Strong)] NSPressureConfiguration PressureConfiguration { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("willOpenMenu:withEvent:")] void WillOpenMenu (NSMenu menu, NSEvent theEvent); - [Mac (10,11)] + [Mac (10, 11)] [Export ("didCloseMenu:withEvent:")] void DidCloseMenu (NSMenu menu, [NullAllowed] NSEvent theEvent); // NSConstraintBasedLayoutCoreMethods - [Mac (10,11)] + [Mac (10, 11)] [Export ("leadingAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor LeadingAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("trailingAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor TrailingAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("leftAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor LeftAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("rightAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor RightAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("topAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor TopAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("bottomAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor BottomAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("widthAnchor", ArgumentSemantic.Strong)] NSLayoutDimension WidthAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("heightAnchor", ArgumentSemantic.Strong)] NSLayoutDimension HeightAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("centerXAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor CenterXAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("centerYAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor CenterYAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("firstBaselineAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor FirstBaselineAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("lastBaselineAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor LastBaselineAnchor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("firstBaselineOffsetFromTop")] nfloat FirstBaselineOffsetFromTop { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("lastBaselineOffsetFromBottom")] nfloat LastBaselineOffsetFromBottom { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSViewNoIntrinsicMetric")] nfloat NoIntrinsicMetric { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("addLayoutGuide:")] void AddLayoutGuide (NSLayoutGuide guide); - [Mac (10,11)] + [Mac (10, 11)] [Export ("removeLayoutGuide:")] void RemoveLayoutGuide (NSLayoutGuide guide); - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutGuides", ArgumentSemantic.Copy)] - NSLayoutGuide[] LayoutGuides { get; } + NSLayoutGuide [] LayoutGuides { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("viewDidChangeEffectiveAppearance")] void ViewDidChangeEffectiveAppearance (); @@ -16856,54 +16806,53 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSAnimation))] - interface NSViewAnimation { + interface NSViewAnimation { [Export ("initWithViewAnimations:")] NativeHandle Constructor (NSDictionary [] viewAnimations); - + [DesignatedInitializer] [Export ("initWithDuration:animationCurve:")] NativeHandle Constructor (double duration, NSAnimationCurve animationCurve); [Export ("viewAnimations", ArgumentSemantic.Copy)] NSDictionary [] ViewAnimations { get; set; } - + [Export ("animator")] NSObject Animator { [return: Proxy] get; } - + [Export ("animations")] - NSDictionary Animations { get; set; } - + NSDictionary Animations { get; set; } + [Export ("animationForKey:")] - NSObject AnimationForKey (string key); - + NSObject AnimationForKey (string key); + [Static] [Export ("defaultAnimationForKey:")] - NSObject DefaultAnimationForKey (string key); - + NSObject DefaultAnimationForKey (string key); + [Field ("NSViewAnimationTargetKey")] NSString TargetKey { get; } - + [Field ("NSViewAnimationStartFrameKey")] NSString StartFrameKey { get; } - + [Field ("NSViewAnimationEndFrameKey")] NSString EndFrameKey { get; } - + [Field ("NSViewAnimationEffectKey")] NSString EffectKey { get; } - + [Field ("NSViewAnimationFadeInEffect")] NSString FadeInEffect { get; } - + [Field ("NSViewAnimationFadeOutEffect")] NSString FadeOutEffect { get; } } [NoMacCatalyst] [Category] - [BaseType (typeof(NSView))] - interface NSView_NSTouchBar - { + [BaseType (typeof (NSView))] + interface NSView_NSTouchBar { [Mac (10, 12, 2)] [Export ("allowedTouchTypes")] NSTouchTypeMask GetAllowedTouchTypes (); @@ -16914,8 +16863,7 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSResponder))] - interface NSViewController : NSResponder, NSUserInterfaceItemIdentification, NSEditor, NSSeguePerforming , NSExtensionRequestHandling - { + interface NSViewController : NSResponder, NSUserInterfaceItemIdentification, NSEditor, NSSeguePerforming, NSExtensionRequestHandling { [DesignatedInitializer] [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); @@ -16939,119 +16887,119 @@ namespace AppKit { [Export ("view", ArgumentSemantic.Strong)] NSView View { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewLoaded")] bool ViewLoaded { [Bind ("isViewLoaded")] get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("preferredContentSize")] CGSize PreferredContentSize { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewDidLoad")] void ViewDidLoad (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewWillAppear")] void ViewWillAppear (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewDidAppear")] void ViewDidAppear (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewWillDisappear")] void ViewWillDisappear (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewDidDisappear")] void ViewDidDisappear (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("updateViewConstraints")] void UpdateViewConstraints (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewWillLayout")] void ViewWillLayout (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewDidLayout")] void ViewDidLayout (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentedViewControllers", ArgumentSemantic.Assign)] NSViewController [] PresentedViewControllers { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentingViewController", ArgumentSemantic.UnsafeUnretained)] NSViewController PresentingViewController { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentViewController:animator:")] void PresentViewController (NSViewController viewController, [Protocolize] NSViewControllerPresentationAnimator animator); - [Mac (10,10)] + [Mac (10, 10)] [Export ("dismissViewController:")] void DismissViewController (NSViewController viewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("dismissController:")] void DismissController (NSObject sender); - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentViewControllerAsSheet:")] void PresentViewControllerAsSheet (NSViewController viewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentViewControllerAsModalWindow:")] void PresentViewControllerAsModalWindow (NSViewController viewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentViewController:asPopoverRelativeToRect:ofView:preferredEdge:behavior:")] void PresentViewController (NSViewController viewController, CGRect positioningRect, NSView positioningView, nuint preferredEdge, NSPopoverBehavior behavior); - [Mac (10,10)] + [Mac (10, 10)] [Export ("transitionFromViewController:toViewController:options:completionHandler:")] void TransitionFromViewController (NSViewController fromViewController, NSViewController toViewController, NSViewControllerTransitionOptions options, Action completion); - [Mac (10,10)] + [Mac (10, 10)] [Export ("parentViewController")] NSViewController ParentViewController { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("childViewControllers", ArgumentSemantic.Copy)] NSViewController [] ChildViewControllers { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("addChildViewController:")] void AddChildViewController (NSViewController childViewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeFromParentViewController")] void RemoveFromParentViewController (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("insertChildViewController:atIndex:")] void InsertChildViewController (NSViewController childViewController, nint index); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeChildViewControllerAtIndex:")] void RemoveChildViewController (nint index); - [Mac (10,10)] + [Mac (10, 10)] [Export ("preferredContentSizeDidChangeForViewController:")] void PreferredContentSizeDidChange (NSViewController viewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewWillTransitionToSize:")] void ViewWillTransition (CGSize newSize); - [Mac (10,10)] + [Mac (10, 10)] [Export ("storyboard", ArgumentSemantic.Strong)] NSStoryboard Storyboard { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("presentViewControllerInWidget:")] void PresentViewControllerInWidget (NSViewController viewController); @@ -17076,7 +17024,7 @@ namespace AppKit { CGSize PreferredMaximumSize { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -17090,7 +17038,7 @@ namespace AppKit { void AnimateDismissal (NSViewController viewController, NSViewController fromViewController); } - interface INSViewControllerPresentationAnimator {} + interface INSViewControllerPresentationAnimator { } [NoMacCatalyst] [BaseType (typeof (NSViewController), @@ -17163,7 +17111,7 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof (NSImageRep), Name="NSPDFImageRep")] + [BaseType (typeof (NSImageRep), Name = "NSPDFImageRep")] [DisableDefaultCtor] // -[NSPDFImageRep init]: unrecognized selector sent to instance 0x2652460 interface NSPdfImageRep { [Export ("initWithData:")] @@ -17196,44 +17144,44 @@ namespace AppKit { [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("dataCellForRow:")] NSCell DataCellForRow (nint row); - + [Export ("sizeToFit")] void SizeToFit (); - + [Export ("tableView")] NSTableView TableView { get; set; } - + [Export ("width")] nfloat Width { get; set; } - + [Export ("minWidth")] nfloat MinWidth { get; set; } - + [Export ("maxWidth")] nfloat MaxWidth { get; set; } - + [Export ("headerCell", ArgumentSemantic.Retain)] NSCell HeaderCell { get; set; } [Export ("dataCell")] NSCell DataCell { get; set; } - + [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } - + bool Editable { [Bind ("isEditable")] get; set; } + [Export ("sortDescriptorPrototype", ArgumentSemantic.Copy), NullAllowed] NSSortDescriptor SortDescriptorPrototype { get; set; } - + [Export ("resizingMask")] NSTableColumnResizing ResizingMask { get; set; } - + [Export ("headerToolTip"), NullAllowed] string HeaderToolTip { get; set; } - - [Export ("hidden")] - bool Hidden { [Bind ("isHidden")]get; set; } - [Mac (10,10)] + [Export ("hidden")] + bool Hidden { [Bind ("isHidden")] get; set; } + + [Mac (10, 10)] [Export ("title")] string Title { get; set; } } @@ -17245,34 +17193,34 @@ namespace AppKit { NativeHandle Constructor (CGRect frameRect); [Export ("selectionHighlightStyle")] - NSTableViewSelectionHighlightStyle SelectionHighlightStyle { get; set; } + NSTableViewSelectionHighlightStyle SelectionHighlightStyle { get; set; } [Export ("emphasized")] - bool Emphasized { [Bind ("isEmphasized")] get; set; } + bool Emphasized { [Bind ("isEmphasized")] get; set; } [Export ("groupRowStyle")] - bool GroupRowStyle { [Bind ("isGroupRowStyle")] get; set; } + bool GroupRowStyle { [Bind ("isGroupRowStyle")] get; set; } [Export ("selected")] - bool Selected { [Bind ("isSelected")] get; set; } + bool Selected { [Bind ("isSelected")] get; set; } [Export ("floating")] - bool Floating { [Bind ("isFloating")] get; set; } + bool Floating { [Bind ("isFloating")] get; set; } [Export ("draggingDestinationFeedbackStyle")] - NSTableViewDraggingDestinationFeedbackStyle DraggingDestinationFeedbackStyle { get; set; } + NSTableViewDraggingDestinationFeedbackStyle DraggingDestinationFeedbackStyle { get; set; } [Export ("indentationForDropOperation")] - nfloat IndentationForDropOperation { get; set; } + nfloat IndentationForDropOperation { get; set; } [Export ("interiorBackgroundStyle")] - NSBackgroundStyle InteriorBackgroundStyle { get; } + NSBackgroundStyle InteriorBackgroundStyle { get; } [Export ("backgroundColor", ArgumentSemantic.Copy)] - NSColor BackgroundColor { get; set; } + NSColor BackgroundColor { get; set; } [Export ("numberOfColumns")] - nint NumberOfColumns { get; } + nint NumberOfColumns { get; } [Export ("targetForDropOperation")] bool TargetForDropOperation { [Bind ("isTargetForDropOperation")] get; set; } @@ -17292,11 +17240,11 @@ namespace AppKit { [Export ("viewAtColumn:")] NSView ViewAtColumn (nint column); - [Mac (10,10)] + [Mac (10, 10)] [Export ("previousRowSelected")] bool PreviousRowSelected { [Bind ("isPreviousRowSelected")] get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("nextRowSelected")] bool NextRowSelected { [Bind ("isNextRowSelected")] get; set; } } @@ -17340,294 +17288,298 @@ namespace AppKit { [NoMacCatalyst] delegate void NSTableViewRowHandler (NSTableRowView rowView, nint row); - + [NoMacCatalyst] - [BaseType (typeof (NSControl), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTableViewDelegate)})] + [BaseType (typeof (NSControl), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTableViewDelegate) })] partial interface NSTableView : NSDraggingSource, NSAccessibilityTable { [DesignatedInitializer] [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); [Export ("noteHeightOfRowsWithIndexesChanged:")] - void NoteHeightOfRowsWithIndexesChanged (NSIndexSet indexSet ); - + void NoteHeightOfRowsWithIndexesChanged (NSIndexSet indexSet); + [Export ("tableColumns")] - NSTableColumn[] TableColumns (); - + NSTableColumn [] TableColumns (); + [Export ("numberOfColumns")] nint ColumnCount { get; } - + [Export ("numberOfRows")] nint RowCount { get; } - + [Export ("addTableColumn:")] void AddColumn (NSTableColumn tableColumn); - + [Export ("removeTableColumn:")] void RemoveColumn (NSTableColumn tableColumn); - + [Export ("moveColumn:toColumn:")] void MoveColumn (nint oldIndex, nint newIndex); - + [Export ("columnWithIdentifier:")] nint FindColumn (NSString identifier); - + [Export ("tableColumnWithIdentifier:")] NSTableColumn FindTableColumn (NSString identifier); - + [Export ("tile")] void Tile (); - + [Export ("sizeToFit")] void SizeToFit (); - + [Export ("sizeLastColumnToFit")] void SizeLastColumnToFit (); - + [Export ("scrollRowToVisible:")] void ScrollRowToVisible (nint row); - + [Export ("scrollColumnToVisible:")] void ScrollColumnToVisible (nint column); - + [Export ("reloadData")] void ReloadData (); - + [Export ("noteNumberOfRowsChanged")] void NoteNumberOfRowsChanged (); - + [Export ("reloadDataForRowIndexes:columnIndexes:")] - void ReloadData (NSIndexSet rowIndexes, NSIndexSet columnIndexes ); - + void ReloadData (NSIndexSet rowIndexes, NSIndexSet columnIndexes); + [Export ("editedColumn")] nint EditedColumn { get; } - + [Export ("editedRow")] nint EditedRow { get; } - + [Export ("clickedColumn")] nint ClickedColumn { get; } - + [Export ("clickedRow")] nint ClickedRow { get; } - + [Export ("setIndicatorImage:inTableColumn:")] void SetIndicatorImage ([NullAllowed] NSImage anImage, NSTableColumn tableColumn); - + [Export ("indicatorImageInTableColumn:")] NSImage GetIndicatorImage (NSTableColumn tableColumn); - + [Export ("canDragRowsWithIndexes:atPoint:")] - bool CanDragRows (NSIndexSet rowIndexes, CGPoint mouseDownPoint ); - + bool CanDragRows (NSIndexSet rowIndexes, CGPoint mouseDownPoint); + [Export ("dragImageForRowsWithIndexes:tableColumns:event:offset:")] #if NET NSImage DragImageForRows (NSIndexSet dragRows, NSTableColumn [] tableColumns, NSEvent dragEvent, ref CGPoint dragImageOffset); #else NSImage DragImageForRowsWithIndexestableColumnseventoffset (NSIndexSet dragRows, NSTableColumn [] tableColumns, NSEvent dragEvent, ref CGPoint dragImageOffset); #endif - + [Export ("setDraggingSourceOperationMask:forLocal:")] void SetDraggingSourceOperationMask (NSDragOperation mask, bool isLocal); - + [Export ("setDropRow:dropOperation:")] void SetDropRowDropOperation (nint row, NSTableViewDropOperation dropOperation); - + [Export ("selectAll:")] void SelectAll ([NullAllowed] NSObject sender); - + [Export ("deselectAll:")] void DeselectAll ([NullAllowed] NSObject sender); - + [Export ("selectColumnIndexes:byExtendingSelection:")] void SelectColumns (NSIndexSet indexes, bool byExtendingSelection); - + [Export ("selectRowIndexes:byExtendingSelection:")] void SelectRows (NSIndexSet indexes, bool byExtendingSelection); - + [Export ("selectedColumnIndexes")] NSIndexSet SelectedColumns { get; } - + [Export ("selectedRowIndexes")] NSIndexSet SelectedRows { get; } - + [Export ("deselectColumn:")] void DeselectColumn (nint column); - + [Export ("deselectRow:")] void DeselectRow (nint row); - + [Export ("selectedColumn")] nint SelectedColumn { get; } - + [Export ("selectedRow")] nint SelectedRow { get; } - + [Export ("isColumnSelected:")] bool IsColumnSelected (nint column); - + [Export ("isRowSelected:")] bool IsRowSelected (nint row); - + [Export ("numberOfSelectedColumns")] nint SelectedColumnsCount { get; } - + [Export ("numberOfSelectedRows")] nint SelectedRowCount { get; } - + [Export ("rectOfColumn:")] CGRect RectForColumn (nint column); - + [Export ("rectOfRow:")] CGRect RectForRow (nint row); - + [Export ("columnIndexesInRect:")] NSIndexSet GetColumnIndexesInRect (CGRect rect); - + [Export ("rowsInRect:")] NSRange RowsInRect (CGRect rect); - + [Export ("columnAtPoint:")] nint GetColumn (CGPoint point); - + [Export ("rowAtPoint:")] nint GetRow (CGPoint point); - + [Export ("frameOfCellAtColumn:row:")] CGRect GetCellFrame (nint column, nint row); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use View Based TableView and GetView.")] [Export ("preparedCellAtColumn:row:")] - NSCell GetCell (nint column, nint row ); - + NSCell GetCell (nint column, nint row); + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView with an NSTextField.")] [Export ("textShouldBeginEditing:")] bool TextShouldBeginEditing (NSText textObject); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView with an NSTextField.")] [Export ("textShouldEndEditing:")] bool TextShouldEndEditing (NSText textObject); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView with an NSTextField.")] [Export ("textDidBeginEditing:")] void TextDidBeginEditing (NSNotification notification); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView with an NSTextField.")] [Export ("textDidEndEditing:")] void TextDidEndEditing (NSNotification notification); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView with an NSTextField.")] [Export ("textDidChange:")] void TextDidChange (NSNotification notification); - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView; observe the window’s firstResponder for focus change notifications.")] [Export ("shouldFocusCell:atColumn:row:")] - bool ShouldFocusCell (NSCell cell, nint column, nint row ); - + bool ShouldFocusCell (NSCell cell, nint column, nint row); + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView; directly interact with a particular view as required and call PerformClick on it, if necessary.")] [Export ("performClickOnCellAtColumn:row:")] - void PerformClick (nint column, nint row ); - + void PerformClick (nint column, nint row); + [Export ("editColumn:row:withEvent:select:")] void EditColumn (nint column, nint row, [NullAllowed] NSEvent theEvent, bool select); - + [Export ("drawRow:clipRect:")] void DrawRow (nint row, CGRect clipRect); - + [Export ("highlightSelectionInClipRect:")] void HighlightSelection (CGRect clipRect); - + [Export ("drawGridInClipRect:")] void DrawGrid (CGRect clipRect); - + [Export ("drawBackgroundInClipRect:")] - void DrawBackground (CGRect clipRect ); - + void DrawBackground (CGRect clipRect); + //Detected properties - [Export ("dataSource", ArgumentSemantic.Assign)][NullAllowed] + [Export ("dataSource", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDataSource { get; set; } - [Wrap ("WeakDataSource")][NullAllowed] + [Wrap ("WeakDataSource")] + [NullAllowed] [Protocolize] NSTableViewDataSource DataSource { get; set; } - - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - - [Wrap ("WeakDelegate")][NullAllowed] + + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] NSTableViewDelegate Delegate { get; set; } - + [Export ("headerView", ArgumentSemantic.Retain), NullAllowed] NSTableHeaderView HeaderView { get; set; } - + [Export ("cornerView", ArgumentSemantic.Retain)] NSView CornerView { get; set; } - + [Export ("allowsColumnReordering")] bool AllowsColumnReordering { get; set; } - + [Export ("allowsColumnResizing")] bool AllowsColumnResizing { get; set; } - + [Export ("columnAutoresizingStyle")] NSTableViewColumnAutoresizingStyle ColumnAutoresizingStyle { get; set; } - + [Export ("gridStyleMask")] NSTableViewGridStyle GridStyleMask { get; set; } - + [Export ("intercellSpacing")] CGSize IntercellSpacing { get; set; } - + [Export ("usesAlternatingRowBackgroundColors")] bool UsesAlternatingRowBackgroundColors { get; set; } - + [Export ("backgroundColor", ArgumentSemantic.Copy)] NSColor BackgroundColor { get; set; } - + [Export ("gridColor", ArgumentSemantic.Copy)] NSColor GridColor { get; set; } - + [Export ("rowHeight")] nfloat RowHeight { get; set; } - + [NullAllowed] [Export ("doubleAction")] Selector DoubleAction { get; set; } - + [Export ("sortDescriptors", ArgumentSemantic.Copy)] - NSSortDescriptor[] SortDescriptors { get; set; } - + NSSortDescriptor [] SortDescriptors { get; set; } + [Export ("highlightedTableColumn")] NSTableColumn HighlightedTableColumn { get; set; } - + [Export ("verticalMotionCanBeginDrag")] bool VerticalMotionCanBeginDrag { get; set; } - + [Export ("allowsMultipleSelection")] bool AllowsMultipleSelection { get; set; } - + [Export ("allowsEmptySelection")] bool AllowsEmptySelection { get; set; } - + [Export ("allowsColumnSelection")] bool AllowsColumnSelection { get; set; } - + [Export ("allowsTypeSelect")] bool AllowsTypeSelect { get; set; } - + [Export ("selectionHighlightStyle")] NSTableViewSelectionHighlightStyle SelectionHighlightStyle { get; set; } - + [Export ("draggingDestinationFeedbackStyle")] NSTableViewDraggingDestinationFeedbackStyle DraggingDestinationFeedbackStyle { get; set; } - + [Export ("autosaveName")] string AutosaveName { get; set; } - + [Export ("autosaveTableColumns")] bool AutosaveTableColumns { get; set; } - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a View Based TableView; observe the window’s firstResponder.")] [Export ("focusedColumn")] nint FocusedColumn { get; set; } @@ -17650,7 +17602,7 @@ namespace AppKit { // According to the header identifier should be non-null but example in // https://bugzilla.xamarin.com/show_bug.cgi?id=36496 shows actual behavior differs [Export ("makeViewWithIdentifier:owner:")] - NSView MakeView ([NullAllowed]string identifier, [NullAllowed]NSObject owner); + NSView MakeView ([NullAllowed] string identifier, [NullAllowed] NSObject owner); [Export ("enumerateAvailableRowViewsUsingBlock:")] void EnumerateAvailableRowViews (NSTableViewRowHandler callback); @@ -17691,27 +17643,27 @@ namespace AppKit { [Export ("registeredNibsByIdentifier", ArgumentSemantic.Copy)] NSDictionary RegisteredNibsByIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("usesStaticContents")] - bool UsesStaticContents { get; set; } + bool UsesStaticContents { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("hideRowsAtIndexes:withAnimation:")] void HideRows (NSIndexSet indexes, NSTableViewAnimation rowAnimation); - [Mac (10,11)] + [Mac (10, 11)] [Export ("unhideRowsAtIndexes:withAnimation:")] void UnhideRows (NSIndexSet indexes, NSTableViewAnimation rowAnimation); - [Mac (10,11)] + [Mac (10, 11)] [Export ("hiddenRowIndexes", ArgumentSemantic.Copy)] NSIndexSet HiddenRowIndexes { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("rowActionsVisible")] bool RowActionsVisible { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("userInterfaceLayoutDirection")] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } @@ -17726,8 +17678,8 @@ namespace AppKit { [Mac (11, 0)] [Export ("effectiveStyle")] NSTableViewStyle EffectiveStyle { get; } - } - + } + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] @@ -17735,91 +17687,92 @@ namespace AppKit { partial interface NSTableViewDelegate { [Export ("tableView:willDisplayCell:forTableColumn:row:"), EventArgs ("NSTableViewCell")] void WillDisplayCell (NSTableView tableView, NSObject cell, NSTableColumn tableColumn, nint row); - + [Export ("tableView:shouldEditTableColumn:row:"), DelegateName ("NSTableViewColumnRowPredicate"), DefaultValue (false)] bool ShouldEditTableColumn (NSTableView tableView, NSTableColumn tableColumn, nint row); - + [Export ("selectionShouldChangeInTableView:"), DelegateName ("NSTableViewPredicate"), DefaultValue (true)] bool SelectionShouldChange (NSTableView tableView); - - [Export ("tableView:shouldSelectRow:"), DelegateName ("NSTableViewRowPredicate")] [DefaultValue (true)] + + [Export ("tableView:shouldSelectRow:"), DelegateName ("NSTableViewRowPredicate")] + [DefaultValue (true)] bool ShouldSelectRow (NSTableView tableView, nint row); - + [Export ("tableView:selectionIndexesForProposedSelection:"), DelegateName ("NSTableViewIndexFilter"), DefaultValueFromArgument ("proposedSelectionIndexes")] NSIndexSet GetSelectionIndexes (NSTableView tableView, NSIndexSet proposedSelectionIndexes); - + [Export ("tableView:shouldSelectTableColumn:"), DelegateName ("NSTableViewColumnPredicate"), DefaultValue (true)] bool ShouldSelectTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:mouseDownInHeaderOfTableColumn:"), EventArgs ("NSTableViewTable")] void MouseDownInHeaderOfTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:didClickTableColumn:"), EventArgs ("NSTableViewTable")] void DidClickTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:didDragTableColumn:"), EventArgs ("NSTableViewTable")] void DidDragTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:heightOfRow:"), DelegateName ("NSTableViewRowHeight"), NoDefaultValue] - nfloat GetRowHeight (NSTableView tableView, nint row ); - + nfloat GetRowHeight (NSTableView tableView, nint row); + [Export ("tableView:typeSelectStringForTableColumn:row:"), DelegateName ("NSTableViewColumnRowString"), DefaultValue ("String.Empty")] - string GetSelectString (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + string GetSelectString (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:nextTypeSelectMatchFromRow:toRow:forString:"), DelegateName ("NSTableViewSearchString"), DefaultValue (-1)] nint GetNextTypeSelectMatch (NSTableView tableView, nint startRow, nint endRow, string searchString); - + [Export ("tableView:shouldTypeSelectForEvent:withCurrentSearchString:"), DelegateName ("NSTableViewEventString"), DefaultValue (false)] - bool ShouldTypeSelect (NSTableView tableView, NSEvent theEvent, string searchString ); - + bool ShouldTypeSelect (NSTableView tableView, NSEvent theEvent, string searchString); + [Export ("tableView:shouldShowCellExpansionForTableColumn:row:"), DelegateName ("NSTableViewColumnRowPredicate"), DefaultValue (false)] - bool ShouldShowCellExpansion (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + bool ShouldShowCellExpansion (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:shouldTrackCell:forTableColumn:row:"), DelegateName ("NSTableViewCell"), DefaultValue (false)] - bool ShouldTrackCell (NSTableView tableView, NSCell cell, NSTableColumn tableColumn, nint row ); - + bool ShouldTrackCell (NSTableView tableView, NSCell cell, NSTableColumn tableColumn, nint row); + [Export ("tableView:dataCellForTableColumn:row:"), DelegateName ("NSTableViewCellGetter"), NoDefaultValue] - NSCell GetDataCell (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + NSCell GetDataCell (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:isGroupRow:"), DelegateName ("NSTableViewRowPredicate"), DefaultValue (false)] - bool IsGroupRow (NSTableView tableView, nint row ); - + bool IsGroupRow (NSTableView tableView, nint row); + [Export ("tableView:sizeToFitWidthOfColumn:"), DelegateName ("NSTableViewColumnWidth"), DefaultValue (80)] - nfloat GetSizeToFitColumnWidth (NSTableView tableView, nint column ); - + nfloat GetSizeToFitColumnWidth (NSTableView tableView, nint column); + [Export ("tableView:shouldReorderColumn:toColumn:"), DelegateName ("NSTableReorder"), DefaultValue (false)] - bool ShouldReorder (NSTableView tableView, nint columnIndex, nint newColumnIndex ); - + bool ShouldReorder (NSTableView tableView, nint columnIndex, nint newColumnIndex); + [Export ("tableViewSelectionDidChange:"), EventArgs ("NSNotification")] void SelectionDidChange (NSNotification notification); - + [Export ("tableViewColumnDidMove:"), EventArgs ("NSNotification")] void ColumnDidMove (NSNotification notification); - + [Export ("tableViewColumnDidResize:"), EventArgs ("NSNotification")] void ColumnDidResize (NSNotification notification); - + [Export ("tableViewSelectionIsChanging:"), EventArgs ("NSNotification")] void SelectionIsChanging (NSNotification notification); - [Export ("tableView:viewForTableColumn:row:"), DelegateName ("NSTableViewViewGetter"), NoDefaultValue] - NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:viewForTableColumn:row:"), DelegateName ("NSTableViewViewGetter"), NoDefaultValue] + NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row); - [Export ("tableView:rowViewForRow:"), DelegateName ("NSTableViewRowGetter"), DefaultValue (null)] - NSTableRowView CoreGetRowView (NSTableView tableView, nint row); + [Export ("tableView:rowViewForRow:"), DelegateName ("NSTableViewRowGetter"), DefaultValue (null)] + NSTableRowView CoreGetRowView (NSTableView tableView, nint row); - [Export ("tableView:didAddRowView:forRow:"), EventArgs ("NSTableViewRow")] - void DidAddRowView (NSTableView tableView, NSTableRowView rowView, nint row); + [Export ("tableView:didAddRowView:forRow:"), EventArgs ("NSTableViewRow")] + void DidAddRowView (NSTableView tableView, NSTableRowView rowView, nint row); - [Export ("tableView:didRemoveRowView:forRow:"), EventArgs ("NSTableViewRow")] - void DidRemoveRowView (NSTableView tableView, NSTableRowView rowView, nint row); + [Export ("tableView:didRemoveRowView:forRow:"), EventArgs ("NSTableViewRow")] + void DidRemoveRowView (NSTableView tableView, NSTableRowView rowView, nint row); - [Mac (10,11)] + [Mac (10, 11)] [Export ("tableView:rowActionsForRow:edge:"), DelegateName ("NSTableViewRowActionsGetter"), NoDefaultValue] -// [Verify (StronglyTypedNSArray)] - NSTableViewRowAction[] RowActions (NSTableView tableView, nint row, NSTableRowActionEdge edge); + // [Verify (StronglyTypedNSArray)] + NSTableViewRowAction [] RowActions (NSTableView tableView, nint row, NSTableRowActionEdge edge); } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] @@ -17827,37 +17780,37 @@ namespace AppKit { interface NSTableViewDataSource { [Export ("numberOfRowsInTableView:")] nint GetRowCount (NSTableView tableView); - + [Export ("tableView:objectValueForTableColumn:row:")] NSObject GetObjectValue (NSTableView tableView, NSTableColumn tableColumn, nint row); - + [Export ("tableView:setObjectValue:forTableColumn:row:")] void SetObjectValue (NSTableView tableView, NSObject theObject, NSTableColumn tableColumn, nint row); - + [Export ("tableView:sortDescriptorsDidChange:")] void SortDescriptorsChanged (NSTableView tableView, NSSortDescriptor [] oldDescriptors); - + [Export ("tableView:writeRowsWithIndexes:toPasteboard:")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'GetPasteboardWriterForRow' method instead.")] - bool WriteRows (NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard ); - + bool WriteRows (NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard); + [Export ("tableView:validateDrop:proposedRow:proposedDropOperation:")] #if NET NSDragOperation ValidateDrop (NSTableView tableView, INSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #else NSDragOperation ValidateDrop (NSTableView tableView, [Protocolize (4)] NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #endif - + [Export ("tableView:acceptDrop:row:dropOperation:")] #if NET bool AcceptDrop (NSTableView tableView, INSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #else bool AcceptDrop (NSTableView tableView, [Protocolize (4)] NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #endif - + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSFilePromiseReceiver' instead.")] [Export ("tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:")] - string [] FilesDropped (NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet ); + string [] FilesDropped (NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet); [Export ("tableView:pasteboardWriterForRow:")] INSPasteboardWriting GetPasteboardWriterForRow (NSTableView tableView, nint row); @@ -17889,111 +17842,115 @@ namespace AppKit { // [Export ("tableView:willDisplayCell:forTableColumn:row:")] void WillDisplayCell (NSTableView tableView, NSObject cell, NSTableColumn tableColumn, nint row); - - [Export ("tableView:shouldEditTableColumn:row:")] [DefaultValue (false)] + + [Export ("tableView:shouldEditTableColumn:row:")] + [DefaultValue (false)] bool ShouldEditTableColumn (NSTableView tableView, NSTableColumn tableColumn, nint row); - - [Export ("selectionShouldChangeInTableView:")] [DefaultValue (false)] + + [Export ("selectionShouldChangeInTableView:")] + [DefaultValue (false)] bool SelectionShouldChange (NSTableView tableView); - - [Export ("tableView:shouldSelectRow:")] [DefaultValue (true)] + + [Export ("tableView:shouldSelectRow:")] + [DefaultValue (true)] bool ShouldSelectRow (NSTableView tableView, nint row); - + [Export ("tableView:selectionIndexesForProposedSelection:")] NSIndexSet GetSelectionIndexes (NSTableView tableView, NSIndexSet proposedSelectionIndexes); - - [Export ("tableView:shouldSelectTableColumn:")] [DefaultValue (true)] + + [Export ("tableView:shouldSelectTableColumn:")] + [DefaultValue (true)] bool ShouldSelectTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:mouseDownInHeaderOfTableColumn:")] void MouseDown (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:didClickTableColumn:")] void DidClickTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + [Export ("tableView:didDragTableColumn:")] void DidDragTableColumn (NSTableView tableView, NSTableColumn tableColumn); - + //FIXME: Binding NSRectPointer //[Export ("tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:")] //string TableViewtoolTipForCellrecttableColumnrowmouseLocation (NSTableView tableView, NSCell cell, NSRectPointer rect, NSTableColumn tableColumn, int row, CGPoint mouseLocation); - + [Export ("tableView:heightOfRow:")] - nfloat GetRowHeight (NSTableView tableView, nint row ); - + nfloat GetRowHeight (NSTableView tableView, nint row); + [Export ("tableView:typeSelectStringForTableColumn:row:")] - string GetSelectString (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + string GetSelectString (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:nextTypeSelectMatchFromRow:toRow:forString:")] - nint GetNextTypeSelectMatch (NSTableView tableView, nint startRow, nint endRow, string searchString ); - + nint GetNextTypeSelectMatch (NSTableView tableView, nint startRow, nint endRow, string searchString); + [Export ("tableView:shouldTypeSelectForEvent:withCurrentSearchString:")] - bool ShouldTypeSelect (NSTableView tableView, NSEvent theEvent, string searchString ); - + bool ShouldTypeSelect (NSTableView tableView, NSEvent theEvent, string searchString); + [Export ("tableView:shouldShowCellExpansionForTableColumn:row:")] - bool ShouldShowCellExpansion (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + bool ShouldShowCellExpansion (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:shouldTrackCell:forTableColumn:row:")] - bool ShouldTrackCell (NSTableView tableView, NSCell cell, NSTableColumn tableColumn, nint row ); - + bool ShouldTrackCell (NSTableView tableView, NSCell cell, NSTableColumn tableColumn, nint row); + [Export ("tableView:dataCellForTableColumn:row:")] - NSCell GetCell (NSTableView tableView, NSTableColumn tableColumn, nint row ); - + NSCell GetCell (NSTableView tableView, NSTableColumn tableColumn, nint row); + [Export ("tableView:isGroupRow:"), DefaultValue (false)] - bool IsGroupRow (NSTableView tableView, nint row ); - + bool IsGroupRow (NSTableView tableView, nint row); + [Export ("tableView:sizeToFitWidthOfColumn:")] - nfloat GetSizeToFitColumnWidth (NSTableView tableView, nint column ); - + nfloat GetSizeToFitColumnWidth (NSTableView tableView, nint column); + [Export ("tableView:shouldReorderColumn:toColumn:")] - bool ShouldReorder (NSTableView tableView, nint columnIndex, nint newColumnIndex ); - + bool ShouldReorder (NSTableView tableView, nint columnIndex, nint newColumnIndex); + [Export ("tableViewSelectionDidChange:")] void SelectionDidChange (NSNotification notification); - + [Export ("tableViewColumnDidMove:")] void ColumnDidMove (NSNotification notification); - + [Export ("tableViewColumnDidResize:")] void ColumnDidResize (NSNotification notification); - + [Export ("tableViewSelectionIsChanging:")] void SelectionIsChanging (NSNotification notification); // NSTableViewDataSource [Export ("numberOfRowsInTableView:")] nint GetRowCount (NSTableView tableView); - + [Export ("tableView:objectValueForTableColumn:row:")] NSObject GetObjectValue (NSTableView tableView, NSTableColumn tableColumn, nint row); - + [Export ("tableView:setObjectValue:forTableColumn:row:")] void SetObjectValue (NSTableView tableView, NSObject theObject, NSTableColumn tableColumn, nint row); - + [Export ("tableView:sortDescriptorsDidChange:")] void SortDescriptorsChanged (NSTableView tableView, NSSortDescriptor [] oldDescriptors); - + [Export ("tableView:writeRowsWithIndexes:toPasteboard:")] - bool WriteRows (NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard ); - + bool WriteRows (NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard); + [Export ("tableView:validateDrop:proposedRow:proposedDropOperation:")] #if NET NSDragOperation ValidateDrop (NSTableView tableView, INSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #else NSDragOperation ValidateDrop (NSTableView tableView, [Protocolize (4)] NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #endif - + [Export ("tableView:acceptDrop:row:dropOperation:")] #if NET bool AcceptDrop (NSTableView tableView, INSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #else bool AcceptDrop (NSTableView tableView, [Protocolize (4)] NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation); #endif - + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSFilePromiseReceiver' objects instead.")] [Export ("tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:")] - string [] FilesDropped (NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet ); - + string [] FilesDropped (NSTableView tableView, NSUrl dropDestination, NSIndexSet indexSet); + [Export ("tableView:viewForTableColumn:row:")] NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row); @@ -18022,7 +17979,7 @@ namespace AppKit { void UpdateDraggingItems (NSTableView tableView, [Protocolize (4)] NSDraggingInfo draggingInfo); #endif } - + [NoMacCatalyst] [BaseType (typeof (NSTextFieldCell))] interface NSTableHeaderCell { @@ -18030,12 +17987,12 @@ namespace AppKit { NativeHandle Constructor (string aString); [Export ("drawSortIndicatorWithFrame:inView:ascending:priority:")] - void DrawSortIndicator (CGRect cellFrame, NSView controlView, bool ascending, nint priority ); - + void DrawSortIndicator (CGRect cellFrame, NSView controlView, bool ascending, nint priority); + [Export ("sortIndicatorRectForBounds:")] - CGRect GetSortIndicatorRect (CGRect theRect ); + CGRect GetSortIndicatorRect (CGRect theRect); } - + [NoMacCatalyst] [BaseType (typeof (NSView))] interface NSTableHeaderView : NSViewToolTipOwner { @@ -18044,29 +18001,28 @@ namespace AppKit { [Export ("draggedColumn")] nint DraggedColumn { get; } - + [Export ("draggedDistance")] nfloat DraggedDistance { get; } - + [Export ("resizedColumn")] nint ResizedColumn { get; } - + [Export ("headerRectOfColumn:")] CGRect GetHeaderRect (nint column); - + [Export ("columnAtPoint:")] nint GetColumn (CGPoint point); - + //Detected properties [Export ("tableView")] NSTableView TableView { get; set; } } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSTableViewRowAction : NSCopying - { + [BaseType (typeof (NSObject))] + interface NSTableViewRowAction : NSCopying { [Static] [Export ("rowActionWithStyle:title:handler:")] NSTableViewRowAction FromStyle (NSTableViewRowActionStyle style, string title, Action handler); @@ -18077,7 +18033,7 @@ namespace AppKit { [Export ("title", ArgumentSemantic.Copy)] string Title { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("image", ArgumentSemantic.Strong)] [NullAllowed] NSImage Image { get; set; } @@ -18085,9 +18041,9 @@ namespace AppKit { [Export ("backgroundColor", ArgumentSemantic.Copy)] NSColor BackgroundColor { get; set; } } - + [NoMacCatalyst] - [BaseType (typeof (NSView), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTabViewDelegate)})] + [BaseType (typeof (NSView), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTabViewDelegate) })] partial interface NSTabView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -18196,7 +18152,7 @@ namespace AppKit { NSTabViewBorderType BorderType { get; set; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSViewController))] interface NSTabViewController : NSTabViewDelegate, NSToolbarDelegate { @@ -18283,13 +18239,13 @@ namespace AppKit { interface NSTabViewDelegate { [Export ("tabView:shouldSelectTabViewItem:"), DelegateName ("NSTabViewPredicate"), DefaultValue (true)] bool ShouldSelectTabViewItem (NSTabView tabView, NSTabViewItem item); - + [Export ("tabView:willSelectTabViewItem:"), EventArgs ("NSTabViewItem")] void WillSelect (NSTabView tabView, NSTabViewItem item); [Export ("tabView:didSelectTabViewItem:"), EventArgs ("NSTabViewItem")] void DidSelect (NSTabView tabView, NSTabViewItem item); - + [Export ("tabViewDidChangeNumberOfTabViewItems:")] void NumberOfItemsChanged (NSTabView tabView); } @@ -18330,21 +18286,21 @@ namespace AppKit { [Export ("toolTip"), NullAllowed] string ToolTip { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("image", ArgumentSemantic.Strong)] NSImage Image { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("viewController", ArgumentSemantic.Strong)] NSViewController ViewController { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("tabViewItemWithViewController:")] NSTabViewItem GetTabViewItem (NSViewController viewController); } - + [NoMacCatalyst] - [BaseType (typeof (NSView), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTextDelegate)})] + [BaseType (typeof (NSView), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTextDelegate) })] partial interface NSText { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -18456,21 +18412,21 @@ namespace AppKit { [Wrap ("WeakDelegate")] [Protocolize] NSTextDelegate Delegate { get; set; } - + [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } + bool Editable { [Bind ("isEditable")] get; set; } [Export ("selectable")] - bool Selectable { [Bind ("isSelectable")]get; set; } + bool Selectable { [Bind ("isSelectable")] get; set; } [Export ("richText")] - bool RichText { [Bind ("isRichText")]get; set; } + bool RichText { [Bind ("isRichText")] get; set; } [Export ("importsGraphics")] bool ImportsGraphics { get; set; } [Export ("fieldEditor")] - bool FieldEditor { [Bind ("isFieldEditor")]get; set; } + bool FieldEditor { [Bind ("isFieldEditor")] get; set; } [Export ("usesFontPanel")] bool UsesFontPanel { get; set; } @@ -18503,10 +18459,10 @@ namespace AppKit { CGSize MinSize { get; set; } [Export ("horizontallyResizable")] - bool HorizontallyResizable { [Bind ("isHorizontallyResizable")]get; set; } + bool HorizontallyResizable { [Bind ("isHorizontallyResizable")] get; set; } [Export ("verticallyResizable")] - bool VerticallyResizable { [Bind ("isVerticallyResizable")]get; set; } + bool VerticallyResizable { [Bind ("isVerticallyResizable")] get; set; } } [NoMacCatalyst] @@ -18534,8 +18490,8 @@ namespace AppKit { Because they want NSTextAttachmentCell to conform to this, they are essentially implementing this protocol in the past. So, we have decided to do the same. */ [NoMacCatalyst] - [Protocol (Name="NSTextAttachmentCell")] - interface NSTextAttachmentCellProtocol { + [Protocol (Name = "NSTextAttachmentCell")] + interface NSTextAttachmentCellProtocol { [Abstract] [Export ("drawWithFrame:inView:")] @@ -18570,7 +18526,8 @@ namespace AppKit { CGPoint CellBaselineOffset { get; } [Abstract] - [Export ("attachment")][NullAllowed] + [Export ("attachment")] + [NullAllowed] NSTextAttachment Attachment { get; set; } [Abstract] @@ -18658,11 +18615,11 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof (NSControl), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTextFieldDelegate)})] + [BaseType (typeof (NSControl), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTextFieldDelegate) })] partial interface NSTextField : NSAccessibilityNavigableStaticText, NSUserInterfaceValidations, NSTextContent { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); - + [Export ("selectText:")] void SelectText (NSObject sender); @@ -18695,20 +18652,20 @@ namespace AppKit { NSColor TextColor { get; set; } [Export ("bordered")] - bool Bordered { [Bind ("isBordered")]get; set; } + bool Bordered { [Bind ("isBordered")] get; set; } [Export ("bezeled")] - bool Bezeled { [Bind ("isBezeled")]get; set; } + bool Bezeled { [Bind ("isBezeled")] get; set; } [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } + bool Editable { [Bind ("isEditable")] get; set; } [Export ("selectable")] - bool Selectable { [Bind ("isSelectable")]get; set; } + bool Selectable { [Bind ("isSelectable")] get; set; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } - + [Wrap ("WeakDelegate")] [Protocolize] NSTextFieldDelegate Delegate { get; set; } @@ -18725,42 +18682,42 @@ namespace AppKit { [Export ("preferredMaxLayoutWidth")] nfloat PreferredMaxLayoutWidth { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("placeholderString", ArgumentSemantic.Copy)] string PlaceholderString { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("placeholderAttributedString", ArgumentSemantic.Copy)] NSAttributedString PlaceholderAttributedString { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("maximumNumberOfLines", ArgumentSemantic.Assign)] nint MaximumNumberOfLines { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("allowsDefaultTighteningForTruncation")] bool AllowsDefaultTighteningForTruncation { get; set; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("lineBreakStrategy", ArgumentSemantic.Assign)] NSLineBreakStrategy LineBreakStrategy { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("labelWithString:")] - NSTextField CreateLabel(string stringValue); + NSTextField CreateLabel (string stringValue); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("wrappingLabelWithString:")] NSTextField CreateWrappingLabel (string stringValue); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("labelWithAttributedString:")] NSTextField CreateLabel (NSAttributedString attributedStringValue); - [Mac (10,12)] + [Mac (10, 12)] [Static] [Export ("textFieldWithString:")] NSTextField CreateTextField ([NullAllowed] string stringValue); @@ -18777,9 +18734,8 @@ namespace AppKit { [Mac (10, 12, 1)] [NoMacCatalyst] [Category] - [BaseType (typeof(NSTextField))] - interface NSTextField_NSTouchBar - { + [BaseType (typeof (NSTextField))] + interface NSTextField_NSTouchBar { [Export ("isAutomaticTextCompletionEnabled")] bool GetAutomaticTextCompletionEnabled (); @@ -18796,8 +18752,7 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSTextField))] - interface NSSecureTextField - { + interface NSSecureTextField { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); } @@ -18817,10 +18772,10 @@ namespace AppKit { [Export ("control:didFailToFormatString:errorDescription:"), DelegateName ("NSControlTextError"), DefaultValue (true)] bool DidFailToFormatString (NSControl control, string str, string error); - + [Export ("control:didFailToValidatePartialString:errorDescription:"), EventArgs ("NSControlTextError")] void DidFailToValidatePartialString (NSControl control, string str, string error); - + [Export ("control:isValidObject:"), DelegateName ("NSControlTextValidation"), DefaultValue (true)] bool IsValidObject (NSControl control, NSObject objectToValidate); @@ -18839,20 +18794,20 @@ namespace AppKit { [Export ("controlTextDidBeginEditing:"), EventArgs ("NSNotification")] void EditingBegan (NSNotification notification); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textField:textView:candidatesForSelectedRange:"), DelegateName ("NSTextFieldGetCandidates"), DefaultValue (null)] [return: NullAllowed] - NSObject[] GetCandidates (NSTextField textField, NSTextView textView, NSRange selectedRange); + NSObject [] GetCandidates (NSTextField textField, NSTextView textView, NSRange selectedRange); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textField:textView:candidates:forSelectedRange:"), DelegateName ("NSTextFieldTextCheckingResults"), DefaultValue (null)] - NSTextCheckingResult[] GetTextCheckingResults (NSTextField textField, NSTextView textView, NSTextCheckingResult[] candidates, NSRange selectedRange); + NSTextCheckingResult [] GetTextCheckingResults (NSTextField textField, NSTextView textView, NSTextCheckingResult [] candidates, NSRange selectedRange); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textField:textView:shouldSelectCandidateAtIndex:"), DelegateName ("NSTextFieldSelectCandidate"), DefaultValue (false)] bool ShouldSelectCandidate (NSTextField textField, NSTextView textView, nuint index); } - + [NoMacCatalyst] [BaseType (typeof (NSTextFieldDelegate))] [Model] @@ -18872,7 +18827,7 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [Model] [Protocol] interface NSTokenFieldCellDelegate { @@ -18880,7 +18835,7 @@ namespace AppKit { NSArray GetCompletionStrings (NSTokenFieldCell tokenFieldCell, string substring, nint tokenIndex, ref nint selectedIndex); [Export ("tokenFieldCell:shouldAddObjects:atIndex:")] - NSArray ShouldAddObjects (NSTokenFieldCell tokenFieldCell, NSObject[] tokens, nuint index); + NSArray ShouldAddObjects (NSTokenFieldCell tokenFieldCell, NSObject [] tokens, nuint index); [Export ("tokenFieldCell:displayStringForRepresentedObject:")] string GetDisplayString (NSTokenFieldCell tokenFieldCell, NSObject representedObject); @@ -18914,32 +18869,32 @@ namespace AppKit { [DesignatedInitializer] [Export ("initTextCell:")] NativeHandle Constructor (string aString); - + [Export ("initImageCell:")] - NativeHandle Constructor (NSImage image); + NativeHandle Constructor (NSImage image); [Export ("setUpFieldEditorAttributes:")] NSText SetUpFieldEditorAttributes (NSText textObj); - + //Detected properties [Export ("backgroundColor", ArgumentSemantic.Copy)] NSColor BackgroundColor { get; set; } - + [Export ("drawsBackground")] bool DrawsBackground { get; set; } - + [Export ("textColor", ArgumentSemantic.Copy)] NSColor TextColor { get; set; } - + [Export ("bezelStyle")] NSTextFieldBezelStyle BezelStyle { get; set; } - + [Export ("placeholderString")] string PlaceholderString { get; set; } - + [Export ("placeholderAttributedString", ArgumentSemantic.Copy)] NSAttributedString PlaceholderAttributedString { get; set; } - + [Export ("allowedInputSourceLocales")] string [] AllowedInputSourceLocales { get; set; } @@ -18949,7 +18904,7 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof(NSTextFieldCell))] + [BaseType (typeof (NSTextFieldCell))] [DisableDefaultCtor] interface NSTokenFieldCell { [Export ("initTextCell:")] @@ -18965,14 +18920,14 @@ namespace AppKit { [Export ("defaultCompletionDelay")] double DefaultCompletionDelay { get; } - [Export ("tokenizingCharacterSet", ArgumentSemantic.Copy), NullAllowed] + [Export ("tokenizingCharacterSet", ArgumentSemantic.Copy), NullAllowed] NSCharacterSet CharacterSet { get; set; } [Static] - [Export ("defaultTokenizingCharacterSet")] + [Export ("defaultTokenizingCharacterSet")] NSCharacterSet DefaultCharacterSet { get; } - [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -18988,16 +18943,16 @@ namespace AppKit { [Export ("echosBullets")] bool EchosBullets { get; set; } - } + } - interface INSTextInputClient {} + interface INSTextInputClient { } [NoMacCatalyst] [BaseType (typeof (NSObject))] partial interface NSTextInputContext { [Export ("initWithClient:")] [DesignatedInitializer] - NativeHandle Constructor ([Protocolize]NSTextInputClient client); + NativeHandle Constructor ([Protocolize] NSTextInputClient client); [Static] [Export ("currentInputContext")] @@ -19010,13 +18965,13 @@ namespace AppKit { bool AcceptsGlyphInfo { get; set; } [NullAllowed, Export ("keyboardInputSources")] - string[] KeyboardInputSources { get; } + string [] KeyboardInputSources { get; } [NullAllowed, Export ("selectedKeyboardInputSource")] string SelectedKeyboardInputSource { get; set; } [NullAllowed, Export ("allowedInputSourceLocales", ArgumentSemantic.Copy)] - string[] AllowedInputSourceLocales { get; set; } + string [] AllowedInputSourceLocales { get; set; } [Export ("activate")] void Activate (); @@ -19090,8 +19045,7 @@ namespace AppKit { [NoMacCatalyst] [Protocol] - interface NSTextInput - { + interface NSTextInput { [Abstract] [Deprecated (PlatformName.MacOSX, 10, 6)] [Export ("insertText:")] @@ -19142,7 +19096,7 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof (NSText), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTextViewDelegate)})] + [BaseType (typeof (NSText), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTextViewDelegate) })] partial interface NSTextView : NSTextInputClient, NSTextLayoutOrientationProvider, NSDraggingSource, NSAccessibilityNavigableStaticText, NSCandidateListTouchBarItemDelegate, NSTouchBarDelegate, NSMenuItemValidation, NSUserInterfaceValidations, NSTextInput, NSTextContent #if NET , NSColorChanging // ChangeColor has the wrong param type @@ -19172,12 +19126,12 @@ namespace AppKit { [Export ("textStorage")] NSTextStorage TextStorage { get; } - [Mac (12,0)] + [Mac (12, 0)] [NullAllowed] [Export ("textLayoutManager", ArgumentSemantic.Weak)] NSTextLayoutManager TextLayoutManager { get; } - [Mac (12,0)] + [Mac (12, 0)] [NullAllowed] [Export ("textContentStorage", ArgumentSemantic.Weak)] NSTextContentStorage TextContentStorage { get; } @@ -19477,16 +19431,16 @@ namespace AppKit { bool AcceptsGlyphInfo { get; set; } [Export ("rulerVisible")] - bool RulerVisible { [Bind ("isRulerVisible")]get; set; } + bool RulerVisible { [Bind ("isRulerVisible")] get; set; } [Export ("usesRuler")] bool UsesRuler { get; set; } [Export ("continuousSpellCheckingEnabled")] - bool ContinuousSpellCheckingEnabled { [Bind ("isContinuousSpellCheckingEnabled")]get; set; } + bool ContinuousSpellCheckingEnabled { [Bind ("isContinuousSpellCheckingEnabled")] get; set; } [Export ("grammarCheckingEnabled")] - bool GrammarCheckingEnabled { [Bind ("isGrammarCheckingEnabled")]get; set; } + bool GrammarCheckingEnabled { [Bind ("isGrammarCheckingEnabled")] get; set; } [Export ("typingAttributes")] NSDictionary TypingAttributes { get; set; } @@ -19512,16 +19466,16 @@ namespace AppKit { #pragma warning disable 0109 // warning CS0109: The member 'NSTextView.Editable' does not hide an accessible member. The new keyword is not required. [Export ("editable")] - new bool Editable { [Bind ("isEditable")]get; set; } + new bool Editable { [Bind ("isEditable")] get; set; } #pragma warning restore #pragma warning disable 0109 // warning CS0109: The member 'NSTextView.Selectable' does not hide an accessible member. The new keyword is not required. [Export ("selectable")] - new bool Selectable { [Bind ("isSelectable")]get; set; } + new bool Selectable { [Bind ("isSelectable")] get; set; } #pragma warning restore [Export ("richText")] - bool RichText { [Bind ("isRichText")]get; set; } + bool RichText { [Bind ("isRichText")] get; set; } [Export ("importsGraphics")] bool ImportsGraphics { get; set; } @@ -19533,7 +19487,7 @@ namespace AppKit { NSColor BackgroundColor { get; set; } [Export ("fieldEditor")] - bool FieldEditor { [Bind ("isFieldEditor")]get; set; } + bool FieldEditor { [Bind ("isFieldEditor")] get; set; } [Export ("usesFontPanel")] bool UsesFontPanel { get; set; } @@ -19565,7 +19519,7 @@ namespace AppKit { [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } - + // // Smart copy/paset support // @@ -19628,27 +19582,27 @@ namespace AppKit { bool SmartInsertDeleteEnabled { get; set; } [Export ("automaticQuoteSubstitutionEnabled")] - bool AutomaticQuoteSubstitutionEnabled { [Bind ("isAutomaticQuoteSubstitutionEnabled")]get; set; } + bool AutomaticQuoteSubstitutionEnabled { [Bind ("isAutomaticQuoteSubstitutionEnabled")] get; set; } [Export ("automaticLinkDetectionEnabled")] - bool AutomaticLinkDetectionEnabled { [Bind ("isAutomaticLinkDetectionEnabled")]get; set; } + bool AutomaticLinkDetectionEnabled { [Bind ("isAutomaticLinkDetectionEnabled")] get; set; } [Export ("automaticDataDetectionEnabled")] - bool AutomaticDataDetectionEnabled { [Bind ("isAutomaticDataDetectionEnabled")]get; set; } + bool AutomaticDataDetectionEnabled { [Bind ("isAutomaticDataDetectionEnabled")] get; set; } [Export ("automaticDashSubstitutionEnabled")] - bool AutomaticDashSubstitutionEnabled { [Bind ("isAutomaticDashSubstitutionEnabled")]get; set; } + bool AutomaticDashSubstitutionEnabled { [Bind ("isAutomaticDashSubstitutionEnabled")] get; set; } [Export ("automaticTextReplacementEnabled")] - bool AutomaticTextReplacementEnabled { [Bind ("isAutomaticTextReplacementEnabled")]get; set; } + bool AutomaticTextReplacementEnabled { [Bind ("isAutomaticTextReplacementEnabled")] get; set; } [Export ("automaticSpellingCorrectionEnabled")] - bool AutomaticSpellingCorrectionEnabled { [Bind ("isAutomaticSpellingCorrectionEnabled")]get; set; } + bool AutomaticSpellingCorrectionEnabled { [Bind ("isAutomaticSpellingCorrectionEnabled")] get; set; } [Export ("enabledTextCheckingTypes")] NSTextCheckingTypes EnabledTextCheckingTypes { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("usesRolloverButtonForSelection")] bool UsesRolloverButtonForSelection { get; set; } @@ -19688,29 +19642,29 @@ namespace AppKit { [NullAllowed, Export ("candidateListTouchBarItem", ArgumentSemantic.Strong)] NSCandidateListTouchBarItem CandidateListTouchBarItem { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("performValidatedReplacementInRange:withAttributedString:")] bool PerformValidatedReplacement (NSRange range, NSAttributedString attributedString); [Mac (10, 14)] [Static] [Export ("scrollableTextView")] - NSScrollView CreateScrollableTextView (); + NSScrollView CreateScrollableTextView (); - [Mac (10,14)] + [Mac (10, 14)] [Static] [Export ("fieldEditor")] - NSTextView CreateFieldEditor (); + NSTextView CreateFieldEditor (); [Mac (10, 14)] [Static] [Export ("scrollableDocumentContentTextView")] - NSScrollView CreateScrollableDocumentContentTextView (); + NSScrollView CreateScrollableDocumentContentTextView (); [Mac (10, 14)] [Static] [Export ("scrollablePlainDocumentContentTextView")] - NSScrollView CreateScrollablePlainDocumentContentTextView (); + NSScrollView CreateScrollablePlainDocumentContentTextView (); [Mac (11, 0)] NSTextContentType ContentType { @@ -19742,8 +19696,7 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSObject))] [Protocol, Model] - interface NSTextInputClient - { + interface NSTextInputClient { #if NET [Abstract] #endif @@ -19837,7 +19790,7 @@ namespace AppKit { void CellDoubleClicked (NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, nuint charIndex); // - [Export ("textView:writablePasteboardTypesForCell:atIndex:"), DelegateName ("NSTextViewCellPosition"),DefaultValue (null)] + [Export ("textView:writablePasteboardTypesForCell:atIndex:"), DelegateName ("NSTextViewCellPosition"), DefaultValue (null)] string [] GetWritablePasteboardTypes (NSTextView view, NSTextAttachmentCell forCell, nuint charIndex); [Export ("textView:writeCell:atIndex:toPasteboard:type:"), DelegateName ("NSTextViewCellPasteboard"), DefaultValue (true)] @@ -19897,25 +19850,25 @@ namespace AppKit { [Export ("undoManagerForTextView:"), DelegateName ("NSTextViewGetUndoManager"), DefaultValue (null)] NSUndoManager GetUndoManager (NSTextView view); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textView:shouldUpdateTouchBarItemIdentifiers:"), DelegateName ("NSTextViewUpdateTouchBarItemIdentifiers"), NoDefaultValue] - string[] ShouldUpdateTouchBarItemIdentifiers (NSTextView textView, string[] identifiers); + string [] ShouldUpdateTouchBarItemIdentifiers (NSTextView textView, string [] identifiers); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textView:candidatesForSelectedRange:"), DelegateName ("NSTextViewGetCandidates"), NoDefaultValue] [return: NullAllowed] - NSObject[] GetCandidates (NSTextView textView, NSRange selectedRange); + NSObject [] GetCandidates (NSTextView textView, NSRange selectedRange); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textView:candidates:forSelectedRange:"), DelegateName ("NSTextViewTextCheckingResults"), NoDefaultValue] - NSTextCheckingResult[] GetTextCheckingCandidates (NSTextView textView, NSTextCheckingResult[] candidates, NSRange selectedRange); + NSTextCheckingResult [] GetTextCheckingCandidates (NSTextView textView, NSTextCheckingResult [] candidates, NSRange selectedRange); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("textView:shouldSelectCandidateAtIndex:"), DelegateName ("NSTextViewSelectCandidate"), NoDefaultValue] bool ShouldSelectCandidates (NSTextView textView, nuint index); } - + [NoMacCatalyst] [BaseType (typeof (NSTextField))] interface NSTokenField { @@ -19987,7 +19940,7 @@ namespace AppKit { } [MacCatalyst (13, 0)] - [BaseType (typeof (NSObject), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSToolbarDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSToolbarDelegate) })] [DisableDefaultCtor] // init was added in 10.13 partial interface NSToolbar { [Mac (10, 13)] @@ -20038,7 +19991,7 @@ namespace AppKit { NSToolbarDelegate Delegate { get; set; } [Export ("visible")] - bool Visible { [Bind ("isVisible")]get; set; } + bool Visible { [Bind ("isVisible")] get; set; } [Export ("displayMode")] NSToolbarDisplayMode DisplayMode { get; set; } @@ -20062,36 +20015,36 @@ namespace AppKit { [Field ("NSToolbarSeparatorItemIdentifier")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Ignored by system.")] NSString NSToolbarSeparatorItemIdentifier { get; } - + [Field ("NSToolbarSpaceItemIdentifier")] NSString NSToolbarSpaceItemIdentifier { get; } - + [Field ("NSToolbarFlexibleSpaceItemIdentifier")] NSString NSToolbarFlexibleSpaceItemIdentifier { get; } - + [Field ("NSToolbarShowColorsItemIdentifier")] NSString NSToolbarShowColorsItemIdentifier { get; } - + [Field ("NSToolbarShowFontsItemIdentifier")] NSString NSToolbarShowFontsItemIdentifier { get; } - + [NoMacCatalyst] [Field ("NSToolbarCustomizeToolbarItemIdentifier")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Ignored by system.")] NSString NSToolbarCustomizeToolbarItemIdentifier { get; } - + [Field ("NSToolbarPrintItemIdentifier")] NSString NSToolbarPrintItemIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("allowsExtensionItems")] bool AllowsExtensionItems { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("NSToolbarToggleSidebarItemIdentifier")] NSString NSToolbarToggleSidebarItemIdentifier { get; } - [Mac (10,12)] + [Mac (10, 12)] [Field ("NSToolbarCloudSharingItemIdentifier")] NSString NSToolbarCloudSharingItemIdentifier { get; } @@ -20118,7 +20071,8 @@ namespace AppKit { [Export ("centeredItemIdentifiers", ArgumentSemantic.Copy)] NSSet CenteredItemIdentifiers { get; set; } - [NoMacCatalyst][Mac (13, 0)] + [NoMacCatalyst] + [Mac (13, 0)] [Field ("NSToolbarItemKey")] NSString NSToolbarItemKey { get; } } @@ -20146,11 +20100,11 @@ namespace AppKit { [Export ("toolbarDidRemoveItem:"), EventArgs ("NSNotification")] void DidRemoveItem (NSNotification notification); - [Mac (13,0), MacCatalyst (16,0), DelegateName ("NSToolbarImmovableItemIdentifiers"), DefaultValue (null)] + [Mac (13, 0), MacCatalyst (16, 0), DelegateName ("NSToolbarImmovableItemIdentifiers"), DefaultValue (null)] [Export ("toolbarImmovableItemIdentifiers:")] NSSet GetToolbarImmovableItemIdentifiers (NSToolbar toolbar); - [Mac (13,0), MacCatalyst (16,0)] + [Mac (13, 0), MacCatalyst (16, 0)] [Export ("toolbar:itemIdentifier:canBeInsertedAtIndex:"), DelegateName ("NSToolbarCanInsert"), DefaultValue (true)] bool GetItemCanBeInsertedAt (NSToolbar toolbar, string itemIdentifier, nint index); @@ -20159,8 +20113,7 @@ namespace AppKit { [NoMacCatalyst] [Mac (10, 14)] [Protocol] - interface NSToolbarItemValidation - { + interface NSToolbarItemValidation { [Abstract] [Export ("validateToolbarItem:")] bool ValidateToolbarItem (NSToolbarItem item); @@ -20169,14 +20122,13 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Category] - [BaseType (typeof(NSObject))] - interface NSObject_NSToolbarItemValidation - { + [BaseType (typeof (NSObject))] + interface NSObject_NSToolbarItemValidation { [Export ("validateToolbarItem:")] bool ValidateToolbarItem (NSToolbarItem item); } - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] interface NSToolbarItem : NSCopying, NSMenuItemValidation, NSValidatedUserInterfaceItem { [DesignatedInitializer] @@ -20224,7 +20176,7 @@ namespace AppKit { #pragma warning restore 0108 [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")]get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("image", ArgumentSemantic.Retain), NullAllowed] #if XAMCORE_5_0 && __MACCATALYST__ @@ -20282,31 +20234,31 @@ namespace AppKit { [NullAllowed] UIMenuElement ItemMenuFormRepresentation { get; set; } - [Mac (13, 0)][NoMacCatalyst] + [Mac (13, 0)] + [NoMacCatalyst] [Export ("possibleLabels", ArgumentSemantic.Copy)] NSSet PossibleLabels { get; set; } } - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSToolbarItem))] - interface NSToolbarItemGroup - { + interface NSToolbarItemGroup { [Export ("initWithItemIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string itemIdentifier); [Export ("subitems", ArgumentSemantic.Copy)] - NSToolbarItem[] Subitems { get; set; } + NSToolbarItem [] Subitems { get; set; } - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("groupWithItemIdentifier:titles:selectionMode:labels:target:action:")] - NSToolbarItemGroup Create (string itemIdentifier, string[] titles, NSToolbarItemGroupSelectionMode selectionMode, [NullAllowed] string[] labels, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSToolbarItemGroup Create (string itemIdentifier, string [] titles, NSToolbarItemGroupSelectionMode selectionMode, [NullAllowed] string [] labels, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("groupWithItemIdentifier:images:selectionMode:labels:target:action:")] - NSToolbarItemGroup Create (string itemIdentifier, NSImage[] images, NSToolbarItemGroupSelectionMode selectionMode, [NullAllowed] string[] labels, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSToolbarItemGroup Create (string itemIdentifier, NSImage [] images, NSToolbarItemGroupSelectionMode selectionMode, [NullAllowed] string [] labels, [NullAllowed] NSObject target, [NullAllowed] Selector action); [Mac (10, 15)] [Export ("controlRepresentation", ArgumentSemantic.Assign)] @@ -20320,11 +20272,11 @@ namespace AppKit { [Export ("selectedIndex")] nint SelectedIndex { get; set; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("setSelected:atIndex:")] void SetSelected (bool selected, nint index); - [Mac (10,15)] + [Mac (10, 15)] [Export ("isSelectedAtIndex:")] bool GetSelected (nint index); } @@ -20355,9 +20307,8 @@ namespace AppKit { [Mac (10, 12, 2)] [NoMacCatalyst] [Category] - [BaseType (typeof(NSTouch))] - interface NSTouch_NSTouchBar - { + [BaseType (typeof (NSTouch))] + interface NSTouch_NSTouchBar { [Export ("type")] NSTouchType GetTouchType (); @@ -20369,22 +20320,21 @@ namespace AppKit { } [DesignatedDefaultCtor] - [Mac (10,12,2)] + [Mac (10, 12, 2)] [MacCatalyst (13, 0)] - [BaseType (typeof(NSObject), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTouchBarDelegate)})] - interface NSTouchBar : NSCoding - { + [BaseType (typeof (NSObject), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTouchBarDelegate) })] + interface NSTouchBar : NSCoding { [NullAllowed, Export ("customizationIdentifier")] string CustomizationIdentifier { get; set; } [Export ("customizationAllowedItemIdentifiers", ArgumentSemantic.Copy)] - string[] CustomizationAllowedItemIdentifiers { get; set; } + string [] CustomizationAllowedItemIdentifiers { get; set; } [Export ("customizationRequiredItemIdentifiers", ArgumentSemantic.Copy)] - string[] CustomizationRequiredItemIdentifiers { get; set; } + string [] CustomizationRequiredItemIdentifiers { get; set; } [Export ("defaultItemIdentifiers", ArgumentSemantic.Copy)] - string[] DefaultItemIdentifiers { get; set; } + string [] DefaultItemIdentifiers { get; set; } [NullAllowed, Export ("principalItemIdentifier")] string PrincipalItemIdentifier { get; set; } @@ -20415,20 +20365,18 @@ namespace AppKit { [MacCatalyst (13, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSTouchBarDelegate - { + [BaseType (typeof (NSObject))] + interface NSTouchBarDelegate { [Export ("touchBar:makeItemForIdentifier:"), DelegateName ("NSTouchBarMakeItem"), DefaultValue (null)] [return: NullAllowed] NSTouchBarItem MakeItem (NSTouchBar touchBar, string identifier); } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [MacCatalyst (13, 0)] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTouchBarItem : NSCoding - { + interface NSTouchBarItem : NSCoding { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -20457,10 +20405,9 @@ namespace AppKit { bool Visible { [Bind ("isVisible")] get; } } - [Mac (10,12,2)] - [MacCatalyst (13,1)] - public enum NSTouchBarItemIdentifier - { + [Mac (10, 12, 2)] + [MacCatalyst (13, 1)] + public enum NSTouchBarItemIdentifier { [MacCatalyst (13, 0)] [Field ("NSTouchBarItemIdentifierFixedSpaceSmall")] FixedSpaceSmall, @@ -20509,8 +20456,7 @@ namespace AppKit { [Mac (10, 12, 2)] [MacCatalyst (13, 0)] [Protocol] - interface NSTouchBarProvider - { + interface NSTouchBarProvider { [Abstract] [NullAllowed, Export ("touchBar", ArgumentSemantic.Strong)] NSTouchBar TouchBar { get; } @@ -20523,7 +20469,7 @@ namespace AppKit { interface NSTrackingArea : NSCoding, NSCopying { [Export ("initWithRect:options:owner:userInfo:")] NativeHandle Constructor (CGRect rect, NSTrackingAreaOptions options, NSObject owner, [NullAllowed] NSDictionary userInfo); - + [Export ("rect")] CGRect Rect { get; } @@ -20536,7 +20482,7 @@ namespace AppKit { [Export ("userInfo")] NSDictionary UserInfo { get; } } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSTreeNode { @@ -20695,29 +20641,29 @@ namespace AppKit { } delegate void NSWindowTrackEventsMatchingCompletionHandler (NSEvent evt, ref bool stop); - + [NoMacCatalyst] - [BaseType (typeof (NSResponder), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSWindowDelegate)})] + [BaseType (typeof (NSResponder), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSWindowDelegate) })] [DisableDefaultCtor] partial interface NSWindow : NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibility, NSMenuItemValidation, NSUserInterfaceValidations { [Static, Export ("frameRectForContentRect:styleMask:")] CGRect FrameRectFor (CGRect contectRect, NSWindowStyle styleMask); - + [Static] [Export ("contentRectForFrameRect:styleMask:")] CGRect ContentRectFor (CGRect forFrameRect, NSWindowStyle styleMask); - + [Static] [Export ("minFrameWidthWithTitle:styleMask:")] nfloat MinFrameWidthWithTitle (string aTitle, NSWindowStyle aStyle); - + [Static] [Export ("defaultDepthLimit")] NSWindowDepth DefaultDepthLimit { get; } - + [Export ("frameRectForContentRect:")] CGRect FrameRectFor (CGRect contentRect); - + [Export ("contentRectForFrameRect:")] CGRect ContentRectFor (CGRect frameRect); @@ -20729,171 +20675,174 @@ namespace AppKit { [Export ("initWithContentRect:styleMask:backing:defer:")] [PostSnippet ("if (!DisableReleasedWhenClosedInConstructor) { ReleasedWhenClosed = false; }", Optimizable = true)] NativeHandle Constructor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation); - + [Export ("initWithContentRect:styleMask:backing:defer:screen:")] [PostSnippet ("if (!DisableReleasedWhenClosedInConstructor) { ReleasedWhenClosed = false; }", Optimizable = true)] - NativeHandle Constructor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation, NSScreen screen); - + NativeHandle Constructor (CGRect contentRect, NSWindowStyle aStyle, NSBackingStore bufferingType, bool deferCreation, NSScreen screen); + [Export ("title")] - string Title { get; set; } - + string Title { get; set; } + [Export ("representedURL", ArgumentSemantic.Copy)] NSUrl RepresentedUrl { get; set; } - + [Export ("representedFilename")] - string RepresentedFilename { get; set; } - + string RepresentedFilename { get; set; } + [Export ("setTitleWithRepresentedFilename:")] - void SetTitleWithRepresentedFilename (string filename); - + void SetTitleWithRepresentedFilename (string filename); + [Export ("setExcludedFromWindowsMenu:")] void SetExcludedFromWindowsMenu (bool flag); - - [Export ("isExcludedFromWindowsMenu")] - bool ExcludedFromWindowsMenu { get; } - - [Export ("contentView", ArgumentSemantic.Retain)][NullAllowed] - NSView ContentView { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("isExcludedFromWindowsMenu")] + bool ExcludedFromWindowsMenu { get; } + + [Export ("contentView", ArgumentSemantic.Retain)] + [NullAllowed] + NSView ContentView { get; set; } + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - - [Wrap ("WeakDelegate")][NullAllowed] + + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] NSWindowDelegate Delegate { get; set; } - + [Export ("windowNumber")] nint WindowNumber { get; } - + [Export ("styleMask")] NSWindowStyle StyleMask { get; set; } - + [Export ("fieldEditor:forObject:")] NSText FieldEditor (bool createFlag, [NullAllowed] NSObject forObject); - + [Export ("endEditingFor:")] void EndEditingFor ([NullAllowed] NSObject anObject); - + [Export ("constrainFrameRect:toScreen:")] CGRect ConstrainFrameRect (CGRect frameRect, [NullAllowed] NSScreen screen); - + [Export ("setFrame:display:")] void SetFrame (CGRect frameRect, bool display); - + [Export ("setContentSize:")] void SetContentSize (CGSize aSize); - + [Export ("setFrameOrigin:")] void SetFrameOrigin (CGPoint aPoint); - + [Export ("setFrameTopLeftPoint:")] void SetFrameTopLeftPoint (CGPoint aPoint); - + [Export ("cascadeTopLeftFromPoint:")] CGPoint CascadeTopLeftFromPoint (CGPoint topLeftPoint); - + [Export ("frame")] [ThreadSafe] // Bug 22909 - This can be called from a non-ui thread <= OS X 10.9 CGRect Frame { get; } - + [Export ("animationResizeTime:")] double AnimationResizeTime (CGRect newFrame); - + [Export ("setFrame:display:animate:")] void SetFrame (CGRect frameRect, bool display, bool animate); - + [Export ("inLiveResize")] - bool InLiveResize { get; } - + bool InLiveResize { get; } + [Export ("showsResizeIndicator")] bool ShowsResizeIndicator { get; set; } - + [Export ("resizeIncrements")] - CGSize ResizeIncrements { get; set; } - + CGSize ResizeIncrements { get; set; } + [Export ("aspectRatio")] - CGSize AspectRatio { get; set; } - + CGSize AspectRatio { get; set; } + [Export ("contentResizeIncrements")] - CGSize ContentResizeIncrements { get; set; } - + CGSize ContentResizeIncrements { get; set; } + [Export ("contentAspectRatio")] - CGSize ContentAspectRatio { get; set; } - + CGSize ContentAspectRatio { get; set; } + [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("useOptimizedDrawing:")] void UseOptimizedDrawing (bool flag); - + [Export ("disableFlushWindow")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSAnimationContext.RunAnimation'.")] void DisableFlushWindow (); - + [Export ("enableFlushWindow")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSAnimationContext.RunAnimation'.")] void EnableFlushWindow (); - + [Export ("isFlushWindowDisabled")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSAnimationContext.RunAnimation'.")] bool FlushWindowDisabled { get; } - + [Export ("flushWindow")] [Deprecated (PlatformName.MacOSX, 10, 14)] void FlushWindow (); - + [Export ("flushWindowIfNeeded")] [Deprecated (PlatformName.MacOSX, 10, 14)] void FlushWindowIfNeeded (); - + [Export ("viewsNeedDisplay")] - bool ViewsNeedDisplay { get; set; } - + bool ViewsNeedDisplay { get; set; } + [Export ("displayIfNeeded")] void DisplayIfNeeded (); - + [Export ("display")] void Display (); - + [Export ("autodisplay")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSAnimationContext.RunAnimation'.")] - bool Autodisplay { [Bind ("isAutodisplay")] get; set; } - + bool Autodisplay { [Bind ("isAutodisplay")] get; set; } + [Export ("preservesContentDuringLiveResize")] - bool PreservesContentDuringLiveResize { get; set; } - + bool PreservesContentDuringLiveResize { get; set; } + [Export ("update")] void Update (); - + [Export ("makeFirstResponder:")] - bool MakeFirstResponder ([NullAllowed] NSResponder aResponder); - + bool MakeFirstResponder ([NullAllowed] NSResponder aResponder); + [Export ("firstResponder")] NSResponder FirstResponder { get; } - + [Export ("resizeFlags")] nint ResizeFlags { get; } // Inherits from NSResponder // [Export ("keyDown:")] // void KeyDown (NSEvent theEvent); - + /* NSWindow.Close by default calls [window release] * This will cause a double free in our code since we're not aware of this * and we end up GCing the proxy eventually and sending our own release */ [Internal, Export ("close")] void _Close (); - + [Export ("releasedWhenClosed")] - bool ReleasedWhenClosed { [Bind ("isReleasedWhenClosed")] get; set; } - + bool ReleasedWhenClosed { [Bind ("isReleasedWhenClosed")] get; set; } + [Export ("miniaturize:")] void Miniaturize ([NullAllowed] NSObject sender); - + [Export ("deminiaturize:")] void Deminiaturize ([NullAllowed] NSObject sender); - + [Export ("isZoomed")] - bool IsZoomed { + bool IsZoomed { get; #if !XAMCORE_5_0 // https://github.com/xamarin/xamarin-macios/issues/14359 @@ -20914,9 +20863,9 @@ namespace AppKit { [Export ("zoom:")] void Zoom ([NullAllowed] NSObject sender); - + [Export ("isMiniaturized")] - bool IsMiniaturized { + bool IsMiniaturized { get; #if !XAMCORE_5_0 // https://github.com/xamarin/xamarin-macios/issues/14359 @@ -20937,72 +20886,72 @@ namespace AppKit { [Export ("tryToPerform:with:")] bool TryToPerform (Selector anAction, NSObject anObject); - + [Export ("validRequestorForSendType:returnType:")] NSObject ValidRequestorForSendType (string sendType, string returnType); - + [Export ("backgroundColor", ArgumentSemantic.Copy)] - NSColor BackgroundColor { get; set; } - + NSColor BackgroundColor { get; set; } + [Export ("setContentBorderThickness:forEdge:")] void SetContentBorderThickness (nfloat thickness, NSRectEdge edge); - + [Export ("contentBorderThicknessForEdge:")] nfloat ContentBorderThicknessForEdge (NSRectEdge edge); - + [Export ("setAutorecalculatesContentBorderThickness:forEdge:")] void SetAutorecalculatesContentBorderThickness (bool flag, NSRectEdge forEdge); - + [Export ("autorecalculatesContentBorderThicknessForEdge:")] bool AutorecalculatesContentBorderThickness (NSRectEdge forEdgeedge); - + [Export ("movable")] - bool IsMovable { [Bind ("isMovable")] get; set; } - + bool IsMovable { [Bind ("isMovable")] get; set; } + [Export ("movableByWindowBackground")] - bool MovableByWindowBackground { [Bind ("isMovableByWindowBackground")] get; set; } - + bool MovableByWindowBackground { [Bind ("isMovableByWindowBackground")] get; set; } + [Export ("hidesOnDeactivate")] - bool HidesOnDeactivate { get; set; } - + bool HidesOnDeactivate { get; set; } + [Export ("canHide")] - bool CanHide { get; set; } - + bool CanHide { get; set; } + [Export ("center")] void Center (); - + [Export ("makeKeyAndOrderFront:")] void MakeKeyAndOrderFront ([NullAllowed] NSObject sender); - + [Export ("orderFront:")] void OrderFront ([NullAllowed] NSObject sender); - + [Export ("orderBack:")] void OrderBack ([NullAllowed] NSObject sender); - + [Export ("orderOut:")] void OrderOut ([NullAllowed] NSObject sender); - + [Export ("orderWindow:relativeTo:")] void OrderWindow (NSWindowOrderingMode place, nint relativeTo); - + [Export ("orderFrontRegardless")] void OrderFrontRegardless (); - + [Export ("miniwindowImage", ArgumentSemantic.Retain)] NSImage MiniWindowImage { get; set; } - + [Export ("miniwindowTitle")] - string MiniWindowTitle { get; set; } - + string MiniWindowTitle { get; set; } + [Export ("dockTile")] - NSDockTile DockTile { get; } - + NSDockTile DockTile { get; } + [Export ("documentEdited")] - bool DocumentEdited { [Bind ("isDocumentEdited")] get; set; } - + bool DocumentEdited { [Bind ("isDocumentEdited")] get; set; } + [Export ("isVisible")] - bool IsVisible { + bool IsVisible { get; #if !XAMCORE_5_0 // https://github.com/xamarin/xamarin-macios/issues/14359 @@ -21019,185 +20968,185 @@ namespace AppKit { #endif [Export ("setIsVisible:")] void SetIsVisible (bool value); - + [Export ("isKeyWindow")] bool IsKeyWindow { get; } - + [Export ("isMainWindow")] bool IsMainWindow { get; } - + [Export ("canBecomeKeyWindow")] bool CanBecomeKeyWindow { get; } - + [Export ("canBecomeMainWindow")] bool CanBecomeMainWindow { get; } - + [Export ("makeKeyWindow")] void MakeKeyWindow (); - + [Export ("makeMainWindow")] void MakeMainWindow (); - + [Export ("becomeKeyWindow")] void BecomeKeyWindow (); - + [Export ("resignKeyWindow")] void ResignKeyWindow (); - + [Export ("becomeMainWindow")] void BecomeMainWindow (); - + [Export ("resignMainWindow")] void ResignMainWindow (); - + [Export ("worksWhenModal")] #if NET bool WorksWhenModal { get; } #else bool WorksWhenModal (); #endif - + [Export ("preventsApplicationTerminationWhenModal")] - bool PreventsApplicationTerminationWhenModal { get; set; } - + bool PreventsApplicationTerminationWhenModal { get; set; } + [Deprecated (PlatformName.MacOSX, 10, 7, message: "Use ConvertRectToScreen instead.")] [Export ("convertBaseToScreen:")] CGPoint ConvertBaseToScreen (CGPoint aPoint); - + [Deprecated (PlatformName.MacOSX, 10, 7, message: "Use ConvertRectFromScreen instead.")] [Export ("convertScreenToBase:")] CGPoint ConvertScreenToBase (CGPoint aPoint); - + [Export ("performClose:")] void PerformClose ([NullAllowed] NSObject sender); - + [Export ("performMiniaturize:")] void PerformMiniaturize ([NullAllowed] NSObject sender); - + [Export ("performZoom:")] void PerformZoom ([NullAllowed] NSObject sender); - + [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("gState")] nint GState (); - + [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("setOneShot:")] void SetOneShot (bool flag); - + [Export ("isOneShot")] [Deprecated (PlatformName.MacOSX, 10, 14)] bool IsOneShot { get; } - + [Export ("dataWithEPSInsideRect:")] NSData DataWithEpsInsideRect (CGRect rect); - + [Export ("dataWithPDFInsideRect:")] NSData DataWithPdfInsideRect (CGRect rect); - + [Export ("print:")] void Print ([NullAllowed] NSObject sender); - + [Export ("disableCursorRects")] void DisableCursorRects (); - + [Export ("enableCursorRects")] void EnableCursorRects (); - + [Export ("discardCursorRects")] void DiscardCursorRects (); - + [Export ("areCursorRectsEnabled")] bool AreCursorRectsEnabled { get; } - + [Export ("invalidateCursorRectsForView:")] - void InvalidateCursorRectsForView (NSView aView); - + void InvalidateCursorRectsForView (NSView aView); + [Export ("resetCursorRects")] void ResetCursorRects (); - + [Export ("allowsToolTipsWhenApplicationIsInactive")] - bool AllowsToolTipsWhenApplicationIsInactive { get; set; } - + bool AllowsToolTipsWhenApplicationIsInactive { get; set; } + [Export ("backingType")] [Deprecated (PlatformName.MacOSX, 10, 14)] NSBackingStore BackingType { get; set; } - + [Export ("level")] - NSWindowLevel Level { get; set; } - + NSWindowLevel Level { get; set; } + [Export ("depthLimit")] - NSWindowDepth DepthLimit { get; set; } - + NSWindowDepth DepthLimit { get; set; } + [Export ("dynamicDepthLimit")] bool HasDynamicDepthLimit { [Bind ("hasDynamicDepthLimit")] get; set; } - + [Export ("screen")] NSScreen Screen { get; } - + [Export ("deepestScreen")] NSScreen DeepestScreen { get; } - + [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("canStoreColor")] bool CanStoreColor { get; } - + [Export ("hasShadow")] - bool HasShadow { get; set; } - + bool HasShadow { get; set; } + [Export ("invalidateShadow")] void InvalidateShadow (); - + [Export ("alphaValue")] - nfloat AlphaValue { get; set; } - + nfloat AlphaValue { get; set; } + [Export ("opaque")] - bool IsOpaque { [Bind ("isOpaque")]get; set; } - + bool IsOpaque { [Bind ("isOpaque")] get; set; } + [Export ("sharingType")] - NSWindowSharingType SharingType { get; set; } - + NSWindowSharingType SharingType { get; set; } + [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("preferredBackingLocation")] - NSWindowBackingLocation PreferredBackingLocation { get; set; } - + NSWindowBackingLocation PreferredBackingLocation { get; set; } + [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("backingLocation")] NSWindowBackingLocation BackingLocation { get; } - + [Export ("allowsConcurrentViewDrawing")] - bool AllowsConcurrentViewDrawing { get; set; } - + bool AllowsConcurrentViewDrawing { get; set; } + [Export ("displaysWhenScreenProfileChanges")] - bool DisplaysWhenScreenProfileChanges { get; set; } - + bool DisplaysWhenScreenProfileChanges { get; set; } + [Export ("disableScreenUpdatesUntilFlush")] void DisableScreenUpdatesUntilFlush (); - + [Export ("canBecomeVisibleWithoutLogin")] bool CanBecomeVisibleWithoutLogin { get; set; } - + [Export ("collectionBehavior")] - NSWindowCollectionBehavior CollectionBehavior { get; set; } - + NSWindowCollectionBehavior CollectionBehavior { get; set; } + [Export ("isOnActiveSpace")] bool IsOnActiveSpace { get; } - + [Export ("stringWithSavedFrame")] string StringWithSavedFrame (); - + [Export ("setFrameFromString:")] void SetFrameFrom (string str); - + [Export ("saveFrameUsingName:")] - void SaveFrameUsingName (string name); - + void SaveFrameUsingName (string name); + [Export ("setFrameUsingName:force:")] - bool SetFrameUsingName (string name, bool force); - + bool SetFrameUsingName (string name, bool force); + [Export ("setFrameUsingName:")] - bool SetFrameUsingName (string name); - + bool SetFrameUsingName (string name); + [Export ("frameAutosaveName"), Protected] string GetFrameAutosaveName (); @@ -21206,67 +21155,67 @@ namespace AppKit { [Static] [Export ("removeFrameUsingName:")] - void RemoveFrameUsingName (string name); - + void RemoveFrameUsingName (string name); + [Export ("cacheImageInRect:")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior.")] void CacheImageInRect (CGRect aRect); - + [Export ("restoreCachedImage")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior.")] void RestoreCachedImage (); - + [Export ("discardCachedImage")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior.")] void DiscardCachedImage (); - + [Export ("minSize")] - CGSize MinSize { get; set; } - + CGSize MinSize { get; set; } + [Export ("maxSize")] - CGSize MaxSize { get; set; } - + CGSize MaxSize { get; set; } + [Export ("contentMinSize")] - CGSize ContentMinSize { get; set; } - + CGSize ContentMinSize { get; set; } + [Export ("contentMaxSize")] - CGSize ContentMaxSize { get; set; } - + CGSize ContentMaxSize { get; set; } + [Export ("nextEventMatchingMask:"), Protected] NSEvent NextEventMatchingMask (nuint mask); [Export ("nextEventMatchingMask:untilDate:inMode:dequeue:"), Protected] - NSEvent NextEventMatchingMask (nuint mask, NSDate expiration, string mode, bool deqFlag); - + NSEvent NextEventMatchingMask (nuint mask, NSDate expiration, string mode, bool deqFlag); + [Export ("discardEventsMatchingMask:beforeEvent:"), Protected] void DiscardEventsMatchingMask (nuint mask, NSEvent beforeLastEvent); [Export ("postEvent:atStart:")] void PostEvent (NSEvent theEvent, bool atStart); - + [Export ("currentEvent")] NSEvent CurrentEvent (); - + [Export ("acceptsMouseMovedEvents")] - bool AcceptsMouseMovedEvents { get; set; } - + bool AcceptsMouseMovedEvents { get; set; } + [Export ("ignoresMouseEvents")] - bool IgnoresMouseEvents { get; set; } - + bool IgnoresMouseEvents { get; set; } + [Export ("deviceDescription")] NSDictionary DeviceDescription { get; } - + [Export ("sendEvent:")] void SendEvent (NSEvent theEvent); - + [Export ("mouseLocationOutsideOfEventStream")] CGPoint MouseLocationOutsideOfEventStream { get; } - + [Deprecated (PlatformName.MacOSX, 10, 11, message: "This method does not do anything and should not be called.")] [Static] [Export ("menuChanged:")] - void MenuChanged (NSMenu menu); - + void MenuChanged (NSMenu menu); + [Export ("windowController")] [NullAllowed] #if NET @@ -21274,104 +21223,104 @@ namespace AppKit { #else NSObject WindowController { get; set; } #endif - + [Export ("isSheet")] bool IsSheet { get; } - + [Export ("attachedSheet")] NSWindow AttachedSheet { get; } [Static] [Export ("standardWindowButton:forStyleMask:")] NSButton StandardWindowButton (NSWindowButton b, NSWindowStyle styleMask); - + [Export ("standardWindowButton:")] NSButton StandardWindowButton (NSWindowButton b); - + [Export ("addChildWindow:ordered:")] - void AddChildWindow (NSWindow childWin, NSWindowOrderingMode place); - + void AddChildWindow (NSWindow childWin, NSWindowOrderingMode place); + [Export ("removeChildWindow:")] - void RemoveChildWindow (NSWindow childWin); - + void RemoveChildWindow (NSWindow childWin); + [Export ("childWindows")] NSWindow [] ChildWindows { get; } - + [Export ("parentWindow")] NSWindow ParentWindow { get; set; } - + [Export ("graphicsContext")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Add instances of NSView to display content in a window.")] NSGraphicsContext GraphicsContext { get; } - + [Deprecated (PlatformName.MacOSX, 10, 7)] [Export ("userSpaceScaleFactor")] nfloat UserSpaceScaleFactor { get; } - + [Export ("colorSpace", ArgumentSemantic.Retain)] - NSColorSpace ColorSpace { get; set; } - + NSColorSpace ColorSpace { get; set; } + [Static] [Export ("windowNumbersWithOptions:")] NSArray WindowNumbersWithOptions (NSWindowNumberListOptions options); - + [Static] [Export ("windowNumberAtPoint:belowWindowWithWindowNumber:")] nint WindowNumberAtPoint (CGPoint point, nint windowNumber); - + [Export ("initialFirstResponder")] NSView InitialFirstResponder { get; set; } - + [Export ("selectNextKeyView:")] void SelectNextKeyView ([NullAllowed] NSObject sender); - + [Export ("selectPreviousKeyView:")] void SelectPreviousKeyView ([NullAllowed] NSObject sender); - + [Export ("selectKeyViewFollowingView:")] void SelectKeyViewFollowingView (NSView aView); - + [Export ("selectKeyViewPrecedingView:")] void SelectKeyViewPrecedingView (NSView aView); - + [Export ("keyViewSelectionDirection")] NSSelectionDirection KeyViewSelectionDirection (); - + [Export ("defaultButtonCell")] [NullAllowed] NSButtonCell DefaultButtonCell { get; set; } - + [Export ("disableKeyEquivalentForDefaultButtonCell")] void DisableKeyEquivalentForDefaultButtonCell (); - + [Export ("enableKeyEquivalentForDefaultButtonCell")] void EnableKeyEquivalentForDefaultButtonCell (); - + [Export ("autorecalculatesKeyViewLoop")] - bool AutorecalculatesKeyViewLoop { get; set; } - + bool AutorecalculatesKeyViewLoop { get; set; } + [Export ("recalculateKeyViewLoop")] void RecalculateKeyViewLoop (); - + [Export ("toolbar")] [NullAllowed] NSToolbar Toolbar { get; set; } - + [Export ("toggleToolbarShown:")] void ToggleToolbarShown (NSObject sender); - + [Export ("runToolbarCustomizationPalette:")] void RunToolbarCustomizationPalette (NSObject sender); - + [Export ("showsToolbarButton")] bool ShowsToolbarButton { get; set; } [Export ("registerForDraggedTypes:")] void RegisterForDraggedTypes (string [] newTypes); - + [Export ("unregisterDraggedTypes")] void UnregisterDraggedTypes (); - + [Export ("windowRef")] IntPtr WindowRef { get; } @@ -21385,7 +21334,7 @@ namespace AppKit { // This one comes from the NSUserInterfaceRestoration category ('@interface NSWindow (NSUserInterfaceRestoration)') [Export ("restorable")] - bool Restorable { [Bind ("isRestorable")]get; set; } + bool Restorable { [Bind ("isRestorable")] get; set; } // This one comes from the NSUserInterfaceRestoration category ('@interface NSWindow (NSUserInterfaceRestoration)') [Export ("restorationClass")] @@ -21546,115 +21495,115 @@ namespace AppKit { NSString DidChangeBackingPropertiesNotification { get; } // 10.10 - [Mac (10,10)] + [Mac (10, 10)] [Export ("titleVisibility")] NSWindowTitleVisibility TitleVisibility { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("titlebarAppearsTransparent")] bool TitlebarAppearsTransparent { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentLayoutRect")] CGRect ContentLayoutRect { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentLayoutGuide")] NSObject ContentLayoutGuide { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("titlebarAccessoryViewControllers", ArgumentSemantic.Copy)] // Header says this is a r/w property, but it fails at runtime. // -[NSWindow setTitlebarAccessoryViewControllers:]: unrecognized selector sent to instance 0x6180001e0f00 NSTitlebarAccessoryViewController [] TitlebarAccessoryViewControllers { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("addTitlebarAccessoryViewController:")] void AddTitlebarAccessoryViewController (NSTitlebarAccessoryViewController childViewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("insertTitlebarAccessoryViewController:atIndex:")] void InsertTitlebarAccessoryViewController (NSTitlebarAccessoryViewController childViewController, nint index); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeTitlebarAccessoryViewControllerAtIndex:")] void RemoveTitlebarAccessoryViewControllerAtIndex (nint index); - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("windowWithContentViewController:")] NSWindow GetWindowWithContentViewController (NSViewController contentViewController); - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentViewController", ArgumentSemantic.Strong)] NSViewController ContentViewController { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("trackEventsMatchingMask:timeout:mode:handler:")] void TrackEventsMatching (NSEventMask mask, double timeout, string mode, NSWindowTrackEventsMatchingCompletionHandler trackingHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("sheets", ArgumentSemantic.Copy)] NSWindow [] Sheets { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("sheetParent", ArgumentSemantic.Retain)] NSWindow SheetParent { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("occlusionState")] NSWindowOcclusionState OcclusionState { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("beginSheet:completionHandler:")] void BeginSheet (NSWindow sheetWindow, Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("beginCriticalSheet:completionHandler:")] void BeginCriticalSheet (NSWindow sheetWindow, Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("endSheet:")] void EndSheet (NSWindow sheetWindow); - [Mac (10,9)] + [Mac (10, 9)] [Export ("endSheet:returnCode:")] void EndSheet (NSWindow sheetWindow, NSModalResponse returnCode); #if !NET [Obsolete ("Use the EndSheet(NSWindow,NSModalResponse) overload.")] - [Mac (10,9)] + [Mac (10, 9)] [Wrap ("EndSheet (sheetWindow, (NSModalResponse)(long)returnCode)", IsVirtual = true)] void EndSheet (NSWindow sheetWindow, nint returnCode); #endif - - [Mac (10,11)] + + [Mac (10, 11)] [Export ("minFullScreenContentSize", ArgumentSemantic.Assign)] CGSize MinFullScreenContentSize { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("maxFullScreenContentSize", ArgumentSemantic.Assign)] CGSize MaxFullScreenContentSize { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("performWindowDragWithEvent:")] - void PerformWindowDrag(NSEvent theEvent); + void PerformWindowDrag (NSEvent theEvent); - [Mac (10,12)] + [Mac (10, 12)] [Export ("canRepresentDisplayGamut:")] bool CanRepresentDisplayGamut (NSDisplayGamut displayGamut); - [Mac (10,12)] + [Mac (10, 12)] [Export ("convertPointToScreen:")] CGPoint ConvertPointToScreen (CGPoint point); - [Mac (10,12)] + [Mac (10, 12)] [Export ("convertPointFromScreen:")] CGPoint ConvertPointFromScreen (CGPoint point); - [Mac (10,14)] + [Mac (10, 14)] [Export ("convertPointToBacking:")] CGPoint ConvertPointToBacking (CGPoint point); - [Mac (10,14)] + [Mac (10, 14)] [Export ("convertPointFromBacking:")] CGPoint ConvertPointFromBacking (CGPoint point); @@ -21676,7 +21625,7 @@ namespace AppKit { NSTitlebarSeparatorStyle TitlebarSeparatorStyle { get; set; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSViewController))] interface NSTitlebarAccessoryViewController : NSAnimationDelegate, NSAnimatablePropertyContainer { @@ -21701,16 +21650,16 @@ namespace AppKit { [Export ("viewDidDisappear")] void ViewDidDisappear (); - [Mac (10,12)] + [Mac (10, 12)] [Export ("hidden")] bool IsHidden { [Bind ("isHidden")] get; set; } - [Mac (11,0)] + [Mac (11, 0)] [Export ("automaticallyAdjustsSize")] bool AutomaticallyAdjustsSize { get; set; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [BaseType (typeof (NSView))] interface NSVisualEffectView { @@ -21744,10 +21693,10 @@ namespace AppKit { [Export ("emphasized")] bool Emphasized { [Bind ("isEmphasized")] get; set; } } - + [NoMacCatalyst] delegate void NSWindowCompletionHandler (NSWindow window, NSError error); - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] @@ -21765,75 +21714,75 @@ namespace AppKit { interface NSWindowController : NSCoding, NSSeguePerforming { [DesignatedInitializer] [Export ("initWithWindow:")] - NativeHandle Constructor (NSWindow window); - + NativeHandle Constructor (NSWindow window); + [Export ("initWithWindowNibName:")] - NativeHandle Constructor (string windowNibName); - + NativeHandle Constructor (string windowNibName); + [Export ("initWithWindowNibName:owner:")] - NativeHandle Constructor (string windowNibName, NSObject owner); - + NativeHandle Constructor (string windowNibName, NSObject owner); + [Export ("windowNibName")] string WindowNibName { get; } - + [Export ("windowNibPath")] string WindowNibPath { get; } - + [Export ("owner")] NSObject Owner { get; } - + [Export ("windowFrameAutosaveName")] string WindowFrameAutosaveName { get; set; } - + [Export ("shouldCascadeWindows")] - bool ShouldCascadeWindows { get; set; } - + bool ShouldCascadeWindows { get; set; } + [Export ("document")] [NullAllowed] NSDocument Document { get; set; } - + [Export ("setDocumentEdited:")] void SetDocumentEdited (bool dirtyFlag); - + [Export ("shouldCloseDocument")] - bool ShouldCloseDocument { get; set; } - + bool ShouldCloseDocument { get; set; } + [Export ("window", ArgumentSemantic.Retain)] NSWindow Window { get; set; } - + [Export ("synchronizeWindowTitleWithDocumentName")] void SynchronizeWindowTitleWithDocumentName (); - + [Export ("windowTitleForDocumentDisplayName:")] - string WindowTitleForDocumentDisplayName (string displayName); - + string WindowTitleForDocumentDisplayName (string displayName); + [Export ("close")] void Close (); - + [Export ("showWindow:")] void ShowWindow ([NullAllowed] NSObject sender); - + [Export ("isWindowLoaded")] - bool IsWindowLoaded { get; } - + bool IsWindowLoaded { get; } + [Export ("windowWillLoad")] void WindowWillLoad (); - + [Export ("windowDidLoad")] void WindowDidLoad (); - + [Export ("loadWindow")] void LoadWindow (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentViewController", ArgumentSemantic.Retain)] NSViewController ContentViewController { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("storyboard", ArgumentSemantic.Strong)] NSStoryboard Storyboard { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("dismissController:")] void DismissController (NSObject sender); } @@ -21845,85 +21794,85 @@ namespace AppKit { interface NSWindowDelegate { [Export ("windowShouldClose:"), DelegateName ("NSObjectPredicate"), DefaultValue (true)] bool WindowShouldClose (NSObject sender); - + [Export ("windowWillReturnFieldEditor:toObject:"), DelegateName ("NSWindowClient"), DefaultValue (null)] - NSObject WillReturnFieldEditor (NSWindow sender, NSObject client); - + NSObject WillReturnFieldEditor (NSWindow sender, NSObject client); + [Export ("windowWillResize:toSize:"), DelegateName ("NSWindowResize"), DefaultValueFromArgument ("toFrameSize")] CGSize WillResize (NSWindow sender, CGSize toFrameSize); - + [Export ("windowWillUseStandardFrame:defaultFrame:"), DelegateName ("NSWindowFrame"), DefaultValueFromArgument ("newFrame")] CGRect WillUseStandardFrame (NSWindow window, CGRect newFrame); - + [Export ("windowShouldZoom:toFrame:"), DelegateName ("NSWindowFramePredicate"), DefaultValue (true)] - bool ShouldZoom (NSWindow window, CGRect newFrame); - + bool ShouldZoom (NSWindow window, CGRect newFrame); + [Export ("windowWillReturnUndoManager:"), DelegateName ("NSWindowUndoManager"), DefaultValue (null)] - NSUndoManager WillReturnUndoManager (NSWindow window); - + NSUndoManager WillReturnUndoManager (NSWindow window); + [Export ("window:willPositionSheet:usingRect:"), DelegateName ("NSWindowSheetRect"), DefaultValueFromArgument ("usingRect")] - CGRect WillPositionSheet (NSWindow window, NSWindow sheet, CGRect usingRect); - + CGRect WillPositionSheet (NSWindow window, NSWindow sheet, CGRect usingRect); + [Export ("window:shouldPopUpDocumentPathMenu:"), DelegateName ("NSWindowMenu"), DefaultValue (true)] - bool ShouldPopUpDocumentPathMenu (NSWindow window, NSMenu menu); - + bool ShouldPopUpDocumentPathMenu (NSWindow window, NSMenu menu); + [Export ("window:shouldDragDocumentWithEvent:from:withPasteboard:"), DelegateName ("NSWindowDocumentDrag"), DefaultValue (true)] - bool ShouldDragDocumentWithEvent (NSWindow window, NSEvent theEvent, CGPoint dragImageLocation, NSPasteboard withPasteboard); - + bool ShouldDragDocumentWithEvent (NSWindow window, NSEvent theEvent, CGPoint dragImageLocation, NSPasteboard withPasteboard); + [Export ("windowDidResize:"), EventArgs ("NSNotification")] - void DidResize (NSNotification notification); - + void DidResize (NSNotification notification); + [Export ("windowDidExpose:"), EventArgs ("NSNotification")] - void DidExpose (NSNotification notification); - + void DidExpose (NSNotification notification); + [Export ("windowWillMove:"), EventArgs ("NSNotification")] - void WillMove (NSNotification notification); - + void WillMove (NSNotification notification); + [Export ("windowDidMove:"), EventArgs ("NSNotification")] - void DidMove (NSNotification notification); - + void DidMove (NSNotification notification); + [Export ("windowDidBecomeKey:"), EventArgs ("NSNotification")] - void DidBecomeKey (NSNotification notification); - + void DidBecomeKey (NSNotification notification); + [Export ("windowDidResignKey:"), EventArgs ("NSNotification")] - void DidResignKey (NSNotification notification); - + void DidResignKey (NSNotification notification); + [Export ("windowDidBecomeMain:"), EventArgs ("NSNotification")] - void DidBecomeMain (NSNotification notification); - + void DidBecomeMain (NSNotification notification); + [Export ("windowDidResignMain:"), EventArgs ("NSNotification")] - void DidResignMain (NSNotification notification); - + void DidResignMain (NSNotification notification); + [Export ("windowWillClose:"), EventArgs ("NSNotification")] - void WillClose (NSNotification notification); - + void WillClose (NSNotification notification); + [Export ("windowWillMiniaturize:"), EventArgs ("NSNotification")] - void WillMiniaturize (NSNotification notification); - + void WillMiniaturize (NSNotification notification); + [Export ("windowDidMiniaturize:"), EventArgs ("NSNotification")] - void DidMiniaturize (NSNotification notification); - + void DidMiniaturize (NSNotification notification); + [Export ("windowDidDeminiaturize:"), EventArgs ("NSNotification")] - void DidDeminiaturize (NSNotification notification); - + void DidDeminiaturize (NSNotification notification); + [Export ("windowDidUpdate:"), EventArgs ("NSNotification")] - void DidUpdate (NSNotification notification); - + void DidUpdate (NSNotification notification); + [Export ("windowDidChangeScreen:"), EventArgs ("NSNotification")] - void DidChangeScreen (NSNotification notification); - + void DidChangeScreen (NSNotification notification); + [Export ("windowDidChangeScreenProfile:"), EventArgs ("NSNotification")] void DidChangeScreenProfile (NSNotification notification); - + [Export ("windowWillBeginSheet:"), EventArgs ("NSNotification")] void WillBeginSheet (NSNotification notification); - + [Export ("windowDidEndSheet:"), EventArgs ("NSNotification")] void DidEndSheet (NSNotification notification); - + [Export ("windowWillStartLiveResize:"), EventArgs ("NSNotification")] void WillStartLiveResize (NSNotification notification); - + [Export ("windowDidEndLiveResize:"), EventArgs ("NSNotification")] void DidEndLiveResize (NSNotification notification); @@ -21934,8 +21883,8 @@ namespace AppKit { void DidEnterFullScreen (NSNotification notification); [Export ("windowWillExitFullScreen:"), EventArgs ("NSNotification")] - void WillExitFullScreen (NSNotification notification); - + void WillExitFullScreen (NSNotification notification); + [Export ("windowDidExitFullScreen:"), EventArgs ("NSNotification")] void DidExitFullScreen (NSNotification notification); @@ -21944,43 +21893,43 @@ namespace AppKit { [Export ("windowDidFailToExitFullScreen:"), EventArgs ("NSWindow")] void DidFailToExitFullScreen (NSWindow window); - + [Export ("window:willUseFullScreenContentSize:"), DelegateName ("NSWindowSize"), DefaultValueFromArgument ("proposedSize")] - CGSize WillUseFullScreenContentSize (NSWindow window, CGSize proposedSize); - + CGSize WillUseFullScreenContentSize (NSWindow window, CGSize proposedSize); + [Export ("window:willUseFullScreenPresentationOptions:"), DelegateName ("NSWindowApplicationPresentationOptions"), DefaultValueFromArgument ("proposedOptions")] - NSApplicationPresentationOptions WillUseFullScreenPresentationOptions (NSWindow window, NSApplicationPresentationOptions proposedOptions); - + NSApplicationPresentationOptions WillUseFullScreenPresentationOptions (NSWindow window, NSApplicationPresentationOptions proposedOptions); + [Export ("customWindowsToEnterFullScreenForWindow:"), DelegateName ("NSWindowWindows"), DefaultValue (null)] - NSWindow[] CustomWindowsToEnterFullScreen (NSWindow window); + NSWindow [] CustomWindowsToEnterFullScreen (NSWindow window); [Export ("customWindowsToExitFullScreenForWindow:"), DelegateName ("NSWindowWindows"), DefaultValue (null)] - NSWindow[] CustomWindowsToExitFullScreen (NSWindow window); + NSWindow [] CustomWindowsToExitFullScreen (NSWindow window); - [Export ("window:startCustomAnimationToEnterFullScreenWithDuration:"), EventArgs("NSWindowDuration")] - void StartCustomAnimationToEnterFullScreen (NSWindow window, double duration); + [Export ("window:startCustomAnimationToEnterFullScreenWithDuration:"), EventArgs ("NSWindowDuration")] + void StartCustomAnimationToEnterFullScreen (NSWindow window, double duration); - [Export ("window:startCustomAnimationToExitFullScreenWithDuration:"), EventArgs("NSWindowDuration")] - void StartCustomAnimationToExitFullScreen (NSWindow window, double duration); + [Export ("window:startCustomAnimationToExitFullScreenWithDuration:"), EventArgs ("NSWindowDuration")] + void StartCustomAnimationToExitFullScreen (NSWindow window, double duration); [Export ("window:willEncodeRestorableState:"), EventArgs ("NSWindowCoder")] - void WillEncodeRestorableState(NSWindow window, NSCoder coder); - + void WillEncodeRestorableState (NSWindow window, NSCoder coder); + [Export ("window:didDecodeRestorableState:"), EventArgs ("NSWindowCoder")] - void DidDecodeRestorableState(NSWindow window, NSCoder coder); - + void DidDecodeRestorableState (NSWindow window, NSCoder coder); + [Export ("window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:"), DelegateName ("NSWindowSizeSize"), DefaultValueFromArgument ("maxPreferredSize")] - CGSize WillResizeForVersionBrowser(NSWindow window, CGSize maxPreferredSize, CGSize maxAllowedSize); - + CGSize WillResizeForVersionBrowser (NSWindow window, CGSize maxPreferredSize, CGSize maxAllowedSize); + [Export ("windowWillEnterVersionBrowser:"), EventArgs ("NSNotification")] void WillEnterVersionBrowser (NSNotification notification); - + [Export ("windowDidEnterVersionBrowser:"), EventArgs ("NSNotification")] void DidEnterVersionBrowser (NSNotification notification); - + [Export ("windowWillExitVersionBrowser:"), EventArgs ("NSNotification")] void WillExitVersionBrowser (NSNotification notification); - + [Export ("windowDidExitVersionBrowser:"), EventArgs ("NSNotification")] void DidExitVersionBrowser (NSNotification notification); @@ -21992,7 +21941,7 @@ namespace AppKit { interface NSWorkspaceRenamedEventArgs { [Export ("NSWorkspaceVolumeLocalizedNameKey")] string VolumeLocalizedName { get; } - + [Export ("NSWorkspaceVolumeURLKey")] NSUrl VolumeUrl { get; } @@ -22007,7 +21956,7 @@ namespace AppKit { interface NSWorkspaceMountEventArgs { [Export ("NSWorkspaceVolumeLocalizedNameKey")] string VolumeLocalizedName { get; } - + [Export ("NSWorkspaceVolumeURLKey")] NSUrl VolumeUrl { get; } } @@ -22023,219 +21972,219 @@ namespace AppKit { [Export ("NSOperationNumber")] nint FileType { get; } } - + delegate void NSWorkspaceUrlHandler (NSDictionary newUrls, NSError error); - + [NoMacCatalyst] [BaseType (typeof (NSObject))] interface NSWorkspace : NSWorkspaceAccessibilityExtensions { [Static] [Export ("sharedWorkspace"), ThreadSafe] NSWorkspace SharedWorkspace { get; } - + [Export ("notificationCenter"), ThreadSafe] NSNotificationCenter NotificationCenter { get; } - + [Export ("openFile:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'OpenUrl' method instead.")] bool OpenFile (string fullPath); - + [Export ("openFile:withApplication:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] bool OpenFile (string fullPath, [NullAllowed] string appName); - + [Export ("openFile:withApplication:andDeactivate:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] bool OpenFile (string fullPath, [NullAllowed] string appName, bool deactivate); - + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSWorkspace.OpenUrl' instead.")] [Export ("openFile:fromImage:at:inView:"), ThreadSafe] bool OpenFile (string fullPath, NSImage anImage, CGPoint point, NSView aView); - + [Export ("openURL:"), ThreadSafe] bool OpenUrl (NSUrl url); - + [Export ("launchApplication:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] bool LaunchApplication (string appName); - + [Export ("launchApplicationAtURL:options:configuration:error:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] NSRunningApplication LaunchApplication (NSUrl url, NSWorkspaceLaunchOptions options, NSDictionary configuration, out NSError error); - + [Export ("launchApplication:showIcon:autolaunch:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] bool LaunchApplication (string appName, bool showIcon, bool autolaunch); - + [Export ("fullPathForApplication:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'UrlForApplication' method instead.")] [return: NullAllowed] string FullPathForApplication (string appName); - + [Export ("selectFile:inFileViewerRootedAtPath:"), ThreadSafe] bool SelectFile (string fullPath, string rootFullPath); - + [Export ("activateFileViewerSelectingURLs:"), ThreadSafe] - void ActivateFileViewer (NSUrl[] fileUrls); - + void ActivateFileViewer (NSUrl [] fileUrls); + [Export ("showSearchResultsForQueryString:"), ThreadSafe] - bool ShowSearchResults (string queryString ); - + bool ShowSearchResults (string queryString); + [Export ("noteFileSystemChanged:")] void NoteFileSystemChanged (string path); - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSWorkspace.UrlForApplication' or 'NSUrl.GetResourceValue' instead.")] [Export ("getInfoForFile:application:type:"), ThreadSafe] bool GetInfo (string fullPath, out string appName, out string fileType); - + [Export ("isFilePackageAtPath:"), ThreadSafe] bool IsFilePackage (string fullPath); - + [Export ("iconForFile:"), ThreadSafe] NSImage IconForFile (string fullPath); - + [Export ("iconForFiles:"), ThreadSafe] - NSImage IconForFiles (string[] fullPaths); - + NSImage IconForFiles (string [] fullPaths); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSWorkspace.GetIcon' instead.")] [Export ("iconForFileType:"), ThreadSafe, Internal] NSImage IconForFileType (IntPtr fileTypeOrTypeCode); - + [Export ("setIcon:forFile:options:"), ThreadSafe] bool SetIconforFile (NSImage image, string fullPath, NSWorkspaceIconCreationOptions options); - + [Export ("fileLabels"), ThreadSafe] - string[] FileLabels { get ; } - + string [] FileLabels { get; } + [Export ("fileLabelColors"), ThreadSafe] - NSColor[] FileLabelColors { get; } - + NSColor [] FileLabelColors { get; } + [Export ("recycleURLs:completionHandler:"), ThreadSafe] void RecycleUrls (NSArray urls, NSWorkspaceUrlHandler completionHandler); - + [Export ("duplicateURLs:completionHandler:"), ThreadSafe] void DuplicateUrls (NSArray urls, NSWorkspaceUrlHandler completionHandler); - + [Export ("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:"), ThreadSafe] bool GetFileSystemInfo (string fullPath, out bool removableFlag, out bool writableFlag, out bool unmountableFlag, out string description, out string fileSystemType); - + [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("performFileOperation:source:destination:files:tag:"), ThreadSafe] - bool PerformFileOperation (NSString workspaceOperation, string source, string destination, string[] files, out nint tag); - + bool PerformFileOperation (NSString workspaceOperation, string source, string destination, string [] files, out nint tag); + [Export ("unmountAndEjectDeviceAtPath:"), ThreadSafe] - bool UnmountAndEjectDevice(string path); + bool UnmountAndEjectDevice (string path); [Export ("unmountAndEjectDeviceAtURL:error:"), ThreadSafe] bool UnmountAndEjectDevice (NSUrl url, out NSError error); - + [Export ("extendPowerOffBy:")] nint ExtendPowerOffBy (nint requested); - + [Export ("hideOtherApplications")] void HideOtherApplications (); - + [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("mountedLocalVolumePaths")] - string[] MountedLocalVolumePaths { get; } - + string [] MountedLocalVolumePaths { get; } + [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("mountedRemovableMedia")] - string[] MountedRemovableMedia { get; } - + string [] MountedRemovableMedia { get; } + [Export ("URLForApplicationWithBundleIdentifier:"), ThreadSafe] - NSUrl UrlForApplication (string bundleIdentifier ); - + NSUrl UrlForApplication (string bundleIdentifier); + [Export ("URLForApplicationToOpenURL:"), ThreadSafe] - NSUrl UrlForApplication (NSUrl url ); + NSUrl UrlForApplication (NSUrl url); - [Mac (12,0)] + [Mac (12, 0)] [Export ("URLsForApplicationsWithBundleIdentifier:")] - NSUrl[] GetUrlsForApplications (string bundleIdentifier); + NSUrl [] GetUrlsForApplications (string bundleIdentifier); - [Mac (12,0)] + [Mac (12, 0)] [Export ("URLsForApplicationsToOpenURL:")] - NSUrl[] GetUrlsForApplications (NSUrl url); + NSUrl [] GetUrlsForApplications (NSUrl url); [Async] - [Mac (12,0)] + [Mac (12, 0)] [Export ("setDefaultApplicationAtURL:toOpenContentTypeOfFileAtURL:completionHandler:")] void SetDefaultApplicationToOpenContentType (NSUrl applicationUrl, NSUrl url, [NullAllowed] Action completionHandler); [Async] - [Mac (12,0)] + [Mac (12, 0)] [Export ("setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:")] void SetDefaultApplicationToOpenUrls (NSUrl applicationUrl, string urlScheme, [NullAllowed] Action completionHandler); [Async] - [Mac (12,0)] + [Mac (12, 0)] [Export ("setDefaultApplicationAtURL:toOpenFileAtURL:completionHandler:")] void SetDefaultApplicationToOpenFile (NSUrl applicationUrl, NSUrl url, [NullAllowed] Action completionHandler); - [Mac (12,0)] + [Mac (12, 0)] [Export ("URLForApplicationToOpenContentType:")] [return: NullAllowed] NSUrl GetUrlForApplicationToOpenContentType (UTType contentType); - [Mac (12,0)] + [Mac (12, 0)] [Export ("URLsForApplicationsToOpenContentType:")] - NSUrl[] GetUrlsForApplicationsToOpenContentType (UTType contentType); + NSUrl [] GetUrlsForApplicationsToOpenContentType (UTType contentType); [Async] - [Mac (12,0)] + [Mac (12, 0)] [Export ("setDefaultApplicationAtURL:toOpenContentType:completionHandler:")] void SetDefaultApplicationToOpenContentType (NSUrl applicationUrl, UTType contentType, [NullAllowed] Action completionHandler); - + [Export ("absolutePathForAppBundleWithIdentifier:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'UrlForApplication' method instead.")] [return: NullAllowed] string AbsolutePathForAppBundle (string bundleIdentifier); - + [Export ("launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15)] bool LaunchApp (string bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, IntPtr identifier); - + [Internal] [Export ("openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:"), ThreadSafe] - bool _OpenUrls (NSUrl[] urls, string bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, [NullAllowed] string[] identifiers); - + bool _OpenUrls (NSUrl [] urls, string bundleIdentifier, NSWorkspaceLaunchOptions options, NSAppleEventDescriptor descriptor, [NullAllowed] string [] identifiers); + [Deprecated (PlatformName.MacOSX, 10, 7, message: "Use 'NSWorkspace.RunningApplications' instead.")] [Export ("launchedApplications")] NSDictionary [] LaunchedApplications { get; } - + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSWorkspace.FrontmostApplication' instead.")] [Export ("activeApplication")] NSDictionary ActiveApplication { get; } - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSUrl.GetResourceValue' instead.")] [Export ("typeOfFile:error:"), ThreadSafe] string TypeOfFile (string absoluteFilePath, out NSError outError); - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.LocalizedDescription' instead.")] [Export ("localizedDescriptionForType:"), ThreadSafe] string LocalizedDescription (string typeName); - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.PreferredFilenameExtension' instead.")] [Export ("preferredFilenameExtensionForType:"), ThreadSafe] string PreferredFilenameExtension (string typeName); - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Compare against 'UTType.GetTypes' instead.")] [Export ("filenameExtension:isValidForType:"), ThreadSafe] bool IsFilenameExtensionValid (string filenameExtension, string typeName); - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.ConformsToType' instead.")] [Export ("type:conformsToType:"), ThreadSafe] bool TypeConformsTo (string firstTypeName, string secondTypeName); - + [Export ("setDesktopImageURL:forScreen:options:error:")] - bool SetDesktopImageUrl (NSUrl url, NSScreen screen, NSDictionary options, NSError error ); - + bool SetDesktopImageUrl (NSUrl url, NSScreen screen, NSDictionary options, NSError error); + [Export ("desktopImageURLForScreen:")] - NSUrl DesktopImageUrl (NSScreen screen ); - + NSUrl DesktopImageUrl (NSScreen screen); + [Export ("desktopImageOptionsForScreen:")] - NSDictionary DesktopImageOptions (NSScreen screen); - + NSDictionary DesktopImageOptions (NSScreen screen); + [Export ("runningApplications"), ThreadSafe] NSRunningApplication [] RunningApplications { get; } @@ -22252,23 +22201,23 @@ namespace AppKit { [Field ("NSWorkspaceWillSleepNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString WillSleepNotification { get; } - + [Field ("NSWorkspaceDidWakeNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString DidWakeNotification { get; } - + [Field ("NSWorkspaceScreensDidSleepNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString ScreensDidSleepNotification { get; } - + [Field ("NSWorkspaceScreensDidWakeNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString ScreensDidWakeNotification { get; } - + [Field ("NSWorkspaceSessionDidBecomeActiveNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString SessionDidBecomeActiveNotification { get; } - + [Field ("NSWorkspaceSessionDidResignActiveNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString SessionDidResignActiveNotification { get; } @@ -22280,11 +22229,11 @@ namespace AppKit { [Field ("NSWorkspaceDidMountNotification")] [Notification (typeof (NSWorkspaceMountEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidMountNotification { get; } - + [Field ("NSWorkspaceDidUnmountNotification")] [Notification (typeof (NSWorkspaceMountEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidUnmountNotification { get; } - + [Field ("NSWorkspaceWillUnmountNotification")] [Notification (typeof (NSWorkspaceMountEventArgs), "SharedWorkspace.NotificationCenter")] NSString WillUnmountNotification { get; } @@ -22296,31 +22245,31 @@ namespace AppKit { [Field ("NSWorkspaceDidLaunchApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidLaunchApplicationNotification { get; } - + [Field ("NSWorkspaceDidTerminateApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidTerminateApplicationNotification { get; } - + [Field ("NSWorkspaceDidHideApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidHideApplicationNotification { get; } - + [Field ("NSWorkspaceDidUnhideApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidUnhideApplicationNotification { get; } - + [Field ("NSWorkspaceDidActivateApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidActivateApplicationNotification { get; } - + [Field ("NSWorkspaceDidDeactivateApplicationNotification")] [Notification (typeof (NSWorkspaceApplicationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidDeactivateApplicationNotification { get; } - + [Field ("NSWorkspaceDidPerformFileOperationNotification")] [Notification (typeof (NSWorkspaceFileOperationEventArgs), "SharedWorkspace.NotificationCenter")] NSString DidPerformFileOperationNotification { get; } - + [Field ("NSWorkspaceDidChangeFileLabelsNotification")] [Notification ("SharedWorkspace.NotificationCenter")] NSString DidChangeFileLabelsNotification { get; } @@ -22340,7 +22289,7 @@ namespace AppKit { [Field ("NSWorkspaceLaunchConfigurationArchitecture")] NSString LaunchConfigurationArchitecture { get; } - + // // File operations // @@ -22354,17 +22303,17 @@ namespace AppKit { [Field ("NSWorkspaceMoveOperation")] NSString OperationMove { get; } - + [Field ("NSWorkspaceCopyOperation")] NSString OperationCopy { get; } - + [Field ("NSWorkspaceLinkOperation")] NSString OperationLink { get; } - + [Field ("NSWorkspaceDestroyOperation")] NSString OperationDestroy { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("openURL:options:configuration:error:")] [Deprecated (PlatformName.MacOSX, 10, 15)] [return: NullAllowed] @@ -22374,7 +22323,7 @@ namespace AppKit { NSRunningApplication OpenURL (NSUrl url, NSWorkspaceLaunchOptions options, NSDictionary configuration, out NSError error); #endif - [Mac (10,10)] + [Mac (10, 10)] [Export ("openURLs:withApplicationAtURL:options:configuration:error:")] [Deprecated (PlatformName.MacOSX, 10, 15)] [return: NullAllowed] @@ -22389,33 +22338,33 @@ namespace AppKit { [Notification] NSString DisplayOptionsDidChangeNotification { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("requestAuthorizationOfType:completionHandler:")] void RequestAuthorization (NSWorkspaceAuthorizationType type, Action completionHandler); - [Mac (10,15)] + [Mac (10, 15)] [Async] [Export ("openApplicationAtURL:configuration:completionHandler:")] void OpenApplication (NSUrl applicationUrl, NSWorkspaceOpenConfiguration configuration, [NullAllowed] Action completionHandler); - [Mac (10,15)] + [Mac (10, 15)] [Async] [Export ("openURL:configuration:completionHandler:")] void OpenUrl (NSUrl url, NSWorkspaceOpenConfiguration configuration, [NullAllowed] Action completionHandler); - [Mac (10,15)] + [Mac (10, 15)] [Async] [Export ("openURLs:withApplicationAtURL:configuration:completionHandler:")] - void OpenUrls (NSUrl[] urls, NSUrl applicationUrl, NSWorkspaceOpenConfiguration configuration, [NullAllowed] Action completionHandler); + void OpenUrls (NSUrl [] urls, NSUrl applicationUrl, NSWorkspaceOpenConfiguration configuration, [NullAllowed] Action completionHandler); - [Mac (11,0)] + [Mac (11, 0)] [Export ("iconForContentType:")] NSImage GetIcon (UTType contentType); } - - [Mac (10,14)] + + [Mac (10, 14)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSWorkspaceAuthorization { } @@ -22425,80 +22374,81 @@ namespace AppKit { [ThreadSafe] // NSRunningApplication is documented to be thread-safe. partial interface NSRunningApplication { [Export ("terminated")] - bool Terminated { [Bind ("isTerminated")] get; } - + bool Terminated { [Bind ("isTerminated")] get; } + [Export ("finishedLaunching")] - bool FinishedLaunching { [Bind ("isFinishedLaunching")] get; } - + bool FinishedLaunching { [Bind ("isFinishedLaunching")] get; } + [Export ("hidden")] - bool Hidden { [Bind ("isHidden")] get; } - + bool Hidden { [Bind ("isHidden")] get; } + [Export ("active")] - bool Active { [Bind ("isActive")] get; } + bool Active { [Bind ("isActive")] get; } [Export ("activationPolicy")] - NSApplicationActivationPolicy ActivationPolicy { get; } + NSApplicationActivationPolicy ActivationPolicy { get; } [NullAllowed] [Export ("localizedName", ArgumentSemantic.Copy)] - string LocalizedName { get; } + string LocalizedName { get; } [NullAllowed] [Export ("bundleIdentifier", ArgumentSemantic.Copy)] - string BundleIdentifier { get; } + string BundleIdentifier { get; } [NullAllowed] [Export ("bundleURL", ArgumentSemantic.Copy)] - NSUrl BundleUrl { get; } + NSUrl BundleUrl { get; } [NullAllowed] [Export ("executableURL", ArgumentSemantic.Copy)] - NSUrl ExecutableUrl { get; } + NSUrl ExecutableUrl { get; } [Export ("processIdentifier")] - int ProcessIdentifier { get; } /* pid_t = int */ + int ProcessIdentifier { get; } /* pid_t = int */ [NullAllowed] [Export ("launchDate", ArgumentSemantic.Copy)] - NSDate LaunchDate { get; } - + NSDate LaunchDate { get; } + [NullAllowed] [Export ("icon", ArgumentSemantic.Strong)] - NSImage Icon { get; } - + NSImage Icon { get; } + [Export ("executableArchitecture")] - nint ExecutableArchitecture { get; } - + nint ExecutableArchitecture { get; } + [Export ("hide")] bool Hide (); - + [Export ("unhide")] bool Unhide (); - + [Export ("activateWithOptions:")] bool Activate (NSApplicationActivationOptions options); - + [Export ("terminate")] bool Terminate (); - + [Export ("forceTerminate")] bool ForceTerminate (); - + [Static] [Export ("runningApplicationsWithBundleIdentifier:")] - NSRunningApplication[] GetRunningApplications (string bundleIdentifier); - + NSRunningApplication [] GetRunningApplications (string bundleIdentifier); + [Static] [Export ("runningApplicationWithProcessIdentifier:")] NSRunningApplication GetRunningApplication (int /* pid_t = int */ pid); - - [Static][ThreadSafe] + + [Static] + [ThreadSafe] [Export ("currentApplication")] - NSRunningApplication CurrentApplication { get ; } + NSRunningApplication CurrentApplication { get; } [Export ("ownsMenuBar")] bool OwnsMenuBar { get; } - } + } [NoMacCatalyst] [BaseType (typeof (NSControl))] @@ -22525,9 +22475,8 @@ namespace AppKit { } [NoMacCatalyst] - [BaseType (typeof(NSActionCell))] - interface NSStepperCell - { + [BaseType (typeof (NSActionCell))] + interface NSStepperCell { [Export ("minValue")] double MinValue { get; set; } @@ -22551,33 +22500,33 @@ namespace AppKit { double MatchForPredicate (NSPredicate predicate); [Export ("templateViews")] - NSObject[] TemplateViews { get; } + NSObject [] TemplateViews { get; } [Export ("setPredicate:")] void SetPredicate (NSPredicate predicate); [Export ("predicateWithSubpredicates:")] - NSPredicate PredicateWithSubpredicates (NSPredicate[] subpredicates); - + NSPredicate PredicateWithSubpredicates (NSPredicate [] subpredicates); + [Export ("displayableSubpredicatesOfPredicate:")] - NSPredicate[] DisplayableSubpredicatesOfPredicate (NSPredicate predicate); + NSPredicate [] DisplayableSubpredicatesOfPredicate (NSPredicate predicate); [Export ("initWithLeftExpressions:rightExpressions:modifier:operators:options:")] //NSObject InitWithLeftExpressionsrightExpressionsmodifieroperatorsoptions (NSArray leftExpressions, NSArray rightExpressions, NSComparisonPredicateModifier modifier, NSArray operators, uint options); - NativeHandle Constructor (NSExpression[] leftExpressions, NSExpression[] rightExpressions, NSComparisonPredicateModifier modifier, NSObject[] operators, NSComparisonPredicateOptions options); + NativeHandle Constructor (NSExpression [] leftExpressions, NSExpression [] rightExpressions, NSComparisonPredicateModifier modifier, NSObject [] operators, NSComparisonPredicateOptions options); [Export ("initWithLeftExpressions:rightExpressionAttributeType:modifier:operators:options:")] //NSObject InitWithLeftExpressionsrightExpressionAttributeTypemodifieroperatorsoptions (NSArray leftExpressions, NSAttributeType attributeType, NSComparisonPredicateModifier modifier, NSArray operators, uint options); - NativeHandle Constructor (NSExpression[] leftExpressions, NSAttributeType attributeType, NSComparisonPredicateModifier modifier, NSObject[] operators, NSComparisonPredicateOptions options); + NativeHandle Constructor (NSExpression [] leftExpressions, NSAttributeType attributeType, NSComparisonPredicateModifier modifier, NSObject [] operators, NSComparisonPredicateOptions options); [Export ("initWithCompoundTypes:")] - NativeHandle Constructor (NSNumber[] compoundTypes); + NativeHandle Constructor (NSNumber [] compoundTypes); [Export ("leftExpressions")] - NSExpression[] LeftExpressions { get; } + NSExpression [] LeftExpressions { get; } [Export ("rightExpressions")] - NSExpression[] RightExpressions { get; } + NSExpression [] RightExpressions { get; } [Export ("rightExpressionAttributeType")] NSAttributeType RightExpressionAttributeType { get; } @@ -22586,26 +22535,25 @@ namespace AppKit { NSComparisonPredicateModifier Modifier { get; } [Export ("operators")] - NSObject[] Operators { get; } + NSObject [] Operators { get; } [Export ("options")] NSComparisonPredicateOptions Options { get; } [Export ("compoundTypes")] - NSNumber[] CompoundTypes { get; } + NSNumber [] CompoundTypes { get; } [Static] [Export ("templatesWithAttributeKeyPaths:inEntityDescription:")] //NSArray TemplatesWithAttributeKeyPathsinEntityDescription (NSArray keyPaths, NSEntityDescription entityDescription); - NSPredicateEditorRowTemplate[] GetTemplates (string[] keyPaths, NSEntityDescription entityDescription); + NSPredicateEditorRowTemplate [] GetTemplates (string [] keyPaths, NSEntityDescription entityDescription); } - [Mac(10,10,3)] + [Mac (10, 10, 3)] [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface NSPressureConfiguration - { + interface NSPressureConfiguration { [Export ("pressureBehavior")] NSPressureBehavior PressureBehavior { get; } @@ -22616,9 +22564,9 @@ namespace AppKit { [Export ("set")] void Set (); } - + [NoMacCatalyst] - [BaseType (typeof (NSControl), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSRuleEditorDelegate)})] + [BaseType (typeof (NSControl), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSRuleEditorDelegate) })] partial interface NSRuleEditor { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -22645,7 +22593,7 @@ namespace AppKit { NSArray Criteria (nint row); [Export ("displayValuesForRow:")] - NSObject[] DisplayValues (nint row); + NSObject [] DisplayValues (nint row); [Export ("rowForDisplayValue:")] nint Row (NSObject displayValue); @@ -22679,12 +22627,12 @@ namespace AppKit { //Detected properties [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] NSRuleEditorDelegate Delegate { get; set; } - + [Export ("formattingStringsFilename")] string FormattingStringsFilename { get; set; } @@ -22698,7 +22646,7 @@ namespace AppKit { nfloat RowHeight { get; set; } [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } + bool Editable { [Bind ("isEditable")] get; set; } [Export ("canRemoveAllRows")] bool CanRemoveAllRows { get; set; } @@ -22725,21 +22673,21 @@ namespace AppKit { [Protocol] interface NSRuleEditorDelegate { [Abstract] - [Export ("ruleEditor:numberOfChildrenForCriterion:withRowType:"), DelegateName ("NSRuleEditorNumberOfChildren"), DefaultValue(0)] + [Export ("ruleEditor:numberOfChildrenForCriterion:withRowType:"), DelegateName ("NSRuleEditorNumberOfChildren"), DefaultValue (0)] nint NumberOfChildren (NSRuleEditor editor, NSObject criterion, NSRuleEditorRowType rowType); [Abstract] - [Export ("ruleEditor:child:forCriterion:withRowType:"), DelegateName ("NSRulerEditorChildCriterion"), DefaultValue(null)] + [Export ("ruleEditor:child:forCriterion:withRowType:"), DelegateName ("NSRulerEditorChildCriterion"), DefaultValue (null)] NSObject ChildForCriterion (NSRuleEditor editor, nint index, NSObject criterion, NSRuleEditorRowType rowType); [Abstract] - [Export ("ruleEditor:displayValueForCriterion:inRow:"), DelegateName ("NSRulerEditorDisplayValue"), DefaultValue(null)] + [Export ("ruleEditor:displayValueForCriterion:inRow:"), DelegateName ("NSRulerEditorDisplayValue"), DefaultValue (null)] NSObject DisplayValue (NSRuleEditor editor, NSObject criterion, nint row); #if !NET [Abstract] #endif - [Export ("ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:"), DelegateName ("NSRulerEditorPredicateParts"), DefaultValue(null)] + [Export ("ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:"), DelegateName ("NSRulerEditorPredicateParts"), DefaultValue (null)] NSDictionary PredicateParts (NSRuleEditor editor, NSObject criterion, NSObject value, nint row); #if !NET @@ -22747,7 +22695,7 @@ namespace AppKit { #endif [Export ("ruleEditorRowsDidChange:"), EventArgs ("NSNotification")] void RowsDidChange (NSNotification notification); - + [Export ("controlTextDidEndEditing:"), EventArgs ("NSNotification")] void EditingEnded (NSNotification notification); @@ -22755,88 +22703,91 @@ namespace AppKit { void Changed (NSNotification notification); [Export ("controlTextDidBeginEditing:"), EventArgs ("NSNotification")] - void EditingBegan (NSNotification notification); + void EditingBegan (NSNotification notification); } - + [NoMacCatalyst] [BaseType (typeof (NSRuleEditor))] interface NSPredicateEditor { //Detected properties [Export ("rowTemplates", ArgumentSemantic.Copy)] - NSPredicateEditorRowTemplate[] RowTemplates { get; set; } + NSPredicateEditorRowTemplate [] RowTemplates { get; set; } - } + } // Start of NSSharingService.h - + delegate void NSSharingServiceHandler (); - + [NoMacCatalyst] [BaseType (typeof (NSObject), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (NSSharingServiceDelegate) })] - interface NSSharingService - { - - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSSharingServiceDelegate) })] + interface NSSharingService { + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - - [Wrap ("WeakDelegate")][NullAllowed] + + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] NSSharingServiceDelegate Delegate { get; set; } - + [Export ("title", ArgumentSemantic.Copy)] string Title { get; } - + [Export ("image", ArgumentSemantic.Strong)] NSImage Image { get; } - + [Export ("alternateImage", ArgumentSemantic.Strong)] NSImage AlternateImage { get; } - + [Deprecated (PlatformName.MacOSX, 13, 0, message: "Use 'NSSharingServicePicker.StandardShareMenuItem' instead.")] - [Export ("sharingServicesForItems:")][Static] + [Export ("sharingServicesForItems:")] + [Static] NSSharingService [] SharingServicesForItems (NSObject [] items); - - [Export ("sharingServiceNamed:")][Static] + + [Export ("sharingServiceNamed:")] + [Static] NSSharingService GetSharingService (NSString serviceName); - + [DesignatedInitializer] [Export ("initWithTitle:image:alternateImage:handler:")] NativeHandle Constructor (string title, NSImage image, NSImage alternateImage, NSSharingServiceHandler handler); - + [Export ("canPerformWithItems:")] bool CanPerformWithItems ([NullAllowed] NSObject [] items); [Export ("performWithItems:")] void PerformWithItems (NSObject [] items); - [Mac (10,9)] + [Mac (10, 9)] [Export ("menuItemTitle")] string MenuItemTitle { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("recipients", ArgumentSemantic.Copy)] NSObject [] Recipients { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("subject")] string Subject { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("messageBody")] string MessageBody { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("permanentLink", ArgumentSemantic.Copy)] NSUrl PermanentLink { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("accountName")] string AccountName { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("attachmentFileURLs", ArgumentSemantic.Copy)] NSUrl [] AttachmentFileUrls { get; } } @@ -22897,72 +22848,70 @@ namespace AppKit { [Field ("NSSharingServiceNamePostVideoOnTudou")] PostVideoOnTudou, - [Mac (10,12)] + [Mac (10, 12)] [Field ("NSSharingServiceNameCloudSharing")] CloudSharing, - [Mac (10,9)] + [Mac (10, 9)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the proprietary SDK instead.")] [Field ("NSSharingServiceNamePostOnTencentWeibo")] PostOnTencentWeibo, - [Mac (10,9)] + [Mac (10, 9)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the proprietary SDK instead.")] [Field ("NSSharingServiceNamePostOnLinkedIn")] PostOnLinkedIn, - [Mac (10,9)] + [Mac (10, 9)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the proprietary SDK instead.")] [Field ("NSSharingServiceNameUseAsFacebookProfileImage")] UseAsFacebookProfileImage, - [Mac (10,9)] + [Mac (10, 9)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the proprietary SDK instead.")] [Field ("NSSharingServiceNameUseAsLinkedInProfileImage")] UseAsLinkedInProfileImage, } - + [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] [Protocol] - interface NSSharingServiceDelegate - { + interface NSSharingServiceDelegate { [Export ("sharingService:willShareItems:"), EventArgs ("NSSharingServiceItems")] void WillShareItems (NSSharingService sharingService, NSObject [] items); - + [Export ("sharingService:didFailToShareItems:error:"), EventArgs ("NSSharingServiceDidFailToShareItems")] void DidFailToShareItems (NSSharingService sharingService, NSObject [] items, NSError error); - + [Export ("sharingService:didShareItems:"), EventArgs ("NSSharingServiceItems")] void DidShareItems (NSSharingService sharingService, NSObject [] items); - + [Export ("sharingService:sourceFrameOnScreenForShareItem:"), DelegateName ("NSSharingServiceSourceFrameOnScreenForShareItem"), DefaultValue (null)] CGRect SourceFrameOnScreenForShareItem (NSSharingService sharingService, INSPasteboardWriting item); - + [Export ("sharingService:transitionImageForShareItem:contentRect:"), DelegateName ("NSSharingServiceTransitionImageForShareItem"), DefaultValue (null)] NSImage TransitionImageForShareItem (NSSharingService sharingService, INSPasteboardWriting item, CGRect contentRect); - + [Export ("sharingService:sourceWindowForShareItems:sharingContentScope:"), DelegateName ("NSSharingServiceSourceWindowForShareItems"), DefaultValue (null)] NSWindow SourceWindowForShareItems (NSSharingService sharingService, NSObject [] items, NSSharingContentScope sharingContentScope); - + [Export ("anchoringViewForSharingService:showRelativeToRect:preferredEdge:"), DelegateName ("NSSharingServiceAnchoringViewForSharingService"), DefaultValue (null)] [return: NullAllowed] NSView CreateAnchoringView (NSSharingService sharingService, ref CGRect positioningRect, ref NSRectEdge preferredEdge); } - interface INSSharingServiceDelegate {} + interface INSSharingServiceDelegate { } - interface INSCloudSharingServiceDelegate {} + interface INSCloudSharingServiceDelegate { } [Protocol, Model] [Mac (10, 12)] [NoMacCatalyst] [BaseType (typeof (NSSharingServiceDelegate))] - interface NSCloudSharingServiceDelegate - { + interface NSCloudSharingServiceDelegate { [Export ("sharingService:didCompleteForItems:error:")] - void Completed (NSSharingService sharingService, NSObject[] items, [NullAllowed] NSError error); + void Completed (NSSharingService sharingService, NSObject [] items, [NullAllowed] NSError error); [Export ("optionsForSharingService:shareProvider:")] NSCloudKitSharingServiceOptions Options (NSSharingService cloudKitSharingService, NSItemProvider provider); @@ -22976,21 +22925,22 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSObject), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (NSSharingServicePickerDelegate) })] - interface NSSharingServicePicker - { - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSSharingServicePickerDelegate) })] + interface NSSharingServicePicker { + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - - [Wrap ("WeakDelegate")][NullAllowed] + + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] NSSharingServicePickerDelegate Delegate { get; set; } - + [DesignatedInitializer] [Export ("initWithItems:")] NativeHandle Constructor (NSObject [] items); - + [Export ("showRelativeToRect:ofView:preferredEdge:")] void ShowRelativeToRect (CGRect rect, NSView view, NSRectEdge preferredEdge); @@ -22998,29 +22948,28 @@ namespace AppKit { [Export ("standardShareMenuItem")] NSMenuItem StandardShareMenuItem { get; } - [NoiOS, Mac (13,0)] + [NoiOS, Mac (13, 0)] [Export ("close")] void Close (); } - interface INSSharingServicePickerDelegate {} + interface INSSharingServicePickerDelegate { } [NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] [Protocol] - interface NSSharingServicePickerDelegate - { + interface NSSharingServicePickerDelegate { [Export ("sharingServicePicker:sharingServicesForItems:proposedSharingServices:"), DelegateName ("NSSharingServicePickerSharingServicesForItems"), DefaultValueFromArgument ("proposedServices")] NSSharingService [] SharingServicesForItems (NSSharingServicePicker sharingServicePicker, NSObject [] items, NSSharingService [] proposedServices); - + [Export ("sharingServicePicker:delegateForSharingService:"), DelegateName ("NSSharingServicePickerDelegateForSharingService"), DefaultValue (null)] INSSharingServiceDelegate DelegateForSharingService (NSSharingServicePicker sharingServicePicker, NSSharingService sharingService); - + [Export ("sharingServicePicker:didChooseSharingService:"), EventArgs ("NSSharingServicePickerDidChooseSharingService")] void DidChooseSharingService (NSSharingServicePicker sharingServicePicker, NSSharingService service); } - + [NoMacCatalyst] [BaseType (typeof (NSTypesetter))] interface NSATSTypesetter { @@ -23387,31 +23336,31 @@ namespace AppKit { [Export ("tabbingIdentifier")] string TabbingIdentifier { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("selectNextTab:")] void SelectNextTab ([NullAllowed] NSObject sender); - [Mac (10,12)] + [Mac (10, 12)] [Export ("selectPreviousTab:")] void SelectPreviousTab ([NullAllowed] NSObject sender); - [Mac (10,12)] + [Mac (10, 12)] [Export ("moveTabToNewWindow:")] void MoveTabToNewWindow ([NullAllowed] NSObject sender); - [Mac (10,12)] + [Mac (10, 12)] [Export ("mergeAllWindows:")] void MergeAllWindows ([NullAllowed] NSObject sender); - [Mac (10,12)] + [Mac (10, 12)] [Export ("toggleTabBar:")] void ToggleTabBar ([NullAllowed] NSObject sender); [Mac (10, 12)] [NullAllowed, Export ("tabbedWindows", ArgumentSemantic.Copy)] - NSWindow[] TabbedWindows { get; } + NSWindow [] TabbedWindows { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("addTabbedWindow:ordered:")] void AddTabbedWindow (NSWindow window, NSWindowOrderingMode ordered); @@ -23419,7 +23368,7 @@ namespace AppKit { [Export ("windowTitlebarLayoutDirection")] NSUserInterfaceLayoutDirection WindowTitlebarLayoutDirection { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("toggleTabOverview:")] void ToggleTabOverview ([NullAllowed] NSObject sender); @@ -23442,10 +23391,10 @@ namespace AppKit { // Ref: https://github.com/xamarin/xamarin-macios/issues/4837 [NoMacCatalyst] [Category, BaseType (typeof (NSResponder))] - partial interface NSControlEditingSupport { - [Export ("validateProposedFirstResponder:forEvent:")] - bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent); - } + partial interface NSControlEditingSupport { + [Export ("validateProposedFirstResponder:forEvent:")] + bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent); + } #endif partial interface NSResponder { @@ -23466,7 +23415,7 @@ namespace AppKit { [Export ("validateProposedFirstResponder:forEvent:")] bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent); - [Mac (10,15)] + [Mac (10, 15)] [Export ("changeModeWithEvent:")] void ChangeMode (NSEvent withEvent); } @@ -23606,7 +23555,7 @@ namespace AppKit { bool UsesFindBar { get; set; } [Export ("incrementalSearchingEnabled")] - bool IsIncrementalSearchingEnabled {[Bind ("isIncrementalSearchingEnabled")]get; set; } + bool IsIncrementalSearchingEnabled { [Bind ("isIncrementalSearchingEnabled")] get; set; } [Export ("quickLookPreviewableItemsInRanges:")] NSArray QuickLookPreviewableItemsInRanges (NSArray ranges); @@ -23625,11 +23574,11 @@ namespace AppKit { [Notification, Field ("NSTextViewDidChangeTypingAttributesNotification")] NSString DidChangeTypingAttributesNotification { get; } - [Mac (12,0)] + [Mac (12, 0)] [Notification, Field ("NSTextViewWillSwitchToNSLayoutManagerNotification")] NSString WillSwitchToNSLayoutManagerNotification { get; } - [Mac (12,0)] + [Mac (12, 0)] [Notification, Field ("NSTextViewDidSwitchToNSLayoutManagerNotification")] NSString DidSwitchToNSLayoutManagerNotification { get; } @@ -23687,8 +23636,7 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSViewToolTipOwner - { + interface NSViewToolTipOwner { [Abstract] [Export ("view:stringForToolTip:point:userData:")] string GetStringForToolTip (NSView view, nint tag, CGPoint point, IntPtr data); @@ -23804,7 +23752,7 @@ namespace AppKit { [Static, Export ("usesUbiquitousStorage")] bool UsesUbiquitousStorage { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("encodeRestorableStateWithCoder:backgroundQueue:")] void EncodeRestorableState (NSCoder coder, NSOperationQueue queue); } @@ -23812,7 +23760,7 @@ namespace AppKit { delegate void NSDocumentControllerOpenPanelWithCompletionHandler (NSArray urlsToOpen); delegate void NSDocumentControllerOpenPanelResultHandler (nint result); - partial interface NSDocumentController : NSMenuItemValidation + partial interface NSDocumentController : NSMenuItemValidation #if NET , NSUserInterfaceValidations // ValidateUserInterfaceItem was bound with NSObject and fix would break API compat #endif @@ -23964,7 +23912,7 @@ namespace AppKit { [Export ("characterCollection")] NSCharacterCollection CharacterCollection { get; } - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("glyphInfoWithCGGlyph:forFont:baseString:")] [return: NullAllowed] @@ -24153,34 +24101,31 @@ namespace AppKit { NSString RegistryDidChangeNotification { get; } } - interface INSAccessibility {}; - interface INSAccessibilityElement {}; + interface INSAccessibility { }; + interface INSAccessibilityElement { }; - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Native] - public enum NSAccessibilityOrientation : long - { + public enum NSAccessibilityOrientation : long { Unknown = 0, Vertical = 1, Horizontal = 2, } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Native] - public enum NSAccessibilitySortDirection : long - { + public enum NSAccessibilitySortDirection : long { Unknown = 0, Ascending = 1, Descending = 2, } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Native] - public enum NSAccessibilityRulerMarkerType : long - { + public enum NSAccessibilityRulerMarkerType : long { Unknown = 0, TabStopLeft = 1, TabStopRight = 2, @@ -24191,11 +24136,10 @@ namespace AppKit { IndentFirstLine = 7, } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Native] - public enum NSAccessibilityUnits : long - { + public enum NSAccessibilityUnits : long { Unknown = 0, Inches = 1, Centimeters = 2, @@ -24203,11 +24147,10 @@ namespace AppKit { Picas = 4, } - [Mac (10,9)] + [Mac (10, 9)] [NoMacCatalyst] [Native] - public enum NSAccessibilityPriorityLevel : long - { + public enum NSAccessibilityPriorityLevel : long { Low = 10, Medium = 50, High = 90, @@ -24215,10 +24158,11 @@ namespace AppKit { // 10.9 for fields/notification but 10.10 for protocol // attributes added to both cases in NSAccessibility.cs - [NoMacCatalyst][NoiOS][NoTV] + [NoMacCatalyst] + [NoiOS] + [NoTV] [Protocol] - interface NSAccessibility - { + interface NSAccessibility { [Mac (10, 10)] [Abstract] [Export ("accessibilityFrame", ArgumentSemantic.Assign)] @@ -24272,7 +24216,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityVisibleChildren", ArgumentSemantic.Copy)] - NSObject[] AccessibilityVisibleChildren { get; set; } + NSObject [] AccessibilityVisibleChildren { get; set; } [Mac (10, 10)] [Abstract] @@ -24292,7 +24236,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityNextContents", ArgumentSemantic.Copy)] - NSObject[] AccessibilityNextContents { get; set; } + NSObject [] AccessibilityNextContents { get; set; } [Mac (10, 10)] [Abstract] @@ -24312,7 +24256,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityPreviousContents", ArgumentSemantic.Copy)] - NSObject[] AccessibilityPreviousContents { get; set; } + NSObject [] AccessibilityPreviousContents { get; set; } [Mac (10, 10)] [Abstract] @@ -24342,12 +24286,12 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySelectedChildren", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySelectedChildren { get; set; } + NSObject [] AccessibilitySelectedChildren { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityServesAsTitleForUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityServesAsTitleForUIElements { get; set; } + NSObject [] AccessibilityServesAsTitleForUIElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24367,7 +24311,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityLinkedUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityLinkedUIElements { get; set; } + NSObject [] AccessibilityLinkedUIElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24402,7 +24346,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityChildren", ArgumentSemantic.Copy)] - NSObject[] AccessibilityChildren { get; set; } + NSObject [] AccessibilityChildren { get; set; } [Mac (10, 10)] [Abstract] @@ -24422,7 +24366,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityContents", ArgumentSemantic.Copy)] - NSObject[] AccessibilityContents { get; set; } + NSObject [] AccessibilityContents { get; set; } [Mac (10, 10)] [Abstract] @@ -24437,7 +24381,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySharedFocusElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySharedFocusElements { get; set; } + NSObject [] AccessibilitySharedFocusElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24467,7 +24411,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityWindows", ArgumentSemantic.Copy)] - NSObject[] AccessibilityWindows { get; set; } + NSObject [] AccessibilityWindows { get; set; } [Mac (10, 10)] [Abstract] @@ -24482,7 +24426,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityColumnTitles", ArgumentSemantic.Copy)] - NSObject[] AccessibilityColumnTitles { get; set; } + NSObject [] AccessibilityColumnTitles { get; set; } [Mac (10, 10)] [Abstract] @@ -24509,22 +24453,22 @@ namespace AppKit { [NullAllowed, Export ("accessibilityVerticalUnitDescription")] string AccessibilityVerticalUnitDescription { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityLayoutPointForScreenPoint:")] CGPoint GetAccessibilityLayoutForScreen (CGPoint point); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityLayoutSizeForScreenSize:")] CGSize GetAccessibilityLayoutForScreen (CGSize size); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityScreenPointForLayoutPoint:")] CGPoint GetAccessibilityScreenForLayout (CGPoint point); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityScreenSizeForLayoutSize:")] CGSize GetAccessibilityScreenForLayout (CGSize size); @@ -24532,7 +24476,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityHandles", ArgumentSemantic.Copy)] - NSObject[] AccessibilityHandles { get; set; } + NSObject [] AccessibilityHandles { get; set; } [Mac (10, 10)] [Abstract] @@ -24567,7 +24511,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityMarkerUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityMarkerUIElements { get; set; } + NSObject [] AccessibilityMarkerUIElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24612,12 +24556,12 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityAllowedValues", ArgumentSemantic.Copy)] - NSNumber[] AccessibilityAllowedValues { get; set; } + NSNumber [] AccessibilityAllowedValues { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityLabelUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityLabelUIElements { get; set; } + NSObject [] AccessibilityLabelUIElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24627,7 +24571,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySplitters", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySplitters { get; set; } + NSObject [] AccessibilitySplitters { get; set; } [Mac (10, 10)] [Abstract] @@ -24642,7 +24586,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityTabs", ArgumentSemantic.Copy)] - NSObject[] AccessibilityTabs { get; set; } + NSObject [] AccessibilityTabs { get; set; } [Mac (10, 10)] [Abstract] @@ -24667,32 +24611,32 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityColumns", ArgumentSemantic.Copy)] - NSObject[] AccessibilityColumns { get; set; } + NSObject [] AccessibilityColumns { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityRows", ArgumentSemantic.Copy)] - NSObject[] AccessibilityRows { get; set; } + NSObject [] AccessibilityRows { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityVisibleRows", ArgumentSemantic.Copy)] - NSObject[] AccessibilityVisibleRows { get; set; } + NSObject [] AccessibilityVisibleRows { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySelectedRows", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySelectedRows { get; set; } + NSObject [] AccessibilitySelectedRows { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityVisibleColumns", ArgumentSemantic.Copy)] - NSObject[] AccessibilityVisibleColumns { get; set; } + NSObject [] AccessibilityVisibleColumns { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySelectedColumns", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySelectedColumns { get; set; } + NSObject [] AccessibilitySelectedColumns { get; set; } [Mac (10, 10)] [Abstract] @@ -24702,24 +24646,24 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityRowHeaderUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityRowHeaderUIElements { get; set; } + NSObject [] AccessibilityRowHeaderUIElements { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySelectedCells", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySelectedCells { get; set; } + NSObject [] AccessibilitySelectedCells { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityVisibleCells", ArgumentSemantic.Copy)] - NSObject[] AccessibilityVisibleCells { get; set; } + NSObject [] AccessibilityVisibleCells { get; set; } [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilityColumnHeaderUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityColumnHeaderUIElements { get; set; } + NSObject [] AccessibilityColumnHeaderUIElements { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityCellForColumn:row:")] [return: NullAllowed] @@ -24748,7 +24692,7 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySharedTextUIElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilitySharedTextUIElements { get; set; } + NSObject [] AccessibilitySharedTextUIElements { get; set; } [Mac (10, 10)] [Abstract] @@ -24773,52 +24717,52 @@ namespace AppKit { [Mac (10, 10)] [Abstract] [NullAllowed, Export ("accessibilitySelectedTextRanges", ArgumentSemantic.Copy)] - NSValue[] AccessibilitySelectedTextRanges { get; set; } + NSValue [] AccessibilitySelectedTextRanges { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityAttributedStringForRange:")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedString (NSRange range); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityRangeForLine:")] NSRange GetAccessibilityRangeForLine (nint line); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityStringForRange:")] [return: NullAllowed] string GetAccessibilityString (NSRange range); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityRangeForPosition:")] NSRange GetAccessibilityRange (CGPoint point); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityRangeForIndex:")] NSRange GetAccessibilityRange (nint index); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityFrameForRange:")] CGRect GetAccessibilityFrame (NSRange range); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityRTFForRange:")] [return: NullAllowed] NSData GetAccessibilityRtf (NSRange range); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityStyleRangeForIndex:")] NSRange GetAccessibilityStyleRange (nint index); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("accessibilityLineForIndex:")] nint GetAccessibilityLine (nint index); @@ -24938,7 +24882,7 @@ namespace AppKit { [Export ("accessibilityPerformShowMenu")] bool AccessibilityPerformShowMenu (); - [Mac (10,10)] + [Mac (10, 10)] [Abstract] [Export ("isAccessibilitySelectorAllowed:")] bool IsAccessibilitySelectorAllowed (Selector selector); @@ -25087,27 +25031,26 @@ namespace AppKit { [Abstract] #endif [NullAllowed, Export ("accessibilityChildrenInNavigationOrder", ArgumentSemantic.Copy)] - NSAccessibilityElement[] AccessibilityChildrenInNavigationOrder { get; set; } + NSAccessibilityElement [] AccessibilityChildrenInNavigationOrder { get; set; } [Mac (10, 13)] #if NET [Abstract] #endif [Export ("accessibilityCustomRotors", ArgumentSemantic.Copy)] - NSAccessibilityCustomRotor[] AccessibilityCustomRotors { get; set; } + NSAccessibilityCustomRotor [] AccessibilityCustomRotors { get; set; } [Mac (10, 13)] #if NET [Abstract] #endif [NullAllowed, Export ("accessibilityCustomActions", ArgumentSemantic.Copy)] - NSAccessibilityCustomAction[] AccessibilityCustomActions { get; set; } + NSAccessibilityCustomAction [] AccessibilityCustomActions { get; set; } } [NoMacCatalyst] [Protocol] - interface NSCollectionViewSectionHeaderView : NSCollectionViewElement - { + interface NSCollectionViewSectionHeaderView : NSCollectionViewElement { [Mac (10, 12)] [NullAllowed, Export ("sectionCollapseButton", ArgumentSemantic.Assign)] NSButton SectionCollapseButton { get; set; } @@ -25399,7 +25342,7 @@ namespace AppKit { NSString MisspelledTextAttribute { get; } [Field ("NSAccessibilityMarkedMisspelledTextAttribute")] - NSString MarkedMisspelledTextAttribute { get; } + NSString MarkedMisspelledTextAttribute { get; } [Field ("NSAccessibilityMainAttribute")] NSString MainAttribute { get; } @@ -26115,17 +26058,19 @@ namespace AppKit { [Field ("NSAccessibilityDeleteAction")] NSString DeleteAction { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("NSAccessibilityShowAlternateUIAction")] NSString ShowAlternateUIAction { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("NSAccessibilityShowDefaultUIAction")] NSString ShowDefaultUIAction { get; } } - [Mac (10,10)] - [NoMacCatalyst][NoiOS][NoTV] + [Mac (10, 10)] + [NoMacCatalyst] + [NoiOS] + [NoTV] [Protocol (Name = "NSAccessibilityElement")] // exists both as a type and a protocol in ObjC, Swift uses NSAccessibilityElementProtocol interface NSAccessibilityElementProtocol { [Abstract] @@ -26143,13 +26088,13 @@ namespace AppKit { string AccessibilityIdentifier { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityGroup : NSAccessibilityElementProtocol { } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [NoiOS] [NoTV] @@ -26164,7 +26109,7 @@ namespace AppKit { bool AccessibilityPerformPress (); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilitySwitch : NSAccessibilityButton { @@ -26179,7 +26124,7 @@ namespace AppKit { bool AccessibilityPerformDecrement (); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityRadioButton : NSAccessibilityButton { @@ -26188,17 +26133,16 @@ namespace AppKit { NSNumber AccessibilityValue { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] - interface NSAccessibilityCheckBox : NSAccessibilityButton - { + interface NSAccessibilityCheckBox : NSAccessibilityButton { [Abstract] [NullAllowed, Export ("accessibilityValue")] NSNumber AccessibilityValue { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityStaticText : NSAccessibilityElementProtocol { @@ -26214,7 +26158,7 @@ namespace AppKit { NSRange AccessibilityVisibleCharacterRange { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityNavigableStaticText : NSAccessibilityStaticText { @@ -26236,7 +26180,7 @@ namespace AppKit { CGRect GetAccessibilityFrame (NSRange range); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityProgressIndicator : NSAccessibilityGroup { @@ -26245,7 +26189,7 @@ namespace AppKit { NSNumber AccessibilityValue { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityStepper : NSAccessibilityElementProtocol { @@ -26265,7 +26209,7 @@ namespace AppKit { NSObject AccessibilityValue { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilitySlider : NSAccessibilityElementProtocol { @@ -26286,7 +26230,7 @@ namespace AppKit { bool AccessibilityPerformDecrement (); } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityImage : NSAccessibilityElementProtocol { @@ -26295,7 +26239,7 @@ namespace AppKit { string AccessibilityLabel { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityContainsTransientUI : NSAccessibilityElementProtocol { @@ -26312,9 +26256,9 @@ namespace AppKit { bool IsAccessibilityAlternateUIVisible { get; } } - interface INSAccessibilityRow {} + interface INSAccessibilityRow { } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityTable : NSAccessibilityGroup { @@ -26324,53 +26268,53 @@ namespace AppKit { [Abstract] [NullAllowed, Export ("accessibilityRows")] - INSAccessibilityRow[] AccessibilityRows { get; } + INSAccessibilityRow [] AccessibilityRows { get; } [NullAllowed, Export ("accessibilitySelectedRows")] - INSAccessibilityRow[] AccessibilitySelectedRows { get; set; } + INSAccessibilityRow [] AccessibilitySelectedRows { get; set; } [Export ("accessibilityVisibleRows")] - INSAccessibilityRow[] AccessibilityVisibleRows { get; } + INSAccessibilityRow [] AccessibilityVisibleRows { get; } [Export ("accessibilityColumns")] - NSObject[] AccessibilityColumns { get; } + NSObject [] AccessibilityColumns { get; } [Export ("accessibilityVisibleColumns")] - NSObject[] AccessibilityVisibleColumns { get; } + NSObject [] AccessibilityVisibleColumns { get; } [Export ("accessibilitySelectedColumns")] - NSObject[] AccessibilitySelectedColumns { get; } + NSObject [] AccessibilitySelectedColumns { get; } [Export ("accessibilityHeaderGroup")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'AccessibilityHeader' instead.")] - string AccessibilityHeaderGroup { get; } + string AccessibilityHeaderGroup { get; } [Export ("accessibilitySelectedCells")] - NSObject[] AccessibilitySelectedCells { get; } + NSObject [] AccessibilitySelectedCells { get; } [Export ("accessibilityVisibleCells")] - NSObject[] AccessibilityVisibleCells { get; } + NSObject [] AccessibilityVisibleCells { get; } [Export ("accessibilityRowHeaderUIElements")] - NSObject[] AccessibilityRowHeaderUIElements { get; } + NSObject [] AccessibilityRowHeaderUIElements { get; } [Export ("accessibilityColumnHeaderUIElements")] - NSObject[] AccessibilityColumnHeaderUIElements { get; } + NSObject [] AccessibilityColumnHeaderUIElements { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityOutline : NSAccessibilityTable { } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityList : NSAccessibilityTable { } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityRow : NSAccessibilityGroup { @@ -26382,7 +26326,7 @@ namespace AppKit { nint AccessibilityDisclosureLevel { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityLayoutArea : NSAccessibilityGroup { @@ -26392,18 +26336,18 @@ namespace AppKit { [Abstract] [NullAllowed, Export ("accessibilityChildren")] - NSObject[] AccessibilityChildren { get; } + NSObject [] AccessibilityChildren { get; } [Abstract] [NullAllowed, Export ("accessibilitySelectedChildren")] - NSObject[] AccessibilitySelectedChildren { get; } + NSObject [] AccessibilitySelectedChildren { get; } [Abstract] [Export ("accessibilityFocusedUIElement")] NSObject AccessibilityFocusedUIElement { get; } } - [Mac (10,10)] + [Mac (10, 10)] [NoMacCatalyst] [Protocol] interface NSAccessibilityLayoutItem : NSAccessibilityGroup { @@ -26466,10 +26410,10 @@ namespace AppKit { nuint GetAccessibilityArrayAttributeCount (NSString attribute); [Export ("accessibilityArrayAttributeValues:index:maxCount:")] - NSObject[] GetAccessibilityArrayAttributeValues (NSString attribute, nuint index, nuint maxCount); + NSObject [] GetAccessibilityArrayAttributeValues (NSString attribute, nuint index, nuint maxCount); - [Mac (10,9)] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [Mac (10, 9)] + [DebuggerBrowsable (DebuggerBrowsableState.Never)] [Export ("accessibilityNotifiesWhenDestroyed")] bool AccessibilityNotifiesWhenDestroyed { get; } } @@ -26502,15 +26446,14 @@ namespace AppKit { [Export ("switchControlEnabled")] bool SwitchControlEnabled { [Bind ("isSwitchControlEnabled")] get; } } - - interface INSFilePromiseProviderDelegate {} + + interface INSFilePromiseProviderDelegate { } [DesignatedDefaultCtor] - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSFilePromiseProvider : NSPasteboardWriting - { + [BaseType (typeof (NSObject))] + interface NSFilePromiseProvider : NSPasteboardWriting { [Export ("fileType")] string FileType { get; set; } @@ -26524,12 +26467,11 @@ namespace AppKit { NativeHandle Constructor (string fileType, INSFilePromiseProviderDelegate @delegate); } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] [Protocol, Model] [BaseType (typeof (NSObject))] - interface NSFilePromiseProviderDelegate - { + interface NSFilePromiseProviderDelegate { [Abstract] [Export ("filePromiseProvider:fileNameForType:")] string GetFileNameForDestination (NSFilePromiseProvider filePromiseProvider, string fileType); @@ -26544,20 +26486,19 @@ namespace AppKit { NSOperationQueue GetOperationQueue (NSFilePromiseProvider filePromiseProvider); } - [Mac (10,12)] + [Mac (10, 12)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSFilePromiseReceiver : NSPasteboardReading - { + [BaseType (typeof (NSObject))] + interface NSFilePromiseReceiver : NSPasteboardReading { [Static] [Export ("readableDraggedTypes", ArgumentSemantic.Copy)] - string[] ReadableDraggedTypes { get; } + string [] ReadableDraggedTypes { get; } [Export ("fileTypes", ArgumentSemantic.Copy)] - string[] FileTypes { get; } + string [] FileTypes { get; } [Export ("fileNames", ArgumentSemantic.Copy)] - string[] FileNames { get; } + string [] FileNames { get; } [Export ("receivePromisedFilesAtDestination:options:operationQueue:reader:")] void ReceivePromisedFiles (NSUrl destinationDir, NSDictionary options, NSOperationQueue operationQueue, Action reader); @@ -26567,8 +26508,7 @@ namespace AppKit { [NoMacCatalyst] [Protocol] - interface NSValidatedUserInterfaceItem - { + interface NSValidatedUserInterfaceItem { [Abstract] [NullAllowed, Export ("action")] Selector Action { get; } @@ -26580,9 +26520,8 @@ namespace AppKit { [NoMacCatalyst] [Protocol] - [Mac (10,12)] - interface NSCloudSharingValidation - { + [Mac (10, 12)] + interface NSCloudSharingValidation { [Abstract] [Export ("cloudShareForUserInterfaceItem:")] [return: NullAllowed] @@ -26590,10 +26529,9 @@ namespace AppKit { } [NoMacCatalyst] - [Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Metal' Framework instead.")] - [BaseType (typeof(CAOpenGLLayer))] - interface NSOpenGLLayer - { + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' Framework instead.")] + [BaseType (typeof (CAOpenGLLayer))] + interface NSOpenGLLayer { [NullAllowed, Export ("view", ArgumentSemantic.Assign)] NSView View { get; set; } @@ -26617,33 +26555,30 @@ namespace AppKit { } [NoMacCatalyst] - [Protocol (IsInformal=true)] - interface NSToolTipOwner - { + [Protocol (IsInformal = true)] + interface NSToolTipOwner { [Abstract] [Export ("view:stringForToolTip:point:userData:")] string GetStringForToolTip (NSView view, nint tag, CGPoint point, IntPtr data); } - interface INSToolTipOwner {} + interface INSToolTipOwner { } - interface INSUserInterfaceValidations {} + interface INSUserInterfaceValidations { } [Protocol] - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [NoiOS] - interface NSUserInterfaceValidations - { + interface NSUserInterfaceValidations { [Abstract] [Export ("validateUserInterfaceItem:")] bool ValidateUserInterfaceItem (INSValidatedUserInterfaceItem item); } [NoMacCatalyst] - [Protocol (IsInformal=true)] - interface NSMenuValidation - { + [Protocol (IsInformal = true)] + interface NSMenuValidation { [Abstract] [Export ("validateMenuItem:")] bool ValidateMenuItem (NSMenuItem menuItem); @@ -26652,23 +26587,21 @@ namespace AppKit { [Mac (10, 14)] [NoMacCatalyst] [Protocol] - interface NSMenuItemValidation - { + interface NSMenuItemValidation { [Abstract] [Export ("validateMenuItem:")] bool ValidateMenuItem (NSMenuItem menuItem); } - public interface INSCandidateListTouchBarItemDelegate {} + public interface INSCandidateListTouchBarItemDelegate { } delegate NSAttributedString AttributedStringForCandidateHandler (NSObject candidate, nint index); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSTouchBarItem))] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSCandidateListTouchBarItem - { + interface NSCandidateListTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -26698,10 +26631,10 @@ namespace AppKit { AttributedStringForCandidateHandler AttributedStringForCandidate { get; set; } [Export ("candidates", ArgumentSemantic.Copy)] - NSObject[] Candidates { get; } + NSObject [] Candidates { get; } [Export ("setCandidates:forSelectedRange:inString:")] - void SetCandidates (NSObject[] candidates, NSRange selectedRange, [NullAllowed] string originalString); + void SetCandidates (NSObject [] candidates, NSRange selectedRange, [NullAllowed] string originalString); [NullAllowed] [Export ("customizationLabel")] @@ -26710,49 +26643,46 @@ namespace AppKit { [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSCandidateListTouchBarItemDelegate - { - [Mac (10,12,2)] + [BaseType (typeof (NSObject))] + interface NSCandidateListTouchBarItemDelegate { + [Mac (10, 12, 2)] [Export ("candidateListTouchBarItem:beginSelectingCandidateAtIndex:")] void BeginSelectingCandidate (NSCandidateListTouchBarItem anItem, nint index); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:")] void ChangeSelectionFromCandidate (NSCandidateListTouchBarItem anItem, nint previousIndex, nint index); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("candidateListTouchBarItem:endSelectingCandidateAtIndex:")] void EndSelectingCandidate (NSCandidateListTouchBarItem anItem, nint index); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("candidateListTouchBarItem:changedCandidateListVisibility:")] void ChangedCandidateListVisibility (NSCandidateListTouchBarItem anItem, bool isVisible); } [NoMacCatalyst] [Category] - [BaseType (typeof(NSView))] - interface NSView_NSCandidateListTouchBarItem - { + [BaseType (typeof (NSView))] + interface NSView_NSCandidateListTouchBarItem { [Mac (10, 12, 2)] [Export ("candidateListTouchBarItem")] - NSCandidateListTouchBarItem GetCandidateListTouchBarItem (); + NSCandidateListTouchBarItem GetCandidateListTouchBarItem (); } - - [Mac (10,12,2)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + + [Mac (10, 12, 2)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSColorPickerTouchBarItem - { + interface NSColorPickerTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); [Static] [Export ("colorPickerWithIdentifier:")] - NSColorPickerTouchBarItem CreateColorPicker(string identifier); + NSColorPickerTouchBarItem CreateColorPicker (string identifier); [Static] [Export ("textColorPickerWithIdentifier:")] @@ -26760,7 +26690,7 @@ namespace AppKit { [Static] [Export ("strokeColorPickerWithIdentifier:")] - NSColorPickerTouchBarItem CreateStrokeColorPicker(string identifier); + NSColorPickerTouchBarItem CreateStrokeColorPicker (string identifier); [Static] [Export ("colorPickerWithIdentifier:buttonImage:")] @@ -26792,15 +26722,14 @@ namespace AppKit { [Mac (10, 13)] [NoMacCatalyst] [NullAllowed, Export ("allowedColorSpaces", ArgumentSemantic.Copy)] - NSColorSpace[] AllowedColorSpaces { get; set; } + NSColorSpace [] AllowedColorSpaces { get; set; } } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSTouchBarItem))] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSCustomTouchBarItem - { + interface NSCustomTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -26818,9 +26747,8 @@ namespace AppKit { [NoMacCatalyst] [Category] - [BaseType (typeof(NSGestureRecognizer))] - interface NSGestureRecognizer_NSTouchBar - { + [BaseType (typeof (NSGestureRecognizer))] + interface NSGestureRecognizer_NSTouchBar { [Mac (10, 12, 1)] [Export ("allowedTouchTypes", ArgumentSemantic.Assign)] NSTouchTypeMask GetAllowedTouchTypes (); @@ -26830,19 +26758,18 @@ namespace AppKit { void SetAllowedTouchTypes (NSTouchTypeMask types); } - [Mac (10,12,2)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 12, 2)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSGroupTouchBarItem - { + interface NSGroupTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); [Static] [Export ("groupItemWithIdentifier:items:")] - NSGroupTouchBarItem CreateGroupItem (string identifier, NSTouchBarItem[] items); + NSGroupTouchBarItem CreateGroupItem (string identifier, NSTouchBarItem [] items); [Export ("groupTouchBar", ArgumentSemantic.Strong)] NSTouchBar GroupTouchBar { get; set; } @@ -26851,13 +26778,13 @@ namespace AppKit { [Export ("customizationLabel")] string CustomizationLabel { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] [Static] [Export ("groupItemWithIdentifier:items:allowedCompressionOptions:")] - NSGroupTouchBarItem CreateGroupItem (string identifier, NSTouchBarItem[] items, NSUserInterfaceCompressionOptions allowedCompressionOptions); + NSGroupTouchBarItem CreateGroupItem (string identifier, NSTouchBarItem [] items, NSUserInterfaceCompressionOptions allowedCompressionOptions); - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("alertStyleGroupItemWithIdentifier:")] NSGroupTouchBarItem CreateAlertStyleGroupItem (string identifier); @@ -26883,15 +26810,14 @@ namespace AppKit { [Mac (10, 13)] [NoMacCatalyst] [Export ("prioritizedCompressionOptions", ArgumentSemantic.Copy)] - NSUserInterfaceCompressionOptions[] PrioritizedCompressionOptions { get; set; } + NSUserInterfaceCompressionOptions [] PrioritizedCompressionOptions { get; set; } } - [Mac (10,12,2)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 12, 2)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSPopoverTouchBarItem - { + interface NSPopoverTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -26929,21 +26855,20 @@ namespace AppKit { [Export ("makeStandardActivatePopoverGestureRecognizer")] NSGestureRecognizer MakeStandardActivatePopoverGestureRecognizer (); } - - interface INSScrubberDataSource {} - interface INSScrubberDelegate {} + + interface INSScrubberDataSource { } + interface INSScrubberDelegate { } [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSScrubberDataSource - { - [Mac (10,12,2)] + [BaseType (typeof (NSObject))] + interface NSScrubberDataSource { + [Mac (10, 12, 2)] [Abstract] [Export ("numberOfItemsForScrubber:")] nint GetNumberOfItems (NSScrubber scrubber); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Abstract] [Export ("scrubber:viewForItemAtIndex:")] NSScrubberItemView GetViewForItem (NSScrubber scrubber, nint index); @@ -26951,40 +26876,38 @@ namespace AppKit { [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSScrubberDelegate - { - [Mac (10,12,2)] + [BaseType (typeof (NSObject))] + interface NSScrubberDelegate { + [Mac (10, 12, 2)] [Export ("scrubber:didSelectItemAtIndex:")] void DidSelectItem (NSScrubber scrubber, nint selectedIndex); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("scrubber:didHighlightItemAtIndex:")] void DidHighlightItem (NSScrubber scrubber, nint highlightedIndex); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("scrubber:didChangeVisibleRange:")] void DidChangeVisible (NSScrubber scrubber, NSRange visibleRange); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("didBeginInteractingWithScrubber:")] void DidBeginInteracting (NSScrubber scrubber); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("didFinishInteractingWithScrubber:")] void DidFinishInteracting (NSScrubber scrubber); - [Mac (10,12,2)] + [Mac (10, 12, 2)] [Export ("didCancelInteractingWithScrubber:")] void DidCancelInteracting (NSScrubber scrubber); } [DesignatedDefaultCtor] - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSScrubberSelectionStyle : NSCoding - { + [BaseType (typeof (NSObject))] + interface NSScrubberSelectionStyle : NSCoding { [Static] [Export ("outlineOverlayStyle", ArgumentSemantic.Strong)] NSScrubberSelectionStyle OutlineOverlayStyle { get; } @@ -26997,11 +26920,10 @@ namespace AppKit { NSScrubberSelectionView MakeSelectionView (); } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSView))] - interface NSScrubber - { + [BaseType (typeof (NSView))] + interface NSScrubber { [NullAllowed, Export ("dataSource", ArgumentSemantic.Weak)] INSScrubberDataSource DataSource { get; set; } @@ -27076,7 +26998,7 @@ namespace AppKit { void ScrollItem (nint index, NSScrubberAlignment alignment); [Export ("itemViewForItemAtIndex:")] - NSScrubberItemView GetItemViewForItem(nint index); + NSScrubberItemView GetItemViewForItem (nint index); [Export ("registerClass:forItemIdentifier:")] void RegisterClass ([NullAllowed] Class itemViewClass, string itemIdentifier); @@ -27088,11 +27010,10 @@ namespace AppKit { NSScrubberItemView MakeItem (string itemIdentifier, [NullAllowed] NSObject owner); } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSView))] - interface NSScrubberArrangedView - { + [BaseType (typeof (NSView))] + interface NSScrubberArrangedView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -27108,25 +27029,22 @@ namespace AppKit { } // These are empty but types used in other bindings - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberArrangedView))] - interface NSScrubberItemView - { + [BaseType (typeof (NSScrubberArrangedView))] + interface NSScrubberItemView { } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberArrangedView))] - interface NSScrubberSelectionView - { + [BaseType (typeof (NSScrubberArrangedView))] + interface NSScrubberSelectionView { } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberItemView))] - interface NSScrubberTextItemView - { + [BaseType (typeof (NSScrubberItemView))] + interface NSScrubberTextItemView { [Export ("textField", ArgumentSemantic.Strong)] NSTextField TextField { get; } @@ -27134,11 +27052,10 @@ namespace AppKit { string Title { get; set; } } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberItemView))] - interface NSScrubberImageItemView - { + [BaseType (typeof (NSScrubberItemView))] + interface NSScrubberImageItemView { [Export ("imageView", ArgumentSemantic.Strong)] NSImageView ImageView { get; } @@ -27149,11 +27066,10 @@ namespace AppKit { NSImageAlignment ImageAlignment { get; set; } } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSScrubberLayoutAttributes : NSCopying - { + [BaseType (typeof (NSObject))] + interface NSScrubberLayoutAttributes : NSCopying { [Export ("itemIndex")] nint ItemIndex { get; set; } @@ -27169,11 +27085,10 @@ namespace AppKit { } [DesignatedDefaultCtor] - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSScrubberLayout : NSCoding - { + [BaseType (typeof (NSObject))] + interface NSScrubberLayout : NSCoding { [Static] [Export ("layoutAttributesClass")] Class LayoutAttributesClass { get; } @@ -27216,17 +27131,15 @@ namespace AppKit { [NoMacCatalyst] [BaseType (typeof (NSObject))] [Protocol, Model] - interface NSScrubberFlowLayoutDelegate : NSScrubberDelegate - { + interface NSScrubberFlowLayoutDelegate : NSScrubberDelegate { [Export ("scrubber:layout:sizeForItemAtIndex:")] CGSize Layout (NSScrubber scrubber, NSScrubberFlowLayout layout, nint itemIndex); } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberLayout))] - interface NSScrubberFlowLayout - { + [BaseType (typeof (NSScrubberLayout))] + interface NSScrubberFlowLayout { [Export ("itemSpacing")] nfloat ItemSpacing { get; set; } @@ -27237,11 +27150,10 @@ namespace AppKit { void InvalidateLayoutForItems (NSIndexSet invalidItemIndexes); } - [Mac (10,12,2)] + [Mac (10, 12, 2)] [NoMacCatalyst] - [BaseType (typeof(NSScrubberLayout))] - interface NSScrubberProportionalLayout - { + [BaseType (typeof (NSScrubberLayout))] + interface NSScrubberProportionalLayout { [Export ("numberOfVisibleItems")] nint NumberOfVisibleItems { get; set; } @@ -27250,24 +27162,22 @@ namespace AppKit { NativeHandle Constructor (nint numberOfVisibleItems); } - public interface INSSharingServicePickerTouchBarItemDelegate {} + public interface INSSharingServicePickerTouchBarItemDelegate { } [NoMacCatalyst] [BaseType (typeof (NSObject))] [Protocol, Model] - interface NSSharingServicePickerTouchBarItemDelegate : NSSharingServicePickerDelegate - { + interface NSSharingServicePickerTouchBarItemDelegate : NSSharingServicePickerDelegate { [Abstract] [Export ("itemsForSharingServicePickerTouchBarItem:")] INSPasteboardWriting [] ItemsForSharingServicePickerTouchBarItem (NSSharingServicePickerTouchBarItem pickerTouchBarItem); } - [Mac (10,12,2)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 12, 2)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSSharingServicePickerTouchBarItem - { + interface NSSharingServicePickerTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -27286,12 +27196,11 @@ namespace AppKit { NSImage ButtonImage { get; set; } } - [Mac (10,12)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 12)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSSliderAccessory : NSCoding, NSAccessibility, NSAccessibilityElementProtocol - { + interface NSSliderAccessory : NSCoding, NSAccessibility, NSAccessibilityElementProtocol { [Static] [Export ("accessoryWithImage:")] NSSliderAccessory CreateAccessory (NSImage image); @@ -27311,11 +27220,10 @@ namespace AppKit { double WidthWide { get; } } - [Mac (10,12)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSObject))] - interface NSSliderAccessoryBehavior : NSCoding, NSCopying - { + [Mac (10, 12)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSObject))] + interface NSSliderAccessoryBehavior : NSCoding, NSCopying { [Static] [Export ("automaticBehavior", ArgumentSemantic.Copy)] NSSliderAccessoryBehavior AutomaticBehavior { get; } @@ -27340,11 +27248,10 @@ namespace AppKit { void HandleAction (NSSliderAccessory sender); } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSAccessibilityCustomAction - { + [BaseType (typeof (NSObject))] + interface NSAccessibilityCustomAction { [Export ("initWithName:handler:")] NativeHandle Constructor (string name, [NullAllowed] Func handler); @@ -27365,11 +27272,10 @@ namespace AppKit { Selector Selector { get; set; } } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSAccessibilityCustomRotor - { + [BaseType (typeof (NSObject))] + interface NSAccessibilityCustomRotor { [Export ("initWithLabel:itemSearchDelegate:")] NativeHandle Constructor (string label, INSAccessibilityCustomRotorItemSearchDelegate itemSearchDelegate); @@ -27388,12 +27294,11 @@ namespace AppKit { [NullAllowed, Export ("itemLoadingDelegate", ArgumentSemantic.Weak)] INSAccessibilityElementLoading ItemLoadingDelegate { get; set; } } - - [Mac (10,13)] + + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSAccessibilityCustomRotorSearchParameters - { + [BaseType (typeof (NSObject))] + interface NSAccessibilityCustomRotorSearchParameters { [NullAllowed, Export ("currentItem", ArgumentSemantic.Strong)] NSAccessibilityCustomRotorItemResult CurrentItem { get; set; } @@ -27403,13 +27308,12 @@ namespace AppKit { [Export ("filterString")] string FilterString { get; set; } } - - [Mac (10,13)] + + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSAccessibilityCustomRotorItemResult - { + interface NSAccessibilityCustomRotorItemResult { [Export ("initWithTargetElement:")] [DesignatedInitializer] NativeHandle Constructor (NSAccessibilityElement targetElement); @@ -27431,27 +27335,25 @@ namespace AppKit { string CustomLabel { get; set; } } - interface INSAccessibilityCustomRotorItemSearchDelegate {} + interface INSAccessibilityCustomRotorItemSearchDelegate { } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NSAccessibilityCustomRotorItemSearchDelegate - { + [BaseType (typeof (NSObject))] + interface NSAccessibilityCustomRotorItemSearchDelegate { [Abstract] [Export ("rotor:resultForSearchParameters:")] [return: NullAllowed] NSAccessibilityCustomRotorItemResult GetResult (NSAccessibilityCustomRotor rotor, NSAccessibilityCustomRotorSearchParameters searchParameters); } - interface INSAccessibilityElementLoading {} + interface INSAccessibilityElementLoading { } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] [Protocol] - interface NSAccessibilityElementLoading - { + interface NSAccessibilityElementLoading { [Abstract] [Export ("accessibilityElementWithToken:")] [return: NullAllowed] @@ -27463,24 +27365,23 @@ namespace AppKit { interface INSCollectionViewPrefetching { } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] [Protocol] - interface NSCollectionViewPrefetching - { + interface NSCollectionViewPrefetching { [Abstract] [Export ("collectionView:prefetchItemsAtIndexPaths:")] - void PrefetchItems (NSCollectionView collectionView, NSIndexPath[] indexPaths); + void PrefetchItems (NSCollectionView collectionView, NSIndexPath [] indexPaths); [Export ("collectionView:cancelPrefetchingForItemsAtIndexPaths:")] - void CancelPrefetching (NSCollectionView collectionView, NSIndexPath[] indexPaths); + void CancelPrefetching (NSCollectionView collectionView, NSIndexPath [] indexPaths); } delegate bool DownloadFontAssetsRequestCompletionHandler (NSError error); - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] #if NET interface NSFontAssetRequest : NSProgressReporting @@ -27490,10 +27391,10 @@ namespace AppKit { { [Export ("initWithFontDescriptors:options:")] [DesignatedInitializer] - NativeHandle Constructor (NSFontDescriptor[] fontDescriptors, NSFontAssetRequestOptions options); + NativeHandle Constructor (NSFontDescriptor [] fontDescriptors, NSFontAssetRequestOptions options); [Export ("downloadedFontDescriptors", ArgumentSemantic.Copy)] - NSFontDescriptor[] DownloadedFontDescriptors { get; } + NSFontDescriptor [] DownloadedFontDescriptors { get; } #pragma warning disable 0108 // warning CS0108: 'NSFontAssetRequest.Progress' hides inherited member 'NSProgressReporting.Progress'. Use the new keyword if hiding was intended. [Export ("progress", ArgumentSemantic.Strong)] @@ -27506,9 +27407,8 @@ namespace AppKit { [NoMacCatalyst] [Category] - [BaseType (typeof(NSObject))] - interface NSObject_NSFontPanelValidationAdditions - { + [BaseType (typeof (NSObject))] + interface NSObject_NSFontPanelValidationAdditions { [Export ("validModesForFontPanel:")] NSFontPanelModeMask GetValidModes (NSFontPanel fontPanel); } @@ -27516,9 +27416,8 @@ namespace AppKit { [DesignatedDefaultCtor] [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSUserInterfaceCompressionOptions : NSCopying, NSCoding - { + [BaseType (typeof (NSObject))] + interface NSUserInterfaceCompressionOptions : NSCopying, NSCoding { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -27568,26 +27467,24 @@ namespace AppKit { [Mac (10, 13)] [NoMacCatalyst] [Protocol] - interface NSUserInterfaceCompression - { + interface NSUserInterfaceCompression { [Abstract] [Export ("compressWithPrioritizedCompressionOptions:")] - void Compress (NSUserInterfaceCompressionOptions[] prioritizedOptions); + void Compress (NSUserInterfaceCompressionOptions [] prioritizedOptions); [Abstract] [Export ("minimumSizeWithPrioritizedCompressionOptions:")] - CGSize GetMinimumSize (NSUserInterfaceCompressionOptions[] prioritizedOptions); + CGSize GetMinimumSize (NSUserInterfaceCompressionOptions [] prioritizedOptions); [Abstract] [Export ("activeCompressionOptions", ArgumentSemantic.Copy)] NSUserInterfaceCompressionOptions ActiveCompressionOptions { get; } } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface NSWindowTab - { + [BaseType (typeof (NSObject))] + interface NSWindowTab { [Export ("title")] string Title { get; set; } @@ -27601,17 +27498,16 @@ namespace AppKit { NSView AccessoryView { get; set; } } - [Mac (10,13)] + [Mac (10, 13)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSWindowTabGroup - { + interface NSWindowTabGroup { [Export ("identifier")] string Identifier { get; } [Export ("windows", ArgumentSemantic.Copy)] - NSWindow[] Windows { get; } + NSWindow [] Windows { get; } [Export ("overviewVisible")] bool OverviewVisible { [Bind ("isOverviewVisible")] get; set; } @@ -27632,12 +27528,11 @@ namespace AppKit { void Remove (NSWindow window); } - [Mac (10,15)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 15)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSButtonTouchBarItem - { + interface NSButtonTouchBarItem { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -27677,11 +27572,10 @@ namespace AppKit { string CustomizationLabel { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [Native] - public enum NSCollectionLayoutSectionOrthogonalScrollingBehavior : long - { + public enum NSCollectionLayoutSectionOrthogonalScrollingBehavior : long { None, Continuous, ContinuousGroupLeadingBoundary, @@ -27690,69 +27584,63 @@ namespace AppKit { GroupPagingCentered, } - [Mac (10,15)] - [MacCatalyst (13,0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Native] - public enum NSPickerTouchBarItemControlRepresentation : long - { + public enum NSPickerTouchBarItemControlRepresentation : long { Automatic = 0, Expanded = 1, Collapsed = 2, } - [Mac (10,15)] - [MacCatalyst (13,0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Native] - public enum NSPickerTouchBarItemSelectionMode : long - { + public enum NSPickerTouchBarItemSelectionMode : long { SelectOne = 0, SelectAny = 1, Momentary = 2, } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [Native] - public enum NSTextInputTraitType : long - { + public enum NSTextInputTraitType : long { Default, No, Yes, } - [Mac (10,15)] - [MacCatalyst (13,0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Native] - public enum NSToolbarItemGroupControlRepresentation : long - { + public enum NSToolbarItemGroupControlRepresentation : long { Automatic, Expanded, Collapsed, } - [Mac (10,15)] - [MacCatalyst (13,0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Native] - public enum NSToolbarItemGroupSelectionMode : long - { + public enum NSToolbarItemGroupSelectionMode : long { SelectOne = 0, SelectAny = 1, Momentary = 2, } - [Mac (10,15)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSTouchBarItem))] + [Mac (10, 15)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSPickerTouchBarItem - { + interface NSPickerTouchBarItem { [Static] [Export ("pickerTouchBarItemWithIdentifier:labels:selectionMode:target:action:")] - NSPickerTouchBarItem Create (NSTouchBarItemIdentifier identifier, string[] labels, NSPickerTouchBarItemSelectionMode selectionMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSPickerTouchBarItem Create (NSTouchBarItemIdentifier identifier, string [] labels, NSPickerTouchBarItemSelectionMode selectionMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); [Static] [Export ("pickerTouchBarItemWithIdentifier:images:selectionMode:target:action:")] - NSPickerTouchBarItem Create (NSTouchBarItemIdentifier identifier, NSImage[] images, NSPickerTouchBarItemSelectionMode selectionMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); + NSPickerTouchBarItem Create (NSTouchBarItemIdentifier identifier, NSImage [] images, NSPickerTouchBarItemSelectionMode selectionMode, [NullAllowed] NSObject target, [NullAllowed] Selector action); [Export ("controlRepresentation", ArgumentSemantic.Assign)] NSPickerTouchBarItemControlRepresentation ControlRepresentation { get; set; } @@ -27809,11 +27697,10 @@ namespace AppKit { string CustomizationLabel { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface NSCollectionViewCompositionalLayoutConfiguration : NSCopying - { + interface NSCollectionViewCompositionalLayoutConfiguration : NSCopying { [Export ("scrollDirection", ArgumentSemantic.Assign)] NSCollectionViewScrollDirection ScrollDirection { get; set; } @@ -27821,36 +27708,33 @@ namespace AppKit { nfloat InterSectionSpacing { get; set; } [Export ("boundarySupplementaryItems", ArgumentSemantic.Copy)] - NSCollectionLayoutBoundarySupplementaryItem[] BoundarySupplementaryItems { get; set; } + NSCollectionLayoutBoundarySupplementaryItem [] BoundarySupplementaryItems { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface NSColorSampler - { + interface NSColorSampler { [Export ("showSamplerWithSelectionHandler:")] void ShowSampler (Action selectionHandler); } [NoMacCatalyst] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSControl))] [DesignatedDefaultCtor] - interface NSSwitch : NSAccessibilitySwitch - { + interface NSSwitch : NSAccessibilitySwitch { [Export ("state")] nint State { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [MacCatalyst (13, 0)] [BaseType (typeof (NSToolbarItem))] #if XAMCORE_5_0 [DisableDefaultCtor] #endif - interface NSMenuToolbarItem - { + interface NSMenuToolbarItem { [DesignatedInitializer] [Export ("initWithItemIdentifier:")] NativeHandle Constructor (string itemIdentifier); @@ -27871,12 +27755,11 @@ namespace AppKit { [NoMacCatalyst] delegate NSCollectionLayoutSection NSCollectionViewCompositionalLayoutSectionProvider (nint section, INSCollectionLayoutEnvironment layout); - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSCollectionViewLayout))] [DisableDefaultCtor] - interface NSCollectionViewCompositionalLayout - { + interface NSCollectionViewCompositionalLayout { [Export ("initWithSection:")] NativeHandle Constructor (NSCollectionLayoutSection section); @@ -27893,12 +27776,11 @@ namespace AppKit { NSCollectionViewCompositionalLayoutConfiguration Configuration { get; set; } } - [Mac (10,15)] - [MacCatalyst (13,0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSTouchBarItem))] [DisableDefaultCtor] - interface NSStepperTouchBarItem - { + interface NSStepperTouchBarItem { [Static] [Export ("stepperTouchBarItemWithIdentifier:formatter:")] NSStepperTouchBarItem Create (NSTouchBarItemIdentifier identifier, NSFormatter formatter); @@ -27931,10 +27813,9 @@ namespace AppKit { } [Protocol] - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] - interface NSTextInputTraits - { + interface NSTextInputTraits { [Export ("autocorrectionType", ArgumentSemantic.Assign)] NSTextInputTraitType AutocorrectionType { get; set; } @@ -27969,10 +27850,9 @@ namespace AppKit { interface INSTextCheckingClient { } [Protocol] - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] - interface NSTextCheckingClient : NSTextInputTraits, NSTextInputClient - { + interface NSTextCheckingClient : NSTextInputTraits, NSTextInputClient { [Abstract] [Export ("annotatedSubstringForProposedRange:actualRange:")] [return: NullAllowed] @@ -28008,12 +27888,11 @@ namespace AppKit { NSCandidateListTouchBarItem CandidateListTouchBarItem { get; } } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSWorkspaceOpenConfiguration : NSCopying - { + interface NSWorkspaceOpenConfiguration : NSCopying { [Static] [Export ("configuration")] NSWorkspaceOpenConfiguration Create (); @@ -28043,7 +27922,7 @@ namespace AppKit { bool AllowsRunningApplicationSubstitution { get; set; } [Export ("arguments", ArgumentSemantic.Copy)] - string[] Arguments { get; set; } + string [] Arguments { get; set; } [Export ("environment", ArgumentSemantic.Copy)] NSDictionary Environment { get; set; } @@ -28066,12 +27945,11 @@ namespace AppKit { bool RequiresUniversalLinks { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextCheckingController - { + interface NSTextCheckingController { [Export ("initWithClient:")] [DesignatedInitializer] NativeHandle Constructor (INSTextCheckingClient client); @@ -28126,7 +28004,7 @@ namespace AppKit { void UpdateCandidates (); [Export ("validAnnotations")] - string[] ValidAnnotations { get; } + string [] ValidAnnotations { get; } [Export ("menuAtIndex:clickedOnSelection:effectiveRange:")] [return: NullAllowed] @@ -28142,7 +28020,7 @@ namespace AppKit { [NoMacCatalyst] delegate NSView NSCollectionViewDiffableDataSourceSupplementaryViewProvider (NSCollectionView collectionView, string str, NSIndexPath indexPath); - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -28173,8 +28051,7 @@ namespace AppKit { [Mac (10, 15)] [NoMacCatalyst] - public enum NSFontDescriptorSystemDesign - { + public enum NSFontDescriptorSystemDesign { [Field ("NSFontDescriptorSystemDesignDefault")] Default, @@ -28190,8 +28067,7 @@ namespace AppKit { [Mac (11, 0)] [NoMacCatalyst] - public enum NSFontTextStyle - { + public enum NSFontTextStyle { [Field ("NSFontTextStyleLargeTitle")] LargeTitle, @@ -28226,14 +28102,13 @@ namespace AppKit { Caption2, } - [Mac (10,15)] + [Mac (10, 15)] [MacCatalyst (13, 0)] [BaseType (typeof (NSToolbarItem))] #if XAMCORE_5_0 [DisableDefaultCtor] #endif - interface NSSharingServicePickerToolbarItem - { + interface NSSharingServicePickerToolbarItem { [DesignatedInitializer] [Export ("initWithItemIdentifier:")] NativeHandle Constructor (string itemIdentifier); @@ -28250,7 +28125,7 @@ namespace AppKit { public interface INSSharingServicePickerToolbarItemDelegate { } - [Mac (10,15)] + [Mac (10, 15)] [NoMacCatalyst] #if NET [Protocol, Model] @@ -28258,19 +28133,17 @@ namespace AppKit { [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSSharingServicePickerDelegate))] - interface NSSharingServicePickerToolbarItemDelegate - { + interface NSSharingServicePickerToolbarItemDelegate { [Abstract] [Export ("itemsForSharingServicePickerToolbarItem:")] - NSObject[] GetItems (NSSharingServicePickerToolbarItem pickerToolbarItem); + NSObject [] GetItems (NSSharingServicePickerToolbarItem pickerToolbarItem); } [NoMacCatalyst] - [Mac (11,0)] - [BaseType (typeof(NSToolbarItem))] + [Mac (11, 0)] + [BaseType (typeof (NSToolbarItem))] [DisableDefaultCtor] - interface NSSearchToolbarItem - { + interface NSSearchToolbarItem { [DesignatedInitializer] [Export ("initWithItemIdentifier:")] NativeHandle Constructor (string itemIdentifier); @@ -28299,25 +28172,25 @@ namespace AppKit { [NoMacCatalyst] delegate NSView NSTableViewDiffableDataSourceSectionHeaderViewProvider (NSTableView tableView, nint row, NSObject sectionId); - [Mac (11,0)] + [Mac (11, 0)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTableViewDiffableDataSource : NSTableViewDataSource + interface NSTableViewDiffableDataSource : NSTableViewDataSource where SectionIdentifierType : NSObject where ItemIdentifierType : NSObject { [Export ("initWithTableView:cellProvider:")] NativeHandle Constructor (NSTableView tableView, NSTableViewDiffableDataSourceCellProvider cellProvider); [Export ("snapshot")] - NSDiffableDataSourceSnapshot Snapshot (); + NSDiffableDataSourceSnapshot Snapshot (); [Export ("applySnapshot:animatingDifferences:")] - void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences); + void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences); [Export ("applySnapshot:animatingDifferences:completion:")] [Async] - void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences, [NullAllowed] Action completion); + void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences, [NullAllowed] Action completion); [Export ("itemIdentifierForRow:")] [return: NullAllowed] @@ -28346,8 +28219,7 @@ namespace AppKit { [Mac (11, 0)] [NoMacCatalyst] [Protocol] - interface NSTextContent - { + interface NSTextContent { [Abstract] [Export ("contentType")] NSString GetContentType (); @@ -28370,12 +28242,11 @@ namespace AppKit { OneTimeCode, } - [Mac (11,0)] + [Mac (11, 0)] [NoMacCatalyst] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTintConfiguration : NSCopying, NSSecureCoding - { + interface NSTintConfiguration : NSCopying, NSSecureCoding { [Static] [Export ("defaultTintConfiguration", ArgumentSemantic.Strong)] NSTintConfiguration DefaultTintConfiguration { get; } @@ -28402,16 +28273,15 @@ namespace AppKit { bool AdaptsToUserAccentColor { get; } } - [Mac (11,0)] + [Mac (11, 0)] [NoMacCatalyst] - [BaseType (typeof(NSToolbarItem))] + [BaseType (typeof (NSToolbarItem))] [DisableDefaultCtor] - interface NSTrackingSeparatorToolbarItem - { + interface NSTrackingSeparatorToolbarItem { [DesignatedInitializer] [Export ("initWithItemIdentifier:")] NativeHandle Constructor (string itemIdentifier); - + [Static] [Export ("trackingSeparatorToolbarItemWithIdentifier:splitView:dividerIndex:")] NSTrackingSeparatorToolbarItem GetTrackingSeparatorToolbar (string identifier, NSSplitView splitView, nint dividerIndex); @@ -28423,12 +28293,11 @@ namespace AppKit { nint DividerIndex { get; set; } } - [Mac (11,0)] + [Mac (11, 0)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSImageSymbolConfiguration : NSCopying, NSSecureCoding - { + interface NSImageSymbolConfiguration : NSCopying, NSSecureCoding { [Static] [Export ("configurationWithPointSize:weight:scale:")] NSImageSymbolConfiguration Create (nfloat pointSize, double weight, NSImageSymbolScale scale); @@ -28449,40 +28318,39 @@ namespace AppKit { [Export ("configurationWithScale:")] NSImageSymbolConfiguration Create (NSImageSymbolScale scale); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("configurationWithHierarchicalColor:")] NSImageSymbolConfiguration Create (NSColor hierarchicalColor); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("configurationWithPaletteColors:")] - NSImageSymbolConfiguration Create (NSColor[] paletteColors); + NSImageSymbolConfiguration Create (NSColor [] paletteColors); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("configurationPreferringMulticolor")] NSImageSymbolConfiguration Create (); - [Mac (12,0)] + [Mac (12, 0)] [Export ("configurationByApplyingConfiguration:")] NSImageSymbolConfiguration Create (NSImageSymbolConfiguration configuration); - [Mac (13,0)] + [Mac (13, 0)] [Static] [Export ("configurationPreferringMonochrome")] NSImageSymbolConfiguration CreateConfigurationPreferringMonochrome (); - [Mac (13,0)] + [Mac (13, 0)] [Static] [Export ("configurationPreferringHierarchical")] NSImageSymbolConfiguration CreateConfigurationPreferringHierarchical (); } - [NoMacCatalyst, Mac (13,0)] + [NoMacCatalyst, Mac (13, 0)] [BaseType (typeof (NSControl))] - interface NSComboButton - { + interface NSComboButton { [DesignatedInitializer] [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -28517,10 +28385,9 @@ namespace AppKit { interface INSPreviewRepresentableActivityItem { } - [NoMacCatalyst, Mac (13,0)] + [NoMacCatalyst, Mac (13, 0)] [Protocol] - interface NSPreviewRepresentableActivityItem - { + interface NSPreviewRepresentableActivityItem { [Abstract] [Export ("item", ArgumentSemantic.Strong)] NSObject Item { get; } @@ -28535,11 +28402,10 @@ namespace AppKit { NSItemProvider IconProvider { get; } } - [NoMacCatalyst, Mac (13,0)] + [NoMacCatalyst, Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSPreviewRepresentingActivityItem : NSPreviewRepresentableActivityItem - { + interface NSPreviewRepresentingActivityItem : NSPreviewRepresentableActivityItem { [NoiOS] [Export ("initWithItem:title:image:icon:")] NativeHandle Constructor (NSObject item, [NullAllowed] string title, [NullAllowed] NSImage image, [NullAllowed] NSImage icon); diff --git a/src/arkit.cs b/src/arkit.cs index d4adbd5e9e..70b9e6ade9 100644 --- a/src/arkit.cs +++ b/src/arkit.cs @@ -42,7 +42,7 @@ using NativeHandle = System.IntPtr; namespace ARKit { - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARTrackingState : long { @@ -51,7 +51,7 @@ namespace ARKit { Normal, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARTrackingStateReason : long { @@ -59,11 +59,11 @@ namespace ARKit { Initializing, ExcessiveMotion, InsufficientFeatures, - [iOS (11,3)] + [iOS (11, 3)] Relocalizing, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [ErrorDomain ("ARErrorDomain")] [Native] @@ -83,10 +83,10 @@ namespace ARKit { InvalidReferenceObject = 301, InvalidWorldMap = 302, InvalidConfiguration = 303, - #if !NET +#if !NET [Obsolete ("Please use the 'InvalidCollaborationData' value instead.")] CollaborationDataUnavailable = InvalidCollaborationData, - #endif +#endif InvalidCollaborationData = 304, InsufficientFeatures = 400, ObjectMergeFailed = 401, @@ -94,31 +94,31 @@ namespace ARKit { RequestFailed = 501, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Flags] [Native] public enum ARHitTestResultType : ulong { FeaturePoint = 1 << 0, EstimatedHorizontalPlane = 1 << 1, - [iOS (11,3)] + [iOS (11, 3)] EstimatedVerticalPlane = 1 << 2, ExistingPlane = 1 << 3, ExistingPlaneUsingExtent = 1 << 4, - [iOS (11,3)] + [iOS (11, 3)] ExistingPlaneUsingGeometry = 1 << 5, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARPlaneAnchorAlignment : long { Horizontal, - [iOS (11,3)] + [iOS (11, 3)] Vertical, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Flags] [Native] @@ -127,11 +127,11 @@ namespace ARKit { ResetTracking = 1 << 0, RemoveExistingAnchors = 1 << 1, StopTrackedRaycasts = 1 << 2, - [iOS (13,4)] + [iOS (13, 4)] ResetSceneReconstruction = (1 << 3), } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARWorldAlignment : long { @@ -140,18 +140,18 @@ namespace ARKit { Camera, } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Flags] [Native] public enum ARPlaneDetection : ulong { None = 0, Horizontal = 1 << 0, - [iOS (11,3)] + [iOS (11, 3)] Vertical = 1 << 1, } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] [Native] public enum AREnvironmentTexturing : long { @@ -160,7 +160,7 @@ namespace ARKit { Automatic, } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARWorldMappingStatus : long { @@ -170,7 +170,7 @@ namespace ARKit { Mapped, } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARPlaneClassificationStatus : long { @@ -180,7 +180,7 @@ namespace ARKit { Known, } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] [Native] public enum ARPlaneClassification : long { @@ -190,24 +190,24 @@ namespace ARKit { Ceiling, Table, Seat, - [iOS (13,0)] + [iOS (13, 0)] Window, - [iOS (13,0)] + [iOS (13, 0)] Door, } - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum ARCoachingGoal : long { Tracking, HorizontalPlane, VerticalPlane, AnyPlane, - [iOS (15,0)] + [iOS (15, 0)] GeoTracking, } - [iOS (13,0)] + [iOS (13, 0)] [Flags] [Native] public enum ARFrameSemantics : long { @@ -215,20 +215,20 @@ namespace ARKit { PersonSegmentation = 1 << 0, PersonSegmentationWithDepth = (1 << 1) | (1 << 0), BodyDetection = 1 << 2, - [iOS (14,0)] + [iOS (14, 0)] SceneDepth = (1 << 3), - [iOS (14,0)] + [iOS (14, 0)] SmoothedSceneDepth = (1 << 4), } - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum ARMatteResolution : long { Full = 0, Half = 1, } - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum ARRaycastTarget : long { ExistingPlaneGeometry, @@ -236,7 +236,7 @@ namespace ARKit { EstimatedPlane, } - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum ARRaycastTargetAlignment : long { Horizontal, @@ -244,13 +244,13 @@ namespace ARKit { Any, } - [iOS (13,0)] + [iOS (13, 0)] public enum ARSegmentationClass : byte { None = 0, Person = 255, } - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum ARCollaborationDataPriority : long { Critical, @@ -307,7 +307,7 @@ namespace ARKit { VisualLocalizationFailed, } - [iOS (14,3)] + [iOS (14, 3)] [Native] public enum ARAppClipCodeUrlDecodingState : long { Decoding, @@ -315,7 +315,7 @@ namespace ARKit { Decoded, } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] [Protocol] [Advice ("To conform to 'ARAnchorCopying' you need to implement:\n'[Export (\"initWithAnchor:\")]'\n'public YourConstructor (ARAnchor anchor)'")] @@ -324,7 +324,7 @@ namespace ARKit { // @required -(instancetype _Nonnull)initWithAnchor:(ARAnchor * _Nonnull)anchor; } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -333,11 +333,11 @@ namespace ARKit { [Export ("identifier")] NSUuid Identifier { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed, Export ("name")] string Name { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("sessionIdentifier")] NSUuid SessionIdentifier { get; } @@ -351,18 +351,18 @@ namespace ARKit { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (Matrix4 transform); - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithName:transform:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (string name, Matrix4 transform); // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithAnchor:")] NativeHandle Constructor (ARAnchor anchor); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -395,11 +395,11 @@ namespace ARKit { [Export ("imageResolution")] CGSize ImageResolution { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("exposureDuration")] double ExposureDuration { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("exposureOffset")] float ExposureOffset { get; } @@ -419,7 +419,7 @@ namespace ARKit { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] CGPoint Project (Vector3 point, UIInterfaceOrientation orientation, CGSize viewportSize); - [iOS (12,0)] + [iOS (12, 0)] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] [Export ("unprojectPoint:ontoPlaneWithTransform:orientation:viewportSize:")] Vector3 Unproject (CGPoint point, Matrix4 planeTransform, UIInterfaceOrientation orientation, CGSize viewportSize); @@ -433,7 +433,7 @@ namespace ARKit { Matrix4 GetViewMatrix (UIInterfaceOrientation orientation); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -445,11 +445,11 @@ namespace ARKit { [Export ("capturedImage")] CVPixelBuffer CapturedImage { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("cameraGrainTexture")] IMTLTexture CameraGrainTexture { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("cameraGrainIntensity")] float CameraGrainIntensity { get; } @@ -463,7 +463,7 @@ namespace ARKit { ARCamera Camera { get; } [Export ("anchors", ArgumentSemantic.Copy)] - ARAnchor[] Anchors { get; } + ARAnchor [] Anchors { get; } [NullAllowed, Export ("lightEstimate", ArgumentSemantic.Strong)] ARLightEstimate LightEstimate { get; } @@ -471,27 +471,27 @@ namespace ARKit { [NullAllowed, Export ("rawFeaturePoints", ArgumentSemantic.Strong)] ARPointCloud RawFeaturePoints { get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("worldMappingStatus")] ARWorldMappingStatus WorldMappingStatus { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("segmentationBuffer")] CVPixelBuffer SegmentationBuffer { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("estimatedDepthData")] CVPixelBuffer EstimatedDepthData { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("detectedBody")] ARBody2D DetectedBody { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'ARSession.Raycast' instead.")] [Export ("hitTest:types:")] - ARHitTestResult[] HitTest (CGPoint point, ARHitTestResultType types); + ARHitTestResult [] HitTest (CGPoint point, ARHitTestResultType types); - [iOS (13,0)] + [iOS (13, 0)] [Export ("raycastQueryFromPoint:allowingTarget:alignment:")] ARRaycastQuery CreateRaycastQuery (CGPoint point, ARRaycastTarget target, ARRaycastTargetAlignment alignment); @@ -511,12 +511,12 @@ namespace ARKit { [Export ("smoothedSceneDepth", ArgumentSemantic.Strong)] ARDepthData SmoothedSceneDepth { get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("exifData", ArgumentSemantic.Strong)] NSDictionary ExifData { get; } } - [iOS (11,0)] + [iOS (11, 0)] [Deprecated (PlatformName.iOS, 14, 0, message: "Use Raycasting methods over HitTestResult ones.")] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] @@ -545,7 +545,7 @@ namespace ARKit { ARAnchor Anchor { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -558,19 +558,19 @@ namespace ARKit { nfloat AmbientColorTemperature { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARPlaneAnchor { // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithAnchor:")] NativeHandle Constructor (ARAnchor anchor); // [Export ("initWithTransform:")] marked as NS_UNAVAILABLE - [iOS (12,0)] + [iOS (12, 0)] [Static] [Export ("classificationSupported")] bool ClassificationSupported { [Bind ("isClassificationSupported")] get; } @@ -591,25 +591,25 @@ namespace ARKit { get; } - [iOS (11,3)] + [iOS (11, 3)] [Export ("geometry", ArgumentSemantic.Strong)] ARPlaneGeometry Geometry { get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("classificationStatus", ArgumentSemantic.Assign)] ARPlaneClassificationStatus ClassificationStatus { get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("classification", ArgumentSemantic.Assign)] ARPlaneClassification Classification { get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("planeExtent")] ARPlaneExtent PlaneExtent { get; } } - [iOS (11,3)] - [BaseType (typeof(NSObject))] + [iOS (11, 3)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARPlaneGeometry : NSSecureCoding { [Export ("vertexCount")] @@ -641,8 +641,8 @@ namespace ARKit { IntPtr GetRawBoundaryVertices (); } - [iOS (11,3)] - [BaseType (typeof(SCNGeometry))] + [iOS (11, 3)] + [BaseType (typeof (SCNGeometry))] [DisableDefaultCtor] interface ARSCNPlaneGeometry { [Static] @@ -654,7 +654,7 @@ namespace ARKit { void Update (ARPlaneGeometry planeGeometry); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -672,9 +672,9 @@ namespace ARKit { IntPtr GetRawIdentifiers (); } - [iOS (11,3)] + [iOS (11, 3)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARReferenceImage : NSCopying { [NullAllowed, Export ("name")] @@ -683,11 +683,11 @@ namespace ARKit { [Export ("physicalSize")] CGSize PhysicalSize { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("resourceGroupName", ArgumentSemantic.Strong)] string ResourceGroupName { get; } - [iOS (13,0)] + [iOS (13, 0)] [Async] [Export ("validateWithCompletionHandler:")] void Validate (Action completionHandler); @@ -704,12 +704,12 @@ namespace ARKit { NSSet GetReferenceImagesInGroup (string name, [NullAllowed] NSBundle bundle); } - [iOS (11,3)] - [BaseType (typeof(NSObject))] + [iOS (11, 3)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARVideoFormat : NSCopying { - [iOS (13,0)] + [iOS (13, 0)] [Export ("captureDevicePosition")] AVCaptureDevicePosition CaptureDevicePosition { get; } @@ -719,23 +719,23 @@ namespace ARKit { [Export ("framesPerSecond")] nint FramesPerSecond { get; } - [iOS (14,5)] + [iOS (14, 5)] [Export ("captureDeviceType")] #if NET [BindAs (typeof (AVCaptureDeviceType))] #endif NSString CaptureDeviceType { get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("isRecommendedForHighResolutionFrameCapturing")] bool IsRecommendedForHighResolutionFrameCapturing { get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("videoHDRSupported")] bool IsVideoHdrSupported { [Bind ("isVideoHDRSupported")] get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (SCNView))] interface ARSCNView : ARSessionProviding { @@ -753,11 +753,11 @@ namespace ARKit { [Export ("automaticallyUpdatesLighting")] bool AutomaticallyUpdatesLighting { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("rendersCameraGrain")] bool RendersCameraGrain { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("rendersMotionBlur")] bool RendersMotionBlur { get; set; } @@ -771,22 +771,22 @@ namespace ARKit { [Export ("hitTest:types:")] [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CreateRaycastQuery' instead.")] - ARHitTestResult[] HitTest (CGPoint point, ARHitTestResultType types); + ARHitTestResult [] HitTest (CGPoint point, ARHitTestResultType types); - [iOS (12,0)] + [iOS (12, 0)] [Export ("unprojectPoint:ontoPlaneWithTransform:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Vector3 Unproject (CGPoint point, Matrix4 planeTransform); - [iOS (13,0)] + [iOS (13, 0)] [Export ("raycastQueryFromPoint:allowingTarget:alignment:")] [return: NullAllowed] ARRaycastQuery CreateRaycastQuery (CGPoint point, ARRaycastTarget target, ARRaycastTargetAlignment alignment); } - interface IARSCNViewDelegate {} + interface IARSCNViewDelegate { } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -809,7 +809,7 @@ namespace ARKit { void DidRemoveNode (ISCNSceneRenderer renderer, SCNNode node, ARAnchor anchor); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (SKView))] interface ARSKView : ARSessionProviding { @@ -831,12 +831,12 @@ namespace ARKit { [Deprecated (PlatformName.iOS, 14, 0, message: "Use Raycasting methods instead.")] [Export ("hitTest:types:")] - ARHitTestResult[] HitTest (CGPoint point, ARHitTestResultType types); + ARHitTestResult [] HitTest (CGPoint point, ARHitTestResultType types); } - interface IARSKViewDelegate {} + interface IARSKViewDelegate { } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -861,12 +861,12 @@ namespace ARKit { delegate void GetGeolocationCallback (CLLocationCoordinate2D coordinate, double altitude, NSError error); - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] interface ARSession { - [iOS (13,0)] + [iOS (13, 0)] [Export ("identifier", ArgumentSemantic.Strong)] NSUuid Identifier { get; } @@ -897,49 +897,49 @@ namespace ARKit { [Export ("removeAnchor:")] void RemoveAnchor (ARAnchor anchor); - [iOS (11,3)] + [iOS (11, 3)] [Export ("setWorldOrigin:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void SetWorldOrigin (Matrix4 relativeTransform); - [iOS (12,0)] + [iOS (12, 0)] [Async] [Export ("getCurrentWorldMapWithCompletionHandler:")] void GetCurrentWorldMap (Action completionHandler); - [iOS (12,0)] + [iOS (12, 0)] [Async] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] [Export ("createReferenceObjectWithTransform:center:extent:completionHandler:")] void CreateReferenceObject (Matrix4 transform, Vector3 center, Vector3 extent, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] [Export ("raycast:")] - ARRaycastResult[] Raycast (ARRaycastQuery query); + ARRaycastResult [] Raycast (ARRaycastQuery query); - [iOS (13,0)] + [iOS (13, 0)] [Async] [Export ("trackedRaycast:updateHandler:")] [return: NullAllowed] - ARTrackedRaycast TrackedRaycast (ARRaycastQuery query, Action updateHandler); + ARTrackedRaycast TrackedRaycast (ARRaycastQuery query, Action updateHandler); - [iOS (13,0)] + [iOS (13, 0)] [Export ("updateWithCollaborationData:")] void Update (ARCollaborationData collaborationData); [iOS (14, 0)] - [Async (ResultTypeName="GeoLocationForPoint")] + [Async (ResultTypeName = "GeoLocationForPoint")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] [Export ("getGeoLocationForPoint:completionHandler:")] void GetGeoLocation (Vector3 position, GetGeolocationCallback completionHandler); - [iOS (16,0)] + [iOS (16, 0)] [Async] [Export ("captureHighResolutionFrameWithCompletion:")] void CaptureHighResolutionFrame (Action handler); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Protocol] interface ARSessionObserver { @@ -956,14 +956,14 @@ namespace ARKit { [Export ("sessionInterruptionEnded:")] void InterruptionEnded (ARSession session); - [iOS (11,3)] + [iOS (11, 3)] [Export ("sessionShouldAttemptRelocalization:")] bool ShouldAttemptRelocalization (ARSession session); [Export ("session:didOutputAudioSampleBuffer:")] void DidOutputAudioSampleBuffer (ARSession session, CMSampleBuffer audioSampleBuffer); - [iOS (13,0)] + [iOS (13, 0)] [Export ("session:didOutputCollaborationData:")] void DidOutputCollaborationData (ARSession session, ARCollaborationData data); @@ -972,9 +972,9 @@ namespace ARKit { void DidChangeGeoTrackingStatus (ARSession session, ARGeoTrackingStatus geoTrackingStatus); } - interface IARSessionDelegate {} + interface IARSessionDelegate { } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -984,16 +984,16 @@ namespace ARKit { void DidUpdateFrame (ARSession session, ARFrame frame); [Export ("session:didAddAnchors:")] - void DidAddAnchors (ARSession session, ARAnchor[] anchors); + void DidAddAnchors (ARSession session, ARAnchor [] anchors); [Export ("session:didUpdateAnchors:")] - void DidUpdateAnchors (ARSession session, ARAnchor[] anchors); + void DidUpdateAnchors (ARSession session, ARAnchor [] anchors); [Export ("session:didRemoveAnchors:")] - void DidRemoveAnchors (ARSession session, ARAnchor[] anchors); + void DidRemoveAnchors (ARSession session, ARAnchor [] anchors); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [Abstract] @@ -1006,17 +1006,17 @@ namespace ARKit { #if !NET // even if static - it's abstract - [iOS (11,3)] + [iOS (11, 3)] [Static] [Obsolete ("This is an abstract static method. You need to call 'GetSupportedVideoFormats ()' from a subclass to get results.")] - ARVideoFormat[] SupportedVideoFormats { + ARVideoFormat [] SupportedVideoFormats { // avoid the native exception leading to a crash [Wrap ("Array.Empty ()")] get; } #endif - [iOS (11,3)] + [iOS (11, 3)] [Export ("videoFormat", ArgumentSemantic.Strong)] ARVideoFormat VideoFormat { get; set; } @@ -1029,139 +1029,139 @@ namespace ARKit { [Export ("providesAudioData")] bool ProvidesAudioData { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("frameSemantics", ArgumentSemantic.Assign)] ARFrameSemantics FrameSemantics { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); - [iOS (16,0)] + [iOS (16, 0)] [Static] [NullAllowed, Export ("configurableCaptureDeviceForPrimaryCamera")] AVCaptureDevice ConfigurableCaptureDeviceForPrimaryCamera { get; } - [iOS (16,0)] + [iOS (16, 0)] [Static] [NullAllowed, Export ("recommendedVideoFormatFor4KResolution")] ARVideoFormat RecommendedVideoFormatFor4KResolution { get; } - [iOS (16,0)] + [iOS (16, 0)] [Static] [NullAllowed, Export ("recommendedVideoFormatForHighResolutionFrameCapturing")] ARVideoFormat RecommendedVideoFormatForHighResolutionFrameCapturing { get; } - [iOS (16,0)] + [iOS (16, 0)] [NullAllowed, Export ("videoHDRAllowed")] bool VideoHdrAllowed { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (ARConfiguration))] interface ARWorldTrackingConfiguration { - [iOS (11,3)] + [iOS (11, 3)] [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); - [iOS (11,3)] + [iOS (11, 3)] [Export ("autoFocusEnabled")] bool AutoFocusEnabled { [Bind ("isAutoFocusEnabled")] get; set; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("environmentTexturing", ArgumentSemantic.Assign)] AREnvironmentTexturing EnvironmentTexturing { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("wantsHDREnvironmentTextures")] bool WantsHdrEnvironmentTextures { get; set; } [Export ("planeDetection", ArgumentSemantic.Assign)] ARPlaneDetection PlaneDetection { get; set; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed, Export ("initialWorldMap", ArgumentSemantic.Strong)] ARWorldMap InitialWorldMap { get; set; } - [iOS (11,3)] + [iOS (11, 3)] [NullAllowed] //null_resettable [Export ("detectionImages", ArgumentSemantic.Copy)] NSSet DetectionImages { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("automaticImageScaleEstimationEnabled")] bool AutomaticImageScaleEstimationEnabled { get; set; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("maximumNumberOfTrackedImages")] nint MaximumNumberOfTrackedImages { get; set; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("detectionObjects", ArgumentSemantic.Copy)] NSSet DetectionObjects { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("collaborationEnabled")] bool CollaborationEnabled { [Bind ("isCollaborationEnabled")] get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsUserFaceTracking")] bool SupportsUserFaceTracking { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("userFaceTrackingEnabled")] bool UserFaceTrackingEnabled { [Bind ("userFaceTrackingEnabled")] get; set; } - [iOS (14,3)] + [iOS (14, 3)] [Export ("appClipCodeTrackingEnabled")] bool AppClipCodeTrackingEnabled { get; set; } - [iOS (14,3)] + [iOS (14, 3)] [Static] [Export ("supportsAppClipCodeTracking")] bool SupportsAppClipCodeTracking { get; } - [iOS (13,4)] + [iOS (13, 4)] [Static] [Export ("supportsSceneReconstruction:")] bool SupportsSceneReconstruction (ARSceneReconstruction sceneReconstruction); - [iOS (13,4)] + [iOS (13, 4)] [Export ("sceneReconstruction", ArgumentSemantic.Assign)] ARSceneReconstruction SceneReconstruction { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARConfiguration))] + [BaseType (typeof (ARConfiguration))] interface AROrientationTrackingConfiguration { - [iOS (11,3)] + [iOS (11, 3)] [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); - [iOS (11,3)] + [iOS (11, 3)] [Export ("autoFocusEnabled")] bool AutoFocusEnabled { [Bind ("isAutoFocusEnabled")] get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Static] interface ARSCNDebugOptions { @@ -1173,7 +1173,7 @@ namespace ARKit { SCNDebugOptions ShowFeaturePoints { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Protocol] interface ARTrackable { @@ -1182,40 +1182,40 @@ namespace ARKit { bool IsTracked { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARConfiguration))] + [BaseType (typeof (ARConfiguration))] interface ARFaceTrackingConfiguration { - [iOS (11,3)] + [iOS (11, 3)] [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportedNumberOfTrackedFaces")] nint SupportedNumberOfTrackedFaces { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("maximumNumberOfTrackedFaces")] nint MaximumNumberOfTrackedFaces { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsWorldTracking")] bool SupportsWorldTracking { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("worldTrackingEnabled")] bool WorldTrackingEnabled { [Bind ("isWorldTrackingEnabled")] get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [StrongDictionary ("ARBlendShapeLocationKeys")] interface ARBlendShapeLocationOptions { @@ -1322,11 +1322,11 @@ namespace ARKit { float NoseSneerRight { get; set; } - [iOS (12,0)] + [iOS (12, 0)] float TongueOut { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] [Static] [Internal] @@ -1485,18 +1485,18 @@ namespace ARKit { [Field ("ARBlendShapeLocationNoseSneerRight")] NSString NoseSneerRightKey { get; } - [iOS (12,0)] + [iOS (12, 0)] [Field ("ARBlendShapeLocationTongueOut")] NSString TongueOutKey { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARAnchor))] + [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARFaceAnchor : ARTrackable { // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithAnchor:")] NativeHandle Constructor (ARAnchor anchor); @@ -1509,21 +1509,21 @@ namespace ARKit { [Export ("geometry")] ARFaceGeometry Geometry { get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("leftEyeTransform")] Matrix4 LeftEyeTransform { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("rightEyeTransform")] Matrix4 RightEyeTransform { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("lookAtPoint")] Vector3 LookAtPoint { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1538,9 +1538,9 @@ namespace ARKit { ARBlendShapeLocationOptions BlendShapes { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARFaceGeometry : NSCopying, NSSecureCoding { [EditorBrowsable (EditorBrowsableState.Advanced)] @@ -1572,9 +1572,9 @@ namespace ARKit { IntPtr GetRawTriangleIndices (); } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(SCNGeometry))] + [BaseType (typeof (SCNGeometry))] [DisableDefaultCtor] interface ARSCNFaceGeometry { #if !NET @@ -1607,27 +1607,27 @@ namespace ARKit { void Update (ARFaceGeometry faceGeometry); } - [iOS (11,3)] + [iOS (11, 3)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARAnchor))] + [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARImageAnchor : ARTrackable { // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithAnchor:")] NativeHandle Constructor (ARAnchor anchor); [Export ("referenceImage", ArgumentSemantic.Strong)] ARReferenceImage ReferenceImage { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("estimatedScaleFactor")] nfloat EstimatedScaleFactor { get; } } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARLightEstimate))] + [BaseType (typeof (ARLightEstimate))] [DisableDefaultCtor] interface ARDirectionalLightEstimate { [Export ("sphericalHarmonicsCoefficients", ArgumentSemantic.Copy)] @@ -1643,13 +1643,13 @@ namespace ARKit { nfloat PrimaryLightIntensity { get; } } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARConfiguration))] + [BaseType (typeof (ARConfiguration))] interface ARImageTrackingConfiguration { [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); [Export ("autoFocusEnabled")] bool AutoFocusEnabled { [Bind ("isAutoFocusEnabled")] get; set; } @@ -1660,19 +1660,19 @@ namespace ARKit { [Export ("maximumNumberOfTrackedImages")] nint MaximumNumberOfTrackedImages { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARConfiguration))] + [BaseType (typeof (ARConfiguration))] interface ARObjectScanningConfiguration { [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); [Export ("autoFocusEnabled")] bool AutoFocusEnabled { [Bind ("isAutoFocusEnabled")] get; set; } @@ -1680,15 +1680,15 @@ namespace ARKit { [Export ("planeDetection", ArgumentSemantic.Assign)] ARPlaneDetection PlaneDetection { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARAnchor))] + [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface AREnvironmentProbeAnchor { // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) @@ -1713,9 +1713,9 @@ namespace ARKit { } } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARReferenceObject : NSSecureCoding { [Export ("initWithArchiveURL:error:")] @@ -1742,7 +1742,7 @@ namespace ARKit { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("resourceGroupName", ArgumentSemantic.Strong)] string ResourceGroupName { get; } @@ -1769,9 +1769,9 @@ namespace ARKit { NSString ArchiveExtension { get; } } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(ARAnchor))] + [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARObjectAnchor { // Inlined from 'ARAnchorCopying' protocol (we can't have constructors in interfaces) @@ -1782,9 +1782,9 @@ namespace ARKit { ARReferenceObject ReferenceObject { get; } } - [iOS (12,0)] + [iOS (12, 0)] [NoWatch, NoTV, NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARWorldMap : NSCopying, NSSecureCoding { [Export ("center")] @@ -1800,14 +1800,14 @@ namespace ARKit { } [Export ("anchors", ArgumentSemantic.Copy)] - ARAnchor[] Anchors { get; set; } + ARAnchor [] Anchors { get; set; } [Export ("rawFeaturePoints", ArgumentSemantic.Strong)] ARPointCloud RawFeaturePoints { get; } } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARBody2D { @@ -1815,8 +1815,8 @@ namespace ARKit { ARSkeleton2D Skeleton { get; } } - [iOS (13,0)] - [BaseType (typeof(ARAnchor))] + [iOS (13, 0)] + [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARBodyAnchor : ARTrackable { @@ -1833,8 +1833,8 @@ namespace ARKit { nfloat EstimatedScaleFactor { get; } } - [iOS (13,0)] - [BaseType (typeof(UIView))] + [iOS (13, 0)] + [BaseType (typeof (UIView))] interface ARCoachingOverlayView { // inherited from UIView @@ -1868,15 +1868,15 @@ namespace ARKit { void SetActive (bool active, bool animated); } - interface IARCoachingOverlayViewDelegate {} + interface IARCoachingOverlayViewDelegate { } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ARCoachingOverlayViewDelegate { [Export ("coachingOverlayViewDidRequestSessionReset:")] @@ -1889,8 +1889,8 @@ namespace ARKit { void DidDeactivate (ARCoachingOverlayView coachingOverlayView); } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARCollaborationData : NSSecureCoding { @@ -1898,14 +1898,14 @@ namespace ARKit { ARCollaborationDataPriority Priority { get; } } - [iOS (13,0)] - [BaseType (typeof(ARConfiguration))] + [iOS (13, 0)] + [BaseType (typeof (ARConfiguration))] interface ARBodyTrackingConfiguration { // From the parent, needed in all subclasses [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); [Export ("autoFocusEnabled")] bool AutoFocusEnabled { [Bind ("isAutoFocusEnabled")] get; set; } @@ -1938,24 +1938,24 @@ namespace ARKit { [Export ("supportsFrameSemantics:")] bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); - [iOS (14,3)] + [iOS (14, 3)] [Export ("appClipCodeTrackingEnabled")] bool AppClipCodeTrackingEnabled { get; set; } - [iOS (14,3)] + [iOS (14, 3)] [Static] [Export ("supportsAppClipCodeTracking")] bool SupportsAppClipCodeTracking { get; } } - [iOS (13,0)] - [BaseType (typeof(ARConfiguration))] + [iOS (13, 0)] + [BaseType (typeof (ARConfiguration))] interface ARPositionalTrackingConfiguration { // From the parent, needed in all subclasses [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); [Export ("planeDetection", ArgumentSemantic.Assign)] ARPlaneDetection PlaneDetection { get; set; } @@ -1968,8 +1968,8 @@ namespace ARKit { bool SupportsFrameSemantics (ARFrameSemantics frameSemantics); } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARMatteGenerator { @@ -1984,8 +1984,8 @@ namespace ARKit { IMTLTexture GenerateDilatedDepth (ARFrame frame, IMTLCommandBuffer commandBuffer); } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARQuickLookPreviewItem : QLPreviewItem { @@ -2000,8 +2000,8 @@ namespace ARKit { bool AllowsContentScaling { get; set; } } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARRaycastQuery { @@ -2028,8 +2028,8 @@ namespace ARKit { ARRaycastTargetAlignment TargetAlignment { get; } } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARRaycastResult { @@ -2049,9 +2049,9 @@ namespace ARKit { ARAnchor Anchor { get; } } - interface IARSessionProviding {} + interface IARSessionProviding { } - [iOS (13,0)] + [iOS (13, 0)] [Protocol] interface ARSessionProviding { @@ -2060,8 +2060,8 @@ namespace ARKit { ARSession Session { get; } } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARSkeleton { @@ -2075,8 +2075,8 @@ namespace ARKit { bool IsJointTracked (nint jointIndex); } - [iOS (13,0)] - [BaseType (typeof(ARSkeleton))] + [iOS (13, 0)] + [BaseType (typeof (ARSkeleton))] [DisableDefaultCtor] interface ARSkeleton3D { @@ -2105,8 +2105,8 @@ namespace ARKit { Matrix4 GetLocalTransform (ARSkeletonJointName jointName); } - [iOS (13,0)] - [BaseType (typeof(ARSkeleton))] + [iOS (13, 0)] + [BaseType (typeof (ARSkeleton))] [DisableDefaultCtor] interface ARSkeleton2D { @@ -2123,8 +2123,8 @@ namespace ARKit { Vector2 GetLandmarkPoint (ARSkeletonJointName jointName); } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARSkeletonDefinition { @@ -2140,10 +2140,10 @@ namespace ARKit { nuint JointCount { get; } [Export ("jointNames")] - string[] JointNames { get; } + string [] JointNames { get; } [Export ("parentIndices")] - NSNumber[] ParentIndices { get; } + NSNumber [] ParentIndices { get; } [NullAllowed, Export ("neutralBodySkeleton3D")] ARSkeleton3D NeutralBodySkeleton3D { get; } @@ -2156,7 +2156,7 @@ namespace ARKit { nuint GetJointIndex (ARSkeletonJointName jointName); } - [iOS (13,0)] + [iOS (13, 0)] enum ARSkeletonJointName { [Field ("ARSkeletonJointNameRoot")] @@ -2184,8 +2184,8 @@ namespace ARKit { RightShoulder, } - [iOS (13,0)] - [BaseType (typeof(NSObject))] + [iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARTrackedRaycast { @@ -2193,7 +2193,7 @@ namespace ARKit { void StopTracking (); } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARParticipantAnchor { @@ -2206,7 +2206,7 @@ namespace ARKit { // [Export ("initWithName:")] marked as NS_UNAVAILABLE } - [iOS (13,4)] + [iOS (13, 4)] [Native] [Flags] enum ARSceneReconstruction : ulong { @@ -2215,7 +2215,7 @@ namespace ARKit { MeshWithClassification = (1 << 1) | (1 << 0), } - [iOS (13,4)] + [iOS (13, 4)] [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARMeshAnchor { @@ -2231,7 +2231,7 @@ namespace ARKit { ARMeshGeometry Geometry { get; } } - [iOS (13,4)] + [iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARGeometrySource : NSSecureCoding { @@ -2255,14 +2255,14 @@ namespace ARKit { nint Stride { get; } } - [iOS (13,4)] + [iOS (13, 4)] [Native] enum ARGeometryPrimitiveType : long { Line, Triangle, } - [iOS (13,4)] + [iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARGeometryElement : NSSecureCoding { @@ -2283,7 +2283,7 @@ namespace ARKit { ARGeometryPrimitiveType PrimitiveType { get; } } - [iOS (13,4)] + [iOS (13, 4)] [Native] enum ARMeshClassification : long { None, @@ -2296,7 +2296,7 @@ namespace ARKit { Door, } - [iOS (13,4)] + [iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ARMeshGeometry : NSSecureCoding { @@ -2360,7 +2360,7 @@ namespace ARKit { interface ARGeoTrackingConfiguration { [Static] [Export ("supportedVideoFormats")] - ARVideoFormat[] GetSupportedVideoFormats (); + ARVideoFormat [] GetSupportedVideoFormats (); [Export ("environmentTexturing", ArgumentSemantic.Assign)] AREnvironmentTexturing EnvironmentTexturing { get; set; } @@ -2380,11 +2380,11 @@ namespace ARKit { [Export ("maximumNumberOfTrackedImages")] nint MaximumNumberOfTrackedImages { get; set; } - [iOS (14,3)] + [iOS (14, 3)] [Export ("appClipCodeTrackingEnabled")] bool AppClipCodeTrackingEnabled { get; set; } - [iOS (14,3)] + [iOS (14, 3)] [Static] [Export ("supportsAppClipCodeTracking")] bool SupportsAppClipCodeTracking { get; } @@ -2426,7 +2426,7 @@ namespace ARKit { ARGeoTrackingStateReason StateReason { get; } } - [iOS (14,3)] + [iOS (14, 3)] [BaseType (typeof (ARAnchor))] [DisableDefaultCtor] interface ARAppClipCodeAnchor : ARTrackable { @@ -2445,10 +2445,9 @@ namespace ARKit { float Radius { get; } } - [iOS (16,0)] + [iOS (16, 0)] [BaseType (typeof (NSObject))] - interface ARPlaneExtent : NSSecureCoding - { + interface ARPlaneExtent : NSSecureCoding { [Export ("rotationOnYAxis")] float RotationOnYAxis { get; } diff --git a/src/assetslibrary.cs b/src/assetslibrary.cs index e614f81ef8..9029a07acf 100644 --- a/src/assetslibrary.cs +++ b/src/assetslibrary.cs @@ -32,7 +32,7 @@ namespace AssetsLibrary { [Export ("ALAssetLibraryDeletedAssetGroupsKey")] NSSet DeletedAssetGroupsKey { get; } } - + [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Photos' API instead.")] [BaseType (typeof (NSObject))] interface ALAssetsLibrary { @@ -47,19 +47,19 @@ namespace AssetsLibrary { [Export ("writeImageDataToSavedPhotosAlbum:metadata:completionBlock:")] [Async] - void WriteImageToSavedPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); + void WriteImageToSavedPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); [Export ("writeImageToSavedPhotosAlbum:metadata:completionBlock:")] [Async] - void WriteImageToSavedPhotosAlbum (CGImage imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); + void WriteImageToSavedPhotosAlbum (CGImage imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); [Export ("writeImageToSavedPhotosAlbum:orientation:completionBlock:")] [Async] - void WriteImageToSavedPhotosAlbum (CGImage imageData, ALAssetOrientation orientation, [NullAllowed] Action completionBlock); + void WriteImageToSavedPhotosAlbum (CGImage imageData, ALAssetOrientation orientation, [NullAllowed] Action completionBlock); [Export ("writeVideoAtPathToSavedPhotosAlbum:completionBlock:")] [Async] - void WriteVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action completionBlock); + void WriteVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action completionBlock); [Field ("ALAssetsLibraryChangedNotification")] [Notification] @@ -122,7 +122,7 @@ namespace AssetsLibrary { [Field ("ALAssetPropertyOrientation"), Internal] NSString _PropertyOrientation { get; } - + [Field ("ALAssetPropertyDate"), Internal] NSString _PropertyDate { get; } @@ -145,29 +145,29 @@ namespace AssetsLibrary { NSString _TypeUnknown { get; } [Export ("originalAsset")] - ALAsset OriginalAsset { get; } + ALAsset OriginalAsset { get; } [Export ("editable")] - bool Editable { [Bind ("isEditable")] get; } + bool Editable { [Bind ("isEditable")] get; } [Export ("aspectRatioThumbnail")] CGImage AspectRatioThumbnail (); [Export ("writeModifiedImageDataToSavedPhotosAlbum:metadata:completionBlock:")] [Async] - void WriteModifiedImageToSavedToPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); + void WriteModifiedImageToSavedToPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); [Export ("writeModifiedVideoAtPathToSavedPhotosAlbum:completionBlock:")] [Async] - void WriteModifiedVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action completionBlock); + void WriteModifiedVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action completionBlock); [Export ("setImageData:metadata:completionBlock:")] [Async] - void SetImageData (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); + void SetImageData (NSData imageData, NSDictionary metadata, [NullAllowed] Action completionBlock); [Export ("setVideoAtPath:completionBlock:")] [Async] - void SetVideoAtPath (NSUrl videoPathURL, [NullAllowed] Action completionBlock); + void SetVideoAtPath (NSUrl videoPathURL, [NullAllowed] Action completionBlock); } [BaseType (typeof (NSObject))] @@ -208,7 +208,7 @@ namespace AssetsLibrary { [Export ("filename")] string Filename { get; } - + [Export ("dimensions")] CGSize Dimensions { get; } } @@ -246,7 +246,7 @@ namespace AssetsLibrary { [Export ("enumerateAssetsUsingBlock:")] void Enumerate (ALAssetsEnumerator result); - + [Export ("enumerateAssetsWithOptions:usingBlock:")] void Enumerate (NSEnumerationOptions options, ALAssetsEnumerator result); @@ -263,7 +263,7 @@ namespace AssetsLibrary { NSString _PersistentID { get; } [Export ("editable")] - bool Editable { [Bind ("isEditable")] get; } + bool Editable { [Bind ("isEditable")] get; } [Export ("addAsset:")] bool AddAsset (ALAsset asset); diff --git a/src/audiounit.cs b/src/audiounit.cs index 00c9860e36..47a94b96ac 100644 --- a/src/audiounit.cs +++ b/src/audiounit.cs @@ -41,25 +41,25 @@ using NativeHandle = System.IntPtr; #endif namespace AudioUnit { - delegate AudioUnitStatus AUInternalRenderBlock (ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint outputBusNumber, AudioBuffers outputData, AURenderEventEnumerator realtimeEventListHead, [BlockCallback][NullAllowed]AURenderPullInputBlock pullInputBlock); + delegate AudioUnitStatus AUInternalRenderBlock (ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint outputBusNumber, AudioBuffers outputData, AURenderEventEnumerator realtimeEventListHead, [BlockCallback][NullAllowed] AURenderPullInputBlock pullInputBlock); delegate AudioUnitStatus AURenderBlock (ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint outputBusNumber, AudioBuffers outputData, [BlockCallback][NullAllowed] AURenderPullInputBlock pullInputBlock); internal delegate AudioUnitStatus AURenderPullInputBlock (ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint inputBusNumber, AudioBuffers inputData); delegate void AUScheduleParameterBlock (AUEventSampleTime eventSampleTime, uint rampDurationSampleFrames, ulong parameterAddress, float value); - [iOS (11, 0), Mac (10,13), TV (11,0), NoWatch] + [iOS (11, 0), Mac (10, 13), TV (11, 0), NoWatch] delegate int AUMidiOutputEventBlock (long eventSampleTime, byte cable, nint length, IntPtr midiBytes); delegate void AUImplementorValueObserver (AUParameter param, float value); delegate float AUImplementorValueProvider (AUParameter param); delegate void AUParameterObserver (ulong address, float value); - + delegate void AUVoiceIOMutedSpeechActivityEventListener (AUVoiceIOSpeechActivityEvent activityEvent); -// AUAudioTODO - We need testing for these bindings -// delegate void AUScheduleMidiEventBlock (AUEventSampleTime eventSampleTime, byte cable, nint length, ref byte midiBytes); -// delegate bool AUHostMusicalContextBlock (ref double currentTempo, ref double timeSignatureNumerator, ref nint timeSignatureDenominator, ref double currentBeatPosition, ref nint sampleOffsetToNextBeat, ref double currentMeasureDownbeatPosition); + // AUAudioTODO - We need testing for these bindings + // delegate void AUScheduleMidiEventBlock (AUEventSampleTime eventSampleTime, byte cable, nint length, ref byte midiBytes); + // delegate bool AUHostMusicalContextBlock (ref double currentTempo, ref double timeSignatureNumerator, ref nint timeSignatureDenominator, ref double currentBeatPosition, ref nint sampleOffsetToNextBeat, ref double currentMeasureDownbeatPosition); #if !NET [Advice ("The signature will change in the future to return a string")] delegate NSString AUImplementorStringFromValueCallback (AUParameter param, ref float? value); @@ -73,14 +73,14 @@ namespace AudioUnit { delegate bool AUHostTransportStateBlock (ref AUHostTransportStateFlags transportStateFlags, ref double currentSamplePosition, ref double cycleStartBeatPosition, ref double cycleEndBeatPosition); delegate void AURenderObserver (AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint outputBusNumber); delegate float AUImplementorValueFromStringCallback (AUParameter param, string str); - [NoTV][NoWatch] + [NoTV] + [NoWatch] delegate void AUMidiCIProfileChangedCallback (byte cable, byte channel, MidiCIProfile profile, bool enabled); - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AUAudioUnit - { + interface AUAudioUnit { [Static] [Export ("registerSubclass:asComponentDescription:name:version:")] // AUAudioUnitImplementation void RegisterSubclass (Class cls, AudioComponentDescription componentDescription, string name, uint version); @@ -153,18 +153,18 @@ namespace AudioUnit { // [Export ("scheduleMIDIEventListBlock")] // AUMidiEventListBlock ScheduleMidiEventListBlock { get; } -// [Export ("tokenByAddingRenderObserver:")] -// nint GetToken (AURenderObserver observer); + // [Export ("tokenByAddingRenderObserver:")] + // nint GetToken (AURenderObserver observer); -// [NullAllowed, Export ("scheduleMIDIEventBlock")] -// AUScheduleMidiEventBlock ScheduleMidiEventBlock { get; } + // [NullAllowed, Export ("scheduleMIDIEventBlock")] + // AUScheduleMidiEventBlock ScheduleMidiEventBlock { get; } -// [NullAllowed, Export ("musicalContextBlock", ArgumentSemantic.Copy)] -// AUHostMusicalContextBlock MusicalContextBlock { get; set; } + // [NullAllowed, Export ("musicalContextBlock", ArgumentSemantic.Copy)] + // AUHostMusicalContextBlock MusicalContextBlock { get; set; } [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("MIDIOutputNames", ArgumentSemantic.Copy)] - string[] MidiOutputNames { get; } + string [] MidiOutputNames { get; } // TODO: https://github.com/xamarin/xamarin-macios/issues/12489 // [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] @@ -200,15 +200,15 @@ namespace AudioUnit { uint MaximumFramesToRender { get; set; } [NullAllowed, Export ("parameterTree")] - + AUParameterTree ParameterTree { - get; + get; [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] set; } [Export ("parametersForOverviewWithCount:")] - NSNumber[] GetParametersForOverview (nint count); + NSNumber [] GetParametersForOverview (nint count); [Export ("allParameterValues")] bool AllParameterValues { get; } @@ -228,7 +228,7 @@ namespace AudioUnit { NSDictionary FullStateForDocument { get; set; } [NullAllowed, Export ("factoryPresets", ArgumentSemantic.Copy)] - AUAudioUnitPreset[] FactoryPresets { get; } + AUAudioUnitPreset [] FactoryPresets { get; } [NullAllowed, Export ("currentPreset", ArgumentSemantic.Retain)] AUAudioUnitPreset CurrentPreset { get; set; } @@ -252,16 +252,16 @@ namespace AudioUnit { bool RenderingOffline { [Bind ("isRenderingOffline")] get; set; } [NullAllowed, Export ("channelCapabilities", ArgumentSemantic.Copy)] - NSNumber[] ChannelCapabilities { get; } + NSNumber [] ChannelCapabilities { get; } [NullAllowed, Export ("contextName")] string ContextName { get; set; } - [iOS (10,0), Mac (10,12), TV (10,0), Watch (4, 0)] + [iOS (10, 0), Mac (10, 12), TV (10, 0), Watch (4, 0)] [Export ("supportsMPE")] bool SupportsMpe { get; } - [iOS (10,0), Mac (10,12), TV (10,0)] + [iOS (10, 0), Mac (10, 12), TV (10, 0)] [Export ("channelMap"), NullAllowed] NSNumber [] ChannelMap { get; set; } @@ -269,7 +269,7 @@ namespace AudioUnit { [Export ("requestViewControllerWithCompletionHandler:")] [Async] void RequestViewController (Action completionHandler); - + // AUAudioUnitImplementation [Export ("setRenderResourcesAllocated:")] void SetRenderResourcesAllocated (bool flag); @@ -287,35 +287,41 @@ namespace AudioUnit { [Export ("MIDIOutputBufferSizeHint")] nint MidiOutputBufferSizeHint { get; set; } - [Mac (10,14), iOS (12,0)][NoWatch][NoTV] + [Mac (10, 14), iOS (12, 0)] + [NoWatch] + [NoTV] [Export ("profileStateForCable:channel:")] MidiCIProfileState GetProfileState (byte cable, byte channel); - [Mac (10,14), iOS (12, 0), NoWatch, NoTV] + [Mac (10, 14), iOS (12, 0), NoWatch, NoTV] [NullAllowed, Export ("profileChangedBlock", ArgumentSemantic.Assign)] AUMidiCIProfileChangedCallback ProfileChangedCallback { get; set; } - [Mac (10,14), iOS (12,0)][NoWatch][NoTV] + [Mac (10, 14), iOS (12, 0)] + [NoWatch] + [NoTV] [Export ("disableProfile:cable:onChannel:error:")] bool Disable (MidiCIProfile profile, byte cable, byte channel, [NullAllowed] out NSError outError); - [Mac (10,14), iOS (12,0)][NoWatch][NoTV] + [Mac (10, 14), iOS (12, 0)] + [NoWatch] + [NoTV] [Export ("enableProfile:cable:onChannel:error:")] bool Enable (MidiCIProfile profile, byte cable, byte channel, [NullAllowed] out NSError outError); [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("userPresets", ArgumentSemantic.Copy)] - AUAudioUnitPreset[] UserPresets { get; } + AUAudioUnitPreset [] UserPresets { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("saveUserPreset:error:")] bool SaveUserPreset (AUAudioUnitPreset userPreset, [NullAllowed] out NSError outError); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("deleteUserPreset:error:")] bool DeleteUserPreset (AUAudioUnitPreset userPreset, [NullAllowed] out NSError outError); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("presetStateFor:error:")] [return: NullAllowed] NSDictionary GetPresetState (AUAudioUnitPreset userPreset, [NullAllowed] out NSError outError); @@ -332,16 +338,16 @@ namespace AudioUnit { // kept separate from AUAudioUnit, quote: // These methods will fail if the audio unit is not an input/output audio unit. - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Category] [BaseType (typeof (AUAudioUnit))] interface AUAudioUnit_AUAudioInputOutputUnit { - [Mac (10,12), NoTV, NoiOS, NoWatch] + [Mac (10, 12), NoTV, NoiOS, NoWatch] [Export ("deviceID")] uint GetDeviceId (); - [Mac (10,12), NoTV, NoiOS, NoWatch] + [Mac (10, 12), NoTV, NoiOS, NoWatch] [Export ("setDeviceID:error:")] bool SetDeviceId (uint deviceID, out NSError outError); @@ -353,7 +359,7 @@ namespace AudioUnit { [Export ("isInputEnabled")] bool IsInputEnabled (); - + [Export ("setInputEnabled:")] bool SetInputEnabled (bool enabled); @@ -362,7 +368,7 @@ namespace AudioUnit { [Export ("setOutputEnabled:")] bool SetOutputEnabled (bool enabled); - + [return: NullAllowed] [Export ("inputHandler", ArgumentSemantic.Copy)] AUInputHandler GetInputHandler (); @@ -397,10 +403,9 @@ namespace AudioUnit { bool IsRunning (); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface AUAudioUnitBus - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface AUAudioUnitBus { [Export ("initWithFormat:error:")] NativeHandle Constructor (AVAudioFormat format, [NullAllowed] out NSError outError); @@ -426,14 +431,14 @@ namespace AudioUnit { AUAudioUnit OwnerAudioUnit { get; } [NullAllowed, Export ("supportedChannelLayoutTags", ArgumentSemantic.Copy)] - NSNumber[] SupportedChannelLayoutTags { get; } + NSNumber [] SupportedChannelLayoutTags { get; } [Export ("contextPresentationLatency")] double ContextPresentationLatency { get; set; } // AUAudioUnitImplementation [NullAllowed, Export ("supportedChannelCounts", ArgumentSemantic.Retain)] - NSNumber[] SupportedChannelCounts { get; set; } + NSNumber [] SupportedChannelCounts { get; set; } [Export ("maximumChannelCount")] uint MaximumChannelCount { get; set; } @@ -443,14 +448,13 @@ namespace AudioUnit { bool ShouldAllocateBuffer { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AUAudioUnitBusArray : INSFastEnumeration - { + interface AUAudioUnitBusArray : INSFastEnumeration { [Export ("initWithAudioUnit:busType:busses:")] [DesignatedInitializer] - NativeHandle Constructor (AUAudioUnit owner, AUAudioUnitBusType busType, AUAudioUnitBus[] busArray); + NativeHandle Constructor (AUAudioUnit owner, AUAudioUnitBusType busType, AUAudioUnitBus [] busArray); [Export ("initWithAudioUnit:busType:")] NativeHandle Constructor (AUAudioUnit owner, AUAudioUnitBusType busType); @@ -484,13 +488,12 @@ namespace AudioUnit { //AUAudioUnitBusImplementation [Export ("replaceBusses:")] - void ReplaceBusses (AUAudioUnitBus[] busArray); + void ReplaceBusses (AUAudioUnitBus [] busArray); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface AUAudioUnitPreset : NSSecureCoding - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface AUAudioUnitPreset : NSSecureCoding { [Export ("number", ArgumentSemantic.Assign)] nint Number { get; set; } @@ -498,10 +501,9 @@ namespace AudioUnit { string Name { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(AUParameterNode))] - interface AUParameter : NSSecureCoding - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (AUParameterNode))] + interface AUParameter : NSSecureCoding { [Export ("minValue")] float MinValue { get; } @@ -521,10 +523,10 @@ namespace AudioUnit { ulong Address { get; } [NullAllowed, Export ("valueStrings", ArgumentSemantic.Copy)] - string[] ValueStrings { get; } + string [] ValueStrings { get; } [NullAllowed, Export ("dependentParameters", ArgumentSemantic.Copy)] - NSNumber[] DependentParameters { get; } + NSNumber [] DependentParameters { get; } [Export ("value")] float Value { get; set; } @@ -545,30 +547,31 @@ namespace AudioUnit { [Export ("stringFromValue:")] string GetString (ref float value); - [Internal][Sealed][Export ("stringFromValue:")] + [Internal] + [Sealed] + [Export ("stringFromValue:")] string _GetString (IntPtr value); [Export ("valueFromString:")] float GetValue (string str); - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Internal] [Export ("setValue:originator:atHostTime:eventType:")] void SetValue (float value, IntPtr originator, ulong hostTime, AUParameterAutomationEventType eventType); - [iOS (10,0), Mac (10,12), Watch (4, 0), TV (10, 0)] + [iOS (10, 0), Mac (10, 12), Watch (4, 0), TV (10, 0)] [Wrap ("SetValue (value, originator.ObserverToken, hostTime, eventType)")] void SetValue (float value, AUParameterObserverToken originator, ulong hostTime, AUParameterAutomationEventType eventType); } - [iOS (10,0), Mac (10,12)] + [iOS (10, 0), Mac (10, 12)] delegate void AUParameterAutomationObserver (ulong address, float value); - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface AUParameterNode - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface AUParameterNode { [Export ("identifier")] string Identifier { get; } @@ -582,13 +585,15 @@ namespace AudioUnit { string GetDisplayName (nint maximumLength); [Export ("tokenByAddingParameterObserver:")] - /* void * */ IntPtr TokenByAddingParameterObserver (AUParameterObserver observer); + /* void * */ + IntPtr TokenByAddingParameterObserver (AUParameterObserver observer); [Wrap ("new AUParameterObserverToken { ObserverToken = TokenByAddingParameterObserver (observer) }")] AUParameterObserverToken CreateTokenByAddingParameterObserver (AUParameterObserver observer); [Export ("tokenByAddingParameterRecordingObserver:")] - /* void * */ IntPtr TokenByAddingParameterRecordingObserver (AUParameterRecordingObserver observer); + /* void * */ + IntPtr TokenByAddingParameterRecordingObserver (AUParameterRecordingObserver observer); [Wrap ("new AUParameterObserverToken { ObserverToken = TokenByAddingParameterRecordingObserver (observer) }")] AUParameterObserverToken CreateTokenByAddingParameterRecordingObserver (AUParameterRecordingObserver observer); @@ -599,8 +604,8 @@ namespace AudioUnit { [Export ("implementorValueProvider", ArgumentSemantic.Copy)] AUImplementorValueProvider ImplementorValueProvider { get; set; } - [Export ("implementorValueFromStringCallback", ArgumentSemantic.Copy)] - AUImplementorValueFromStringCallback ImplementorValueFromStringCallback { get; set; } + [Export ("implementorValueFromStringCallback", ArgumentSemantic.Copy)] + AUImplementorValueFromStringCallback ImplementorValueFromStringCallback { get; set; } [Export ("removeParameterObserver:")] void RemoveParameterObserver (/* void * */ IntPtr token); @@ -614,33 +619,31 @@ namespace AudioUnit { [Export ("implementorDisplayNameWithLengthCallback", ArgumentSemantic.Copy)] AUImplementorDisplayNameWithLengthCallback ImplementorDisplayNameWithLengthCallback { get; set; } - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Internal] [Export ("tokenByAddingParameterAutomationObserver:")] IntPtr _GetToken (AUParameterAutomationObserver observer); - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Wrap ("new AUParameterObserverToken (_GetToken (observer))")] AUParameterObserverToken GetToken (AUParameterAutomationObserver observer); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(AUParameterNode))] - interface AUParameterGroup : NSSecureCoding - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (AUParameterNode))] + interface AUParameterGroup : NSSecureCoding { [Export ("children")] - AUParameterNode[] Children { get; } + AUParameterNode [] Children { get; } [Export ("allParameters")] - AUParameter[] AllParameters { get; } + AUParameter [] AllParameters { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(AUParameterGroup))] - interface AUParameterTree : NSSecureCoding - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (AUParameterGroup))] + interface AUParameterTree : NSSecureCoding { [Export ("parameterWithAddress:")] [return: NullAllowed] AUParameter GetParameter (ulong address); @@ -652,15 +655,15 @@ namespace AudioUnit { //Factory [Static] [Export ("createParameterWithIdentifier:name:address:min:max:unit:unitName:flags:valueStrings:dependentParameters:")] - AUParameter CreateParameter (string identifier, string name, ulong address, float min, float max, AudioUnitParameterUnit unit, [NullAllowed] string unitName, AudioUnitParameterOptions flags, [NullAllowed] string[] valueStrings, [NullAllowed] NSNumber[] dependentParameters); + AUParameter CreateParameter (string identifier, string name, ulong address, float min, float max, AudioUnitParameterUnit unit, [NullAllowed] string unitName, AudioUnitParameterOptions flags, [NullAllowed] string [] valueStrings, [NullAllowed] NSNumber [] dependentParameters); [Static] [Export ("createGroupWithIdentifier:name:children:")] - AUParameterGroup CreateGroup (string identifier, string name, AUParameterNode[] children); + AUParameterGroup CreateGroup (string identifier, string name, AUParameterNode [] children); [Static] [Export ("createGroupTemplate:")] - AUParameterGroup CreateGroupTemplate (AUParameterNode[] children); + AUParameterGroup CreateGroupTemplate (AUParameterNode [] children); [Static] [Export ("createGroupFromTemplate:identifier:name:addressOffset:")] @@ -668,12 +671,11 @@ namespace AudioUnit { [Static] [Export ("createTreeWithChildren:")] - AUParameterTree CreateTree (AUParameterNode[] children); + AUParameterTree CreateTree (AUParameterNode [] children); } [Protocol] - interface AUAudioUnitFactory : NSExtensionRequestHandling - { + interface AUAudioUnitFactory : NSExtensionRequestHandling { [Abstract] [Export ("createAudioUnitWithComponentDescription:error:")] [return: NullAllowed] diff --git a/src/authenticationservices.cs b/src/authenticationservices.cs index ef9f3efbe4..9345807d43 100644 --- a/src/authenticationservices.cs +++ b/src/authenticationservices.cs @@ -29,9 +29,10 @@ using NativeHandle = System.IntPtr; namespace AuthenticationServices { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [Native] [ErrorDomain ("ASCredentialIdentityStoreErrorDomain")] public enum ASCredentialIdentityStoreErrorCode : long { @@ -41,9 +42,10 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [Native] [ErrorDomain ("ASExtensionErrorDomain")] public enum ASExtensionErrorCode : long { @@ -63,25 +65,26 @@ namespace AuthenticationServices { // on tvOS and watchOS (which is incorrect) [NoTV][NoWatch] #endif - [NoMac, iOS (14,0)] + [NoMac, iOS (14, 0)] [Field ("ASExtensionLocalizedFailureReasonErrorKey")] NSString LocalizedFailureReasonErrorKey { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [Native] public enum ASCredentialServiceIdentifierType : long { Domain, Url, } - [TV (16,0)] - [Watch (6,2)] - [Mac (10,15)] - [iOS (12,0)] + [TV (16, 0)] + [Watch (6, 2)] + [Mac (10, 15)] + [iOS (12, 0)] [Native] [ErrorDomain ("ASWebAuthenticationSessionErrorDomain")] public enum ASWebAuthenticationSessionErrorCode : long { @@ -90,45 +93,40 @@ namespace AuthenticationServices { PresentationContextInvalid = 3, } - [Flags, NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Flags, NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] - public enum ASAuthorizationControllerRequestOptions : ulong - { + public enum ASAuthorizationControllerRequestOptions : ulong { ImmediatelyAvailableCredentials = 1uL << 0, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [Native] - public enum ASAuthorizationProviderExtensionAuthenticationMethod : long - { + public enum ASAuthorizationProviderExtensionAuthenticationMethod : long { Password = 1, UserSecureEnclaveKey = 2, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [Native] - public enum ASAuthorizationProviderExtensionKeyType : long - { + public enum ASAuthorizationProviderExtensionKeyType : long { DeviceSigning = 1, DeviceEncryption = 2, SecureEnclaveKey = 3, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [Native] - public enum ASAuthorizationProviderExtensionRegistrationResult : long - { + public enum ASAuthorizationProviderExtensionRegistrationResult : long { Success = 0, Failed = 1, UserInterfaceRequired = 2, FailedNoRetry = 3, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [Flags] [Native] - public enum ASAuthorizationProviderExtensionRequestOptions : ulong - { + public enum ASAuthorizationProviderExtensionRequestOptions : ulong { None = 0x0, UserInteractionEnabled = 1uL << 0, RegistrationRepair = 1uL << 1, @@ -137,9 +135,10 @@ namespace AuthenticationServices { delegate void ASCredentialIdentityStoreCompletionHandler (bool success, NSError error); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASCredentialIdentityStore { @@ -153,11 +152,11 @@ namespace AuthenticationServices { [Async] [Export ("saveCredentialIdentities:completion:")] - void SaveCredentialIdentities (ASPasswordCredentialIdentity[] credentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); + void SaveCredentialIdentities (ASPasswordCredentialIdentity [] credentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); [Async] [Export ("removeCredentialIdentities:completion:")] - void RemoveCredentialIdentities (ASPasswordCredentialIdentity[] credentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); + void RemoveCredentialIdentities (ASPasswordCredentialIdentity [] credentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); [Async] [Export ("removeAllCredentialIdentitiesWithCompletion:")] @@ -165,13 +164,14 @@ namespace AuthenticationServices { [Async] [Export ("replaceCredentialIdentitiesWithIdentities:completion:")] - void ReplaceCredentialIdentities (ASPasswordCredentialIdentity[] newCredentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); + void ReplaceCredentialIdentities (ASPasswordCredentialIdentity [] newCredentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASCredentialIdentityStoreState { @@ -185,9 +185,10 @@ namespace AuthenticationServices { delegate void ASCredentialProviderExtensionRequestCompletionHandler (bool expired); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (NSExtensionContext))] [DisableDefaultCtor] interface ASCredentialProviderExtensionContext { @@ -202,9 +203,10 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASCredentialServiceIdentifier : NSCopying, NSSecureCoding { @@ -219,9 +221,10 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASPasswordCredentialIdentity : NSCopying, NSSecureCoding { @@ -247,16 +250,17 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV][NoWatch] - [iOS (12,0)] - [Mac (11,0)] + [NoTV] + [NoWatch] + [iOS (12, 0)] + [Mac (11, 0)] [BaseType (typeof (UIViewController))] interface ASCredentialProviderViewController { [Export ("extensionContext", ArgumentSemantic.Strong)] ASCredentialProviderExtensionContext ExtensionContext { get; } [Export ("prepareCredentialListForServiceIdentifiers:")] - void PrepareCredentialList (ASCredentialServiceIdentifier[] serviceIdentifiers); + void PrepareCredentialList (ASCredentialServiceIdentifier [] serviceIdentifiers); [Export ("provideCredentialWithoutUserInteractionForIdentity:")] void ProvideCredentialWithoutUserInteraction (ASPasswordCredentialIdentity credentialIdentity); @@ -269,7 +273,7 @@ namespace AuthenticationServices { } [Watch (6, 0), TV (13, 0), Mac (10, 15)] - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASPasswordCredential : NSCopying, NSSecureCoding, ASAuthorizationCredential { @@ -289,10 +293,10 @@ namespace AuthenticationServices { delegate void ASWebAuthenticationSessionCompletionHandler ([NullAllowed] NSUrl callbackUrl, [NullAllowed] NSError error); - [TV (16,0)] - [Watch (6,2)] + [TV (16, 0)] + [Watch (6, 2)] [Mac (10, 15)] - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASWebAuthenticationSession { @@ -306,20 +310,20 @@ namespace AuthenticationServices { [Export ("cancel")] void Cancel (); - [iOS (13,0), NoWatch, NoTV] + [iOS (13, 0), NoWatch, NoTV] [NullAllowed, Export ("presentationContextProvider", ArgumentSemantic.Weak)] IASWebAuthenticationPresentationContextProviding PresentationContextProvider { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("prefersEphemeralWebBrowserSession")] bool PrefersEphemeralWebBrowserSession { get; set; } - [Mac (10,15,4), iOS (13,4)] + [Mac (10, 15, 4), iOS (13, 4)] [Export ("canStart")] bool CanStart { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAuthorization { @@ -347,7 +351,7 @@ namespace AuthenticationServices { Email, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum ASUserDetectionStatus : long { Unsupported, @@ -355,7 +359,7 @@ namespace AuthenticationServices { LikelyReal, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject), Name = "ASAuthorizationAppleIDCredential")] [DisableDefaultCtor] interface ASAuthorizationAppleIdCredential : ASAuthorizationCredential { @@ -368,7 +372,7 @@ namespace AuthenticationServices { [Export ("authorizedScopes", ArgumentSemantic.Copy)] [BindAs (typeof (ASAuthorizationScope []))] - NSString[] AuthorizedScopes { get; } + NSString [] AuthorizedScopes { get; } [NullAllowed, Export ("authorizationCode", ArgumentSemantic.Copy)] NSData AuthorizationCode { get; } @@ -386,7 +390,7 @@ namespace AuthenticationServices { ASUserDetectionStatus RealUserStatus { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum ASAuthorizationAppleIdProviderCredentialState : long { Revoked, @@ -395,7 +399,7 @@ namespace AuthenticationServices { Transferred, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject), Name = "ASAuthorizationAppleIDProvider")] interface ASAuthorizationAppleIdProvider : ASAuthorizationProvider { @@ -411,7 +415,7 @@ namespace AuthenticationServices { NSString CredentialRevokedNotification { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (ASAuthorizationOpenIdRequest), Name = "ASAuthorizationAppleIDRequest")] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[ASAuthorizationAppleIDRequest init]: unrecognized selector sent to instance 0x600002ff8b40 interface ASAuthorizationAppleIdRequest { @@ -420,13 +424,14 @@ namespace AuthenticationServices { string User { get; set; } } - interface IASAuthorizationControllerDelegate {} + interface IASAuthorizationControllerDelegate { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface ASAuthorizationControllerDelegate { @@ -437,14 +442,14 @@ namespace AuthenticationServices { [Export ("authorizationController:didCompleteWithError:")] void DidComplete (ASAuthorizationController controller, NSError error); - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("authorizationController:didCompleteWithCustomMethod:")] void DidComplete (ASAuthorizationController controller, NSString method); } interface IASAuthorizationControllerPresentationContextProviding { } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Protocol] interface ASAuthorizationControllerPresentationContextProviding { @@ -453,17 +458,17 @@ namespace AuthenticationServices { UIWindow GetPresentationAnchor (ASAuthorizationController controller); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAuthorizationController { [Export ("initWithAuthorizationRequests:")] [DesignatedInitializer] - NativeHandle Constructor (ASAuthorizationRequest[] authorizationRequests); + NativeHandle Constructor (ASAuthorizationRequest [] authorizationRequests); [Export ("authorizationRequests", ArgumentSemantic.Strong)] - ASAuthorizationRequest[] AuthorizationRequests { get; } + ASAuthorizationRequest [] AuthorizationRequests { get; } [Wrap ("WeakDelegate")] [NullAllowed] @@ -479,30 +484,30 @@ namespace AuthenticationServices { [Export ("performRequests")] void PerformRequests (); - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("customAuthorizationMethods", ArgumentSemantic.Copy)] - NSString[] CustomAuthorizationMethods { get; set; } + NSString [] CustomAuthorizationMethods { get; set; } - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (16,0)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (16, 0)] [Export ("performAutoFillAssistedRequests")] void PerformAutoFillAssistedRequests (); - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [Export ("performRequestsWithOptions:")] void PerformRequests (ASAuthorizationControllerRequestOptions options); - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [Export ("cancel")] void Cancel (); } interface IASAuthorizationCredential { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface ASAuthorizationCredential : NSCopying, NSSecureCoding { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [ErrorDomain ("ASAuthorizationErrorDomain")] [Native] public enum ASAuthorizationError : long { @@ -529,14 +534,14 @@ namespace AuthenticationServices { Logout, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (ASAuthorizationRequest), Name = "ASAuthorizationOpenIDRequest")] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[ASAuthorizationOpenIDRequest init]: unrecognized selector sent to instance 0x600002ff0660 interface ASAuthorizationOpenIdRequest { [NullAllowed, Export ("requestedScopes", ArgumentSemantic.Copy)] - [BindAs (typeof (ASAuthorizationScope[]))] - NSString[] RequestedScopes { get; set; } + [BindAs (typeof (ASAuthorizationScope []))] + NSString [] RequestedScopes { get; set; } [NullAllowed, Export ("state")] string State { get; set; } @@ -549,7 +554,7 @@ namespace AuthenticationServices { NSString RequestedOperation { get; set; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] interface ASAuthorizationPasswordProvider : ASAuthorizationProvider { @@ -557,7 +562,7 @@ namespace AuthenticationServices { ASAuthorizationPasswordRequest CreateRequest (); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (ASAuthorizationRequest))] // Name: NSInvalidArgumentException Reason: -[ASAuthorizationPasswordRequest init]: unrecognized selector sent to instance 0x6000005f2dc0 [DisableDefaultCtor] @@ -565,12 +570,12 @@ namespace AuthenticationServices { interface IASAuthorizationProvider { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface ASAuthorizationProvider { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [Protocol] interface ASAuthorizationProviderExtensionAuthorizationRequestHandler { @@ -583,7 +588,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] enum ASAuthorizationProviderAuthorizationOperation { // no value yet - but we must handle `nil` as a default value [DefaultEnumValue] @@ -600,7 +605,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] interface ASAuthorizationProviderExtensionAuthorizationRequest { @@ -622,7 +627,7 @@ namespace AuthenticationServices { [Export ("completeWithError:")] void Complete (NSError error); - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("completeWithAuthorizationResult:")] void Complete (ASAuthorizationProviderExtensionAuthorizationResult authorizationResult); @@ -657,22 +662,22 @@ namespace AuthenticationServices { [Export ("authorizationOptions")] NSDictionary AuthorizationOptions { get; } - [iOS (14,0)] - [Mac (11,0)] + [iOS (14, 0)] + [Mac (11, 0)] [Export ("callerManaged")] bool CallerManaged { [Bind ("isCallerManaged")] get; } - [iOS (14,0)] - [Mac (11,0)] + [iOS (14, 0)] + [Mac (11, 0)] [Export ("callerTeamIdentifier")] string CallerTeamIdentifier { get; } - [iOS (14,0)] - [Mac (11,0)] + [iOS (14, 0)] + [Mac (11, 0)] [Export ("localizedCallerDisplayName")] string LocalizedCallerDisplayName { get; } - [Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("userInterfaceEnabled")] bool UserInterfaceEnabled { [Bind ("isUserInterfaceEnabled")] get; } @@ -682,7 +687,7 @@ namespace AuthenticationServices { ASAuthorizationProviderExtensionLoginManager LoginManager { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAuthorizationRequest : NSCopying, NSSecureCoding { @@ -695,7 +700,7 @@ namespace AuthenticationServices { IntPtr _Provider { get; } } - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAuthorizationSingleSignOnCredential : ASAuthorizationCredential { @@ -711,17 +716,17 @@ namespace AuthenticationServices { [Export ("authorizedScopes", ArgumentSemantic.Copy)] [BindAs (typeof (ASAuthorizationScope []))] - NSString[] AuthorizedScopes { get; } + NSString [] AuthorizedScopes { get; } [NullAllowed, Export ("authenticatedResponse", ArgumentSemantic.Copy)] NSHttpUrlResponse AuthenticatedResponse { get; } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("privateKeys")] - SecKey[] PrivateKeys { get; } + SecKey [] PrivateKeys { get; } } - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAuthorizationSingleSignOnProvider : ASAuthorizationProvider { @@ -740,30 +745,30 @@ namespace AuthenticationServices { bool CanPerformAuthorization { get; } } - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [BaseType (typeof (ASAuthorizationOpenIdRequest))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[ASAuthorizationSingleSignOnRequest init]: unrecognized selector sent to instance 0x60000095aa60 interface ASAuthorizationSingleSignOnRequest { [Export ("authorizationOptions", ArgumentSemantic.Copy)] - NSUrlQueryItem[] AuthorizationOptions { get; set; } + NSUrlQueryItem [] AuthorizationOptions { get; set; } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("userInterfaceEnabled")] bool UserInterfaceEnabled { [Bind ("isUserInterfaceEnabled")] get; set; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Native] enum ASAuthorizationAppleIdButtonType : long { SignIn, Continue, - [TV (13,2), Mac (10,15,1), iOS (13,2)] + [TV (13, 2), Mac (10, 15, 1), iOS (13, 2)] SignUp, Default = SignIn, } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Native] enum ASAuthorizationAppleIdButtonStyle : long { White = 0, @@ -771,7 +776,7 @@ namespace AuthenticationServices { Black = 2, } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [BaseType (typeof (UIControl), Name = "ASAuthorizationAppleIDButton")] [DisableDefaultCtor] #if MONOMAC @@ -795,7 +800,7 @@ namespace AuthenticationServices { interface IASWebAuthenticationPresentationContextProviding { } - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [Protocol] interface ASWebAuthenticationPresentationContextProviding { @@ -806,17 +811,20 @@ namespace AuthenticationServices { interface IASWebAuthenticationSessionRequestDelegate { } - [Mac (10,15)] + [Mac (10, 15)] [Introduced (PlatformName.MacCatalyst, 13, 0)] - [NoTV][NoiOS][NoWatch] + [NoTV] + [NoiOS] + [NoWatch] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface ASWebAuthenticationSessionRequestDelegate { - + [Export ("authenticationSessionRequest:didCompleteWithCallbackURL:")] void DidComplete (ASWebAuthenticationSessionRequest authenticationSessionRequest, NSUrl callbackUrl); @@ -826,8 +834,10 @@ namespace AuthenticationServices { interface IASWebAuthenticationSessionWebBrowserSessionHandling { } - [Mac (10,15)] - [NoTV][NoiOS][NoWatch] + [Mac (10, 15)] + [NoTV] + [NoiOS] + [NoWatch] [Protocol] interface ASWebAuthenticationSessionWebBrowserSessionHandling { @@ -840,12 +850,14 @@ namespace AuthenticationServices { void CancelWebAuthenticationSessionRequest (ASWebAuthenticationSessionRequest request); } - [Mac (10,15)] + [Mac (10, 15)] [Introduced (PlatformName.MacCatalyst, 13, 0)] - [NoTV][NoiOS][NoWatch] + [NoTV] + [NoiOS] + [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASWebAuthenticationSessionRequest : NSSecureCoding, NSCopying { + interface ASWebAuthenticationSessionRequest : NSSecureCoding, NSCopying { [Export ("UUID")] NSUuid Uuid { get; } @@ -873,8 +885,10 @@ namespace AuthenticationServices { void Complete (NSUrl callbackUrl); } - [Mac (10,15)] - [NoTV][NoiOS][NoWatch] + [Mac (10, 15)] + [NoTV] + [NoiOS] + [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // implied by `sharedManager` interface ASWebAuthenticationSessionWebBrowserSessionManager { @@ -889,7 +903,7 @@ namespace AuthenticationServices { [Export ("wasLaunchedByAuthenticationServices")] bool WasLaunchedByAuthenticationServices { get; } - [Mac (12,3)] + [Mac (12, 3)] [Static] [Export ("registerDefaultsForASWASInSetupAssistantIfNeeded")] void RegisterDefaultsForAswasInSetupAssistantIfNeeded (); @@ -897,22 +911,23 @@ namespace AuthenticationServices { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ASAccountAuthenticationModificationRequest { } - interface IASAccountAuthenticationModificationControllerDelegate {} + interface IASAccountAuthenticationModificationControllerDelegate { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface ASAccountAuthenticationModificationControllerDelegate { @@ -924,10 +939,10 @@ namespace AuthenticationServices { void DidFailRequest (ASAccountAuthenticationModificationController controller, ASAccountAuthenticationModificationRequest request, NSError error); } - interface IASAccountAuthenticationModificationControllerPresentationContextProviding {} + interface IASAccountAuthenticationModificationControllerPresentationContextProviding { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [Protocol] interface ASAccountAuthenticationModificationControllerPresentationContextProviding { @@ -938,7 +953,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSObject))] interface ASAccountAuthenticationModificationController { @@ -958,7 +973,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (NSExtensionContext))] [DisableDefaultCtor] @@ -979,7 +994,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (ASAccountAuthenticationModificationRequest))] [DisableDefaultCtor] @@ -999,7 +1014,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (ASAccountAuthenticationModificationRequest))] [DisableDefaultCtor] @@ -1019,7 +1034,7 @@ namespace AuthenticationServices { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (14,0)] + [iOS (14, 0)] [NoWatch, NoTV, NoMac] [BaseType (typeof (UIViewController))] interface ASAccountAuthenticationModificationViewController { @@ -1043,10 +1058,9 @@ namespace AuthenticationServices { void CancelRequest (); } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), NoWatch, NoTV] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), NoWatch, NoTV] [Static] - interface ASAuthorizationPublicKeyCredentialAttestationKind - { + interface ASAuthorizationPublicKeyCredentialAttestationKind { [Field ("ASAuthorizationPublicKeyCredentialAttestationKindNone")] NSString None { get; } @@ -1060,10 +1074,9 @@ namespace AuthenticationServices { NSString Enterprise { get; } } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), NoWatch, TV (16,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), NoWatch, TV (16, 0)] [Static] - interface ASAuthorizationPublicKeyCredentialUserVerificationPreference - { + interface ASAuthorizationPublicKeyCredentialUserVerificationPreference { [Field ("ASAuthorizationPublicKeyCredentialUserVerificationPreferencePreferred")] NSString Preferred { get; } @@ -1074,7 +1087,7 @@ namespace AuthenticationServices { NSString Discouraged { get; } } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), NoWatch, NoTV] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), NoWatch, NoTV] enum ASAuthorizationPublicKeyCredentialResidentKeyPreference { [Field ("ASAuthorizationPublicKeyCredentialResidentKeyPreferenceDiscouraged")] Discouraged, @@ -1084,7 +1097,7 @@ namespace AuthenticationServices { Required, } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), NoWatch, NoTV] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), NoWatch, NoTV] enum ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport { [Field ("ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportUSB")] Usb, @@ -1094,7 +1107,7 @@ namespace AuthenticationServices { Bluetooth, } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoWatch, NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch, NoTV] [Native] enum ASCoseAlgorithmIdentifier : long { ES256 = -7, @@ -1109,10 +1122,9 @@ namespace AuthenticationServices { interface IASAuthorizationPublicKeyCredentialAssertion { } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASAuthorizationPublicKeyCredentialAssertion : ASPublicKeyCredential - { + interface ASAuthorizationPublicKeyCredentialAssertion : ASPublicKeyCredential { [Abstract] [Export ("rawAuthenticatorData", ArgumentSemantic.Copy)] NSData RawAuthenticatorData { get; } @@ -1126,34 +1138,31 @@ namespace AuthenticationServices { NSData Signature { get; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [BaseType (typeof (ASAuthorizationRequest))] [DisableDefaultCtor] - interface ASAuthorizationPlatformPublicKeyCredentialAssertionRequest : ASAuthorizationPublicKeyCredentialAssertionRequest - { + interface ASAuthorizationPlatformPublicKeyCredentialAssertionRequest : ASAuthorizationPublicKeyCredentialAssertionRequest { /* issues when overriding this property */ [Sealed] [Export ("allowedCredentials", ArgumentSemantic.Copy)] - ASAuthorizationPlatformPublicKeyCredentialDescriptor[] PlatformAllowedCredentials { get; set; } + ASAuthorizationPlatformPublicKeyCredentialDescriptor [] PlatformAllowedCredentials { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (ASAuthorizationRequest))] [DisableDefaultCtor] - interface ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest : ASAuthorizationPublicKeyCredentialAssertionRequest - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest : ASAuthorizationPublicKeyCredentialAssertionRequest { /* issues when overriding this property */ [Sealed] [Export ("allowedCredentials", ArgumentSemantic.Copy)] - ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor[] SecurityAllowedCredentials { get; set; } + ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor [] SecurityAllowedCredentials { get; set; } } interface IASAuthorizationPublicKeyCredentialAssertionRequest { } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASAuthorizationPublicKeyCredentialAssertionRequest : NSSecureCoding, NSCopying - { + interface ASAuthorizationPublicKeyCredentialAssertionRequest : NSSecureCoding, NSCopying { [Abstract] [Export ("challenge", ArgumentSemantic.Copy)] NSData Challenge { get; set; } @@ -1164,7 +1173,7 @@ namespace AuthenticationServices { [Abstract] [Export ("allowedCredentials", ArgumentSemantic.Copy)] - IASAuthorizationPublicKeyCredentialDescriptor[] AllowedCredentials { get; set; } + IASAuthorizationPublicKeyCredentialDescriptor [] AllowedCredentials { get; set; } [Abstract] [Export ("userVerificationPreference")] @@ -1173,28 +1182,25 @@ namespace AuthenticationServices { interface IASAuthorizationPublicKeyCredentialDescriptor { } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASAuthorizationPublicKeyCredentialDescriptor : NSSecureCoding, NSCopying - { + interface ASAuthorizationPublicKeyCredentialDescriptor : NSSecureCoding, NSCopying { [Abstract] [Export ("credentialID", ArgumentSemantic.Copy)] NSData CredentialId { get; set; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASAuthorizationPublicKeyCredentialRegistration : ASPublicKeyCredential - { + interface ASAuthorizationPublicKeyCredentialRegistration : ASPublicKeyCredential { [Abstract] [NullAllowed, Export ("rawAttestationObject", ArgumentSemantic.Copy)] NSData RawAttestationObject { get; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASAuthorizationPublicKeyCredentialRegistrationRequest : NSSecureCoding, NSCopying - { + interface ASAuthorizationPublicKeyCredentialRegistrationRequest : NSSecureCoding, NSCopying { [Abstract] [Export ("relyingPartyIdentifier")] string RelyingPartyIdentifier { get; } @@ -1225,10 +1231,9 @@ namespace AuthenticationServices { NSString AttestationPreference { get; set; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [Protocol] - interface ASPublicKeyCredential : ASAuthorizationCredential - { + interface ASPublicKeyCredential : ASAuthorizationCredential { [Abstract] [Export ("rawClientDataJSON", ArgumentSemantic.Copy)] NSData RawClientDataJson { get; } @@ -1238,21 +1243,19 @@ namespace AuthenticationServices { NSData CredentialId { get; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationPlatformPublicKeyCredentialDescriptor : ASAuthorizationPublicKeyCredentialDescriptor - { + interface ASAuthorizationPlatformPublicKeyCredentialDescriptor : ASAuthorizationPublicKeyCredentialDescriptor { [Export ("initWithCredentialID:")] [DesignatedInitializer] NativeHandle Constructor (NSData credentialId); } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0), TV (16,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationPlatformPublicKeyCredentialProvider : ASAuthorizationProvider - { + interface ASAuthorizationPlatformPublicKeyCredentialProvider : ASAuthorizationProvider { [Export ("initWithRelyingPartyIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string relyingPartyIdentifier); @@ -1267,11 +1270,10 @@ namespace AuthenticationServices { string RelyingPartyIdentifier { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationProviderExtensionAuthorizationResult - { + interface ASAuthorizationProviderExtensionAuthorizationResult { [Export ("initWithHTTPAuthorizationHeaders:")] NativeHandle Constructor (NSDictionary httpAuthorizationHeaders); @@ -1288,14 +1290,13 @@ namespace AuthenticationServices { NSData HttpBody { get; set; } [Export ("privateKeys", ArgumentSemantic.Assign)] - SecKey[] PrivateKeys { get; set; } + SecKey [] PrivateKeys { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationPublicKeyCredentialParameters : NSSecureCoding, NSCopying - { + interface ASAuthorizationPublicKeyCredentialParameters : NSSecureCoding, NSCopying { [Export ("initWithAlgorithm:")] NativeHandle Constructor (ASCoseAlgorithmIdentifier algorithm); @@ -1303,25 +1304,23 @@ namespace AuthenticationServices { ASCoseAlgorithmIdentifier Algorithm { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor : ASAuthorizationPublicKeyCredentialDescriptor - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor : ASAuthorizationPublicKeyCredentialDescriptor { [Export ("initWithCredentialID:transports:")] [DesignatedInitializer] - NativeHandle Constructor (NSData credentialId, [BindAs (typeof (ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport[]))] NSString[] allowedTransports); + NativeHandle Constructor (NSData credentialId, [BindAs (typeof (ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport []))] NSString [] allowedTransports); [Export ("transports", ArgumentSemantic.Assign)] - [BindAs (typeof (ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport[]))] - NSString[] Transports { get; set; } + [BindAs (typeof (ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport []))] + NSString [] Transports { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationSecurityKeyPublicKeyCredentialProvider : ASAuthorizationProvider - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialProvider : ASAuthorizationProvider { [Export ("initWithRelyingPartyIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string relyingPartyIdentifier); @@ -1336,26 +1335,24 @@ namespace AuthenticationServices { string RelyingPartyIdentifier { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (ASAuthorizationRequest))] [DisableDefaultCtor] - interface ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest : ASAuthorizationPublicKeyCredentialRegistrationRequest - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest : ASAuthorizationPublicKeyCredentialRegistrationRequest { [Export ("credentialParameters", ArgumentSemantic.Copy)] - ASAuthorizationPublicKeyCredentialParameters[] CredentialParameters { get; set; } + ASAuthorizationPublicKeyCredentialParameters [] CredentialParameters { get; set; } [Export ("excludedCredentials", ArgumentSemantic.Copy)] - ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor[] ExcludedCredentials { get; set; } + ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor [] ExcludedCredentials { get; set; } [Export ("residentKeyPreference")] [BindAs (typeof (ASAuthorizationPublicKeyCredentialResidentKeyPreference))] NSString ResidentKeyPreference { get; set; } } - [TV (15,0), NoWatch, NoiOS, NoMac, NoMacCatalyst] + [TV (15, 0), NoWatch, NoiOS, NoMac, NoMacCatalyst] [Static] - interface ASAuthorizationCustomMethod - { + interface ASAuthorizationCustomMethod { [Field ("ASAuthorizationCustomMethodVideoSubscriberAccount")] NSString SubscriberAccount { get; } @@ -1366,42 +1363,36 @@ namespace AuthenticationServices { NSString Other { get; } } - [NoWatch, TV (16,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (16, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface ASAuthorizationPlatformPublicKeyCredentialAssertion : ASAuthorizationPublicKeyCredentialAssertion - { + interface ASAuthorizationPlatformPublicKeyCredentialAssertion : ASAuthorizationPublicKeyCredentialAssertion { } - [NoWatch, TV (16,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (16, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (ASAuthorizationRequest))] [DisableDefaultCtor] - interface ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest : ASAuthorizationPublicKeyCredentialRegistrationRequest - { + interface ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest : ASAuthorizationPublicKeyCredentialRegistrationRequest { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface ASAuthorizationSecurityKeyPublicKeyCredentialAssertion : ASAuthorizationPublicKeyCredentialAssertion - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialAssertion : ASAuthorizationPublicKeyCredentialAssertion { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationSecurityKeyPublicKeyCredentialRegistration : ASAuthorizationPublicKeyCredentialRegistration - { + interface ASAuthorizationSecurityKeyPublicKeyCredentialRegistration : ASAuthorizationPublicKeyCredentialRegistration { } - [NoWatch, TV (16,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (16, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface ASAuthorizationPlatformPublicKeyCredentialRegistration : ASAuthorizationPublicKeyCredentialRegistration - { + interface ASAuthorizationPlatformPublicKeyCredentialRegistration : ASAuthorizationPublicKeyCredentialRegistration { } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [BaseType (typeof (NSObject))] - interface ASAuthorizationProviderExtensionKerberosMapping - { + interface ASAuthorizationProviderExtensionKerberosMapping { [NullAllowed, Export ("ticketKeyPath")] string TicketKeyPath { get; set; } @@ -1424,11 +1415,10 @@ namespace AuthenticationServices { string SessionKeyKeyName { get; set; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationProviderExtensionLoginConfiguration - { + interface ASAuthorizationProviderExtensionLoginConfiguration { [Export ("initWithClientID:issuer:tokenEndpointURL:jwksEndpointURL:audience:")] NativeHandle Constructor (string clientId, string issuer, NSUrl tokenEndpointUrl, NSUrl jwksEndpointUrl, [NullAllowed] string audience); @@ -1468,7 +1458,7 @@ namespace AuthenticationServices { string ServerNonceClaimName { get; set; } [Export ("customNonceRequestValues", ArgumentSemantic.Copy)] - NSUrlQueryItem[] CustomNonceRequestValues { get; set; } + NSUrlQueryItem [] CustomNonceRequestValues { get; set; } [Export ("setCustomAssertionRequestHeaderClaims:returningError:")] bool SetCustomAssertionRequestHeaderClaims (NSDictionary claims, [NullAllowed] out NSError error); @@ -1486,7 +1476,7 @@ namespace AuthenticationServices { string PreviousRefreshTokenClaimName { get; set; } [Export ("customLoginRequestValues", ArgumentSemantic.Copy)] - NSUrlQueryItem[] CustomLoginRequestValues { get; set; } + NSUrlQueryItem [] CustomLoginRequestValues { get; set; } [Export ("setCustomLoginRequestHeaderClaims:returningError:")] bool SetCustomLoginRequestHeaderClaims (NSDictionary claims, [NullAllowed] out NSError error); @@ -1495,14 +1485,13 @@ namespace AuthenticationServices { bool SetCustomLoginRequestBodyClaims (NSDictionary claims, [NullAllowed] out NSError error); [Export ("kerberosTicketMappings", ArgumentSemantic.Copy)] - ASAuthorizationProviderExtensionKerberosMapping[] KerberosTicketMappings { get; set; } + ASAuthorizationProviderExtensionKerberosMapping [] KerberosTicketMappings { get; set; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationProviderExtensionLoginManager - { + interface ASAuthorizationProviderExtensionLoginManager { [Export ("deviceRegistered")] bool DeviceRegistered { [Bind ("isDeviceRegistered")] get; } @@ -1561,12 +1550,11 @@ namespace AuthenticationServices { void PresentRegistrationViewController (Action completion); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (13, 0)] [Protocol] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ASAuthorizationProviderExtensionRegistrationHandler - { + interface ASAuthorizationProviderExtensionRegistrationHandler { [Async] [Abstract] [Export ("beginDeviceRegistrationUsingLoginManager:options:completion:")] diff --git a/src/automaticassessmentconfiguration.cs b/src/automaticassessmentconfiguration.cs index e2601f4982..2daf705cf0 100644 --- a/src/automaticassessmentconfiguration.cs +++ b/src/automaticassessmentconfiguration.cs @@ -19,8 +19,8 @@ using NativeHandle = System.IntPtr; namespace AutomaticAssessmentConfiguration { [ErrorDomain ("AEAssessmentErrorDomain")] - [Mac (10,15,4), iOS (13,4)] - [MacCatalyst (14,0)] + [Mac (10, 15, 4), iOS (13, 4)] + [MacCatalyst (14, 0)] [Native] public enum AEAssessmentErrorCode : long { Unknown = 1, @@ -28,16 +28,16 @@ namespace AutomaticAssessmentConfiguration { } [iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Native] enum AEAutocorrectMode : long { None = 0, Spelling = 1 << 0, Punctuation = 1 << 1, } - - [Mac (10,15,4), iOS (13,4)] - [MacCatalyst (14,0)] + + [Mac (10, 15, 4), iOS (13, 4)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface AEAssessmentConfiguration : NSCopying { @@ -77,25 +77,25 @@ namespace AutomaticAssessmentConfiguration { [Export ("allowsContinuousPathKeyboard")] bool AllowsContinuousPathKeyboard { get; set; } - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("configurationsByApplication", ArgumentSemantic.Copy)] NSDictionary ConfigurationsByApplication { get; } - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("mainParticipantConfiguration", ArgumentSemantic.Strong)] AEAssessmentParticipantConfiguration MainParticipantConfiguration { get; } - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("removeApplication:")] void Remove (AEAssessmentApplication application); - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("setConfiguration:forApplication:")] void SetConfiguration (AEAssessmentParticipantConfiguration configuration, AEAssessmentApplication application); } - [Mac (10,15,4), iOS (13,4)] - [MacCatalyst (14,0)] + [Mac (10, 15, 4), iOS (13, 4)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AEAssessmentSession { @@ -113,11 +113,11 @@ namespace AutomaticAssessmentConfiguration { [Export ("initWithConfiguration:")] NativeHandle Constructor (AEAssessmentConfiguration configuration); - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("configuration", ArgumentSemantic.Copy)] AEAssessmentConfiguration Configuration { get; } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("updateToConfiguration:")] void Update (AEAssessmentConfiguration configuration); @@ -130,8 +130,8 @@ namespace AutomaticAssessmentConfiguration { interface IAEAssessmentSessionDelegate { } - [Mac (10,15,4), iOS (13,4)] - [MacCatalyst (14,0)] + [Mac (10, 15, 4), iOS (13, 4)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -152,19 +152,18 @@ namespace AutomaticAssessmentConfiguration { [Export ("assessmentSessionDidEnd:")] void DidEnd (AEAssessmentSession session); - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("assessmentSessionDidUpdate:")] void DidUpdate (AEAssessmentSession session); - [NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("assessmentSession:failedToUpdateToConfiguration:error:")] void FailedToUpdate (AEAssessmentSession session, AEAssessmentConfiguration configuration, NSError error); } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface AEAssessmentApplication : NSCopying - { + interface AEAssessmentApplication : NSCopying { [Export ("bundleIdentifier")] string BundleIdentifier { get; } @@ -175,10 +174,9 @@ namespace AutomaticAssessmentConfiguration { bool RequiresSignatureValidation { get; set; } } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface AEAssessmentParticipantConfiguration : NSCopying - { + interface AEAssessmentParticipantConfiguration : NSCopying { [Export ("allowsNetworkAccess")] bool AllowsNetworkAccess { get; set; } } diff --git a/src/avfoundation.cs b/src/avfoundation.cs index 7997e6cace..5e918c4122 100644 --- a/src/avfoundation.cs +++ b/src/avfoundation.cs @@ -117,53 +117,53 @@ namespace AVFoundation { delegate AVAudioBuffer AVAudioConverterInputHandler (uint inNumberOfPackets, out AVAudioConverterInputStatus outStatus); [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] [BaseType (typeof (NSObject))] interface AVAsynchronousVideoCompositionRequest : NSCopying { [Export ("renderContext", ArgumentSemantic.Copy)] AVVideoCompositionRenderContext RenderContext { get; } - + [Export ("compositionTime", ArgumentSemantic.Copy)] CMTime CompositionTime { get; } [Export ("sourceTrackIDs")] NSNumber [] SourceTrackIDs { get; } - + [Export ("videoCompositionInstruction", ArgumentSemantic.Copy)] AVVideoCompositionInstruction VideoCompositionInstruction { get; } - + [return: NullAllowed] [Export ("sourceFrameByTrackID:")] CVPixelBuffer SourceFrameByTrackID (int /* CMPersistentTrackID = int32_t */ trackID); - + [Export ("finishWithComposedVideoFrame:")] void FinishWithComposedVideoFrame (CVPixelBuffer composedVideoFrame); - + [Export ("finishWithError:")] void FinishWithError (NSError error); - + [Export ("finishCancelledRequest")] void FinishCancelledRequest (); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sourceSampleBufferByTrackID:")] [return: NullAllowed] CMSampleBuffer GetSourceSampleBuffer (int trackId); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sourceTimedMetadataByTrackID:")] [return: NullAllowed] AVTimedMetadataGroup GetSourceTimedMetadata (int trackId); - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sourceSampleDataTrackIDs")] - [BindAs (typeof (int[]))] - NSNumber[] SourceSampleDataTrackIds { get; } + [BindAs (typeof (int []))] + NSNumber [] SourceSampleDataTrackIds { get; } } // values are manually given since not some are platform specific - [Watch (6,0)] + [Watch (6, 0)] enum AVMediaTypes { [Field ("AVMediaTypeVideo")] Video = 0, @@ -185,10 +185,10 @@ namespace AVFoundation { #if !NET [NoTV, NoWatch] - [Obsoleted (PlatformName.iOS, 6,0)] - [Deprecated (PlatformName.iOS, 12,0, message: "Always 'null'.")] - [Obsoleted (PlatformName.MacOSX, 10,8)] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Always 'null'.")] + [Obsoleted (PlatformName.iOS, 6, 0)] + [Deprecated (PlatformName.iOS, 12, 0, message: "Always 'null'.")] + [Obsoleted (PlatformName.MacOSX, 10, 8)] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Always 'null'.")] [NoMacCatalyst] [Field ("AVMediaTypeTimedMetadata")] // last header where I can find this: iOS 5.1 SDK, 10.7 only on Mac TimedMetadata = 6, @@ -197,7 +197,9 @@ namespace AVFoundation { [Field ("AVMediaTypeMuxed")] Muxed = 7, - [iOS (9,0)][NoMac][NoWatch] + [iOS (9, 0)] + [NoMac] + [NoWatch] [Field ("AVMediaTypeMetadataObject")] MetadataObject = 8, @@ -213,11 +215,12 @@ namespace AVFoundation { #if !NET [Obsolete ("Use AVMediaTypes enum values")] [NoWatch] - [BaseType (typeof (NSObject))][Static] + [BaseType (typeof (NSObject))] + [Static] interface AVMediaType { [Field ("AVMediaTypeVideo")] NSString Video { get; } - + [Field ("AVMediaTypeAudio")] NSString Audio { get; } @@ -233,10 +236,11 @@ namespace AVFoundation { [Field ("AVMediaTypeTimecode")] NSString Timecode { get; } - [NoTV][NoWatch] + [NoTV] + [NoWatch] [Field ("AVMediaTypeTimedMetadata")] // last header where I can find this: iOS 5.1 SDK, 10.7 only on Mac - [Deprecated (PlatformName.iOS, 12,0, message: "Always 'null'.")] - [Obsoleted (PlatformName.iOS, 6,0, message: "Always 'null'.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Always 'null'.")] + [Obsoleted (PlatformName.iOS, 6, 0, message: "Always 'null'.")] [Obsoleted (PlatformName.MacOSX, 10, 8, message: "Always 'null'.")] [NoMacCatalyst] NSString TimedMetadata { get; } @@ -244,7 +248,8 @@ namespace AVFoundation { [Field ("AVMediaTypeMuxed")] NSString Muxed { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("AVMediaTypeMetadataObject")] NSString MetadataObject { get; } @@ -253,44 +258,42 @@ namespace AVFoundation { } #endif // !NET - [Watch (6,0)] - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(AVMetadataGroup))] - interface AVDateRangeMetadataGroup : NSCopying, NSMutableCopying - { + [Watch (6, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (AVMetadataGroup))] + interface AVDateRangeMetadataGroup : NSCopying, NSMutableCopying { [Export ("initWithItems:startDate:endDate:")] - NativeHandle Constructor (AVMetadataItem[] items, NSDate startDate, [NullAllowed] NSDate endDate); - + NativeHandle Constructor (AVMetadataItem [] items, NSDate startDate, [NullAllowed] NSDate endDate); + [Export ("startDate", ArgumentSemantic.Copy)] NSDate StartDate { get; [NotImplemented] set; } - + [NullAllowed, Export ("endDate", ArgumentSemantic.Copy)] NSDate EndDate { get; [NotImplemented] set; } - + [Export ("items", ArgumentSemantic.Copy)] - AVMetadataItem[] Items { get; [NotImplemented] set; } + AVMetadataItem [] Items { get; [NotImplemented] set; } } - [iOS (9,0), Mac (10,11), Watch (6,0)] - [BaseType (typeof(AVDateRangeMetadataGroup))] - interface AVMutableDateRangeMetadataGroup - { + [iOS (9, 0), Mac (10, 11), Watch (6, 0)] + [BaseType (typeof (AVDateRangeMetadataGroup))] + interface AVMutableDateRangeMetadataGroup { [Export ("startDate", ArgumentSemantic.Copy)] [Override] NSDate StartDate { get; set; } - + [NullAllowed, Export ("endDate", ArgumentSemantic.Copy)] [Override] NSDate EndDate { get; set; } - + [Export ("items", ArgumentSemantic.Copy)] [Override] - AVMetadataItem[] Items { get; set; } + AVMetadataItem [] Items { get; set; } } - + [Introduced (PlatformName.MacCatalyst, 14, 0)] - [TV (11,0), NoWatch, iOS (11,0), Mac (10, 13)] - [BaseType (typeof(NSObject))] + [TV (11, 0), NoWatch, iOS (11, 0), Mac (10, 13)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVDepthData { [Static] @@ -310,7 +313,7 @@ namespace AVFoundation { [Protected] [Export ("availableDepthDataTypes")] - NSNumber[] WeakAvailableDepthDataTypes { get; } + NSNumber [] WeakAvailableDepthDataTypes { get; } [Export ("dictionaryRepresentationForAuxiliaryDataType:")] [return: NullAllowed] @@ -336,7 +339,7 @@ namespace AVFoundation { } // values are manually given since not some are platform specific - [Watch (6,0)] + [Watch (6, 0)] enum AVMediaCharacteristics { [Field ("AVMediaCharacteristicVisual")] Visual = 0, @@ -349,8 +352,8 @@ namespace AVFoundation { [Field ("AVMediaCharacteristicFrameBased")] FrameBased = 3, - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVMediaCharacteristicUsesWideGamutColorSpace")] UsesWideGamutColorSpace = 4, @@ -376,19 +379,19 @@ namespace AVFoundation { [Field ("AVMediaCharacteristicEasyToRead")] EasyToRead = 11, - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicLanguageTranslation")] LanguageTranslation = 12, - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicDubbedTranslation")] DubbedTranslation = 13, - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicVoiceOverTranslation")] VoiceOverTranslation = 14, - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVMediaCharacteristicIsOriginalContent")] IsOriginalContent = 15, @@ -396,7 +399,7 @@ namespace AVFoundation { [Field ("AVMediaCharacteristicContainsHDRVideo")] ContainsHdrVideo = 16, - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVMediaCharacteristicContainsAlphaChannel")] ContainsAlphaChannel = 17, @@ -405,7 +408,8 @@ namespace AVFoundation { #if !NET [NoWatch] [Obsolete ("Use AVMediaCharacteristics enum values")] - [BaseType (typeof (NSObject))][Static] + [BaseType (typeof (NSObject))] + [Static] interface AVMediaCharacteristic { [Field ("AVMediaCharacteristicVisual")] NSString Visual { get; } @@ -418,8 +422,8 @@ namespace AVFoundation { [Field ("AVMediaCharacteristicFrameBased")] NSString FrameBased { get; } - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVMediaCharacteristicUsesWideGamutColorSpace")] NSString UsesWideGamutColorSpace { get; } @@ -439,29 +443,29 @@ namespace AVFoundation { NSString DescribesMusicAndSoundForAccessibility { get; } [Field ("AVMediaCharacteristicDescribesVideoForAccessibility")] - NSString DescribesVideoForAccessibility { get; } + NSString DescribesVideoForAccessibility { get; } [NoMac] [Field ("AVMediaCharacteristicEasyToRead")] NSString EasyToRead { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicLanguageTranslation")] NSString LanguageTranslation { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicDubbedTranslation")] NSString DubbedTranslation { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMediaCharacteristicVoiceOverTranslation")] NSString VoiceOverTranslation { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVMediaCharacteristicIsOriginalContent")] NSString IsOriginalContent { get; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVMediaCharacteristicContainsAlphaChannel")] NSString ContainsAlphaChannel { get; } @@ -469,9 +473,10 @@ namespace AVFoundation { } #endif - [Watch (6,0)] + [Watch (6, 0)] enum AVMetadataFormat { - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataFormatHLSMetadata")] FormatHlsMetadata = 0, @@ -481,68 +486,68 @@ namespace AVFoundation { [Field ("AVMetadataFormatID3Metadata")] FormatID3Metadata = 2, - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadataFormatISOUserData")] FormatISOUserData = 3, [Field ("AVMetadataFormatQuickTimeUserData")] FormatQuickTimeUserData = 4, - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("AVMetadataFormatUnknown")] Unknown = 5, } - [Watch (6,0)] + [Watch (6, 0)] enum AVFileTypes { [Field ("AVFileTypeQuickTimeMovie")] QuickTimeMovie = 0, - + [Field ("AVFileTypeMPEG4")] Mpeg4 = 1, - + [Field ("AVFileTypeAppleM4V")] AppleM4V = 2, - [Mac (10,11)] + [Mac (10, 11)] [Field ("AVFileType3GPP")] - ThreeGpp = 3, - + ThreeGpp = 3, + [Field ("AVFileTypeAppleM4A")] - AppleM4a = 4, - + AppleM4a = 4, + [Field ("AVFileTypeCoreAudioFormat")] - CoreAudioFormat = 5, - + CoreAudioFormat = 5, + [Field ("AVFileTypeWAVE")] - Wave = 6, - + Wave = 6, + [Field ("AVFileTypeAIFF")] Aiff = 7, - + [Field ("AVFileTypeAIFC")] - Aifc = 8, - + Aifc = 8, + [Field ("AVFileTypeAMR")] Amr = 9, - [iOS (7,0), Mac (10,11)] + [iOS (7, 0), Mac (10, 11)] [Field ("AVFileType3GPP2")] ThreeGpp2 = 10, - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeMPEGLayer3")] MpegLayer3 = 11, - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeSunAU")] SunAU = 12, - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeAC3")] AC3 = 13, - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVFileTypeEnhancedAC3")] EnhancedAC3 = 14, @@ -587,62 +592,63 @@ namespace AVFoundation { #if !NET [NoWatch] - [BaseType (typeof (NSObject))][Static] + [BaseType (typeof (NSObject))] + [Static] [Obsolete ("Use AVFileTypes enum values")] interface AVFileType { [Field ("AVFileTypeQuickTimeMovie")] NSString QuickTimeMovie { get; } - + [Field ("AVFileTypeMPEG4")] NSString Mpeg4 { get; } - + [Field ("AVFileTypeAppleM4V")] NSString AppleM4V { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("AVFileType3GPP")] NSString ThreeGpp { get; } - + [Field ("AVFileTypeAppleM4A")] NSString AppleM4A { get; } - + [Field ("AVFileTypeCoreAudioFormat")] NSString CoreAudioFormat { get; } - + [Field ("AVFileTypeWAVE")] NSString Wave { get; } - + [Field ("AVFileTypeAIFF")] NSString Aiff { get; } - + [Field ("AVFileTypeAIFC")] NSString Aifc { get; } - + [Field ("AVFileTypeAMR")] NSString Amr { get; } - [iOS (7,0), Mac (10,11)] + [iOS (7, 0), Mac (10, 11)] [Field ("AVFileType3GPP2")] NSString ThreeGpp2 { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeMPEGLayer3")] NSString MpegLayer3 { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeSunAU")] NSString SunAU { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVFileTypeAC3")] NSString AC3 { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVFileTypeEnhancedAC3")] NSString EnhancedAC3 { get; } } #endif - [iOS (9,0), Mac (10,11), Watch (6,0)] + [iOS (9, 0), Mac (10, 11), Watch (6, 0)] [Static] interface AVStreamingKeyDelivery { @@ -656,132 +662,133 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] [NoTV] - [iOS (7,0)] // And OSX 10.7 + [iOS (7, 0)] // And OSX 10.7 [DisableDefaultCtor] // crash -> immutable and you can get them but not set them (i.e. no point in creating them) [BaseType (typeof (NSObject))] interface AVFrameRateRange { - + [Export ("minFrameRate")] double MinFrameRate { get; } - + [Export ("maxFrameRate")] double MaxFrameRate { get; } - + [Export ("maxFrameDuration", ArgumentSemantic.Copy)] CMTime MaxFrameDuration { get; } - + [Export ("minFrameDuration", ArgumentSemantic.Copy)] CMTime MinFrameDuration { get; } } [NoWatch] - [BaseType (typeof (NSObject))][Static] + [BaseType (typeof (NSObject))] + [Static] interface AVVideo { [Field ("AVVideoCodecKey")] NSString CodecKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVVideoMaxKeyFrameIntervalDurationKey")] NSString MaxKeyFrameIntervalDurationKey { get; } - [Watch (7,2), TV (14,3), Mac (11,1), iOS (14,3)] + [Watch (7, 2), TV (14, 3), Mac (11, 1), iOS (14, 3)] [Field ("AVVideoAppleProRAWBitDepthKey")] NSString AppleProRawBitDepthKey { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Field ("AVVideoAllowFrameReorderingKey")] NSString AllowFrameReorderingKey { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Field ("AVVideoAverageNonDroppableFrameRateKey")] NSString AverageNonDroppableFrameRateKey { get; } [NoiOS, NoTV] - [Mac (10,10), NoMacCatalyst] + [Mac (10, 10), NoMacCatalyst] [Field ("AVVideoEncoderSpecificationKey")] NSString EncoderSpecificationKey { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Field ("AVVideoExpectedSourceFrameRateKey")] NSString ExpectedSourceFrameRateKey { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Field ("AVVideoH264EntropyModeCABAC")] NSString H264EntropyModeCABAC { get; } [iOS (7, 0)] - [Mac (10,10)] + [Mac (10, 10)] [Field ("AVVideoH264EntropyModeCAVLC")] NSString H264EntropyModeCAVLC { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Field ("AVVideoH264EntropyModeKey")] NSString H264EntropyModeKey { get; } [TV (9, 0)] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] [Field ("AVVideoCodecH264")] NSString CodecH264 { get; } - + [TV (9, 0)] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] [Field ("AVVideoCodecJPEG")] NSString CodecJPEG { get; } - - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'AVVideoCodecType' enum instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'AVVideoCodecType' enum instead.")] + + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'AVVideoCodecType' enum instead.")] [NoiOS, NoTV] [Field ("AVVideoCodecAppleProRes4444")] NSString AppleProRes4444 { get; } - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'AVVideoCodecType' enum instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'AVVideoCodecType' enum instead.")] [NoiOS, NoTV] [Field ("AVVideoCodecAppleProRes422")] NSString AppleProRes422 { get; } - + [Field ("AVVideoWidthKey")] NSString WidthKey { get; } - + [Field ("AVVideoHeightKey")] NSString HeightKey { get; } [Field ("AVVideoScalingModeKey")] NSString ScalingModeKey { get; } - + [Field ("AVVideoCompressionPropertiesKey")] NSString CompressionPropertiesKey { get; } - + [Field ("AVVideoAverageBitRateKey")] NSString AverageBitRateKey { get; } - + [Field ("AVVideoMaxKeyFrameIntervalKey")] NSString MaxKeyFrameIntervalKey { get; } - + [Field ("AVVideoProfileLevelKey")] NSString ProfileLevelKey { get; } [Field ("AVVideoQualityKey")] NSString QualityKey { get; } - + [Field ("AVVideoProfileLevelH264Baseline30")] NSString ProfileLevelH264Baseline30 { get; } - + [Field ("AVVideoProfileLevelH264Baseline31")] NSString ProfileLevelH264Baseline31 { get; } [Field ("AVVideoProfileLevelH264Main30")] NSString ProfileLevelH264Main30 { get; } - + [Field ("AVVideoProfileLevelH264Main31")] NSString ProfileLevelH264Main31 { get; } @@ -802,39 +809,39 @@ namespace AVFoundation { [Field ("AVVideoProfileLevelH264High41")] NSString ProfileLevelH264High41 { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVVideoProfileLevelH264BaselineAutoLevel")] NSString ProfileLevelH264BaselineAutoLevel { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVVideoProfileLevelH264MainAutoLevel")] NSString ProfileLevelH264MainAutoLevel { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVVideoProfileLevelH264HighAutoLevel")] NSString ProfileLevelH264HighAutoLevel { get; } [Field ("AVVideoPixelAspectRatioKey")] NSString PixelAspectRatioKey { get; } - + [Field ("AVVideoPixelAspectRatioHorizontalSpacingKey")] NSString PixelAspectRatioHorizontalSpacingKey { get; } - + [Field ("AVVideoPixelAspectRatioVerticalSpacingKey")] NSString PixelAspectRatioVerticalSpacingKey { get; } - + [Field ("AVVideoCleanApertureKey")] NSString CleanApertureKey { get; } - + [Field ("AVVideoCleanApertureWidthKey")] NSString CleanApertureWidthKey { get; } - + [Field ("AVVideoCleanApertureHeightKey")] NSString CleanApertureHeightKey { get; } - + [Field ("AVVideoCleanApertureHorizontalOffsetKey")] NSString CleanApertureHorizontalOffsetKey { get; } - + [Field ("AVVideoCleanApertureVerticalOffsetKey")] NSString CleanApertureVerticalOffsetKey { get; } @@ -842,8 +849,7 @@ namespace AVFoundation { [NoWatch] [Static] - interface AVVideoScalingModeKey - { + interface AVVideoScalingModeKey { [Field ("AVVideoScalingModeFit")] NSString Fit { get; } @@ -857,8 +863,9 @@ namespace AVFoundation { NSString ResizeAspectFill { get; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // `init` crash in tests - it may be a bug or this is an abstract class (doc not helpful) interface AVAudioBuffer : NSCopying, NSMutableCopying { @@ -872,8 +879,9 @@ namespace AVFoundation { IntPtr mutableAudioBufferList { get; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // fails (nil handle on iOS 10) interface AVAudioChannelLayout : NSSecureCoding { @@ -901,30 +909,29 @@ namespace AVFoundation { bool IsEqual (NSObject other); } - [Watch (3,0)] - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(AVAudioBuffer))] + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (AVAudioBuffer))] [DisableDefaultCtor] // just like base class (AVAudioBuffer) can't, avoid crash when ToString call `description` - interface AVAudioCompressedBuffer - { + interface AVAudioCompressedBuffer { [Export ("initWithFormat:packetCapacity:maximumPacketSize:")] NativeHandle Constructor (AVAudioFormat format, uint packetCapacity, nint maximumPacketSize); - + [Export ("initWithFormat:packetCapacity:")] NativeHandle Constructor (AVAudioFormat format, uint packetCapacity); - + [Export ("packetCapacity")] uint PacketCapacity { get; } - + [Export ("packetCount")] uint PacketCount { get; set; } - + [Export ("maximumPacketSize")] nint MaximumPacketSize { get; } - + [Export ("data")] IntPtr Data { get; } - + [NullAllowed, Export ("packetDescriptions")] AudioStreamPacketDescription PacketDescriptions { get; } @@ -937,28 +944,28 @@ namespace AVFoundation { uint ByteLength { get; set; } } - [Watch (3,0)] - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // fails (nil handle on iOS 10) - interface AVAudioConnectionPoint - { + interface AVAudioConnectionPoint { [Export ("initWithNode:bus:")] [DesignatedInitializer] NativeHandle Constructor (AVAudioNode node, nuint bus); - + [NullAllowed, Export ("node", ArgumentSemantic.Weak)] AVAudioNode Node { get; } - + [Export ("bus")] nuint Bus { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] delegate AVAudioEngineManualRenderingStatus AVAudioEngineManualRenderingBlock (/* AVAudioFrameCount = uint */ uint numberOfFrames, AudioBuffers outBuffer, [NullAllowed] /* OSStatus */ ref int outError); - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVAudioEngine { @@ -969,8 +976,8 @@ namespace AVFoundation { [Export ("outputNode")] AVAudioOutputNode OutputNode { get; } - [TV (11,0)] - [Watch (4,0)] + [TV (11, 0)] + [Watch (4, 0)] [Export ("inputNode")] AVAudioInputNode InputNode { get; } @@ -992,7 +999,7 @@ namespace AVFoundation { [Export ("connect:to:format:")] void Connect (AVAudioNode sourceNode, AVAudioNode targetNode, [NullAllowed] AVAudioFormat format); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("connect:toConnectionPoints:fromBus:format:")] void Connect (AVAudioNode sourceNode, AVAudioConnectionPoint [] destNodes, nuint sourceBus, [NullAllowed] AVAudioFormat format); @@ -1023,12 +1030,12 @@ namespace AVFoundation { [Export ("stop")] void Stop (); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [return: NullAllowed] [Export ("inputConnectionPointForNode:inputBus:")] AVAudioConnectionPoint InputConnectionPoint (AVAudioNode node, nuint bus); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("outputConnectionPointsForNode:outputBus:")] AVAudioConnectionPoint [] OutputConnectionPoints (AVAudioNode node, nuint bus); @@ -1040,11 +1047,11 @@ namespace AVFoundation { [Export ("autoShutdownEnabled")] bool AutoShutdownEnabled { [Bind ("isAutoShutdownEnabled")] get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("enableManualRenderingMode:format:maximumFrameCount:error:")] bool EnableManualRenderingMode (AVAudioEngineManualRenderingMode mode, AVAudioFormat pcmFormat, uint maximumFrameCount, out NSError outError); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("renderOffline:toBuffer:error:")] AVAudioEngineManualRenderingStatus RenderOffline (uint numberOfFrames, AVAudioPcmBuffer buffer, [NullAllowed] out NSError outError); @@ -1072,43 +1079,44 @@ namespace AVFoundation { [Export ("manualRenderingSampleTime")] long ManualRenderingSampleTime { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("disableManualRenderingMode")] void DisableManualRenderingMode (); #if !WATCH - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("connectMIDI:to:format:block:")] void ConnectMidi (AVAudioNode sourceNode, AVAudioNode destinationNode, [NullAllowed] AVAudioFormat format, [NullAllowed] AUMidiOutputEventBlock tapHandler); - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("connectMIDI:toNodes:format:block:")] - void ConnectMidi (AVAudioNode sourceNode, AVAudioNode[] destinationNodes, [NullAllowed] AVAudioFormat format, [NullAllowed] AUMidiOutputEventBlock tapHandler); + void ConnectMidi (AVAudioNode sourceNode, AVAudioNode [] destinationNodes, [NullAllowed] AVAudioFormat format, [NullAllowed] AUMidiOutputEventBlock tapHandler); #endif - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("disconnectMIDI:from:")] void DisconnectMidi (AVAudioNode sourceNode, AVAudioNode destinationNode); - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("disconnectMIDI:fromNodes:")] - void DisconnectMidi (AVAudioNode sourceNode, AVAudioNode[] destinationNodes); + void DisconnectMidi (AVAudioNode sourceNode, AVAudioNode [] destinationNodes); - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("disconnectMIDIInput:")] void DisconnectMidiInput (AVAudioNode node); - [TV (12,0), Mac (10,14), iOS (12,0), NoWatch] + [TV (12, 0), Mac (10, 14), iOS (12, 0), NoWatch] [Export ("disconnectMIDIOutput:")] void DisconnectMidiOutput (AVAudioNode node); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("attachedNodes", ArgumentSemantic.Copy)] NSSet AttachedNodes { get; } } [NoWatch] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] // designated interface AVAudioEnvironmentNode : AVAudioMixing { @@ -1145,13 +1153,14 @@ namespace AVFoundation { [Export ("outputVolume")] float OutputVolume { get; set; } /* float, not CGFloat */ - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("outputType", ArgumentSemantic.Assign)] AVAudioEnvironmentOutputType OutputType { get; set; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // returns a nil handle interface AVAudioEnvironmentDistanceAttenuationParameters { @@ -1168,8 +1177,9 @@ namespace AVFoundation { float RolloffFactor { get; set; } /* float, not CGFloat */ } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // returns a nil handle interface AVAudioEnvironmentReverbParameters { @@ -1185,9 +1195,10 @@ namespace AVFoundation { [Export ("loadFactoryReverbPreset:")] void LoadFactoryReverbPreset (AVAudioUnitReverbPreset preset); } - - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVAudioFile { [Export ("initForReading:error:")] @@ -1204,7 +1215,7 @@ namespace AVFoundation { [Export ("initForWriting:settings:commonFormat:interleaved:error:"), Internal] NativeHandle Constructor (NSUrl fileUrl, NSDictionary settings, AVAudioCommonFormat format, bool interleaved, out NSError outError); - + [Wrap ("this (fileUrl, settings.GetDictionary ()!, format, interleaved, out outError)")] NativeHandle Constructor (NSUrl fileUrl, AudioSettings settings, AVAudioCommonFormat format, bool interleaved, out NSError outError); @@ -1233,8 +1244,9 @@ namespace AVFoundation { bool WriteFromBuffer (AVAudioPcmBuffer buffer, out NSError outError); } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVAudioFormat : NSSecureCoding { [Export ("initWithStreamDescription:")] @@ -1261,7 +1273,9 @@ namespace AVFoundation { [Wrap ("this (settings.GetDictionary ()!)")] NativeHandle Constructor (AudioSettings settings); - [iOS (9,0)][Mac (10,11)][Watch (6,0)] + [iOS (9, 0)] + [Mac (10, 11)] + [Watch (6, 0)] [Export ("initWithCMAudioFormatDescription:")] NativeHandle Constructor (CMAudioFormatDescription formatDescription); @@ -1293,14 +1307,16 @@ namespace AVFoundation { [Wrap ("WeakSettings")] AudioSettings Settings { get; } - [iOS (9,0)][Mac (10,11)][Watch (6,0)] + [iOS (9, 0)] + [Mac (10, 11)] + [Watch (6, 0)] [Export ("formatDescription")] CMAudioFormatDescription FormatDescription { get; } [Export ("isEqual:"), Internal] bool IsEqual (NSObject obj); - - [iOS (10,0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("magicCookie", ArgumentSemantic.Retain)] NSData MagicCookie { get; set; } } @@ -1345,26 +1361,27 @@ namespace AVFoundation { AVAudio3DMixingPointSourceInHeadMode PointSourceInHeadMode { get; set; } #else - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("sourceMode", ArgumentSemantic.Assign)] AVAudio3DMixingSourceMode GetSourceMode (); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("setSourceMode:")] void SetSourceMode (AVAudio3DMixingSourceMode sourceMode); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("pointSourceInHeadMode", ArgumentSemantic.Assign)] AVAudio3DMixingPointSourceInHeadMode GetPointSourceInHeadMode (); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("setPointSourceInHeadMode:")] void SetPointSourceInHeadMode (AVAudio3DMixingPointSourceInHeadMode pointSourceInHeadMode); #endif } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [Protocol] interface AVAudioMixing : AVAudioStereoMixing #if !WATCH @@ -1372,7 +1389,7 @@ namespace AVFoundation { #endif { - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -1386,9 +1403,9 @@ namespace AVFoundation { float Volume { get; set; } /* float, not CGFloat */ } - [Watch (3,0)] - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSObject))] + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Default constructor not allowed : Objective-C exception thrown interface AVAudioMixingDestination : AVAudioMixing { @@ -1396,8 +1413,9 @@ namespace AVFoundation { AVAudioConnectionPoint ConnectionPoint { get; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [Protocol, Model] [BaseType (typeof (NSObject))] interface AVAudioStereoMixing { @@ -1405,11 +1423,12 @@ namespace AVFoundation { [Export ("pan")] float Pan { get; set; } /* float, not CGFloat */ } - + delegate void AVAudioNodeTapBlock (AVAudioPcmBuffer buffer, AVAudioTime when); - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // documented as an abstract class, returned Handle is nil interface AVAudioNode { @@ -1460,9 +1479,10 @@ namespace AVFoundation { [Export ("outputPresentationLatency")] double OutputPresentationLatency { get; } } - - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] // documented as a base class - returned Handle is nil interface AVAudioIONode { @@ -1473,17 +1493,18 @@ namespace AVFoundation { [Export ("audioUnit"), NullAllowed] global::AudioUnit.AudioUnit AudioUnit { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("voiceProcessingEnabled")] bool VoiceProcessingEnabled { [Bind ("isVoiceProcessingEnabled")] get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setVoiceProcessingEnabled:error:")] bool SetVoiceProcessingEnabled (bool enabled, out NSError outError); } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] // designated interface AVAudioMixerNode : AVAudioMixing { @@ -1499,46 +1520,50 @@ namespace AVFoundation { nuint NextAvailableInputBus { get; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [DisableDefaultCtor] // returned Handle is nil - // note: sample source (header) suggest it comes from AVAudioEngine properties + // note: sample source (header) suggest it comes from AVAudioEngine properties [BaseType (typeof (AVAudioIONode))] interface AVAudioOutputNode { - } + } - [Watch (4,0), TV (11,0), Mac (10,10), iOS (8,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 10), iOS (8, 0)] delegate AudioBuffers AVAudioIONodeInputBlock (uint frameCount); - [Watch (4,0)] - [iOS (8,0)][Mac (10,10)][TV (11,0)] - [BaseType (typeof (AVAudioIONode))] + [Watch (4, 0)] + [iOS (8, 0)] + [Mac (10, 10)] + [TV (11, 0)] + [BaseType (typeof (AVAudioIONode))] [DisableDefaultCtor] // returned Handle is nil - // note: sample source (header) suggest it comes from AVAudioEngine properties + // note: sample source (header) suggest it comes from AVAudioEngine properties interface AVAudioInputNode : AVAudioMixing { - [Mac (10,13), iOS (11,0), Watch (6,0)] + [Mac (10, 13), iOS (11, 0), Watch (6, 0)] [Export ("setManualRenderingInputPCMFormat:inputBlock:")] bool SetManualRenderingInputPcmFormat (AVAudioFormat format, AVAudioIONodeInputBlock block); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("voiceProcessingBypassed")] bool VoiceProcessingBypassed { [Bind ("isVoiceProcessingBypassed")] get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("voiceProcessingAGCEnabled")] bool VoiceProcessingAgcEnabled { [Bind ("isVoiceProcessingAGCEnabled")] get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("voiceProcessingInputMuted")] bool VoiceProcessingInputMuted { [Bind ("isVoiceProcessingInputMuted")] get; set; } } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (AVAudioBuffer), Name="AVAudioPCMBuffer")] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (AVAudioBuffer), Name = "AVAudioPCMBuffer")] [DisableDefaultCtor] // crash in tests interface AVAudioPcmBuffer { @@ -1546,16 +1571,16 @@ namespace AVFoundation { [Export ("initWithPCMFormat:frameCapacity:")] NativeHandle Constructor (AVAudioFormat format, uint /* AVAudioFrameCount = uint32_t */ frameCapacity); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithPCMFormat:bufferListNoCopy:deallocator:")] [DesignatedInitializer] NativeHandle Constructor (AVAudioFormat format, AudioBuffers bufferList, [NullAllowed] Action deallocator); [Export ("frameCapacity")] - uint FrameCapacity { get; } /* AVAudioFrameCount = uint32_t */ + uint FrameCapacity { get; } /* AVAudioFrameCount = uint32_t */ [Export ("frameLength")] - uint FrameLength { get; set; } /* AVAudioFrameCount = uint32_t */ + uint FrameLength { get; set; } /* AVAudioFrameCount = uint32_t */ [Export ("stride")] nuint Stride { get; } @@ -1570,77 +1595,79 @@ namespace AVFoundation { IntPtr Int32ChannelData { get; } } - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVAudioPlayer { - [Export ("initWithContentsOfURL:error:")][Internal] + [Export ("initWithContentsOfURL:error:")] + [Internal] NativeHandle Constructor (NSUrl url, IntPtr outError); - - [Export ("initWithData:error:")][Internal] - NativeHandle Constructor (NSData data, IntPtr outError); + + [Export ("initWithData:error:")] + [Internal] + NativeHandle Constructor (NSData data, IntPtr outError); [Export ("prepareToPlay")] bool PrepareToPlay (); - + [Export ("play")] bool Play (); - + [Export ("pause")] void Pause (); - + [Export ("stop")] void Stop (); - + [Export ("playing")] - bool Playing { [Bind ("isPlaying")] get; } - + bool Playing { [Bind ("isPlaying")] get; } + [Export ("numberOfChannels")] - nuint NumberOfChannels { get; } - + nuint NumberOfChannels { get; } + [Export ("duration")] - double Duration { get; } - + double Duration { get; } + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate"), NullAllowed] [Protocolize] AVAudioPlayerDelegate Delegate { get; set; } - - [Export ("url"), NullAllowed] - NSUrl Url { get; } - - [Export ("data"), NullAllowed] - NSData Data { get; } - - [Export ("volume")] - float Volume { get; set; } // defined as 'float' - [iOS (10,0), TV (10,0), Mac (10,12)] + [Export ("url"), NullAllowed] + NSUrl Url { get; } + + [Export ("data"), NullAllowed] + NSData Data { get; } + + [Export ("volume")] + float Volume { get; set; } // defined as 'float' + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("setVolume:fadeDuration:")] void SetVolume (float volume, double duration); - + [Export ("currentTime")] - double CurrentTime { get; set; } - + double CurrentTime { get; set; } + [Export ("numberOfLoops")] - nint NumberOfLoops { get; set; } - + nint NumberOfLoops { get; set; } + [Export ("meteringEnabled")] - bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; } - + bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; } + [Export ("updateMeters")] void UpdateMeters (); - + [Export ("peakPowerForChannel:")] float PeakPower (nuint channelNumber); // defined as 'float' - + [Export ("averagePowerForChannel:")] float AveragePower (nuint channelNumber); // defined as 'float' [Export ("deviceCurrentTime")] - double DeviceCurrentTime { get; } + double DeviceCurrentTime { get; } [Export ("pan")] float Pan { get; set; } // defined as 'float' @@ -1648,8 +1675,9 @@ namespace AVFoundation { [Export ("playAtTime:")] bool PlayAtTime (double time); - [Export ("settings")][Protected] - NSDictionary WeakSettings { get; } + [Export ("settings")] + [Protected] + NSDictionary WeakSettings { get; } [Wrap ("WeakSettings")] AudioSettings SoundSetting { get; } @@ -1664,30 +1692,30 @@ namespace AVFoundation { [Export ("channelAssignments", ArgumentSemantic.Copy), NullAllowed] AVAudioSessionChannelDescription [] ChannelAssignments { get; set; } - [iOS (7,0), Mac (10,9), Export ("initWithData:fileTypeHint:error:")] + [iOS (7, 0), Mac (10, 9), Export ("initWithData:fileTypeHint:error:")] NativeHandle Constructor (NSData data, [NullAllowed] string fileTypeHint, out NSError outError); - [iOS (7,0), Mac (10,9), Export ("initWithContentsOfURL:fileTypeHint:error:")] + [iOS (7, 0), Mac (10, 9), Export ("initWithContentsOfURL:fileTypeHint:error:")] NativeHandle Constructor (NSUrl url, [NullAllowed] string fileTypeHint, out NSError outError); - [iOS (10, 0), TV (10,0), Mac (10,12)] - [Watch (4,0)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] + [Watch (4, 0)] [Export ("format")] AVAudioFormat Format { get; } - [NoiOS, Mac (10, 13), NoTV, NoWatch, MacCatalyst (15,0)] + [NoiOS, Mac (10, 13), NoTV, NoWatch, MacCatalyst (15, 0)] [NullAllowed, Export ("currentDevice")] string CurrentDevice { get; set; } } - - [Watch (3,0)] + + [Watch (3, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] interface AVAudioPlayerDelegate { [Export ("audioPlayerDidFinishPlaying:successfully:"), CheckDisposed] void FinishedPlaying (AVAudioPlayer player, bool flag); - + [Export ("audioPlayerDecodeErrorDidOccur:error:")] void DecoderError (AVAudioPlayer player, [NullAllowed] NSError error); @@ -1695,7 +1723,7 @@ namespace AVFoundation { [Deprecated (PlatformName.iOS, 8, 0)] [Export ("audioPlayerBeginInterruption:")] void BeginInterruption (AVAudioPlayer player); - + [NoMac] [Export ("audioPlayerEndInterruption:")] [Deprecated (PlatformName.iOS, 6, 0)] @@ -1711,8 +1739,9 @@ namespace AVFoundation { #endif } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] // designated interface AVAudioPlayerNode : AVAudioMixing { @@ -1733,12 +1762,12 @@ namespace AVFoundation { void ScheduleBuffer (AVAudioPcmBuffer buffer, [NullAllowed] AVAudioTime when, AVAudioPlayerNodeBufferOptions options, [NullAllowed] Action completionHandler); [Async] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("scheduleBuffer:completionCallbackType:completionHandler:")] void ScheduleBuffer (AVAudioPcmBuffer buffer, AVAudioPlayerNodeCompletionCallbackType callbackType, [NullAllowed] Action completionHandler); [Async] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("scheduleBuffer:atTime:options:completionCallbackType:completionHandler:")] void ScheduleBuffer (AVAudioPcmBuffer buffer, [NullAllowed] AVAudioTime when, AVAudioPlayerNodeBufferOptions options, AVAudioPlayerNodeCompletionCallbackType callbackType, [NullAllowed] Action completionHandler); @@ -1747,7 +1776,7 @@ namespace AVFoundation { void ScheduleFile (AVAudioFile file, [NullAllowed] AVAudioTime when, [NullAllowed] Action completionHandler); [Async] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("scheduleFile:atTime:completionCallbackType:completionHandler:")] void ScheduleFile (AVAudioFile file, [NullAllowed] AVAudioTime when, AVAudioPlayerNodeCompletionCallbackType callbackType, [NullAllowed] Action completionHandler); @@ -1756,7 +1785,7 @@ namespace AVFoundation { void ScheduleSegment (AVAudioFile file, long startFrame, uint /* AVAudioFrameCount = uint32_t */ numberFrames, [NullAllowed] AVAudioTime when, [NullAllowed] Action completionHandler); [Async] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("scheduleSegment:startingFrame:frameCount:atTime:completionCallbackType:completionHandler:")] void ScheduleSegment (AVAudioFile file, long startFrame, uint numberFrames, [NullAllowed] AVAudioTime when, AVAudioPlayerNodeCompletionCallbackType callbackType, [NullAllowed] Action completionHandler); @@ -1786,53 +1815,54 @@ namespace AVFoundation { [BaseType (typeof (NSObject))] [NoTV] - [Watch (4,0)] + [Watch (4, 0)] interface AVAudioRecorder { - [Export ("initWithURL:settings:error:")][Internal] - IntPtr InitWithUrl (NSUrl url, NSDictionary settings, out NSError error); - + [Export ("initWithURL:settings:error:")] [Internal] - [iOS (10,0), Mac (10,12)] + IntPtr InitWithUrl (NSUrl url, NSDictionary settings, out NSError error); + + [Internal] + [iOS (10, 0), Mac (10, 12)] [Export ("initWithURL:format:error:")] IntPtr InitWithUrl (NSUrl url, AVAudioFormat format, out NSError outError); - + [Export ("prepareToRecord")] bool PrepareToRecord (); - + [Export ("record")] bool Record (); - + [Export ("recordForDuration:")] bool RecordFor (double duration); - + [Export ("pause")] void Pause (); - + [Export ("stop")] void Stop (); - + [Export ("deleteRecording")] bool DeleteRecording (); - + [Export ("recording")] - bool Recording { [Bind ("isRecording")] get; } - + bool Recording { [Bind ("isRecording")] get; } + [Export ("url")] - NSUrl Url { get; } + NSUrl Url { get; } [Export ("settings")] - NSDictionary WeakSettings { get; } + NSDictionary WeakSettings { get; } [Wrap ("WeakSettings")] AudioSettings Settings { get; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate"), NullAllowed] [Protocolize] - AVAudioRecorderDelegate Delegate { get; set; } - + AVAudioRecorderDelegate Delegate { get; set; } + #if !XAMCORE_5_0 [Obsolete ("Use the 'CurrentTime' property instead.")] [Wrap ("CurrentTime", IsVirtual = true)] @@ -1841,16 +1871,16 @@ namespace AVFoundation { [Export ("currentTime")] double CurrentTime { get; } - + [Export ("meteringEnabled")] - bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; } - + bool MeteringEnabled { [Bind ("isMeteringEnabled")] get; set; } + [Export ("updateMeters")] void UpdateMeters (); - + [Export ("peakPowerForChannel:")] float PeakPower (nuint channelNumber); // defined as 'float' - + [Export ("averagePowerForChannel:")] float AveragePower (nuint channelNumber); // defined as 'float' @@ -1858,44 +1888,44 @@ namespace AVFoundation { [Export ("channelAssignments", ArgumentSemantic.Copy), NullAllowed] AVAudioSessionChannelDescription [] ChannelAssignments { get; set; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("recordAtTime:")] bool RecordAt (double time); - [Mac (10,14)] + [Mac (10, 14)] [Export ("recordAtTime:forDuration:")] bool RecordAt (double time, double duration); - [Mac (10,14)] + [Mac (10, 14)] [Export ("deviceCurrentTime")] double DeviceCurrentTime { get; } - [iOS (10,0), Mac (10,12)] + [iOS (10, 0), Mac (10, 12)] [Export ("format")] AVAudioFormat Format { get; } } - + [BaseType (typeof (NSObject))] [Model] [Protocol] [NoTV] - [Watch (4,0)] + [Watch (4, 0)] interface AVAudioRecorderDelegate { [Export ("audioRecorderDidFinishRecording:successfully:"), CheckDisposed] void FinishedRecording (AVAudioRecorder recorder, bool flag); - + [Export ("audioRecorderEncodeErrorDidOccur:error:")] void EncoderError (AVAudioRecorder recorder, [NullAllowed] NSError error); [NoMac] [Deprecated (PlatformName.iOS, 8, 0)] [Export ("audioRecorderBeginInterruption:")] - void BeginInterruption (AVAudioRecorder recorder); + void BeginInterruption (AVAudioRecorder recorder); [NoMac] [Deprecated (PlatformName.iOS, 6, 0)] [Export ("audioRecorderEndInterruption:")] - void EndInterruption (AVAudioRecorder recorder); + void EndInterruption (AVAudioRecorder recorder); // Deprecated in iOS 6.0 but we have same C# signature as a method that was deprecated in iOS 8.0 [Deprecated (PlatformName.iOS, 8, 0)] @@ -1922,21 +1952,20 @@ namespace AVFoundation { [iOS (14, 5), Watch (7, 4), NoTV, NoMac] [Native] - public enum AVAudioSessionInterruptionReason : ulong - { + public enum AVAudioSessionInterruptionReason : ulong { Default = 0, AppWasSuspended = 1, BuiltInMicMuted = 2, } - [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)] interface SpatialPlaybackCapabilitiesChangedEventArgs { [Export ("AVAudioSessionSpatialAudioEnabledKey")] bool SpatialAudioEnabledKey { get; } } - [Mac (11,0)] - [Watch (3,0)] + [Mac (11, 0)] + [Watch (3, 0)] #if MONOMAC [Static] #endif @@ -1947,12 +1976,13 @@ namespace AVFoundation { [NoMac] [Export ("sharedInstance"), Static] AVAudioSession SharedInstance (); - + [NoWatch, NoMac] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AVAudioSession.Notification.Observe*' methods instead.")] - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] [NoTV] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [NoWatch, NoMac] [Wrap ("WeakDelegate")] @@ -1960,8 +1990,8 @@ namespace AVFoundation { [NullAllowed] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AVAudioSession.Notification.Observe*' methods instead.")] [NoTV] - AVAudioSessionDelegate Delegate { get; set; } - + AVAudioSessionDelegate Delegate { get; set; } + [NoMac] [Export ("setActive:error:")] bool SetActive (bool beActive, out NSError outError); @@ -1976,19 +2006,19 @@ namespace AVFoundation { [NoMac] [Export ("setCategory:error:")] bool SetCategory (NSString theCategory, out NSError outError); - + [NoTV, NoMac] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'SetPreferredSampleRate' instead.")] [Export ("setPreferredHardwareSampleRate:error:")] bool SetPreferredHardwareSampleRate (double sampleRate, out NSError outError); - + [NoWatch, NoMac] [Export ("setPreferredIOBufferDuration:error:")] bool SetPreferredIOBufferDuration (double duration, out NSError outError); - + [NoMac] [Export ("category")] - NSString Category { get; } + NSString Category { get; } [NoMac] [Export ("mode")] @@ -1997,35 +2027,35 @@ namespace AVFoundation { [NoMac] [Export ("setMode:error:")] bool SetMode (NSString mode, out NSError error); - + [NoTV, NoMac] [Export ("preferredHardwareSampleRate")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'PreferredSampleRate' instead.")] - double PreferredHardwareSampleRate { get; } - + double PreferredHardwareSampleRate { get; } + [NoWatch, NoMac] [Export ("preferredIOBufferDuration")] - double PreferredIOBufferDuration { get; } - + double PreferredIOBufferDuration { get; } + [NoTV, NoMac] [Export ("inputIsAvailable")] [Deprecated (PlatformName.iOS, 6, 0)] - bool InputIsAvailable { get; } - + bool InputIsAvailable { get; } + [NoTV, NoMac] [Export ("currentHardwareSampleRate")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'SampleRate' instead.")] - double CurrentHardwareSampleRate { get; } + double CurrentHardwareSampleRate { get; } [NoTV, NoMac] [Export ("currentHardwareInputNumberOfChannels")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'InputNumberOfChannels' instead.")] - nint CurrentHardwareInputNumberOfChannels { get; } - + nint CurrentHardwareInputNumberOfChannels { get; } + [NoTV, NoMac] [Export ("currentHardwareOutputNumberOfChannels")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'OutputNumberOfChannels' instead.")] - nint CurrentHardwareOutputNumberOfChannels { get; } + nint CurrentHardwareOutputNumberOfChannels { get; } [NoMac] [Field ("AVAudioSessionCategoryAmbient")] @@ -2047,7 +2077,9 @@ namespace AVFoundation { [Field ("AVAudioSessionCategoryPlayAndRecord")] NSString CategoryPlayAndRecord { get; } - [NoTV][NoWatch][NoMac] + [NoTV] + [NoWatch] + [NoMac] [Deprecated (PlatformName.iOS, 10, 0)] [Field ("AVAudioSessionCategoryAudioProcessing")] NSString CategoryAudioProcessing { get; } @@ -2081,25 +2113,25 @@ namespace AVFoundation { bool SetActive (bool active, AVAudioSessionSetActiveOptions options, out NSError outError); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("availableCategories")] string [] AvailableCategories { get; } [NoMac] [Export ("setCategory:withOptions:error:")] bool SetCategory (string category, AVAudioSessionCategoryOptions options, out NSError outError); - + [NoMac] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("setCategory:mode:options:error:")] bool SetCategory (string category, string mode, AVAudioSessionCategoryOptions options, out NSError outError); [NoMac] [Export ("categoryOptions")] - AVAudioSessionCategoryOptions CategoryOptions { get; } + AVAudioSessionCategoryOptions CategoryOptions { get; } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("availableModes")] string [] AvailableModes { get; } @@ -2109,59 +2141,59 @@ namespace AVFoundation { [NoMac] [Export ("otherAudioPlaying")] - bool OtherAudioPlaying { [Bind ("isOtherAudioPlaying")] get; } + bool OtherAudioPlaying { [Bind ("isOtherAudioPlaying")] get; } [NoMac] [Export ("currentRoute")] - AVAudioSessionRouteDescription CurrentRoute { get; } + AVAudioSessionRouteDescription CurrentRoute { get; } [NoWatch, NoMac] [Export ("setPreferredSampleRate:error:")] bool SetPreferredSampleRate (double sampleRate, out NSError error); - + [NoWatch, NoMac] [Export ("preferredSampleRate")] - double PreferredSampleRate { get; } + double PreferredSampleRate { get; } [NoWatch, NoMac] [Export ("inputGain")] - float InputGain { get; } // defined as 'float' + float InputGain { get; } // defined as 'float' [NoWatch, NoMac] [Export ("inputGainSettable")] - bool InputGainSettable { [Bind ("isInputGainSettable")] get; } + bool InputGainSettable { [Bind ("isInputGainSettable")] get; } [NoMac] [Export ("inputAvailable")] - bool InputAvailable { [Bind ("isInputAvailable")] get; } + bool InputAvailable { [Bind ("isInputAvailable")] get; } [NoMac] [Export ("sampleRate")] - double SampleRate { get; } + double SampleRate { get; } [NoMac] [Export ("inputNumberOfChannels")] - nint InputNumberOfChannels { get; } + nint InputNumberOfChannels { get; } [NoMac] [Export ("outputNumberOfChannels")] - nint OutputNumberOfChannels { get; } + nint OutputNumberOfChannels { get; } [NoMac] [Export ("outputVolume")] - float OutputVolume { get; } // defined as 'float' + float OutputVolume { get; } // defined as 'float' [NoMac] [Export ("inputLatency")] - double InputLatency { get; } + double InputLatency { get; } [NoMac] [Export ("outputLatency")] - double OutputLatency { get; } + double OutputLatency { get; } [NoMac] [Export ("IOBufferDuration")] - double IOBufferDuration { get; } + double IOBufferDuration { get; } [NoWatch, NoMac] [Export ("setInputGain:error:")] @@ -2180,82 +2212,82 @@ namespace AVFoundation { [Notification] NSString MediaServicesWereResetNotification { get; } - [iOS (7,0), Notification, Field ("AVAudioSessionMediaServicesWereLostNotification")] + [iOS (7, 0), Notification, Field ("AVAudioSessionMediaServicesWereLostNotification")] NSString MediaServicesWereLostNotification { get; } - + [NoMac] [Field ("AVAudioSessionCategoryMultiRoute")] NSString CategoryMultiRoute { get; } - + [NoMac] [Field ("AVAudioSessionModeMoviePlayback")] NSString ModeMoviePlayback { get; } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Field ("AVAudioSessionModeVideoChat")] NSString ModeVideoChat { get; } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Field ("AVAudioSessionModeSpokenAudio")] NSString ModeSpokenAudio { get; } - + [NoMac] [Field ("AVAudioSessionPortLineIn")] NSString PortLineIn { get; } - + [NoMac] [Field ("AVAudioSessionPortBuiltInMic")] NSString PortBuiltInMic { get; } - + [NoMac] [Field ("AVAudioSessionPortHeadsetMic")] NSString PortHeadsetMic { get; } - + [NoMac] [Field ("AVAudioSessionPortLineOut")] NSString PortLineOut { get; } - + [NoMac] [Field ("AVAudioSessionPortHeadphones")] NSString PortHeadphones { get; } - + [NoMac] [Field ("AVAudioSessionPortBluetoothA2DP")] NSString PortBluetoothA2DP { get; } - + [NoMac] [Field ("AVAudioSessionPortBuiltInReceiver")] NSString PortBuiltInReceiver { get; } - + [NoMac] [Field ("AVAudioSessionPortBuiltInSpeaker")] NSString PortBuiltInSpeaker { get; } - + [NoMac] [Field ("AVAudioSessionPortHDMI")] NSString PortHdmi { get; } - + [NoMac] [Field ("AVAudioSessionPortAirPlay")] NSString PortAirPlay { get; } - + [NoMac] [Field ("AVAudioSessionPortBluetoothHFP")] NSString PortBluetoothHfp { get; } - + [NoMac] [Field ("AVAudioSessionPortUSBAudio")] NSString PortUsbAudio { get; } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Field ("AVAudioSessionPortBluetoothLE")] NSString PortBluetoothLE { get; } [NoMac] - [iOS (7,1)] + [iOS (7, 1)] [Field ("AVAudioSessionPortCarAudio")] NSString PortCarAudio { get; } @@ -2283,30 +2315,30 @@ namespace AVFoundation { [Field ("AVAudioSessionPortVirtual")] NSString PortVirtual { get; } - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionLocationUpper")] NSString LocationUpper { get; } - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionLocationLower")] NSString LocationLower { get; } - + [NoMac] [Export ("inputDataSources"), NullAllowed] - AVAudioSessionDataSourceDescription [] InputDataSources { get; } + AVAudioSessionDataSourceDescription [] InputDataSources { get; } [NoMac] [Export ("inputDataSource"), NullAllowed] - AVAudioSessionDataSourceDescription InputDataSource { get; } + AVAudioSessionDataSourceDescription InputDataSource { get; } [NoMac] [Export ("outputDataSources"), NullAllowed] - AVAudioSessionDataSourceDescription [] OutputDataSources { get; } + AVAudioSessionDataSourceDescription [] OutputDataSources { get; } [NoMac] [Export ("outputDataSource"), NullAllowed] - AVAudioSessionDataSourceDescription OutputDataSource { get; } - + AVAudioSessionDataSourceDescription OutputDataSource { get; } + [NoWatch, NoMac] [Export ("setInputDataSource:error:")] [PostGet ("InputDataSource")] @@ -2318,84 +2350,84 @@ namespace AVFoundation { bool SetOutputDataSource ([NullAllowed] AVAudioSessionDataSourceDescription dataSource, out NSError outError); [NoTV, NoMac] - [Watch (4,0)] - [iOS (7,0)] + [Watch (4, 0)] + [iOS (7, 0)] [Export ("requestRecordPermission:")] void RequestRecordPermission (AVPermissionGranted responseCallback); - [NoWatch, iOS (7,0), NoMac] + [NoWatch, iOS (7, 0), NoMac] [Export ("setPreferredInput:error:")] bool SetPreferredInput ([NullAllowed] AVAudioSessionPortDescription inPort, out NSError outError); - [NoWatch, iOS (7,0), NoMac] + [NoWatch, iOS (7, 0), NoMac] [Export ("preferredInput", ArgumentSemantic.Copy), NullAllowed] AVAudioSessionPortDescription PreferredInput { get; } - [iOS (7,0), NoMac] + [iOS (7, 0), NoMac] [NullAllowed, Export ("availableInputs")] AVAudioSessionPortDescription [] AvailableInputs { get; } [NoWatch, NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("setPreferredInputNumberOfChannels:error:")] bool SetPreferredInputNumberOfChannels (nint count, out NSError outError); - + [NoWatch, NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("preferredInputNumberOfChannels")] nint GetPreferredInputNumberOfChannels (); - + [NoWatch, NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("setPreferredOutputNumberOfChannels:error:")] bool SetPreferredOutputNumberOfChannels (nint count, out NSError outError); - + [NoWatch, NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("preferredOutputNumberOfChannels")] nint GetPreferredOutputNumberOfChannels (); - - [iOS (7,0), NoMac] + + [iOS (7, 0), NoMac] [Export ("maximumInputNumberOfChannels")] nint MaximumInputNumberOfChannels { get; } - - [iOS (7,0), NoMac] + + [iOS (7, 0), NoMac] [Export ("maximumOutputNumberOfChannels")] nint MaximumOutputNumberOfChannels { get; } - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionOrientationTop")] NSString OrientationTop { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionOrientationBottom")] NSString OrientationBottom { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionOrientationFront")] NSString OrientationFront { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionOrientationBack")] NSString OrientationBack { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("AVAudioSessionOrientationLeft")] NSString OrientationLeft { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("AVAudioSessionOrientationRight")] NSString OrientationRight { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionPolarPatternOmnidirectional")] NSString PolarPatternOmnidirectional { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionPolarPatternCardioid")] NSString PolarPatternCardioid { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [UnifiedInternal, Field ("AVAudioSessionPolarPatternSubcardioid")] NSString PolarPatternSubcardioid { get; } @@ -2405,33 +2437,33 @@ namespace AVFoundation { // 8.0 [NoTV, NoMac] - [iOS (8,0), Watch (5,0)] + [iOS (8, 0), Watch (5, 0)] [Export ("recordPermission")] AVAudioSessionRecordPermission RecordPermission { get; } - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("secondaryAudioShouldBeSilencedHint")] bool SecondaryAudioShouldBeSilencedHint { get; } - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Field ("AVAudioSessionSilenceSecondaryAudioHintNotification")] [Notification (typeof (AVAudioSessionSecondaryAudioHintEventArgs))] NSString SilenceSecondaryAudioHintNotification { get; } - - [NoWatch, NoTV, iOS(10,0), NoMac] + + [NoWatch, NoTV, iOS (10, 0), NoMac] [Export ("setAggregatedIOPreference:error:")] bool SetAggregatedIOPreference (AVAudioSessionIOType ioType, out NSError error); - [TV (11,0), Watch (5,0), iOS (11,0), NoMac] + [TV (11, 0), Watch (5, 0), iOS (11, 0), NoMac] [Export ("setCategory:mode:routeSharingPolicy:options:error:")] bool SetCategory (string category, string mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options, [NullAllowed] out NSError outError); - [TV (11, 0), Watch (5,0), iOS (11, 0), NoMac] + [TV (11, 0), Watch (5, 0), iOS (11, 0), NoMac] [Export ("routeSharingPolicy")] AVAudioSessionRouteSharingPolicy RouteSharingPolicy { get; } [Async] - [Watch (5,0), NoTV, NoMac, NoiOS, MacCatalyst (15,0)] + [Watch (5, 0), NoTV, NoMac, NoiOS, MacCatalyst (15, 0)] [Export ("activateWithOptions:completionHandler:")] void Activate (AVAudioSessionActivationOptions options, Action handler); @@ -2439,11 +2471,11 @@ namespace AVFoundation { [Export ("promptStyle")] AVAudioSessionPromptStyle PromptStyle { get; } - [Watch (6,0), TV (13,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (13, 0), NoMac, iOS (13, 0)] [Export ("setAllowHapticsAndSystemSoundsDuringRecording:error:")] bool SetAllowHapticsAndSystemSoundsDuringRecording (bool inValue, [NullAllowed] out NSError outError); - [Watch (6,0), TV (13,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (13, 0), NoMac, iOS (13, 0)] [Export ("allowHapticsAndSystemSoundsDuringRecording")] bool AllowHapticsAndSystemSoundsDuringRecording { get; } @@ -2451,7 +2483,7 @@ namespace AVFoundation { [Export ("preferredInputOrientation")] AVAudioStereoOrientation PreferredInputOrientation { get; } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Export ("setPreferredInputOrientation:error:")] bool SetPreferredInputOrientation (AVAudioStereoOrientation orientation, [NullAllowed] out NSError outError); @@ -2459,79 +2491,79 @@ namespace AVFoundation { [Export ("inputOrientation")] AVAudioStereoOrientation InputOrientation { get; } - [Watch (7,4), TV (14,5), NoMac, iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), NoMac, iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("setPrefersNoInterruptionsFromSystemAlerts:error:")] bool SetPrefersNoInterruptionsFromSystemAlerts (bool inValue, [NullAllowed] out NSError outError); [Watch (7, 4), TV (14, 5), NoMac, iOS (14, 5)] - [MacCatalyst (14,5)] + [MacCatalyst (14, 5)] [Export ("prefersNoInterruptionsFromSystemAlerts")] bool PrefersNoInterruptionsFromSystemAlerts { get; } - [Watch (8,0), TV (15,0), NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("setSupportsMultichannelContent:error:")] bool SetSupportsMultichannelContent (bool inValue, [NullAllowed] out NSError outError); - [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportsMultichannelContent")] bool SupportsMultichannelContent { get; } [Notification (typeof (SpatialPlaybackCapabilitiesChangedEventArgs))] - [Watch (8,0), TV (15,0), NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification")] NSString SpatialPlaybackCapabilitiesChangedNotification { get; } } - + [NoMac] [BaseType (typeof (NSObject))] interface AVAudioSessionDataSourceDescription { [Export ("dataSourceID")] - NSNumber DataSourceID { get; } + NSNumber DataSourceID { get; } [Export ("dataSourceName")] - string DataSourceName { get; } + string DataSourceName { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("location", ArgumentSemantic.Copy), NullAllowed] [Internal] NSString Location_ { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("orientation", ArgumentSemantic.Copy), NullAllowed] [Internal] NSString Orientation_ { get; } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Export ("supportedPolarPatterns"), NullAllowed] NSString [] SupportedPolarPatterns { get; } - + [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Export ("selectedPolarPattern", ArgumentSemantic.Copy), NullAllowed] NSString SelectedPolarPattern { get; } - + [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Export ("preferredPolarPattern", ArgumentSemantic.Copy), NullAllowed] NSString PreferredPolarPattern { get; } - + [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [UnifiedInternal, Export ("setPreferredPolarPattern:error:")] bool SetPreferredPolarPattern ([NullAllowed] NSString pattern, out NSError outError); - + } - [Mac (11,0)] + [Mac (11, 0)] interface AVAudioSessionInterruptionEventArgs { [Export ("AVAudioSessionInterruptionTypeKey")] AVAudioSessionInterruptionType InterruptionType { get; } [Export ("AVAudioSessionInterruptionOptionKey")] AVAudioSessionInterruptionOptions Option { get; } - + [iOS (14, 5), Watch (7, 4), NoTV, NoMac] [Export ("AVAudioSessionInterruptionReasonKey")] AVAudioSessionInterruptionReason Reason { get; } @@ -2546,27 +2578,28 @@ namespace AVFoundation { interface AVAudioSessionRouteChangeEventArgs { [Export ("AVAudioSessionRouteChangeReasonKey")] AVAudioSessionRouteChangeReason Reason { get; } - + [Export ("AVAudioSessionRouteChangePreviousRouteKey")] AVAudioSessionRouteDescription PreviousRoute { get; } } - + [NoMac] [Deprecated (PlatformName.iOS, 6, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] - [NoTV][NoWatch] + [NoTV] + [NoWatch] interface AVAudioSessionDelegate { [Export ("beginInterruption")] void BeginInterruption (); - + [Export ("endInterruption")] void EndInterruption (); [Export ("inputIsAvailableChanged:")] void InputIsAvailableChanged (bool isInputAvailable); - + [Export ("endInterruptionWithFlags:")] #if NET void EndInterruption (AVAudioSessionInterruptionOptions flags); @@ -2576,44 +2609,44 @@ namespace AVFoundation { } [NoMac] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface AVAudioSessionChannelDescription { [Export ("channelName")] - string ChannelName { get; } + string ChannelName { get; } [Export ("owningPortUID")] - string OwningPortUID { get; } + string OwningPortUID { get; } [Export ("channelNumber")] - nint ChannelNumber { get; } + nint ChannelNumber { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("channelLabel")] int /* AudioChannelLabel = UInt32 */ ChannelLabel { get; } } [NoMac] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface AVAudioSessionPortDescription { [Export ("portType")] - NSString PortType { get; } + NSString PortType { get; } [Export ("portName")] - string PortName { get; } + string PortName { get; } [Export ("UID")] - string UID { get; } + string UID { get; } - [iOS (10, 0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("hasHardwareVoiceCallProcessing")] bool HasHardwareVoiceCallProcessing { get; } [Export ("channels"), NullAllowed] - AVAudioSessionChannelDescription [] Channels { get; } + AVAudioSessionChannelDescription [] Channels { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("dataSources"), NullAllowed] #if NET AVAudioSessionDataSourceDescription [] DataSources { get; } @@ -2622,38 +2655,38 @@ namespace AVFoundation { #endif [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Export ("selectedDataSource", ArgumentSemantic.Copy), NullAllowed] AVAudioSessionDataSourceDescription SelectedDataSource { get; } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Export ("preferredDataSource", ArgumentSemantic.Copy), NullAllowed] AVAudioSessionDataSourceDescription PreferredDataSource { get; } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Export ("setPreferredDataSource:error:")] bool SetPreferredDataSource ([NullAllowed] AVAudioSessionDataSourceDescription dataSource, out NSError outError); - - [Watch (8,0), TV (15,0), NoMac, iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("spatialAudioEnabled")] bool SpatialAudioEnabled { [Bind ("isSpatialAudioEnabled")] get; } } [NoMac] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface AVAudioSessionRouteDescription { [Export ("inputs")] - AVAudioSessionPortDescription [] Inputs { get; } + AVAudioSessionPortDescription [] Inputs { get; } [Export ("outputs")] - AVAudioSessionPortDescription [] Outputs { get; } + AVAudioSessionPortDescription [] Outputs { get; } } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] // returns a nil handle interface AVAudioUnit { @@ -2675,18 +2708,18 @@ namespace AVFoundation { [Export ("loadAudioUnitPresetAtURL:error:")] bool LoadAudioUnitPreset (NSUrl url, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("instantiateWithComponentDescription:options:completionHandler:")] [Async] void FromComponentDescription (AudioComponentDescription audioComponentDescription, AudioComponentInstantiationOptions options, Action completionHandler); - [NoWatch, iOS (9,0), Mac (10,11)] + [NoWatch, iOS (9, 0), Mac (10, 11)] [Export ("AUAudioUnit")] AUAudioUnit AUAudioUnit { get; } } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnitEffect))] interface AVAudioUnitDelay { [Export ("delayTime")] @@ -2703,7 +2736,7 @@ namespace AVFoundation { } [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (AVAudioUnitEffect))] interface AVAudioUnitDistortion { [Export ("preGain")] @@ -2716,7 +2749,7 @@ namespace AVFoundation { void LoadFactoryPreset (AVAudioUnitDistortionPreset preset); } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnit))] [DisableDefaultCtor] // returns a nil handle interface AVAudioUnitEffect { @@ -2728,7 +2761,8 @@ namespace AVFoundation { } [NoWatch] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (AVAudioUnitEffect))] interface AVAudioUnitEQ { [Export ("initWithNumberOfBands:")] @@ -2741,8 +2775,9 @@ namespace AVFoundation { float GlobalGain { get; set; } /* float, not CGFloat */ } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // returns a nil handle interface AVAudioUnitEQFilterParameters { @@ -2762,7 +2797,7 @@ namespace AVFoundation { bool Bypass { get; set; } } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnit))] [DisableDefaultCtor] // returns a nil handle interface AVAudioUnitGenerator : AVAudioMixing { @@ -2773,10 +2808,10 @@ namespace AVFoundation { bool Bypass { get; set; } } - [NoWatch, iOS (8,0)] - [BaseType (typeof (AVAudioUnit), Name="AVAudioUnitMIDIInstrument")] + [NoWatch, iOS (8, 0)] + [BaseType (typeof (AVAudioUnit), Name = "AVAudioUnitMIDIInstrument")] [DisableDefaultCtor] // returns a nil handle - interface AVAudioUnitMidiInstrument : AVAudioMixing { + interface AVAudioUnitMidiInstrument : AVAudioMixing { [Export ("initWithAudioComponentDescription:")] NativeHandle Constructor (AudioComponentDescription audioComponentDescription); @@ -2814,7 +2849,7 @@ namespace AVFoundation { void SendMidiSysExEvent (NSData midiData); } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnitMidiInstrument))] interface AVAudioUnitSampler { [Export ("stereoPan")] @@ -2840,12 +2875,12 @@ namespace AVFoundation { [Export ("loadAudioFilesAtURLs:error:")] bool LoadAudioFiles (NSUrl [] audioFiles, out NSError outError); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("overallGain")] float OverallGain { get; set; } } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnitEffect))] interface AVAudioUnitReverb { @@ -2855,9 +2890,9 @@ namespace AVFoundation { [Export ("loadFactoryPreset:")] void LoadFactoryPreset (AVAudioUnitReverbPreset preset); } - - [NoWatch, iOS (8,0)] + + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnit))] [DisableDefaultCtor] // returns a nil handle interface AVAudioUnitTimeEffect { @@ -2867,8 +2902,8 @@ namespace AVFoundation { [Export ("bypass")] bool Bypass { get; set; } } - - [NoWatch, iOS (8,0)] + + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnitTimeEffect))] interface AVAudioUnitTimePitch { [Export ("initWithAudioComponentDescription:")] @@ -2885,7 +2920,7 @@ namespace AVFoundation { float Overlap { get; set; } /* float, not CGFloat */ } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (AVAudioUnitTimeEffect))] interface AVAudioUnitVarispeed { [Export ("initWithAudioComponentDescription:")] @@ -2895,8 +2930,9 @@ namespace AVFoundation { float Rate { get; set; } /* float, not CGFloat */ } - [Watch (3,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVAudioTime { [Export ("initWithAudioTimeStamp:sampleRate:")] @@ -2952,11 +2988,11 @@ namespace AVFoundation { AVAudioTime ExtrapolateTimeFromAnchor (AVAudioTime anchorTime); } - [Watch (3,0)] - [iOS (9,0), Mac(10,11)] + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Docs/headers do not state that init is disallowed but if - // you get an instance that way and try to use it, it will inmediatelly crash also tested in ObjC app same result + // you get an instance that way and try to use it, it will inmediatelly crash also tested in ObjC app same result interface AVAudioConverter { [Export ("initFromFormat:toFormat:")] @@ -2972,7 +3008,7 @@ namespace AVFoundation { AVAudioFormat OutputFormat { get; } [Export ("channelMap", ArgumentSemantic.Retain)] - NSNumber[] ChannelMap { get; set; } + NSNumber [] ChannelMap { get; set; } [NullAllowed, Export ("magicCookie", ArgumentSemantic.Retain)] NSData MagicCookie { get; set; } @@ -3014,62 +3050,62 @@ namespace AVFoundation { nint MaximumOutputPacketSize { get; } [NullAllowed, Export ("availableEncodeBitRates")] - NSNumber[] AvailableEncodeBitRates { get; } + NSNumber [] AvailableEncodeBitRates { get; } [NullAllowed, Export ("applicableEncodeBitRates")] - NSNumber[] ApplicableEncodeBitRates { get; } + NSNumber [] ApplicableEncodeBitRates { get; } [NullAllowed, Export ("availableEncodeSampleRates")] - NSNumber[] AvailableEncodeSampleRates { get; } + NSNumber [] AvailableEncodeSampleRates { get; } [NullAllowed, Export ("applicableEncodeSampleRates")] - NSNumber[] ApplicableEncodeSampleRates { get; } + NSNumber [] ApplicableEncodeSampleRates { get; } [NullAllowed, Export ("availableEncodeChannelLayoutTags")] - NSNumber[] AvailableEncodeChannelLayoutTags { get; } + NSNumber [] AvailableEncodeChannelLayoutTags { get; } } - [TV (11,2), NoWatch, NoMac, NoiOS] + [TV (11, 2), NoWatch, NoMac, NoiOS] [Abstract] [BaseType (typeof (NSObject))] interface AVDisplayCriteria : NSCopying { } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** initialization method -init cannot be sent to an abstract object of class AVAsset: Create a concrete instance! [DisableDefaultCtor] interface AVAsset : NSCopying { [Export ("duration")] - CMTime Duration { get; } + CMTime Duration { get; } [Export ("preferredRate")] - float PreferredRate { get; } // defined as 'float' + float PreferredRate { get; } // defined as 'float' [Export ("preferredVolume")] - float PreferredVolume { get; } // defined as 'float' + float PreferredVolume { get; } // defined as 'float' [Export ("preferredTransform")] - CGAffineTransform PreferredTransform { get; } + CGAffineTransform PreferredTransform { get; } [Export ("naturalSize")] - [Deprecated (PlatformName.iOS, 5, 0, message : "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] - [Deprecated (PlatformName.TvOS, 9, 0, message : "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] - CGSize NaturalSize { get; } + [Deprecated (PlatformName.iOS, 5, 0, message: "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] + [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")] + CGSize NaturalSize { get; } - [TV (11,2), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (11, 2), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("preferredDisplayCriteria")] AVDisplayCriteria PreferredDisplayCriteria { get; } [Export ("providesPreciseDurationAndTiming")] - bool ProvidesPreciseDurationAndTiming { get; } + bool ProvidesPreciseDurationAndTiming { get; } [Export ("cancelLoading")] void CancelLoading (); [Export ("tracks")] - AVAssetTrack [] Tracks { get; } + AVAssetTrack [] Tracks { get; } [return: NullAllowed] [Export ("trackWithTrackID:")] @@ -3088,13 +3124,13 @@ namespace AVFoundation { AVAssetTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Export ("lyrics"), NullAllowed] - string Lyrics { get; } + string Lyrics { get; } [Export ("commonMetadata")] - AVMetadataItem [] CommonMetadata { get; } + AVMetadataItem [] CommonMetadata { get; } [Export ("availableMetadataFormats")] - string [] AvailableMetadataFormats { get; } + string [] AvailableMetadataFormats { get; } #if !NET [Obsolete ("Use 'GetMetadataForFormat' with enum values AVMetadataFormat.")] @@ -3136,9 +3172,9 @@ namespace AVFoundation { string [] AvailableMediaCharacteristicsWithMediaSelectionOptions { get; } [NoMac] - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [Export ("compatibleWithSavedPhotosAlbum")] - bool CompatibleWithSavedPhotosAlbum { [Bind ("isCompatibleWithSavedPhotosAlbum")] get; } + bool CompatibleWithSavedPhotosAlbum { [Bind ("isCompatibleWithSavedPhotosAlbum")] get; } [Export ("creationDate"), NullAllowed] AVMetadataItem CreationDate { get; } @@ -3164,121 +3200,121 @@ namespace AVFoundation { [Export ("chapterMetadataGroupsBestMatchingPreferredLanguages:")] AVTimedMetadataGroup [] GetChapterMetadataGroupsBestMatchingPreferredLanguages (string [] languages); - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("trackGroups", ArgumentSemantic.Copy)] AVAssetTrackGroup [] TrackGroups { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("metadata")] AVMetadataItem [] Metadata { get; } [Export ("unusedTrackID")] int /* CMPersistentTrackID -> int32_t */ UnusedTrackId { get; } // TODO: wrong name, should have benn UnusedTrackID - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("preferredMediaSelection")] AVMediaSelection PreferredMediaSelection { get; } // AVAsset (AVAssetFragments) Category // This is being inlined because there are no property extensions - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("canContainFragments")] bool CanContainFragments { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("containsFragments")] bool ContainsFragments { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("compatibleWithAirPlayVideo")] bool CompatibleWithAirPlayVideo { [Bind ("isCompatibleWithAirPlayVideo")] get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVAssetDurationDidChangeNotification")] [Notification] NSString DurationDidChangeNotification { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVAssetChapterMetadataGroupsDidChangeNotification")] [Notification] NSString ChapterMetadataGroupsDidChangeNotification { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Notification, Field ("AVAssetMediaSelectionGroupsDidChangeNotification")] NSString MediaSelectionGroupsDidChangeNotification { get; } - [Mac (10,11)] + [Mac (10, 11)] [TV (12, 0), NoWatch, iOS (12, 0)] [Field ("AVAssetContainsFragmentsDidChangeNotification")] [Notification] NSString ContainsFragmentsDidChangeNotification { get; } - [Mac (10,11)] + [Mac (10, 11)] [TV (12, 0), NoWatch, iOS (12, 0)] [Field ("AVAssetWasDefragmentedNotification")] [Notification] NSString WasDefragmentedNotification { get; } - [iOS (10, 2), Mac (10,12,2), TV (10, 2)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 2)] [Export ("overallDurationHint")] CMTime OverallDurationHint { get; } [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Export ("allMediaSelections")] - AVMediaSelection[] AllMediaSelections { get; } + AVMediaSelection [] AllMediaSelections { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("minimumTimeOffsetFromLive")] CMTime MinimumTimeOffsetFromLive { get; } [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("findUnusedTrackIDWithCompletionHandler:")] void FindUnusedTrackId (Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler:")] - void LoadChapterMetadataGroups (string[] bestMatchingPreferredLanguages, Action, NSError> completionHandler); + void LoadChapterMetadataGroups (string [] bestMatchingPreferredLanguages, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler:")] - void LoadChapterMetadataGroups (NSLocale titleLocale, string[] commonKeys, Action, NSError> completionHandler); + void LoadChapterMetadataGroups (NSLocale titleLocale, string [] commonKeys, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadMediaSelectionGroupForMediaCharacteristic:completionHandler:")] void LoadMediaSelectionGroup (string mediaCharacteristic, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadMetadataForFormat:completionHandler:")] void LoadMetadata (string format, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTrackWithMediaCharacteristics (string mediaCharacteristic, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); } - interface IAVFragmentMinding {} + interface IAVFragmentMinding { } [Protocol] - [Mac (10,11)] - [iOS (12, 0), TV (12,0), Watch (6,0)] + [Mac (10, 11)] + [iOS (12, 0), TV (12, 0), Watch (6, 0)] interface AVFragmentMinding { #if !MONOMAC || NET @@ -3288,8 +3324,8 @@ namespace AVFoundation { bool IsAssociatedWithFragmentMinder (); } - [Mac (10,11)] - [iOS (12, 0), TV (12,0), Watch (6,0)] + [Mac (10, 11)] + [iOS (12, 0), TV (12, 0), Watch (6, 0)] [DisableDefaultCtor] [BaseType (typeof (AVUrlAsset))] interface AVFragmentedAsset : AVFragmentMinding { @@ -3305,10 +3341,10 @@ namespace AVFoundation { AVFragmentedAssetTrack [] Tracks { get; } } - [Mac (10,11)] - [iOS (12, 0), TV (12,0), Watch (6,0)] + [Mac (10, 11)] + [iOS (12, 0), TV (12, 0), Watch (6, 0)] [Category] - [BaseType (typeof(AVFragmentedAsset))] + [BaseType (typeof (AVFragmentedAsset))] interface AVFragmentedAsset_AVFragmentedAssetTrackInspection { [Export ("trackWithTrackID:")] @@ -3328,32 +3364,32 @@ namespace AVFoundation { AVFragmentedAssetTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Mac (10,11)] - [iOS (12,0), TV (12,0), Watch (6,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 11)] + [iOS (12, 0), TV (12, 0), Watch (6, 0)] + [BaseType (typeof (NSObject))] interface AVFragmentedAssetMinder { [Static] [Export ("fragmentedAssetMinderWithAsset:mindingInterval:")] AVFragmentedAssetMinder FromAsset (AVAsset asset, double mindingInterval); - [Mac (10,14)] + [Mac (10, 14)] [Export ("initWithAsset:mindingInterval:")] NativeHandle Constructor (IAVFragmentMinding asset, double mindingInterval); @@ -3370,16 +3406,18 @@ namespace AVFoundation { void RemoveFragmentedAsset (AVAsset asset); } - [Mac (10,11)] - [iOS (12,0), TV (12,0), Watch (6,0)] + [Mac (10, 11)] + [iOS (12, 0), TV (12, 0), Watch (6, 0)] [DisableDefaultCtor] [BaseType (typeof (AVAssetTrack))] interface AVFragmentedAssetTrack { } - interface IAVCaptureFileOutputDelegate {} + interface IAVCaptureFileOutputDelegate { } - [NoWatch][NoiOS][NoTV] + [NoWatch] + [NoiOS] + [NoTV] [Unavailable (PlatformName.MacCatalyst)] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -3397,21 +3435,19 @@ namespace AVFoundation { // [Abstract] // Abstract superclass. #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptureSynchronizedData - { + interface AVCaptureSynchronizedData { [Export ("timestamp")] CMTime Timestamp { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptureSynchronizedDataCollection : INSFastEnumeration - { + interface AVCaptureSynchronizedDataCollection : INSFastEnumeration { #if !NET [Obsolete ("Use 'GetSynchronizedData' instead.")] [Wrap ("GetSynchronizedData (captureOutput)", isVirtual: true)] @@ -3435,31 +3471,29 @@ namespace AVFoundation { nuint Count { get; } } - interface IAVCaptureDataOutputSynchronizerDelegate {} - + interface IAVCaptureDataOutputSynchronizerDelegate { } + [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [NoMac] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVCaptureDataOutputSynchronizerDelegate - { + [BaseType (typeof (NSObject))] + interface AVCaptureDataOutputSynchronizerDelegate { [Abstract] [Export ("dataOutputSynchronizer:didOutputSynchronizedDataCollection:")] void DidOutputSynchronizedDataCollection (AVCaptureDataOutputSynchronizer synchronizer, AVCaptureSynchronizedDataCollection synchronizedDataCollection); } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptureDataOutputSynchronizer - { + interface AVCaptureDataOutputSynchronizer { [Export ("initWithDataOutputs:")] - NativeHandle Constructor (AVCaptureOutput[] dataOutputs); + NativeHandle Constructor (AVCaptureOutput [] dataOutputs); [Export ("dataOutputs", ArgumentSemantic.Retain)] - AVCaptureOutput[] DataOutputs { get; } + AVCaptureOutput [] DataOutputs { get; } [Export ("setDelegate:queue:")] void SetDelegate ([NullAllowed] IAVCaptureDataOutputSynchronizerDelegate del, [NullAllowed] DispatchQueue delegateCallbackQueue); @@ -3476,10 +3510,9 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoMac, NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(AVCaptureSynchronizedData))] - interface AVCaptureSynchronizedSampleBufferData - { + [NoMac, NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (AVCaptureSynchronizedData))] + interface AVCaptureSynchronizedSampleBufferData { [Export ("sampleBuffer")] CMSampleBuffer SampleBuffer { get; } @@ -3491,20 +3524,18 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoMac, NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(AVCaptureSynchronizedData))] - interface AVCaptureSynchronizedMetadataObjectData - { + [NoMac, NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (AVCaptureSynchronizedData))] + interface AVCaptureSynchronizedMetadataObjectData { [Export ("metadataObjects")] - AVMetadataObject[] MetadataObjects { get; } + AVMetadataObject [] MetadataObjects { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoMac, NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(AVCaptureSynchronizedData))] + [NoMac, NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (AVCaptureSynchronizedData))] [DisableDefaultCtor] - interface AVCaptureSynchronizedDepthData - { + interface AVCaptureSynchronizedDepthData { [Export ("depthData")] AVDepthData DepthData { get; } @@ -3515,10 +3546,9 @@ namespace AVFoundation { AVCaptureOutputDataDroppedReason DroppedReason { get; } } - [TV (11,0), Watch (6,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (6, 0), Mac (10, 13), iOS (11, 0)] [Protocol] - interface AVQueuedSampleBufferRendering - { + interface AVQueuedSampleBufferRendering { [Abstract] [Export ("timebase", ArgumentSemantic.Retain)] CMTimebase Timebase { get; } @@ -3546,23 +3576,22 @@ namespace AVFoundation { #if NET [Abstract] #endif - [TV (14,5), Watch (7,4), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5), Watch (7, 4), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("hasSufficientMediaDataForReliablePlaybackStart")] bool HasSufficientMediaDataForReliablePlaybackStart { get; } } - [TV (11,0), Watch (6,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface AVSampleBufferAudioRenderer : AVQueuedSampleBufferRendering - { + [TV (11, 0), Watch (6, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface AVSampleBufferAudioRenderer : AVQueuedSampleBufferRendering { [Export ("status")] AVQueuedSampleBufferRenderingStatus Status { get; } [NullAllowed, Export ("error")] NSError Error { get; } - [NullAllowed, Export ("audioOutputDeviceUniqueID"), NoWatch, NoTV, NoiOS, MacCatalyst (15,0)] + [NullAllowed, Export ("audioOutputDeviceUniqueID"), NoWatch, NoTV, NoiOS, MacCatalyst (15, 0)] string AudioOutputDeviceUniqueId { get; set; } [Export ("audioTimePitchAlgorithm")] @@ -3585,36 +3614,35 @@ namespace AVFoundation { [Field ("AVSampleBufferAudioRendererWasFlushedAutomaticallyNotification")] NSString AudioRendererWasFlushedAutomaticallyNotification { get; } - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowedAudioSpatializationFormats", ArgumentSemantic.Assign)] AVAudioSpatializationFormats AllowedAudioSpatializationFormats { get; set; } [Notification] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVSampleBufferAudioRendererOutputConfigurationDidChangeNotification")] NSString ConfigurationDidChangeNotification { get; } } - [TV (11,0), Watch (6,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (6, 0), Mac (10, 13), iOS (11, 0)] interface AudioRendererWasFlushedAutomaticallyEventArgs { [Internal] [Export ("AVSampleBufferAudioRendererFlushTimeKey")] NSValue _AudioRendererFlushTime { get; set; } } - interface IAVQueuedSampleBufferRendering {} + interface IAVQueuedSampleBufferRendering { } - [TV (11,0), Watch (6,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface AVSampleBufferRenderSynchronizer - { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (11, 0), Watch (6, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface AVSampleBufferRenderSynchronizer { + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("AVSampleBufferRenderSynchronizerRateDidChangeNotification")] [Notification] NSString RateDidChangeNotification { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("currentTime")] CMTime CurrentTime { get; } @@ -3627,20 +3655,20 @@ namespace AVFoundation { [Export ("setRate:time:")] void SetRate (float rate, CMTime time); - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("setRate:time:atHostTime:")] void SetRate (float rate, CMTime time, CMTime hostTime); - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("delaysRateChangeUntilHasSufficientMediaData")] bool DelaysRateChangeUntilHasSufficientMediaData { get; set; } // AVSampleBufferRenderSynchronizer_AVSampleBufferRenderSynchronizerRendererManagement [Export ("renderers")] - IAVQueuedSampleBufferRendering[] Renderers { get; } + IAVQueuedSampleBufferRendering [] Renderers { get; } [Export ("addRenderer:")] void Add (IAVQueuedSampleBufferRendering renderer); @@ -3664,13 +3692,13 @@ namespace AVFoundation { // [Async] -> not added due to comment above [Export ("addBoundaryTimeObserverForTimes:queue:usingBlock:")] - NSObject AddBoundaryTimeObserver (NSValue[] times, [NullAllowed] DispatchQueue queue, Action handler); + NSObject AddBoundaryTimeObserver (NSValue [] times, [NullAllowed] DispatchQueue queue, Action handler); [Export ("removeTimeObserver:")] void RemoveTimeObserver (NSObject observer); } - [Mac (10,10), NoTV, NoiOS, NoWatch, NoMacCatalyst] + [Mac (10, 10), NoTV, NoiOS, NoWatch, NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVSampleBufferGenerator { @@ -3690,7 +3718,7 @@ namespace AVFoundation { void NotifyOfDataReady (CMSampleBuffer sbuf, Action completionHandler); } - [Mac (10,10), NoTV, NoiOS, NoWatch, NoMacCatalyst] + [Mac (10, 10), NoTV, NoiOS, NoWatch, NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVSampleBufferRequest { @@ -3728,13 +3756,13 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetImageGenerator { [Export ("maximumSize", ArgumentSemantic.Assign)] - CGSize MaximumSize { get; set; } + CGSize MaximumSize { get; set; } [Export ("apertureMode", ArgumentSemantic.Copy), NullAllowed] - NSString ApertureMode { get; set; } + NSString ApertureMode { get; set; } [Export ("videoComposition", ArgumentSemantic.Copy), NullAllowed] - AVVideoComposition VideoComposition { get; set; } + AVVideoComposition VideoComposition { get; set; } [Export ("appliesPreferredTrackTransform")] bool AppliesPreferredTrackTransform { get; set; } @@ -3753,12 +3781,12 @@ namespace AVFoundation { CGImage CopyCGImageAtTime (CMTime requestedTime, out CMTime actualTime, out NSError outError); [Export ("generateCGImagesAsynchronouslyForTimes:completionHandler:")] - void GenerateCGImagesAsynchronously (NSValue[] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler handler); + void GenerateCGImagesAsynchronously (NSValue [] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler handler); #if !XAMCORE_5_0 [Sealed] [Export ("generateCGImagesAsynchronouslyForTimes:completionHandler:")] - void GenerateCGImagesAsynchronously (NSValue[] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler2 handler); + void GenerateCGImagesAsynchronously (NSValue [] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler2 handler); #endif [Export ("cancelAllCGImageGeneration")] @@ -3775,18 +3803,18 @@ namespace AVFoundation { // 5.0 APIs [Export ("requestedTimeToleranceBefore", ArgumentSemantic.Assign)] - CMTime RequestedTimeToleranceBefore { get; set; } + CMTime RequestedTimeToleranceBefore { get; set; } [Export ("requestedTimeToleranceAfter", ArgumentSemantic.Assign)] - CMTime RequestedTimeToleranceAfter { get; set; } + CMTime RequestedTimeToleranceAfter { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("asset")] AVAsset Asset { get; } [NoWatch] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("customVideoCompositor", ArgumentSemantic.Copy), NullAllowed] [Protocolize] AVVideoCompositing CustomVideoCompositor { get; } @@ -3798,19 +3826,19 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetReader { [Export ("asset", ArgumentSemantic.Retain)] - AVAsset Asset { get; } + AVAsset Asset { get; } [Export ("status")] - AVAssetReaderStatus Status { get; } + AVAssetReaderStatus Status { get; } [Export ("error"), NullAllowed] - NSError Error { get; } + NSError Error { get; } [Export ("timeRange")] - CMTimeRange TimeRange { get; set; } + CMTimeRange TimeRange { get; set; } [Export ("outputs")] - AVAssetReaderOutput [] Outputs { get; } + AVAssetReaderOutput [] Outputs { get; } [return: NullAllowed] [Static, Export ("assetReaderWithAsset:error:")] @@ -3848,21 +3876,21 @@ namespace AVFoundation { [Export ("alwaysCopiesSampleData")] bool AlwaysCopiesSampleData { get; set; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("supportsRandomAccess")] bool SupportsRandomAccess { get; set; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("resetForReadingTimeRanges:")] void ResetForReadingTimeRanges (NSValue [] timeRanges); - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("markConfigurationAsFinal")] void MarkConfigurationAsFinal (); } [NoWatch] - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: *** -[AVAssetReaderOutputMetadataAdaptor initWithAssetReaderTrackOutput:] invalid parameter not satisfying: trackOutput != ((void*)0) interface AVAssetReaderOutputMetadataAdaptor { @@ -3883,7 +3911,7 @@ namespace AVFoundation { } [NoWatch] - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (AVAssetReaderOutput))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: *** -[AVAssetReaderSampleReferenceOutput initWithTrack:] invalid parameter not satisfying: track != ((void*)0) interface AVAssetReaderSampleReferenceOutput { @@ -3905,7 +3933,7 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetReaderTrackOutput { [Export ("track")] - AVAssetTrack Track { get; } + AVAssetTrack Track { get; } [Internal] [Advice ("Use 'Create' method.")] @@ -3916,23 +3944,23 @@ namespace AVFoundation { AVAssetReaderTrackOutput Create (AVAssetTrack track, [NullAllowed] AudioSettings settings); [Static, Wrap ("FromTrack (track, settings.GetDictionary ())")] - AVAssetReaderTrackOutput Create (AVAssetTrack track, [NullAllowed] AVVideoSettingsUncompressed settings); + AVAssetReaderTrackOutput Create (AVAssetTrack track, [NullAllowed] AVVideoSettingsUncompressed settings); [DesignatedInitializer] [Export ("initWithTrack:outputSettings:")] NativeHandle Constructor (AVAssetTrack track, [NullAllowed] NSDictionary outputSettings); - [Wrap ("this (track, settings.GetDictionary ())")] + [Wrap ("this (track, settings.GetDictionary ())")] NativeHandle Constructor (AVAssetTrack track, [NullAllowed] AudioSettings settings); - [Wrap ("this (track, settings.GetDictionary ())")] + [Wrap ("this (track, settings.GetDictionary ())")] NativeHandle Constructor (AVAssetTrack track, [NullAllowed] AVVideoSettingsUncompressed settings); [Export ("outputSettings"), NullAllowed] NSDictionary OutputSettings { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] // DOC: this is a AVAudioTimePitch value NSString AudioTimePitchAlgorithm { get; set; } @@ -3944,10 +3972,10 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetReaderAudioMixOutput { [Export ("audioTracks")] - AVAssetTrack [] AudioTracks { get; } + AVAssetTrack [] AudioTracks { get; } [Export ("audioMix", ArgumentSemantic.Copy), NullAllowed] - AVAudioMix AudioMix { get; set; } + AVAudioMix AudioMix { get; set; } [Internal] [Advice ("Use 'Create' method.")] @@ -3972,7 +4000,7 @@ namespace AVFoundation { [Wrap ("AudioSettings"), NullAllowed] AudioSettings Settings { get; } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] [Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] // This is an AVAudioTimePitch constant @@ -3985,10 +4013,10 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetReaderVideoCompositionOutput { [Export ("videoTracks")] - AVAssetTrack [] VideoTracks { get; } + AVAssetTrack [] VideoTracks { get; } [Export ("videoComposition", ArgumentSemantic.Copy), NullAllowed] - AVVideoComposition VideoComposition { get; set; } + AVVideoComposition VideoComposition { get; set; } [Internal] [Advice ("Use 'Create' method.")] @@ -4005,7 +4033,7 @@ namespace AVFoundation { NativeHandle Constructor (AVAssetTrack [] videoTracks, [NullAllowed] NSDictionary videoSettings); [Wrap ("this (videoTracks, settings.GetDictionary ())")] - NativeHandle Constructor (AVAssetTrack [] videoTracks, [NullAllowed] CVPixelBufferAttributes settings); + NativeHandle Constructor (AVAssetTrack [] videoTracks, [NullAllowed] CVPixelBufferAttributes settings); [Export ("videoSettings"), NullAllowed] NSDictionary WeakVideoSettings { get; } @@ -4014,19 +4042,19 @@ namespace AVFoundation { CVPixelBufferAttributes UncompressedVideoSettings { get; } [NoWatch] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("customVideoCompositor", ArgumentSemantic.Copy), NullAllowed] [Protocolize] AVVideoCompositing CustomVideoCompositor { get; } } - [Mac (10,9), NoWatch] + [Mac (10, 9), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no valid handle, docs now says "You do not create resource loader objects yourself." interface AVAssetResourceLoader { [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] [Protocolize] - AVAssetResourceLoaderDelegate Delegate { get; } + AVAssetResourceLoaderDelegate Delegate { get; } [Export ("delegateQueue"), NullAllowed] DispatchQueue DelegateQueue { get; } @@ -4035,12 +4063,12 @@ namespace AVFoundation { void SetDelegate ([Protocolize][NullAllowed] AVAssetResourceLoaderDelegate resourceLoaderDelegate, [NullAllowed] DispatchQueue delegateQueue); // AVAssetResourceLoader (AVAssetResourceLoaderContentKeySupport) Category - [iOS (9,0), Mac (10, 11)] + [iOS (9, 0), Mac (10, 11)] [Export ("preloadsEligibleContentKeys")] bool PreloadsEligibleContentKeys { get; set; } } - [Mac (10,9), Watch (6,0)] + [Mac (10, 9), Watch (6, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -4053,27 +4081,27 @@ namespace AVFoundation { bool ShouldWaitForLoadingOfRequestedResource (AVAssetResourceLoader resourceLoader, AVAssetResourceLoadingRequest loadingRequest); [NoWatch] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("resourceLoader:didCancelLoadingRequest:")] void DidCancelLoadingRequest (AVAssetResourceLoader resourceLoader, AVAssetResourceLoadingRequest loadingRequest); [NoWatch] - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("resourceLoader:shouldWaitForResponseToAuthenticationChallenge:")] bool ShouldWaitForResponseToAuthenticationChallenge (AVAssetResourceLoader resourceLoader, NSUrlAuthenticationChallenge authenticationChallenge); [NoWatch] - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("resourceLoader:didCancelAuthenticationChallenge:")] void DidCancelAuthenticationChallenge (AVAssetResourceLoader resourceLoader, NSUrlAuthenticationChallenge authenticationChallenge); [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Export ("resourceLoader:shouldWaitForRenewalOfRequestedResource:")] - bool ShouldWaitForRenewalOfRequestedResource (AVAssetResourceLoader resourceLoader, AVAssetResourceRenewalRequest renewalRequest); + bool ShouldWaitForRenewalOfRequestedResource (AVAssetResourceLoader resourceLoader, AVAssetResourceRenewalRequest renewalRequest); } - [iOS (7,0), Mac (10, 9), NoWatch] + [iOS (7, 0), Mac (10, 9), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash at 'description' - not meant to be used callable (it's used from a property getter) interface AVAssetResourceLoadingDataRequest { @@ -4089,32 +4117,32 @@ namespace AVFoundation { [Export ("respondWithData:")] void Respond (NSData responseData); - [iOS (9,0), Mac (10, 11)] + [iOS (9, 0), Mac (10, 11)] [Export ("requestsAllDataToEndOfResource")] bool RequestsAllDataToEndOfResource { get; } } - + [Mac (10, 9), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // not meant be be user created (resource loader job, see documentation) interface AVAssetResourceLoadingRequest { [Export ("request")] - NSUrlRequest Request { get; } + NSUrlRequest Request { get; } // note: we cannot use [Bind] here as it would break compatibility with iOS 6.x // `isFinished` was only added in iOS 7.0 SDK and cannot be called in earlier versions [Export ("isFinished")] - [iOS (7,0)] // on iOS 6 it was `finished` but it's now rejected by Apple + [iOS (7, 0)] // on iOS 6 it was `finished` but it's now rejected by Apple bool Finished { get; } [Export ("finishLoadingWithResponse:data:redirect:")] - [Deprecated (PlatformName.MacOSX, 10, 15, message : "Use the 'Response', 'Redirect' properties and the 'AVAssetResourceLoadingDataRequest.Responds' and 'AVAssetResourceLoadingRequest.FinishLoading' methods instead.")] - [Deprecated (PlatformName.TvOS, 9, 0, message : "Use the 'Response', 'Redirect' properties and the 'AVAssetResourceLoadingDataRequest.Responds' and 'AVAssetResourceLoadingRequest.FinishLoading' methods instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'Response', 'Redirect' properties and the 'AVAssetResourceLoadingDataRequest.Responds' and 'AVAssetResourceLoadingRequest.FinishLoading' methods instead.")] + [Deprecated (PlatformName.TvOS, 9, 0, message: "Use the 'Response', 'Redirect' properties and the 'AVAssetResourceLoadingDataRequest.Responds' and 'AVAssetResourceLoadingRequest.FinishLoading' methods instead.")] [Deprecated (PlatformName.iOS, 7, 0, message: "Use the 'Response', 'Redirect' properties and the 'AVAssetResourceLoadingDataRequest.Responds' and 'AVAssetResourceLoadingRequest.FinishLoading' methods instead.")] void FinishLoading ([NullAllowed] NSUrlResponse usingResponse, [NullAllowed] NSData data, [NullAllowed] NSUrlRequest redirect); [Export ("finishLoadingWithError:")] - void FinishLoadingWithError ([NullAllowed]NSError error); // TODO: Should have been FinishLoading (NSerror); + void FinishLoadingWithError ([NullAllowed] NSError error); // TODO: Should have been FinishLoading (NSerror); [Deprecated (PlatformName.MacOSX, 12, 0)] [Deprecated (PlatformName.iOS, 15, 0)] @@ -4128,52 +4156,52 @@ namespace AVFoundation { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.TvOS, 15, 0)] [Deprecated (PlatformName.MacCatalyst, 15, 0)] - [iOS (9,0), Mac (10,15)] + [iOS (9, 0), Mac (10, 15)] [Export ("persistentContentKeyFromKeyVendorResponse:options:error:")] [return: NullAllowed] - NSData GetPersistentContentKey (NSData keyVendorResponse, [NullAllowed] NSDictionary options, out NSError error); + NSData GetPersistentContentKey (NSData keyVendorResponse, [NullAllowed] NSDictionary options, out NSError error); - [iOS (9,0), Mac (10, 14), NoWatch] + [iOS (9, 0), Mac (10, 14), NoWatch] [Field ("AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey")] NSString StreamingContentKeyRequestRequiresPersistentKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("isCancelled")] bool IsCancelled { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("contentInformationRequest"), NullAllowed] AVAssetResourceLoadingContentInformationRequest ContentInformationRequest { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("dataRequest"), NullAllowed] AVAssetResourceLoadingDataRequest DataRequest { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("response", ArgumentSemantic.Copy), NullAllowed] NSUrlResponse Response { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("redirect", ArgumentSemantic.Copy), NullAllowed] NSUrlRequest Redirect { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("finishLoading")] void FinishLoading (); - + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("requestor")] AVAssetResourceLoadingRequestor Requestor { get; } } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [DisableDefaultCtor] // not meant be be user created (resource loader job, see documentation) fix crash [BaseType (typeof (AVAssetResourceLoadingRequest))] interface AVAssetResourceRenewalRequest { } - - [iOS (7,0), Mac (10, 9), NoWatch] + + [iOS (7, 0), Mac (10, 9), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no valid handle, the instance is received (not created) -> see doc interface AVAssetResourceLoadingContentInformationRequest { @@ -4186,18 +4214,18 @@ namespace AVFoundation { [Export ("byteRangeAccessSupported")] bool ByteRangeAccessSupported { [Bind ("isByteRangeAccessSupported")] get; set; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("renewalDate", ArgumentSemantic.Copy), NullAllowed] NSDate RenewalDate { get; set; } - [Watch (4,2), TV (11,2), Mac (10,13,2), iOS (11,2)] + [Watch (4, 2), TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [NullAllowed, Export ("allowedContentTypes")] - string[] AllowedContentTypes { get; } + string [] AllowedContentTypes { get; } } interface IAVAssetWriterDelegate { } - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] #if NET [Protocol, Model] #else @@ -4219,26 +4247,26 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetWriter { [Export ("outputURL", ArgumentSemantic.Copy)] - NSUrl OutputURL { get; } + NSUrl OutputURL { get; } [Export ("outputFileType", ArgumentSemantic.Copy)] - string OutputFileType { get; } + string OutputFileType { get; } [Export ("status")] - AVAssetWriterStatus Status { get; } + AVAssetWriterStatus Status { get; } [Export ("error"), NullAllowed] - NSError Error { get; } + NSError Error { get; } - [Export ("movieFragmentInterval", ArgumentSemantic.Assign)] - CMTime MovieFragmentInterval { get; set; } + [Export ("movieFragmentInterval", ArgumentSemantic.Assign)] + CMTime MovieFragmentInterval { get; set; } - [iOS (9,0), Mac (10,11)] // There is no availability attribute on headers but was introduced on iOS9 and Mac 10.11 + [iOS (9, 0), Mac (10, 11)] // There is no availability attribute on headers but was introduced on iOS9 and Mac 10.11 [Export ("overallDurationHint", ArgumentSemantic.Assign)] CMTime OverallDurationHint { get; set; } [Export ("shouldOptimizeForNetworkUse")] - bool ShouldOptimizeForNetworkUse { get; set; } + bool ShouldOptimizeForNetworkUse { get; set; } #if !XAMCORE_5_0 [Internal] @@ -4247,10 +4275,10 @@ namespace AVFoundation { [Obsolete ("Use the 'Inputs' property instead.")] [Wrap ("InternalInputs", IsVirtual = true)] - AVAssetWriterInput [] inputs { get; } + AVAssetWriterInput [] inputs { get; } [Wrap ("InternalInputs", IsVirtual = true)] - AVAssetWriterInput [] Inputs { get; } + AVAssetWriterInput [] Inputs { get; } #else [Export ("Inputs")] AVAssetWriterInput [] Inputs { get; } @@ -4258,9 +4286,9 @@ namespace AVFoundation { [Export ("availableMediaTypes")] NSString [] AvailableMediaTypes { get; } - + [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem [] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } [return: NullAllowed] [Static, Export ("assetWriterWithURL:fileType:error:")] @@ -4270,7 +4298,7 @@ namespace AVFoundation { [Export ("initWithURL:fileType:error:")] NativeHandle Constructor (NSUrl outputUrl, string outputFileType, out NSError error); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("initWithContentType:")] [DesignatedInitializer] NativeHandle Constructor (UTType outputContentType); @@ -4308,7 +4336,7 @@ namespace AVFoundation { [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use the asynchronous 'FinishWriting (NSAction completionHandler)' instead.")] bool FinishWriting (); - [Mac (10,9)] + [Mac (10, 9)] [Export ("finishWritingWithCompletionHandler:")] [Async] void FinishWriting (Action completionHandler); @@ -4316,21 +4344,21 @@ namespace AVFoundation { [Export ("movieTimeScale")] int /* CMTimeScale = int32_t */ MovieTimeScale { get; set; } - [Mac (10,9)] - [iOS (7,0)] + [Mac (10, 9)] + [iOS (7, 0)] [Export ("canAddInputGroup:")] bool CanAddInputGroup (AVAssetWriterInputGroup inputGroup); - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("addInputGroup:")] void AddInputGroup (AVAssetWriterInputGroup inputGroup); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("inputGroups")] AVAssetWriterInputGroup [] InputGroups { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("directoryForTemporaryFiles", ArgumentSemantic.Copy), NullAllowed] NSUrl DirectoryForTemporaryFiles { get; set; } @@ -4357,7 +4385,7 @@ namespace AVFoundation { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("flushSegment")] void FlushSegment (); @@ -4401,22 +4429,22 @@ namespace AVFoundation { AVAssetWriterInput Create (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings, [NullAllowed] CMFormatDescription sourceFormatHint); [Export ("mediaType")] - string MediaType { get; } + string MediaType { get; } [Export ("outputSettings"), NullAllowed] - NSDictionary OutputSettings { get; } + NSDictionary OutputSettings { get; } [Export ("transform", ArgumentSemantic.Assign)] - CGAffineTransform Transform { get; set; } + CGAffineTransform Transform { get; set; } [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem [] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } [Export ("readyForMoreMediaData")] - bool ReadyForMoreMediaData { [Bind ("isReadyForMoreMediaData")] get; } + bool ReadyForMoreMediaData { [Bind ("isReadyForMoreMediaData")] get; } [Export ("expectsMediaDataInRealTime")] - bool ExpectsMediaDataInRealTime { get; set; } + bool ExpectsMediaDataInRealTime { get; set; } [Internal] [Advice ("Use constructor or 'Create' method instead.")] @@ -4433,10 +4461,10 @@ namespace AVFoundation { [Export ("initWithMediaType:outputSettings:")] NativeHandle Constructor (string mediaType, [NullAllowed] NSDictionary outputSettings); - [Wrap ("this (mediaType, outputSettings.GetDictionary ())")] + [Wrap ("this (mediaType, outputSettings.GetDictionary ())")] NativeHandle Constructor (string mediaType, [NullAllowed] AudioSettings outputSettings); - [Wrap ("this (mediaType, outputSettings.GetDictionary ())")] + [Wrap ("this (mediaType, outputSettings.GetDictionary ())")] NativeHandle Constructor (string mediaType, [NullAllowed] AVVideoSettingsCompressed outputSettings); [Export ("requestMediaDataWhenReadyOnQueue:usingBlock:")] @@ -4451,69 +4479,69 @@ namespace AVFoundation { [Export ("mediaTimeScale")] int /* CMTimeScale = int32_t */ MediaTimeScale { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("languageCode", ArgumentSemantic.Copy), NullAllowed] string LanguageCode { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("extendedLanguageTag", ArgumentSemantic.Copy), NullAllowed] string ExtendedLanguageTag { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("naturalSize")] CGSize NaturalSize { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("preferredVolume")] float PreferredVolume { get; set; } // defined as 'float' - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("marksOutputTrackAsEnabled")] bool MarksOutputTrackAsEnabled { get; set; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("canAddTrackAssociationWithTrackOfInput:type:")] bool CanAddTrackAssociationWithTrackOfInput (AVAssetWriterInput input, NSString trackAssociationType); - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("addTrackAssociationWithTrackOfInput:type:")] void AddTrackAssociationWithTrackOfInput (AVAssetWriterInput input, NSString trackAssociationType); - + [Export ("sourceFormatHint"), NullAllowed] CMFormatDescription SourceFormatHint { get; } // // AVAssetWriterInputMultiPass Category // - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("performsMultiPassEncodingIfSupported")] bool PerformsMultiPassEncodingIfSupported { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("canPerformMultiplePasses")] bool CanPerformMultiplePasses { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("currentPassDescription"), NullAllowed] AVAssetWriterInputPassDescription CurrentPassDescription { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("respondToEachPassDescriptionOnQueue:usingBlock:")] void SetPassHandler (DispatchQueue queue, Action passHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("markCurrentPassAsFinished")] void MarkCurrentPassAsFinished (); - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("preferredMediaChunkAlignment")] nint PreferredMediaChunkAlignment { get; set; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("preferredMediaChunkDuration")] CMTime PreferredMediaChunkDuration { get; set; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("sampleReferenceBaseURL", ArgumentSemantic.Copy), NullAllowed] NSUrl SampleReferenceBaseUrl { get; set; } @@ -4526,7 +4554,8 @@ namespace AVFoundation { } [NoWatch] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVAssetWriterInputPassDescription { @@ -4535,7 +4564,7 @@ namespace AVFoundation { } [NoWatch] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: *** -[AVAssetWriterInputMetadataAdaptor initWithAssetWriterInput:] invalid parameter not satisfying: input != ((void*)0) interface AVAssetWriterInputMetadataAdaptor { @@ -4556,19 +4585,19 @@ namespace AVFoundation { [NoWatch] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetWriterInputGroup initWithInputs:defaultInput:] invalid parameter not satisfying: inputs != ((void*)0) - [iOS (7,0), Mac (10, 9), BaseType (typeof (AVMediaSelectionGroup))] + [iOS (7, 0), Mac (10, 9), BaseType (typeof (AVMediaSelectionGroup))] interface AVAssetWriterInputGroup { - + [Static, Export ("assetWriterInputGroupWithInputs:defaultInput:")] AVAssetWriterInputGroup Create (AVAssetWriterInput [] inputs, [NullAllowed] AVAssetWriterInput defaultInput); - + [DesignatedInitializer] [Export ("initWithInputs:defaultInput:")] NativeHandle Constructor (AVAssetWriterInput [] inputs, [NullAllowed] AVAssetWriterInput defaultInput); - + [Export ("inputs")] AVAssetWriterInput [] Inputs { get; } - + [Export ("defaultInput", ArgumentSemantic.Copy), NullAllowed] AVAssetWriterInput DefaultInput { get; } } @@ -4579,16 +4608,16 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetWriterInputPixelBufferAdaptor { [Export ("assetWriterInput")] - AVAssetWriterInput AssetWriterInput { get; } + AVAssetWriterInput AssetWriterInput { get; } [NullAllowed, Export ("sourcePixelBufferAttributes")] - NSDictionary SourcePixelBufferAttributes { get; } + NSDictionary SourcePixelBufferAttributes { get; } [Wrap ("SourcePixelBufferAttributes")] CVPixelBufferAttributes Attributes { get; } [Export ("pixelBufferPool"), NullAllowed] - CVPixelBufferPool PixelBufferPool { get; } + CVPixelBufferPool PixelBufferPool { get; } [Advice ("Use 'Create' method.")] [Static, Export ("assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:")] @@ -4602,36 +4631,35 @@ namespace AVFoundation { NativeHandle Constructor (AVAssetWriterInput input, [NullAllowed] NSDictionary sourcePixelBufferAttributes); [Wrap ("this (input, attributes.GetDictionary ())")] - NativeHandle Constructor (AVAssetWriterInput input, [NullAllowed] CVPixelBufferAttributes attributes); + NativeHandle Constructor (AVAssetWriterInput input, [NullAllowed] CVPixelBufferAttributes attributes); [Export ("appendPixelBuffer:withPresentationTime:")] bool AppendPixelBufferWithPresentationTime (CVPixelBuffer pixelBuffer, CMTime presentationTime); } - [NoWatch, iOS (10,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoWatch, iOS (10, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetCache - { + interface AVAssetCache { [Export ("playableOffline")] bool IsPlayableOffline { [Bind ("isPlayableOffline")] get; } [Export ("mediaSelectionOptionsInMediaSelectionGroup:")] - AVMediaSelectionOption[] GetMediaSelectionOptions (AVMediaSelectionGroup mediaSelectionGroup); + AVMediaSelectionOption [] GetMediaSelectionOptions (AVMediaSelectionGroup mediaSelectionGroup); } - [Watch (6,0)] - [BaseType (typeof (AVAsset), Name="AVURLAsset")] + [Watch (6, 0)] + [BaseType (typeof (AVAsset), Name = "AVURLAsset")] // 'init' returns NIL [DisableDefaultCtor] - interface AVUrlAsset + interface AVUrlAsset #if !WATCH - : AVContentKeyRecipient + : AVContentKeyRecipient #endif { [Export ("URL", ArgumentSemantic.Copy)] - NSUrl Url { get; } + NSUrl Url { get; } [Internal] [Advice ("Use constructor or 'Create' method instead.")] @@ -4678,19 +4706,19 @@ namespace AVFoundation { [Mac (10, 9), NoWatch] [Export ("resourceLoader")] - AVAssetResourceLoader ResourceLoader { get; } + AVAssetResourceLoader ResourceLoader { get; } - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [Field ("AVURLAssetHTTPCookiesKey")] NSString HttpCookiesKey { get; } - [iOS (10,0), TV (10,0), Mac (10,12), NoWatch] + [iOS (10, 0), TV (10, 0), Mac (10, 12), NoWatch] [NullAllowed, Export ("assetCache")] AVAssetCache Cache { get; } - [iOS (10, 0), TV (10, 0), Mac (10,15)] + [iOS (10, 0), TV (10, 0), Mac (10, 15)] [Field ("AVURLAssetAllowsCellularAccessKey")] - NSString AllowsCellularAccessKey { get; } + NSString AllowsCellularAccessKey { get; } [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVURLAssetAllowsExpensiveNetworkAccessKey")] @@ -4700,37 +4728,37 @@ namespace AVFoundation { [Field ("AVURLAssetAllowsConstrainedNetworkAccessKey")] NSString AllowsConstrainedNetworkAccessKey { get; } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] [Field ("AVURLAssetShouldSupportAliasDataReferencesKey")] NSString ShouldSupportAliasDataReferencesKey { get; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("variants")] - AVAssetVariant[] Variants { get; } + AVAssetVariant [] Variants { get; } [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("findCompatibleTrackForCompositionTrack:completionHandler:")] void FindCompatibleTrack (AVCompositionTrack compositionTrack, Action completionHandler); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVURLAssetURLRequestAttributionKey")] NSString RequestAttributionKey { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] // 'init' returns NIL [DisableDefaultCtor] interface AVAssetTrack : NSCopying { [Export ("trackID")] - int /* CMPersistentTrackID = int32_t */ TrackID { get; } + int /* CMPersistentTrackID = int32_t */ TrackID { get; } [NullAllowed, Export ("asset", ArgumentSemantic.Weak)] AVAsset Asset { get; } [Export ("mediaType")] - string MediaType { get; } + string MediaType { get; } [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Export ("decodable")] @@ -4738,52 +4766,52 @@ namespace AVFoundation { // Weak version [Export ("formatDescriptions")] - NSObject [] FormatDescriptionsAsObjects { get; } + NSObject [] FormatDescriptionsAsObjects { get; } [Wrap ("Array.ConvertAll (FormatDescriptionsAsObjects, l => CMFormatDescription.Create (l.Handle, false))")] - CMFormatDescription[] FormatDescriptions { get; } + CMFormatDescription [] FormatDescriptions { get; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")] get; } + bool Enabled { [Bind ("isEnabled")] get; } [Export ("selfContained")] - bool SelfContained { [Bind ("isSelfContained")] get; } + bool SelfContained { [Bind ("isSelfContained")] get; } [Export ("totalSampleDataLength")] - long TotalSampleDataLength { get; } + long TotalSampleDataLength { get; } [Export ("hasMediaCharacteristic:")] bool HasMediaCharacteristic (string mediaCharacteristic); [Export ("timeRange")] - CMTimeRange TimeRange { get; } + CMTimeRange TimeRange { get; } [Export ("naturalTimeScale")] - int NaturalTimeScale { get; } // defined as 'CMTimeScale' = int32_t + int NaturalTimeScale { get; } // defined as 'CMTimeScale' = int32_t [Export ("estimatedDataRate")] - float EstimatedDataRate { get; } // defined as 'float' + float EstimatedDataRate { get; } // defined as 'float' [NullAllowed, Export ("languageCode")] - string LanguageCode { get; } + string LanguageCode { get; } [NullAllowed, Export ("extendedLanguageTag")] - string ExtendedLanguageTag { get; } + string ExtendedLanguageTag { get; } [Export ("naturalSize")] - CGSize NaturalSize { get; } + CGSize NaturalSize { get; } [Export ("preferredVolume")] - float PreferredVolume { get; } // defined as 'float' + float PreferredVolume { get; } // defined as 'float' [Export ("preferredTransform")] CGAffineTransform PreferredTransform { get; } [Export ("nominalFrameRate")] - float NominalFrameRate { get; } // defined as 'float' + float NominalFrameRate { get; } // defined as 'float' [Export ("segments", ArgumentSemantic.Copy)] - AVAssetTrackSegment [] Segments { get; } + AVAssetTrackSegment [] Segments { get; } [return: NullAllowed] [Export ("segmentForTrackTime:")] @@ -4793,7 +4821,7 @@ namespace AVFoundation { CMTime SamplePresentationTimeForTrackTime (CMTime trackTime); [Export ("availableMetadataFormats")] - string [] AvailableMetadataFormats { get; } + string [] AvailableMetadataFormats { get; } [Export ("commonMetadata")] AVMetadataItem [] CommonMetadata { get; } @@ -4804,87 +4832,87 @@ namespace AVFoundation { [Export ("isPlayable")] bool Playable { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("availableTrackAssociationTypes")] NSString [] AvailableTrackAssociationTypes { get; } - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("minFrameDuration")] CMTime MinFrameDuration { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("associatedTracksOfType:")] AVAssetTrack [] GetAssociatedTracks (NSString avAssetTrackTrackAssociationType); - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("metadata")] AVMetadataItem [] Metadata { get; } - [iOS (8,0), Mac (10, 10)] + [iOS (8, 0), Mac (10, 10)] [Export ("requiresFrameReordering")] bool RequiresFrameReordering { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVAssetTrackTimeRangeDidChangeNotification")] [Notification] NSString TimeRangeDidChangeNotification { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVAssetTrackSegmentsDidChangeNotification")] [Notification] NSString SegmentsDidChangeNotification { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVAssetTrackTrackAssociationsDidChangeNotification")] [Notification] NSString TrackAssociationsDidChangeNotification { get; } - [Mac (10,10), NoiOS, NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (10, 10), NoiOS, NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("canProvideSampleCursors")] bool CanProvideSampleCursors { get; } - [Mac (10,10), NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Mac (10, 10), NoiOS, NoTV, NoWatch, NoMacCatalyst] [return: NullAllowed] [Export ("makeSampleCursorWithPresentationTimeStamp:")] AVSampleCursor MakeSampleCursor (CMTime presentationTimeStamp); - [Mac (10,10), NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Mac (10, 10), NoiOS, NoTV, NoWatch, NoMacCatalyst] [return: NullAllowed] [Export ("makeSampleCursorAtFirstSampleInDecodeOrder")] AVSampleCursor MakeSampleCursorAtFirstSampleInDecodeOrder (); - [Mac (10,10), NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Mac (10, 10), NoiOS, NoTV, NoWatch, NoMacCatalyst] [return: NullAllowed] [Export ("makeSampleCursorAtLastSampleInDecodeOrder")] AVSampleCursor MakeSampleCursorAtLastSampleInDecodeOrder (); - [iOS (13,0), TV (13,0), Mac (10,15)] + [iOS (13, 0), TV (13, 0), Mac (10, 15)] [Export ("hasAudioSampleDependencies")] bool HasAudioSampleDependencies { get; } [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadAssociatedTracksOfType:completionHandler:")] void LoadAssociatedTracks (string trackAssociationType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadMetadataForFormat:completionHandler:")] void LoadMetadata (string format, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadSamplePresentationTimeForTrackTime:completionHandler:")] void LoadSamplePresentationTime (CMTime trackTime, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadSegmentForTrackTime:completionHandler:")] void LoadSegment (CMTime trackTime, Action completionHandler); } - [Mac (10,10), NoiOS, NoTV, NoWatch] + [Mac (10, 10), NoiOS, NoTV, NoWatch] [NoMacCatalyst] [DisableDefaultCtor] [BaseType (typeof (NSObject))] @@ -4934,7 +4962,7 @@ namespace AVFoundation { AVSampleCursorSyncInfo CurrentSampleDependencyInfo { get; } #pragma warning restore - [Mac (10,11)] + [Mac (10, 11)] [Export ("samplesRequiredForDecoderRefresh")] nint SamplesRequiredForDecoderRefresh { get; } @@ -4967,14 +4995,16 @@ namespace AVFoundation { AVSampleCursorAudioDependencyInfo CurrentSampleAudioDependencyInfo { get; } #endif - [NoiOS][NoWatch][NoTV] + [NoiOS] + [NoWatch] + [NoTV] [NullAllowed] - [Mac (12,0)] + [Mac (12, 0)] [Export ("currentSampleDependencyAttachments")] NSDictionary CurrentSampleDependencyAttachments { get; } } - [iOS (7,0), Mac (10, 9), Watch (6,0)] + [iOS (7, 0), Mac (10, 9), Watch (6, 0)] [Category, BaseType (typeof (AVAssetTrack))] interface AVAssetTrackTrackAssociation { [Field ("AVTrackAssociationTypeAudioFallback")] @@ -4982,36 +5012,37 @@ namespace AVFoundation { [Field ("AVTrackAssociationTypeChapterList")] NSString ChapterList { get; } - + [Field ("AVTrackAssociationTypeForcedSubtitlesOnly")] NSString ForcedSubtitlesOnly { get; } - + [Field ("AVTrackAssociationTypeSelectionFollower")] NSString SelectionFollower { get; } - + [Field ("AVTrackAssociationTypeTimecode")] NSString Timecode { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVTrackAssociationTypeMetadataReferent")] - NSString MetadataReferent { get; } + NSString MetadataReferent { get; } } - [iOS (7,0), Mac (10, 9), Watch (6,0)] + [iOS (7, 0), Mac (10, 9), Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVAssetTrackGroup : NSCopying { [Export ("trackIDs", ArgumentSemantic.Copy)] NSNumber [] TrackIDs { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVMediaSelectionGroup : NSCopying { [Export ("options")] - AVMediaSelectionOption [] Options { get; } - + AVMediaSelectionOption [] Options { get; } + [Export ("allowsEmptySelection")] - bool AllowsEmptySelection { get; } + bool AllowsEmptySelection { get; } [return: NullAllowed] [Export ("mediaSelectionOptionWithPropertyList:")] @@ -5035,33 +5066,34 @@ namespace AVFoundation { [Static] [Export ("mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages:")] - AVMediaSelectionOption[] MediaSelectionOptionsFilteredAndSorted (AVMediaSelectionOption[] mediaSelectionOptions, string[] preferredLanguages); + AVMediaSelectionOption [] MediaSelectionOptionsFilteredAndSorted (AVMediaSelectionOption [] mediaSelectionOptions, string [] preferredLanguages); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("defaultOption"), NullAllowed] AVMediaSelectionOption DefaultOption { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVMediaSelectionOption : NSCopying { [Export ("mediaType")] - string MediaType { get; } + string MediaType { get; } [Export ("mediaSubTypes")] - NSNumber [] MediaSubTypes { get; } + NSNumber [] MediaSubTypes { get; } [Export ("playable")] - bool Playable { [Bind ("isPlayable")] get; } + bool Playable { [Bind ("isPlayable")] get; } [Export ("locale"), NullAllowed] - NSLocale Locale { get; } + NSLocale Locale { get; } [Export ("commonMetadata")] - AVMetadataItem [] CommonMetadata { get; } + AVMetadataItem [] CommonMetadata { get; } [Export ("availableMetadataFormats")] - string [] AvailableMetadataFormats { get; } + string [] AvailableMetadataFormats { get; } [Export ("hasMediaCharacteristic:")] bool HasMediaCharacteristic (string mediaCharacteristic); @@ -5076,91 +5108,91 @@ namespace AVFoundation { [Export ("propertyList")] NSObject PropertyList { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("displayName")] string DisplayName { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("displayNameWithLocale:")] string GetDisplayName (NSLocale locale); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("extendedLanguageTag"), NullAllowed] string ExtendedLanguageTag { get; } } - [Watch (6,0)] + [Watch (6, 0)] [Static] interface AVMetadata { [Field ("AVMetadataKeySpaceCommon")] NSString KeySpaceCommon { get; } - + [Field ("AVMetadataCommonKeyTitle")] NSString CommonKeyTitle { get; } - + [Field ("AVMetadataCommonKeyCreator")] NSString CommonKeyCreator { get; } - + [Field ("AVMetadataCommonKeySubject")] NSString CommonKeySubject { get; } - + [Field ("AVMetadataCommonKeyDescription")] NSString CommonKeyDescription { get; } - + [Field ("AVMetadataCommonKeyPublisher")] NSString CommonKeyPublisher { get; } - + [Field ("AVMetadataCommonKeyContributor")] NSString CommonKeyContributor { get; } - + [Field ("AVMetadataCommonKeyCreationDate")] NSString CommonKeyCreationDate { get; } - + [Field ("AVMetadataCommonKeyLastModifiedDate")] NSString CommonKeyLastModifiedDate { get; } - + [Field ("AVMetadataCommonKeyType")] NSString CommonKeyType { get; } - + [Field ("AVMetadataCommonKeyFormat")] NSString CommonKeyFormat { get; } - + [Field ("AVMetadataCommonKeyIdentifier")] NSString CommonKeyIdentifier { get; } - + [Field ("AVMetadataCommonKeySource")] NSString CommonKeySource { get; } - + [Field ("AVMetadataCommonKeyLanguage")] NSString CommonKeyLanguage { get; } - + [Field ("AVMetadataCommonKeyRelation")] NSString CommonKeyRelation { get; } - + [Field ("AVMetadataCommonKeyLocation")] NSString CommonKeyLocation { get; } - + [Field ("AVMetadataCommonKeyCopyrights")] NSString CommonKeyCopyrights { get; } - + [Field ("AVMetadataCommonKeyAlbumName")] NSString CommonKeyAlbumName { get; } - + [Field ("AVMetadataCommonKeyAuthor")] NSString CommonKeyAuthor { get; } - + [Field ("AVMetadataCommonKeyArtist")] NSString CommonKeyArtist { get; } - + [Field ("AVMetadataCommonKeyArtwork")] NSString CommonKeyArtwork { get; } - + [Field ("AVMetadataCommonKeyMake")] NSString CommonKeyMake { get; } - + [Field ("AVMetadataCommonKeyModel")] NSString CommonKeyModel { get; } - + [Field ("AVMetadataCommonKeySoftware")] NSString CommonKeySoftware { get; } @@ -5173,118 +5205,118 @@ namespace AVFoundation { [Obsolete ("Use 'AVMetadataFormat' enum values.")] NSString FormatQuickTimeUserData { get; } #endif - + [Field ("AVMetadataKeySpaceQuickTimeUserData")] NSString KeySpaceQuickTimeUserData { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyAlbum")] NSString QuickTimeUserDataKeyAlbum { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyArranger")] NSString QuickTimeUserDataKeyArranger { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyArtist")] NSString QuickTimeUserDataKeyArtist { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyAuthor")] NSString QuickTimeUserDataKeyAuthor { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyChapter")] NSString QuickTimeUserDataKeyChapter { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyComment")] NSString QuickTimeUserDataKeyComment { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyComposer")] NSString QuickTimeUserDataKeyComposer { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyCopyright")] NSString QuickTimeUserDataKeyCopyright { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyCreationDate")] NSString QuickTimeUserDataKeyCreationDate { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyDescription")] NSString QuickTimeUserDataKeyDescription { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyDirector")] NSString QuickTimeUserDataKeyDirector { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyDisclaimer")] NSString QuickTimeUserDataKeyDisclaimer { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyEncodedBy")] NSString QuickTimeUserDataKeyEncodedBy { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyFullName")] NSString QuickTimeUserDataKeyFullName { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyGenre")] NSString QuickTimeUserDataKeyGenre { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyHostComputer")] NSString QuickTimeUserDataKeyHostComputer { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyInformation")] NSString QuickTimeUserDataKeyInformation { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyKeywords")] NSString QuickTimeUserDataKeyKeywords { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyMake")] NSString QuickTimeUserDataKeyMake { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyModel")] NSString QuickTimeUserDataKeyModel { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyOriginalArtist")] NSString QuickTimeUserDataKeyOriginalArtist { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyOriginalFormat")] NSString QuickTimeUserDataKeyOriginalFormat { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyOriginalSource")] NSString QuickTimeUserDataKeyOriginalSource { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyPerformers")] NSString QuickTimeUserDataKeyPerformers { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyProducer")] NSString QuickTimeUserDataKeyProducer { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyPublisher")] NSString QuickTimeUserDataKeyPublisher { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyProduct")] NSString QuickTimeUserDataKeyProduct { get; } - + [Field ("AVMetadataQuickTimeUserDataKeySoftware")] NSString QuickTimeUserDataKeySoftware { get; } - + [Field ("AVMetadataQuickTimeUserDataKeySpecialPlaybackRequirements")] NSString QuickTimeUserDataKeySpecialPlaybackRequirements { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyTrack")] NSString QuickTimeUserDataKeyTrack { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyWarning")] NSString QuickTimeUserDataKeyWarning { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyWriter")] NSString QuickTimeUserDataKeyWriter { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyURLLink")] NSString QuickTimeUserDataKeyURLLink { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyLocationISO6709")] NSString QuickTimeUserDataKeyLocationISO6709 { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyTrackName")] NSString QuickTimeUserDataKeyTrackName { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyCredits")] NSString QuickTimeUserDataKeyCredits { get; } - + [Field ("AVMetadataQuickTimeUserDataKeyPhonogramRights")] NSString QuickTimeUserDataKeyPhonogramRights { get; } @@ -5297,197 +5329,197 @@ namespace AVFoundation { [Field ("AVMetadataISOUserDataKeyCopyright")] NSString ISOUserDataKeyCopyright { get; } - + [Field ("AVMetadata3GPUserDataKeyCopyright")] NSString K3GPUserDataKeyCopyright { get; } - + [Field ("AVMetadata3GPUserDataKeyAuthor")] NSString K3GPUserDataKeyAuthor { get; } - + [Field ("AVMetadata3GPUserDataKeyPerformer")] NSString K3GPUserDataKeyPerformer { get; } - + [Field ("AVMetadata3GPUserDataKeyGenre")] NSString K3GPUserDataKeyGenre { get; } - + [Field ("AVMetadata3GPUserDataKeyRecordingYear")] NSString K3GPUserDataKeyRecordingYear { get; } - + [Field ("AVMetadata3GPUserDataKeyLocation")] NSString K3GPUserDataKeyLocation { get; } - + [Field ("AVMetadata3GPUserDataKeyTitle")] NSString K3GPUserDataKeyTitle { get; } - + [Field ("AVMetadata3GPUserDataKeyDescription")] NSString K3GPUserDataKeyDescription { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyCollection")] NSString K3GPUserDataKeyCollection { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyUserRating")] NSString K3GPUserDataKeyUserRating { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyThumbnail")] NSString K3GPUserDataKeyThumbnail { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyAlbumAndTrack")] NSString K3GPUserDataKeyAlbumAndTrack { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyKeywordList")] NSString K3GPUserDataKeyKeywordList { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyMediaClassification")] NSString K3GPUserDataKeyMediaClassification { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadata3GPUserDataKeyMediaRating")] NSString K3GPUserDataKeyMediaRating { get; } #if !NET - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadataFormatISOUserData")] [Obsolete ("Use 'AVMetadataFormat' enum values.")] NSString KFormatISOUserData { get; } #endif - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVMetadataKeySpaceISOUserData")] NSString KKeySpaceISOUserData { get; } - + [Field ("AVMetadataFormatQuickTimeMetadata")] NSString FormatQuickTimeMetadata { get; } - + [Field ("AVMetadataKeySpaceQuickTimeMetadata")] NSString KeySpaceQuickTimeMetadata { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyAuthor")] NSString QuickTimeMetadataKeyAuthor { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyComment")] NSString QuickTimeMetadataKeyComment { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCopyright")] NSString QuickTimeMetadataKeyCopyright { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCreationDate")] NSString QuickTimeMetadataKeyCreationDate { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyDirector")] NSString QuickTimeMetadataKeyDirector { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyDisplayName")] NSString QuickTimeMetadataKeyDisplayName { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyInformation")] NSString QuickTimeMetadataKeyInformation { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyKeywords")] NSString QuickTimeMetadataKeyKeywords { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyProducer")] NSString QuickTimeMetadataKeyProducer { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyPublisher")] NSString QuickTimeMetadataKeyPublisher { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyAlbum")] NSString QuickTimeMetadataKeyAlbum { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyArtist")] NSString QuickTimeMetadataKeyArtist { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyArtwork")] NSString QuickTimeMetadataKeyArtwork { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyDescription")] NSString QuickTimeMetadataKeyDescription { get; } - + [Field ("AVMetadataQuickTimeMetadataKeySoftware")] NSString QuickTimeMetadataKeySoftware { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyYear")] NSString QuickTimeMetadataKeyYear { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyGenre")] NSString QuickTimeMetadataKeyGenre { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyiXML")] NSString QuickTimeMetadataKeyiXML { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationISO6709")] NSString QuickTimeMetadataKeyLocationISO6709 { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyMake")] NSString QuickTimeMetadataKeyMake { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyModel")] NSString QuickTimeMetadataKeyModel { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyArranger")] NSString QuickTimeMetadataKeyArranger { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyEncodedBy")] NSString QuickTimeMetadataKeyEncodedBy { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyOriginalArtist")] NSString QuickTimeMetadataKeyOriginalArtist { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyPerformer")] NSString QuickTimeMetadataKeyPerformer { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyComposer")] NSString QuickTimeMetadataKeyComposer { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCredits")] NSString QuickTimeMetadataKeyCredits { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyPhonogramRights")] NSString QuickTimeMetadataKeyPhonogramRights { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCameraIdentifier")] NSString QuickTimeMetadataKeyCameraIdentifier { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCameraFrameReadoutTime")] NSString QuickTimeMetadataKeyCameraFrameReadoutTime { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyTitle")] NSString QuickTimeMetadataKeyTitle { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyCollectionUser")] NSString QuickTimeMetadataKeyCollectionUser { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyRatingUser")] NSString QuickTimeMetadataKeyRatingUser { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationName")] NSString QuickTimeMetadataKeyLocationName { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationBody")] NSString QuickTimeMetadataKeyLocationBody { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationNote")] NSString QuickTimeMetadataKeyLocationNote { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationRole")] NSString QuickTimeMetadataKeyLocationRole { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyLocationDate")] NSString QuickTimeMetadataKeyLocationDate { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyDirectionFacing")] NSString QuickTimeMetadataKeyDirectionFacing { get; } - + [Field ("AVMetadataQuickTimeMetadataKeyDirectionMotion")] NSString QuickTimeMetadataKeyDirectionMotion { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataQuickTimeMetadataKeyContentIdentifier")] NSString QuickTimeMetadataKeyContentIdentifier { get; } @@ -5495,164 +5527,164 @@ namespace AVFoundation { [Field ("AVMetadataQuickTimeMetadataKeyAccessibilityDescription")] NSString QuickTimeMetadataKeyAccessibilityDescription { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVMetadataQuickTimeMetadataKeyIsMontage")] NSString QuickTimeMetadataKeyIsMontage { get; } - + #if !NET [Field ("AVMetadataFormatiTunesMetadata")] [Obsolete ("Use 'AVMetadataFormat' enum values.")] NSString FormatiTunesMetadata { get; } #endif - + [Field ("AVMetadataKeySpaceiTunes")] NSString KeySpaceiTunes { get; } - + [Field ("AVMetadataiTunesMetadataKeyAlbum")] NSString iTunesMetadataKeyAlbum { get; } - + [Field ("AVMetadataiTunesMetadataKeyArtist")] NSString iTunesMetadataKeyArtist { get; } - + [Field ("AVMetadataiTunesMetadataKeyUserComment")] NSString iTunesMetadataKeyUserComment { get; } - + [Field ("AVMetadataiTunesMetadataKeyCoverArt")] NSString iTunesMetadataKeyCoverArt { get; } - + [Field ("AVMetadataiTunesMetadataKeyCopyright")] NSString iTunesMetadataKeyCopyright { get; } - + [Field ("AVMetadataiTunesMetadataKeyReleaseDate")] NSString iTunesMetadataKeyReleaseDate { get; } - + [Field ("AVMetadataiTunesMetadataKeyEncodedBy")] NSString iTunesMetadataKeyEncodedBy { get; } - + [Field ("AVMetadataiTunesMetadataKeyPredefinedGenre")] NSString iTunesMetadataKeyPredefinedGenre { get; } - + [Field ("AVMetadataiTunesMetadataKeyUserGenre")] NSString iTunesMetadataKeyUserGenre { get; } - + [Field ("AVMetadataiTunesMetadataKeySongName")] NSString iTunesMetadataKeySongName { get; } - + [Field ("AVMetadataiTunesMetadataKeyTrackSubTitle")] NSString iTunesMetadataKeyTrackSubTitle { get; } - + [Field ("AVMetadataiTunesMetadataKeyEncodingTool")] NSString iTunesMetadataKeyEncodingTool { get; } - + [Field ("AVMetadataiTunesMetadataKeyComposer")] NSString iTunesMetadataKeyComposer { get; } - + [Field ("AVMetadataiTunesMetadataKeyAlbumArtist")] NSString iTunesMetadataKeyAlbumArtist { get; } - + [Field ("AVMetadataiTunesMetadataKeyAccountKind")] NSString iTunesMetadataKeyAccountKind { get; } - + [Field ("AVMetadataiTunesMetadataKeyAppleID")] NSString iTunesMetadataKeyAppleID { get; } - + [Field ("AVMetadataiTunesMetadataKeyArtistID")] NSString iTunesMetadataKeyArtistID { get; } - + [Field ("AVMetadataiTunesMetadataKeySongID")] NSString iTunesMetadataKeySongID { get; } - + [Field ("AVMetadataiTunesMetadataKeyDiscCompilation")] NSString iTunesMetadataKeyDiscCompilation { get; } - + [Field ("AVMetadataiTunesMetadataKeyDiscNumber")] NSString iTunesMetadataKeyDiscNumber { get; } - + [Field ("AVMetadataiTunesMetadataKeyGenreID")] NSString iTunesMetadataKeyGenreID { get; } - + [Field ("AVMetadataiTunesMetadataKeyGrouping")] NSString iTunesMetadataKeyGrouping { get; } - + [Field ("AVMetadataiTunesMetadataKeyPlaylistID")] NSString iTunesMetadataKeyPlaylistID { get; } - + [Field ("AVMetadataiTunesMetadataKeyContentRating")] NSString iTunesMetadataKeyContentRating { get; } - + [Field ("AVMetadataiTunesMetadataKeyBeatsPerMin")] NSString iTunesMetadataKeyBeatsPerMin { get; } - + [Field ("AVMetadataiTunesMetadataKeyTrackNumber")] NSString iTunesMetadataKeyTrackNumber { get; } - + [Field ("AVMetadataiTunesMetadataKeyArtDirector")] NSString iTunesMetadataKeyArtDirector { get; } - + [Field ("AVMetadataiTunesMetadataKeyArranger")] NSString iTunesMetadataKeyArranger { get; } - + [Field ("AVMetadataiTunesMetadataKeyAuthor")] NSString iTunesMetadataKeyAuthor { get; } - + [Field ("AVMetadataiTunesMetadataKeyLyrics")] NSString iTunesMetadataKeyLyrics { get; } - + [Field ("AVMetadataiTunesMetadataKeyAcknowledgement")] NSString iTunesMetadataKeyAcknowledgement { get; } - + [Field ("AVMetadataiTunesMetadataKeyConductor")] NSString iTunesMetadataKeyConductor { get; } - + [Field ("AVMetadataiTunesMetadataKeyDescription")] NSString iTunesMetadataKeyDescription { get; } - + [Field ("AVMetadataiTunesMetadataKeyDirector")] NSString iTunesMetadataKeyDirector { get; } - + [Field ("AVMetadataiTunesMetadataKeyEQ")] NSString iTunesMetadataKeyEQ { get; } - + [Field ("AVMetadataiTunesMetadataKeyLinerNotes")] NSString iTunesMetadataKeyLinerNotes { get; } - + [Field ("AVMetadataiTunesMetadataKeyRecordCompany")] NSString iTunesMetadataKeyRecordCompany { get; } - + [Field ("AVMetadataiTunesMetadataKeyOriginalArtist")] NSString iTunesMetadataKeyOriginalArtist { get; } - + [Field ("AVMetadataiTunesMetadataKeyPhonogramRights")] NSString iTunesMetadataKeyPhonogramRights { get; } - + [Field ("AVMetadataiTunesMetadataKeyProducer")] NSString iTunesMetadataKeyProducer { get; } - + [Field ("AVMetadataiTunesMetadataKeyPerformer")] NSString iTunesMetadataKeyPerformer { get; } - + [Field ("AVMetadataiTunesMetadataKeyPublisher")] NSString iTunesMetadataKeyPublisher { get; } - + [Field ("AVMetadataiTunesMetadataKeySoundEngineer")] NSString iTunesMetadataKeySoundEngineer { get; } - + [Field ("AVMetadataiTunesMetadataKeySoloist")] NSString iTunesMetadataKeySoloist { get; } - + [Field ("AVMetadataiTunesMetadataKeyCredits")] NSString iTunesMetadataKeyCredits { get; } - + [Field ("AVMetadataiTunesMetadataKeyThanks")] NSString iTunesMetadataKeyThanks { get; } - + [Field ("AVMetadataiTunesMetadataKeyOnlineExtras")] NSString iTunesMetadataKeyOnlineExtras { get; } - + [Field ("AVMetadataiTunesMetadataKeyExecProducer")] NSString iTunesMetadataKeyExecProducer { get; } - + #if !NET [Field ("AVMetadataFormatID3Metadata")] [Obsolete ("Use 'AVMetadataFormat' enum values.")] @@ -5661,21 +5693,21 @@ namespace AVFoundation { [Field ("AVMetadataKeySpaceID3")] NSString KeySpaceID3 { get; } - + [Field ("AVMetadataID3MetadataKeyAudioEncryption")] NSString ID3MetadataKeyAudioEncryption { get; } - + [Field ("AVMetadataID3MetadataKeyAttachedPicture")] NSString ID3MetadataKeyAttachedPicture { get; } - + [Field ("AVMetadataID3MetadataKeyAudioSeekPointIndex")] NSString ID3MetadataKeyAudioSeekPointIndex { get; } - + [Field ("AVMetadataID3MetadataKeyComments")] NSString ID3MetadataKeyComments { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataID3MetadataKeyCommercial")] NSString ID3MetadataKeyCommercial { get; } @@ -5683,273 +5715,274 @@ namespace AVFoundation { [Deprecated (PlatformName.MacOSX, 10, 11)] [Field ("AVMetadataID3MetadataKeyCommerical")] NSString ID3MetadataKeyCommerical { get; } - + [Field ("AVMetadataID3MetadataKeyEncryption")] NSString ID3MetadataKeyEncryption { get; } - + [Field ("AVMetadataID3MetadataKeyEqualization")] NSString ID3MetadataKeyEqualization { get; } - + [Field ("AVMetadataID3MetadataKeyEqualization2")] NSString ID3MetadataKeyEqualization2 { get; } - + [Field ("AVMetadataID3MetadataKeyEventTimingCodes")] NSString ID3MetadataKeyEventTimingCodes { get; } - + [Field ("AVMetadataID3MetadataKeyGeneralEncapsulatedObject")] NSString ID3MetadataKeyGeneralEncapsulatedObject { get; } - + [Field ("AVMetadataID3MetadataKeyGroupIdentifier")] NSString ID3MetadataKeyGroupIdentifier { get; } - + [Field ("AVMetadataID3MetadataKeyInvolvedPeopleList_v23")] NSString ID3MetadataKeyInvolvedPeopleList { get; } - + [Field ("AVMetadataID3MetadataKeyLink")] NSString ID3MetadataKeyLink { get; } - + [Field ("AVMetadataID3MetadataKeyMusicCDIdentifier")] NSString ID3MetadataKeyMusicCDIdentifier { get; } - + [Field ("AVMetadataID3MetadataKeyMPEGLocationLookupTable")] NSString ID3MetadataKeyMPEGLocationLookupTable { get; } - + [Field ("AVMetadataID3MetadataKeyOwnership")] NSString ID3MetadataKeyOwnership { get; } - + [Field ("AVMetadataID3MetadataKeyPrivate")] NSString ID3MetadataKeyPrivate { get; } - + [Field ("AVMetadataID3MetadataKeyPlayCounter")] NSString ID3MetadataKeyPlayCounter { get; } - + [Field ("AVMetadataID3MetadataKeyPopularimeter")] NSString ID3MetadataKeyPopularimeter { get; } - + [Field ("AVMetadataID3MetadataKeyPositionSynchronization")] NSString ID3MetadataKeyPositionSynchronization { get; } - + [Field ("AVMetadataID3MetadataKeyRecommendedBufferSize")] NSString ID3MetadataKeyRecommendedBufferSize { get; } - + [Field ("AVMetadataID3MetadataKeyRelativeVolumeAdjustment")] NSString ID3MetadataKeyRelativeVolumeAdjustment { get; } - + [Field ("AVMetadataID3MetadataKeyRelativeVolumeAdjustment2")] NSString ID3MetadataKeyRelativeVolumeAdjustment2 { get; } - + [Field ("AVMetadataID3MetadataKeyReverb")] NSString ID3MetadataKeyReverb { get; } - + [Field ("AVMetadataID3MetadataKeySeek")] NSString ID3MetadataKeySeek { get; } - + [Field ("AVMetadataID3MetadataKeySignature")] NSString ID3MetadataKeySignature { get; } - + [Field ("AVMetadataID3MetadataKeySynchronizedLyric")] NSString ID3MetadataKeySynchronizedLyric { get; } - + [Field ("AVMetadataID3MetadataKeySynchronizedTempoCodes")] NSString ID3MetadataKeySynchronizedTempoCodes { get; } - + [Field ("AVMetadataID3MetadataKeyAlbumTitle")] NSString ID3MetadataKeyAlbumTitle { get; } - + [Field ("AVMetadataID3MetadataKeyBeatsPerMinute")] NSString ID3MetadataKeyBeatsPerMinute { get; } - + [Field ("AVMetadataID3MetadataKeyComposer")] NSString ID3MetadataKeyComposer { get; } - + [Field ("AVMetadataID3MetadataKeyContentType")] NSString ID3MetadataKeyContentType { get; } - + [Field ("AVMetadataID3MetadataKeyCopyright")] NSString ID3MetadataKeyCopyright { get; } - + [Field ("AVMetadataID3MetadataKeyDate")] NSString ID3MetadataKeyDate { get; } - + [Field ("AVMetadataID3MetadataKeyEncodingTime")] NSString ID3MetadataKeyEncodingTime { get; } - + [Field ("AVMetadataID3MetadataKeyPlaylistDelay")] NSString ID3MetadataKeyPlaylistDelay { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalReleaseTime")] NSString ID3MetadataKeyOriginalReleaseTime { get; } - + [Field ("AVMetadataID3MetadataKeyRecordingTime")] NSString ID3MetadataKeyRecordingTime { get; } - + [Field ("AVMetadataID3MetadataKeyReleaseTime")] NSString ID3MetadataKeyReleaseTime { get; } - + [Field ("AVMetadataID3MetadataKeyTaggingTime")] NSString ID3MetadataKeyTaggingTime { get; } - + [Field ("AVMetadataID3MetadataKeyEncodedBy")] NSString ID3MetadataKeyEncodedBy { get; } - + [Field ("AVMetadataID3MetadataKeyLyricist")] NSString ID3MetadataKeyLyricist { get; } - + [Field ("AVMetadataID3MetadataKeyFileType")] NSString ID3MetadataKeyFileType { get; } - + [Field ("AVMetadataID3MetadataKeyTime")] NSString ID3MetadataKeyTime { get; } [Field ("AVMetadataID3MetadataKeyInvolvedPeopleList_v24")] NSString ID3MetadataKeyInvolvedPeopleList_v24 { get; } - + [Field ("AVMetadataID3MetadataKeyContentGroupDescription")] NSString ID3MetadataKeyContentGroupDescription { get; } - + [Field ("AVMetadataID3MetadataKeyTitleDescription")] NSString ID3MetadataKeyTitleDescription { get; } - + [Field ("AVMetadataID3MetadataKeySubTitle")] NSString ID3MetadataKeySubTitle { get; } - + [Field ("AVMetadataID3MetadataKeyInitialKey")] NSString ID3MetadataKeyInitialKey { get; } - + [Field ("AVMetadataID3MetadataKeyLanguage")] NSString ID3MetadataKeyLanguage { get; } - + [Field ("AVMetadataID3MetadataKeyLength")] NSString ID3MetadataKeyLength { get; } - + [Field ("AVMetadataID3MetadataKeyMusicianCreditsList")] NSString ID3MetadataKeyMusicianCreditsList { get; } - + [Field ("AVMetadataID3MetadataKeyMediaType")] NSString ID3MetadataKeyMediaType { get; } - + [Field ("AVMetadataID3MetadataKeyMood")] NSString ID3MetadataKeyMood { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalAlbumTitle")] NSString ID3MetadataKeyOriginalAlbumTitle { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalFilename")] NSString ID3MetadataKeyOriginalFilename { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalLyricist")] NSString ID3MetadataKeyOriginalLyricist { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalArtist")] NSString ID3MetadataKeyOriginalArtist { get; } - + [Field ("AVMetadataID3MetadataKeyOriginalReleaseYear")] NSString ID3MetadataKeyOriginalReleaseYear { get; } - + [Field ("AVMetadataID3MetadataKeyFileOwner")] NSString ID3MetadataKeyFileOwner { get; } - + [Field ("AVMetadataID3MetadataKeyLeadPerformer")] NSString ID3MetadataKeyLeadPerformer { get; } - + [Field ("AVMetadataID3MetadataKeyBand")] NSString ID3MetadataKeyBand { get; } - + [Field ("AVMetadataID3MetadataKeyConductor")] NSString ID3MetadataKeyConductor { get; } - + [Field ("AVMetadataID3MetadataKeyModifiedBy")] NSString ID3MetadataKeyModifiedBy { get; } - + [Field ("AVMetadataID3MetadataKeyPartOfASet")] NSString ID3MetadataKeyPartOfASet { get; } - + [Field ("AVMetadataID3MetadataKeyProducedNotice")] NSString ID3MetadataKeyProducedNotice { get; } - + [Field ("AVMetadataID3MetadataKeyPublisher")] NSString ID3MetadataKeyPublisher { get; } - + [Field ("AVMetadataID3MetadataKeyTrackNumber")] NSString ID3MetadataKeyTrackNumber { get; } - + [Field ("AVMetadataID3MetadataKeyRecordingDates")] NSString ID3MetadataKeyRecordingDates { get; } - + [Field ("AVMetadataID3MetadataKeyInternetRadioStationName")] NSString ID3MetadataKeyInternetRadioStationName { get; } - + [Field ("AVMetadataID3MetadataKeyInternetRadioStationOwner")] NSString ID3MetadataKeyInternetRadioStationOwner { get; } - + [Field ("AVMetadataID3MetadataKeySize")] NSString ID3MetadataKeySize { get; } - + [Field ("AVMetadataID3MetadataKeyAlbumSortOrder")] NSString ID3MetadataKeyAlbumSortOrder { get; } - + [Field ("AVMetadataID3MetadataKeyPerformerSortOrder")] NSString ID3MetadataKeyPerformerSortOrder { get; } - + [Field ("AVMetadataID3MetadataKeyTitleSortOrder")] NSString ID3MetadataKeyTitleSortOrder { get; } - + [Field ("AVMetadataID3MetadataKeyInternationalStandardRecordingCode")] NSString ID3MetadataKeyInternationalStandardRecordingCode { get; } - + [Field ("AVMetadataID3MetadataKeyEncodedWith")] NSString ID3MetadataKeyEncodedWith { get; } - + [Field ("AVMetadataID3MetadataKeySetSubtitle")] NSString ID3MetadataKeySetSubtitle { get; } - + [Field ("AVMetadataID3MetadataKeyYear")] NSString ID3MetadataKeyYear { get; } - + [Field ("AVMetadataID3MetadataKeyUserText")] NSString ID3MetadataKeyUserText { get; } - + [Field ("AVMetadataID3MetadataKeyUniqueFileIdentifier")] NSString ID3MetadataKeyUniqueFileIdentifier { get; } - + [Field ("AVMetadataID3MetadataKeyTermsOfUse")] NSString ID3MetadataKeyTermsOfUse { get; } - + [Field ("AVMetadataID3MetadataKeyUnsynchronizedLyric")] NSString ID3MetadataKeyUnsynchronizedLyric { get; } - + [Field ("AVMetadataID3MetadataKeyCommercialInformation")] NSString ID3MetadataKeyCommercialInformation { get; } - + [Field ("AVMetadataID3MetadataKeyCopyrightInformation")] NSString ID3MetadataKeyCopyrightInformation { get; } - + [Field ("AVMetadataID3MetadataKeyOfficialAudioFileWebpage")] NSString ID3MetadataKeyOfficialAudioFileWebpage { get; } - + [Field ("AVMetadataID3MetadataKeyOfficialArtistWebpage")] NSString ID3MetadataKeyOfficialArtistWebpage { get; } - + [Field ("AVMetadataID3MetadataKeyOfficialAudioSourceWebpage")] NSString ID3MetadataKeyOfficialAudioSourceWebpage { get; } - + [Field ("AVMetadataID3MetadataKeyOfficialInternetRadioStationHomepage")] NSString ID3MetadataKeyOfficialInternetRadioStationHomepage { get; } - + [Field ("AVMetadataID3MetadataKeyPayment")] NSString ID3MetadataKeyPayment { get; } - + [Field ("AVMetadataID3MetadataKeyOfficialPublisherWebpage")] NSString ID3MetadataKeyOfficialPublisherWebpage { get; } - + [Field ("AVMetadataID3MetadataKeyUserURL")] NSString ID3MetadataKeyUserURL { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataISOUserDataKeyTaggedCharacteristic")] NSString IsoUserDataKeyTaggedCharacteristic { get; } - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVMetadataISOUserDataKeyDate")] NSString IsoUserDataKeyDate { get; } @@ -5961,27 +5994,32 @@ namespace AVFoundation { [Field ("AVMetadataIdentifierISOUserDataAccessibilityDescription")] NSString IsoUserDataAccessibilityDescription { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataKeySpaceIcy")] NSString KeySpaceIcy { get; } - - [iOS (8,0)][Mac (10,10)] + + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataIcyMetadataKeyStreamTitle")] NSString IcyMetadataKeyStreamTitle { get; } - - [iOS (8,0)][Mac (10,10)] + + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataIcyMetadataKeyStreamURL")] NSString IcyMetadataKeyStreamUrl { get; } - + #if !NET - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataFormatHLSMetadata")] [Obsolete ("Use 'AVMetadataFormat' enum values.")] NSString FormatHlsMetadata { get; } #endif - [iOS (9,3)][Mac (10, 12)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] [Field ("AVMetadataKeySpaceHLSDateRange")] NSString KeySpaceHlsDateRange { get; } @@ -5990,98 +6028,103 @@ namespace AVFoundation { [Field ("AVMetadataKeySpaceAudioFile")] NSString KeySpaceAudioFile { get; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVMetadataIdentifierQuickTimeMetadataIsMontage")] NSString QuickTimeMetadataIsMontage { get; } } - [Watch (6,0)] + [Watch (6, 0)] [Static] interface AVMetadataExtraAttribute { - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataExtraAttributeValueURIKey")] NSString ValueUriKey { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVMetadataExtraAttributeBaseURIKey")] NSString BaseUriKey { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("AVMetadataExtraAttributeInfoKey")] NSString InfoKey { get; } } class AVMetadataIdentifiers { - [iOS (8,0)][Mac (10,10)] [Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface CommonIdentifier { [Field ("AVMetadataCommonIdentifierTitle")] NSString Title { get; } - + [Field ("AVMetadataCommonIdentifierCreator")] NSString Creator { get; } - + [Field ("AVMetadataCommonIdentifierSubject")] NSString Subject { get; } - + [Field ("AVMetadataCommonIdentifierDescription")] NSString Description { get; } - + [Field ("AVMetadataCommonIdentifierPublisher")] NSString Publisher { get; } - + [Field ("AVMetadataCommonIdentifierContributor")] NSString Contributor { get; } - + [Field ("AVMetadataCommonIdentifierCreationDate")] NSString CreationDate { get; } - + [Field ("AVMetadataCommonIdentifierLastModifiedDate")] NSString LastModifiedDate { get; } - + [Field ("AVMetadataCommonIdentifierType")] NSString Type { get; } - + [Field ("AVMetadataCommonIdentifierFormat")] NSString Format { get; } - + [Field ("AVMetadataCommonIdentifierAssetIdentifier")] NSString AssetIdentifier { get; } - + [Field ("AVMetadataCommonIdentifierSource")] NSString Source { get; } - + [Field ("AVMetadataCommonIdentifierLanguage")] NSString Language { get; } - + [Field ("AVMetadataCommonIdentifierRelation")] NSString Relation { get; } - + [Field ("AVMetadataCommonIdentifierLocation")] NSString Location { get; } - + [Field ("AVMetadataCommonIdentifierCopyrights")] NSString Copyrights { get; } - + [Field ("AVMetadataCommonIdentifierAlbumName")] NSString AlbumName { get; } - + [Field ("AVMetadataCommonIdentifierAuthor")] NSString Author { get; } - + [Field ("AVMetadataCommonIdentifierArtist")] NSString Artist { get; } - + [Field ("AVMetadataCommonIdentifierArtwork")] NSString Artwork { get; } - + [Field ("AVMetadataCommonIdentifierMake")] NSString Make { get; } - + [Field ("AVMetadataCommonIdentifierModel")] NSString Model { get; } - + [Field ("AVMetadataCommonIdentifierSoftware")] NSString Software { get; } @@ -6091,120 +6134,122 @@ namespace AVFoundation { } - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface QuickTime { [Field ("AVMetadataIdentifierQuickTimeUserDataAlbum")] NSString UserDataAlbum { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataArranger")] NSString UserDataArranger { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataArtist")] NSString UserDataArtist { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataAuthor")] NSString UserDataAuthor { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataChapter")] NSString UserDataChapter { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataComment")] NSString UserDataComment { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataComposer")] NSString UserDataComposer { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataCopyright")] NSString UserDataCopyright { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataCreationDate")] NSString UserDataCreationDate { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataDescription")] NSString UserDataDescription { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataDirector")] NSString UserDataDirector { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataDisclaimer")] NSString UserDataDisclaimer { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataEncodedBy")] NSString UserDataEncodedBy { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataFullName")] NSString UserDataFullName { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataGenre")] NSString UserDataGenre { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataHostComputer")] NSString UserDataHostComputer { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataInformation")] NSString UserDataInformation { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataKeywords")] NSString UserDataKeywords { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataMake")] NSString UserDataMake { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataModel")] NSString UserDataModel { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataOriginalArtist")] NSString UserDataOriginalArtist { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataOriginalFormat")] NSString UserDataOriginalFormat { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataOriginalSource")] NSString UserDataOriginalSource { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataPerformers")] NSString UserDataPerformers { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataProducer")] NSString UserDataProducer { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataPublisher")] NSString UserDataPublisher { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataProduct")] NSString UserDataProduct { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataSoftware")] NSString UserDataSoftware { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataSpecialPlaybackRequirements")] NSString UserDataSpecialPlaybackRequirements { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataTrack")] NSString UserDataTrack { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataWarning")] NSString UserDataWarning { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataWriter")] NSString UserDataWriter { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataURLLink")] NSString UserDataUrlLink { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataLocationISO6709")] NSString UserDataLocationISO6709 { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataTrackName")] NSString UserDataTrackName { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataCredits")] NSString UserDataCredits { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataPhonogramRights")] NSString UserDataPhonogramRights { get; } - + [Field ("AVMetadataIdentifierQuickTimeUserDataTaggedCharacteristic")] NSString UserDataTaggedCharacteristic { get; } @@ -6213,207 +6258,211 @@ namespace AVFoundation { NSString UserDataAccessibilityDescription { get; } } - [Watch (6,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (6, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [Static] interface Iso { - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVMetadataIdentifierISOUserDataDate")] NSString UserDataDate { get; } [Field ("AVMetadataIdentifierISOUserDataCopyright")] NSString UserDataCopyright { get; } - + [Field ("AVMetadataIdentifierISOUserDataTaggedCharacteristic")] NSString UserDataTaggedCharacteristic { get; } } - [Watch (6,0)] - [iOS (8,0)][Mac (10,10)] + [Watch (6, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [Static] interface ThreeGP { [Field ("AVMetadataIdentifier3GPUserDataCopyright")] NSString UserDataCopyright { get; } - + [Field ("AVMetadataIdentifier3GPUserDataAuthor")] NSString UserDataAuthor { get; } - + [Field ("AVMetadataIdentifier3GPUserDataPerformer")] NSString UserDataPerformer { get; } - + [Field ("AVMetadataIdentifier3GPUserDataGenre")] NSString UserDataGenre { get; } - + [Field ("AVMetadataIdentifier3GPUserDataRecordingYear")] NSString UserDataRecordingYear { get; } - + [Field ("AVMetadataIdentifier3GPUserDataLocation")] NSString UserDataLocation { get; } - + [Field ("AVMetadataIdentifier3GPUserDataTitle")] NSString UserDataTitle { get; } - + [Field ("AVMetadataIdentifier3GPUserDataDescription")] NSString UserDataDescription { get; } - + [Field ("AVMetadataIdentifier3GPUserDataCollection")] NSString UserDataCollection { get; } - + [Field ("AVMetadataIdentifier3GPUserDataUserRating")] NSString UserDataUserRating { get; } - + [Field ("AVMetadataIdentifier3GPUserDataThumbnail")] NSString UserDataThumbnail { get; } - + [Field ("AVMetadataIdentifier3GPUserDataAlbumAndTrack")] NSString UserDataAlbumAndTrack { get; } - + [Field ("AVMetadataIdentifier3GPUserDataKeywordList")] NSString UserDataKeywordList { get; } - + [Field ("AVMetadataIdentifier3GPUserDataMediaClassification")] NSString UserDataMediaClassification { get; } - + [Field ("AVMetadataIdentifier3GPUserDataMediaRating")] NSString UserDataMediaRating { get; } } - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface QuickTimeMetadata { [Field ("AVMetadataIdentifierQuickTimeMetadataAuthor")] NSString Author { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataComment")] NSString Comment { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCopyright")] NSString Copyright { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCreationDate")] NSString CreationDate { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataDirector")] NSString Director { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataDisplayName")] NSString DisplayName { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataInformation")] NSString Information { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataKeywords")] NSString Keywords { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataProducer")] NSString Producer { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataPublisher")] NSString Publisher { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataAlbum")] NSString Album { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataArtist")] NSString Artist { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataArtwork")] NSString Artwork { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataDescription")] NSString Description { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataSoftware")] NSString Software { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataYear")] NSString Year { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataGenre")] NSString Genre { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataiXML")] NSString iXML { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationISO6709")] NSString LocationISO6709 { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataMake")] NSString Make { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataModel")] NSString Model { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataArranger")] NSString Arranger { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataEncodedBy")] NSString EncodedBy { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataOriginalArtist")] NSString OriginalArtist { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataPerformer")] NSString Performer { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataComposer")] NSString Composer { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCredits")] NSString Credits { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataPhonogramRights")] NSString PhonogramRights { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCameraIdentifier")] NSString CameraIdentifier { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCameraFrameReadoutTime")] NSString CameraFrameReadoutTime { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataTitle")] NSString Title { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataCollectionUser")] NSString CollectionUser { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataRatingUser")] NSString RatingUser { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationName")] NSString LocationName { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationBody")] NSString LocationBody { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationNote")] NSString LocationNote { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationRole")] NSString LocationRole { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataLocationDate")] NSString LocationDate { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataDirectionFacing")] NSString DirectionFacing { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataDirectionMotion")] NSString DirectionMotion { get; } - + [Field ("AVMetadataIdentifierQuickTimeMetadataPreferredAffineTransform")] NSString PreferredAffineTransform { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataIdentifierQuickTimeMetadataDetectedFace")] NSString DetectedFace { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataIdentifierQuickTimeMetadataVideoOrientation")] NSString VideoOrientation { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataIdentifierQuickTimeMetadataContentIdentifier")] NSString ContentIdentifier { get; } @@ -6462,170 +6511,174 @@ namespace AVFoundation { NSString LocationHorizontalAccuracyInMeters { get; } } - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface iTunesMetadata { [Field ("AVMetadataIdentifieriTunesMetadataAlbum")] NSString Album { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataArtist")] NSString Artist { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataUserComment")] NSString UserComment { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataCoverArt")] NSString CoverArt { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataCopyright")] NSString Copyright { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataReleaseDate")] NSString ReleaseDate { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataEncodedBy")] NSString EncodedBy { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataPredefinedGenre")] NSString PredefinedGenre { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataUserGenre")] NSString UserGenre { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataSongName")] NSString SongName { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataTrackSubTitle")] NSString TrackSubTitle { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataEncodingTool")] NSString EncodingTool { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataComposer")] NSString Composer { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataAlbumArtist")] NSString AlbumArtist { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataAccountKind")] NSString AccountKind { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataAppleID")] NSString AppleID { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataArtistID")] NSString ArtistID { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataSongID")] NSString SongID { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataDiscCompilation")] NSString DiscCompilation { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataDiscNumber")] NSString DiscNumber { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataGenreID")] NSString GenreID { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataGrouping")] NSString Grouping { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataPlaylistID")] NSString PlaylistID { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataContentRating")] NSString ContentRating { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataBeatsPerMin")] NSString BeatsPerMin { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataTrackNumber")] NSString TrackNumber { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataArtDirector")] NSString ArtDirector { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataArranger")] NSString Arranger { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataAuthor")] NSString Author { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataLyrics")] NSString Lyrics { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataAcknowledgement")] NSString Acknowledgement { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataConductor")] NSString Conductor { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataDescription")] NSString Description { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataDirector")] NSString Director { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataEQ")] NSString EQ { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataLinerNotes")] NSString LinerNotes { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataRecordCompany")] NSString RecordCompany { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataOriginalArtist")] NSString OriginalArtist { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataPhonogramRights")] NSString PhonogramRights { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataProducer")] NSString Producer { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataPerformer")] NSString Performer { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataPublisher")] NSString Publisher { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataSoundEngineer")] NSString SoundEngineer { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataSoloist")] NSString Soloist { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataCredits")] NSString Credits { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataThanks")] NSString Thanks { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataOnlineExtras")] NSString OnlineExtras { get; } - + [Field ("AVMetadataIdentifieriTunesMetadataExecProducer")] NSString ExecProducer { get; } } - [iOS (8,0)][Mac (10,10)] [Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface ID3Metadata { [Field ("AVMetadataIdentifierID3MetadataAudioEncryption")] NSString AudioEncryption { get; } - + [Field ("AVMetadataIdentifierID3MetadataAttachedPicture")] NSString AttachedPicture { get; } - + [Field ("AVMetadataIdentifierID3MetadataAudioSeekPointIndex")] NSString AudioSeekPointIndex { get; } - + [Field ("AVMetadataIdentifierID3MetadataComments")] NSString Comments { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("AVMetadataIdentifierID3MetadataCommercial")] NSString Commercial { get; } @@ -6635,291 +6688,293 @@ namespace AVFoundation { [Deprecated (PlatformName.MacOSX, 10, 11)] [Field ("AVMetadataIdentifierID3MetadataCommerical")] NSString Commerical { get; } - + [Field ("AVMetadataIdentifierID3MetadataEncryption")] NSString Encryption { get; } - + [Field ("AVMetadataIdentifierID3MetadataEqualization")] NSString Equalization { get; } - + [Field ("AVMetadataIdentifierID3MetadataEqualization2")] NSString Equalization2 { get; } - + [Field ("AVMetadataIdentifierID3MetadataEventTimingCodes")] NSString EventTimingCodes { get; } - + [Field ("AVMetadataIdentifierID3MetadataGeneralEncapsulatedObject")] NSString GeneralEncapsulatedObject { get; } - + [Field ("AVMetadataIdentifierID3MetadataGroupIdentifier")] NSString GroupIdentifier { get; } - + [Field ("AVMetadataIdentifierID3MetadataInvolvedPeopleList_v23")] NSString InvolvedPeopleList_v23 { get; } - + [Field ("AVMetadataIdentifierID3MetadataLink")] NSString Link { get; } - + [Field ("AVMetadataIdentifierID3MetadataMusicCDIdentifier")] NSString MusicCDIdentifier { get; } - + [Field ("AVMetadataIdentifierID3MetadataMPEGLocationLookupTable")] NSString MpegLocationLookupTable { get; } - + [Field ("AVMetadataIdentifierID3MetadataOwnership")] NSString Ownership { get; } - + [Field ("AVMetadataIdentifierID3MetadataPrivate")] NSString Private { get; } - + [Field ("AVMetadataIdentifierID3MetadataPlayCounter")] NSString PlayCounter { get; } - + [Field ("AVMetadataIdentifierID3MetadataPopularimeter")] NSString Popularimeter { get; } - + [Field ("AVMetadataIdentifierID3MetadataPositionSynchronization")] NSString PositionSynchronization { get; } - + [Field ("AVMetadataIdentifierID3MetadataRecommendedBufferSize")] NSString RecommendedBufferSize { get; } - + [Field ("AVMetadataIdentifierID3MetadataRelativeVolumeAdjustment")] NSString RelativeVolumeAdjustment { get; } - + [Field ("AVMetadataIdentifierID3MetadataRelativeVolumeAdjustment2")] NSString RelativeVolumeAdjustment2 { get; } - + [Field ("AVMetadataIdentifierID3MetadataReverb")] NSString Reverb { get; } - + [Field ("AVMetadataIdentifierID3MetadataSeek")] NSString Seek { get; } - + [Field ("AVMetadataIdentifierID3MetadataSignature")] NSString Signature { get; } - + [Field ("AVMetadataIdentifierID3MetadataSynchronizedLyric")] NSString SynchronizedLyric { get; } - + [Field ("AVMetadataIdentifierID3MetadataSynchronizedTempoCodes")] NSString SynchronizedTempoCodes { get; } - + [Field ("AVMetadataIdentifierID3MetadataAlbumTitle")] NSString AlbumTitle { get; } - + [Field ("AVMetadataIdentifierID3MetadataBeatsPerMinute")] NSString BeatsPerMinute { get; } - + [Field ("AVMetadataIdentifierID3MetadataComposer")] NSString Composer { get; } - + [Field ("AVMetadataIdentifierID3MetadataContentType")] NSString ContentType { get; } - + [Field ("AVMetadataIdentifierID3MetadataCopyright")] NSString Copyright { get; } - + [Field ("AVMetadataIdentifierID3MetadataDate")] NSString Date { get; } - + [Field ("AVMetadataIdentifierID3MetadataEncodingTime")] NSString EncodingTime { get; } - + [Field ("AVMetadataIdentifierID3MetadataPlaylistDelay")] NSString PlaylistDelay { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalReleaseTime")] NSString OriginalReleaseTime { get; } - + [Field ("AVMetadataIdentifierID3MetadataRecordingTime")] NSString RecordingTime { get; } - + [Field ("AVMetadataIdentifierID3MetadataReleaseTime")] NSString ReleaseTime { get; } - + [Field ("AVMetadataIdentifierID3MetadataTaggingTime")] NSString TaggingTime { get; } - + [Field ("AVMetadataIdentifierID3MetadataEncodedBy")] NSString EncodedBy { get; } - + [Field ("AVMetadataIdentifierID3MetadataLyricist")] NSString Lyricist { get; } - + [Field ("AVMetadataIdentifierID3MetadataFileType")] NSString FileType { get; } - + [Field ("AVMetadataIdentifierID3MetadataTime")] NSString Time { get; } - + [Field ("AVMetadataIdentifierID3MetadataInvolvedPeopleList_v24")] NSString InvolvedPeopleList_v24 { get; } - + [Field ("AVMetadataIdentifierID3MetadataContentGroupDescription")] NSString ContentGroupDescription { get; } - + [Field ("AVMetadataIdentifierID3MetadataTitleDescription")] NSString TitleDescription { get; } - + [Field ("AVMetadataIdentifierID3MetadataSubTitle")] NSString SubTitle { get; } - + [Field ("AVMetadataIdentifierID3MetadataInitialKey")] NSString InitialKey { get; } - + [Field ("AVMetadataIdentifierID3MetadataLanguage")] NSString Language { get; } - + [Field ("AVMetadataIdentifierID3MetadataLength")] NSString Length { get; } - + [Field ("AVMetadataIdentifierID3MetadataMusicianCreditsList")] NSString MusicianCreditsList { get; } - + [Field ("AVMetadataIdentifierID3MetadataMediaType")] NSString MediaType { get; } - + [Field ("AVMetadataIdentifierID3MetadataMood")] NSString Mood { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalAlbumTitle")] NSString OriginalAlbumTitle { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalFilename")] NSString OriginalFilename { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalLyricist")] NSString OriginalLyricist { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalArtist")] NSString OriginalArtist { get; } - + [Field ("AVMetadataIdentifierID3MetadataOriginalReleaseYear")] NSString OriginalReleaseYear { get; } - + [Field ("AVMetadataIdentifierID3MetadataFileOwner")] NSString FileOwner { get; } - + [Field ("AVMetadataIdentifierID3MetadataLeadPerformer")] NSString LeadPerformer { get; } - + [Field ("AVMetadataIdentifierID3MetadataBand")] NSString Band { get; } - + [Field ("AVMetadataIdentifierID3MetadataConductor")] NSString Conductor { get; } - + [Field ("AVMetadataIdentifierID3MetadataModifiedBy")] NSString ModifiedBy { get; } - + [Field ("AVMetadataIdentifierID3MetadataPartOfASet")] NSString PartOfASet { get; } - + [Field ("AVMetadataIdentifierID3MetadataProducedNotice")] NSString ProducedNotice { get; } - + [Field ("AVMetadataIdentifierID3MetadataPublisher")] NSString Publisher { get; } - + [Field ("AVMetadataIdentifierID3MetadataTrackNumber")] NSString TrackNumber { get; } - + [Field ("AVMetadataIdentifierID3MetadataRecordingDates")] NSString RecordingDates { get; } - + [Field ("AVMetadataIdentifierID3MetadataInternetRadioStationName")] NSString InternetRadioStationName { get; } - + [Field ("AVMetadataIdentifierID3MetadataInternetRadioStationOwner")] NSString InternetRadioStationOwner { get; } - + [Field ("AVMetadataIdentifierID3MetadataSize")] NSString Size { get; } - + [Field ("AVMetadataIdentifierID3MetadataAlbumSortOrder")] NSString AlbumSortOrder { get; } - + [Field ("AVMetadataIdentifierID3MetadataPerformerSortOrder")] NSString PerformerSortOrder { get; } - + [Field ("AVMetadataIdentifierID3MetadataTitleSortOrder")] NSString TitleSortOrder { get; } - + [Field ("AVMetadataIdentifierID3MetadataInternationalStandardRecordingCode")] NSString InternationalStandardRecordingCode { get; } - + [Field ("AVMetadataIdentifierID3MetadataEncodedWith")] NSString EncodedWith { get; } - + [Field ("AVMetadataIdentifierID3MetadataSetSubtitle")] NSString SetSubtitle { get; } - + [Field ("AVMetadataIdentifierID3MetadataYear")] NSString Year { get; } - + [Field ("AVMetadataIdentifierID3MetadataUserText")] NSString UserText { get; } - + [Field ("AVMetadataIdentifierID3MetadataUniqueFileIdentifier")] NSString UniqueFileIdentifier { get; } - + [Field ("AVMetadataIdentifierID3MetadataTermsOfUse")] NSString TermsOfUse { get; } - + [Field ("AVMetadataIdentifierID3MetadataUnsynchronizedLyric")] NSString UnsynchronizedLyric { get; } - + [Field ("AVMetadataIdentifierID3MetadataCommercialInformation")] NSString CommercialInformation { get; } - + [Field ("AVMetadataIdentifierID3MetadataCopyrightInformation")] NSString CopyrightInformation { get; } - + [Field ("AVMetadataIdentifierID3MetadataOfficialAudioFileWebpage")] NSString OfficialAudioFileWebpage { get; } - + [Field ("AVMetadataIdentifierID3MetadataOfficialArtistWebpage")] NSString OfficialArtistWebpage { get; } - + [Field ("AVMetadataIdentifierID3MetadataOfficialAudioSourceWebpage")] NSString OfficialAudioSourceWebpage { get; } - + [Field ("AVMetadataIdentifierID3MetadataOfficialInternetRadioStationHomepage")] NSString OfficialInternetRadioStationHomepage { get; } - + [Field ("AVMetadataIdentifierID3MetadataPayment")] NSString Payment { get; } - + [Field ("AVMetadataIdentifierID3MetadataOfficialPublisherWebpage")] NSString OfficialPublisherWebpage { get; } - + [Field ("AVMetadataIdentifierID3MetadataUserURL")] NSString UserUrl { get; } } - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Static] interface IcyMetadata { [Field ("AVMetadataIdentifierIcyMetadataStreamTitle")] NSString StreamTitle { get; } - + [Field ("AVMetadataIdentifierIcyMetadataStreamURL")] NSString StreamUrl { get; } } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVMetadataItem : NSMutableCopying { [Export ("commonKey", ArgumentSemantic.Copy), NullAllowed] - string CommonKey { get; } + string CommonKey { get; } [Export ("keySpace", ArgumentSemantic.Copy), NullAllowed] string KeySpace { get; [NotImplemented] set; } [Export ("locale", ArgumentSemantic.Copy), NullAllowed] - NSLocale Locale { get; [NotImplemented] set; } + NSLocale Locale { get; [NotImplemented] set; } [Export ("time")] CMTime Time { get; [NotImplemented] set; } @@ -6934,16 +6989,16 @@ namespace AVFoundation { NSObject Key { get; } [Export ("stringValue"), NullAllowed] - string StringValue { get; } + string StringValue { get; } [Export ("numberValue"), NullAllowed] - NSNumber NumberValue { get; } + NSNumber NumberValue { get; } [Export ("dateValue"), NullAllowed] - NSDate DateValue { get; } + NSDate DateValue { get; } [Export ("dataValue"), NullAllowed] - NSData DataValue { get; } + NSData DataValue { get; } [Static] [Export ("metadataItemsFromArray:withLocale:")] @@ -6953,7 +7008,7 @@ namespace AVFoundation { [Export ("metadataItemsFromArray:withKey:keySpace:")] AVMetadataItem [] FilterWithKey (AVMetadataItem [] metadataItems, [NullAllowed] NSObject key, [NullAllowed] string keySpace); - [iOS (7,0), Mac (10,9), NoWatch] // headers say it is the watch, but the AVMetadataItemFilter is not + [iOS (7, 0), Mac (10, 9), NoWatch] // headers say it is the watch, but the AVMetadataItemFilter is not [Static, Export ("metadataItemsFromArray:filteredByMetadataItemFilter:")] AVMetadataItem [] FilterWithItemFilter (AVMetadataItem [] metadataItems, AVMetadataItemFilter metadataItemFilter); @@ -6970,52 +7025,60 @@ namespace AVFoundation { [Static, Export ("metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:")] AVMetadataItem [] FilterFromPreferredLanguages (AVMetadataItem [] metadataItems, string [] preferredLanguages); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("identifier"), NullAllowed] NSString MetadataIdentifier { get; [NotImplemented] set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("extendedLanguageTag"), NullAllowed] string ExtendedLanguageTag { get; [NotImplemented] set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("dataType"), NullAllowed] NSString DataType { get; [NotImplemented] set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [return: NullAllowed] [Static, Export ("identifierForKey:keySpace:")] NSString GetMetadataIdentifier (NSObject key, NSString keySpace); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [return: NullAllowed] [Static, Export ("keySpaceForIdentifier:")] NSString GetKeySpaceForIdentifier (NSString identifier); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [return: NullAllowed] [Static, Export ("keyForIdentifier:")] NSObject GetKeyForIdentifier (NSString identifier); - [iOS(8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Static, Export ("metadataItemsFromArray:filteredByIdentifier:")] AVMetadataItem [] FilterWithIdentifier (AVMetadataItem [] metadataItems, NSString metadataIdentifer); - [iOS(9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("startDate"), NullAllowed] NSDate StartDate { get; [NotImplemented] set; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("metadataItemWithPropertiesOfMetadataItem:valueLoadingHandler:")] AVMetadataItem GetMetadataItem (AVMetadataItem metadataItem, Action handler); } - [Watch (6,0)] - [iOS (9,0), Mac (10,11)] + [Watch (6, 0)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface AVMetadataItemValueRequest { - + [NullAllowed, Export ("metadataItem", ArgumentSemantic.Weak)] AVMetadataItem MetadataItem { get; } @@ -7026,7 +7089,7 @@ namespace AVFoundation { void Respond (NSError error); } - [iOS (7,0), Mac (10, 9), Watch (8,0)] + [iOS (7, 0), Mac (10, 9), Watch (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // for binary compatibility this is added in AVMetadataItemFilter.cs w/[Obsolete] interface AVMetadataItemFilter { @@ -7036,76 +7099,76 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [Mac (10,10)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSGenericException Reason: Cannot instantiate AVMetadataObject because it is an abstract superclass. [DisableDefaultCtor] interface AVMetadataObject { [Export ("duration")] - CMTime Duration { get; } + CMTime Duration { get; } [Export ("bounds")] - CGRect Bounds { get; } + CGRect Bounds { get; } [Export ("type")] - NSString WeakType { get; } + NSString WeakType { get; } [Export ("time")] - CMTime Time{ get;} + CMTime Time { get; } #if !NET [Field ("AVMetadataObjectTypeFace")] NSString TypeFace { get; } - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeAztecCode")] NSString TypeAztecCode { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeCode128Code")] NSString TypeCode128Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeCode39Code")] NSString TypeCode39Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeCode39Mod43Code")] NSString TypeCode39Mod43Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeCode93Code")] NSString TypeCode93Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeEAN13Code")] NSString TypeEAN13Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeEAN8Code")] NSString TypeEAN8Code { get; } - + [Field ("AVMetadataObjectTypePDF417Code")] - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] NSString TypePDF417Code { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeQRCode")] NSString TypeQRCode { get; } - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeUPCECode")] NSString TypeUPCECode { get; } - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeInterleaved2of5Code")] NSString TypeInterleaved2of5Code { get; } - - [iOS (8,0), Mac (10,15)] + + [iOS (8, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeITF14Code")] NSString TypeITF14Code { get; } - - [iOS (8,0), Mac (10,15)] + + [iOS (8, 0), Mac (10, 15)] [Field ("AVMetadataObjectTypeDataMatrixCode")] NSString TypeDataMatrixCode { get; } @@ -7131,7 +7194,7 @@ namespace AVFoundation { [NoWatch] #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (10,10)] + [Mac (10, 10)] [Flags] enum AVMetadataObjectType : ulong { [Field (null)] @@ -7141,132 +7204,136 @@ namespace AVFoundation { [Field ("AVMetadataObjectTypeFace")] Face = 1 << 0, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeAztecCode")] AztecCode = 1 << 1, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeCode128Code")] Code128Code = 1 << 2, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeCode39Code")] Code39Code = 1 << 3, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeCode39Mod43Code")] Code39Mod43Code = 1 << 4, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeCode93Code")] Code93Code = 1 << 5, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeEAN13Code")] EAN13Code = 1 << 6, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeEAN8Code")] EAN8Code = 1 << 7, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypePDF417Code")] PDF417Code = 1 << 8, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeQRCode")] QRCode = 1 << 9, - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeUPCECode")] UPCECode = 1 << 10, - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeInterleaved2of5Code")] Interleaved2of5Code = 1 << 11, - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeITF14Code")] ITF14Code = 1 << 12, - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [NoWatch] [Field ("AVMetadataObjectTypeDataMatrixCode")] DataMatrixCode = 1 << 13, - [iOS (13,0), Mac (10,15)] - [NoTV][NoWatch] + [iOS (13, 0), Mac (10, 15)] + [NoTV] + [NoWatch] [Field ("AVMetadataObjectTypeCatBody")] CatBody = 1 << 14, - [iOS (13,0), Mac (10,15)] - [NoTV][NoWatch] + [iOS (13, 0), Mac (10, 15)] + [NoTV] + [NoWatch] [Field ("AVMetadataObjectTypeDogBody")] DogBody = 1 << 15, - [iOS (13,0), Mac (10,15)] - [NoTV][NoWatch] + [iOS (13, 0), Mac (10, 15)] + [NoTV] + [NoWatch] [Field ("AVMetadataObjectTypeHumanBody")] HumanBody = 1 << 16, - [iOS (13,0), Mac (10,15)] - [NoTV][NoWatch] + [iOS (13, 0), Mac (10, 15)] + [NoTV] + [NoWatch] [Field ("AVMetadataObjectTypeSalientObject")] SalientObject = 1 << 17, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeCodabarCode")] CodabarCode = 1 << 18, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeGS1DataBarCode")] GS1DataBarCode = 1 << 19, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeGS1DataBarExpandedCode")] GS1DataBarExpandedCode = 1 << 20, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeGS1DataBarLimitedCode")] GS1DataBarLimitedCode = 1 << 21, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeMicroQRCode")] MicroQRCode = 1 << 22, - [TV (15,4), NoWatch, MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [TV (15, 4), NoWatch, MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Field ("AVMetadataObjectTypeMicroPDF417Code")] MicroPdf417Code = 1 << 23, } [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [Mac (10,10)] + [Mac (10, 10)] [BaseType (typeof (AVMetadataObject))] interface AVMetadataFaceObject : NSCopying { [Export ("hasRollAngle")] - bool HasRollAngle { get; } + bool HasRollAngle { get; } [Export ("rollAngle")] - nfloat RollAngle { get; } + nfloat RollAngle { get; } [Export ("hasYawAngle")] - bool HasYawAngle { get; } + bool HasYawAngle { get; } [Export ("yawAngle")] - nfloat YawAngle { get; } + nfloat YawAngle { get; } [Export ("faceID")] nint FaceID { get; } @@ -7274,7 +7341,7 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [BaseType (typeof (AVMetadataObject))] interface AVMetadataMachineReadableCodeObject { [Export ("corners", ArgumentSemantic.Copy)] @@ -7285,15 +7352,16 @@ namespace AVFoundation { // @interface AVMetadataMachineReadableCodeDescriptor (AVMetadataMachineReadableCodeObject) - [iOS (11, 0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("descriptor")] [NullAllowed] CIBarcodeDescriptor Descriptor { get; } } [NoWatch] - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NSObject), Name="AVMIDIPlayer")] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NSObject), Name = "AVMIDIPlayer")] interface AVMidiPlayer { [Export ("initWithContentsOfURL:soundBankURL:error:")] @@ -7325,21 +7393,20 @@ namespace AVFoundation { void Stop (); } - [Watch (6,0), NoTV, Mac (10,10), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (10, 10), iOS (13, 0)] [DisableDefaultCtor] - [BaseType (typeof(AVAsset))] - interface AVMovie : NSCopying, NSMutableCopying - { + [BaseType (typeof (AVAsset))] + interface AVMovie : NSCopying, NSMutableCopying { [Field ("AVMovieReferenceRestrictionsKey")] NSString ReferenceRestrictionsKey { get; } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVMovieShouldSupportAliasDataReferencesKey")] NSString ShouldSupportAliasDataReferencesKey { get; } - + [Static] [Export ("movieTypes")] - string[] MovieTypes { get; } + string [] MovieTypes { get; } [Static] [Export ("movieWithURL:options:")] @@ -7349,12 +7416,12 @@ namespace AVFoundation { [DesignatedInitializer] NativeHandle Constructor (NSUrl URL, [NullAllowed] NSDictionary options); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("movieWithData:options:")] AVMovie FromData (NSData data, [NullAllowed] NSDictionary options); - [Mac (10,11)] + [Mac (10, 11)] [Export ("initWithData:options:")] [DesignatedInitializer] NativeHandle Constructor (NSData data, [NullAllowed] NSDictionary options); @@ -7371,7 +7438,7 @@ namespace AVFoundation { AVMediaDataStorage DefaultMediaDataStorage { get; } [Export ("tracks")] - AVMovieTrack[] Tracks { get; } + AVMovieTrack [] Tracks { get; } [Export ("canContainMovieFragments")] bool CanContainMovieFragments { get; } @@ -7381,66 +7448,63 @@ namespace AVFoundation { bool ContainsMovieFragments { get; } } - [Watch (6,0), iOS (13,0), NoTV] + [Watch (6, 0), iOS (13, 0), NoTV] [Category] - [BaseType (typeof(AVMovie))] - interface AVMovie_AVMovieMovieHeaderSupport - { - [Mac (10,11)] + [BaseType (typeof (AVMovie))] + interface AVMovie_AVMovieMovieHeaderSupport { + [Mac (10, 11)] [Export ("movieHeaderWithFileType:error:")] [return: NullAllowed] NSData GetMovieHeader (string fileType, [NullAllowed] out NSError outError); - [Mac (10,11)] + [Mac (10, 11)] [Export ("writeMovieHeaderToURL:fileType:options:error:")] bool WriteMovieHeader (NSUrl URL, string fileType, AVMovieWritingOptions options, [NullAllowed] out NSError outError); - [Mac (10,11)] + [Mac (10, 11)] [Export ("isCompatibleWithFileType:")] bool IsCompatibleWithFileType (string fileType); } - [Watch (6,0), iOS (13,0), NoTV] + [Watch (6, 0), iOS (13, 0), NoTV] [Category] - [BaseType (typeof(AVMovie))] - interface AVMovie_AVMovieTrackInspection - { + [BaseType (typeof (AVMovie))] + interface AVMovie_AVMovieTrackInspection { [Export ("trackWithTrackID:")] [return: NullAllowed] AVMovieTrack GetTrack (int trackID); [Export ("tracksWithMediaType:")] - AVMovieTrack[] GetTracks (string mediaType); + AVMovieTrack [] GetTracks (string mediaType); [Wrap ("This.GetTracks (mediaType.GetConstant ())")] - AVMovieTrack[] GetTracks (AVMediaTypes mediaType); + AVMovieTrack [] GetTracks (AVMediaTypes mediaType); [Export ("tracksWithMediaCharacteristic:")] - AVMovieTrack[] GetTracksWithMediaCharacteristic (string mediaCharacteristic); + AVMovieTrack [] GetTracksWithMediaCharacteristic (string mediaCharacteristic); [Wrap ("This.GetTracksWithMediaCharacteristic (mediaCharacteristic.GetConstant ())")] - AVMovieTrack[] GetTracks (AVMediaCharacteristics mediaCharacteristic); + AVMovieTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Watch (6,0), NoTV, Mac (10,11), iOS (13,0)] - [BaseType (typeof(AVMovie))] - interface AVMutableMovie - { + [Watch (6, 0), NoTV, Mac (10, 11), iOS (13, 0)] + [BaseType (typeof (AVMovie))] + interface AVMutableMovie { [Static] [Export ("movieWithURL:options:error:")] [return: NullAllowed] @@ -7481,11 +7545,11 @@ namespace AVFoundation { int Timescale { get; set; } [Export ("tracks")] - AVMutableMovieTrack[] Tracks { get; } + AVMutableMovieTrack [] Tracks { get; } // AVMutableMovie_AVMutableMovieMetadataEditing [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem[] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } // AVMutableMovie_AVMutableMovieMovieLevelEditing [Export ("modified")] @@ -7498,26 +7562,25 @@ namespace AVFoundation { CMTime InterleavingPeriod { get; set; } [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Watch (6,0), NoTV, iOS (13,0)] + [Watch (6, 0), NoTV, iOS (13, 0)] [Category] - [BaseType (typeof(AVMutableMovie))] - interface AVMutableMovie_AVMutableMovieMovieLevelEditing - { + [BaseType (typeof (AVMutableMovie))] + interface AVMutableMovie_AVMutableMovieMovieLevelEditing { [Export ("insertTimeRange:ofAsset:atTime:copySampleData:error:")] bool InsertTimeRange (CMTimeRange timeRange, AVAsset asset, CMTime startTime, bool copySampleData, [NullAllowed] out NSError outError); @@ -7531,11 +7594,10 @@ namespace AVFoundation { void ScaleTimeRange (CMTimeRange timeRange, CMTime duration); } - [Watch (6,0), NoTV, iOS (13,0)] + [Watch (6, 0), NoTV, iOS (13, 0)] [Category] - [BaseType (typeof(AVMutableMovie))] - interface AVMutableMovie_AVMutableMovieTrackLevelEditing - { + [BaseType (typeof (AVMutableMovie))] + interface AVMutableMovie_AVMutableMovieTrackLevelEditing { [Export ("mutableTrackCompatibleWithTrack:")] [return: NullAllowed] AVMutableMovieTrack GetMutableTrack (AVAssetTrack track); @@ -7545,39 +7607,37 @@ namespace AVFoundation { AVMutableMovieTrack AddMutableTrack (string mediaType, [NullAllowed] AVAssetTrack track, [NullAllowed] NSDictionary options); [Export ("addMutableTracksCopyingSettingsFromTracks:options:")] - AVMutableMovieTrack[] AddMutableTracks (AVAssetTrack[] existingTracks, [NullAllowed] NSDictionary options); + AVMutableMovieTrack [] AddMutableTracks (AVAssetTrack [] existingTracks, [NullAllowed] NSDictionary options); [Export ("removeTrack:")] void RemoveTrack (AVMovieTrack track); } - [Watch (6,0), NoTV, iOS (13,0)] + [Watch (6, 0), NoTV, iOS (13, 0)] [Category] - [BaseType (typeof(AVMutableMovie))] - interface AVMutableMovie_AVMutableMovieTrackInspection - { + [BaseType (typeof (AVMutableMovie))] + interface AVMutableMovie_AVMutableMovieTrackInspection { [Export ("trackWithTrackID:")] [return: NullAllowed] AVMutableMovieTrack GetTrack (int trackID); [Export ("tracksWithMediaType:")] - AVMutableMovieTrack[] GetTracks (string mediaType); + AVMutableMovieTrack [] GetTracks (string mediaType); [Wrap ("This.GetTracks (mediaType.GetConstant ())")] - AVMutableMovieTrack[] GetTracks (AVMediaTypes mediaType); + AVMutableMovieTrack [] GetTracks (AVMediaTypes mediaType); [Export ("tracksWithMediaCharacteristic:")] - AVMutableMovieTrack[] GetTracksWithMediaCharacteristic (string mediaCharacteristic); + AVMutableMovieTrack [] GetTracksWithMediaCharacteristic (string mediaCharacteristic); [Wrap ("This.GetTracksWithMediaCharacteristic (mediaCharacteristic.GetConstant ())")] - AVMutableMovieTrack[] GetTracks (AVMediaCharacteristics mediaCharacteristic); + AVMutableMovieTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); } - [Mac (10,11), Watch (6,0), iOS (13,0), NoTV] - [BaseType (typeof(NSObject))] + [Mac (10, 11), Watch (6, 0), iOS (13, 0), NoTV] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVMediaDataStorage - { + interface AVMediaDataStorage { [Export ("initWithURL:options:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl URL, [NullAllowed] NSDictionary options); @@ -7586,22 +7646,21 @@ namespace AVFoundation { NSUrl URL { get; } } - [Mac (10,10), Watch (6,0), iOS (13,0), NoTV] + [Mac (10, 10), Watch (6, 0), iOS (13, 0), NoTV] [DisableDefaultCtor] - [BaseType (typeof(AVMovie))] - interface AVFragmentedMovie : AVFragmentMinding - { + [BaseType (typeof (AVMovie))] + interface AVFragmentedMovie : AVFragmentMinding { [Export ("initWithURL:options:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl URL, [NullAllowed] NSDictionary options); - [Mac (10,11)] + [Mac (10, 11)] [Export ("initWithData:options:")] [DesignatedInitializer] NativeHandle Constructor (NSData data, [NullAllowed] NSDictionary options); [Export ("tracks")] - AVFragmentedMovieTrack[] Tracks { get; } + AVFragmentedMovieTrack [] Tracks { get; } [Notification] [Field ("AVFragmentedMovieContainsMovieFragmentsDidChangeNotification")] @@ -7616,47 +7675,45 @@ namespace AVFoundation { NSString WasDefragmentedNotification { get; } } - [Watch (6,0), NoTV, iOS (13,0)] + [Watch (6, 0), NoTV, iOS (13, 0)] [Category] - [BaseType (typeof(AVFragmentedMovie))] - interface AVFragmentedMovie_AVFragmentedMovieTrackInspection - { + [BaseType (typeof (AVFragmentedMovie))] + interface AVFragmentedMovie_AVFragmentedMovieTrackInspection { [Export ("trackWithTrackID:")] [return: NullAllowed] AVFragmentedMovieTrack GetTrack (int trackID); [Export ("tracksWithMediaType:")] - AVFragmentedMovieTrack[] GetTracks (string mediaType); + AVFragmentedMovieTrack [] GetTracks (string mediaType); [Wrap ("This.GetTracks (mediaType.GetConstant ())")] - AVFragmentedMovieTrack[] GetTracks (AVMediaTypes mediaType); + AVFragmentedMovieTrack [] GetTracks (AVMediaTypes mediaType); [Export ("tracksWithMediaCharacteristic:")] - AVFragmentedMovieTrack[] GetTracksWithMediaCharacteristic (string mediaCharacteristic); + AVFragmentedMovieTrack [] GetTracksWithMediaCharacteristic (string mediaCharacteristic); [Wrap ("This.GetTracksWithMediaCharacteristic (mediaCharacteristic.GetConstant ())")] - AVFragmentedMovieTrack[] GetTracks (AVMediaCharacteristics mediaCharacteristic); + AVFragmentedMovieTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Async] - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Mac (10,10), Watch (6,0), iOS (13,0), NoTV] - [BaseType (typeof(AVFragmentedAssetMinder))] - interface AVFragmentedMovieMinder - { + [Mac (10, 10), Watch (6, 0), iOS (13, 0), NoTV] + [BaseType (typeof (AVFragmentedAssetMinder))] + interface AVFragmentedMovieMinder { [Static] [Export ("fragmentedMovieMinderWithMovie:mindingInterval:")] AVFragmentedMovieMinder FromMovie (AVFragmentedMovie movie, double mindingInterval); @@ -7669,7 +7726,7 @@ namespace AVFoundation { double MindingInterval { get; set; } [Export ("movies")] - AVFragmentedMovie[] Movies { get; } + AVFragmentedMovie [] Movies { get; } [Export ("addFragmentedMovie:")] void Add (AVFragmentedMovie movie); @@ -7678,11 +7735,10 @@ namespace AVFoundation { void Remove (AVFragmentedMovie movie); } - [Mac (10,10), Watch (6,0), iOS (13,0), NoTV] - [BaseType (typeof(AVAssetTrack))] + [Mac (10, 10), Watch (6, 0), iOS (13, 0), NoTV] + [BaseType (typeof (AVAssetTrack))] [DisableDefaultCtor] - interface AVMovieTrack - { + interface AVMovieTrack { [Mac (10, 11)] [Export ("mediaPresentationTimeRange")] CMTimeRange MediaPresentationTimeRange { get; } @@ -7701,11 +7757,10 @@ namespace AVFoundation { AVMediaDataStorage MediaDataStorage { get; } } - [Mac (10,11), Watch (6,0), iOS (13,0), NoTV] - [BaseType (typeof(AVMovieTrack))] + [Mac (10, 11), Watch (6, 0), iOS (13, 0), NoTV] + [BaseType (typeof (AVMovieTrack))] [DisableDefaultCtor] - interface AVMutableMovieTrack - { + interface AVMutableMovieTrack { [NullAllowed, Export ("mediaDataStorage", ArgumentSemantic.Copy)] AVMediaDataStorage MediaDataStorage { get; set; } @@ -7769,26 +7824,25 @@ namespace AVFoundation { // AVMutableMovieTrack_AVMutableMovieTrackMetadataEditing [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem[] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("appendSampleBuffer:decodeTime:presentationTime:error:")] bool AppendSampleBuffer (CMSampleBuffer sampleBuffer, out CMTime outDecodeTime, out CMTime presentationTime, out NSError error); - [Mac (10,12)] + [Mac (10, 12)] [Export ("insertMediaTimeRange:intoTimeRange:")] bool InsertMediaTimeRange (CMTimeRange mediaTimeRange, CMTimeRange trackTimeRange); - [Mac (10,13)] + [Mac (10, 13)] [Export ("replaceFormatDescription:withFormatDescription:")] void ReplaceFormatDescription (CMFormatDescription formatDescription, CMFormatDescription newFormatDescription); } - [Watch (6,0), NoTV, iOS (13,0)] + [Watch (6, 0), NoTV, iOS (13, 0)] [Category] - [BaseType (typeof(AVMutableMovieTrack))] - interface AVMutableMovieTrack_AVMutableMovieTrack_TrackLevelEditing - { + [BaseType (typeof (AVMutableMovieTrack))] + interface AVMutableMovieTrack_AVMutableMovieTrack_TrackLevelEditing { [Export ("insertTimeRange:ofTrack:atTime:copySampleData:error:")] bool InsertTimeRange (CMTimeRange timeRange, AVAssetTrack track, CMTime startTime, bool copySampleData, [NullAllowed] out NSError outError); @@ -7802,11 +7856,10 @@ namespace AVFoundation { void ScaleTimeRange (CMTimeRange timeRange, CMTime duration); } - [Watch (6,0), iOS (13,0), NoTV] + [Watch (6, 0), iOS (13, 0), NoTV] [Category] - [BaseType (typeof(AVMutableMovieTrack))] - interface AVMutableMovieTrack_AVMutableMovieTrackTrackAssociations - { + [BaseType (typeof (AVMutableMovieTrack))] + interface AVMutableMovieTrack_AVMutableMovieTrackTrackAssociations { [Export ("addTrackAssociationToTrack:type:")] void AddTrackAssociation (AVMovieTrack movieTrack, string trackAssociationType); @@ -7814,11 +7867,10 @@ namespace AVFoundation { void RemoveTrackAssociation (AVMovieTrack movieTrack, string trackAssociationType); } - [Mac (10,10), NoTV, Watch (6,0), iOS (13,0)] - [BaseType (typeof(AVMovieTrack))] + [Mac (10, 10), NoTV, Watch (6, 0), iOS (13, 0)] + [BaseType (typeof (AVMovieTrack))] [DisableDefaultCtor] - interface AVFragmentedMovieTrack - { + interface AVFragmentedMovieTrack { #if !NET [NoiOS, NoWatch] [Field ("AVFragmentedMovieTrackTimeRangeDidChangeNotification")] @@ -7839,13 +7891,13 @@ namespace AVFoundation { NSString TotalSampleDataLengthDidChangeNotification { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVMetadataItem))] interface AVMutableMetadataItem { [NullAllowed] // by default this property is null [Export ("keySpace", ArgumentSemantic.Copy)] [Override] - string KeySpace { get; set; } + string KeySpace { get; set; } [Export ("metadataItem"), Static] AVMutableMetadataItem Create (); @@ -7854,54 +7906,55 @@ namespace AVFoundation { [Override] CMTime Duration { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("identifier", ArgumentSemantic.Copy)] [Override] NSString MetadataIdentifier { get; set; } - + [NullAllowed] // by default this property is null [Export ("locale", ArgumentSemantic.Copy)] [Override] - NSLocale Locale { get; set; } + NSLocale Locale { get; set; } [Export ("time")] [Override] - CMTime Time { get; set; } + CMTime Time { get; set; } [NullAllowed] // by default this property is null [Export ("value", ArgumentSemantic.Copy)] [Override] - NSObject Value { get; set; } + NSObject Value { get; set; } [NullAllowed] // by default this property is null [Export ("extraAttributes", ArgumentSemantic.Copy)] [Override] - NSDictionary ExtraAttributes { get; set; } + NSDictionary ExtraAttributes { get; set; } [NullAllowed] // by default this property is null [Export ("key", ArgumentSemantic.Copy)] NSObject Key { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("dataType", ArgumentSemantic.Copy)] [Override] NSString DataType { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("extendedLanguageTag")] [Override] string ExtendedLanguageTag { get; set; } - [iOS(9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("startDate"), NullAllowed] [Override] NSDate StartDate { get; set; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVAssetTrack))] // 'init' returns NIL [DisableDefaultCtor] @@ -7909,12 +7962,12 @@ namespace AVFoundation { [Export ("segments", ArgumentSemantic.Copy)] AVCompositionTrackSegment [] Segments { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("formatDescriptionReplacements")] - AVCompositionTrackFormatDescriptionReplacement[] FormatDescriptionReplacements { get; } + AVCompositionTrackFormatDescriptionReplacement [] FormatDescriptionReplacements { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVCompositionTrack))] // 'init' returns NIL [DisableDefaultCtor] @@ -7960,64 +8013,64 @@ namespace AVFoundation { // 5.0 [Export ("insertTimeRanges:ofTracks:atTime:error:")] - bool InsertTimeRanges (NSValue[] cmTimeRanges, AVAssetTrack [] tracks, CMTime startTime, out NSError error); + bool InsertTimeRanges (NSValue [] cmTimeRanges, AVAssetTrack [] tracks, CMTime startTime, out NSError error); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("addTrackAssociationToTrack:type:")] void AddTrackAssociation (AVCompositionTrack compositionTrack, string trackAssociationType); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("removeTrackAssociationToTrack:type:")] void RemoveTrackAssociation (AVCompositionTrack compositionTrack, string trackAssociationType); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("replaceFormatDescription:withFormatDescription:")] void ReplaceFormatDescription (CMFormatDescription originalFormatDescription, [NullAllowed] CMFormatDescription replacementFormatDescription); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } } - [Watch (6,0)] + [Watch (6, 0)] [Static] interface AVErrorKeys { [Field ("AVFoundationErrorDomain")] NSString ErrorDomain { get; } - + [Field ("AVErrorDeviceKey")] NSString Device { get; } - + [Field ("AVErrorTimeKey")] NSString Time { get; } - + [Field ("AVErrorFileSizeKey")] NSString FileSize { get; } - + [Field ("AVErrorPIDKey")] NSString Pid { get; } - + [Field ("AVErrorRecordingSuccessfullyFinishedKey")] NSString RecordingSuccessfullyFinished { get; } - + [Field ("AVErrorMediaTypeKey")] NSString MediaType { get; } - + [Field ("AVErrorMediaSubTypeKey")] NSString MediaSubType { get; } - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVErrorPresentationTimeStampKey")] NSString PresentationTimeStamp { get; } - - [iOS (8,0)] - [Mac (10,10)] + + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVErrorPersistentTrackIDKey")] NSString PersistentTrackID { get; } - - [iOS (8,0)] - [Mac (10,10)] + + [iOS (8, 0)] + [Mac (10, 10)] [Field ("AVErrorFileTypeKey")] NSString FileType { get; } @@ -8026,19 +8079,19 @@ namespace AVFoundation { [Field ("AVErrorDiscontinuityFlagsKey")] NSString DiscontinuityFlags { get; } } - - [Watch (6,0)] + + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVAssetTrackSegment { [Export ("empty")] - bool Empty { [Bind ("isEmpty")] get; } + bool Empty { [Bind ("isEmpty")] get; } [Export ("timeMapping")] CMTimeMapping TimeMapping { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVAsset))] interface AVComposition : NSMutableCopying { [Export ("tracks")] @@ -8049,59 +8102,59 @@ namespace AVFoundation { [New] CGSize NaturalSize { get; [NotImplemented] set; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("URLAssetInitializationOptions", ArgumentSemantic.Copy)] - NSDictionary UrlAssetInitializationOptions { get; } + NSDictionary UrlAssetInitializationOptions { get; } } - [iOS (9,0), Mac (10,11), Watch (6,0)] + [iOS (9, 0), Mac (10, 11), Watch (6, 0)] [Category] [BaseType (typeof (AVComposition))] interface AVComposition_AVCompositionTrackInspection { - + [Export ("trackWithTrackID:")] [return: NullAllowed] AVCompositionTrack GetTrack (int trackID); [Export ("tracksWithMediaType:")] - AVCompositionTrack[] GetTracks (string mediaType); + AVCompositionTrack [] GetTracks (string mediaType); [Wrap ("This.GetTracks (mediaType.GetConstant ())")] - AVCompositionTrack[] GetTracks (AVMediaTypes mediaType); + AVCompositionTrack [] GetTracks (AVMediaTypes mediaType); [Export ("tracksWithMediaCharacteristic:")] - AVCompositionTrack[] GetTracksWithMediaCharacteristic (string mediaCharacteristic); + AVCompositionTrack [] GetTracksWithMediaCharacteristic (string mediaCharacteristic); [Wrap ("This.GetTracksWithMediaCharacteristic (mediaCharacteristic.GetConstant ())")] - AVCompositionTrack[] GetTracks (AVMediaCharacteristics mediaCharacteristic); + AVCompositionTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVComposition))] interface AVMutableComposition { - + [Export ("composition"), Static] AVMutableComposition Create (); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("compositionWithURLAssetInitializationOptions:")] - AVMutableComposition FromOptions ([NullAllowed] NSDictionary urlAssetInitializationOptions); + AVMutableComposition FromOptions ([NullAllowed] NSDictionary urlAssetInitializationOptions); [Export ("insertTimeRange:ofAsset:atTime:error:")] bool Insert (CMTimeRange insertTimeRange, AVAsset sourceAsset, CMTime atTime, out NSError error); @@ -8131,51 +8184,51 @@ namespace AVFoundation { CGSize NaturalSize { get; set; } } - [iOS (9,0), Mac (10,11), Watch (6,0)] + [iOS (9, 0), Mac (10, 11), Watch (6, 0)] [Category] [BaseType (typeof (AVMutableComposition))] interface AVMutableComposition_AVMutableCompositionTrackInspection { - + [Export ("trackWithTrackID:")] [return: NullAllowed] AVMutableCompositionTrack GetTrack (int trackID); [Export ("tracksWithMediaType:")] - AVMutableCompositionTrack[] GetTracks (string mediaType); + AVMutableCompositionTrack [] GetTracks (string mediaType); [Wrap ("This.GetTracks (mediaType.GetConstant ())")] - AVMutableCompositionTrack[] GetTracks (AVMediaTypes mediaType); + AVMutableCompositionTrack [] GetTracks (AVMediaTypes mediaType); [Export ("tracksWithMediaCharacteristic:")] - AVMutableCompositionTrack[] GetTracksWithMediaCharacteristic (string mediaCharacteristic); + AVMutableCompositionTrack [] GetTracksWithMediaCharacteristic (string mediaCharacteristic); [Wrap ("This.GetTracksWithMediaCharacteristic (mediaCharacteristic.GetConstant ())")] - AVMutableCompositionTrack[] GetTracks (AVMediaCharacteristics mediaCharacteristic); + AVMutableCompositionTrack [] GetTracks (AVMediaCharacteristics mediaCharacteristic); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTrackWithTrackID:completionHandler:")] void LoadTrack (int trackId, Action completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaType:completionHandler:")] void LoadTracksWithMediaType (string mediaType, Action, NSError> completionHandler); [Async] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("loadTracksWithMediaCharacteristic:completionHandler:")] void LoadTracksWithMediaCharacteristic (string mediaCharacteristic, Action, NSError> completionHandler); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVAssetTrackSegment))] interface AVCompositionTrackSegment { [Export ("sourceURL"), NullAllowed] - NSUrl SourceUrl { get; } + NSUrl SourceUrl { get; } [Export ("sourceTrackID")] - int SourceTrackID { get; } /* CMPersistentTrackID = int32_t */ + int SourceTrackID { get; } /* CMPersistentTrackID = int32_t */ [Static] [Export ("compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:")] @@ -8194,7 +8247,7 @@ namespace AVFoundation { NativeHandle Constructor (CMTimeRange timeRange); [Export ("empty")] - bool Empty { [Bind ("isEmpty")] get; } + bool Empty { [Bind ("isEmpty")] get; } } [NoWatch] @@ -8203,57 +8256,57 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVAssetExportSession { [Export ("presetName")] - string PresetName { get; } + string PresetName { get; } [Export ("supportedFileTypes")] #if NET string [] SupportedFileTypes { get; } #else - NSObject [] SupportedFileTypes { get; } + NSObject [] SupportedFileTypes { get; } #endif [NullAllowed] [Export ("outputFileType", ArgumentSemantic.Copy)] - string OutputFileType { get; set; } + string OutputFileType { get; set; } [NullAllowed] [Export ("outputURL", ArgumentSemantic.Copy)] - NSUrl OutputUrl { get; set; } + NSUrl OutputUrl { get; set; } [return: NullAllowed] [Static, Export ("exportSessionWithAsset:presetName:")] AVAssetExportSession FromAsset (AVAsset asset, string presetName); - + [Export ("status")] - AVAssetExportSessionStatus Status { get; } + AVAssetExportSessionStatus Status { get; } [Export ("progress")] - float Progress { get; } // defined as 'float' + float Progress { get; } // defined as 'float' [NoWatch] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'EstimateMaximumDuration' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'EstimateMaximumDuration' instead.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'EstimateMaximumDuration' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'EstimateMaximumDuration' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'EstimateMaximumDuration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'EstimateMaximumDuration' instead.")] [Export ("maxDuration")] - CMTime MaxDuration { get; } + CMTime MaxDuration { get; } [Export ("timeRange", ArgumentSemantic.Assign)] - CMTimeRange TimeRange { get; set; } + CMTimeRange TimeRange { get; set; } [Export ("metadata", ArgumentSemantic.Copy), NullAllowed] - AVMetadataItem [] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } [Export ("fileLengthLimit")] - long FileLengthLimit { get; set; } + long FileLengthLimit { get; set; } [Export ("audioMix", ArgumentSemantic.Copy), NullAllowed] - AVAudioMix AudioMix { get; set; } + AVAudioMix AudioMix { get; set; } [NullAllowed, Export ("videoComposition", ArgumentSemantic.Copy)] - AVVideoComposition VideoComposition { get; set; } + AVVideoComposition VideoComposition { get; set; } [Export ("shouldOptimizeForNetworkUse")] - bool ShouldOptimizeForNetworkUse { get; set; } + bool ShouldOptimizeForNetworkUse { get; set; } [Static, Export ("allExportPresets")] string [] AllExportPresets { get; } @@ -8279,24 +8332,24 @@ namespace AVFoundation { [Export ("error"), NullAllowed] NSError Error { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("AVAssetExportPresetLowQuality")] NSString PresetLowQuality { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("AVAssetExportPresetMediumQuality")] NSString PresetMediumQuality { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("AVAssetExportPresetHighestQuality")] NSString PresetHighestQuality { get; } - [iOS (11, 0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [TV (11, 0)] [Field ("AVAssetExportPresetHEVCHighestQuality")] NSString PresetHevcHighestQuality { get; } - [iOS (11, 0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [TV (11, 0)] [Field ("AVAssetExportPresetHEVC3840x2160")] NSString PresetHevc3840x2160 { get; } @@ -8313,12 +8366,12 @@ namespace AVFoundation { [Field ("AVAssetExportPreset1920x1080")] NSString Preset1920x1080 { get; } - [iOS (9,0)] - [Mac (10,10)] + [iOS (9, 0)] + [Mac (10, 10)] [Field ("AVAssetExportPreset3840x2160")] NSString Preset3840x2160 { get; } - [iOS (11, 0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [TV (11, 0)] [Field ("AVAssetExportPresetHEVC1920x1080")] NSString PresetHevc1920x1080 { get; } @@ -8329,23 +8382,23 @@ namespace AVFoundation { [Field ("AVAssetExportPresetPassthrough")] NSString PresetPassthrough { get; } - [NoWatch, NoTV, MacCatalyst (15,0), iOS (15,0), Mac (10,15)] + [NoWatch, NoTV, MacCatalyst (15, 0), iOS (15, 0), Mac (10, 15)] [Field ("AVAssetExportPresetAppleProRes4444LPCM")] NSString PresetAppleProRes4444Lpcm { get; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVAssetExportPresetHEVC1920x1080WithAlpha")] NSString PresetHevc1920x1080WithAlpha { get; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVAssetExportPresetHEVC3840x2160WithAlpha")] NSString PresetHevc3840x2160WithAlpha { get; } - [NoWatch, NoTV, NoiOS, Mac (12,1)] + [NoWatch, NoTV, NoiOS, Mac (12, 1)] [Field ("AVAssetExportPresetHEVC7680x4320")] NSString PresetHevc7680x4320 { get; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVAssetExportPresetHEVCHighestQualityWithAlpha")] NSString PresetHevcHighestQualityWithAlpha { get; } @@ -8354,9 +8407,9 @@ namespace AVFoundation { AVAsset Asset { get; } [NoWatch] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'EstimateOutputFileLength' for more precise results.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'EstimateOutputFileLength' for more precise results.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'EstimateOutputFileLength' for more precise results.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'EstimateOutputFileLength' for more precise results.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'EstimateOutputFileLength' for more precise results.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'EstimateOutputFileLength' for more precise results.")] [Export ("estimatedOutputFileLength")] long EstimatedOutputFileLength { get; } @@ -8374,105 +8427,105 @@ namespace AVFoundation { [Async] void DetermineCompatibleFileTypes (Action compatibleFileTypesHandler); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("metadataItemFilter", ArgumentSemantic.Retain), NullAllowed] AVMetadataItemFilter MetadataItemFilter { get; set; } [NoWatch] - [Mac (10,9)] - [iOS (7,0)] + [Mac (10, 9)] + [iOS (7, 0)] [NullAllowed, Export ("customVideoCompositor", ArgumentSemantic.Copy)] [Protocolize] AVVideoCompositing CustomVideoCompositor { get; } // DOC: Use the values from AVAudioTimePitchAlgorithm class. - [Mac (10,9)] + [Mac (10, 9)] [iOS (7, 0), Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] NSString AudioTimePitchAlgorithm { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("canPerformMultiplePassesOverSourceMediaData")] [Advice ("This property cannot be set after the export has started.")] bool CanPerformMultiplePassesOverSourceMediaData { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("directoryForTemporaryFiles", ArgumentSemantic.Copy), NullAllowed] [Advice ("This property cannot be set after the export has started.")] NSUrl DirectoryForTemporaryFiles { get; set; } [Async] - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("estimateMaximumDurationWithCompletionHandler:")] void EstimateMaximumDuration (Action handler); [Async] - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("estimateOutputFileLengthWithCompletionHandler:")] void EstimateOutputFileLength (Action handler); } - [iOS (7,0), Watch (6,0)] + [iOS (7, 0), Watch (6, 0)] [Static] interface AVAudioTimePitchAlgorithm { [NoMac] [Field ("AVAudioTimePitchAlgorithmLowQualityZeroLatency")] NSString LowQualityZeroLatency { get; } - - [Mac (10,9)] + + [Mac (10, 9)] [Field ("AVAudioTimePitchAlgorithmTimeDomain")] NSString TimeDomain { get; } - - [Mac (10,9)] + + [Mac (10, 9)] [Field ("AVAudioTimePitchAlgorithmSpectral")] NSString Spectral { get; } - - [Mac (10,9)] + + [Mac (10, 9)] [Field ("AVAudioTimePitchAlgorithmVarispeed")] NSString Varispeed { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVAudioMix : NSMutableCopying { [Export ("inputParameters", ArgumentSemantic.Copy)] - AVAudioMixInputParameters [] InputParameters { get; } + AVAudioMixInputParameters [] InputParameters { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVAudioMix))] interface AVMutableAudioMix { [Export ("inputParameters", ArgumentSemantic.Copy)] - AVAudioMixInputParameters [] InputParameters { get; set; } + AVAudioMixInputParameters [] InputParameters { get; set; } [Static, Export ("audioMix")] AVMutableAudioMix Create (); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVAudioMixInputParameters : NSMutableCopying { [Export ("trackID")] - int TrackID { get; } // defined as 'CMPersistentTrackID' = int32_t + int TrackID { get; } // defined as 'CMPersistentTrackID' = int32_t [Export ("getVolumeRampForTime:startVolume:endVolume:timeRange:")] bool GetVolumeRamp (CMTime forTime, ref float /* defined as 'float*' */ startVolume, ref float /* defined as 'float*' */ endVolume, ref CMTimeRange timeRange); - [Mac (10,9), NoWatch] + [Mac (10, 9), NoWatch] [NullAllowed] [Export ("audioTapProcessor", ArgumentSemantic.Retain)] - MTAudioProcessingTap AudioTapProcessor { get; [NotImplemented] set;} + MTAudioProcessingTap AudioTapProcessor { get; [NotImplemented] set; } - [iOS (7,0), Mac (10,11)] + [iOS (7, 0), Mac (10, 11)] [NullAllowed] // by default this property is null [Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] NSString AudioTimePitchAlgorithm { get; [NotImplemented] set; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVAudioMixInputParameters))] interface AVMutableAudioMixInputParameters { [Export ("trackID")] - int TrackID { get; set; } // defined as 'CMPersistentTrackID' + int TrackID { get; set; } // defined as 'CMPersistentTrackID' [Static] [Export ("audioMixInputParametersWithTrack:")] @@ -8481,20 +8534,20 @@ namespace AVFoundation { [Static] [Export ("audioMixInputParameters")] AVMutableAudioMixInputParameters Create (); - + [Export ("setVolumeRampFromStartVolume:toEndVolume:timeRange:")] void SetVolumeRamp (float /* defined as 'float' */ startVolume, float /* defined as 'float' */ endVolume, CMTimeRange timeRange); [Export ("setVolume:atTime:")] void SetVolume (float /* defined as 'float' */ volume, CMTime atTime); - [Mac (10,9), NoWatch] + [Mac (10, 9), NoWatch] [NullAllowed] // by default this property is null [Export ("audioTapProcessor", ArgumentSemantic.Retain)] [Override] MTAudioProcessingTap AudioTapProcessor { get; set; } - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] [Override] @@ -8502,7 +8555,7 @@ namespace AVFoundation { } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Model, BaseType (typeof (NSObject))] [Protocol] interface AVVideoCompositing { @@ -8510,31 +8563,31 @@ namespace AVFoundation { [return: NullAllowed] [Export ("sourcePixelBufferAttributes")] NSDictionary SourcePixelBufferAttributes (); - + [Abstract] [Export ("requiredPixelBufferAttributesForRenderContext")] NSDictionary RequiredPixelBufferAttributesForRenderContext (); - + [Abstract] [Export ("renderContextChanged:")] void RenderContextChanged (AVVideoCompositionRenderContext newRenderContext); - + [Abstract] [Export ("startVideoCompositionRequest:")] void StartVideoCompositionRequest (AVAsynchronousVideoCompositionRequest asyncVideoCompositionRequest); - + [Export ("cancelAllPendingVideoCompositionRequests")] void CancelAllPendingVideoCompositionRequests (); - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("supportsWideColorSourceFrames")] bool SupportsWideColorSourceFrames { get; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("anticipateRenderingUsingHint:")] void AnticipateRendering (AVVideoCompositionRenderHint renderHint); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("prerollForRenderingUsingHint:")] void PrerollForRendering (AVVideoCompositionRenderHint renderHint); @@ -8542,89 +8595,89 @@ namespace AVFoundation { [Export ("supportsHDRSourceFrames")] bool SupportsHdrSourceFrames { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("canConformColorOfSourceFrames")] bool CanConformColorOfSourceFrames { get; } } - + [NoWatch] [BaseType (typeof (NSObject))] interface AVVideoComposition : NSMutableCopying { [Export ("frameDuration")] - CMTime FrameDuration { get; } + CMTime FrameDuration { get; } [Export ("renderSize")] - CGSize RenderSize { get; } + CGSize RenderSize { get; } [Export ("instructions", ArgumentSemantic.Copy)] - AVVideoCompositionInstruction [] Instructions { get; } + AVVideoCompositionInstruction [] Instructions { get; } [NoWatch] [Export ("animationTool", ArgumentSemantic.Retain), NullAllowed] - AVVideoCompositionCoreAnimationTool AnimationTool { get; } + AVVideoCompositionCoreAnimationTool AnimationTool { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("renderScale")] float RenderScale { get; [NotImplemented] set; } // defined as 'float' [NoWatch] [Export ("isValidForAsset:timeRange:validationDelegate:")] - bool IsValidForAsset ([NullAllowed] AVAsset asset, CMTimeRange timeRange, [Protocolize] [NullAllowed] AVVideoCompositionValidationHandling validationDelegate); + bool IsValidForAsset ([NullAllowed] AVAsset asset, CMTimeRange timeRange, [Protocolize][NullAllowed] AVVideoCompositionValidationHandling validationDelegate); [Mac (10, 9)] [Static, Export ("videoCompositionWithPropertiesOfAsset:")] AVVideoComposition FromAssetProperties (AVAsset asset); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("customVideoCompositorClass", ArgumentSemantic.Copy), NullAllowed] Class CustomVideoCompositorClass { get; [NotImplemented] set; } [NoWatch] - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("videoCompositionWithAsset:applyingCIFiltersWithHandler:")] AVVideoComposition CreateVideoComposition (AVAsset asset, Action applier); - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorPrimaries")] string ColorPrimaries { get; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorYCbCrMatrix")] string ColorYCbCrMatrix { get; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorTransferFunction")] string ColorTransferFunction { get; } - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sourceSampleDataTrackIDs")] - [BindAs (typeof (int[]))] - NSNumber[] SourceSampleDataTrackIds { get; } + [BindAs (typeof (int []))] + NSNumber [] SourceSampleDataTrackIds { get; } } [NoWatch] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [BaseType (typeof (NSObject))] interface AVVideoCompositionRenderContext { [Export ("size", ArgumentSemantic.Copy)] CGSize Size { get; } - + [Export ("renderTransform", ArgumentSemantic.Copy)] CGAffineTransform RenderTransform { get; } - + [Export ("renderScale")] float RenderScale { get; } // defined as 'float' - + [Export ("pixelAspectRatio", ArgumentSemantic.Copy)] AVPixelAspectRatio PixelAspectRatio { get; } - + [Export ("edgeWidths", ArgumentSemantic.Copy)] AVEdgeWidths EdgeWidths { get; } - + [Export ("highQualityRendering")] bool HighQualityRendering { get; } - + [Export ("videoComposition", ArgumentSemantic.Copy)] AVVideoComposition VideoComposition { get; } @@ -8632,8 +8685,8 @@ namespace AVFoundation { [Export ("newPixelBuffer")] CVPixelBuffer CreatePixelBuffer (); } - - [Watch (6,0)] + + [Watch (6, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -8660,19 +8713,19 @@ namespace AVFoundation { [BaseType (typeof (AVVideoComposition))] interface AVMutableVideoComposition { [Export ("frameDuration", ArgumentSemantic.Assign)] - CMTime FrameDuration { get; set; } + CMTime FrameDuration { get; set; } [Export ("renderSize", ArgumentSemantic.Assign)] - CGSize RenderSize { get; set; } + CGSize RenderSize { get; set; } [Export ("instructions", ArgumentSemantic.Copy)] - AVVideoCompositionInstruction [] Instructions { get; set; } + AVVideoCompositionInstruction [] Instructions { get; set; } [NullAllowed] // by default this property is null [Export ("animationTool", ArgumentSemantic.Retain)] - AVVideoCompositionCoreAnimationTool AnimationTool { get; set; } + AVVideoCompositionCoreAnimationTool AnimationTool { get; set; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("renderScale")] float RenderScale { get; set; } // defined as 'float' @@ -8684,32 +8737,32 @@ namespace AVFoundation { [Static, Export ("videoCompositionWithPropertiesOfAsset:")] AVMutableVideoComposition Create (AVAsset asset); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Static] [Export ("videoCompositionWithPropertiesOfAsset:prototypeInstruction:")] AVMutableVideoComposition Create (AVAsset asset, AVVideoCompositionInstruction prototypeInstruction); [NullAllowed] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("customVideoCompositorClass", ArgumentSemantic.Retain)] [Override] Class CustomVideoCompositorClass { get; set; } [NoWatch] - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("videoCompositionWithAsset:applyingCIFiltersWithHandler:")] AVMutableVideoComposition GetVideoComposition (AVAsset asset, Action applier); - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorPrimaries")] string ColorPrimaries { get; set; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorYCbCrMatrix")] string ColorYCbCrMatrix { get; set; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("colorTransferFunction")] string ColorTransferFunction { get; set; } @@ -8717,49 +8770,51 @@ namespace AVFoundation { [Export ("sourceTrackIDForFrameTiming")] int SourceTrackIdForFrameTiming { get; set; } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sourceSampleDataTrackIDs", ArgumentSemantic.Copy)] - [BindAs (typeof (int[]))] - NSNumber[] SourceSampleDataTrackIds { get; set; } + [BindAs (typeof (int []))] + NSNumber [] SourceSampleDataTrackIds { get; set; } } [NoWatch] [BaseType (typeof (NSObject))] interface AVVideoCompositionInstruction : NSSecureCoding, NSMutableCopying { [Export ("timeRange")] - CMTimeRange TimeRange { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")]set; } + CMTimeRange TimeRange { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")] set; } [NullAllowed] [Export ("backgroundColor", ArgumentSemantic.Retain)] - CGColor BackgroundColor { get; - [NotImplemented] set; + CGColor BackgroundColor { + get; + [NotImplemented] + set; } [NoWatch] [Export ("layerInstructions", ArgumentSemantic.Copy)] - AVVideoCompositionLayerInstruction [] LayerInstructions { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")]set; } + AVVideoCompositionLayerInstruction [] LayerInstructions { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")] set; } [Export ("enablePostProcessing")] - bool EnablePostProcessing { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")]set; } + bool EnablePostProcessing { get; [NotImplemented ("Not available on AVVideoCompositionInstruction, only available on AVMutableVideoCompositionInstruction")] set; } // These are there because it adopts the protocol *of the same name* - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("containsTweening")] bool ContainsTweening { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [NullAllowed, Export ("requiredSourceTrackIDs")] - NSNumber[] RequiredSourceTrackIDs { get; } + NSNumber [] RequiredSourceTrackIDs { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("passthroughTrackID")] int PassthroughTrackID { get; } /* CMPersistentTrackID = int32_t */ - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] - [BindAs (typeof (int[]))] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BindAs (typeof (int []))] [Export ("requiredSourceSampleDataTrackIDs")] /* CMPersistentTrackID = int32_t */ - NSNumber[] RequiredSourceSampleDataTrackIds { get; } + NSNumber [] RequiredSourceSampleDataTrackIds { get; } } [NoWatch] @@ -8767,12 +8822,12 @@ namespace AVFoundation { interface AVMutableVideoCompositionInstruction { [Export ("timeRange", ArgumentSemantic.Assign)] [Override] - CMTimeRange TimeRange { get; set; } + CMTimeRange TimeRange { get; set; } [NullAllowed] [Export ("backgroundColor", ArgumentSemantic.Retain)] [Override] - CGColor BackgroundColor { get; set; } + CGColor BackgroundColor { get; set; } [Export ("enablePostProcessing", ArgumentSemantic.Assign)] [Override] @@ -8780,22 +8835,22 @@ namespace AVFoundation { [Export ("layerInstructions", ArgumentSemantic.Copy)] [Override] - AVVideoCompositionLayerInstruction [] LayerInstructions { get; set; } + AVVideoCompositionLayerInstruction [] LayerInstructions { get; set; } [Static, Export ("videoCompositionInstruction")] - AVVideoCompositionInstruction Create (); + AVVideoCompositionInstruction Create (); - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] - [BindAs (typeof (int[]))] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BindAs (typeof (int []))] [Export ("requiredSourceSampleDataTrackIDs", ArgumentSemantic.Copy)] - NSNumber[] RequiredSourceSampleDataTrackIds { get; set; } + NSNumber [] RequiredSourceSampleDataTrackIds { get; set; } } [NoWatch] [BaseType (typeof (NSObject))] interface AVVideoCompositionLayerInstruction : NSSecureCoding, NSMutableCopying { [Export ("trackID", ArgumentSemantic.Assign)] - int TrackID { get; } // defined as 'CMPersistentTrackID' = int32_t + int TrackID { get; } // defined as 'CMPersistentTrackID' = int32_t [Export ("getTransformRampForTime:startTransform:endTransform:timeRange:")] bool GetTransformRamp (CMTime time, ref CGAffineTransform startTransform, ref CGAffineTransform endTransform, ref CMTimeRange timeRange); @@ -8803,7 +8858,7 @@ namespace AVFoundation { [Export ("getOpacityRampForTime:startOpacity:endOpacity:timeRange:")] bool GetOpacityRamp (CMTime time, ref float /* defined as 'float*' */ startOpacity, ref float /* defined as 'float*' */ endOpacity, ref CMTimeRange timeRange); - [iOS (7,0), Mac (10, 9), Export ("getCropRectangleRampForTime:startCropRectangle:endCropRectangle:timeRange:")] + [iOS (7, 0), Mac (10, 9), Export ("getCropRectangleRampForTime:startCropRectangle:endCropRectangle:timeRange:")] bool GetCrop (CMTime time, ref CGRect startCropRectangle, ref CGRect endCropRectangle, ref CMTimeRange timeRange); } @@ -8811,7 +8866,7 @@ namespace AVFoundation { [BaseType (typeof (AVVideoCompositionLayerInstruction))] interface AVMutableVideoCompositionLayerInstruction { [Export ("trackID", ArgumentSemantic.Assign)] - int TrackID { get; set; } // defined as 'CMPersistentTrackID' = int32w_t + int TrackID { get; set; } // defined as 'CMPersistentTrackID' = int32w_t [Static] [Export ("videoCompositionLayerInstructionWithAssetTrack:")] @@ -8820,7 +8875,7 @@ namespace AVFoundation { [Static] [Export ("videoCompositionLayerInstruction")] AVMutableVideoCompositionLayerInstruction Create (); - + [Export ("setTransformRampFromStartTransform:toEndTransform:timeRange:")] void SetTransformRamp (CGAffineTransform startTransform, CGAffineTransform endTransform, CMTimeRange timeRange); @@ -8833,11 +8888,11 @@ namespace AVFoundation { [Export ("setOpacity:atTime:")] void SetOpacity (float /* defined as 'float' */ opacity, CMTime time); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("setCropRectangleRampFromStartCropRectangle:toEndCropRectangle:timeRange:")] void SetCrop (CGRect startCropRectangle, CGRect endCropRectangle, CMTimeRange timeRange); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("setCropRectangle:atTime:")] void SetCrop (CGRect cropRectangle, CMTime time); } @@ -8853,17 +8908,16 @@ namespace AVFoundation { [Export ("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:")] AVVideoCompositionCoreAnimationTool FromLayer (CALayer videoLayer, CALayer animationLayer); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Static, Export ("videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:")] AVVideoCompositionCoreAnimationTool FromComposedVideoFrames (CALayer [] videoLayers, CALayer inAnimationlayer); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [TV (11,0), NoWatch, Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [TV (11, 0), NoWatch, Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCameraCalibrationData - { + interface AVCameraCalibrationData { [Export ("intrinsicMatrix")] NMatrix3 IntrinsicMatrix { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; } @@ -8899,20 +8953,20 @@ namespace AVFoundation { interface AVCaptureSession { [Export ("sessionPreset", ArgumentSemantic.Copy)] - NSString SessionPreset { get; set; } + NSString SessionPreset { get; set; } [Export ("inputs")] - AVCaptureInput [] Inputs { get; } + AVCaptureInput [] Inputs { get; } [Export ("outputs")] - AVCaptureOutput [] Outputs { get; } + AVCaptureOutput [] Outputs { get; } [Export ("running")] - bool Running { [Bind ("isRunning")] get; } + bool Running { [Bind ("isRunning")] get; } [NoMac] [Export ("interrupted")] - bool Interrupted { [Bind ("isInterrupted")] get; } + bool Interrupted { [Bind ("isInterrupted")] get; } [Export ("canSetSessionPreset:")] bool CanSetSessionPreset (NSString preset); @@ -8949,28 +9003,28 @@ namespace AVFoundation { [Field ("AVCaptureSessionPresetPhoto")] NSString PresetPhoto { get; } - + [Field ("AVCaptureSessionPresetHigh")] NSString PresetHigh { get; } - + [Field ("AVCaptureSessionPresetMedium")] NSString PresetMedium { get; } - + [Field ("AVCaptureSessionPresetLow")] NSString PresetLow { get; } - + [Field ("AVCaptureSessionPreset640x480")] NSString Preset640x480 { get; } - + [Field ("AVCaptureSessionPreset1280x720")] NSString Preset1280x720 { get; } - [Mac (10,15)] + [Mac (10, 15)] [Field ("AVCaptureSessionPreset1920x1080")] NSString Preset1920x1080 { get; } - [Mac (10,15)] - [iOS (9,0)] + [Mac (10, 15)] + [iOS (9, 0)] [Field ("AVCaptureSessionPreset3840x2160")] NSString Preset3840x2160 { get; } @@ -8985,7 +9039,7 @@ namespace AVFoundation { NSString Preset352x288 { get; } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Field ("AVCaptureSessionPresetInputPriority")] NSString PresetInputPriority { get; } @@ -9000,14 +9054,14 @@ namespace AVFoundation { [Field ("AVCaptureSessionRuntimeErrorNotification")] [Notification (typeof (AVCaptureSessionRuntimeErrorEventArgs))] NSString RuntimeErrorNotification { get; } - + [Field ("AVCaptureSessionErrorKey")] NSString ErrorKey { get; } - + [Field ("AVCaptureSessionDidStartRunningNotification")] [Notification] NSString DidStartRunningNotification { get; } - + [Field ("AVCaptureSessionDidStopRunningNotification")] [Notification] NSString DidStopRunningNotification { get; } @@ -9023,21 +9077,21 @@ namespace AVFoundation { NSString WasInterruptedNotification { get; } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Field ("AVCaptureSessionInterruptionReasonKey")] NSString InterruptionReasonKey { get; } [NoMac] - [iOS (7,0)] - [MacCatalyst (14,0)] + [iOS (7, 0)] + [MacCatalyst (14, 0)] [Export ("usesApplicationAudioSession")] bool UsesApplicationAudioSession { get; set; } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("automaticallyConfiguresApplicationAudioSession")] bool AutomaticallyConfiguresApplicationAudioSession { get; set; } - + [NoMac] [iOS (10, 0)] [Export ("automaticallyConfiguresCaptureDeviceForWideColor")] @@ -9048,43 +9102,43 @@ namespace AVFoundation { NSString InterruptionSystemPressureStateKey { get; } [NullAllowed] - [MacCatalyst (15,4), Mac (12,3), iOS (15,4)] + [MacCatalyst (15, 4), Mac (12, 3), iOS (15, 4)] [Export ("synchronizationClock")] CMClock SynchronizationClock { get; } [Deprecated (PlatformName.MacOSX, 12, 3, message: "Use 'SynchronizationClock' instead.")] [Deprecated (PlatformName.iOS, 15, 4, message: "Use 'SynchronizationClock' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 4, message: "Use 'SynchronizationClock' instead.")] - [iOS (7,0)] + [iOS (7, 0)] [Export ("masterClock"), NullAllowed] CMClock MasterClock { get; } // // iOS 8 // - [iOS (8,0)] + [iOS (8, 0)] [Export ("addInputWithNoConnections:")] void AddInputWithNoConnections (AVCaptureInput input); - [iOS (8,0)] + [iOS (8, 0)] [Export ("addOutputWithNoConnections:")] void AddOutputWithNoConnections (AVCaptureOutput output); - [iOS (8,0)] + [iOS (8, 0)] [Export ("canAddConnection:")] bool CanAddConnection (AVCaptureConnection connection); - [iOS (8,0)] + [iOS (8, 0)] [Export ("addConnection:")] void AddConnection (AVCaptureConnection connection); - [iOS (8,0)] + [iOS (8, 0)] [Export ("removeConnection:")] void RemoveConnection (AVCaptureConnection connection); - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [Export ("connections")] - AVCaptureConnection[] Connections { get; } + AVCaptureConnection [] Connections { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] @@ -9092,40 +9146,40 @@ namespace AVFoundation { [NoTV] [BaseType (typeof (NSObject))] interface AVCaptureConnection { - - [iOS (8,0)] + + [iOS (8, 0)] [Static] [Export ("connectionWithInputPorts:output:")] AVCaptureConnection FromInputPorts (AVCaptureInputPort [] ports, AVCaptureOutput output); - - [iOS (8,0)] + + [iOS (8, 0)] [Static] [Export ("connectionWithInputPort:videoPreviewLayer:")] AVCaptureConnection FromInputPort (AVCaptureInputPort port, AVCaptureVideoPreviewLayer layer); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("initWithInputPorts:output:")] NativeHandle Constructor (AVCaptureInputPort [] inputPorts, AVCaptureOutput output); - [iOS (8,0)] + [iOS (8, 0)] [Export ("initWithInputPort:videoPreviewLayer:")] NativeHandle Constructor (AVCaptureInputPort inputPort, AVCaptureVideoPreviewLayer layer); [NullAllowed] [Export ("output")] - AVCaptureOutput Output { get; } + AVCaptureOutput Output { get; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")] get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("audioChannels")] - AVCaptureAudioChannel [] AvailableAudioChannels { get; } + AVCaptureAudioChannel [] AvailableAudioChannels { get; } [Export ("videoMirrored")] - bool VideoMirrored { [Bind ("isVideoMirrored")] get; set; } + bool VideoMirrored { [Bind ("isVideoMirrored")] get; set; } [Export ("videoOrientation", ArgumentSemantic.Assign)] - AVCaptureVideoOrientation VideoOrientation { get; set; } + AVCaptureVideoOrientation VideoOrientation { get; set; } [Export ("inputPorts")] AVCaptureInputPort [] InputPorts { get; } @@ -9147,7 +9201,7 @@ namespace AVFoundation { [Deprecated (PlatformName.iOS, 7, 0 /* Only deprecated on iOS */)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] [Export ("videoMinFrameDuration")] - CMTime VideoMinFrameDuration { get; set; } + CMTime VideoMinFrameDuration { get; set; } [Deprecated (PlatformName.iOS, 7, 0 /* Only deprecated on iOS */)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] @@ -9155,46 +9209,46 @@ namespace AVFoundation { bool SupportsVideoMaxFrameDuration { [Bind ("isVideoMaxFrameDurationSupported")] get; } [Export ("videoMaxFrameDuration")] - [Deprecated (PlatformName.iOS, 7, 0 /* Only deprecated on iOS */)] + [Deprecated (PlatformName.iOS, 7, 0 /* Only deprecated on iOS */)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] - CMTime VideoMaxFrameDuration { get; set; } + CMTime VideoMaxFrameDuration { get; set; } [NoMac] [Export ("videoMaxScaleAndCropFactor")] - nfloat VideoMaxScaleAndCropFactor { get; } + nfloat VideoMaxScaleAndCropFactor { get; } [NoMac] [Export ("videoScaleAndCropFactor")] - nfloat VideoScaleAndCropFactor { get; set; } + nfloat VideoScaleAndCropFactor { get; set; } [NullAllowed] [Export ("videoPreviewLayer")] - AVCaptureVideoPreviewLayer VideoPreviewLayer { get; } + AVCaptureVideoPreviewLayer VideoPreviewLayer { get; } [Export ("automaticallyAdjustsVideoMirroring")] - bool AutomaticallyAdjustsVideoMirroring { get; set; } + bool AutomaticallyAdjustsVideoMirroring { get; set; } [NoMac] [Export ("supportsVideoStabilization")] - bool SupportsVideoStabilization { [Bind ("isVideoStabilizationSupported")] get; } + bool SupportsVideoStabilization { [Bind ("isVideoStabilizationSupported")] get; } [NoMac] [Export ("videoStabilizationEnabled")] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'ActiveVideoStabilizationMode' instead.")] - bool VideoStabilizationEnabled { [Bind ("isVideoStabilizationEnabled")] get; } + bool VideoStabilizationEnabled { [Bind ("isVideoStabilizationEnabled")] get; } [NoMac] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'PreferredVideoStabilizationMode' instead.")] [Export ("enablesVideoStabilizationWhenAvailable")] - bool EnablesVideoStabilizationWhenAvailable { get; set; } + bool EnablesVideoStabilizationWhenAvailable { get; set; } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("preferredVideoStabilizationMode")] AVCaptureVideoStabilizationMode PreferredVideoStabilizationMode { get; set; } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("activeVideoStabilizationMode")] AVCaptureVideoStabilizationMode ActiveVideoStabilizationMode { get; } @@ -9224,16 +9278,16 @@ namespace AVFoundation { [BaseType (typeof (NSObject))] interface AVCaptureAudioChannel { [Export ("peakHoldLevel")] - float PeakHoldLevel { get; } // defined as 'float' + float PeakHoldLevel { get; } // defined as 'float' [Export ("averagePowerLevel")] float AveragePowerLevel { get; } // defined as 'float' - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("volume")] float Volume { get; set; } /* float intended here */ } @@ -9253,45 +9307,44 @@ namespace AVFoundation { NSString PortFormatDescriptionDidChangeNotification { get; } } - [Introduced (PlatformName.MacCatalyst, 14, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVCaptureInputPort { [Export ("mediaType")] - string MediaType { get; } + string MediaType { get; } [NullAllowed, Export ("formatDescription")] - CMFormatDescription FormatDescription { get; } + CMFormatDescription FormatDescription { get; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")] get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("input")] - AVCaptureInput Input { get; } + AVCaptureInput Input { get; } - [iOS (7,0), Mac (10, 9), Export ("clock", ArgumentSemantic.Copy), NullAllowed] + [iOS (7, 0), Mac (10, 9), Export ("clock", ArgumentSemantic.Copy), NullAllowed] CMClock Clock { get; } [BindAs (typeof (AVCaptureDeviceType))] - [NoMac, iOS (13,0)] + [NoMac, iOS (13, 0)] [NullAllowed, Export ("sourceDeviceType")] NSString SourceDeviceType { get; } - [NoMac, iOS (13,0)] + [NoMac, iOS (13, 0)] [Export ("sourceDevicePosition")] AVCaptureDevicePosition SourceDevicePosition { get; } } - interface IAVCaptureDepthDataOutputDelegate {} - + interface IAVCaptureDepthDataOutputDelegate { } + [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (11,0), NoMac] + [NoWatch, NoTV, iOS (11, 0), NoMac] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVCaptureDepthDataOutputDelegate - { + [BaseType (typeof (NSObject))] + interface AVCaptureDepthDataOutputDelegate { [Export ("depthDataOutput:didOutputDepthData:timestamp:connection:")] void DidOutputDepthData (AVCaptureDepthDataOutput output, AVDepthData depthData, CMTime timestamp, AVCaptureConnection connection); @@ -9300,12 +9353,11 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (11,0), NoMac] - [BaseType (typeof(AVCaptureOutput))] - interface AVCaptureDepthDataOutput - { + [NoWatch, NoTV, iOS (11, 0), NoMac] + [BaseType (typeof (AVCaptureOutput))] + interface AVCaptureDepthDataOutput { [Export ("setDelegate:callbackQueue:")] - void SetDelegate ([NullAllowed] IAVCaptureDepthDataOutputDelegate del,[NullAllowed] DispatchQueue callbackQueue); + void SetDelegate ([NullAllowed] IAVCaptureDepthDataOutputDelegate del, [NullAllowed] DispatchQueue callbackQueue); [Wrap ("WeakDelegate")] [NullAllowed] @@ -9332,7 +9384,7 @@ namespace AVFoundation { [DisableDefaultCtor] interface AVCaptureDeviceInput { [Export ("device")] - AVCaptureDevice Device { get; } + AVCaptureDevice Device { get; } [Static, Export ("deviceInputWithDevice:error:")] [return: NullAllowed] @@ -9345,11 +9397,11 @@ namespace AVFoundation { [Export ("unifiedAutoExposureDefaultsEnabled")] bool UnifiedAutoExposureDefaultsEnabled { get; set; } - [NoMac, iOS (13,0)] + [NoMac, iOS (13, 0)] [Export ("portsWithMediaType:sourceDeviceType:sourceDevicePosition:")] - AVCaptureInputPort[] GetPorts ([BindAs (typeof (AVMediaTypes))] [NullAllowed] NSString mediaType, [BindAs (typeof (AVCaptureDeviceType))][NullAllowed] NSString sourceDeviceType, AVCaptureDevicePosition sourceDevicePosition); + AVCaptureInputPort [] GetPorts ([BindAs (typeof (AVMediaTypes))][NullAllowed] NSString mediaType, [BindAs (typeof (AVCaptureDeviceType))][NullAllowed] NSString sourceDeviceType, AVCaptureDevicePosition sourceDevicePosition); - [NoMac, iOS (13,0)] + [NoMac, iOS (13, 0)] [Export ("videoMinFrameDurationOverride", ArgumentSemantic.Assign)] CMTime VideoMinFrameDurationOverride { get; set; } } @@ -9426,7 +9478,7 @@ namespace AVFoundation { [Field ("AVAssetExportPresetAppleM4V1080pHD")] NSString M4V1080pHD { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVAssetExportPresetAppleProRes422LPCM")] NSString ProRes422Lpcm { get; } } @@ -9449,15 +9501,15 @@ namespace AVFoundation { [return: NullAllowed] AVCaptureConnection ConnectionFromMediaType (NSString avMediaType); - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Export ("metadataOutputRectOfInterestForRect:")] CGRect GetMetadataOutputRectOfInterestForRect (CGRect rectInOutputCoordinates); - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Export ("rectForMetadataOutputRectOfInterest:")] CGRect GetRectForMetadataOutputRectOfInterest (CGRect rectInMetadataOutputCoordinates); - [Mac (10,15)] + [Mac (10, 15)] [Export ("transformedMetadataObjectForMetadataObject:connection:")] [return: NullAllowed] AVMetadataObject GetTransformedMetadataObject (AVMetadataObject metadataObject, AVCaptureConnection connection); @@ -9496,29 +9548,30 @@ namespace AVFoundation { interface AVCaptureVideoPreviewLayer { [NullAllowed] // by default this property is null [Export ("session", ArgumentSemantic.Retain)] - AVCaptureSession Session { get; set; } + AVCaptureSession Session { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("setSessionWithNoConnection:")] void SetSessionWithNoConnection (AVCaptureSession session); - [Export ("videoGravity", ArgumentSemantic.Copy)][Protected] + [Export ("videoGravity", ArgumentSemantic.Copy)] + [Protected] NSString WeakVideoGravity { get; set; } [NoMac] [Export ("orientation")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AVCaptureConnection.VideoOrientation' instead.")] - AVCaptureVideoOrientation Orientation { get; set; } + AVCaptureVideoOrientation Orientation { get; set; } [NoMac] [Export ("automaticallyAdjustsMirroring")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AVCaptureConnection.AutomaticallyAdjustsVideoMirroring' instead.")] - bool AutomaticallyAdjustsMirroring { get; set; } + bool AutomaticallyAdjustsMirroring { get; set; } [NoMac] [Export ("mirrored")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AVCaptureConnection.VideoMirrored' instead.")] - bool Mirrored { [Bind ("isMirrored")] get; set; } + bool Mirrored { [Bind ("isMirrored")] get; set; } [NoMac] [Export ("isMirroringSupported")] @@ -9537,7 +9590,7 @@ namespace AVFoundation { [Internal] IntPtr InitWithConnection (AVCaptureSession session); - [iOS (8,0)] + [iOS (8, 0)] [Internal] [Export ("initWithSessionWithNoConnection:")] IntPtr InitWithNoConnection (AVCaptureSession session); @@ -9545,33 +9598,33 @@ namespace AVFoundation { [NullAllowed, Export ("connection")] AVCaptureConnection Connection { get; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("captureDevicePointOfInterestForPoint:")] CGPoint CaptureDevicePointOfInterestForPoint (CGPoint pointInLayer); - [Mac (10,15)] + [Mac (10, 15)] [Export ("pointForCaptureDevicePointOfInterest:")] CGPoint PointForCaptureDevicePointOfInterest (CGPoint captureDevicePointOfInterest); - [Mac (10,15)] + [Mac (10, 15)] [Export ("transformedMetadataObjectForMetadataObject:")] [return: NullAllowed] AVMetadataObject GetTransformedMetadataObject (AVMetadataObject metadataObject); - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Export ("metadataOutputRectOfInterestForRect:")] CGRect MapToMetadataOutputCoordinates (CGRect rectInLayerCoordinates); - - [iOS (7,0), Mac (10,15)] + + [iOS (7, 0), Mac (10, 15)] [Export ("rectForMetadataOutputRectOfInterest:")] CGRect MapToLayerCoordinates (CGRect rectInMetadataOutputCoordinates); - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [Static] [Export ("layerWithSessionWithNoConnection:")] AVCaptureVideoPreviewLayer CreateWithNoConnection (AVCaptureSession session); - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("previewing")] bool Previewing { [Bind ("isPreviewing")] get; } } @@ -9586,10 +9639,10 @@ namespace AVFoundation { AVCaptureVideoDataOutputSampleBufferDelegate SampleBufferDelegate { get; } [NullAllowed, Export ("sampleBufferCallbackQueue")] - DispatchQueue SampleBufferCallbackQueue { get; } + DispatchQueue SampleBufferCallbackQueue { get; } [Export ("videoSettings", ArgumentSemantic.Copy), NullAllowed] - NSDictionary WeakVideoSettings { get; set; } + NSDictionary WeakVideoSettings { get; set; } [Wrap ("WeakVideoSettings")] AVVideoSettingsUncompressed UncompressedVideoSetting { get; set; } @@ -9599,10 +9652,10 @@ namespace AVFoundation { [Export ("minFrameDuration")] [Deprecated (PlatformName.iOS, 5, 0, message: "Use 'AVCaptureConnection.MinVideoFrameDuration' instead.")] - CMTime MinFrameDuration { get; set; } + CMTime MinFrameDuration { get; set; } [Export ("alwaysDiscardsLateVideoFrames")] - bool AlwaysDiscardsLateVideoFrames { get; set; } + bool AlwaysDiscardsLateVideoFrames { get; set; } #if !NET [Obsolete ("Use overload accepting a 'IAVCaptureVideoDataOutputSampleBufferDelegate'.")] @@ -9625,38 +9678,38 @@ namespace AVFoundation { [BindAs (typeof (CoreVideo.CVPixelFormatType []))] #endif [Export ("availableVideoCVPixelFormatTypes")] - NSNumber [] AvailableVideoCVPixelFormatTypes { get; } + NSNumber [] AvailableVideoCVPixelFormatTypes { get; } // This is an NSString, because these are are codec types that can be used as keys in // the WeakVideoSettings properties. [Export ("availableVideoCodecTypes")] - NSString [] AvailableVideoCodecTypes { get; } + NSString [] AvailableVideoCodecTypes { get; } - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Export ("recommendedVideoSettingsForAssetWriterWithOutputFileType:")] [return: NullAllowed] NSDictionary GetRecommendedVideoSettingsForAssetWriter (string outputFileType); - [iOS (11,0), Mac (10,15)] + [iOS (11, 0), Mac (10, 15)] [Export ("availableVideoCodecTypesForAssetWriterWithOutputFileType:")] - string[] GetAvailableVideoCodecTypes (string outputFileType); + string [] GetAvailableVideoCodecTypes (string outputFileType); [Internal] - [iOS (11,0), Mac (10,15)] + [iOS (11, 0), Mac (10, 15)] [Export ("recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:")] [return: NullAllowed] NSDictionary GetWeakRecommendedVideoSettings (string videoCodecType, string outputFileType); - [iOS (11,0), Mac (10,15)] + [iOS (11, 0), Mac (10, 15)] [Wrap ("new AVPlayerItemVideoOutputSettings (GetWeakRecommendedVideoSettings (videoCodecType, outputFileType)!)")] [return: NullAllowed] AVPlayerItemVideoOutputSettings GetRecommendedVideoSettings (string videoCodecType, string outputFileType); - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("automaticallyConfiguresOutputBufferDimensions")] bool AutomaticallyConfiguresOutputBufferDimensions { get; set; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("deliversPreviewSizedOutputBuffers")] bool DeliversPreviewSizedOutputBuffers { get; set; } } @@ -9676,7 +9729,7 @@ namespace AVFoundation { void DidDropSampleBuffer (AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection); } - interface IAVCaptureVideoDataOutputSampleBufferDelegate {} + interface IAVCaptureVideoDataOutputSampleBufferDelegate { } [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] @@ -9685,10 +9738,10 @@ namespace AVFoundation { interface AVCaptureAudioDataOutput { [NullAllowed, Export ("sampleBufferDelegate")] [Protocolize] - AVCaptureAudioDataOutputSampleBufferDelegate SampleBufferDelegate { get; } + AVCaptureAudioDataOutputSampleBufferDelegate SampleBufferDelegate { get; } [NullAllowed, Export ("sampleBufferCallbackQueue")] - DispatchQueue SampleBufferCallbackQueue { get; } + DispatchQueue SampleBufferCallbackQueue { get; } [Export ("setSampleBufferDelegate:queue:")] #if NET @@ -9704,12 +9757,12 @@ namespace AVFoundation { void SetSampleBufferDelegateQueue ([NullAllowed] AVCaptureAudioDataOutputSampleBufferDelegate sampleBufferDelegate, [NullAllowed] DispatchQueue sampleBufferCallbackDispatchQueue); #endif - [iOS (7,0), Mac (10,15)] + [iOS (7, 0), Mac (10, 15)] [Export ("recommendedAudioSettingsForAssetWriterWithOutputFileType:")] [return: NullAllowed] NSDictionary GetRecommendedAudioSettingsForAssetWriter (string outputFileType); - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("audioSettings", ArgumentSemantic.Copy)] [NullAllowed] NSDictionary WeakAudioSettings { get; set; } @@ -9735,7 +9788,7 @@ namespace AVFoundation { [NoMac] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] [Abstract] @@ -9746,7 +9799,7 @@ namespace AVFoundation { [NoMac] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (AVCaptureBracketedStillImageSettings))] [DisableDefaultCtor] interface AVCaptureManualExposureBracketedStillImageSettings { @@ -9763,7 +9816,7 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch, NoMac] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (AVCaptureBracketedStillImageSettings))] [DisableDefaultCtor] interface AVCaptureAutoExposureBracketedStillImageSettings { @@ -9773,10 +9826,10 @@ namespace AVFoundation { [Static, Export ("autoExposureSettingsWithExposureTargetBias:")] AVCaptureAutoExposureBracketedStillImageSettings Create (float /* float, not CGFloat */ exposureTargetBias); } - - interface IAVCaptureAudioDataOutputSampleBufferDelegate {} - interface IAVCaptureFileOutputRecordingDelegate {} + interface IAVCaptureAudioDataOutputSampleBufferDelegate { } + + interface IAVCaptureFileOutputRecordingDelegate { } [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] @@ -9812,20 +9865,22 @@ namespace AVFoundation { [Export ("stopRecording")] void StopRecording (); - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("pauseRecording")] void PauseRecording (); - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("resumeRecording")] void ResumeRecording (); - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [NoMacCatalyst] [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] IAVCaptureFileOutputDelegate Delegate { get; set; } - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Export ("recordingPaused")] bool RecordingPaused { [Bind ("isRecordingPaused")] get; } } @@ -9864,25 +9919,25 @@ namespace AVFoundation { interface AVCaptureMetadataOutput { [NullAllowed, Export ("metadataObjectsDelegate")] [Protocolize] - AVCaptureMetadataOutputObjectsDelegate Delegate { get; } + AVCaptureMetadataOutputObjectsDelegate Delegate { get; } [NullAllowed, Export ("metadataObjectsCallbackQueue")] - DispatchQueue CallbackQueue { get; } + DispatchQueue CallbackQueue { get; } [Export ("availableMetadataObjectTypes")] - NSString [] WeakAvailableMetadataObjectTypes { get; } + NSString [] WeakAvailableMetadataObjectTypes { get; } [NullAllowed] [Export ("metadataObjectTypes", ArgumentSemantic.Copy)] - NSString [] WeakMetadataObjectTypes { get; set; } + NSString [] WeakMetadataObjectTypes { get; set; } [Export ("setMetadataObjectsDelegate:queue:")] void SetDelegate ([NullAllowed][Protocolize] AVCaptureMetadataOutputObjectsDelegate objectsDelegate, [NullAllowed] DispatchQueue objectsCallbackQueue); - [iOS (7,0)] + [iOS (7, 0)] [Export ("rectOfInterest", ArgumentSemantic.Copy)] CGRect RectOfInterest { get; set; } - + } [NoWatch] @@ -9896,7 +9951,7 @@ namespace AVFoundation { void DidOutputMetadataObjects (AVCaptureMetadataOutput captureOutput, AVMetadataObject [] metadataObjects, AVCaptureConnection connection); } - [NoTV, Mac (10,15), NoWatch, iOS (12,0)] + [NoTV, Mac (10, 15), NoWatch, iOS (12, 0)] [Internal] [Static] interface AVCapturePhotoSettingsThumbnailFormatKeys { @@ -9910,8 +9965,8 @@ namespace AVFoundation { NSString HeightKey { get; } } - - [NoTV, Mac (10,15), NoWatch, iOS (12,0)] + + [NoTV, Mac (10, 15), NoWatch, iOS (12, 0)] [StrongDictionary ("AVCapturePhotoSettingsThumbnailFormatKeys")] interface AVCapturePhotoSettingsThumbnailFormat { NSString Codec { get; set; } @@ -9921,11 +9976,10 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [NoTV, Mac (10,15), iOS (10,0)] - [BaseType (typeof(NSObject))] + [NoTV, Mac (10, 15), iOS (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCapturePhotoSettings : NSCopying - { + interface AVCapturePhotoSettings : NSCopying { [Static] [Export ("photoSettings")] AVCapturePhotoSettings Create (); @@ -9946,7 +10000,7 @@ namespace AVFoundation { [Export ("photoSettingsFromPhotoSettings:")] AVCapturePhotoSettings FromPhotoSettings (AVCapturePhotoSettings photoSettings); - [iOS (11,0)] + [iOS (11, 0)] [Static] [Export ("photoSettingsWithRawPixelFormatType:rawFileType:processedFormat:processedFileType:")] AVCapturePhotoSettings FromRawPixelFormatType (uint rawPixelFormatType, [NullAllowed] string rawFileType, [NullAllowed] NSDictionary processedFormat, [NullAllowed] string processedFileType); @@ -9964,7 +10018,7 @@ namespace AVFoundation { AVCaptureFlashMode FlashMode { get; set; } [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'PhotoQualityPrioritization' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'PhotoQualityPrioritization' instead.")] [Export ("autoStillImageStabilizationEnabled")] bool IsAutoStillImageStabilizationEnabled { [Bind ("isAutoStillImageStabilizationEnabled")] get; set; } @@ -9975,15 +10029,15 @@ namespace AVFoundation { NSUrl LivePhotoMovieFileUrl { get; set; } [NullAllowed, Export ("livePhotoMovieMetadata", ArgumentSemantic.Copy)] - AVMetadataItem[] LivePhotoMovieMetadata { get; set; } + AVMetadataItem [] LivePhotoMovieMetadata { get; set; } [Export ("availablePreviewPhotoPixelFormatTypes")] - NSNumber[] AvailablePreviewPhotoPixelFormatTypes { get; } + NSNumber [] AvailablePreviewPhotoPixelFormatTypes { get; } [NullAllowed, Export ("previewPhotoFormat", ArgumentSemantic.Copy)] NSDictionary PreviewPhotoFormat { get; set; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'AutoVirtualDeviceFusionEnabled' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AutoVirtualDeviceFusionEnabled' instead.")] [iOS (10, 2)] [Export ("autoDualCameraFusionEnabled")] bool AutoDualCameraFusionEnabled { [Bind ("isAutoDualCameraFusionEnabled")] get; set; } @@ -9996,7 +10050,7 @@ namespace AVFoundation { [NullAllowed, Export ("rawFileType")] string RawFileType { get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceConstituentPhotoDeliveryEnabled' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceConstituentPhotoDeliveryEnabled' instead.")] [iOS (11, 0)] [Export ("dualCameraDualPhotoDeliveryEnabled")] bool DualCameraDualPhotoDeliveryEnabled { [Bind ("isDualCameraDualPhotoDeliveryEnabled")] get; set; } @@ -10028,17 +10082,17 @@ namespace AVFoundation { [Internal] [iOS (11, 0)] [Export ("availableEmbeddedThumbnailPhotoCodecTypes")] - NSString[] _GetAvailableEmbeddedThumbnailPhotoCodecTypes { get; } + NSString [] _GetAvailableEmbeddedThumbnailPhotoCodecTypes { get; } #if !NET [Obsolete ("Use 'AvailableEmbeddedThumbnailPhotoCodecTypes' instead.")] [iOS (11, 0)] [Wrap ("Array.ConvertAll (_GetAvailableEmbeddedThumbnailPhotoCodecTypes, s => AVVideoCodecTypeExtensions.GetValue (s))", IsVirtual = false)] - AVVideoCodecType[] GetAvailableEmbeddedThumbnailPhotoCodecTypes { get; } + AVVideoCodecType [] GetAvailableEmbeddedThumbnailPhotoCodecTypes { get; } #endif [iOS (11, 0)] [Wrap ("Array.ConvertAll (_GetAvailableEmbeddedThumbnailPhotoCodecTypes, s => AVVideoCodecTypeExtensions.GetValue (s))", IsVirtual = true)] - AVVideoCodecType[] AvailableEmbeddedThumbnailPhotoCodecTypes { get; } + AVVideoCodecType [] AvailableEmbeddedThumbnailPhotoCodecTypes { get; } #if NET [iOS (11, 0)] @@ -10065,7 +10119,7 @@ namespace AVFoundation { [BindAs (typeof (AVVideoCodecType []))] [NoWatch, NoTV, NoMac, iOS (12, 0)] [Export ("availableRawEmbeddedThumbnailPhotoCodecTypes")] - NSString[] AvailableRawEmbeddedThumbnailPhotoCodecTypes { get; } + NSString [] AvailableRawEmbeddedThumbnailPhotoCodecTypes { get; } [NoWatch, NoTV, NoMac, iOS (12, 0)] [NullAllowed, Export ("rawEmbeddedThumbnailPhotoFormat", ArgumentSemantic.Copy)] @@ -10079,45 +10133,44 @@ namespace AVFoundation { [Export ("autoRedEyeReductionEnabled")] bool AutoRedEyeReductionEnabled { [Bind ("isAutoRedEyeReductionEnabled")] get; set; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("photoQualityPrioritization", ArgumentSemantic.Assign)] AVCapturePhotoQualityPrioritization PhotoQualityPrioritization { get; set; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("embedsSemanticSegmentationMattesInPhoto")] bool EmbedsSemanticSegmentationMattesInPhoto { get; set; } - [BindAs (typeof (AVSemanticSegmentationMatteType[]))] + [BindAs (typeof (AVSemanticSegmentationMatteType []))] [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("enabledSemanticSegmentationMatteTypes", ArgumentSemantic.Assign)] - NSString[] EnabledSemanticSegmentationMatteTypes { get; set; } + NSString [] EnabledSemanticSegmentationMatteTypes { get; set; } [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("virtualDeviceConstituentPhotoDeliveryEnabledDevices", ArgumentSemantic.Copy)] - AVCaptureDevice[] VirtualDeviceConstituentPhotoDeliveryEnabledDevices { get; set; } + AVCaptureDevice [] VirtualDeviceConstituentPhotoDeliveryEnabledDevices { get; set; } [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("autoVirtualDeviceFusionEnabled")] bool AutoVirtualDeviceFusionEnabled { [Bind ("isAutoVirtualDeviceFusionEnabled")] get; set; } [Introduced (PlatformName.MacCatalyst, 14, 1)] - [iOS (14,1)] + [iOS (14, 1)] [NoMac] [Export ("autoContentAwareDistortionCorrectionEnabled")] bool AutoContentAwareDistortionCorrectionEnabled { [Bind ("isAutoContentAwareDistortionCorrectionEnabled")] get; set; } } - + [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [NoTV, NoMac, iOS (10,0)] - [BaseType (typeof(AVCapturePhotoSettings))] + [NoTV, NoMac, iOS (10, 0)] + [BaseType (typeof (AVCapturePhotoSettings))] [DisableDefaultCtor] - interface AVCapturePhotoBracketSettings - { - [iOS (11,0)] + interface AVCapturePhotoBracketSettings { + [iOS (11, 0)] [Static] [Export ("photoBracketSettingsWithRawPixelFormatType:rawFileType:processedFormat:processedFileType:bracketedSettings:")] - AVCapturePhotoBracketSettings FromPhotoBracketSettings (uint rawPixelFormatType, [NullAllowed] string rawFileType, [NullAllowed] NSDictionary processedFormat, [NullAllowed] string processedFileType, AVCaptureBracketedStillImageSettings[] bracketedSettings); + AVCapturePhotoBracketSettings FromPhotoBracketSettings (uint rawPixelFormatType, [NullAllowed] string rawFileType, [NullAllowed] NSDictionary processedFormat, [NullAllowed] string processedFileType, AVCaptureBracketedStillImageSettings [] bracketedSettings); [Static] [Export ("photoBracketSettingsWithRawPixelFormatType:processedFormat:bracketedSettings:")] @@ -10125,18 +10178,17 @@ namespace AVFoundation { [Export ("bracketedSettings")] AVCaptureBracketedStillImageSettings [] BracketedSettings { get; } - + [Export ("lensStabilizationEnabled")] bool IsLensStabilizationEnabled { [Bind ("isLensStabilizationEnabled")] get; set; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [NoTV, Mac (10,15), iOS (10,0)] - [BaseType (typeof(NSObject))] + [NoTV, Mac (10, 15), iOS (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptureResolvedPhotoSettings - { + interface AVCaptureResolvedPhotoSettings { [Export ("uniqueID")] long UniqueID { get; } @@ -10156,11 +10208,11 @@ namespace AVFoundation { bool IsFlashEnabled { [Bind ("isFlashEnabled")] get; } [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'AVCaptureResolvedPhotoSettings.PhotoProcessingTimeRange' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AVCaptureResolvedPhotoSettings.PhotoProcessingTimeRange' instead.")] [Export ("stillImageStabilizationEnabled")] bool IsStillImageStabilizationEnabled { [Bind ("isStillImageStabilizationEnabled")] get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceFusionEnabled' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceFusionEnabled' instead.")] [iOS (10, 2)] [Export ("dualCameraFusionEnabled")] bool DualCameraFusionEnabled { [Bind ("isDualCameraFusionEnabled")] get; } @@ -10185,35 +10237,34 @@ namespace AVFoundation { [Export ("redEyeReductionEnabled")] bool RedEyeReductionEnabled { [Bind ("isRedEyeReductionEnabled")] get; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("dimensionsForSemanticSegmentationMatteOfType:")] - CMVideoDimensions GetDimensions ([BindAs (typeof (AVSemanticSegmentationMatteType))]NSString semanticSegmentationMatteType); + CMVideoDimensions GetDimensions ([BindAs (typeof (AVSemanticSegmentationMatteType))] NSString semanticSegmentationMatteType); - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("photoProcessingTimeRange")] CMTimeRange PhotoProcessingTimeRange { get; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("virtualDeviceFusionEnabled")] bool VirtualDeviceFusionEnabled { [Bind ("isVirtualDeviceFusionEnabled")] get; } [Introduced (PlatformName.MacCatalyst, 14, 1)] - [iOS (14,1)] + [iOS (14, 1)] [NoMac] [Export ("contentAwareDistortionCorrectionEnabled")] bool ContentAwareDistortionCorrectionEnabled { [Bind ("isContentAwareDistortionCorrectionEnabled")] get; } } - interface IAVCapturePhotoCaptureDelegate {} + interface IAVCapturePhotoCaptureDelegate { } [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [NoTV, Mac (10,15), iOS (10,0)] + [NoTV, Mac (10, 15), iOS (10, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVCapturePhotoCaptureDelegate - { + [BaseType (typeof (NSObject))] + interface AVCapturePhotoCaptureDelegate { [Export ("captureOutput:willBeginCaptureForResolvedSettings:")] void WillBeginCapture (AVCapturePhotoOutput captureOutput, AVCaptureResolvedPhotoSettings resolvedSettings); @@ -10224,16 +10275,16 @@ namespace AVFoundation { void DidCapturePhoto (AVCapturePhotoOutput captureOutput, AVCaptureResolvedPhotoSettings resolvedSettings); [NoMac] - [Deprecated (PlatformName.iOS, 11,0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] [Export ("captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:")] void DidFinishProcessingPhoto (AVCapturePhotoOutput captureOutput, [NullAllowed] CMSampleBuffer photoSampleBuffer, [NullAllowed] CMSampleBuffer previewPhotoSampleBuffer, AVCaptureResolvedPhotoSettings resolvedSettings, [NullAllowed] AVCaptureBracketedStillImageSettings bracketSettings, [NullAllowed] NSError error); [NoMac] - [Deprecated (PlatformName.iOS, 11,0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use the 'DidFinishProcessingPhoto' overload accepting a 'AVCapturePhoto' instead.")] [Export ("captureOutput:didFinishProcessingRawPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error:")] void DidFinishProcessingRawPhoto (AVCapturePhotoOutput captureOutput, [NullAllowed] CMSampleBuffer rawSampleBuffer, [NullAllowed] CMSampleBuffer previewPhotoSampleBuffer, AVCaptureResolvedPhotoSettings resolvedSettings, [NullAllowed] AVCaptureBracketedStillImageSettings bracketSettings, [NullAllowed] NSError error); - [iOS (11,0)] + [iOS (11, 0)] [Export ("captureOutput:didFinishProcessingPhoto:error:")] void DidFinishProcessingPhoto (AVCapturePhotoOutput output, AVCapturePhoto photo, [NullAllowed] NSError error); @@ -10251,10 +10302,9 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] - [NoTV, Mac (10,15), iOS (10,0)] - [BaseType (typeof(AVCaptureOutput))] - interface AVCapturePhotoOutput - { + [NoTV, Mac (10, 15), iOS (10, 0)] + [BaseType (typeof (AVCaptureOutput))] + interface AVCapturePhotoOutput { [Export ("capturePhotoWithSettings:delegate:")] void CapturePhoto (AVCapturePhotoSettings settings, IAVCapturePhotoCaptureDelegate cb); @@ -10265,23 +10315,23 @@ namespace AVFoundation { string [] AvailablePhotoCodecTypes { get; } [Introduced (PlatformName.MacCatalyst, 14, 3)] - [NoWatch, NoTV, NoMac, iOS (14,3)] + [NoWatch, NoTV, NoMac, iOS (14, 3)] [Export ("appleProRAWSupported")] bool AppleProRawSupported { [Bind ("isAppleProRAWSupported")] get; } [Introduced (PlatformName.MacCatalyst, 14, 3)] - [NoWatch, NoTV, NoMac, iOS (14,3)] + [NoWatch, NoTV, NoMac, iOS (14, 3)] [Export ("appleProRAWEnabled")] bool AppleProRawEnabled { [Bind ("isAppleProRAWEnabled")] get; set; } [Introduced (PlatformName.MacCatalyst, 14, 3)] - [NoWatch, NoTV, NoMac, iOS (14,3)] + [NoWatch, NoTV, NoMac, iOS (14, 3)] [Static] [Export ("isBayerRAWPixelFormat:")] bool IsBayerRawPixelFormat (CVPixelFormatType pixelFormat); [Introduced (PlatformName.MacCatalyst, 14, 3)] - [NoWatch, NoTV, NoMac, iOS (14,3)] + [NoWatch, NoTV, NoMac, iOS (14, 3)] [Static] [Export ("isAppleProRAWPixelFormat:")] bool IsAppleProRawPixelFormat (CVPixelFormatType pixelFormat); @@ -10290,12 +10340,12 @@ namespace AVFoundation { [Export ("availableRawPhotoPixelFormatTypes")] NSNumber [] AvailableRawPhotoPixelFormatTypes { get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'MaxPhotoQualityPrioritization' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'MaxPhotoQualityPrioritization' instead.")] [NoMac] [Export ("stillImageStabilizationSupported")] bool IsStillImageStabilizationSupported { [Bind ("isStillImageStabilizationSupported")] get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'MaxPhotoQualityPrioritization' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'MaxPhotoQualityPrioritization' instead.")] [NoMac] [Export ("isStillImageStabilizationScene")] bool IsStillImageStabilizationScene { get; } @@ -10303,16 +10353,16 @@ namespace AVFoundation { [NoMac] #if NET [BindAs (typeof (AVCaptureFlashMode []))] -#endif +#endif [Export ("supportedFlashModes")] - NSNumber[] SupportedFlashModes { get; } + NSNumber [] SupportedFlashModes { get; } [NoMac] [Export ("isFlashScene")] bool IsFlashScene { get; } [NoMac] - [NullAllowed,Export ("photoSettingsForSceneMonitoring", ArgumentSemantic.Copy)] + [NullAllowed, Export ("photoSettingsForSceneMonitoring", ArgumentSemantic.Copy)] AVCapturePhotoSettings PhotoSettingsForSceneMonitoring { get; set; } [NoMac] @@ -10359,76 +10409,76 @@ namespace AVFoundation { [NoMac] [Export ("preparedPhotoSettingsArray")] - AVCapturePhotoSettings[] PreparedPhotoSettings { get; } + AVCapturePhotoSettings [] PreparedPhotoSettings { get; } [NoMac] [Export ("setPreparedPhotoSettingsArray:completionHandler:")] [Async] - void SetPreparedPhotoSettings (AVCapturePhotoSettings[] preparedPhotoSettingsArray, [NullAllowed] Action completionHandler); + void SetPreparedPhotoSettings (AVCapturePhotoSettings [] preparedPhotoSettingsArray, [NullAllowed] Action completionHandler); - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceFusionSupported' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceFusionSupported' instead.")] [iOS (10, 2), NoMac] [Export ("dualCameraFusionSupported")] bool DualCameraFusionSupported { [Bind ("isDualCameraFusionSupported")] get; } // From AVCapturePhotoOutput (AVCapturePhotoOutputDepthDataDeliverySupport) Category - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Export ("depthDataDeliverySupported")] bool DepthDataDeliverySupported { [Bind ("isDepthDataDeliverySupported")] get; } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Export ("depthDataDeliveryEnabled")] bool DepthDataDeliveryEnabled { [Bind ("isDepthDataDeliveryEnabled")] get; set; } [Internal] [iOS (11, 0)] [Export ("availablePhotoFileTypes")] - NSString[] _GetAvailablePhotoFileTypes { get; } + NSString [] _GetAvailablePhotoFileTypes { get; } [iOS (11, 0)] [Wrap ("Array.ConvertAll (_GetAvailablePhotoFileTypes, s => AVFileTypesExtensions.GetValue (s))")] - AVFileTypes[] GetAvailablePhotoFileTypes { get; } + AVFileTypes [] GetAvailablePhotoFileTypes { get; } [Internal] [iOS (11, 0), NoMac] [Export ("availableRawPhotoFileTypes")] - NSString[] _GetAvailableRawPhotoFileTypes { get; } + NSString [] _GetAvailableRawPhotoFileTypes { get; } [iOS (11, 0), NoMac] [Wrap ("Array.ConvertAll (_GetAvailableRawPhotoFileTypes, s => AVFileTypesExtensions.GetValue (s))")] - AVFileTypes[] GetAvailableRawPhotoFileTypes { get; } + AVFileTypes [] GetAvailableRawPhotoFileTypes { get; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("supportedPhotoPixelFormatTypesForFileType:")] - NSNumber[] GetSupportedPhotoPixelFormatTypesForFileType (string fileType); + NSNumber [] GetSupportedPhotoPixelFormatTypesForFileType (string fileType); [Internal] - [iOS (11,0), Mac (10,15)] + [iOS (11, 0), Mac (10, 15)] [Export ("supportedPhotoCodecTypesForFileType:")] - NSString[] _GetSupportedPhotoCodecTypesForFileType (string fileType); + NSString [] _GetSupportedPhotoCodecTypesForFileType (string fileType); - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Wrap ("Array.ConvertAll (_GetSupportedPhotoCodecTypesForFileType (fileType), s => AVVideoCodecTypeExtensions.GetValue (s))")] - AVVideoCodecType[] GetSupportedPhotoCodecTypesForFileType (string fileType); + AVVideoCodecType [] GetSupportedPhotoCodecTypesForFileType (string fileType); - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Export ("supportedRawPhotoPixelFormatTypesForFileType:")] - NSNumber[] GetSupportedRawPhotoPixelFormatTypesForFileType (string fileType); + NSNumber [] GetSupportedRawPhotoPixelFormatTypesForFileType (string fileType); - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceConstituentPhotoDeliverySupported' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceConstituentPhotoDeliverySupported' instead.")] [iOS (11, 0), NoMac] [Export ("dualCameraDualPhotoDeliverySupported")] bool DualCameraDualPhotoDeliverySupported { [Bind ("isDualCameraDualPhotoDeliverySupported")] get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceConstituentPhotoDeliveryEnabledDevices' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceConstituentPhotoDeliveryEnabledDevices' instead.")] [iOS (11, 0), NoMac] [Export ("dualCameraDualPhotoDeliveryEnabled")] bool DualCameraDualPhotoDeliveryEnabled { [Bind ("isDualCameraDualPhotoDeliveryEnabled")] get; set; } [iOS (11, 0), NoMac] [Export ("availableLivePhotoVideoCodecTypes")] - string[] AvailableLivePhotoVideoCodecTypes { [return: BindAs (typeof (AVVideoCodecType []))] get; } + string [] AvailableLivePhotoVideoCodecTypes { [return: BindAs (typeof (AVVideoCodecType []))] get; } [iOS (11, 0), NoMac] [Export ("cameraCalibrationDataDeliverySupported")] @@ -10447,16 +10497,16 @@ namespace AVFoundation { bool AutoRedEyeReductionSupported { [Bind ("isAutoRedEyeReductionSupported")] get; } [BindAs (typeof (AVSemanticSegmentationMatteType []))] - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("availableSemanticSegmentationMatteTypes")] - NSString[] AvailableSemanticSegmentationMatteTypes { get; } + NSString [] AvailableSemanticSegmentationMatteTypes { get; } [BindAs (typeof (AVSemanticSegmentationMatteType []))] - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("enabledSemanticSegmentationMatteTypes", ArgumentSemantic.Assign)] - NSString[] EnabledSemanticSegmentationMatteTypes { get; set; } + NSString [] EnabledSemanticSegmentationMatteTypes { get; set; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("maxPhotoQualityPrioritization", ArgumentSemantic.Assign)] AVCapturePhotoQualityPrioritization MaxPhotoQualityPrioritization { get; set; } @@ -10473,18 +10523,18 @@ namespace AVFoundation { bool VirtualDeviceConstituentPhotoDeliveryEnabled { [Bind ("isVirtualDeviceConstituentPhotoDeliveryEnabled")] get; set; } [Introduced (PlatformName.MacCatalyst, 14, 1)] - [iOS (14,1)] + [iOS (14, 1)] [NoMac] [Export ("contentAwareDistortionCorrectionSupported")] bool ContentAwareDistortionCorrectionSupported { [Bind ("isContentAwareDistortionCorrectionSupported")] get; } [Introduced (PlatformName.MacCatalyst, 14, 1)] - [iOS (14,1)] + [iOS (14, 1)] [NoMac] [Export ("contentAwareDistortionCorrectionEnabled")] bool ContentAwareDistortionCorrectionEnabled { [Bind ("isContentAwareDistortionCorrectionEnabled")] get; set; } } - + [Introduced (PlatformName.MacCatalyst, 14, 0)] [BaseType (typeof (AVCaptureFileOutput))] [NoTV] @@ -10492,18 +10542,18 @@ namespace AVFoundation { interface AVCaptureMovieFileOutput { [NullAllowed] // by default this property is null [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem [] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } [Export ("movieFragmentInterval")] CMTime MovieFragmentInterval { get; set; } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection:")] bool RecordsVideoOrientationAndMirroringChangesAsMetadataTrack (AVCaptureConnection connection); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("setRecordsVideoOrientationAndMirroringChanges:asMetadataTrackForConnection:")] void SetRecordsVideoOrientationAndMirroringChanges (bool doRecordChanges, AVCaptureConnection connection); @@ -10512,49 +10562,49 @@ namespace AVFoundation { [Export ("availableVideoCodecTypes")] NSString [] AvailableVideoCodecTypes { get; } - [iOS (10,0)] + [iOS (10, 0)] [Export ("outputSettingsForConnection:")] NSDictionary GetOutputSettings (AVCaptureConnection connection); - [iOS (10,0)] + [iOS (10, 0)] [Export ("setOutputSettings:forConnection:")] void SetOutputSettings ([NullAllowed] NSDictionary outputSettings, AVCaptureConnection connection); - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Export ("supportedOutputSettingsKeysForConnection:")] - string[] GetSupportedOutputSettingsKeys (AVCaptureConnection connection); + string [] GetSupportedOutputSettingsKeys (AVCaptureConnection connection); - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled")] bool PrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled { [Bind ("isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled")] get; set; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions:")] void SetPrimaryConstituentDeviceSwitchingBehaviorForRecording (AVCapturePrimaryConstituentDeviceSwitchingBehavior switchingBehavior, AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions restrictedSwitchingBehaviorConditions); - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("primaryConstituentDeviceSwitchingBehaviorForRecording")] AVCapturePrimaryConstituentDeviceSwitchingBehavior PrimaryConstituentDeviceSwitchingBehaviorForRecording { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording")] AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording { get; } } [NoTV] [NoWatch] - [MacCatalyst (13,1)] - [Deprecated (PlatformName.MacCatalyst, 13,1, message: "Use 'AVCapturePhotoOutput' instead.")] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'AVCapturePhotoOutput' instead.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'AVCapturePhotoOutput' instead.")] + [MacCatalyst (13, 1)] + [Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'AVCapturePhotoOutput' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCapturePhotoOutput' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'AVCapturePhotoOutput' instead.")] [BaseType (typeof (AVCaptureOutput))] interface AVCaptureStillImageOutput { [Export ("availableImageDataCVPixelFormatTypes")] - NSNumber [] AvailableImageDataCVPixelFormatTypes { get; } + NSNumber [] AvailableImageDataCVPixelFormatTypes { get; } [Export ("availableImageDataCodecTypes")] string [] AvailableImageDataCodecTypes { get; } - + [Export ("outputSettings", ArgumentSemantic.Copy)] NSDictionary OutputSettings { get; set; } @@ -10576,63 +10626,63 @@ namespace AVFoundation { [Deprecated (PlatformName.MacCatalyst, 14, 0)] // 5.0 [Export ("capturingStillImage")] - bool CapturingStillImage { [Bind ("isCapturingStillImage")] get; } + bool CapturingStillImage { [Bind ("isCapturingStillImage")] get; } [NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] - [iOS (7,0)] + [iOS (7, 0)] [Export ("automaticallyEnablesStillImageStabilizationWhenAvailable")] bool AutomaticallyEnablesStillImageStabilizationWhenAvailable { get; set; } [NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] - [iOS (7,0)] + [iOS (7, 0)] [Export ("stillImageStabilizationActive")] bool IsStillImageStabilizationActive { [Bind ("isStillImageStabilizationActive")] get; } [NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] - [iOS (7,0)] + [iOS (7, 0)] [Export ("stillImageStabilizationSupported")] bool IsStillImageStabilizationSupported { [Bind ("isStillImageStabilizationSupported")] get; } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler:")] void CaptureStillImageBracket (AVCaptureConnection connection, AVCaptureBracketedStillImageSettings [] settings, Action imageHandler); [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("maxBracketedCaptureStillImageCount")] nuint MaxBracketedCaptureStillImageCount { get; } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler:")] - void PrepareToCaptureStillImageBracket (AVCaptureConnection connection, AVCaptureBracketedStillImageSettings [] settings, Action handler); + void PrepareToCaptureStillImageBracket (AVCaptureConnection connection, AVCaptureBracketedStillImageSettings [] settings, Action handler); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("lensStabilizationDuringBracketedCaptureSupported")] bool LensStabilizationDuringBracketedCaptureSupported { [Bind ("isLensStabilizationDuringBracketedCaptureSupported")] get; } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("lensStabilizationDuringBracketedCaptureEnabled")] bool LensStabilizationDuringBracketedCaptureEnabled { [Bind ("isLensStabilizationDuringBracketedCaptureEnabled")] get; set; } [Introduced (PlatformName.MacCatalyst, 14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0)] - [iOS (8,0), Mac (10, 14)] + [iOS (8, 0), Mac (10, 14)] [Export ("highResolutionStillImageOutputEnabled")] bool HighResolutionStillImageOutputEnabled { [Bind ("isHighResolutionStillImageOutputEnabled")] get; set; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV, iOS (10,0), Mac (10,15), NoWatch] + [NoTV, iOS (10, 0), Mac (10, 15), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init NS_UNAVAILABLE interface AVCaptureDeviceDiscoverySession { @@ -10651,13 +10701,13 @@ namespace AVFoundation { [Export ("devices")] AVCaptureDevice [] Devices { get; } - [NoMac, iOS (13,0)] + [NoMac, iOS (13, 0)] [Export ("supportedMultiCamDeviceSets")] - NSSet[] SupportedMultiCamDeviceSets { get; } + NSSet [] SupportedMultiCamDeviceSets { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV, iOS (10,0), Mac (10,15), NoWatch] + [NoTV, iOS (10, 0), Mac (10, 15), NoWatch] enum AVCaptureDeviceType { [Field ("AVCaptureDeviceTypeBuiltInMicrophone")] @@ -10699,12 +10749,12 @@ namespace AVFoundation { [Field ("AVCaptureDeviceTypeExternalUnknown")] ExternalUnknown, - [NoWatch, NoTV, NoMac, MacCatalyst (15,4), iOS (15,4)] + [NoWatch, NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Field ("AVCaptureDeviceTypeBuiltInLiDARDepthCamera")] BuiltInLiDarDepthCamera, } - [NoTV, iOS (7,0), Mac (10,14), NoWatch] // matches API that uses it. + [NoTV, iOS (7, 0), Mac (10, 14), NoWatch] // matches API that uses it. enum AVAuthorizationMediaType { Video, Audio, @@ -10714,32 +10764,32 @@ namespace AVFoundation { [Static] #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV, Watch (6,0)] + [NoTV, Watch (6, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Cannot instantiate a AVCaptureDevice directly. [DisableDefaultCtor] interface AVCaptureDevice { [NoWatch] [Export ("uniqueID")] - string UniqueID { get; } + string UniqueID { get; } [NoWatch] [Export ("modelID")] - string ModelID { get; } + string ModelID { get; } [NoWatch] [Export ("localizedName")] - string LocalizedName { get; } + string LocalizedName { get; } [NoWatch] [Export ("connected")] - bool Connected { [Bind ("isConnected")] get; } + bool Connected { [Bind ("isConnected")] get; } [NoWatch] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCaptureDeviceDiscoverySession' instead.")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'AVCaptureDeviceDiscoverySession' instead.")] [Static, Export ("devices")] - AVCaptureDevice [] Devices { get; } + AVCaptureDevice [] Devices { get; } [NoWatch] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCaptureDeviceDiscoverySession' instead.")] @@ -10798,7 +10848,7 @@ namespace AVFoundation { [NoWatch] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCapturePhotoSettings.FlashMode' instead.")] [Export ("flashMode")] - AVCaptureFlashMode FlashMode { get; set; } + AVCaptureFlashMode FlashMode { get; set; } [NoWatch] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCapturePhotoOutput.SupportedFlashModes' instead.")] @@ -10806,8 +10856,8 @@ namespace AVFoundation { bool IsFlashModeSupported (AVCaptureFlashMode flashMode); [NoWatch] - [Export ("torchMode", ArgumentSemantic.Assign)] - AVCaptureTorchMode TorchMode { get; set; } + [Export ("torchMode", ArgumentSemantic.Assign)] + AVCaptureTorchMode TorchMode { get; set; } [NoWatch] [Export ("isTorchModeSupported:")] @@ -10819,23 +10869,23 @@ namespace AVFoundation { [NoWatch] [Export ("focusMode", ArgumentSemantic.Assign)] - AVCaptureFocusMode FocusMode { get; set; } + AVCaptureFocusMode FocusMode { get; set; } [NoWatch] [Export ("focusPointOfInterestSupported")] - bool FocusPointOfInterestSupported { [Bind ("isFocusPointOfInterestSupported")] get; } + bool FocusPointOfInterestSupported { [Bind ("isFocusPointOfInterestSupported")] get; } [NoWatch] [Export ("focusPointOfInterest", ArgumentSemantic.Assign)] - CGPoint FocusPointOfInterest { get; set; } + CGPoint FocusPointOfInterest { get; set; } [NoWatch] [Export ("adjustingFocus")] - bool AdjustingFocus { [Bind ("isAdjustingFocus")] get; } + bool AdjustingFocus { [Bind ("isAdjustingFocus")] get; } [NoWatch] [Export ("exposureMode", ArgumentSemantic.Assign)] - AVCaptureExposureMode ExposureMode { get; set; } + AVCaptureExposureMode ExposureMode { get; set; } [NoWatch] [Export ("isExposureModeSupported:")] @@ -10843,37 +10893,37 @@ namespace AVFoundation { [NoWatch] [Export ("exposurePointOfInterestSupported")] - bool ExposurePointOfInterestSupported { [Bind ("isExposurePointOfInterestSupported")] get; } + bool ExposurePointOfInterestSupported { [Bind ("isExposurePointOfInterestSupported")] get; } [NoWatch] [Export ("exposurePointOfInterest")] - CGPoint ExposurePointOfInterest { get; set; } + CGPoint ExposurePointOfInterest { get; set; } [NoWatch] - [NoTV, NoMac, MacCatalyst (15,4), iOS (15,4)] + [NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Export ("automaticallyAdjustsFaceDrivenAutoExposureEnabled")] bool AutomaticallyAdjustsFaceDrivenAutoExposureEnabled { get; set; } [NoWatch] - [NoTV, NoMac, MacCatalyst (15,4), iOS (15,4)] + [NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Export ("faceDrivenAutoExposureEnabled")] bool FaceDrivenAutoExposureEnabled { [Bind ("isFaceDrivenAutoExposureEnabled")] get; set; } [NoWatch] [Export ("adjustingExposure")] - bool AdjustingExposure { [Bind ("isAdjustingExposure")] get; } + bool AdjustingExposure { [Bind ("isAdjustingExposure")] get; } [NoWatch] [Export ("isWhiteBalanceModeSupported:")] bool IsWhiteBalanceModeSupported (AVCaptureWhiteBalanceMode whiteBalanceMode); - + [NoWatch] [Export ("whiteBalanceMode", ArgumentSemantic.Assign)] - AVCaptureWhiteBalanceMode WhiteBalanceMode { get; set; } + AVCaptureWhiteBalanceMode WhiteBalanceMode { get; set; } [NoWatch] [Export ("adjustingWhiteBalance")] - bool AdjustingWhiteBalance { [Bind ("isAdjustingWhiteBalance")] get; } + bool AdjustingWhiteBalance { [Bind ("isAdjustingWhiteBalance")] get; } [NoWatch] [Export ("position")] @@ -10889,7 +10939,7 @@ namespace AVFoundation { [Notification] NSString WasDisconnectedNotification { get; } - [Mac (10,15), NoWatch] + [Mac (10, 15), NoWatch] [Field ("AVCaptureMaxAvailableTorchLevel")] float MaxAvailableTorchLevel { get; } // defined as 'float' @@ -10901,30 +10951,30 @@ namespace AVFoundation { [NoWatch, NoMac] [Export ("subjectAreaChangeMonitoringEnabled")] bool SubjectAreaChangeMonitoringEnabled { [Bind ("isSubjectAreaChangeMonitoringEnabled")] get; set; } - - [NoWatch, Mac (10,15)] + + [NoWatch, Mac (10, 15)] [Export ("isFlashAvailable")] - bool FlashAvailable { get; } + bool FlashAvailable { get; } [NoWatch, NoMac] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'AVCapturePhotoOutput.IsFlashScene' instead.")] [Export ("isFlashActive")] bool FlashActive { get; } - [NoWatch, Mac (10,15)] + [NoWatch, Mac (10, 15)] [Export ("isTorchAvailable")] bool TorchAvailable { get; } - [NoWatch, Mac (10,15)] + [NoWatch, Mac (10, 15)] [Export ("torchLevel")] float TorchLevel { get; } // defined as 'float' // 6.0 - [NoWatch, Mac (10,15)] + [NoWatch, Mac (10, 15)] [Export ("torchActive")] - bool TorchActive { [Bind ("isTorchActive")] get; } + bool TorchActive { [Bind ("isTorchActive")] get; } - [NoWatch, Mac (10,15)] + [NoWatch, Mac (10, 15)] [Export ("setTorchModeOnWithLevel:error:")] bool SetTorchModeLevel (float /* defined as 'float' */ torchLevel, out NSError outError); @@ -10940,79 +10990,79 @@ namespace AVFoundation { [Export ("automaticallyEnablesLowLightBoostWhenAvailable")] bool AutomaticallyEnablesLowLightBoostWhenAvailable { get; set; } - [iOS (7,0), NoWatch, NoMac] + [iOS (7, 0), NoWatch, NoMac] [Export ("videoZoomFactor")] nfloat VideoZoomFactor { get; set; } - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("rampToVideoZoomFactor:withRate:")] void RampToVideoZoom (nfloat factor, float /* float, not CGFloat */ rate); - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("rampingVideoZoom")] bool RampingVideoZoom { [Bind ("isRampingVideoZoom")] get; } - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("cancelVideoZoomRamp")] void CancelVideoZoomRamp (); - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("autoFocusRangeRestrictionSupported")] bool AutoFocusRangeRestrictionSupported { [Bind ("isAutoFocusRangeRestrictionSupported")] get; } - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("autoFocusRangeRestriction")] AVCaptureAutoFocusRangeRestriction AutoFocusRangeRestriction { get; set; } - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("smoothAutoFocusSupported")] bool SmoothAutoFocusSupported { [Bind ("isSmoothAutoFocusSupported")] get; } - - [iOS (7,0), NoWatch, NoMac] + + [iOS (7, 0), NoWatch, NoMac] [Export ("smoothAutoFocusEnabled")] bool SmoothAutoFocusEnabled { [Bind ("isSmoothAutoFocusEnabled")] get; set; } - [NoWatch, NoTV, NoMac, MacCatalyst (15,4), iOS (15,4)] + [NoWatch, NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Export ("automaticallyAdjustsFaceDrivenAutoFocusEnabled")] bool AutomaticallyAdjustsFaceDrivenAutoFocusEnabled { get; set; } - [NoWatch, NoTV, NoMac, MacCatalyst (15,4), iOS (15,4)] + [NoWatch, NoTV, NoMac, MacCatalyst (15, 4), iOS (15, 4)] [Export ("faceDrivenAutoFocusEnabled")] bool FaceDrivenAutoFocusEnabled { [Bind ("isFaceDrivenAutoFocusEnabled")] get; set; } // Either AVMediaTypeVideo or AVMediaTypeAudio. - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Static] [Wrap ("RequestAccessForMediaType (mediaType == AVAuthorizationMediaType.Video ? AVMediaTypes.Video.GetConstant ()! : AVMediaTypes.Audio.GetConstant ()!, completion)")] [Async] void RequestAccessForMediaType (AVAuthorizationMediaType mediaType, AVRequestAccessStatus completion); [NoWatch] - [iOS (7,0)] - [Mac (10,14)] + [iOS (7, 0)] + [Mac (10, 14)] [Static, Export ("requestAccessForMediaType:completionHandler:")] [Async] void RequestAccessForMediaType (NSString avMediaTypeToken, AVRequestAccessStatus completion); // Calling this method with any media type other than AVMediaTypeVideo or AVMediaTypeAudio raises an exception. [NoWatch] - [iOS (7,0)] - [Mac (10,14)] + [iOS (7, 0)] + [Mac (10, 14)] [Static] [Wrap ("GetAuthorizationStatus (mediaType == AVAuthorizationMediaType.Video ? AVMediaTypes.Video.GetConstant ()! : AVMediaTypes.Audio.GetConstant ()!)")] AVAuthorizationStatus GetAuthorizationStatus (AVAuthorizationMediaType mediaType); [NoWatch] - [iOS (7,0)] - [Mac (10,14)] + [iOS (7, 0)] + [Mac (10, 14)] [Static, Export ("authorizationStatusForMediaType:")] AVAuthorizationStatus GetAuthorizationStatus (NSString avMediaTypeToken); - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Export ("activeFormat", ArgumentSemantic.Retain)] AVCaptureDeviceFormat ActiveFormat { get; set; } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Export ("formats")] AVCaptureDeviceFormat [] Formats { get; } @@ -11024,7 +11074,7 @@ namespace AVFoundation { [Export ("hasTorch")] bool HasTorch { get; } - [NoiOS, NoWatch, MacCatalyst (15,0)] + [NoiOS, NoWatch, MacCatalyst (15, 0)] [Export ("inUseByAnotherApplication")] bool InUseByAnotherApplication { [Bind ("isInUseByAnotherApplication")] get; } @@ -11032,11 +11082,11 @@ namespace AVFoundation { [Export ("suspended")] bool Suspended { [Bind ("isSuspended")] get; } - [NoiOS, NoWatch, MacCatalyst (15,0)] + [NoiOS, NoWatch, MacCatalyst (15, 0)] [Export ("linkedDevices")] AVCaptureDevice [] LinkedDevices { get; } - [Mac (10,9), iOS (14,0), NoWatch] + [Mac (10, 9), iOS (14, 0), NoWatch] [Export ("manufacturer")] string Manufacturer { get; } @@ -11050,63 +11100,71 @@ namespace AVFoundation { [NoWatch] [NoiOS] // TODO: We can provide a better binding once IOKit is bound kIOAudioDeviceTransportType* - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("transportType")] int WeakTransportType { get; } // int intended - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [NullAllowed, Export ("activeInputSource", ArgumentSemantic.Retain)] AVCaptureDeviceInputSource ActiveInputSource { get; set; } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Export ("inputSources")] AVCaptureDeviceInputSource [] InputSources { get; } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Export ("setTransportControlsPlaybackMode:speed:")] void SetTransportControlsPlaybackMode (AVCaptureDeviceTransportControlsPlaybackMode mode, float speed); // Float intended - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Export ("transportControlsPlaybackMode")] AVCaptureDeviceTransportControlsPlaybackMode TransportControlsPlaybackMode { get; } [NoWatch] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("activeVideoMinFrameDuration", ArgumentSemantic.Copy)] CMTime ActiveVideoMinFrameDuration { get; set; } [NoWatch] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("activeVideoMaxFrameDuration", ArgumentSemantic.Copy)] CMTime ActiveVideoMaxFrameDuration { get; set; } - [iOS (10,0), NoMac, NoWatch] + [iOS (10, 0), NoMac, NoWatch] [Export ("lockingFocusWithCustomLensPositionSupported")] bool LockingFocusWithCustomLensPositionSupported { [Bind ("isLockingFocusWithCustomLensPositionSupported")] get; } - [iOS (10,0), NoMac, NoWatch] + [iOS (10, 0), NoMac, NoWatch] [Export ("lockingWhiteBalanceWithCustomDeviceGainsSupported")] bool LockingWhiteBalanceWithCustomDeviceGainsSupported { [Bind ("isLockingWhiteBalanceWithCustomDeviceGainsSupported")] get; } // From AVCaptureDevice (AVCaptureDeviceType) Category [Internal] - [iOS (10,0), Mac (10,15), NoWatch] + [iOS (10, 0), Mac (10, 15), NoWatch] [Export ("deviceType")] NSString _DeviceType { get; } - [iOS (10, 0), Mac (10,15), NoWatch] + [iOS (10, 0), Mac (10, 15), NoWatch] [Wrap ("AVCaptureDeviceTypeExtensions.GetValue (_DeviceType)")] AVCaptureDeviceType DeviceType { get; } [Internal] - [iOS (10,0), Mac (10,15), NoWatch] + [iOS (10, 0), Mac (10, 15), NoWatch] [Static] [Export ("defaultDeviceWithDeviceType:mediaType:position:")] AVCaptureDevice _DefaultDeviceWithDeviceType (NSString deviceType, string mediaType, AVCaptureDevicePosition position); - [iOS (10,0), Mac (10,15), NoWatch] + [iOS (10, 0), Mac (10, 15), NoWatch] [Static] [Wrap ("AVCaptureDevice._DefaultDeviceWithDeviceType (deviceType.GetConstant ()!, mediaType, position)")] AVCaptureDevice GetDefaultDevice (AVCaptureDeviceType deviceType, string mediaType, AVCaptureDevicePosition position); @@ -11114,133 +11172,133 @@ namespace AVFoundation { // // iOS 8 // - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Field ("AVCaptureLensPositionCurrent")] float FocusModeLensPositionCurrent { get; } /* float, not CGFloat */ - - [iOS (8,0), NoWatch, NoMac] + + [iOS (8, 0), NoWatch, NoMac] [Export ("lensAperture")] float LensAperture { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("exposureDuration")] CMTime ExposureDuration { get; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("ISO")] float ISO { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("exposureTargetOffset")] float ExposureTargetOffset { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("exposureTargetBias")] float ExposureTargetBias { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("minExposureTargetBias")] float MinExposureTargetBias { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("maxExposureTargetBias")] float MaxExposureTargetBias { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("setExposureModeCustomWithDuration:ISO:completionHandler:")] [Async] void LockExposure (CMTime duration, float /* float, not CGFloat */ ISO, [NullAllowed] Action completionHandler); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("setExposureTargetBias:completionHandler:")] [Async] void SetExposureTargetBias (float /* float, not CGFloat */ bias, [NullAllowed] Action completionHandler); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("lensPosition")] float LensPosition { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("setFocusModeLockedWithLensPosition:completionHandler:")] [Async] - void SetFocusModeLocked (float /* float, not CGFloat */ lensPosition, [NullAllowed] Action completionHandler); + void SetFocusModeLocked (float /* float, not CGFloat */ lensPosition, [NullAllowed] Action completionHandler); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("deviceWhiteBalanceGains")] AVCaptureWhiteBalanceGains DeviceWhiteBalanceGains { get; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("grayWorldDeviceWhiteBalanceGains")] AVCaptureWhiteBalanceGains GrayWorldDeviceWhiteBalanceGains { get; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("maxWhiteBalanceGain")] float MaxWhiteBalanceGain { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:completionHandler:")] [Async] void SetWhiteBalanceModeLockedWithDeviceWhiteBalanceGains (AVCaptureWhiteBalanceGains whiteBalanceGains, [NullAllowed] Action completionHandler); - [iOS (8,0), NoMac, NoWatch] + [iOS (8, 0), NoMac, NoWatch] [Export ("chromaticityValuesForDeviceWhiteBalanceGains:")] AVCaptureWhiteBalanceChromaticityValues GetChromaticityValues (AVCaptureWhiteBalanceGains whiteBalanceGains); - [iOS (8,0), NoMac, NoWatch] + [iOS (8, 0), NoMac, NoWatch] [Export ("deviceWhiteBalanceGainsForChromaticityValues:")] AVCaptureWhiteBalanceGains GetDeviceWhiteBalanceGains (AVCaptureWhiteBalanceChromaticityValues chromaticityValues); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("temperatureAndTintValuesForDeviceWhiteBalanceGains:")] AVCaptureWhiteBalanceTemperatureAndTintValues GetTemperatureAndTintValues (AVCaptureWhiteBalanceGains whiteBalanceGains); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("deviceWhiteBalanceGainsForTemperatureAndTintValues:")] AVCaptureWhiteBalanceGains GetDeviceWhiteBalanceGains (AVCaptureWhiteBalanceTemperatureAndTintValues tempAndTintValues); - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Field ("AVCaptureExposureDurationCurrent")] CMTime ExposureDurationCurrent { get; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Field ("AVCaptureExposureTargetBiasCurrent")] float ExposureTargetBiasCurrent { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Field ("AVCaptureISOCurrent")] float ISOCurrent { get; } /* float, not CGFloat */ - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Field ("AVCaptureLensPositionCurrent")] float LensPositionCurrent { get; } /* float, not CGFloat */ - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Field ("AVCaptureWhiteBalanceGainsCurrent")] AVCaptureWhiteBalanceGains WhiteBalanceGainsCurrent { get; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("automaticallyAdjustsVideoHDREnabled")] bool AutomaticallyAdjustsVideoHdrEnabled { get; set; } - [iOS (8,0), NoWatch, NoMac] + [iOS (8, 0), NoWatch, NoMac] [Export ("videoHDREnabled")] bool VideoHdrEnabled { [Bind ("isVideoHDREnabled")] get; set; } - [iOS (10, 0), NoWatch, Mac (10,15)] + [iOS (10, 0), NoWatch, Mac (10, 15)] [Export ("activeColorSpace", ArgumentSemantic.Assign)] AVCaptureColorSpace ActiveColorSpace { get; set; } // From AVCaptureDevice (AVCaptureDeviceDepthSupport) Category - [iOS (11,0), NoWatch, NoMac] + [iOS (11, 0), NoWatch, NoMac] [Export ("activeDepthDataFormat", ArgumentSemantic.Retain), NullAllowed] AVCaptureDeviceFormat ActiveDepthDataFormat { get; set; } - [iOS (11,0), NoWatch, NoMac] + [iOS (11, 0), NoWatch, NoMac] [Export ("minAvailableVideoZoomFactor")] nfloat MinAvailableVideoZoomFactor { get; } - [iOS (11,0), NoWatch, NoMac] + [iOS (11, 0), NoWatch, NoMac] [Export ("maxAvailableVideoZoomFactor")] nfloat MaxAvailableVideoZoomFactor { get; } @@ -11249,7 +11307,7 @@ namespace AVFoundation { [Export ("systemPressureState")] AVCaptureSystemPressureState SystemPressureState { get; } - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'VirtualDeviceSwitchOverVideoZoomFactors' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'VirtualDeviceSwitchOverVideoZoomFactors' instead.")] [iOS (11, 0), NoWatch, NoMac] [Export ("dualCameraSwitchOverVideoZoomFactor")] nfloat DualCameraSwitchOverVideoZoomFactor { get; } @@ -11265,11 +11323,11 @@ namespace AVFoundation { [Export ("activeMaxExposureDuration", ArgumentSemantic.Assign)] CMTime ActiveMaxExposureDuration { get; set; } - [Mac (10,15), iOS (10,0), NoTV, NoWatch] + [Mac (10, 15), iOS (10, 0), NoTV, NoWatch] [Static] [Export ("defaultDeviceWithDeviceType:mediaType:position:")] [return: NullAllowed] - AVCaptureDevice GetDefaultDevice ([BindAs (typeof (AVCaptureDeviceType))]NSString deviceType, [NullAllowed] [BindAs (typeof (AVMediaTypes))] NSString mediaType, AVCaptureDevicePosition position); + AVCaptureDevice GetDefaultDevice ([BindAs (typeof (AVCaptureDeviceType))] NSString deviceType, [NullAllowed][BindAs (typeof (AVMediaTypes))] NSString mediaType, AVCaptureDevicePosition position); // From AVCaptureDevice_AVCaptureDeviceVirtual [NoWatch, NoTV, NoMac, iOS (13, 0)] @@ -11278,57 +11336,57 @@ namespace AVFoundation { [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("constituentDevices")] - AVCaptureDevice[] ConstituentDevices { get; } + AVCaptureDevice [] ConstituentDevices { get; } // from AVCaptureDevice_AVCaptureDeviceCalibration - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Static] [Export ("extrinsicMatrixFromDevice:toDevice:")] [return: NullAllowed] NSData GetExtrinsicMatrix (AVCaptureDevice fromDevice, AVCaptureDevice toDevice); - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("globalToneMappingEnabled")] bool GlobalToneMappingEnabled { [Bind ("isGlobalToneMappingEnabled")] get; set; } [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("virtualDeviceSwitchOverVideoZoomFactors")] - NSNumber[] VirtualDeviceSwitchOverVideoZoomFactors { get; } + NSNumber [] VirtualDeviceSwitchOverVideoZoomFactors { get; } // From AVCaptureDevice_AVCaptureDeviceVirtual - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:")] void SetPrimaryConstituentDeviceSwitchingBehavior (AVCapturePrimaryConstituentDeviceSwitchingBehavior switchingBehavior, AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions restrictedSwitchingBehaviorConditions); - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("primaryConstituentDeviceSwitchingBehavior")] AVCapturePrimaryConstituentDeviceSwitchingBehavior PrimaryConstituentDeviceSwitchingBehavior { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("primaryConstituentDeviceRestrictedSwitchingBehaviorConditions")] AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("activePrimaryConstituentDeviceSwitchingBehavior")] AVCapturePrimaryConstituentDeviceSwitchingBehavior ActivePrimaryConstituentDeviceSwitchingBehavior { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions")] AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { get; } [NullAllowed] - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("activePrimaryConstituentDevice")] AVCaptureDevice ActivePrimaryConstituentDevice { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("supportedFallbackPrimaryConstituentDevices")] - AVCaptureDevice[] SupportedFallbackPrimaryConstituentDevices { get; } + AVCaptureDevice [] SupportedFallbackPrimaryConstituentDevices { get; } - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("fallbackPrimaryConstituentDevices", ArgumentSemantic.Assign)] - AVCaptureDevice[] FallbackPrimaryConstituentDevices { get; set; } + AVCaptureDevice [] FallbackPrimaryConstituentDevices { get; set; } // from AVCaptureDevice_AVCaptureDeviceGeometricDistortionCorrection @@ -11343,56 +11401,56 @@ namespace AVFoundation { // from AVCaptureDevice_AVCaptureDeviceCenterStage [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Static] [Export ("centerStageControlMode", ArgumentSemantic.Assign)] AVCaptureCenterStageControlMode CenterStageControlMode { get; set; } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Static] [Export ("centerStageEnabled")] bool CenterStageEnabled { [Bind ("isCenterStageEnabled")] get; set; } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Export ("centerStageActive")] bool CenterStageActive { [Bind ("isCenterStageActive")] get; } // AVCaptureDevice_AVCaptureMicrophoneMode - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("preferredMicrophoneMode")] AVCaptureMicrophoneMode PreferredMicrophoneMode { get; } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("activeMicrophoneMode")] AVCaptureMicrophoneMode ActiveMicrophoneMode { get; } // AVCaptureDevice_AVCaptureDevicePortraitEffect - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("portraitEffectEnabled")] bool PortraitEffectEnabled { [Bind ("isPortraitEffectEnabled")] get; } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("portraitEffectActive")] bool PortraitEffectActive { [Bind ("isPortraitEffectActive")] get; } // AVCaptureDevice_AVCaptureSystemUserInterface - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("showSystemUserInterface:")] void ShowSystemUserInterface (AVCaptureSystemUserInterface systemUserInterface); - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("minimumFocusDistance")] nint MinimumFocusDistance { get; } @@ -11418,11 +11476,10 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, NoMac, iOS (11,1)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (11, 1)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptureSystemPressureState - { + interface AVCaptureSystemPressureState { [Internal] [Export ("level")] NSString _Level { get; } @@ -11437,83 +11494,83 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [DisableDefaultCtor] // crash -> immutable, it can be set but it should be selected from tha available formats (not a custom one) [BaseType (typeof (NSObject))] interface AVCaptureDeviceFormat { [Export ("mediaType", ArgumentSemantic.Copy)] NSString MediaType { get; } - + [Export ("formatDescription", ArgumentSemantic.Copy)] CMFormatDescription FormatDescription { get; } - + [Export ("videoSupportedFrameRateRanges", ArgumentSemantic.Copy)] AVFrameRateRange [] VideoSupportedFrameRateRanges { get; } - [iOS (10,0), Mac (10,15)] + [iOS (10, 0), Mac (10, 15)] [Export ("supportedColorSpaces")] #if NET [BindAs (typeof (AVCaptureColorSpace []))] #endif - NSNumber[] SupportedColorSpaces { get; } + NSNumber [] SupportedColorSpaces { get; } - [iOS (8,0), Mac (10,15)] + [iOS (8, 0), Mac (10, 15)] [Export ("autoFocusSystem")] AVCaptureAutoFocusSystem AutoFocusSystem { get; } [NoMac] [Export ("videoFieldOfView")] float VideoFieldOfView { get; } // defined as 'float' - + [NoMac] [Export ("videoBinned")] bool VideoBinned { [Bind ("isVideoBinned")] get; } - + [NoMac] [Export ("videoStabilizationSupported")] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'IsVideoStabilizationModeSupported (AVCaptureVideoStabilizationMode)' instead.")] bool VideoStabilizationSupported { [Bind ("isVideoStabilizationSupported")] get; } - + [NoMac] [Export ("videoMaxZoomFactor")] nfloat VideoMaxZoomFactor { get; } - + [NoMac] [Export ("videoZoomFactorUpscaleThreshold")] nfloat VideoZoomFactorUpscaleThreshold { get; } - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("minExposureDuration")] CMTime MinExposureDuration { get; } - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("maxExposureDuration")] CMTime MaxExposureDuration { get; } - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("minISO")] float MinISO { get; } /* float, not CGFloat */ - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("maxISO")] float MaxISO { get; } /* float, not CGFloat */ - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("isVideoStabilizationModeSupported:")] bool IsVideoStabilizationModeSupported (AVCaptureVideoStabilizationMode mode); - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("videoHDRSupported")] bool IsVideoHdrSupported { [Bind ("isVideoHDRSupported")] get; } #if !XAMCORE_5_0 - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Obsolete ("Use the 'IsVideoHdrSupported' property instead.")] [Wrap ("IsVideoHdrSupported", IsVirtual = true)] bool videoHDRSupportedVideoHDREnabled { [Bind ("isVideoHDRSupported")] get; } #endif - [iOS (8,0), NoMac] + [iOS (8, 0), NoMac] [Export ("highResolutionStillImageDimensions")] CMVideoDimensions HighResolutionStillImageDimensions { get; } @@ -11527,28 +11584,28 @@ namespace AVFoundation { [iOS (11, 0), NoMac] [Export ("supportedDepthDataFormats")] - AVCaptureDeviceFormat[] SupportedDepthDataFormats { get; } + AVCaptureDeviceFormat [] SupportedDepthDataFormats { get; } [iOS (11, 0), NoMac] [Export ("unsupportedCaptureOutputClasses")] - Class[] UnsupportedCaptureOutputClasses { get; } + Class [] UnsupportedCaptureOutputClasses { get; } // from @interface AVCaptureDeviceFormatDepthDataAdditions (AVCaptureDeviceFormat) [NoWatch, NoTV, NoMac, iOS (12, 0)] [Export ("portraitEffectsMatteStillImageDeliverySupported")] bool PortraitEffectsMatteStillImageDeliverySupported { [Bind ("isPortraitEffectsMatteStillImageDeliverySupported")] get; } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("highestPhotoQualitySupported")] bool HighestPhotoQualitySupported { [Bind ("isHighestPhotoQualitySupported")] get; } // from AVCaptureDeviceFormat_AVCaptureDeviceFormatMultiCamAdditions - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("multiCamSupported")] bool MultiCamSupported { [Bind ("isMultiCamSupported")] get; } [NoWatch, NoTV, NoMac, iOS (13, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("globalToneMappingSupported")] bool GlobalToneMappingSupported { [Bind ("isGlobalToneMappingSupported")] get; } @@ -11560,54 +11617,54 @@ namespace AVFoundation { // from AVCaptureDeviceFormat_AVCaptureDeviceFormatCenterStage [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Export ("centerStageSupported")] bool CenterStageSupported { [Bind ("isCenterStageSupported")] get; } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Export ("videoMinZoomFactorForCenterStage")] nfloat VideoMinZoomFactorForCenterStage { get; } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Export ("videoMaxZoomFactorForCenterStage")] nfloat VideoMaxZoomFactorForCenterStage { get; } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Export ("videoFrameRateRangeForCenterStage")] [NullAllowed] AVFrameRateRange VideoFrameRateRangeForCenterStage { get; } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("highPhotoQualitySupported")] bool HighPhotoQualitySupported { [Bind ("isHighPhotoQualitySupported")] get; } // AVCaptureDeviceFormat_AVCaptureDeviceFormatPortraitEffect - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("portraitEffectSupported")] bool PortraitEffectSupported { [Bind ("isPortraitEffectSupported")] get; } [NullAllowed] - [NoWatch, NoTV, MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("videoFrameRateRangeForPortraitEffect")] AVFrameRateRange VideoFrameRateRangeForPortraitEffect { get; } } delegate void AVCaptureCompletionHandler (CMSampleBuffer imageDataSampleBuffer, NSError error); - [NoWatch, TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] enum AVPlayerRateDidChangeReason { - + [Field ("AVPlayerRateDidChangeReasonSetRateCalled")] SetRateCalled, @@ -11622,7 +11679,7 @@ namespace AVFoundation { } - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] enum AVVideoRange { [Field ("AVVideoRangeSDR")] @@ -11635,8 +11692,8 @@ namespace AVFoundation { PQ, } - - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] + + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] interface AVPlayerRateDidChangeEventArgs { [Export ("AVPlayerRateDidChangeReasonKey")] NSString RateDidChangeStringReason { get; } @@ -11645,30 +11702,30 @@ namespace AVFoundation { NSString RateDidChangeOriginatingParticipant { get; } } - [iOS (10, 0), TV (10,0), Mac (10,12), MacCatalyst (14,5)] + [iOS (10, 0), TV (10, 0), Mac (10, 12), MacCatalyst (14, 5)] enum AVPlayerWaitingReason { - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Field ("AVPlayerWaitingToMinimizeStallsReason")] WaitingToMinimizeStalls, - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Field ("AVPlayerWaitingWhileEvaluatingBufferingRateReason")] WaitingWhileEvaluatingBufferingRate, - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Field ("AVPlayerWaitingWithNoItemToPlayReason")] WaitingWithNoItemToPlay, - [iOS (14, 5), TV (14, 5), Mac (11, 3), MacCatalyst (14,5), Watch (8,0)] + [iOS (14, 5), TV (14, 5), Mac (11, 3), MacCatalyst (14, 5), Watch (8, 0)] [Field ("AVPlayerWaitingDuringInterstitialEventReason")] WaitingDuringInterstitialEvent, - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVPlayerWaitingForCoordinatedPlaybackReason")] WaitingForCoordinatedPlayback, } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayer { @@ -11677,28 +11734,28 @@ namespace AVFoundation { #else [Notification (typeof (AVPlayerRateDidChangeEventArgs))] #endif - [Watch (8, 0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVPlayerRateDidChangeNotification")] NSString RateDidChangeNotification { get; } [Export ("currentItem"), NullAllowed] - AVPlayerItem CurrentItem { get; } + AVPlayerItem CurrentItem { get; } [Export ("rate")] - float Rate { get; set; } // defined as 'float' + float Rate { get; set; } // defined as 'float' // note: not a property in ObjC [Export ("currentTime")] CMTime CurrentTime { get; } [Export ("actionAtItemEnd")] - AVPlayerActionAtItemEnd ActionAtItemEnd { get; set; } + AVPlayerActionAtItemEnd ActionAtItemEnd { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13)] [Deprecated (PlatformName.iOS, 11, 0)] [Deprecated (PlatformName.TvOS, 11, 0)] [Export ("closedCaptionDisplayEnabled")] - bool ClosedCaptionDisplayEnabled { [Bind ("isClosedCaptionDisplayEnabled")] get; set; } + bool ClosedCaptionDisplayEnabled { [Bind ("isClosedCaptionDisplayEnabled")] get; set; } [Static, Export ("playerWithURL:")] AVPlayer FromUrl (NSUrl URL); @@ -11718,16 +11775,16 @@ namespace AVFoundation { [Export ("pause")] void Pause (); - - [iOS (10,0), TV(10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("timeControlStatus")] AVPlayerTimeControlStatus TimeControlStatus { get; } - [iOS (10,0), TV(10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("reasonForWaitingToPlay")] string ReasonForWaitingToPlay { get; } - [iOS (10,0), TV(10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("playImmediatelyAtRate:")] void PlayImmediatelyAtRate (float rate); @@ -11759,19 +11816,19 @@ namespace AVFoundation { [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'AllowsExternalPlayback' instead.")] [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'AllowsExternalPlayback' instead.")] [Export ("allowsAirPlayVideo")] - bool AllowsAirPlayVideo { get; set; } + bool AllowsAirPlayVideo { get; set; } [NoMac] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'ExternalPlaybackActive' instead.")] [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'ExternalPlaybackActive' instead.")] [Export ("airPlayVideoActive")] - bool AirPlayVideoActive { [Bind ("isAirPlayVideoActive")] get; } + bool AirPlayVideoActive { [Bind ("isAirPlayVideoActive")] get; } [NoMac] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'UsesExternalPlaybackWhileExternalScreenIsActive' instead.")] [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'UsesExternalPlaybackWhileExternalScreenIsActive' instead.")] [Export ("usesAirPlayVideoWhileAirPlayScreenIsActive")] - bool UsesAirPlayVideoWhileAirPlayScreenIsActive { get; set; } + bool UsesAirPlayVideoWhileAirPlayScreenIsActive { get; set; } [Export ("seekToTime:completionHandler:")] [Async] @@ -11781,19 +11838,19 @@ namespace AVFoundation { [Async] void Seek (CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletion completion); - [Mac (10,9)] + [Mac (10, 9)] [Export ("seekToDate:")] void Seek (NSDate date); - [Mac (10,9)] // Header says 10.7, but it's a lie + [Mac (10, 9)] // Header says 10.7, but it's a lie [Export ("seekToDate:completionHandler:")] [Async] void Seek (NSDate date, AVCompletion onComplete); - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("automaticallyWaitsToMinimizeStalling")] bool AutomaticallyWaitsToMinimizeStalling { get; set; } - + [Export ("setRate:time:atHostTime:")] void SetRate (float /* defined as 'float' */ rate, CMTime itemTime, CMTime hostClockTime); @@ -11804,7 +11861,7 @@ namespace AVFoundation { [Export ("cancelPendingPrerolls")] void CancelPendingPrerolls (); - [Mac (10,12)] + [Mac (10, 12)] [Export ("outputObscuredDueToInsufficientExternalProtection")] bool OutputObscuredDueToInsufficientExternalProtection { get; } @@ -11816,80 +11873,83 @@ namespace AVFoundation { [Export ("masterClock"), NullAllowed] CMClock MasterClock { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("allowsExternalPlayback")] - bool AllowsExternalPlayback { get; set; } + bool AllowsExternalPlayback { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("externalPlaybackActive")] bool ExternalPlaybackActive { [Bind ("isExternalPlaybackActive")] get; } [NoMac] [Export ("usesExternalPlaybackWhileExternalScreenIsActive")] - bool UsesExternalPlaybackWhileExternalScreenIsActive { get; set; } + bool UsesExternalPlaybackWhileExternalScreenIsActive { get; set; } [Mac (10, 9)] [Protected] [Export ("externalPlaybackVideoGravity", ArgumentSemantic.Copy)] NSString WeakExternalPlaybackVideoGravity { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("volume")] float Volume { get; set; } // defined as 'float' - [iOS (7,0)] + [iOS (7, 0)] [Export ("muted")] bool Muted { [Bind ("isMuted")] get; set; } - [iOS (7,0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("appliesMediaSelectionCriteriaAutomatically")] bool AppliesMediaSelectionCriteriaAutomatically { get; set; } - [iOS (7,0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [return: NullAllowed] [Export ("mediaSelectionCriteriaForMediaCharacteristic:")] AVPlayerMediaSelectionCriteria MediaSelectionCriteriaForMediaCharacteristic (NSString avMediaCharacteristic); - [iOS (7, 0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Export ("setMediaSelectionCriteria:forMediaCharacteristic:")] void SetMediaSelectionCriteria ([NullAllowed] AVPlayerMediaSelectionCriteria criteria, NSString avMediaCharacteristic); - [Mac (10,9), NoiOS, NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (10, 9), NoiOS, NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("audioOutputDeviceUniqueID"), NullAllowed] string AudioOutputDeviceUniqueID { get; set; } #if !NET [Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")] - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVPlayerWaitingToMinimizeStallsReason")] NSString WaitingToMinimizeStallsReason { get; } [Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")] - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVPlayerWaitingWhileEvaluatingBufferingRateReason")] NSString WaitingWhileEvaluatingBufferingRateReason { get; } [Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")] - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVPlayerWaitingWithNoItemToPlayReason")] NSString WaitingWithNoItemToPlayReason { get; } [Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")] [iOS (14, 5), TV (14, 5), Mac (11, 3)] - [MacCatalyst (14,5)] - [Watch (8,0)] + [MacCatalyst (14, 5)] + [Watch (8, 0)] [Field ("AVPlayerWaitingDuringInterstitialEventReason")] NSString WaitingDuringInterstitialEventReason { get; } [Obsolete ("Use 'AVPlayerWaitingReason' enum instead.")] - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVPlayerWaitingForCoordinatedPlaybackReason")] NSString AVPlayerWaitingForCoordinatedPlaybackReason { get; } #endif // !NET // From AVPlayer (AVPlayerPlaybackCapabilities) Category - [TV (11,2), NoWatch, NoMac, iOS (11,2)] + [TV (11, 2), NoWatch, NoMac, iOS (11, 2)] [Static] [Export ("availableHDRModes")] AVPlayerHdrMode AvailableHdrModes { get; } @@ -11901,7 +11961,7 @@ namespace AVFoundation { // From AVPlayer (AVPlayerVideoDecoderGPUSupport) Category - [NoWatch, NoTV, NoiOS, Mac (10,13,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 13, 4), MacCatalyst (15, 0)] [Export ("preferredVideoDecoderGPURegistryID")] ulong PreferredVideoDecoderGpuRegistryId { get; set; } @@ -11911,32 +11971,32 @@ namespace AVFoundation { [Export ("preventsDisplaySleepDuringVideoPlayback")] bool PreventsDisplaySleepDuringVideoPlayback { get; set; } - [TV (13,4), NoWatch, Mac (10,15), iOS (13,4)] + [TV (13, 4), NoWatch, Mac (10, 15), iOS (13, 4)] [Static] [Export ("eligibleForHDRPlayback")] bool EligibleForHdrPlayback { get; } [Notification] - [TV (13,4), NoWatch, Mac (10,15), iOS (13,4)] + [TV (13, 4), NoWatch, Mac (10, 15), iOS (13, 4)] [Field ("AVPlayerEligibleForHDRPlaybackDidChangeNotification")] NSString EligibleForHdrPlaybackDidChangeNotification { get; } - [Watch (8,0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("sourceClock", ArgumentSemantic.Retain)] CMClock SourceClock { get; set; } // AVPlayer_AVPlayerBackgroundSupport - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("audiovisualBackgroundPlaybackPolicy", ArgumentSemantic.Assign)] AVPlayerAudiovisualBackgroundPlaybackPolicy AudiovisualBackgroundPlaybackPolicy { get; set; } // AVPlayer_PlaybackCoordination - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("playbackCoordinator", ArgumentSemantic.Strong)] AVPlayerPlaybackCoordinator PlaybackCoordinator { get; } } - [iOS (7,0), Mac (10, 9), Watch (6,0)] + [iOS (7, 0), Mac (10, 9), Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerMediaSelectionCriteria { [Export ("preferredLanguages"), NullAllowed] @@ -11948,14 +12008,14 @@ namespace AVFoundation { [Export ("initWithPreferredLanguages:preferredMediaCharacteristics:")] NativeHandle Constructor ([NullAllowed] string [] preferredLanguages, [NullAllowed] NSString [] preferredMediaCharacteristics); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("initWithPrincipalMediaCharacteristics:preferredLanguages:preferredMediaCharacteristics:")] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (AVMediaCharacteristics []))]NSString[] principalMediaCharacteristics, [NullAllowed] [BindAs (typeof (AVMediaCharacteristics []))] NSString[] preferredLanguages, [NullAllowed] string[] preferredMediaCharacteristics); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (AVMediaCharacteristics []))] NSString [] principalMediaCharacteristics, [NullAllowed][BindAs (typeof (AVMediaCharacteristics []))] NSString [] preferredLanguages, [NullAllowed] string [] preferredMediaCharacteristics); [BindAs (typeof (AVMediaCharacteristics []))] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("principalMediaCharacteristics")] - NSString[] PrincipalMediaCharacteristics { get; } + NSString [] PrincipalMediaCharacteristics { get; } } [NoWatch] @@ -11963,14 +12023,15 @@ namespace AVFoundation { [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException *** -[AVTextStyleRule init] Not available. Use initWithTextMarkupAttributes:textSelector: instead interface AVTextStyleRule : NSCopying { - [Export ("textMarkupAttributes")][Protected] - NSDictionary WeakTextMarkupAttributes { get; } + [Export ("textMarkupAttributes")] + [Protected] + NSDictionary WeakTextMarkupAttributes { get; } [Wrap ("WeakTextMarkupAttributes")] - CMTextMarkupAttributes TextMarkupAttributes { get; } + CMTextMarkupAttributes TextMarkupAttributes { get; } [Export ("textSelector"), NullAllowed] - string TextSelector { get; } + string TextSelector { get; } [Static] [Export ("propertyListForTextStyleRules:")] @@ -11982,7 +12043,8 @@ namespace AVFoundation { AVTextStyleRule [] FromPropertyList (NSObject plist); [return: NullAllowed] - [Static][Internal] + [Static] + [Internal] [Export ("textStyleRuleWithTextMarkupAttributes:")] AVTextStyleRule FromTextMarkupAttributes (NSDictionary textMarkupAttributes); @@ -11992,7 +12054,8 @@ namespace AVFoundation { AVTextStyleRule FromTextMarkupAttributes (CMTextMarkupAttributes textMarkupAttributes); [return: NullAllowed] - [Static][Internal] + [Static] + [Internal] [Export ("textStyleRuleWithTextMarkupAttributes:textSelector:")] AVTextStyleRule FromTextMarkupAttributes (NSDictionary textMarkupAttributes, [NullAllowed] string textSelector); @@ -12012,31 +12075,34 @@ namespace AVFoundation { [Export ("initWithTextMarkupAttributes:textSelector:")] [Protected] NativeHandle Constructor (NSDictionary textMarkupAttributes, [NullAllowed] string textSelector); - + [Wrap ("this (attributes.GetDictionary ()!, textSelector)")] NativeHandle Constructor (CMTextMarkupAttributes attributes, string textSelector); } - [iOS (9,0)][Mac (10,11)][Watch (6,0)] + [iOS (9, 0)] + [Mac (10, 11)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVMetadataGroup { - - [Export ("items", ArgumentSemantic.Copy)] - AVMetadataItem[] Items { get; } - [iOS (9,3)][Mac (10,12)] - [TV (9,2)] + [Export ("items", ArgumentSemantic.Copy)] + AVMetadataItem [] Items { get; } + + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] [NullAllowed, Export ("classifyingLabel")] string ClassifyingLabel { get; } - [iOS (9,3)] - [TV (9,2)] - [Mac (10,12)] + [iOS (9, 3)] + [TV (9, 2)] + [Mac (10, 12)] [NullAllowed, Export ("uniqueID")] string UniqueID { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVMetadataGroup))] interface AVTimedMetadataGroup : NSMutableCopying { [Export ("timeRange")] @@ -12049,22 +12115,24 @@ namespace AVFoundation { NativeHandle Constructor (AVMetadataItem [] items, CMTimeRange timeRange); [return: NullAllowed] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("copyFormatDescription")] CMFormatDescription CopyFormatDescription (); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("initWithSampleBuffer:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVTimedMetadataGroup))] interface AVMutableTimedMetadataGroup { [Export ("items", ArgumentSemantic.Copy)] [Override] - AVMetadataItem [] Items { get; set; } + AVMetadataItem [] Items { get; set; } [Export ("timeRange")] [Override] @@ -12076,74 +12144,74 @@ namespace AVFoundation { NSError Error { get; } } - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] - interface AVPlayerItemTimeJumpedEventArgs { + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] + interface AVPlayerItemTimeJumpedEventArgs { [Export ("AVPlayerItemTimeJumpedOriginatingParticipantKey")] NSString OriginatingParticipant { get; } } - - [Watch (6,0)] + + [Watch (6, 0)] [BaseType (typeof (NSObject))] // 'init' returns NIL [DisableDefaultCtor] interface AVPlayerItem : NSCopying { [Export ("status")] - AVPlayerItemStatus Status { get; } + AVPlayerItemStatus Status { get; } [Export ("asset")] - AVAsset Asset { get; } + AVAsset Asset { get; } [Export ("tracks")] - AVPlayerItemTrack [] Tracks { get; } + AVPlayerItemTrack [] Tracks { get; } [Export ("presentationSize")] - CGSize PresentationSize { get; } + CGSize PresentationSize { get; } [Export ("forwardPlaybackEndTime")] - CMTime ForwardPlaybackEndTime { get; set; } + CMTime ForwardPlaybackEndTime { get; set; } [Export ("reversePlaybackEndTime")] - CMTime ReversePlaybackEndTime { get; set; } + CMTime ReversePlaybackEndTime { get; set; } [Export ("audioMix", ArgumentSemantic.Copy), NullAllowed] - AVAudioMix AudioMix { get; set; } + AVAudioMix AudioMix { get; set; } [NoWatch] [Export ("videoComposition", ArgumentSemantic.Copy), NullAllowed] - AVVideoComposition VideoComposition { get; set; } + AVVideoComposition VideoComposition { get; set; } [Export ("currentTime")] CMTime CurrentTime { get; } [Export ("playbackLikelyToKeepUp")] - bool PlaybackLikelyToKeepUp { [Bind ("isPlaybackLikelyToKeepUp")] get; } + bool PlaybackLikelyToKeepUp { [Bind ("isPlaybackLikelyToKeepUp")] get; } [Export ("playbackBufferFull")] - bool PlaybackBufferFull { [Bind ("isPlaybackBufferFull")] get; } + bool PlaybackBufferFull { [Bind ("isPlaybackBufferFull")] get; } [Export ("playbackBufferEmpty")] - bool PlaybackBufferEmpty { [Bind ("isPlaybackBufferEmpty")] get; } + bool PlaybackBufferEmpty { [Bind ("isPlaybackBufferEmpty")] get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("canUseNetworkResourcesForLiveStreamingWhilePaused", ArgumentSemantic.Assign)] bool CanUseNetworkResourcesForLiveStreamingWhilePaused { get; set; } - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("preferredForwardBufferDuration")] double PreferredForwardBufferDuration { get; set; } [Export ("seekableTimeRanges")] - NSValue [] SeekableTimeRanges { get; } + NSValue [] SeekableTimeRanges { get; } [Export ("loadedTimeRanges")] - NSValue [] LoadedTimeRanges { get; } + NSValue [] LoadedTimeRanges { get; } [NoWatch] - [Deprecated (PlatformName.iOS, 13,0, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the class 'AVPlayerItemMetadataOutput' instead to get the time metadata info.")] [Export ("timedMetadata"), NullAllowed] - NSObject [] TimedMetadata { get; } + NSObject [] TimedMetadata { get; } [Static, Export ("playerItemWithURL:")] AVPlayerItem FromUrl (NSUrl URL); @@ -12172,7 +12240,7 @@ namespace AVFoundation { [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'Seek (CMTime, AVCompletion)' instead.")] [Export ("seekToTime:")] void Seek (CMTime time); - + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'Seek (CMTime, CMTime, CMTime, AVCompletion)' instead.")] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'Seek (CMTime, CMTime, CMTime, AVCompletion)' instead.")] [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'Seek (CMTime, CMTime, CMTime, AVCompletion)' instead.")] @@ -12206,7 +12274,7 @@ namespace AVFoundation { CMTime Duration { get; } [Export ("canPlayFastReverse")] - bool CanPlayFastReverse { get; } + bool CanPlayFastReverse { get; } [Export ("canPlayFastForward")] bool CanPlayFastForward { get; } @@ -12240,27 +12308,27 @@ namespace AVFoundation { [Export ("selectedMediaOptionInMediaSelectionGroup:")] AVMediaSelectionOption SelectedMediaOption (AVMediaSelectionGroup inMediaSelectionGroup); - [iOS (9,0), MacAttribute (10,11)] + [iOS (9, 0), MacAttribute (10, 11)] [Export ("currentMediaSelection")] AVMediaSelection CurrentMediaSelection { get; } [Export ("canPlaySlowForward")] - bool CanPlaySlowForward { get; } + bool CanPlaySlowForward { get; } [Export ("canPlayReverse")] - bool CanPlayReverse { get; } + bool CanPlayReverse { get; } [Export ("canPlaySlowReverse")] - bool CanPlaySlowReverse { get; } + bool CanPlaySlowReverse { get; } [Export ("canStepForward")] - bool CanStepForward { get; } + bool CanStepForward { get; } [Export ("canStepBackward")] - bool CanStepBackward { get; } - + bool CanStepBackward { get; } + [Export ("outputs")] - AVPlayerItemOutput [] Outputs { get; } + AVPlayerItemOutput [] Outputs { get; } [Export ("addOutput:")] [PostGet ("Outputs")] @@ -12271,7 +12339,7 @@ namespace AVFoundation { void RemoveOutput (AVPlayerItemOutput output); [Export ("timebase"), NullAllowed] - CMTimebase Timebase { get; } + CMTimebase Timebase { get; } [Mac (10, 9)] [Export ("seekToDate:completionHandler:")] @@ -12280,94 +12348,106 @@ namespace AVFoundation { [Mac (10, 9)] [Export ("seekingWaitsForVideoCompositionRendering")] - bool SeekingWaitsForVideoCompositionRendering { get; set; } + bool SeekingWaitsForVideoCompositionRendering { get; set; } [Mac (10, 9), NoWatch] [Export ("textStyleRules", ArgumentSemantic.Copy), NullAllowed] - AVTextStyleRule [] TextStyleRules { get; set; } + AVTextStyleRule [] TextStyleRules { get; set; } [Mac (10, 9)] [Field ("AVPlayerItemPlaybackStalledNotification")] [Notification] NSString PlaybackStalledNotification { get; } - + [Mac (10, 9)] [Field ("AVPlayerItemNewAccessLogEntryNotification")] [Notification] NSString NewAccessLogEntryNotification { get; } - + [Mac (10, 9)] [Field ("AVPlayerItemNewErrorLogEntryNotification")] [Notification] NSString NewErrorLogEntryNotification { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Static, Export ("playerItemWithAsset:automaticallyLoadedAssetKeys:")] AVPlayerItem FromAsset ([NullAllowed] AVAsset asset, [NullAllowed] NSString [] automaticallyLoadedAssetKeys); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [DesignatedInitializer] [Export ("initWithAsset:automaticallyLoadedAssetKeys:")] NativeHandle Constructor (AVAsset asset, [NullAllowed] params NSString [] automaticallyLoadedAssetKeys); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("automaticallyLoadedAssetKeys", ArgumentSemantic.Copy)] NSString [] AutomaticallyLoadedAssetKeys { get; } - [iOS (7,0), Mac (10, 9), NoWatch] + [iOS (7, 0), Mac (10, 9), NoWatch] [Export ("customVideoCompositor", ArgumentSemantic.Copy), NullAllowed] [Protocolize] AVVideoCompositing CustomVideoCompositor { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("audioTimePitchAlgorithm", ArgumentSemantic.Copy)] // DOC: Mention this is an AVAudioTimePitch constant NSString AudioTimePitchAlgorithm { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("selectMediaOptionAutomaticallyInMediaSelectionGroup:")] void SelectMediaOptionAutomaticallyInMediaSelectionGroup (AVMediaSelectionGroup mediaSelectionGroup); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("preferredPeakBitRate")] double PreferredPeakBitRate { get; set; } - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("preferredMaximumResolution", ArgumentSemantic.Assign)] CGSize PreferredMaximumResolution { get; set; } -#region AVPlayerViewControllerAdditions - [NoiOS][NoMac][NoWatch] - [TV (9,0)] + #region AVPlayerViewControllerAdditions + [NoiOS] + [NoMac] + [NoWatch] + [TV (9, 0)] [Export ("navigationMarkerGroups", ArgumentSemantic.Copy)] - AVNavigationMarkersGroup[] NavigationMarkerGroups { get; set; } + AVNavigationMarkersGroup [] NavigationMarkerGroups { get; set; } - [NoMac][NoWatch] - [TV (9,0)] - [iOS (13,0)] + [NoMac] + [NoWatch] + [TV (9, 0)] + [iOS (13, 0)] [Export ("externalMetadata", ArgumentSemantic.Copy)] - AVMetadataItem[] ExternalMetadata { get; set; } + AVMetadataItem [] ExternalMetadata { get; set; } - [iOS (16,0)][NoMacCatalyst][NoMac][NoWatch] - [TV (9,0)] + [iOS (16, 0)] + [NoMacCatalyst] + [NoMac] + [NoWatch] + [TV (9, 0)] [Export ("interstitialTimeRanges", ArgumentSemantic.Copy)] - AVInterstitialTimeRange[] InterstitialTimeRanges { get; set; } -#endregion + AVInterstitialTimeRange [] InterstitialTimeRanges { get; set; } + #endregion - [iOS (9,3)][Mac (10,12)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] [Export ("addMediaDataCollector:")] void AddMediaDataCollector (AVPlayerItemMediaDataCollector collector); - - [iOS (9,3)][Mac (10,12)] - [TV (9,2)] + + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] [Export ("removeMediaDataCollector:")] void RemoveMediaDataCollector (AVPlayerItemMediaDataCollector collector); - - [iOS (9,3)][Mac (10,12)] - [TV (9,2)] + + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] [Export ("mediaDataCollectors")] - AVPlayerItemMediaDataCollector[] MediaDataCollectors { get; } + AVPlayerItemMediaDataCollector [] MediaDataCollectors { get; } [NoiOS, TV (10, 0), NoWatch, NoMac] [NullAllowed, Export ("nextContentProposal", ArgumentSemantic.Assign)] @@ -12379,34 +12459,34 @@ namespace AVFoundation { NSString _VideoApertureMode { get; set; } [Notification] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVPlayerItemRecommendedTimeOffsetFromLiveDidChangeNotification")] NSString RecommendedTimeOffsetFromLiveDidChangeNotification { get; } [Notification] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVPlayerItemMediaSelectionDidChangeNotification")] NSString MediaSelectionDidChangeNotification { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("configuredTimeOffsetFromLive", ArgumentSemantic.Assign)] CMTime ConfiguredTimeOffsetFromLive { get; set; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("recommendedTimeOffsetFromLive")] CMTime RecommendedTimeOffsetFromLive { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("automaticallyPreservesTimeOffsetFromLive")] bool AutomaticallyPreservesTimeOffsetFromLive { get; set; } - [Deprecated (PlatformName.iOS, 14, 0, message : "Use 'AllowedAudioSpatializationFormats' instead.")] - [Deprecated (PlatformName.MacOSX, 11, 0, message : "Use 'AllowedAudioSpatializationFormats' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'AllowedAudioSpatializationFormats' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'AllowedAudioSpatializationFormats' instead.")] [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] [Export ("audioSpatializationAllowed")] bool AudioSpatializationAllowed { [Bind ("isAudioSpatializationAllowed")] get; set; } - [NoWatch, TV (15,0), Mac (11, 0), iOS (14, 0)] + [NoWatch, TV (15, 0), Mac (11, 0), iOS (14, 0)] [Export ("allowedAudioSpatializationFormats", ArgumentSemantic.Assign)] AVAudioSpatializationFormats AllowedAudioSpatializationFormats { get; set; } @@ -12415,25 +12495,26 @@ namespace AVFoundation { bool StartsOnFirstEligibleVariant { get; set; } [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] - [MacCatalyst (14,5)] + [MacCatalyst (14, 5)] [Export ("variantPreferences", ArgumentSemantic.Assign)] AVVariantPreferences VariantPreferences { get; set; } - [iOS (14,1)] - [TV (14,2)][Mac (11,0)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] [NoWatch] [Export ("appliesPerFrameHDRDisplayMetadata")] bool AppliesPerFrameHdrDisplayMetadata { get; set; } - [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("preferredMaximumResolutionForExpensiveNetworks", ArgumentSemantic.Assign)] CGSize PreferredMaximumResolutionForExpensiveNetworks { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("preferredPeakBitRateForExpensiveNetworks")] double PreferredPeakBitRateForExpensiveNetworks { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("copy")] [return: Release] NSObject Copy (); @@ -12447,17 +12528,18 @@ namespace AVFoundation { NSDictionary WeakNowPlayingInfo { get; set; } } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Flags] [Native] - public enum AVVariantPreferences : ulong - { + public enum AVVariantPreferences : ulong { None = 0, ScalabilityToLosslessAudio = 1 << 0, } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Category] [BaseType (typeof (AVPlayerItem))] interface AVPlayerItem_AVPlayerItemProtectedContent { @@ -12483,9 +12565,8 @@ namespace AVFoundation { [NoWatch] [TV (14, 5), Mac (11, 3), iOS (14, 5)] [Category] - [BaseType (typeof(AVPlayerItem))] - interface AVPlayerItem_AVPlayerInterstitialSupport - { + [BaseType (typeof (AVPlayerItem))] + interface AVPlayerItem_AVPlayerInterstitialSupport { [Export ("automaticallyHandlesInterstitialEvents")] bool GetAutomaticallyHandlesInterstitialEvents (); @@ -12498,19 +12579,19 @@ namespace AVFoundation { } [NoWatch, NoMac, NoiOS] - [TV (13,0)] + [TV (13, 0)] [Category] [BaseType (typeof (AVPlayerItem))] interface AVPlayerItem_AVPlaybackRestrictions { [Async] [Export ("requestPlaybackRestrictionsAuthorization:")] void RequestPlaybackRestrictionsAuthorization (Action completion); - + [Export ("cancelPlaybackRestrictionsAuthorizationRequest")] void CancelPlaybackRestrictionsAuthorizationRequest (); } - - [Watch (6,0)] + + [Watch (6, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** initialization method -init cannot be sent to an abstract object of class AVPlayerItemOutput: Create a concrete instance! [DisableDefaultCtor] @@ -12524,22 +12605,25 @@ namespace AVFoundation { [Export ("suppressesPlayerRendering")] bool SuppressesPlayerRendering { get; set; } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [Export ("itemTimeForCVTimeStamp:")] CMTime GetItemTime (CVTimeStamp timestamp); } - [Watch (6,0)] - [iOS (9,3)] - [TV (9,2)] - [BaseType (typeof(NSObject))] + [Watch (6, 0)] + [iOS (9, 3)] + [TV (9, 2)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // initialization method -init cannot be sent to an abstract object of class AVPlayerItemMediaDataCollector: Create a concrete instance! [Abstract] - interface AVPlayerItemMediaDataCollector - { + interface AVPlayerItemMediaDataCollector { } - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [BaseType (typeof (AVPlayerItemOutput))] interface AVPlayerItemMetadataOutput { @@ -12566,18 +12650,20 @@ namespace AVFoundation { } [BaseType (typeof (NSObject))] - [iOS (8,0)][Mac (10,10)][Watch (6,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Watch (6, 0)] [Protocol, Model] interface AVPlayerItemMetadataOutputPushDelegate : AVPlayerItemOutputPushDelegate { - [iOS (8,0)] + [iOS (8, 0)] [Export ("metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:")] void DidOutputTimedMetadataGroups (AVPlayerItemMetadataOutput output, AVTimedMetadataGroup [] groups, [NullAllowed] AVPlayerItemTrack track); } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [NoWatch] [Static] interface AVVideoColorPrimaries { @@ -12594,7 +12680,7 @@ namespace AVFoundation { [Field ("AVVideoColorPrimaries_P3_D65")] NSString P3_D65 { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("AVVideoColorPrimaries_ITU_R_2020")] NSString Itu_R_2020 { get; } } @@ -12606,15 +12692,15 @@ namespace AVFoundation { [Field ("AVVideoTransferFunction_ITU_R_709_2")] NSString AVVideoTransferFunction_Itu_R_709_2 { get; } - [NoiOS, NoTV, Mac (10,12), NoMacCatalyst] + [NoiOS, NoTV, Mac (10, 12), NoMacCatalyst] [Field ("AVVideoTransferFunction_SMPTE_240M_1995")] NSString AVVideoTransferFunction_Smpte_240M_1995 { get; } } - + [NoWatch] [Static] interface AVVideoYCbCrMatrix { - + [iOS (10, 0)] [Field ("AVVideoYCbCrMatrix_ITU_R_709_2")] NSString Itu_R_709_2 { get; } @@ -12623,21 +12709,21 @@ namespace AVFoundation { [Field ("AVVideoYCbCrMatrix_ITU_R_601_4")] NSString Itu_R_601_4 { get; } - [NoiOS, NoTV, Mac (10,12), NoMacCatalyst] + [NoiOS, NoTV, Mac (10, 12), NoMacCatalyst] [Field ("AVVideoYCbCrMatrix_SMPTE_240M_1995")] NSString Smpte_240M_1995 { get; } - [iOS (11, 0), TV (11, 0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("AVVideoYCbCrMatrix_ITU_R_2020")] NSString Itu_R_2020 { get; } } - + [NoWatch] [StrongDictionary ("AVColorPropertiesKeys")] interface AVColorProperties { NSString AVVideoColorPrimaries { get; set; } - NSString AVVideoTransferFunction { get; set; } + NSString AVVideoTransferFunction { get; set; } NSString AVVideoYCbCrMatrix { get; } } @@ -12657,7 +12743,7 @@ namespace AVFoundation { [Field ("AVVideoYCbCrMatrixKey")] NSString AVVideoYCbCrMatrixKey { get; } } - + [NoWatch] [StrongDictionary ("AVCleanAperturePropertiesKeys")] interface AVCleanApertureProperties { @@ -12666,7 +12752,7 @@ namespace AVFoundation { NSNumber HorizontalOffset { get; set; } NSNumber VerticalOffset { get; set; } } - + [NoWatch] [Static] [Internal] @@ -12697,7 +12783,7 @@ namespace AVFoundation { interface AVPixelAspectRatioPropertiesKeys { [Field ("AVVideoPixelAspectRatioHorizontalSpacingKey")] NSString PixelAspectRatioHorizontalSpacingKey { get; } - + [Field ("AVVideoPixelAspectRatioVerticalSpacingKey")] NSString PixelAspectRatioVerticalSpacingKey { get; } } @@ -12715,7 +12801,7 @@ namespace AVFoundation { interface AVCompressionPropertiesKeys { [Field ("AVVideoCleanApertureKey")] NSString CleanApertureKey { get; } - + [Field ("AVVideoPixelAspectRatioKey")] NSString PixelAspectRatioKey { get; } } @@ -12724,14 +12810,15 @@ namespace AVFoundation { [StrongDictionary ("AVPlayerItemVideoOutputSettingsKeys")] interface AVPlayerItemVideoOutputSettings { - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] AVColorProperties ColorProperties { get; set; } AVCompressionProperties CompressionProperties { get; set; } - [iOS (10,0)] - [TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] bool AllowWideColor { get; set; } NSString Codec { get; set; } @@ -12744,28 +12831,28 @@ namespace AVFoundation { [Static] [Internal] interface AVPlayerItemVideoOutputSettingsKeys { - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("AVVideoColorPropertiesKey")] NSString ColorPropertiesKey { get; } - + [Field ("AVVideoCompressionPropertiesKey")] NSString CompressionPropertiesKey { get; } - - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Field ("AVVideoAllowWideColorKey")] NSString AllowWideColorKey { get; } - + [Field ("AVVideoCodecKey")] NSString CodecKey { get; } - + [Field ("AVVideoScalingModeKey")] NSString ScalingModeKey { get; } - + [Field ("AVVideoWidthKey")] NSString WidthKey { get; } - + [Field ("AVVideoHeightKey")] NSString HeightKey { get; } } @@ -12774,15 +12861,15 @@ namespace AVFoundation { [BaseType (typeof (AVPlayerItemOutput))] interface AVPlayerItemVideoOutput { [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] - NSObject WeakDelegate { get; } - + NSObject WeakDelegate { get; } + [Wrap ("WeakDelegate")] [NullAllowed] [Protocolize] - AVPlayerItemOutputPullDelegate Delegate { get; } + AVPlayerItemOutputPullDelegate Delegate { get; } [Export ("delegateQueue"), NullAllowed] - DispatchQueue DelegateQueue { get; } + DispatchQueue DelegateQueue { get; } [Internal] [Export ("initWithPixelBufferAttributes:")] @@ -12795,9 +12882,9 @@ namespace AVFoundation { [DesignatedInitializer] [Wrap ("this (attributes.GetDictionary (), AVPlayerItemVideoOutput.InitMode.PixelAttributes)")] NativeHandle Constructor (CVPixelBufferAttributes attributes); - + [DesignatedInitializer] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Wrap ("this (settings.GetDictionary (), AVPlayerItemVideoOutput.InitMode.OutputSettings)")] NativeHandle Constructor (AVPlayerItemVideoOutputSettings settings); @@ -12809,13 +12896,13 @@ namespace AVFoundation { IntPtr WeakCopyPixelBuffer (CMTime itemTime, ref CMTime outItemTimeForDisplay); [Export ("setDelegate:queue:")] - void SetDelegate ([Protocolize] [NullAllowed] AVPlayerItemOutputPullDelegate delegateClass, [NullAllowed] DispatchQueue delegateQueue); + void SetDelegate ([Protocolize][NullAllowed] AVPlayerItemOutputPullDelegate delegateClass, [NullAllowed] DispatchQueue delegateQueue); [Export ("requestNotificationOfMediaDataChangeWithAdvanceInterval:")] void RequestNotificationOfMediaDataChange (double advanceInterval); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -12827,8 +12914,8 @@ namespace AVFoundation { void OutputSequenceWasFlushed (AVPlayerItemOutput output); } - [Watch (6,0)] - [iOS (7,0)] + [Watch (6, 0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -12837,29 +12924,29 @@ namespace AVFoundation { void OutputSequenceWasFlushed (AVPlayerItemOutput output); } - [iOS (7,0), Watch (6,0)] + [iOS (7, 0), Watch (6, 0)] [BaseType (typeof (AVPlayerItemOutputPushDelegate))] [Model] [Protocol] - interface AVPlayerItemLegibleOutputPushDelegate { + interface AVPlayerItemLegibleOutputPushDelegate { [NoWatch] [Export ("legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:")] - void DidOutputAttributedStrings (AVPlayerItemLegibleOutput output, NSAttributedString [] strings, CMSampleBuffer [] nativeSamples, CMTime itemTime); + void DidOutputAttributedStrings (AVPlayerItemLegibleOutput output, NSAttributedString [] strings, CMSampleBuffer [] nativeSamples, CMTime itemTime); } - [iOS (7,0), Mac (10, 9), NoWatch] + [iOS (7, 0), Mac (10, 9), NoWatch] [BaseType (typeof (AVPlayerItemOutput))] interface AVPlayerItemLegibleOutput { [Export ("initWithMediaSubtypesForNativeRepresentation:")] NativeHandle Constructor (NSNumber [] subtypesFourCCcodes); - + [Export ("setDelegate:queue:")] void SetDelegate ([Protocolize][NullAllowed] AVPlayerItemLegibleOutputPushDelegate delegateObject, [NullAllowed] DispatchQueue delegateQueue); - + [NullAllowed, Export ("delegate", ArgumentSemantic.Copy)] [Protocolize] AVPlayerItemLegibleOutputPushDelegate Delegate { get; } - + [NullAllowed, Export ("delegateQueue", ArgumentSemantic.Copy)] DispatchQueue DelegateQueue { get; } @@ -12876,13 +12963,13 @@ namespace AVFoundation { [Field ("AVPlayerItemLegibleOutputTextStylingResolutionSourceAndRulesOnly")] NSString TextStylingResolutionSourceAndRulesOnly { get; } - + } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerItemAccessLog : NSCopying { - + [Export ("events")] AVPlayerItemAccessLogEvent [] Events { get; } @@ -12893,7 +12980,7 @@ namespace AVFoundation { NSData ExtendedLogData { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerItemErrorLog : NSCopying { [Export ("events")] @@ -12905,13 +12992,13 @@ namespace AVFoundation { [Export ("extendedLogData"), NullAllowed] NSData ExtendedLogData { get; } } - - [Watch (6,0)] + + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerItemAccessLogEvent : NSCopying { - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'NumberOfMediaRequests' instead.")] - [Deprecated (PlatformName.TvOS, 9, 0, message : "Use 'NumberOfMediaRequests' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'NumberOfMediaRequests' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'NumberOfMediaRequests' instead.")] + [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'NumberOfMediaRequests' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'NumberOfMediaRequests' instead.")] [Export ("numberOfSegmentsDownloaded")] nint SegmentedDownloadedCount { get; } @@ -12948,19 +13035,19 @@ namespace AVFoundation { [Export ("observedBitrate")] double ObservedBitrate { get; } - [iOS (8,0), TV (9,0), Mac (10,10)] + [iOS (8, 0), TV (9, 0), Mac (10, 10)] [Export ("indicatedBitrate")] double IndicatedBitrate { get; } - [iOS (10, 0), TV (10,0), Mac (10, 12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("indicatedAverageBitrate")] double IndicatedAverageBitrate { get; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("averageVideoBitrate")] double AverageVideoBitrate { get; } - [iOS (10, 0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("averageAudioBitrate")] double AverageAudioBitrate { get; } @@ -12971,55 +13058,55 @@ namespace AVFoundation { [Export ("numberOfMediaRequests")] nint NumberOfMediaRequests { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("startupTime")] double StartupTime { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("downloadOverdue")] nint DownloadOverdue { get; } - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("observedMaxBitrate")] double ObservedMaxBitrate { get; } - + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'ObservedBitrateStandardDeviation' instead.")] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("observedMinBitrate")] double ObservedMinBitrate { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("observedBitrateStandardDeviation")] double ObservedBitrateStandardDeviation { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("playbackType", ArgumentSemantic.Copy), NullAllowed] string PlaybackType { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("mediaRequestsWWAN")] nint MediaRequestsWWAN { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("switchBitrate")] double SwitchBitrate { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("transferDuration")] double TransferDuration { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerItemErrorLogEvent : NSCopying { [Export ("date"), NullAllowed] @@ -13044,26 +13131,24 @@ namespace AVFoundation { string ErrorComment { get; } } - interface IAVPlayerItemMetadataCollectorPushDelegate {} + interface IAVPlayerItemMetadataCollectorPushDelegate { } - [Watch (6,0)] + [Watch (6, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVPlayerItemMetadataCollectorPushDelegate - { + [BaseType (typeof (NSObject))] + interface AVPlayerItemMetadataCollectorPushDelegate { [Abstract] [Export ("metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:")] - void DidCollectDateRange (AVPlayerItemMetadataCollector metadataCollector, AVDateRangeMetadataGroup[] metadataGroups, NSIndexSet indexesOfNewGroups, NSIndexSet indexesOfModifiedGroups); + void DidCollectDateRange (AVPlayerItemMetadataCollector metadataCollector, AVDateRangeMetadataGroup [] metadataGroups, NSIndexSet indexesOfNewGroups, NSIndexSet indexesOfModifiedGroups); } - [Watch (6,0)] - [iOS (9,3), Mac (10,12)] - [TV (9,2)] - [BaseType (typeof(AVPlayerItemMediaDataCollector))] - interface AVPlayerItemMetadataCollector - { + [Watch (6, 0)] + [iOS (9, 3), Mac (10, 12)] + [TV (9, 2)] + [BaseType (typeof (AVPlayerItemMediaDataCollector))] + interface AVPlayerItemMetadataCollector { [Export ("initWithIdentifiers:classifyingLabels:")] - NativeHandle Constructor ([NullAllowed] string[] identifiers, [NullAllowed] string[] classifyingLabels); + NativeHandle Constructor ([NullAllowed] string [] identifiers, [NullAllowed] string [] classifyingLabels); [Export ("setDelegate:queue:")] void SetDelegate ([NullAllowed] IAVPlayerItemMetadataCollectorPushDelegate pushDelegate, [NullAllowed] DispatchQueue delegateQueue); @@ -13084,12 +13169,13 @@ namespace AVFoundation { interface AVPlayerLayer { [NullAllowed] // by default this property is null [Export ("player", ArgumentSemantic.Retain)] - AVPlayer Player { get; set; } + AVPlayer Player { get; set; } [Static, Export ("playerLayerWithPlayer:")] AVPlayerLayer FromPlayer ([NullAllowed] AVPlayer player); - [Export ("videoGravity", ArgumentSemantic.Copy)][Protected] + [Export ("videoGravity", ArgumentSemantic.Copy)] + [Protected] NSString WeakVideoGravity { get; set; } [Field ("AVLayerVideoGravityResizeAspect")] @@ -13104,21 +13190,20 @@ namespace AVFoundation { [Export ("isReadyForDisplay")] bool ReadyForDisplay { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("videoRect")] - CGRect VideoRect { get; } + CGRect VideoRect { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("pixelBufferAttributes", ArgumentSemantic.Copy), NullAllowed] NSDictionary WeakPixelBufferAttributes { get; set; } } [NoWatch] - [iOS (10,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPlayerLooper - { + interface AVPlayerLooper { [Static] [Export ("playerLooperWithPlayer:templateItem:timeRange:")] AVPlayerLooper FromPlayer (AVQueuePlayer player, AVPlayerItem itemToLoop, CMTimeRange loopRange); @@ -13138,7 +13223,7 @@ namespace AVFoundation { nint LoopCount { get; } [Export ("loopingPlayerItems")] - AVPlayerItem[] LoopingPlayerItems { get; } + AVPlayerItem [] LoopingPlayerItems { get; } [Export ("status")] AVPlayerLooperStatus Status { get; } @@ -13147,49 +13232,51 @@ namespace AVFoundation { NSError Error { get; } } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVPlayerItemTrack { [Export ("enabled", ArgumentSemantic.Assign)] - bool Enabled { [Bind ("isEnabled")] get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [NullAllowed, Export ("assetTrack")] AVAssetTrack AssetTrack { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("currentVideoFrameRate")] - float CurrentVideoFrameRate { get; } // defined as 'float' + float CurrentVideoFrameRate { get; } // defined as 'float' - [NoiOS][NoTV][NoWatch] - [Mac (10,10)] + [NoiOS] + [NoTV] + [NoWatch] + [Mac (10, 10)] [Field ("AVPlayerItemTrackVideoFieldModeDeinterlaceFields")] NSString VideoFieldModeDeinterlaceFields { get; } - [NoiOS][NoTV][NoWatch] - [Mac (10,10)] + [NoiOS] + [NoTV] + [NoWatch] + [Mac (10, 10)] [Export ("videoFieldMode"), NullAllowed] string VideoFieldMode { get; set; } } - [iOS (14,5), Mac (11,3), TV (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5), Mac (11, 3), TV (14, 5)] + [MacCatalyst (14, 5)] [Flags] [Native] - enum AVPlayerInterstitialEventRestrictions : ulong - { + enum AVPlayerInterstitialEventRestrictions : ulong { None = 0, ConstrainsSeekingForwardInPrimaryContent = (1 << 0), RequiresPlaybackAtPreferredRateForAdvancement = (1 << 2), DefaultPolicy = None, } - [TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] - [Watch (7,4)] - [BaseType (typeof(NSObject))] + [TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] + [Watch (7, 4)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPlayerInterstitialEvent - { + interface AVPlayerInterstitialEvent { // Apple changed the API signature ?!? // [Static] // [Export ("interstitialEventWithPrimaryItem:time:templateItems:restrictions:resumptionOffset:")] @@ -13210,15 +13297,15 @@ namespace AVFoundation { // [Export ("playerInterstitialEventWithPrimaryItem:date:interstitialTemplateItems:restrictions:resumptionOffset:")] // AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, NSDate date, AVPlayerItem[] interstitialTemplateItems, AVPlayerInterstitialEventRestrictions restrictions, CMTime resumptionOffset); - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] [Static] [Export ("interstitialEventWithPrimaryItem:identifier:date:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:")] - AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, [NullAllowed] string identifier, NSDate date, AVPlayerItem[] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CMTime resumptionOffset, CMTime playoutLimit, [NullAllowed] NSDictionary userDefinedAttributes); + AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, [NullAllowed] string identifier, NSDate date, AVPlayerItem [] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CMTime resumptionOffset, CMTime playoutLimit, [NullAllowed] NSDictionary userDefinedAttributes); - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] [Static] [Export ("interstitialEventWithPrimaryItem:identifier:time:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:")] - AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, [NullAllowed] string identifier, CMTime time, AVPlayerItem[] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CMTime resumptionOffset, CMTime playoutLimit, [NullAllowed] NSDictionary userDefinedAttributes); + AVPlayerInterstitialEvent GetPlayerInterstitialEvent (AVPlayerItem primaryItem, [NullAllowed] string identifier, CMTime time, AVPlayerItem [] templateItems, AVPlayerInterstitialEventRestrictions restrictions, CMTime resumptionOffset, CMTime playoutLimit, [NullAllowed] NSDictionary userDefinedAttributes); [NullAllowed, Export ("primaryItem", ArgumentSemantic.Weak)] AVPlayerItem PrimaryItem { get; } @@ -13230,7 +13317,7 @@ namespace AVFoundation { NSDate Date { get; } [Export ("templateItems")] - AVPlayerItem[] TemplateItems { get; } + AVPlayerItem [] TemplateItems { get; } [Export ("restrictions")] AVPlayerInterstitialEventRestrictions Restrictions { get; } @@ -13238,33 +13325,33 @@ namespace AVFoundation { [Export ("resumptionOffset")] CMTime ResumptionOffset { get; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] [Export ("identifier")] string Identifier { get; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] [Export ("playoutLimit")] CMTime PlayoutLimit { get; } // not a strong dictionary: // Storage for attributes defined by the client or the content vendor. Attribute names should begin with X- for uniformity with server insertion. - [iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), Watch (8, 0)] [Export ("userDefinedAttributes")] NSDictionary UserDefinedAttributes { get; } } [DisableDefaultCtor] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] interface AVPlayerInterstitialEventMonitor { [Notification] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVPlayerInterstitialEventMonitorEventsDidChangeNotification")] NSString EventsDidChangeNotification { get; } [Notification] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("AVPlayerInterstitialEventMonitorCurrentEventDidChangeNotification")] NSString CurrentEventDidChangeNotification { get; } @@ -13283,19 +13370,18 @@ namespace AVFoundation { AVQueuePlayer InterstitialPlayer { get; } [Export ("events")] - AVPlayerInterstitialEvent[] Events { get; } + AVPlayerInterstitialEvent [] Events { get; } [NullAllowed, Export ("currentEvent")] AVPlayerInterstitialEvent CurrentEvent { get; } } [DisableDefaultCtor] - [TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] - [Watch (7,4)] + [TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] + [Watch (7, 4)] [BaseType (typeof (AVPlayerInterstitialEventMonitor))] - interface AVPlayerInterstitialEventController - { + interface AVPlayerInterstitialEventController { [Static] [Export ("interstitialEventControllerWithPrimaryPlayer:")] AVPlayerInterstitialEventController GetInterstitialEventController (AVPlayer primaryPlayer); @@ -13304,13 +13390,13 @@ namespace AVFoundation { NativeHandle Constructor (AVPlayer primaryPlayer); [NullAllowed, Export ("events", ArgumentSemantic.Copy)] - AVPlayerInterstitialEvent[] Events { get; set; } + AVPlayerInterstitialEvent [] Events { get; set; } [Export ("cancelCurrentEventWithResumptionOffset:")] void CancelCurrentEvent (CMTime resumptionOffset); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -13327,10 +13413,10 @@ namespace AVFoundation { void LoadValuesAsynchronously (string [] keys, [NullAllowed] Action handler); } - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (AVPlayer))] interface AVQueuePlayer { - + [Static, Export ("queuePlayerWithItems:")] AVQueuePlayer FromItems (AVPlayerItem [] items); @@ -13356,94 +13442,94 @@ namespace AVFoundation { void RemoveAllItems (); } - [Watch (3,0)] + [Watch (3, 0)] [Static] interface AVAudioSettings { [Field ("AVFormatIDKey")] NSString AVFormatIDKey { get; } - + [Field ("AVSampleRateKey")] NSString AVSampleRateKey { get; } - + [Field ("AVNumberOfChannelsKey")] NSString AVNumberOfChannelsKey { get; } - + [Field ("AVLinearPCMBitDepthKey")] NSString AVLinearPCMBitDepthKey { get; } - + [Field ("AVLinearPCMIsBigEndianKey")] NSString AVLinearPCMIsBigEndianKey { get; } - + [Field ("AVLinearPCMIsFloatKey")] NSString AVLinearPCMIsFloatKey { get; } - + [Field ("AVLinearPCMIsNonInterleaved")] NSString AVLinearPCMIsNonInterleaved { get; } [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Field ("AVAudioFileTypeKey")] NSString FileTypeKey { get; } - + [Field ("AVEncoderAudioQualityKey")] NSString AVEncoderAudioQualityKey { get; } - + [Field ("AVEncoderBitRateKey")] NSString AVEncoderBitRateKey { get; } - + [Field ("AVEncoderBitRatePerChannelKey")] NSString AVEncoderBitRatePerChannelKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVEncoderBitRateStrategyKey"), Internal] NSString AVEncoderBitRateStrategyKey { get; } [Field ("AVSampleRateConverterAlgorithmKey"), Internal] NSString AVSampleRateConverterAlgorithmKey { get; } - + [Field ("AVEncoderBitDepthHintKey")] NSString AVEncoderBitDepthHintKey { get; } - + [Field ("AVSampleRateConverterAudioQualityKey")] NSString AVSampleRateConverterAudioQualityKey { get; } - + [Field ("AVChannelLayoutKey")] NSString AVChannelLayoutKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVAudioBitRateStrategy_Constant"), Internal] NSString _Constant { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVAudioBitRateStrategy_LongTermAverage"), Internal] NSString _LongTermAverage { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVAudioBitRateStrategy_VariableConstrained"), Internal] NSString _VariableConstrained { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Field ("AVAudioBitRateStrategy_Variable"), Internal] NSString _Variable { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVSampleRateConverterAlgorithm_Normal"), Internal] NSString AVSampleRateConverterAlgorithm_Normal { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVSampleRateConverterAlgorithm_Mastering"), Internal] NSString AVSampleRateConverterAlgorithm_Mastering { get; } - - [iOS (10, 0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("AVSampleRateConverterAlgorithm_MinimumPhase")] NSString AVSampleRateConverterAlgorithm_MinimumPhase { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("AVEncoderAudioQualityForVBRKey"), Internal] NSString AVEncoderAudioQualityForVBRKey { get; } } [NoWatch] - [TV (10,2), iOS (8,0), Mac (10,10)] + [TV (10, 2), iOS (8, 0), Mac (10, 10)] [BaseType (typeof (CALayer))] interface AVSampleBufferDisplayLayer { @@ -13491,7 +13577,7 @@ namespace AVFoundation { void StopRequestingMediaData (); // TODO: Remove (alongside others) when https://github.com/xamarin/xamarin-macios/issues/3213 is fixed and conformance to 'AVQueuedSampleBufferRendering' is restored. - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("timebase", ArgumentSemantic.Retain)] CMTimebase Timebase { get; } @@ -13504,11 +13590,11 @@ namespace AVFoundation { // AVSampleBufferDisplayLayerImageProtection - [TV (12,2), NoWatch, Mac (10,14,4), iOS (12,2)] + [TV (12, 2), NoWatch, Mac (10, 14, 4), iOS (12, 2)] [Export ("preventsCapture")] bool PreventsCapture { get; set; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("preventsDisplaySleepDuringVideoPlayback")] bool PreventsDisplaySleepDuringVideoPlayback { get; set; } @@ -13522,7 +13608,7 @@ namespace AVFoundation { NSString RequiresFlushToResumeDecodingDidChangeNotification { get; } [TV (14, 5), Watch (7, 4), Mac (11, 3), iOS (14, 5)] - [MacCatalyst (14,5)] + [MacCatalyst (14, 5)] [Field ("AVSampleBufferDisplayLayerOutputObscuredDueToInsufficientExternalProtectionDidChangeNotification")] [Notification] NSString OutputObscuredDueToInsufficientExternalProtectionDidChangeNotification { get; } @@ -13532,9 +13618,8 @@ namespace AVFoundation { [NoWatch] [TV (14, 5), Mac (11, 3), iOS (14, 5)] [Category] - [BaseType (typeof(AVSampleBufferDisplayLayer))] - interface AVSampleBufferDisplayLayer_ProtectedContent - { + [BaseType (typeof (AVSampleBufferDisplayLayer))] + interface AVSampleBufferDisplayLayer_ProtectedContent { [Export ("outputObscuredDueToInsufficientExternalProtection")] bool GetOutputObscuredDueToInsufficientExternalProtection (); } @@ -13544,15 +13629,15 @@ namespace AVFoundation { interface AVSynchronizedLayer { [Static, Export ("synchronizedLayerWithPlayerItem:")] AVSynchronizedLayer FromPlayerItem (AVPlayerItem playerItem); - + [NullAllowed] // by default this property is null [Export ("playerItem", ArgumentSemantic.Retain)] AVPlayerItem PlayerItem { get; set; } } - [Mac (10,15)] - [Watch (3,0)] - [iOS (7,0)] + [Mac (10, 15)] + [Watch (3, 0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] interface AVSpeechSynthesisVoice : NSSecureCoding { @@ -13566,7 +13651,7 @@ namespace AVFoundation { [Static, Export ("voiceWithLanguage:")] AVSpeechSynthesisVoice FromLanguage ([NullAllowed] string language); - [iOS (9,0)] + [iOS (9, 0)] [return: NullAllowed] [Static, Export ("voiceWithIdentifier:")] AVSpeechSynthesisVoice FromIdentifier (string identifier); @@ -13574,55 +13659,55 @@ namespace AVFoundation { [Export ("language", ArgumentSemantic.Copy)] string Language { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("identifier")] string Identifier { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("name")] string Name { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("quality")] AVSpeechSynthesisVoiceQuality Quality { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("AVSpeechSynthesisVoiceIdentifierAlex")] NSString IdentifierAlex { get; } - [iOS (10, 0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Field ("AVSpeechSynthesisIPANotationAttribute")] NSString IpaNotationAttribute { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("gender")] AVSpeechSynthesisVoiceGender Gender { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("audioFileSettings")] NSDictionary AudioFileSettings { get; } } - [Mac (10,15)] - [Watch (3,0)] - [iOS (7,0)] + [Mac (10, 15)] + [Watch (3, 0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] interface AVSpeechUtterance : NSCopying, NSSecureCoding { [Static, Export ("speechUtteranceWithString:")] AVSpeechUtterance FromString (string speechString); - - [iOS (10,0)] - [TV (10,0)] + + [iOS (10, 0)] + [TV (10, 0)] [Static] [Export ("speechUtteranceWithAttributedString:")] AVSpeechUtterance FromString (NSAttributedString speechString); [Export ("initWithString:")] NativeHandle Constructor (string speechString); - - [iOS (10,0)] - [TV (10,0)] + + [iOS (10, 0)] + [TV (10, 0)] [Export ("initWithAttributedString:")] NativeHandle Constructor (NSAttributedString speechString); @@ -13632,9 +13717,9 @@ namespace AVFoundation { [Export ("speechString", ArgumentSemantic.Copy)] string SpeechString { get; } - + [iOS (10, 0)] - [TV (10,0)] + [TV (10, 0)] [Export ("attributedSpeechString")] NSAttributedString AttributedSpeechString { get; } @@ -13667,10 +13752,10 @@ namespace AVFoundation { bool PrefersAssistiveTechnologySettings { get; set; } } - [Mac (10,15)] - [Watch (3,0)] - [iOS (7,0)] - [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] { typeof (AVSpeechSynthesizerDelegate)})] + [Mac (10, 15)] + [Watch (3, 0)] + [iOS (7, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (AVSpeechSynthesizerDelegate) })] interface AVSpeechSynthesizer { [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] @@ -13687,11 +13772,11 @@ namespace AVFoundation { [Export ("paused")] bool Paused { [Bind ("isPaused")] get; } - [Watch (6,0), TV (13,0), Mac (12,0), iOS (13,0), MacCatalyst (15,0)] + [Watch (6, 0), TV (13, 0), Mac (12, 0), iOS (13, 0), MacCatalyst (15, 0)] [Export ("usesApplicationAudioSession")] bool UsesApplicationAudioSession { get; set; } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Export ("mixToTelephonyUplink")] bool MixToTelephonyUplink { get; set; } @@ -13699,7 +13784,7 @@ namespace AVFoundation { void SpeakUtterance (AVSpeechUtterance utterance); [Async] - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("writeUtterance:toBufferCallback:")] void WriteUtterance (AVSpeechUtterance utterance, Action bufferCallback); @@ -13714,41 +13799,46 @@ namespace AVFoundation { [NoMac] [iOS (10, 0)] - [TV (10,0)] + [TV (10, 0)] [NullAllowed, Export ("outputChannels", ArgumentSemantic.Retain)] - AVAudioSessionChannelDescription[] OutputChannels { get; set; } + AVAudioSessionChannelDescription [] OutputChannels { get; set; } } - [Mac (10,15)] - [Watch (3,0)] + [Mac (10, 15)] + [Watch (3, 0)] [Model] [BaseType (typeof (NSObject))] [Protocol] interface AVSpeechSynthesizerDelegate { - [Export ("speechSynthesizer:didStartSpeechUtterance:")][EventArgs ("AVSpeechSynthesizerUterance")] + [Export ("speechSynthesizer:didStartSpeechUtterance:")] + [EventArgs ("AVSpeechSynthesizerUterance")] void DidStartSpeechUtterance (AVSpeechSynthesizer synthesizer, AVSpeechUtterance utterance); - [Export ("speechSynthesizer:didFinishSpeechUtterance:")][EventArgs ("AVSpeechSynthesizerUterance")] + [Export ("speechSynthesizer:didFinishSpeechUtterance:")] + [EventArgs ("AVSpeechSynthesizerUterance")] void DidFinishSpeechUtterance (AVSpeechSynthesizer synthesizer, AVSpeechUtterance utterance); - [Export ("speechSynthesizer:didPauseSpeechUtterance:")][EventArgs ("AVSpeechSynthesizerUterance")] + [Export ("speechSynthesizer:didPauseSpeechUtterance:")] + [EventArgs ("AVSpeechSynthesizerUterance")] void DidPauseSpeechUtterance (AVSpeechSynthesizer synthesizer, AVSpeechUtterance utterance); - [Export ("speechSynthesizer:didContinueSpeechUtterance:")][EventArgs ("AVSpeechSynthesizerUterance")] + [Export ("speechSynthesizer:didContinueSpeechUtterance:")] + [EventArgs ("AVSpeechSynthesizerUterance")] void DidContinueSpeechUtterance (AVSpeechSynthesizer synthesizer, AVSpeechUtterance utterance); - [Export ("speechSynthesizer:didCancelSpeechUtterance:")][EventArgs ("AVSpeechSynthesizerUterance")] + [Export ("speechSynthesizer:didCancelSpeechUtterance:")] + [EventArgs ("AVSpeechSynthesizerUterance")] void DidCancelSpeechUtterance (AVSpeechSynthesizer synthesizer, AVSpeechUtterance utterance); - [Export ("speechSynthesizer:willSpeakRangeOfSpeechString:utterance:")][EventArgs ("AVSpeechSynthesizerWillSpeak")] + [Export ("speechSynthesizer:willSpeakRangeOfSpeechString:utterance:")] + [EventArgs ("AVSpeechSynthesizerWillSpeak")] void WillSpeakRangeOfSpeechString (AVSpeechSynthesizer synthesizer, NSRange characterRange, AVSpeechUtterance utterance); } - [NoWatch, NoTV, Mac (12,0), iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetDownloadStorageManager - { + interface AVAssetDownloadStorageManager { [Static] [Export ("sharedDownloadStorageManager")] AVAssetDownloadStorageManager SharedDownloadStorageManager { get; } @@ -13761,11 +13851,10 @@ namespace AVFoundation { AVAssetDownloadStorageManagementPolicy GetStorageManagementPolicy (NSUrl downloadStorageUrl); } - [NoWatch, NoTV, Mac (12,0), iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetDownloadStorageManagementPolicy : NSCopying, NSMutableCopying - { + interface AVAssetDownloadStorageManagementPolicy : NSCopying, NSMutableCopying { [Internal] [Export ("priority")] NSString _Priority { get; [NotImplemented] set; } @@ -13774,11 +13863,10 @@ namespace AVFoundation { NSDate ExpirationDate { get; [NotImplemented] set; } } - [NoWatch, NoTV, Mac (12,0), iOS (11,0)] - [BaseType (typeof(AVAssetDownloadStorageManagementPolicy))] + [NoWatch, NoTV, Mac (12, 0), iOS (11, 0)] + [BaseType (typeof (AVAssetDownloadStorageManagementPolicy))] [DisableDefaultCtor] - interface AVMutableAssetDownloadStorageManagementPolicy - { + interface AVMutableAssetDownloadStorageManagementPolicy { [Internal] [Export ("priority")] NSString _Priority { get; set; } @@ -13789,11 +13877,11 @@ namespace AVFoundation { [NoWatch] [NoTV] - [iOS (9,0), Mac (12,0)] + [iOS (9, 0), Mac (12, 0)] [BaseType (typeof (NSUrlSessionTask))] [DisableDefaultCtor] // not meant to be user createable interface AVAssetDownloadTask { - + [Export ("URLAsset")] AVUrlAsset UrlAsset { get; } @@ -13806,20 +13894,19 @@ namespace AVFoundation { NSDictionary Options { get; } [Export ("loadedTimeRanges")] - NSValue[] LoadedTimeRanges { get; } + NSValue [] LoadedTimeRanges { get; } } - [Mac (12,0), NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSUrlSessionTask))] + [Mac (12, 0), NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSUrlSessionTask))] [DisableDefaultCtor] - interface AVAggregateAssetDownloadTask - { + interface AVAggregateAssetDownloadTask { [Export ("URLAsset")] AVUrlAsset UrlAsset { get; } } - [NoWatch, Mac (11,3)] + [NoWatch, Mac (11, 3)] #if NET [NoTV] #else @@ -13827,33 +13914,33 @@ namespace AVFoundation { #endif [Static, Internal] interface AVAssetDownloadTaskKeys { - [iOS (9,0), Mac (12,0)] + [iOS (9, 0), Mac (12, 0)] [Field ("AVAssetDownloadTaskMinimumRequiredMediaBitrateKey")] NSString MinimumRequiredMediaBitrateKey { get; } - [iOS (9,0), Mac (12,0)] + [iOS (9, 0), Mac (12, 0)] [Field ("AVAssetDownloadTaskMediaSelectionKey")] NSString MediaSelectionKey { get; } - [NoWatch, NoTV, iOS (13,0), Mac (12,0)] + [NoWatch, NoTV, iOS (13, 0), Mac (12, 0)] [Field ("AVAssetDownloadTaskMediaSelectionPrefersMultichannelKey")] NSString MediaSelectionPrefersMultichannelKey { get; } - [NoWatch, NoTV, iOS (14, 0), Mac (12,0)] + [NoWatch, NoTV, iOS (14, 0), Mac (12, 0)] [Field ("AVAssetDownloadTaskPrefersHDRKey")] NSString PrefersHdrKey { get; } - [NoWatch, NoTV, Mac (11,3), iOS (14, 5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("AVAssetDownloadTaskPrefersLosslessAudioKey")] NSString PrefersLosslessAudioKey { get; } - [NoWatch, NoTV, iOS (14, 0), Mac (12,0)] + [NoWatch, NoTV, iOS (14, 0), Mac (12, 0)] [Field ("AVAssetDownloadTaskMinimumRequiredPresentationSizeKey")] NSString MinimumRequiredPresentationSizeKey { get; } } - [Mac (12,0)] + [Mac (12, 0)] [NoWatch] #if NET [NoTV] @@ -13864,8 +13951,8 @@ namespace AVFoundation { interface AVAssetDownloadOptions { NSNumber MinimumRequiredMediaBitrate { get; set; } AVMediaSelection MediaSelection { get; set; } - [NoWatch, NoTV, iOS (13,0)] - bool MediaSelectionPrefersMultichannel { get; set;} + [NoWatch, NoTV, iOS (13, 0)] + bool MediaSelectionPrefersMultichannel { get; set; } [NoWatch, NoTV, iOS (14, 0)] bool PrefersHdr { get; set; } [NoWatch, NoTV, iOS (14, 0)] @@ -13874,7 +13961,7 @@ namespace AVFoundation { [NoTV] [NoWatch] - [iOS (9,0), Mac (12,0)] + [iOS (9, 0), Mac (12, 0)] [DisableDefaultCtor] [BaseType (typeof (NSUrlSession), Name = "AVAssetDownloadURLSession")] interface AVAssetDownloadUrlSession { @@ -13892,63 +13979,64 @@ namespace AVFoundation { [return: NullAllowed] AVAssetDownloadTask GetAssetDownloadTask (AVUrlAsset urlAsset, NSUrl destinationUrl, AVAssetDownloadOptions options); - [iOS (10,0)] + [iOS (10, 0)] [Export ("assetDownloadTaskWithURLAsset:assetTitle:assetArtworkData:options:")] [return: NullAllowed] AVAssetDownloadTask GetAssetDownloadTask (AVUrlAsset urlAsset, string title, [NullAllowed] NSData artworkData, [NullAllowed] NSDictionary options); - [iOS (10,0)] + [iOS (10, 0)] [Wrap ("GetAssetDownloadTask (urlAsset, title, artworkData, options.GetDictionary ())")] [return: NullAllowed] AVAssetDownloadTask GetAssetDownloadTask (AVUrlAsset urlAsset, string title, [NullAllowed] NSData artworkData, AVAssetDownloadOptions options); - [Mac (12,0), NoWatch, iOS (11,0)] + [Mac (12, 0), NoWatch, iOS (11, 0)] [Export ("aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options:")] [return: NullAllowed] - AVAggregateAssetDownloadTask GetAssetDownloadTask (AVUrlAsset URLAsset, AVMediaSelection[] mediaSelections, string title, [NullAllowed] NSData artworkData, [NullAllowed] NSDictionary options); + AVAggregateAssetDownloadTask GetAssetDownloadTask (AVUrlAsset URLAsset, AVMediaSelection [] mediaSelections, string title, [NullAllowed] NSData artworkData, [NullAllowed] NSDictionary options); - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("assetDownloadTaskWithConfiguration:")] AVAssetDownloadTask GetAssetDownloadTask (AVAssetDownloadConfiguration downloadConfiguration); } - interface IAVAssetDownloadDelegate {} + interface IAVAssetDownloadDelegate { } [NoTV] [NoWatch] - [iOS (9,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (9, 0), Mac (12, 0), MacCatalyst (15, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface AVAssetDownloadDelegate : NSUrlSessionTaskDelegate { [Export ("URLSession:assetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:")] - void DidLoadTimeRange (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, CMTimeRange timeRange, NSValue[] loadedTimeRanges, CMTimeRange timeRangeExpectedToLoad); + void DidLoadTimeRange (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, CMTimeRange timeRange, NSValue [] loadedTimeRanges, CMTimeRange timeRangeExpectedToLoad); [Export ("URLSession:assetDownloadTask:didResolveMediaSelection:")] void DidResolveMediaSelection (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, AVMediaSelection resolvedMediaSelection); - [iOS (10,0)] + [iOS (10, 0)] [Export ("URLSession:assetDownloadTask:didFinishDownloadingToURL:")] void DidFinishDownloadingToUrl (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, NSUrl location); - [iOS (11,0)] + [iOS (11, 0)] [Export ("URLSession:aggregateAssetDownloadTask:willDownloadToURL:")] void WillDownloadToUrl (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, NSUrl location); - [iOS (11,0)] + [iOS (11, 0)] [Export ("URLSession:aggregateAssetDownloadTask:didCompleteForMediaSelection:")] void DidCompleteForMediaSelection (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, AVMediaSelection mediaSelection); - [iOS (11,0)] + [iOS (11, 0)] [Export ("URLSession:aggregateAssetDownloadTask:didLoadTimeRange:totalTimeRangesLoaded:timeRangeExpectedToLoad:forMediaSelection:")] - void DidLoadTimeRange (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, CMTimeRange timeRange, NSValue[] loadedTimeRanges, CMTimeRange timeRangeExpectedToLoad, AVMediaSelection mediaSelection); + void DidLoadTimeRange (NSUrlSession session, AVAggregateAssetDownloadTask aggregateAssetDownloadTask, CMTimeRange timeRange, NSValue [] loadedTimeRanges, CMTimeRange timeRangeExpectedToLoad, AVMediaSelection mediaSelection); - [iOS (15,0)] + [iOS (15, 0)] [Export ("URLSession:assetDownloadTask:willDownloadVariants:")] - void WillDownloadVariants (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, AVAssetVariant[] variants); + void WillDownloadVariants (NSUrlSession session, AVAssetDownloadTask assetDownloadTask, AVAssetVariant [] variants); } [NoWatch] - [iOS (7,0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVOutputSettingsAssistant { @@ -14006,7 +14094,7 @@ namespace AVFoundation { [Internal, Field ("AVOutputSettingsPreset1920x1080")] NSString _Preset1920x1080 { get; } - [iOS (9,0), Mac (10,10)] + [iOS (9, 0), Mac (10, 10)] [Internal, Field ("AVOutputSettingsPreset3840x2160")] NSString _Preset3840x2160 { get; } @@ -14021,10 +14109,12 @@ namespace AVFoundation { NSString _PresetHevc3840x2160 { get; } } - [iOS (9,0)][Mac (10,11)][Watch (6,0)] + [iOS (9, 0)] + [Mac (10, 11)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] interface AVMediaSelection : NSCopying, NSMutableCopying { - + [NullAllowed, Export ("asset", ArgumentSemantic.Weak)] AVAsset Asset { get; } @@ -14036,7 +14126,8 @@ namespace AVFoundation { bool CriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup (AVMediaSelectionGroup mediaSelectionGroup); } - [iOS (9,0), Mac (10,11)][Watch (6,0)] + [iOS (9, 0), Mac (10, 11)] + [Watch (6, 0)] [BaseType (typeof (AVMediaSelection))] interface AVMutableMediaSelection { @@ -14044,7 +14135,8 @@ namespace AVFoundation { void SelectMediaOption ([NullAllowed] AVMediaSelectionOption mediaSelectionOption, AVMediaSelectionGroup mediaSelectionGroup); } - [NoWatch, iOS (9,0)][Mac (10,11)] + [NoWatch, iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface AVAudioSequencer { @@ -14070,7 +14162,7 @@ namespace AVFoundation { double GetBeats (double seconds); [Export ("tracks")] - AVMusicTrack[] Tracks { get; } + AVMusicTrack [] Tracks { get; } [Export ("tempoTrack")] AVMusicTrack TempoTrack { get; } @@ -14109,12 +14201,13 @@ namespace AVFoundation { void Stop (); } - [NoWatch, iOS (9,0)][Mac (10,11)] + [NoWatch, iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Docs/headers do not state that init is disallowed but if - // you get an instance that way and try to use it, it will inmediatelly crash also tested in ObjC app same result + // you get an instance that way and try to use it, it will inmediatelly crash also tested in ObjC app same result interface AVMusicTrack { - + [NullAllowed, Export ("destinationAudioUnit", ArgumentSemantic.Retain)] AVAudioUnit DestinationAudioUnit { get; set; } @@ -14150,8 +14243,9 @@ namespace AVFoundation { nuint TimeResolution { get; } } - [Watch (3,0)] - [iOS (9,0)][Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] interface AVAudioUnitType { @@ -14186,8 +14280,9 @@ namespace AVFoundation { NSString MidiProcessor { get; } } - [NoWatch, iOS (9,0)][Mac (10,10)] - [BaseType (typeof(NSObject))] + [NoWatch, iOS (9, 0)] + [Mac (10, 10)] + [BaseType (typeof (NSObject))] interface AVAudioUnitComponent { [Export ("name")] @@ -14220,40 +14315,40 @@ namespace AVFoundation { [Export ("audioComponent")] AudioComponent AudioComponent { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("availableArchitectures")] - NSNumber[] AvailableArchitectures { get; } + NSNumber [] AvailableArchitectures { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("userTagNames", ArgumentSemantic.Copy)] - string[] UserTagNames { get; set; } + string [] UserTagNames { get; set; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [NullAllowed, Export ("iconURL")] NSUrl IconUrl { get; } - [Mac (10,11), MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [Mac (10, 11), MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [NullAllowed, Export ("icon")] UIImage Icon { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("passesAUVal")] bool PassesAUVal { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("hasCustomView")] bool HasCustomView { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("configurationDictionary")] NSDictionary WeakConfigurationDictionary { get; } - [MacCatalyst (15,0), NoiOS, NoTV, NoWatch] + [MacCatalyst (15, 0), NoiOS, NoTV, NoWatch] [Export ("supportsNumberInputChannels:outputChannels:")] bool SupportsNumberInputChannels (nint numInputChannels, nint numOutputChannels); [Export ("allTagNames")] - string[] AllTagNames { get; } + string [] AllTagNames { get; } [Export ("audioComponentDescription")] AudioComponentDescription AudioComponentDescription { get; } @@ -14265,41 +14360,41 @@ namespace AVFoundation { delegate bool AVAudioUnitComponentFilter (AVAudioUnitComponent comp, ref bool stop); - [NoWatch, iOS (9,0), Mac (10,10)] + [NoWatch, iOS (9, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // for binary compatibility this is added in AVCompat.cs w/[Obsolete] interface AVAudioUnitComponentManager { - + [Export ("tagNames")] - string[] TagNames { get; } + string [] TagNames { get; } [Export ("standardLocalizedTagNames")] - string[] StandardLocalizedTagNames { get; } + string [] StandardLocalizedTagNames { get; } [Static] [Export ("sharedAudioUnitComponentManager")] AVAudioUnitComponentManager SharedInstance { get; } [Export ("componentsMatchingPredicate:")] - AVAudioUnitComponent[] GetComponents (NSPredicate predicate); + AVAudioUnitComponent [] GetComponents (NSPredicate predicate); [Export ("componentsPassingTest:")] - AVAudioUnitComponent[] GetComponents (AVAudioUnitComponentFilter testHandler); + AVAudioUnitComponent [] GetComponents (AVAudioUnitComponentFilter testHandler); [Export ("componentsMatchingDescription:")] - AVAudioUnitComponent[] GetComponents (AudioComponentDescription desc); + AVAudioUnitComponent [] GetComponents (AudioComponentDescription desc); [Notification] - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Field ("AVAudioUnitComponentManagerRegistrationsChangedNotification")] NSString RegistrationsChangedNotification { get; } } - [Watch (3,0)] + [Watch (3, 0)] [Static] interface AVAudioUnitManufacturerName { [Field ("AVAudioUnitManufacturerNameApple")] - [Mac (10,10), iOS (9,0)] + [Mac (10, 10), iOS (9, 0)] NSString Apple { get; } } @@ -14308,11 +14403,11 @@ namespace AVFoundation { [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoWatch] [NoTV] - [iOS (9,0)] - [BaseType (typeof(AVCaptureInput))] + [iOS (9, 0)] + [BaseType (typeof (AVCaptureInput))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Format description is required. interface AVCaptureMetadataInput { - + [Internal] [Static] [Export ("metadataInputWithFormatDescription:clock:")] // FIXME: Add CMMetadataFormatDescription @@ -14327,8 +14422,8 @@ namespace AVFoundation { } [NoWatch] - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] interface AVAsynchronousCIImageFilteringRequest : NSCopying { [Export ("renderSize")] @@ -14346,18 +14441,17 @@ namespace AVFoundation { [Export ("finishWithError:")] void Finish (NSError error); } - - [NoiOS, TV (10,0), NoWatch, NoMac] - [BaseType (typeof(NSObject))] + + [NoiOS, TV (10, 0), NoWatch, NoMac] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVContentProposal : NSCopying - { + interface AVContentProposal : NSCopying { [Export ("contentTimeForTransition")] CMTime ContentTimeForTransition { get; } - + [Export ("automaticAcceptanceInterval")] double AutomaticAcceptanceInterval { get; set; } - + [Export ("title")] string Title { get; } @@ -14368,20 +14462,19 @@ namespace AVFoundation { NSUrl Url { get; set; } [Export ("metadata", ArgumentSemantic.Copy)] - AVMetadataItem[] Metadata { get; set; } + AVMetadataItem [] Metadata { get; set; } [Export ("initWithContentTimeForTransition:title:previewImage:")] [DesignatedInitializer] NativeHandle Constructor (CMTime contentTimeForTransition, string title, [NullAllowed] UIImage previewImage); } - partial interface IAVContentKeySessionDelegate {} + partial interface IAVContentKeySessionDelegate { } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7, 0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] - interface AVContentKeySessionDelegate - { + interface AVContentKeySessionDelegate { [Abstract] [Export ("contentKeySession:didProvideContentKeyRequest:")] void DidProvideContentKeyRequest (AVContentKeySession session, AVContentKeyRequest keyRequest); @@ -14401,26 +14494,26 @@ namespace AVFoundation { [Export ("contentKeySessionContentProtectionSessionIdentifierDidChange:")] void DidChange (AVContentKeySession session); - [NoTV, Mac (10,15), iOS (11,0)] + [NoTV, Mac (10, 15), iOS (11, 0)] [Export ("contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:")] void DidUpdate (AVContentKeySession session, NSData persistableContentKey, NSObject keyIdentifier); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("contentKeySession:contentKeyRequestDidSucceed:")] void DidSucceed (AVContentKeySession session, AVContentKeyRequest keyRequest); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("contentKeySessionDidGenerateExpiredSessionReport:")] void DidGenerateExpiredSessionReport (AVContentKeySession session); } - partial interface IAVContentKeyRecipient {} + partial interface IAVContentKeyRecipient { } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [Protocol] interface AVContentKeyRecipient { - [TV (14,5), Mac (11,3), iOS (14,5), Watch (7,4)] - [MacCatalyst (14,5)] + [TV (14, 5), Mac (11, 3), iOS (14, 5), Watch (7, 4)] + [MacCatalyst (14, 5)] [Export ("contentKeySession:didProvideContentKey:")] void DidProvideContentKey (AVContentKeySession contentKeySession, AVContentKey contentKey); @@ -14429,12 +14522,12 @@ namespace AVFoundation { bool MayRequireContentKeysForMediaDataProcessing { get; } } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface AVContentKeySession { - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("contentKeySessionWithKeySystem:")] AVContentKeySession Create (string keySystem); @@ -14480,12 +14573,12 @@ namespace AVFoundation { void RenewExpiringResponseData (AVContentKeyRequest contentKeyRequest); [Async] - [NoTV, Mac (10,15), iOS (11,0)] + [NoTV, Mac (10, 15), iOS (11, 0)] [Export ("makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:")] void MakeSecureToken (NSData persistableContentKeyData, Action handler); [Async] - [NoTV, Mac (10,15), iOS (12,2)] + [NoTV, Mac (10, 15), iOS (12, 2)] [Export ("invalidatePersistableContentKey:options:completionHandler:")] void InvalidatePersistableContentKey (NSData persistableContentKeyData, [NullAllowed] NSDictionary options, Action handler); @@ -14495,7 +14588,7 @@ namespace AVFoundation { void InvalidatePersistableContentKey (NSData persistableContentKeyData, [NullAllowed] AVContentKeySessionServerPlaybackContextOptions options, Action handler); [Async] - [NoTV, Mac (10,15), iOS (12,2)] + [NoTV, Mac (10, 15), iOS (12, 2)] [Export ("invalidateAllPersistableContentKeysForApp:options:completionHandler:")] void InvalidateAllPersistableContentKeys (NSData appIdentifier, [NullAllowed] NSDictionary options, Action handler); @@ -14509,17 +14602,18 @@ namespace AVFoundation { // binded because they are static and from a category. [Static] [Export ("pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:")] - NSDictionary[] GetPendingExpiredSessionReports (NSData appIdentifier, NSUrl storageUrl); + NSDictionary [] GetPendingExpiredSessionReports (NSData appIdentifier, NSUrl storageUrl); [Static] [Export ("removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:")] - void RemovePendingExpiredSessionReports (NSDictionary[] expiredSessionReports, NSData appIdentifier, NSUrl storageUrl); + void RemovePendingExpiredSessionReports (NSDictionary [] expiredSessionReports, NSData appIdentifier, NSUrl storageUrl); #endregion } - [Static][Internal] - [Watch (7,0), NoTV, Mac (10,15), iOS (12,2)] + [Static] + [Internal] + [Watch (7, 0), NoTV, Mac (10, 15), iOS (12, 2)] interface AVContentKeySessionServerPlaybackContextOptionKeys { [Field ("AVContentKeySessionServerPlaybackContextOptionProtocolVersions")] NSString ProtocolVersionsKey { get; } @@ -14529,18 +14623,17 @@ namespace AVFoundation { } [StrongDictionary ("AVContentKeySessionServerPlaybackContextOptionKeys")] - [Watch (7,0), NoTV, NoMac, iOS (12,2)] + [Watch (7, 0), NoTV, NoMac, iOS (12, 2)] interface AVContentKeySessionServerPlaybackContextOptions { - NSNumber[] ProtocolVersions { get; } + NSNumber [] ProtocolVersions { get; } NSData ServerChallenge { get; } } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [Category] - [BaseType (typeof(AVContentKeySession))] - interface AVContentKeySession_AVContentKeyRecipients - { + [BaseType (typeof (AVContentKeySession))] + interface AVContentKeySession_AVContentKeyRecipients { [Export ("addContentKeyRecipient:")] void Add (IAVContentKeyRecipient recipient); @@ -14548,18 +14641,18 @@ namespace AVFoundation { void Remove (IAVContentKeyRecipient recipient); [Export ("contentKeyRecipients")] - IAVContentKeyRecipient[] GetContentKeyRecipients (); + IAVContentKeyRecipient [] GetContentKeyRecipients (); } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (6,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (6, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface AVContentKeyRequest { - [Watch (7,0)] + [Watch (7, 0)] [Field ("AVContentKeyRequestProtocolVersionsKey")] NSString ProtocolVersions { get; } - [Watch (7,0)] + [Watch (7, 0)] [Export ("status")] AVContentKeyRequestStatus Status { get; } @@ -14579,7 +14672,7 @@ namespace AVFoundation { [Export ("canProvidePersistableContentKey")] bool CanProvidePersistableContentKey { get; } - [TV (12,2), Mac (10,14,4), iOS (12,2), Watch (7, 0)] + [TV (12, 2), Mac (10, 14, 4), iOS (12, 2), Watch (7, 0)] [Export ("options", ArgumentSemantic.Copy)] NSDictionary Options { get; } @@ -14600,35 +14693,34 @@ namespace AVFoundation { [Export ("respondByRequestingPersistableContentKeyRequest"), NoWatch, NoTV, NoMac] void RespondByRequestingPersistableContentKeyRequest (); - [Watch (7, 0), NoTV, Mac (10,15), iOS (11,2)] + [Watch (7, 0), NoTV, Mac (10, 15), iOS (11, 2)] [Export ("respondByRequestingPersistableContentKeyRequestAndReturnError:")] bool RespondByRequestingPersistableContentKeyRequest ([NullAllowed] out NSError error); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("AVContentKeyRequestRequiresValidationDataInSecureTokenKey")] NSString RequiresValidationDataInSecureTokenKey { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("contentKeySpecifier")] AVContentKeySpecifier ContentKeySpecifier { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [NullAllowed, Export ("contentKey")] AVContentKey ContentKey { get; } } [Category] - [Mac (10, 12, 4), iOS (10,3), TV (10, 2), Watch (7, 0)] - [BaseType (typeof(AVContentKeyRequest))] - interface AVContentKeyRequest_AVContentKeyRequestRenewal - { + [Mac (10, 12, 4), iOS (10, 3), TV (10, 2), Watch (7, 0)] + [BaseType (typeof (AVContentKeyRequest))] + interface AVContentKeyRequest_AVContentKeyRequestRenewal { [Export ("renewsExpiringResponseData")] bool GetRenewsExpiringResponseData (); } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [DisableDefaultCtor] [BaseType (typeof (AVContentKeyRequest))] interface AVPersistableContentKeyRequest { @@ -14638,7 +14730,7 @@ namespace AVFoundation { } - [TV (10,2), Mac (10,12,4), iOS (10,3), Watch (7,0)] + [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), Watch (7, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface AVContentKeyResponse { @@ -14647,23 +14739,22 @@ namespace AVFoundation { [Export ("contentKeyResponseWithFairPlayStreamingKeyResponseData:")] AVContentKeyResponse _InitWithFairPlayStreamingKeyResponseData (NSData fairPlayStreamingKeyResponseData); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("contentKeyResponseWithClearKeyData:initializationVector:")] AVContentKeyResponse Create (NSData keyData, [NullAllowed] NSData initializationVector); [Internal] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("contentKeyResponseWithAuthorizationTokenData:")] AVContentKeyResponse _InitWithAuthorizationToken (NSData authorizationTokenData); } - [TV (14,5), Mac (11,3), iOS (14,5), Watch (7,4)] - [MacCatalyst (14,5)] - [BaseType (typeof(NSObject))] - interface AVContentKeySpecifier - { + [TV (14, 5), Mac (11, 3), iOS (14, 5), Watch (7, 4)] + [MacCatalyst (14, 5)] + [BaseType (typeof (NSObject))] + interface AVContentKeySpecifier { // TODO https://github.com/xamarin/xamarin-macios/issues/10904 [Static] [Export ("contentKeySpecifierForKeySystem:identifier:options:")] @@ -14682,18 +14773,17 @@ namespace AVFoundation { NSDictionary Options { get; } } - [TV (14,5), Mac (11,3), iOS (14,5), Watch (7,4)] - [MacCatalyst (14,5)] - [BaseType (typeof(NSObject))] - interface AVContentKey - { + [TV (14, 5), Mac (11, 3), iOS (14, 5), Watch (7, 4)] + [MacCatalyst (14, 5)] + [BaseType (typeof (NSObject))] + interface AVContentKey { [Export ("contentKeySpecifier")] AVContentKeySpecifier ContentKeySpecifier { get; } } - [TV (11,0), NoWatch, Mac (10,13), iOS (11,0)] + [TV (11, 0), NoWatch, Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface AVRouteDetector { [Notification] [Field ("AVRouteDetectorMultipleRoutesDetectedDidChangeNotification")] @@ -14706,13 +14796,12 @@ namespace AVFoundation { bool MultipleRoutesDetected { get; } } - interface IAVCapturePhotoFileDataRepresentationCustomizer {} - + interface IAVCapturePhotoFileDataRepresentationCustomizer { } + [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Protocol] - interface AVCapturePhotoFileDataRepresentationCustomizer - { + interface AVCapturePhotoFileDataRepresentationCustomizer { [Export ("replacementMetadataForPhoto:")] [return: NullAllowed] NSDictionary GetReplacementMetadata (AVCapturePhoto photo); @@ -14729,23 +14818,22 @@ namespace AVFoundation { [return: NullAllowed] AVPortraitEffectsMatte GetReplacementPortraitEffectsMatte (AVCapturePhoto photo); - [iOS (13,0)] + [iOS (13, 0)] [Export ("replacementSemanticSegmentationMatteOfType:forPhoto:")] [return: NullAllowed] AVSemanticSegmentationMatte GetReplacementSemanticSegmentationMatte (NSString semanticSegmentationMatteType, AVCapturePhoto photo); [Introduced (PlatformName.MacCatalyst, 14, 3)] - [NoWatch, NoTV, NoMac, iOS (14,3)] + [NoWatch, NoTV, NoMac, iOS (14, 3)] [Export ("replacementAppleProRAWCompressionSettingsForPhoto:defaultSettings:maximumBitDepth:")] NSDictionary GetReplacementAppleProRawCompressionSettings (AVCapturePhoto photo, NSDictionary defaultSettings, nint maximumBitDepth); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoTV, iOS (11,0), NoWatch, Mac (10,15)] - [BaseType (typeof(NSObject))] + [NoTV, iOS (11, 0), NoWatch, Mac (10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCapturePhoto - { + interface AVCapturePhoto { [Export ("timestamp")] CMTime Timestamp { get; } @@ -14829,23 +14917,22 @@ namespace AVFoundation { [NullAllowed, Export ("portraitEffectsMatte")] AVPortraitEffectsMatte PortraitEffectsMatte { get; } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Export ("fileDataRepresentationWithCustomizer:")] [return: NullAllowed] NSData GetFileDataRepresentation (IAVCapturePhotoFileDataRepresentationCustomizer customizer); - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Export ("semanticSegmentationMatteForType:")] [return: NullAllowed] AVSemanticSegmentationMatte GetSemanticSegmentationMatte ([BindAs (typeof (AVSemanticSegmentationMatteType))] NSString semanticSegmentationMatteType); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (6,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (6, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPortraitEffectsMatte - { + interface AVPortraitEffectsMatte { [Static] [Export ("portraitEffectsMatteFromDictionaryRepresentation:error:")] [return: NullAllowed] @@ -14869,17 +14956,16 @@ namespace AVFoundation { CVPixelBuffer MattingImage { get; } } - [NoWatch, TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [NoWatch, TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetResourceLoadingRequestor - { + interface AVAssetResourceLoadingRequestor { [Export ("providesExpiredSessionReports")] bool ProvidesExpiredSessionReports { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] enum AVSemanticSegmentationMatteType { [DefaultEnumValue] [Field (null)] @@ -14891,16 +14977,17 @@ namespace AVFoundation { [Field ("AVSemanticSegmentationMatteTypeTeeth")] Teeth, [Introduced (PlatformName.MacCatalyst, 14, 1)] - [iOS (14,1)] - [Mac (11,0)] - [Watch (8,0)][TV (15,0)] + [iOS (14, 1)] + [Mac (11, 0)] + [Watch (8, 0)] + [TV (15, 0)] [Field ("AVSemanticSegmentationMatteTypeGlasses")] Glasses, - } + } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVSemanticSegmentationMatte { @@ -14931,8 +15018,8 @@ namespace AVFoundation { CVPixelBuffer MattingImage { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVCompositionTrackFormatDescriptionReplacement : NSSecureCoding { [Export ("originalFormatDescription")] @@ -14947,8 +15034,8 @@ namespace AVFoundation { delegate /* OSStatus */ int AVAudioSourceNodeRenderHandler (bool isSilence, AudioToolbox.AudioTimeStamp timestamp, uint frameCount, ref AudioBuffers outputData); delegate /* OSStatus */ int AVAudioSourceNodeRenderHandler2 (ref bool isSilence, ref AudioTimeStamp timestamp, uint frameCount, ref AudioBuffers outputData); #endif - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVAudioNode))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] interface AVAudioSourceNode : AVAudioMixing { [Export ("initWithRenderBlock:")] @@ -14970,8 +15057,8 @@ namespace AVFoundation { delegate int AVAudioSinkNodeReceiverHandler (AudioTimeStamp timestamp, uint frameCount, ref AudioBuffers inputData); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVAudioNode))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVAudioNode))] [DisableDefaultCtor] interface AVAudioSinkNode { [Export ("initWithReceiverBlock:")] @@ -14979,8 +15066,8 @@ namespace AVFoundation { NativeHandle Constructor (AVAudioSinkNodeReceiverHandler receiverHandler); } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] interface AVVideoCompositionRenderHint { [Export ("startCompositionTime")] @@ -14990,9 +15077,9 @@ namespace AVFoundation { CMTime EndCompositionTime { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [MacCatalyst (14,0)] - [BaseType (typeof(AVCaptureSession))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (AVCaptureSession))] interface AVCaptureMultiCamSession { [Static] [Export ("multiCamSupported")] @@ -15006,8 +15093,8 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVMetadataObject))] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVMetadataObject))] [DisableDefaultCtor] interface AVMetadataBodyObject : NSCopying { [Export ("bodyID")] @@ -15015,29 +15102,29 @@ namespace AVFoundation { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVMetadataBodyObject))] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVMetadataBodyObject))] [DisableDefaultCtor] interface AVMetadataCatBodyObject : NSCopying { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVMetadataBodyObject))] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVMetadataBodyObject))] [DisableDefaultCtor] interface AVMetadataDogBodyObject : NSCopying { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVMetadataBodyObject))] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVMetadataBodyObject))] [DisableDefaultCtor] interface AVMetadataHumanBodyObject : NSCopying { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (10,15), iOS (13,0)] - [BaseType (typeof(AVMetadataObject))] + [NoWatch, NoTV, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (AVMetadataObject))] [DisableDefaultCtor] interface AVMetadataSalientObject : NSCopying { [Export ("objectID")] @@ -15052,7 +15139,7 @@ namespace AVFoundation { AVAssetSegmentType SegmentType { get; } [Export ("trackReports")] - AVAssetSegmentTrackReport[] TrackReports { get; } + AVAssetSegmentTrackReport [] TrackReports { get; } } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] @@ -15093,11 +15180,10 @@ namespace AVFoundation { AVAssetSegmentReportSampleInformation FirstVideoSampleInformation { get; } } - [NoWatch, NoTV, NoiOS, Mac (11,0), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (11, 0), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAudioRoutingArbiter - { + interface AVAudioRoutingArbiter { [Static] [Export ("sharedRoutingArbiter")] AVAudioRoutingArbiter SharedRoutingArbiter { get; } @@ -15110,9 +15196,9 @@ namespace AVFoundation { } [NoWatch, NoTV] - [iOS (14,5)] - [MacCatalyst (14,5)] - [Mac (12,3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Mac (12, 3)] [Native] public enum AVCaptureCenterStageControlMode : long { User = 0, @@ -15120,11 +15206,10 @@ namespace AVFoundation { Cooperative = 2, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetDownloadConfiguration - { + interface AVAssetDownloadConfiguration { [Static] [Export ("downloadConfigurationWithAsset:title:")] AVAssetDownloadConfiguration Create (AVUrlAsset asset, string title); @@ -15136,28 +15221,26 @@ namespace AVFoundation { AVAssetDownloadContentConfiguration PrimaryContentConfiguration { get; } [Export ("auxiliaryContentConfigurations", ArgumentSemantic.Copy)] - AVAssetDownloadContentConfiguration[] AuxiliaryContentConfigurations { get; set; } + AVAssetDownloadContentConfiguration [] AuxiliaryContentConfigurations { get; set; } [Export ("optimizesAuxiliaryContentConfigurations")] bool OptimizesAuxiliaryContentConfigurations { get; set; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface AVAssetDownloadContentConfiguration : NSCopying - { + interface AVAssetDownloadContentConfiguration : NSCopying { [Export ("variantQualifiers", ArgumentSemantic.Copy)] - AVAssetVariantQualifier[] VariantQualifiers { get; set; } + AVAssetVariantQualifier [] VariantQualifiers { get; set; } [Export ("mediaSelections", ArgumentSemantic.Copy)] - AVMediaSelection[] MediaSelections { get; set; } + AVMediaSelection [] MediaSelections { get; set; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetVariant - { + interface AVAssetVariant { [Export ("peakBitRate")] double PeakBitRate { get; } @@ -15172,32 +15255,29 @@ namespace AVFoundation { } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetVariantAudioAttributes - { + interface AVAssetVariantAudioAttributes { [Export ("formatIDs")] - NSNumber[] FormatIds { get; } + NSNumber [] FormatIds { get; } [Export ("renditionSpecificAttributesForMediaOption:")] [return: NullAllowed] AVAssetVariantAudioRenditionSpecificAttributes GetRenditionSpecificAttributes (AVMediaSelectionOption mediaSelectionOption); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface AVAssetVariantAudioRenditionSpecificAttributes - { + interface AVAssetVariantAudioRenditionSpecificAttributes { [Export ("channelCount")] nint ChannelCount { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetVariantQualifier : NSCopying - { + interface AVAssetVariantQualifier : NSCopying { [Static] [Export ("assetVariantQualifierWithPredicate:")] AVAssetVariantQualifier Create (NSPredicate predicate); @@ -15221,16 +15301,15 @@ namespace AVFoundation { NSPredicate GetPredicateForPresentationHeight (nfloat height, NSPredicateOperatorType operatorType); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetVariantVideoAttributes - { + interface AVAssetVariantVideoAttributes { [Export ("videoRange")] string VideoRange { get; } [Export ("codecTypes")] - NSNumber[] CodecTypes { get; } + NSNumber [] CodecTypes { get; } [Export ("presentationSize")] CGSize PresentationSize { get; } @@ -15239,12 +15318,11 @@ namespace AVFoundation { double NominalFrameRate { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface AVCoordinatedPlaybackParticipant - { + interface AVCoordinatedPlaybackParticipant { [Export ("suspensionReasons")] - string[] SuspensionReasons { get; } + string [] SuspensionReasons { get; } [Export ("readyToPlay")] bool ReadyToPlay { [Bind ("isReadyToPlay")] get; } @@ -15253,11 +15331,10 @@ namespace AVFoundation { NSUuid Identifier { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCoordinatedPlaybackSuspension - { + interface AVCoordinatedPlaybackSuspension { [Export ("reason")] string Reason { get; } @@ -15271,17 +15348,16 @@ namespace AVFoundation { void EndProposingNewTime (CMTime time); } - interface IAVPlaybackCoordinatorPlaybackControlDelegate {} + interface IAVPlaybackCoordinatorPlaybackControlDelegate { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface AVPlaybackCoordinatorPlaybackControlDelegate - { + interface AVPlaybackCoordinatorPlaybackControlDelegate { [Abstract] [Export ("playbackCoordinator:didIssuePlayCommand:completionHandler:")] void DidIssuePlayCommand (AVDelegatingPlaybackCoordinator coordinator, AVDelegatingPlaybackCoordinatorPlayCommand playCommand, Action completionHandler); @@ -15300,11 +15376,10 @@ namespace AVFoundation { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVPlaybackCoordinator))] [DisableDefaultCtor] // throws exception - interface AVDelegatingPlaybackCoordinator - { + interface AVDelegatingPlaybackCoordinator { [Export ("initWithPlaybackControlDelegate:")] NativeHandle Constructor (IAVPlaybackCoordinatorPlaybackControlDelegate playbackControlDelegate); @@ -15331,11 +15406,10 @@ namespace AVFoundation { void ReapplyCurrentItemStateToPlaybackControlDelegate (); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVDelegatingPlaybackCoordinatorPlaybackControlCommand))] [DisableDefaultCtor] - interface AVDelegatingPlaybackCoordinatorBufferingCommand - { + interface AVDelegatingPlaybackCoordinatorBufferingCommand { [Export ("anticipatedPlaybackRate")] float AnticipatedPlaybackRate { get; } @@ -15343,11 +15417,10 @@ namespace AVFoundation { NSDate CompletionDueDate { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVDelegatingPlaybackCoordinatorPlaybackControlCommand))] [DisableDefaultCtor] - interface AVDelegatingPlaybackCoordinatorPauseCommand - { + interface AVDelegatingPlaybackCoordinatorPauseCommand { [Export ("shouldBufferInAnticipationOfPlayback")] bool ShouldBufferInAnticipationOfPlayback { get; } @@ -15355,11 +15428,10 @@ namespace AVFoundation { float AnticipatedPlaybackRate { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVDelegatingPlaybackCoordinatorPlaybackControlCommand))] [DisableDefaultCtor] - interface AVDelegatingPlaybackCoordinatorPlayCommand - { + interface AVDelegatingPlaybackCoordinatorPlayCommand { [Export ("rate")] float Rate { get; } @@ -15370,11 +15442,10 @@ namespace AVFoundation { CMTime HostClockTime { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVDelegatingPlaybackCoordinatorPlaybackControlCommand - { + interface AVDelegatingPlaybackCoordinatorPlaybackControlCommand { [NullAllowed, Export ("originator")] AVCoordinatedPlaybackParticipant Originator { get; } @@ -15382,11 +15453,10 @@ namespace AVFoundation { string ExpectedCurrentItemIdentifier { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVDelegatingPlaybackCoordinatorPlaybackControlCommand))] [DisableDefaultCtor] - interface AVDelegatingPlaybackCoordinatorSeekCommand - { + interface AVDelegatingPlaybackCoordinatorSeekCommand { [Export ("itemTime")] CMTime ItemTime { get; } @@ -15400,11 +15470,10 @@ namespace AVFoundation { NSDate CompletionDueDate { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPlaybackCoordinator - { + interface AVPlaybackCoordinator { [Notification] [Field ("AVPlaybackCoordinatorOtherParticipantsDidChangeNotification")] @@ -15415,10 +15484,10 @@ namespace AVFoundation { NSString SuspensionReasonsDidChangeNotification { get; } [Export ("otherParticipants")] - AVCoordinatedPlaybackParticipant[] OtherParticipants { get; } + AVCoordinatedPlaybackParticipant [] OtherParticipants { get; } [Export ("suspensionReasons")] - string[] SuspensionReasons { get; } + string [] SuspensionReasons { get; } [Export ("beginSuspensionForReason:")] AVCoordinatedPlaybackSuspension BeginSuspension (string suspensionReason); @@ -15434,36 +15503,34 @@ namespace AVFoundation { nint GetParticipantLimit (string reason); [Export ("suspensionReasonsThatTriggerWaiting", ArgumentSemantic.Copy)] - string[] SuspensionReasonsThatTriggerWaiting { get; set; } + string [] SuspensionReasonsThatTriggerWaiting { get; set; } [Export ("pauseSnapsToMediaTimeOfOriginator")] bool PauseSnapsToMediaTimeOfOriginator { get; set; } } - interface IAVPlayerPlaybackCoordinatorDelegate {} + interface IAVPlayerPlaybackCoordinatorDelegate { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface AVPlayerPlaybackCoordinatorDelegate - { + [BaseType (typeof (NSObject))] + interface AVPlayerPlaybackCoordinatorDelegate { [Export ("playbackCoordinator:identifierForPlayerItem:")] string GetIdentifier (AVPlayerPlaybackCoordinator coordinator, AVPlayerItem playerItem); - [TV (15,4), NoWatch, Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), NoWatch, Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("playbackCoordinator:interstitialTimeRangesForPlayerItem:")] NSValue [] GetInterstitialTimeRanges (AVPlayerPlaybackCoordinator coordinator, AVPlayerItem playerItem); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (AVPlaybackCoordinator))] [DisableDefaultCtor] - interface AVPlayerPlaybackCoordinator - { + interface AVPlayerPlaybackCoordinator { [NullAllowed, Export ("player", ArgumentSemantic.Weak)] AVPlayer Player { get; } @@ -15475,21 +15542,19 @@ namespace AVFoundation { NSObject WeakDelegate { get; set; } } - interface IAVAssetReaderCaptionValidationHandling {} + interface IAVAssetReaderCaptionValidationHandling { } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] [Protocol] - interface AVAssetReaderCaptionValidationHandling - { + interface AVAssetReaderCaptionValidationHandling { [Export ("captionAdaptor:didVendCaption:skippingUnsupportedSourceSyntaxElements:")] - void DidVendCaption (AVAssetReaderOutputCaptionAdaptor adaptor, AVCaption caption, string[] syntaxElements); + void DidVendCaption (AVAssetReaderOutputCaptionAdaptor adaptor, AVCaption caption, string [] syntaxElements); } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetReaderOutputCaptionAdaptor - { + interface AVAssetReaderOutputCaptionAdaptor { [Static] [Export ("assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput:")] AVAssetReaderOutputCaptionAdaptor Create (AVAssetReaderTrackOutput trackOutput); @@ -15507,7 +15572,7 @@ namespace AVFoundation { [NoMacCatalyst] [Export ("captionsNotPresentInPreviousGroupsInCaptionGroup:")] - AVCaption[] GetCaptionsNotPresentInPreviousGroups (AVCaptionGroup captionGroup); + AVCaption [] GetCaptionsNotPresentInPreviousGroups (AVCaptionGroup captionGroup); // interface AVAssetReaderOutputCaptionAdaptor_AVAssetReaderCaptionValidation [Wrap ("WeakValidationDelegate")] @@ -15518,11 +15583,10 @@ namespace AVFoundation { NSObject WeakValidationDelegate { get; set; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVAssetWriterInputCaptionAdaptor - { + interface AVAssetWriterInputCaptionAdaptor { [Static] [Export ("assetWriterInputCaptionAdaptorWithAssetWriterInput:")] AVAssetWriterInputCaptionAdaptor Create (AVAssetWriterInput input); @@ -15542,13 +15606,12 @@ namespace AVFoundation { bool AppendCaptionGroup (AVCaptionGroup captionGroup); } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionGroup - { + interface AVCaptionGroup { [Export ("initWithCaptions:timeRange:")] - NativeHandle Constructor (AVCaption[] captions, CMTimeRange timeRange); + NativeHandle Constructor (AVCaption [] captions, CMTimeRange timeRange); [Export ("initWithTimeRange:")] NativeHandle Constructor (CMTimeRange timeRange); @@ -15557,14 +15620,13 @@ namespace AVFoundation { CMTimeRange TimeRange { get; } [Export ("captions")] - AVCaption[] Captions { get; } + AVCaption [] Captions { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaption : NSCopying, NSMutableCopying, NSSecureCoding - { + interface AVCaption : NSCopying, NSMutableCopying, NSSecureCoding { [Export ("initWithText:timeRange:")] [DesignatedInitializer] NativeHandle Constructor (string text, CMTimeRange timeRange); @@ -15587,7 +15649,7 @@ namespace AVFoundation { AVCaptionAnimation Animation { get; } // interface AVCaption_Styling - + [Export ("textColorAtIndex:range:")] [return: NullAllowed] CGColor GetTextColor (nint index, [NullAllowed] out NSRange outRange); @@ -15613,11 +15675,10 @@ namespace AVFoundation { AVCaptionRuby GetRuby (nint index, [NullAllowed] out NSRange outRange); } - [NoWatch, NoTV, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoiOS, Mac (12, 0)] [DisableDefaultCtor] - [BaseType (typeof(AVCaption))] - interface AVMutableCaption - { + [BaseType (typeof (AVCaption))] + interface AVMutableCaption { [Export ("initWithText:timeRange:")] [DesignatedInitializer] NativeHandle Constructor (string text, CMTimeRange timeRange); @@ -15629,7 +15690,7 @@ namespace AVFoundation { CMTimeRange TimeRange { get; set; } // interface AVMutableCaption_Styling - + [Export ("setTextColor:inRange:")] void SetTextColor (CGColor color, NSRange range); @@ -15684,10 +15745,9 @@ namespace AVFoundation { AVCaptionAnimation Animation { get; set; } } - [NoWatch, NoTV, NoiOS, Mac (12,0)] - [BaseType (typeof(NSObject))] - interface AVCaptionRegion : NSCopying, NSMutableCopying, NSSecureCoding - { + [NoWatch, NoTV, NoiOS, Mac (12, 0)] + [BaseType (typeof (NSObject))] + interface AVCaptionRegion : NSCopying, NSMutableCopying, NSSecureCoding { [Static] [Export ("appleITTTopRegion")] AVCaptionRegion AppleIttTopRegion { get; } @@ -15729,10 +15789,9 @@ namespace AVFoundation { #endif } - [NoWatch, NoTV, NoiOS, Mac (12,0)] - [BaseType (typeof(AVCaptionRegion))] - interface AVMutableCaptionRegion - { + [NoWatch, NoTV, NoiOS, Mac (12, 0)] + [BaseType (typeof (AVCaptionRegion))] + interface AVMutableCaptionRegion { [Export ("initWithIdentifier:")] NativeHandle Constructor (string identifier); @@ -15754,11 +15813,10 @@ namespace AVFoundation { #endif } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionRuby : NSCopying, NSSecureCoding - { + interface AVCaptionRuby : NSCopying, NSSecureCoding { [Export ("initWithText:")] [DesignatedInitializer] NativeHandle Constructor (string text); @@ -15776,11 +15834,10 @@ namespace AVFoundation { AVCaptionRubyAlignment Alignment { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionRendererScene : NSCopying - { + interface AVCaptionRendererScene : NSCopying { [Export ("timeRange")] CMTimeRange TimeRange { get; } @@ -15791,41 +15848,39 @@ namespace AVFoundation { bool NeedsPeriodicRefresh { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface AVCaptionRenderer - { + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] + interface AVCaptionRenderer { [Export ("captions", ArgumentSemantic.Copy)] - AVCaption[] Captions { get; set; } + AVCaption [] Captions { get; set; } [Export ("bounds", ArgumentSemantic.Assign)] CGRect Bounds { get; set; } [Export ("captionSceneChangesInRange:")] - AVCaptionRendererScene[] GetCaptionSceneChanges (CMTimeRange consideredTimeRange); + AVCaptionRendererScene [] GetCaptionSceneChanges (CMTimeRange consideredTimeRange); [Export ("renderInContext:forTime:")] void Render (CGContext ctx, CMTime time); } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] - interface AVCaptionGrouper - { + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] + interface AVCaptionGrouper { [Export ("addCaption:")] void AddCaption (AVCaption input); [Export ("flushAddedCaptionsIntoGroupsUpToTime:")] - AVCaptionGroup[] FlushAddedCaptionsIntoGroupsUpToTime (CMTime upToTime); + AVCaptionGroup [] FlushAddedCaptionsIntoGroupsUpToTime (CMTime upToTime); } - - [NoiOS, NoTV, NoMacCatalyst, Mac (12,0), NoWatch] + + [NoiOS, NoTV, NoMacCatalyst, Mac (12, 0), NoWatch] [Static] [Internal] interface AVCaptionSettingsKeys { [Field ("AVCaptionMediaSubTypeKey")] - NSString MediaSubTypeKey { get;} + NSString MediaSubTypeKey { get; } [Field ("AVCaptionMediaTypeKey")] NSString MediaTypeKey { get; } @@ -15836,8 +15891,8 @@ namespace AVFoundation { [Field ("AVCaptionUseDropFrameTimeCodeKey")] NSString UseDropFrameTimeCodeKey { get; } } - - [NoiOS, NoTV, NoMacCatalyst, Mac (12,0), NoWatch] + + [NoiOS, NoTV, NoMacCatalyst, Mac (12, 0), NoWatch] [StrongDictionary ("AVCaptionSettingsKeys")] interface AVCaptionSettings { AVMediaTypes MediaSubType { get; set; } @@ -15845,13 +15900,12 @@ namespace AVFoundation { bool UseTimeCodeFrameDuration { get; set; } bool UseDropFrameTimeCode { get; set; } } - - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionFormatConformer - { + interface AVCaptionFormatConformer { [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] [Export ("captionFormatConformerWithConversionSettings:")] @@ -15876,17 +15930,16 @@ namespace AVFoundation { AVCaption GetConformedCaption (AVCaption caption, [NullAllowed] out NSError outError); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] enum AVCaptionConversionWarningType { [Field ("AVCaptionConversionWarningTypeExcessMediaData")] ExcessMediaData, } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionConversionWarning - { + interface AVCaptionConversionWarning { [Export ("warningType")] string WarningType { get; } @@ -15897,23 +15950,22 @@ namespace AVFoundation { AVCaptionConversionAdjustment Adjustment { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionConversionValidator - { + interface AVCaptionConversionValidator { [Static] [Export ("captionConversionValidatorWithCaptions:timeRange:conversionSettings:")] - AVCaptionConversionValidator Create (AVCaption[] captions, CMTimeRange timeRange, NSDictionary conversionSettings); + AVCaptionConversionValidator Create (AVCaption [] captions, CMTimeRange timeRange, NSDictionary conversionSettings); [Export ("initWithCaptions:timeRange:conversionSettings:")] - NativeHandle Constructor (AVCaption[] captions, CMTimeRange timeRange, NSDictionary conversionSettings); + NativeHandle Constructor (AVCaption [] captions, CMTimeRange timeRange, NSDictionary conversionSettings); [Export ("status")] AVCaptionConversionValidatorStatus Status { get; } [Export ("captions")] - AVCaption[] Captions { get; } + AVCaption [] Captions { get; } [Export ("timeRange")] CMTimeRange TimeRange { get; } @@ -15925,14 +15977,13 @@ namespace AVFoundation { void StopValidating (); [Export ("warnings")] - AVCaptionConversionWarning[] Warnings { get; } + AVCaptionConversionWarning [] Warnings { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(AVCaptionConversionAdjustment))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (AVCaptionConversionAdjustment))] [DisableDefaultCtor] - interface AVCaptionConversionTimeRangeAdjustment - { + interface AVCaptionConversionTimeRangeAdjustment { [Export ("startTimeOffset")] CMTime StartTimeOffset { get; } @@ -15940,17 +15991,16 @@ namespace AVFoundation { CMTime DurationOffset { get; } } - [NoiOS, NoWatch, NoTV, NoMacCatalyst, Mac (12,0)] + [NoiOS, NoWatch, NoTV, NoMacCatalyst, Mac (12, 0)] enum AVCaptionConversionAdjustmentType { [Field ("AVCaptionConversionAdjustmentTypeTimeRange")] - TimeRange, + TimeRange, } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVCaptionConversionAdjustment - { + interface AVCaptionConversionAdjustment { [Export ("adjustmentType")] string AdjustmentType { get; } } diff --git a/src/avkit.cs b/src/avkit.cs index 17526422ff..ffac1b90b5 100644 --- a/src/avkit.cs +++ b/src/avkit.cs @@ -50,62 +50,61 @@ using NativeHandle = System.IntPtr; namespace AVKit { [TV (14, 0)] - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] #if NET [Sealed] // Apple docs: Do not subclass AVPictureInPictureController. Overriding this class’s methods is unsupported and results in undefined behavior. #endif - interface AVPictureInPictureController - { + interface AVPictureInPictureController { [Static] [Export ("isPictureInPictureSupported")] bool IsPictureInPictureSupported { get; } - + [Export ("initWithPlayerLayer:")] NativeHandle Constructor (AVPlayerLayer playerLayer); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithContentSource:")] [DesignatedInitializer] NativeHandle Constructor (AVPictureInPictureControllerContentSource contentSource); - + [Export ("playerLayer")] AVPlayerLayer PlayerLayer { get; } - + [Wrap ("WeakDelegate")] [NullAllowed] IAVPictureInPictureControllerDelegate Delegate { get; set; } - + [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - + [Export ("startPictureInPicture")] void StartPictureInPicture (); - + [Export ("stopPictureInPicture")] void StopPictureInPicture (); - + [Export ("pictureInPicturePossible")] bool PictureInPicturePossible { [Bind ("isPictureInPicturePossible")] get; } - + [Export ("pictureInPictureActive")] bool PictureInPictureActive { [Bind ("isPictureInPictureActive")] get; } - + [Export ("pictureInPictureSuspended")] bool PictureInPictureSuspended { [Bind ("isPictureInPictureSuspended")] get; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("pictureInPictureButtonStartImage")] UIImage PictureInPictureButtonStartImage { get; } - - [iOS (13,0)] + + [iOS (13, 0)] [Static] [Export ("pictureInPictureButtonStopImage")] UIImage PictureInPictureButtonStopImage { get; } - + [NoMac] [Static] [Export ("pictureInPictureButtonStartImageCompatibleWithTraitCollection:")] @@ -120,53 +119,52 @@ namespace AVKit { [Export ("requiresLinearPlayback")] bool RequiresLinearPlayback { get; set; } - [NoWatch, NoMac, NoiOS, MacCatalyst (15,0)] + [NoWatch, NoMac, NoiOS, MacCatalyst (15, 0)] [Export ("canStopPictureInPicture")] bool CanStopPictureInPicture { get; } - [iOS (14,2)] - [NoWatch, NoTV, NoMac, MacCatalyst (15,0)] + [iOS (14, 2)] + [NoWatch, NoTV, NoMac, MacCatalyst (15, 0)] [Export ("canStartPictureInPictureAutomaticallyFromInline")] bool CanStartPictureInPictureAutomaticallyFromInline { get; set; } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("invalidatePlaybackState")] void InvalidatePlaybackState (); [NullAllowed] - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("contentSource", ArgumentSemantic.Strong)] AVPictureInPictureControllerContentSource ContentSource { get; set; } } - - interface IAVPictureInPictureControllerDelegate {} - [iOS (9,0), Mac (10,15), TV (14,0)] + interface IAVPictureInPictureControllerDelegate { } + + [iOS (9, 0), Mac (10, 15), TV (14, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVPictureInPictureControllerDelegate - { + [BaseType (typeof (NSObject))] + interface AVPictureInPictureControllerDelegate { [Export ("pictureInPictureControllerWillStartPictureInPicture:")] void WillStartPictureInPicture (AVPictureInPictureController pictureInPictureController); - + [Export ("pictureInPictureControllerDidStartPictureInPicture:")] void DidStartPictureInPicture (AVPictureInPictureController pictureInPictureController); - + [Export ("pictureInPictureController:failedToStartPictureInPictureWithError:")] void FailedToStartPictureInPicture (AVPictureInPictureController pictureInPictureController, NSError error); - + [Export ("pictureInPictureControllerWillStopPictureInPicture:")] void WillStopPictureInPicture (AVPictureInPictureController pictureInPictureController); - + [Export ("pictureInPictureControllerDidStopPictureInPicture:")] void DidStopPictureInPicture (AVPictureInPictureController pictureInPictureController); - + [Export ("pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")] void RestoreUserInterfaceForPictureInPicture (AVPictureInPictureController pictureInPictureController, Action completionHandler); } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIViewController))] interface AVPlayerViewController { [Export ("initWithNibName:bundle:")] @@ -194,27 +192,27 @@ namespace AVKit { [Export ("contentOverlayView")] UIView ContentOverlayView { get; } - [TV (11,0)] + [TV (11, 0)] [NoiOS] [Export ("unobscuredContentGuide")] UILayoutGuide UnobscuredContentGuide { get; } [TV (14, 0)] - [iOS (9,0)] + [iOS (9, 0)] [Export ("allowsPictureInPicturePlayback")] bool AllowsPictureInPicturePlayback { get; set; } [NoTV] - [iOS (10,0)] + [iOS (10, 0)] [Export ("updatesNowPlayingInfoCenter")] bool UpdatesNowPlayingInfoCenter { get; set; } - [iOS (11,0)] + [iOS (11, 0)] [NoTV] [Export ("entersFullScreenWhenPlaybackBegins")] bool EntersFullScreenWhenPlaybackBegins { get; set; } - [iOS (11,0)] + [iOS (11, 0)] [NoTV] [Export ("exitsFullScreenWhenPlaybackEnds")] bool ExitsFullScreenWhenPlaybackEnds { get; set; } @@ -224,26 +222,28 @@ namespace AVKit { [Protocolize] AVPlayerViewControllerDelegate Delegate { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } [NoMac] - [TV (9,0), iOS (14, 0)] + [TV (9, 0), iOS (14, 0)] [Export ("requiresLinearPlayback")] bool RequiresLinearPlayback { get; set; } -#region AVPlayerViewControllerSubtitleOptions - [NoiOS][NoMac] - [TV (9,0)] + #region AVPlayerViewControllerSubtitleOptions + [NoiOS] + [NoMac] + [TV (9, 0)] [NullAllowed, Export ("allowedSubtitleOptionLanguages", ArgumentSemantic.Copy)] - string[] AllowedSubtitleOptionLanguages { get; set; } + string [] AllowedSubtitleOptionLanguages { get; set; } - [NoiOS][NoMac] - [TV (9,0)] + [NoiOS] + [NoMac] + [TV (9, 0)] [Export ("requiresFullSubtitles")] bool RequiresFullSubtitles { get; set; } -#endregion + #endregion [NullAllowed] [NoiOS, TV (10, 0), NoWatch, NoMac] @@ -278,15 +278,15 @@ namespace AVKit { [Export ("customInfoViewController", ArgumentSemantic.Assign)] UIViewController CustomInfoViewController { get; set; } - [NoiOS, TV (11,2), NoMac, NoWatch] + [NoiOS, TV (11, 2), NoMac, NoWatch] [Export ("appliesPreferredDisplayCriteriaAutomatically")] bool AppliesPreferredDisplayCriteriaAutomatically { get; set; } - - [iOS (9,0), TV (13,0), NoWatch] + + [iOS (9, 0), TV (13, 0), NoWatch] [NullAllowed, Export ("pixelBufferAttributes", ArgumentSemantic.Copy)] NSDictionary PixelBufferAttributes { get; set; } - - [NoiOS, TV (13,0), NoWatch] + + [NoiOS, TV (13, 0), NoWatch] [NullAllowed, Export ("customOverlayViewController", ArgumentSemantic.Strong)] UIViewController CustomOverlayViewController { get; set; } @@ -294,191 +294,202 @@ namespace AVKit { [Export ("showsTimecodes")] bool ShowsTimecodes { get; set; } - [iOS (14,2)] - [NoWatch, NoTV, MacCatalyst (15,0)] + [iOS (14, 2)] + [NoWatch, NoTV, MacCatalyst (15, 0)] [Export ("canStartPictureInPictureAutomaticallyFromInline")] bool CanStartPictureInPictureAutomaticallyFromInline { get; set; } - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("contextualActions", ArgumentSemantic.Copy)] - UIAction[] ContextualActions { get; set; } + UIAction [] ContextualActions { get; set; } - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("infoViewActions", ArgumentSemantic.Copy)] - UIAction[] InfoViewActions { get; set; } + UIAction [] InfoViewActions { get; set; } - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("customInfoViewControllers", ArgumentSemantic.Copy)] - UIViewController[] CustomInfoViewControllers { get; set; } + UIViewController [] CustomInfoViewControllers { get; set; } - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("transportBarCustomMenuItems", ArgumentSemantic.Copy)] - UIMenuElement[] TransportBarCustomMenuItems { get; set; } + UIMenuElement [] TransportBarCustomMenuItems { get; set; } - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Export ("transportBarIncludesTitleView")] bool TransportBarIncludesTitleView { get; set; } - [NoWatch, NoTV, MacCatalyst (16,0), NoMac, iOS (16,0)] + [NoWatch, NoTV, MacCatalyst (16, 0), NoMac, iOS (16, 0)] [Export ("allowsVideoFrameAnalysis")] bool AllowsVideoFrameAnalysis { get; set; } - [iOS (16,0), MacCatalyst (16,0), NoMac, NoWatch, TV (16,0)] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, TV (16, 0)] [Export ("speeds", ArgumentSemantic.Copy)] - AVPlaybackSpeed[] Speeds { get; set; } + AVPlaybackSpeed [] Speeds { get; set; } - [iOS (16,0), MacCatalyst (16,0), NoMac, NoWatch, TV (16,0)] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, TV (16, 0)] [NullAllowed, Export ("selectedSpeed")] AVPlaybackSpeed SelectedSpeed { get; } - [iOS (16,0), MacCatalyst (16,0), NoMac, NoWatch, TV (16,0)] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, TV (16, 0)] [Export ("selectSpeed:")] void SelectSpeed (AVPlaybackSpeed speed); } [NoMac] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface AVPlayerViewControllerDelegate - { + [BaseType (typeof (NSObject))] + interface AVPlayerViewControllerDelegate { [TV (14, 0)] [Export ("playerViewControllerWillStartPictureInPicture:")] void WillStartPictureInPicture (AVPlayerViewController playerViewController); - + [TV (14, 0)] [Export ("playerViewControllerDidStartPictureInPicture:")] void DidStartPictureInPicture (AVPlayerViewController playerViewController); - + [TV (14, 0)] [Export ("playerViewController:failedToStartPictureInPictureWithError:")] void FailedToStartPictureInPicture (AVPlayerViewController playerViewController, NSError error); - + [TV (14, 0)] [Export ("playerViewControllerWillStopPictureInPicture:")] void WillStopPictureInPicture (AVPlayerViewController playerViewController); - + [TV (14, 0)] [Export ("playerViewControllerDidStopPictureInPicture:")] void DidStopPictureInPicture (AVPlayerViewController playerViewController); - + [TV (14, 0)] [Export ("playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart:")] bool ShouldAutomaticallyDismissAtPictureInPictureStart (AVPlayerViewController playerViewController); - + [TV (14, 0)] [Export ("playerViewController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")] void RestoreUserInterfaceForPictureInPicture (AVPlayerViewController playerViewController, Action completionHandler); - [iOS (16,0)][NoMac][NoMacCatalyst][NoWatch] - [TV (9,0)] + [iOS (16, 0)] + [NoMac] + [NoMacCatalyst] + [NoWatch] + [TV (9, 0)] [Export ("playerViewController:didPresentInterstitialTimeRange:")] void DidPresentInterstitialTimeRange (AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial); - [NoiOS][NoMac] - [TV (11,0)] + [NoiOS] + [NoMac] + [TV (11, 0)] [Export ("playerViewControllerShouldDismiss:")] bool ShouldDismiss (AVPlayerViewController playerViewController); - [NoiOS][NoMac] - [TV (11,0)] + [NoiOS] + [NoMac] + [TV (11, 0)] [Export ("playerViewControllerWillBeginDismissalTransition:")] void WillBeginDismissalTransition (AVPlayerViewController playerViewController); - [NoiOS][NoMac] - [TV (11,0)] + [NoiOS] + [NoMac] + [TV (11, 0)] [Export ("playerViewControllerDidEndDismissalTransition:")] void DidEndDismissalTransition (AVPlayerViewController playerViewController); - [iOS (16,0)][NoMac][NoWatch][NoMacCatalyst] - [TV (9,0)] + [iOS (16, 0)] + [NoMac] + [NoWatch] + [NoMacCatalyst] + [TV (9, 0)] [Export ("playerViewController:willPresentInterstitialTimeRange:")] void WillPresentInterstitialTimeRange (AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial); - [NoiOS][NoMac] - [TV (9,0)] + [NoiOS] + [NoMac] + [TV (9, 0)] [Export ("playerViewController:willResumePlaybackAfterUserNavigatedFromTime:toTime:")] void WillResumePlaybackAfterUserNavigatedFromTime (AVPlayerViewController playerViewController, CMTime oldTime, CMTime targetTime); - [NoiOS][NoMac] - [TV (9,0)] + [NoiOS] + [NoMac] + [TV (9, 0)] [Export ("playerViewController:didSelectMediaSelectionOption:inMediaSelectionGroup:")] void DidSelectMediaSelectionOption (AVPlayerViewController playerViewController, [NullAllowed] AVMediaSelectionOption mediaSelectionOption, AVMediaSelectionGroup mediaSelectionGroup); - [NoiOS][NoMac] - [TV (9,0)] + [NoiOS] + [NoMac] + [TV (9, 0)] [Export ("playerViewController:didSelectExternalSubtitleOptionLanguage:")] void DidSelectExternalSubtitleOptionLanguage (AVPlayerViewController playerViewController, string language); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("playerViewController:timeToSeekAfterUserNavigatedFromTime:toTime:")] CMTime GetTimeToSeekAfterUserNavigated (AVPlayerViewController playerViewController, CMTime oldTime, CMTime targetTime); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("skipToNextItemForPlayerViewController:")] void SkipToNextItem (AVPlayerViewController playerViewController); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("skipToPreviousItemForPlayerViewController:")] void SkipToPreviousItem (AVPlayerViewController playerViewController); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("playerViewController:shouldPresentContentProposal:")] bool ShouldPresentContentProposal (AVPlayerViewController playerViewController, AVContentProposal proposal); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("playerViewController:didAcceptContentProposal:")] void DidAcceptContentProposal (AVPlayerViewController playerViewController, AVContentProposal proposal); - [NoiOS, TV (10,0), NoWatch, NoMac] + [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("playerViewController:didRejectContentProposal:")] void DidRejectContentProposal (AVPlayerViewController playerViewController, AVContentProposal proposal); - [NoiOS, TV (11,0), NoWatch, NoMac] + [NoiOS, TV (11, 0), NoWatch, NoMac] [Export ("playerViewController:willTransitionToVisibilityOfTransportBar:withAnimationCoordinator:")] void WillTransitionToVisibilityOfTransportBar (AVPlayerViewController playerViewController, bool visible, IAVPlayerViewControllerAnimationCoordinator coordinator); - - [iOS (13,0), NoTV, NoWatch, NoMac] + + [iOS (13, 0), NoTV, NoWatch, NoMac] [Export ("playerViewController:willBeginFullScreenPresentationWithAnimationCoordinator:"), EventArgs ("AVPlayerViewFullScreenPresentationWillBegin")] void WillBeginFullScreenPresentation (AVPlayerViewController playerViewController, IUIViewControllerTransitionCoordinator coordinator); - - [iOS (13,0), NoTV, NoWatch, NoMac] + + [iOS (13, 0), NoTV, NoWatch, NoMac] [Export ("playerViewController:willEndFullScreenPresentationWithAnimationCoordinator:"), EventArgs ("AVPlayerViewFullScreenPresentationWillEnd")] void WillEndFullScreenPresentation (AVPlayerViewController playerViewController, IUIViewControllerTransitionCoordinator coordinator); - - [TV (13,0), NoiOS, NoWatch, NoMac] + + [TV (13, 0), NoiOS, NoWatch, NoMac] [Export ("nextChannelInterstitialViewControllerForPlayerViewController:")] UIViewController GetNextChannelInterstitialViewController (AVPlayerViewController playerViewController); - - [TV (13,0), NoiOS, NoWatch, NoMac] + + [TV (13, 0), NoiOS, NoWatch, NoMac] [Export ("playerViewController:skipToNextChannel:"), EventArgs ("AVPlayerViewSkipToNextChannel")] void SkipToNextChannel (AVPlayerViewController playerViewController, Action completion); - - [TV (13,0), NoiOS, NoWatch, NoMac] + + [TV (13, 0), NoiOS, NoWatch, NoMac] [Export ("playerViewController:skipToPreviousChannel:"), EventArgs ("AVPlayerViewSkipToPreviousChannel")] void SkipToPreviousChannel (AVPlayerViewController playerViewController, Action completion); - - [TV (13,0), NoiOS, NoWatch, NoMac] + + [TV (13, 0), NoiOS, NoWatch, NoMac] [Export ("previousChannelInterstitialViewControllerForPlayerViewController:")] UIViewController GetPreviousChannelInterstitialViewController (AVPlayerViewController playerViewController); - [iOS (15,0), NoTV, NoMac, NoWatch, MacCatalyst (15,0)] + [iOS (15, 0), NoTV, NoMac, NoWatch, MacCatalyst (15, 0)] [Export ("playerViewController:restoreUserInterfaceForFullScreenExitWithCompletionHandler:")] void RestoreUserInterfaceForFullScreenExit (AVPlayerViewController playerViewController, Action completionHandler); } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Category] - [BaseType (typeof(AVAudioSession))] + [BaseType (typeof (AVAudioSession))] interface AVAudioSession_AVPlaybackRouteSelecting { - [Async (ResultTypeName="PreparingRouteSelectionForPlayback")] + [Async (ResultTypeName = "PreparingRouteSelectionForPlayback")] [Export ("prepareRouteSelectionForPlaybackWithCompletionHandler:")] void PrepareRouteSelectionForPlayback (Action completionHandler); } interface IAVPlayerViewControllerAnimationCoordinator { } - [NoiOS, TV (11,0), NoWatch, NoMac] + [NoiOS, TV (11, 0), NoWatch, NoMac] [Protocol] interface AVPlayerViewControllerAnimationCoordinator { @@ -488,7 +499,7 @@ namespace AVKit { } [NoiOS, NoWatch, NoTV] - [Mac (10,9)] + [Mac (10, 9)] [BaseType (typeof (NSView))] interface AVPlayerView { [Export ("initWithFrame:")] @@ -501,24 +512,24 @@ namespace AVKit { [Export ("controlsStyle")] AVPlayerViewControlsStyle ControlsStyle { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("videoGravity")] string VideoGravity { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("readyForDisplay")] bool ReadyForDisplay { [Bind ("isReadyForDisplay")] get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("videoBounds")] CGRect VideoBounds { get; } [NullAllowed] - [Mac (10,10)] + [Mac (10, 10)] [Export ("contentOverlayView")] NSView ContentOverlayView { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("updatesNowPlayingInfoCenter")] bool UpdatesNowPlayingInfoCenter { get; set; } @@ -544,42 +555,42 @@ namespace AVKit { [Export ("showsSharingServiceButton")] bool ShowsSharingServiceButton { get; set; } - - [Mac (10,15)] + + [Mac (10, 15)] [Export ("allowsPictureInPicturePlayback")] bool AllowsPictureInPicturePlayback { get; set; } - - [Mac (10,15)] + + [Mac (10, 15)] [Wrap ("WeakPictureInPictureDelegate")] [NullAllowed] IAVPlayerViewPictureInPictureDelegate PictureInPictureDelegate { get; set; } - - [Mac (10,15)] + + [Mac (10, 15)] [NullAllowed, Export ("pictureInPictureDelegate", ArgumentSemantic.Weak)] NSObject WeakPictureInPictureDelegate { get; set; } - - [Mac (10,15)] + + [Mac (10, 15)] [Export ("showsTimecodes")] bool ShowsTimecodes { get; set; } - [Mac (12,0)] + [Mac (12, 0)] [Wrap ("WeakDelegate")] [Protocolize] AVPlayerViewDelegate Delegate { get; set; } - [Mac (12,0)] + [Mac (12, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [Export ("speeds", ArgumentSemantic.Copy)] - AVPlaybackSpeed[] Speeds { get; set; } + AVPlaybackSpeed [] Speeds { get; set; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [NullAllowed, Export ("selectedSpeed")] AVPlaybackSpeed SelectedSpeed { get; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [Export ("selectSpeed:")] void SelectSpeed (AVPlaybackSpeed speed); @@ -587,29 +598,29 @@ namespace AVKit { [Export ("allowsVideoFrameAnalysis")] bool AllowsVideoFrameAnalysis { get; set; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [Export ("allowsMagnification")] bool AllowsMagnification { get; set; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [Export ("magnification")] nfloat Magnification { get; set; } - [Mac (13,0), NoWatch, NoiOS, NoMacCatalyst, NoTV] + [Mac (13, 0), NoWatch, NoiOS, NoMacCatalyst, NoTV] [Export ("setMagnification:centeredAtPoint:")] void SetMagnification (nfloat magnification, CGPoint centeredAtPoint); } - interface IAVPlayerViewPictureInPictureDelegate {} + interface IAVPlayerViewPictureInPictureDelegate { } [NoiOS, NoWatch, NoTV] - [Mac (10,15)] + [Mac (10, 15)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface AVPlayerViewPictureInPictureDelegate { [Export ("playerViewWillStartPictureInPicture:")] @@ -635,7 +646,7 @@ namespace AVKit { } [NoiOS, NoWatch, NoTV] - [Mac (10,10)] + [Mac (10, 10)] [BaseType (typeof (NSView))] interface AVCaptureView { [Export ("initWithFrame:")] @@ -665,7 +676,7 @@ namespace AVKit { [NoiOS, NoWatch, NoTV] [Protocol, Model] - [Mac (10,10)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface AVCaptureViewDelegate { [Abstract] @@ -673,8 +684,11 @@ namespace AVKit { void StartRecording (AVCaptureView captureView, AVCaptureFileOutput fileOutput); } - [iOS (16,0)][NoMac][NoMacCatalyst][NoWatch] - [TV (9,0)] + [iOS (16, 0)] + [NoMac] + [NoMacCatalyst] + [NoWatch] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface AVInterstitialTimeRange : NSCopying, NSSecureCoding { [Export ("initWithTimeRange:")] @@ -685,38 +699,38 @@ namespace AVKit { CMTimeRange TimeRange { get; } } - [NoiOS][NoMac] - [TV (9,0)] + [NoiOS] + [NoMac] + [TV (9, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface AVNavigationMarkersGroup { [Export ("initWithTitle:timedNavigationMarkers:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string title, AVTimedMetadataGroup[] navigationMarkers); + NativeHandle Constructor ([NullAllowed] string title, AVTimedMetadataGroup [] navigationMarkers); [Export ("initWithTitle:dateRangeNavigationMarkers:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string title, AVDateRangeMetadataGroup[] navigationMarkers); + NativeHandle Constructor ([NullAllowed] string title, AVDateRangeMetadataGroup [] navigationMarkers); [NullAllowed, Export ("title")] string Title { get; } [NullAllowed, Export ("timedNavigationMarkers")] - AVTimedMetadataGroup[] TimedNavigationMarkers { get; } + AVTimedMetadataGroup [] TimedNavigationMarkers { get; } [NullAllowed, Export ("dateRangeNavigationMarkers")] - AVDateRangeMetadataGroup[] DateRangeNavigationMarkers { get; } + AVDateRangeMetadataGroup [] DateRangeNavigationMarkers { get; } } - + [NoMac] - [NoiOS, TV (10,0), NoWatch] - [BaseType (typeof(UIViewController))] - interface AVContentProposalViewController - { + [NoiOS, TV (10, 0), NoWatch] + [BaseType (typeof (UIViewController))] + interface AVContentProposalViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - + [NullAllowed, Export ("contentProposal")] AVContentProposal ContentProposal { get; } @@ -738,7 +752,7 @@ namespace AVKit { [Static] [NoMac] - [NoiOS, TV (10,1), NoWatch] + [NoiOS, TV (10, 1), NoWatch] interface AVKitMetadataIdentifier { [Field ("AVKitMetadataIdentifierExternalContentIdentifier")] @@ -748,29 +762,29 @@ namespace AVKit { [Field ("AVKitMetadataIdentifierPlaybackProgress")] NSString PlaybackProgress { get; } - [TV (11,0)] + [TV (11, 0)] [Field ("AVKitMetadataIdentifierExactStartDate")] NSString ExactStartDate { get; } - [TV (11,0)] + [TV (11, 0)] [Field ("AVKitMetadataIdentifierApproximateStartDate")] NSString ApproximateStartDate { get; } - [TV (11,0)] + [TV (11, 0)] [Field ("AVKitMetadataIdentifierExactEndDate")] NSString ExactEndDate { get; } - [TV (11,0)] + [TV (11, 0)] [Field ("AVKitMetadataIdentifierApproximateEndDate")] NSString ApproximateEndDate { get; } - [TV (11,0)] + [TV (11, 0)] [Field ("AVKitMetadataIdentifierServiceIdentifier")] NSString ServiceIdentifier { get; } } - [Mac (10,15)] - [TV (11,0), iOS (11,0)] + [Mac (10, 15)] + [TV (11, 0), iOS (11, 0)] [BaseType (typeof (UIView))] interface AVRoutePickerView { @@ -780,7 +794,7 @@ namespace AVKit { [Wrap ("WeakDelegate", IsVirtual = true)] [NullAllowed] IAVRoutePickerViewDelegate Delegate { get; set; } - + [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } @@ -789,12 +803,12 @@ namespace AVKit { UIColor ActiveTintColor { get; set; } [NoiOS, NoMac, NoWatch, NoMacCatalyst] - [TV (11,0)] + [TV (11, 0)] [Export ("routePickerButtonStyle", ArgumentSemantic.Assign)] AVRoutePickerViewButtonStyle RoutePickerButtonStyle { get; set; } [NoMac] - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("prioritizesVideoDevices")] bool PrioritizesVideoDevices { get; set; } @@ -814,13 +828,13 @@ namespace AVKit { [NullAllowed, Export ("player", ArgumentSemantic.Assign)] AVPlayer Player { get; set; } - [NoTV, NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch] + [NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch] [NullAllowed, Export ("customRoutingController", ArgumentSemantic.Assign)] AVCustomRoutingController CustomRoutingController { get; set; } } [NoiOS, NoMac, NoWatch, NoMacCatalyst] - [TV (11,0)] + [TV (11, 0)] [Native] public enum AVRoutePickerViewButtonStyle : long { System, @@ -830,8 +844,8 @@ namespace AVKit { interface IAVRoutePickerViewDelegate { } - [TV (11,0), iOS (11,0)] - [Mac (10,15)] + [TV (11, 0), iOS (11, 0)] + [Mac (10, 15)] [Protocol, Model] [BaseType (typeof (NSObject))] interface AVRoutePickerViewDelegate { @@ -843,22 +857,22 @@ namespace AVKit { void DidEndPresentingRoutes (AVRoutePickerView routePickerView); } - [TV (11,2), NoiOS, NoMac, NoWatch] + [TV (11, 2), NoiOS, NoMac, NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface AVDisplayManager { - [TV (11,3)] + [TV (11, 3)] [Field ("AVDisplayManagerModeSwitchStartNotification")] [Notification] NSString ModeSwitchStartNotification { get; } - [TV (11,3)] + [TV (11, 3)] [Field ("AVDisplayManagerModeSwitchEndNotification")] [Notification] NSString ModeSwitchEndNotification { get; } - [TV (11,3)] + [TV (11, 3)] [Field ("AVDisplayManagerModeSwitchSettingsChangedNotification")] [Notification] NSString ModeSwitchSettingsChangedNotification { get; } @@ -869,12 +883,12 @@ namespace AVKit { [Export ("displayModeSwitchInProgress")] bool DisplayModeSwitchInProgress { [Bind ("isDisplayModeSwitchInProgress")] get; } - [TV (11,3)] + [TV (11, 3)] [Export ("displayCriteriaMatchingEnabled")] bool DisplayCriteriaMatchingEnabled { [Bind ("isDisplayCriteriaMatchingEnabled")] get; } } - [TV (11,2), NoiOS, NoMac, NoWatch] + [TV (11, 2), NoiOS, NoMac, NoWatch] [Category] [BaseType (typeof (UIWindow))] interface UIWindow_AVAdditions { @@ -883,7 +897,7 @@ namespace AVKit { AVDisplayManager GetAVDisplayManager (); } - [NoTV, NoWatch, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoWatch, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UIViewController))] interface AVPictureInPictureVideoCallViewController { [DesignatedInitializer] @@ -891,11 +905,10 @@ namespace AVKit { NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPictureInPictureControllerContentSource - { + interface AVPictureInPictureControllerContentSource { [Export ("initWithPlayerLayer:")] NativeHandle Constructor (AVPlayerLayer playerLayer); @@ -934,17 +947,16 @@ namespace AVKit { NSObject WeakSampleBufferPlaybackDelegate { get; } } - interface IAVPictureInPictureSampleBufferPlaybackDelegate {} + interface IAVPictureInPictureSampleBufferPlaybackDelegate { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface AVPictureInPictureSampleBufferPlaybackDelegate - { + [BaseType (typeof (NSObject))] + interface AVPictureInPictureSampleBufferPlaybackDelegate { [Abstract] [Export ("pictureInPictureController:setPlaying:")] void SetPlaying (AVPictureInPictureController pictureInPictureController, bool playing); @@ -969,15 +981,14 @@ namespace AVKit { bool ShouldProhibitBackgroundAudioPlayback (AVPictureInPictureController pictureInPictureController); } - [Mac (12,0), NoiOS, NoTV, NoMacCatalyst] + [Mac (12, 0), NoiOS, NoTV, NoMacCatalyst] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface AVPlayerViewDelegate - { + [BaseType (typeof (NSObject))] + interface AVPlayerViewDelegate { [Export ("playerViewWillEnterFullScreen:")] void WillEnterFullScreen (AVPlayerView playerView); @@ -994,8 +1005,11 @@ namespace AVKit { void RestoreUserInterfaceForFullScreenExit (AVPlayerView playerView, Action completionHandler); } - [Mac (10,10)] - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [Mac (10, 10)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Native] public enum AVCaptureViewControlsStyle : long { Inline, @@ -1004,22 +1018,24 @@ namespace AVKit { Default = Inline, } - [Mac (10,9)] - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [Mac (10, 9)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Native] public enum AVPlayerViewTrimResult : long { OKButton, CancelButton, } - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface AVPlaybackSpeed - { + interface AVPlaybackSpeed { [Static] [Export ("systemDefaultSpeeds")] - AVPlaybackSpeed[] SystemDefaultSpeeds { get; } + AVPlaybackSpeed [] SystemDefaultSpeeds { get; } [Export ("initWithRate:localizedName:")] NativeHandle Constructor (float rate, string localizedName); @@ -1036,17 +1052,16 @@ namespace AVKit { delegate void AVCustomRoutingControllerDelegateCompletionHandler (bool success); - interface IAVCustomRoutingControllerDelegate {} + interface IAVCustomRoutingControllerDelegate { } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface AVCustomRoutingControllerDelegate - { + interface AVCustomRoutingControllerDelegate { [Abstract] [Export ("customRoutingController:handleEvent:completionHandler:")] void HandleEvent (AVCustomRoutingController controller, AVCustomRoutingEvent @event, AVCustomRoutingControllerDelegateCompletionHandler completionHandler); diff --git a/src/avrouting.cs b/src/avrouting.cs index 6a7c7b9128..2fb446c0d0 100644 --- a/src/avrouting.cs +++ b/src/avrouting.cs @@ -22,19 +22,17 @@ using OS_nw_endpoint = ObjCRuntime.NativeHandle; namespace AVRouting { - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV, NoWatch] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV, NoWatch] [Native] - public enum AVCustomRoutingEventReason : long - { + public enum AVCustomRoutingEventReason : long { Activate = 0, Deactivate, Reactivate, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface AVCustomDeviceRoute - { + interface AVCustomDeviceRoute { [Internal] [Export ("networkEndpoint")] OS_nw_endpoint _NetworkEndpoint { get; } @@ -43,10 +41,9 @@ namespace AVRouting { NSUuid BluetoothIdentifier { get; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface AVCustomRoutingActionItem - { + interface AVCustomRoutingActionItem { [Export ("type", ArgumentSemantic.Copy)] UTType Type { get; set; } @@ -54,10 +51,9 @@ namespace AVRouting { string OverrideTitle { get; set; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface AVCustomRoutingController - { + interface AVCustomRoutingController { [Wrap ("WeakDelegate")] IAVCustomRoutingControllerDelegate Delegate { get; set; } @@ -65,10 +61,10 @@ namespace AVRouting { NSObject WeakDelegate { get; set; } [Export ("authorizedRoutes")] - AVCustomDeviceRoute[] AuthorizedRoutes { get; } + AVCustomDeviceRoute [] AuthorizedRoutes { get; } [Export ("customActionItems", ArgumentSemantic.Strong)] - AVCustomRoutingActionItem[] CustomActionItems { get; set; } + AVCustomRoutingActionItem [] CustomActionItems { get; set; } [Export ("invalidateAuthorizationForRoute:")] void InvalidateAuthorization (AVCustomDeviceRoute route); @@ -79,15 +75,14 @@ namespace AVRouting { [Export ("isRouteActive:")] bool IsRouteActive (AVCustomDeviceRoute route); - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Notification, Field ("AVCustomRoutingControllerAuthorizedRoutesDidChangeNotification")] NSString AuthorizedRoutesDidChangeNotification { get; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface AVCustomRoutingEvent - { + interface AVCustomRoutingEvent { [Export ("reason")] AVCustomRoutingEventReason Reason { get; } diff --git a/src/backgroundassets.cs b/src/backgroundassets.cs index 8edcb9478f..400a32ff46 100644 --- a/src/backgroundassets.cs +++ b/src/backgroundassets.cs @@ -18,7 +18,7 @@ using NativeHandle = System.IntPtr; #endif namespace BackgroundAssets { - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum BADownloadState : long { Failed = -1, @@ -28,7 +28,7 @@ namespace BackgroundAssets { Finished, } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum BAContentRequest : long { Install = 1, @@ -36,11 +36,10 @@ namespace BackgroundAssets { Periodic, } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface BADownload : NSCoding, NSSecureCoding, NSCopying - { + interface BADownload : NSCoding, NSSecureCoding, NSCopying { [Export ("state")] BADownloadState State { get; } @@ -55,18 +54,18 @@ namespace BackgroundAssets { } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface BAAppExtensionInfo : NSSecureCoding { + interface BAAppExtensionInfo : NSSecureCoding { - [Mac (13,0), iOS (16,1), MacCatalyst (16,1)] + [Mac (13, 0), iOS (16, 1), MacCatalyst (16, 1)] [NullAllowed] [Export ("restrictedDownloadSizeRemaining", ArgumentSemantic.Strong)] NSNumber RestrictedDownloadSizeRemaining { get; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol] interface BADownloaderExtension { @@ -86,17 +85,17 @@ namespace BackgroundAssets { NSSet GetDownloads (BAContentRequest contentRequest, NSUrl manifestUrl, BAAppExtensionInfo extensionInfo); } - interface IBADownloadManagerDelegate {} + interface IBADownloadManagerDelegate { } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface BADownloadManagerDelegate - { + interface BADownloadManagerDelegate { [Export ("downloadDidBegin:")] void DidBegin (BADownload download); @@ -116,11 +115,10 @@ namespace BackgroundAssets { void Finished (BADownload download, NSUrl fileUrl); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface BADownloadManager - { + interface BADownloadManager { [Static] [Export ("sharedManager", ArgumentSemantic.Strong)] BADownloadManager SharedManager { get; } @@ -148,16 +146,15 @@ namespace BackgroundAssets { [Export ("cancelDownload:error:")] bool CancelDownload (BADownload download, [NullAllowed] out NSError error); - [MacCatalyst (16,1), iOS (16,1)] + [MacCatalyst (16, 1), iOS (16, 1)] [Export ("performWithExclusiveControlBeforeDate:performHandler:")] void PerformWithExclusiveControlBeforeDate (NSDate date, Action performHandler); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (BADownload), Name = "BAURLDownload")] [DisableDefaultCtor] - interface BAUrlDownload - { + interface BAUrlDownload { [Field ("BADownloaderPriorityMin")] nint MinPriority { get; } diff --git a/src/backgroundtasks.cs b/src/backgroundtasks.cs index dc0d11b47d..43a4266ef6 100644 --- a/src/backgroundtasks.cs +++ b/src/backgroundtasks.cs @@ -18,7 +18,7 @@ using NativeHandle = System.IntPtr; namespace BackgroundTasks { - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (BGTaskRequest))] [DisableDefaultCtor] interface BGAppRefreshTaskRequest { @@ -26,7 +26,7 @@ namespace BackgroundTasks { NativeHandle Constructor (string identifier); } - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (BGTaskRequest))] [DisableDefaultCtor] interface BGProcessingTaskRequest { @@ -41,7 +41,7 @@ namespace BackgroundTasks { } [Abstract] - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface BGTaskRequest : NSCopying { @@ -52,7 +52,7 @@ namespace BackgroundTasks { NSDate EarliestBeginDate { get; set; } } - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface BGTask { @@ -66,19 +66,19 @@ namespace BackgroundTasks { void SetTaskCompleted (bool success); } - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (BGTask))] [DisableDefaultCtor] interface BGAppRefreshTask { } - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (BGTask))] [DisableDefaultCtor] interface BGProcessingTask { } - [TV (13,0), NoWatch, NoMac, iOS (13,0)] + [TV (13, 0), NoWatch, NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface BGTaskScheduler { diff --git a/src/businesschat.cs b/src/businesschat.cs index 11c27724b6..30371ad638 100644 --- a/src/businesschat.cs +++ b/src/businesschat.cs @@ -24,8 +24,8 @@ using NativeHandle = System.IntPtr; namespace BusinessChat { - [Mac (10,13,4), iOS (11,3)] - [BaseType (typeof(UIControl))] + [Mac (10, 13, 4), iOS (11, 3)] + [BaseType (typeof (UIControl))] [DisableDefaultCtor] interface BCChatButton { [Export ("initWithStyle:")] @@ -34,8 +34,8 @@ namespace BusinessChat { } - [Mac (10,13,4), iOS (11,3)] - [BaseType (typeof(NSObject))] + [Mac (10, 13, 4), iOS (11, 3)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface BCChatAction { diff --git a/src/callkit.cs b/src/callkit.cs index a4d7e8105a..e7acd0c6d1 100644 --- a/src/callkit.cs +++ b/src/callkit.cs @@ -27,7 +27,7 @@ namespace CallKit { Enabled = 2 } - [iOS (10, 0), NoMac, MacCatalyst (14,0), Watch (9,0)] + [iOS (10, 0), NoMac, MacCatalyst (14, 0), Watch (9, 0)] [ErrorDomain ("CXErrorDomain")] [Native] public enum CXErrorCode : long { @@ -77,12 +77,11 @@ namespace CallKit { UnexpectedIncrementalRemoval = 8, } - [iOS (14,5), Watch (9,0), NoTV, NoMac] + [iOS (14, 5), Watch (9, 0), NoTV, NoMac] [Introduced (PlatformName.MacCatalyst, 14, 5)] [ErrorDomain ("CXErrorDomainNotificationServiceExtension")] [Native] - public enum CXErrorCodeNotificationServiceExtensionError : long - { + public enum CXErrorCodeNotificationServiceExtensionError : long { Unknown = 0, InvalidClientProcess = 1, MissingNotificationFilteringEntitlement = 2, @@ -91,10 +90,10 @@ namespace CallKit { #if NET [NoMac] #else - [Mac (11,0)] - [Obsoleted (PlatformName.MacOSX, 12,1)] + [Mac (11, 0)] + [Obsoleted (PlatformName.MacOSX, 12, 1)] #endif - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [iOS (10, 0)] [Native] public enum CXPlayDtmfCallActionType : long { @@ -106,10 +105,10 @@ namespace CallKit { #if NET [NoMac] #else - [Mac (11,0)] - [Obsoleted (PlatformName.MacOSX, 12,1)] + [Mac (11, 0)] + [Obsoleted (PlatformName.MacOSX, 12, 1)] #endif - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [iOS (10, 0)] [Native] public enum CXCallEndedReason : long { @@ -123,10 +122,10 @@ namespace CallKit { #if NET [NoMac] #else - [Mac (11,0)] - [Obsoleted (PlatformName.MacOSX, 12,1)] + [Mac (11, 0)] + [Obsoleted (PlatformName.MacOSX, 12, 1)] #endif - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] [iOS (10, 0)] [Native] public enum CXHandleType : long { @@ -135,7 +134,7 @@ namespace CallKit { EmailAddress = 3, } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CXHandle : NSCopying, NSSecureCoding { @@ -154,7 +153,7 @@ namespace CallKit { bool IsEqual (CXHandle handle); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated interface CXAction : NSCopying, NSSecureCoding { @@ -179,7 +178,7 @@ namespace CallKit { void Fail (); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (CXCallAction))] [DisableDefaultCtor] interface CXAnswerCallAction { @@ -192,7 +191,7 @@ namespace CallKit { void Fulfill (NSDate dateConnected); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CXCall { @@ -216,7 +215,7 @@ namespace CallKit { bool IsEqual (CXCall call); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (CXAction))] [DisableDefaultCtor] interface CXCallAction { @@ -229,7 +228,7 @@ namespace CallKit { NativeHandle Constructor (NSUuid callUuid); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] interface CXCallController { @@ -244,12 +243,12 @@ namespace CallKit { [Export ("requestTransaction:completion:")] void RequestTransaction (CXTransaction transaction, Action completion); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("requestTransactionWithActions:completion:")] - void RequestTransaction (CXAction[] actions, Action completion); + void RequestTransaction (CXAction [] actions, Action completion); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("requestTransactionWithAction:completion:")] void RequestTransaction (CXAction action, Action completion); @@ -276,27 +275,28 @@ namespace CallKit { [Export ("incremental")] bool Incremental { [Bind ("isIncremental")] get; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("removeBlockingEntryWithPhoneNumber:")] void RemoveBlockingEntry (/* CXCallDirectoryPhoneNumber -> int64_t */ long phoneNumber); - [iOS (11,0)] + [iOS (11, 0)] [Export ("removeAllBlockingEntries")] void RemoveAllBlockingEntries (); - [iOS (11,0)] + [iOS (11, 0)] [Export ("removeIdentificationEntryWithPhoneNumber:")] void RemoveIdentificationEntry (/* CXCallDirectoryPhoneNumber -> int64_t */ long phoneNumber); - [iOS (11,0)] + [iOS (11, 0)] [Export ("removeAllIdentificationEntries")] void RemoveAllIdentificationEntries (); } - interface ICXCallDirectoryExtensionContextDelegate {} + interface ICXCallDirectoryExtensionContextDelegate { } [iOS (10, 0), NoMac, NoWatch] - [Protocol][Model] + [Protocol] + [Model] [BaseType (typeof (NSObject))] interface CXCallDirectoryExtensionContextDelegate { @@ -321,7 +321,7 @@ namespace CallKit { [Export ("getEnabledStatusForExtensionWithIdentifier:completionHandler:")] void GetEnabledStatusForExtension (string identifier, Action completion); - [NoWatch, NoTV, NoMac, iOS (13,4), MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (13, 4), MacCatalyst (14, 0)] [Async] [Export ("openSettingsWithCompletionHandler:")] void OpenSettings ([NullAllowed] Action completion); @@ -335,7 +335,7 @@ namespace CallKit { interface ICXCallObserverDelegate { } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface CXCallObserverDelegate { @@ -345,7 +345,7 @@ namespace CallKit { void CallChanged (CXCallObserver callObserver, CXCall call); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] interface CXCallObserver { @@ -356,7 +356,7 @@ namespace CallKit { void SetDelegate ([NullAllowed] ICXCallObserverDelegate aDelegate, [NullAllowed] DispatchQueue queue); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] interface CXCallUpdate : NSCopying { @@ -382,7 +382,7 @@ namespace CallKit { bool HasVideo { get; set; } } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [DisableDefaultCtor] [BaseType (typeof (CXCallAction))] interface CXEndCallAction { @@ -395,7 +395,7 @@ namespace CallKit { void Fulfill (NSDate dateEnded); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [DisableDefaultCtor] [BaseType (typeof (CXCallAction), Name = "CXPlayDTMFCallAction")] interface CXPlayDtmfCallAction { @@ -414,7 +414,7 @@ namespace CallKit { interface ICXProviderDelegate { } [Protocol, Model] - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] interface CXProviderDelegate { @@ -462,7 +462,9 @@ namespace CallKit { void DidDeactivateAudioSession (CXProvider provider, AVAudioSession audioSession); } - [iOS (10, 0)] [NoMac] [Watch (9,0)] + [iOS (10, 0)] + [NoMac] + [Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CXProvider { @@ -490,7 +492,7 @@ namespace CallKit { [Export ("reportOutgoingCallWithUUID:connectedAtDate:")] void ReportConnectedOutgoingCall (NSUuid uuid, [NullAllowed] NSDate dateConnected); - [NoWatch, NoTV, NoMac, iOS (14,5)] + [NoWatch, NoTV, NoMac, iOS (14, 5)] [Introduced (PlatformName.MacCatalyst, 14, 5)] [Static, Async] [Export ("reportNewIncomingVoIPPushPayload:completion:")] @@ -509,7 +511,7 @@ namespace CallKit { CXCallAction [] GetPendingCallActions (Class callActionClass, NSUuid callUuid); } - [iOS (10, 0), Mac (11, 0), Watch (9,0)] + [iOS (10, 0), Mac (11, 0), Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CXProviderConfiguration : NSCopying { @@ -549,13 +551,15 @@ namespace CallKit { NativeHandle Constructor (string localizedName); [iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); } - [iOS (10, 0)] [NoMac] [Watch (9,0)] + [iOS (10, 0)] + [NoMac] + [Watch (9, 0)] [BaseType (typeof (CXCallAction))] [DisableDefaultCtor] interface CXSetGroupCallAction { @@ -568,7 +572,7 @@ namespace CallKit { NSUuid CallUuidToGroupWith { get; set; } } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [DisableDefaultCtor] [BaseType (typeof (CXCallAction))] interface CXSetHeldCallAction { @@ -581,7 +585,7 @@ namespace CallKit { bool OnHold { [Bind ("isOnHold")] get; set; } } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (CXCallAction))] [DisableDefaultCtor] interface CXSetMutedCallAction { @@ -594,7 +598,7 @@ namespace CallKit { bool Muted { [Bind ("isMuted")] get; set; } } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [DisableDefaultCtor] [BaseType (typeof (CXCallAction))] interface CXStartCallAction { @@ -618,14 +622,14 @@ namespace CallKit { void Fulfill (NSDate dateStarted); } - [iOS (10, 0), NoMac, Watch (9,0)] + [iOS (10, 0), NoMac, Watch (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // there's a designated initializer that does not accept null interface CXTransaction : NSCopying, NSSecureCoding { [Export ("initWithActions:")] [DesignatedInitializer] - NativeHandle Constructor (CXAction[] actions); + NativeHandle Constructor (CXAction [] actions); [Export ("initWithAction:")] NativeHandle Constructor (CXAction action); diff --git a/src/carplay.cs b/src/carplay.cs index 2cdb2a99e5..00e4f568fd 100644 --- a/src/carplay.cs +++ b/src/carplay.cs @@ -23,7 +23,7 @@ namespace CarPlay { // Just to please the generator that at this point does not know the hierarchy interface NSUnitLength : NSUnit { } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPAlertActionStyle : ulong { Default = 0, @@ -31,14 +31,14 @@ namespace CarPlay { Destructive, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPBarButtonType : ulong { Text, Image, } - [Flags, NoWatch, NoTV, NoMac, iOS (12,0)] + [Flags, NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPPanDirection : long { None = 0, @@ -48,7 +48,7 @@ namespace CarPlay { Down = 1L << 3, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPNavigationAlertDismissalContext : ulong { Timeout = 0, @@ -56,7 +56,7 @@ namespace CarPlay { SystemDismissed, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPTripPauseReason : ulong { Arrived = 1, @@ -66,7 +66,7 @@ namespace CarPlay { ProceedToRoute = 5, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Flags] [Native] enum CPLimitableUserInterface : ulong { @@ -74,7 +74,7 @@ namespace CarPlay { Lists = 1uL << 1, } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [Flags] [Native] enum CPContentStyle : ulong { @@ -82,7 +82,7 @@ namespace CarPlay { Dark = 1uL << 1, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Flags] [Native] enum CPManeuverDisplayStyle : long { @@ -93,7 +93,7 @@ namespace CarPlay { InstructionOnly, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPTimeRemainingColor : ulong { Default = 0, @@ -102,98 +102,88 @@ namespace CarPlay { Red, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Native] enum CPTripEstimateStyle : ulong { Light = 0, Dark, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPBarButtonStyle : long - { + public enum CPBarButtonStyle : long { None, Rounded, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPInformationTemplateLayout : long - { + public enum CPInformationTemplateLayout : long { Leading = 0, TwoColumn, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPListItemAccessoryType : long - { + public enum CPListItemAccessoryType : long { None = 0, DisclosureIndicator, Cloud, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPListItemPlayingIndicatorLocation : long - { + public enum CPListItemPlayingIndicatorLocation : long { Leading = 0, Trailing, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPMessageLeadingItem : long - { + public enum CPMessageLeadingItem : long { None = 0, Pin, Star, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPMessageTrailingItem : long - { + public enum CPMessageTrailingItem : long { None, Mute, } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Native] - public enum CPTextButtonStyle : long - { + public enum CPTextButtonStyle : long { Normal = 0, Cancel, Confirm, } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum CPAssistantCellPosition : long - { + public enum CPAssistantCellPosition : long { Top = 0, Bottom, } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum CPAssistantCellVisibility : long - { + public enum CPAssistantCellVisibility : long { Off = 0, WhileLimitedUIActive, Always, } - [iOS (15,0), MacCatalyst (15,0), NoMac, NoTV, NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), NoMac, NoTV, NoWatch] [Native] - public enum CPAssistantCellActionType : long - { + public enum CPAssistantCellActionType : long { PlayMedia = 0, StartCall, } - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [Native] public enum CPInstrumentClusterSetting : ulong { Unspecified, @@ -202,7 +192,7 @@ namespace CarPlay { UserPreference, } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPAlertAction : NSSecureCoding { @@ -210,7 +200,7 @@ namespace CarPlay { [Export ("initWithTitle:style:handler:")] NativeHandle Constructor (string title, CPAlertActionStyle style, Action handler); - [NoWatch, NoTV, NoMac, iOS (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0)] [Export ("initWithTitle:color:handler:")] NativeHandle Constructor (string title, UIColor color, Action handler); @@ -224,14 +214,14 @@ namespace CarPlay { Action Handler { get; } [NullAllowed] - [NoWatch, NoTV, NoMac, iOS (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0)] [Export ("color", ArgumentSemantic.Copy)] UIColor Color { get; } } delegate void CPBarButtonHandler (CPBarButton button); - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPBarButton : NSSecureCoding { @@ -253,11 +243,11 @@ namespace CarPlay { [NullAllowed, Export ("title")] string Title { get; set; } - [iOS (14,0)] + [iOS (14, 0)] [Export ("initWithImage:handler:")] NativeHandle Constructor (UIImage image, [NullAllowed] CPBarButtonHandler handler); - [iOS (14,0)] + [iOS (14, 0)] [Export ("initWithTitle:handler:")] NativeHandle Constructor (string title, [NullAllowed] CPBarButtonHandler handler); @@ -268,7 +258,7 @@ namespace CarPlay { interface ICPBarButtonProviding { } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [Protocol] interface CPBarButtonProviding { @@ -283,12 +273,12 @@ namespace CarPlay { #if NET [Abstract] #endif - [iOS (12,2)] + [iOS (12, 2)] [NullAllowed, Export ("backButton", ArgumentSemantic.Strong)] CPBarButton BackButton { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPGridButton : NSSecureCoding { @@ -307,10 +297,10 @@ namespace CarPlay { string [] TitleVariants { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPGridTemplate : CPBarButtonProviding{ + interface CPGridTemplate : CPBarButtonProviding { [Export ("initWithTitle:gridButtons:")] NativeHandle Constructor ([NullAllowed] string title, CPGridButton [] gridButtons); @@ -321,20 +311,20 @@ namespace CarPlay { [Export ("title")] string Title { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("updateGridButtons:")] - void UpdateGridButtons (CPGridButton[] gridButtons); + void UpdateGridButtons (CPGridButton [] gridButtons); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("updateTitle:")] void UpdateTitle (string title); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("CPGridTemplateMaximumItems")] nuint MaximumItems { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPInterfaceController { @@ -346,7 +336,7 @@ namespace CarPlay { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("prefersDarkUserInterfaceStyle")] bool PrefersDarkUserInterfaceStyle { get; set; } @@ -433,7 +423,7 @@ namespace CarPlay { interface ICPInterfaceControllerDelegate { } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] #if NET [Protocol, Model] #else @@ -457,8 +447,8 @@ namespace CarPlay { interface ICPApplicationDelegate { } - [Introduced (PlatformName.iOS, 12,0)] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'CPTemplateApplicationSceneDelegate' instead.")] + [Introduced (PlatformName.iOS, 12, 0)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'CPTemplateApplicationSceneDelegate' instead.")] [NoWatch, NoTV, NoMac] #if NET [Protocol, Model] @@ -483,7 +473,7 @@ namespace CarPlay { void DidSelectManeuver (UIApplication application, CPManeuver maneuver); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPListItem : CPSelectableListItem, NSSecureCoding { @@ -557,12 +547,12 @@ namespace CarPlay { [NullAllowed, Export ("accessoryImage", ArgumentSemantic.Strong)] UIImage AccessoryImage { get; } - [iOS (14,0)] + [iOS (14, 0)] [Export ("setText:")] void SetText (string text); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPListSection : NSSecureCoding { @@ -585,9 +575,9 @@ namespace CarPlay { [Export ("initWithItems:")] NativeHandle Constructor (ICPListTemplateItem [] items); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithItems:header:headerSubtitle:headerImage:headerButton:sectionIndexTitle:")] - NativeHandle Constructor (ICPListTemplateItem[] items, string header, [NullAllowed] string headerSubtitle, [NullAllowed] UIImage headerImage, [NullAllowed] CPButton headerButton, [NullAllowed] string sectionIndexTitle); + NativeHandle Constructor (ICPListTemplateItem [] items, string header, [NullAllowed] string headerSubtitle, [NullAllowed] UIImage headerImage, [NullAllowed] CPButton headerButton, [NullAllowed] string sectionIndexTitle); [NullAllowed, Export ("header")] string Header { get; } @@ -608,45 +598,45 @@ namespace CarPlay { ICPListTemplateItem [] Items { get; } #endif - [iOS (14,0)] + [iOS (14, 0)] [Export ("indexOfItem:")] nuint GetIndex (ICPListTemplateItem item); - [iOS (14,0)] + [iOS (14, 0)] [Export ("itemAtIndex:")] ICPListTemplateItem GetItem (nuint index); - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed] [Export ("headerSubtitle")] string HeaderSubtitle { get; } - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed] [Export ("headerImage", ArgumentSemantic.Copy)] UIImage HeaderImage { get; set; } - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed] [Export ("headerButton", ArgumentSemantic.Copy)] CPButton HeaderButton { get; } - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("CPMaximumListSectionImageSize")] CGSize MaximumImageSize { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] interface CPListTemplate : CPBarButtonProviding { [Export ("initWithTitle:sections:")] - NativeHandle Constructor ([NullAllowed] string title, CPListSection[] sections); + NativeHandle Constructor ([NullAllowed] string title, CPListSection [] sections); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithTitle:sections:assistantCellConfiguration:")] - NativeHandle Constructor ([NullAllowed] string title, CPListSection[] sections, [NullAllowed] CPAssistantCellConfiguration assistantCellConfiguration); + NativeHandle Constructor ([NullAllowed] string title, CPListSection [] sections, [NullAllowed] CPAssistantCellConfiguration assistantCellConfiguration); [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CPListItem.Handler' instead.")] [Wrap ("WeakDelegate")] @@ -684,21 +674,21 @@ namespace CarPlay { [Export ("itemCount")] nuint ItemCount { get; } - [iOS (14,0)] + [iOS (14, 0)] [Export ("indexPathForItem:")] [return: NullAllowed] NSIndexPath GetIndexPath (ICPListTemplateItem item); [iOS (14, 0)] [Export ("emptyViewTitleVariants", ArgumentSemantic.Copy)] - string[] EmptyViewTitleVariants { get; set; } + string [] EmptyViewTitleVariants { get; set; } [iOS (14, 0)] [Export ("emptyViewSubtitleVariants", ArgumentSemantic.Copy)] - string[] EmptyViewSubtitleVariants { get; set; } + string [] EmptyViewSubtitleVariants { get; set; } [NullAllowed] - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("assistantCellConfiguration", ArgumentSemantic.Strong)] CPAssistantCellConfiguration AssistantCellConfiguration { get; set; } } @@ -706,7 +696,7 @@ namespace CarPlay { interface ICPListTemplateDelegate { } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CPListItem.Handler' instead.")] - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] #if NET [Protocol, Model] #else @@ -720,20 +710,20 @@ namespace CarPlay { void DidSelectListItem (CPListTemplate listTemplate, CPListItem item, Action completionHandler); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] interface CPManeuver : NSCopying, NSSecureCoding { - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'CPManeuver.SymbolImage' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'CPManeuver.SymbolImage' instead.")] [NullAllowed, Export ("symbolSet", ArgumentSemantic.Strong)] CPImageSet SymbolSet { get; set; } [NullAllowed] - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Export ("cardBackgroundColor", ArgumentSemantic.Strong)] UIColor CardBackgroundColor { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("symbolImage", ArgumentSemantic.Strong)] UIImage SymbolImage { get; set; } @@ -749,7 +739,7 @@ namespace CarPlay { [NullAllowed, Export ("userInfo", ArgumentSemantic.Strong)] NSObject UserInfo { get; set; } - [iOS (12,2)] + [iOS (12, 2)] [NullAllowed, Export ("junctionImage", ArgumentSemantic.Strong)] UIImage JunctionImage { get; set; } @@ -765,11 +755,11 @@ namespace CarPlay { [iOS (14, 0)] [Export ("dashboardInstructionVariants", ArgumentSemantic.Copy)] - string[] DashboardInstructionVariants { get; set; } + string [] DashboardInstructionVariants { get; set; } [iOS (14, 0)] [Export ("dashboardAttributedInstructionVariants", ArgumentSemantic.Copy)] - NSAttributedString[] DashboardAttributedInstructionVariants { get; set; } + NSAttributedString [] DashboardAttributedInstructionVariants { get; set; } [iOS (14, 0)] [NullAllowed] @@ -778,14 +768,14 @@ namespace CarPlay { [iOS (14, 0)] [Export ("notificationInstructionVariants", ArgumentSemantic.Copy)] - string[] NotificationInstructionVariants { get; set; } + string [] NotificationInstructionVariants { get; set; } [iOS (14, 0)] [Export ("notificationAttributedInstructionVariants", ArgumentSemantic.Copy)] - NSAttributedString[] NotificationAttributedInstructionVariants { get; set; } + NSAttributedString [] NotificationAttributedInstructionVariants { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPMapButton : NSSecureCoding { @@ -807,7 +797,7 @@ namespace CarPlay { UIImage FocusedImage { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] interface CPMapTemplate : CPBarButtonProviding { @@ -871,14 +861,14 @@ namespace CarPlay { [Export ("dismissNavigationAlertAnimated:completion:")] void DismissNavigationAlert (bool animated, Action completion); - [iOS (14,0)] + [iOS (14, 0)] [Export ("showTripPreviews:selectedTrip:textConfiguration:")] - void ShowTripPreviews (CPTrip[] tripPreviews, [NullAllowed] CPTrip selectedTrip, [NullAllowed] CPTripPreviewTextConfiguration textConfiguration); + void ShowTripPreviews (CPTrip [] tripPreviews, [NullAllowed] CPTrip selectedTrip, [NullAllowed] CPTripPreviewTextConfiguration textConfiguration); } interface ICPMapTemplateDelegate { } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] #if NET [Protocol, Model] #else @@ -948,19 +938,19 @@ namespace CarPlay { CPManeuverDisplayStyle GetDisplayStyle (CPMapTemplate mapTemplate, CPManeuver maneuver); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPNavigationAlert : NSSecureCoding { - - [Deprecated (PlatformName.iOS, 13,0, message: "Use constructor that takes in 'UIImage' instead of 'CPImageSet'.")] - [Export ("initWithTitleVariants:subtitleVariants:imageSet:primaryAction:secondaryAction:duration:")] - NativeHandle Constructor (string[] titleVariants, [NullAllowed] string[] subtitleVariants, [NullAllowed] CPImageSet imageSet, CPAlertAction primaryAction, [NullAllowed] CPAlertAction secondaryAction, double duration); - [iOS (13,0)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use constructor that takes in 'UIImage' instead of 'CPImageSet'.")] + [Export ("initWithTitleVariants:subtitleVariants:imageSet:primaryAction:secondaryAction:duration:")] + NativeHandle Constructor (string [] titleVariants, [NullAllowed] string [] subtitleVariants, [NullAllowed] CPImageSet imageSet, CPAlertAction primaryAction, [NullAllowed] CPAlertAction secondaryAction, double duration); + + [iOS (13, 0)] [Export ("initWithTitleVariants:subtitleVariants:image:primaryAction:secondaryAction:duration:")] - NativeHandle Constructor (string[] titleVariants, [NullAllowed] string[] subtitleVariants, [NullAllowed] UIImage image, CPAlertAction primaryAction, [NullAllowed] CPAlertAction secondaryAction, double duration); + NativeHandle Constructor (string [] titleVariants, [NullAllowed] string [] subtitleVariants, [NullAllowed] UIImage image, CPAlertAction primaryAction, [NullAllowed] CPAlertAction secondaryAction, double duration); [Export ("updateTitleVariants:subtitleVariants:")] void UpdateTitleVariants (string [] newTitleVariants, string [] newSubtitleVariants); @@ -974,7 +964,7 @@ namespace CarPlay { [NullAllowed, Export ("imageSet", ArgumentSemantic.Copy)] CPImageSet ImageSet { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("image", ArgumentSemantic.Copy)] UIImage Image { get; } @@ -988,7 +978,7 @@ namespace CarPlay { double Duration { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPNavigationSession { @@ -996,7 +986,7 @@ namespace CarPlay { [Export ("pauseTripForReason:description:")] void PauseTrip (CPTripPauseReason reason, [NullAllowed] string description); - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Export ("pauseTripForReason:description:turnCardColor:")] void PauseTrip (CPTripPauseReason reason, [NullAllowed] string description, [NullAllowed] UIColor turnCardColor); @@ -1016,7 +1006,7 @@ namespace CarPlay { void UpdateTravelEstimates (CPTravelEstimates estimates, CPManeuver maneuver); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] interface CPSearchTemplate { @@ -1031,7 +1021,7 @@ namespace CarPlay { interface ICPSearchTemplateDelegate { } delegate void CPSearchTemplateDelegateUpdateHandler (CPListItem [] searchResults); - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] #if NET [Protocol, Model] #else @@ -1052,7 +1042,7 @@ namespace CarPlay { void SearchButtonPressed (CPSearchTemplate searchTemplate); } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPSessionConfiguration { @@ -1064,7 +1054,7 @@ namespace CarPlay { [Export ("limitedUserInterfaces")] CPLimitableUserInterface LimitedUserInterfaces { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("contentStyle")] CPContentStyle ContentStyle { get; } @@ -1078,11 +1068,11 @@ namespace CarPlay { interface ICPSessionConfigurationDelegate { } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] #if NET [Protocol, Model] #else - [Protocol, Model ( AutoGeneratedName = true)] + [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface CPSessionConfigurationDelegate { @@ -1093,13 +1083,13 @@ namespace CarPlay { [Export ("sessionConfiguration:limitedUserInterfacesChanged:")] void LimitedUserInterfacesChanged (CPSessionConfiguration sessionConfiguration, CPLimitableUserInterface limitedUserInterfaces); - [iOS (13,0)] + [iOS (13, 0)] [Export ("sessionConfiguration:contentStyleChanged:")] void ContentStyleChanged (CPSessionConfiguration sessionConfiguration, CPContentStyle contentStyle); } [Abstract] - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] interface CPTemplate : NSSecureCoding { [NullAllowed, Export ("userInfo", ArgumentSemantic.Strong)] @@ -1124,7 +1114,7 @@ namespace CarPlay { bool ShowsTabBadge { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPRouteChoice : NSCopying, NSSecureCoding { @@ -1148,7 +1138,7 @@ namespace CarPlay { NSObject UserInfo { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPTrip : NSSecureCoding { @@ -1170,7 +1160,7 @@ namespace CarPlay { NSObject UserInfo { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] interface CPVoiceControlState : NSSecureCoding { @@ -1190,7 +1180,7 @@ namespace CarPlay { bool Repeats { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] interface CPVoiceControlTemplate { @@ -1208,7 +1198,7 @@ namespace CarPlay { string ActiveStateIdentifier { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPImageSet : NSSecureCoding { @@ -1225,15 +1215,14 @@ namespace CarPlay { interface ICPTemplateApplicationSceneDelegate { } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface CPTemplateApplicationSceneDelegate : UISceneDelegate - { + interface CPTemplateApplicationSceneDelegate : UISceneDelegate { [Export ("templateApplicationScene:didConnectInterfaceController:toWindow:")] void DidConnect (CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController, CPWindow window); @@ -1246,23 +1235,22 @@ namespace CarPlay { [Export ("templateApplicationScene:didSelectManeuver:")] void DidSelect (CPTemplateApplicationScene templateApplicationScene, CPManeuver maneuver); - [iOS (14,0)] + [iOS (14, 0)] [Export ("templateApplicationScene:didConnectInterfaceController:")] void DidConnect (CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController); - [iOS (14,0)] + [iOS (14, 0)] [Export ("templateApplicationScene:didDisconnectInterfaceController:")] void DidDisconnect (CPTemplateApplicationScene templateApplicationScene, CPInterfaceController interfaceController); - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Export ("contentStyleDidChange:")] void ContentStyleDidChange (UIUserInterfaceStyle contentStyle); } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (UIScene))] - interface CPTemplateApplicationScene - { + interface CPTemplateApplicationScene { [Export ("initWithSession:connectionOptions:")] NativeHandle Constructor (UISceneSession session, UISceneConnectionOptions connectionOptions); @@ -1279,7 +1267,7 @@ namespace CarPlay { [Export ("carWindow", ArgumentSemantic.Strong)] CPWindow CarWindow { get; } - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Export ("contentStyle")] UIUserInterfaceStyle ContentStyle { get; } @@ -1288,7 +1276,7 @@ namespace CarPlay { NSString SessionRoleApplication { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (UIWindow))] interface CPWindow { @@ -1298,12 +1286,12 @@ namespace CarPlay { [Export ("mapButtonSafeAreaLayoutGuide")] UILayoutGuide MapButtonSafeAreaLayoutGuide { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("templateApplicationScene", ArgumentSemantic.Weak)] CPTemplateApplicationScene TemplateApplicationScene { get; set; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPTravelEstimates : NSSecureCoding { @@ -1319,7 +1307,7 @@ namespace CarPlay { double TimeRemaining { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] interface CPTripPreviewTextConfiguration : NSSecureCoding { @@ -1336,7 +1324,7 @@ namespace CarPlay { string OverviewButtonTitle { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] + [NoWatch, NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] interface CPActionSheetTemplate { @@ -1354,8 +1342,8 @@ namespace CarPlay { CPAlertAction [] Actions { get; } } - [NoWatch, NoTV, NoMac, iOS (12,0)] - [BaseType (typeof(CPTemplate))] + [NoWatch, NoTV, NoMac, iOS (12, 0)] + [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] interface CPAlertTemplate { @@ -1374,14 +1362,14 @@ namespace CarPlay { nuint MaximumActionCount { get; } } - [NoWatch, NoTV, NoMac, iOS (13,4)] + [NoWatch, NoTV, NoMac, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPDashboardButton : NSSecureCoding { [Export ("initWithTitleVariants:subtitleVariants:image:handler:")] [DesignatedInitializer] - NativeHandle Constructor (string[] titleVariants, string[] subtitleVariants, UIImage image, [NullAllowed] Action handler); + NativeHandle Constructor (string [] titleVariants, string [] subtitleVariants, UIImage image, [NullAllowed] Action handler); [Export ("image")] UIImage Image { get; } @@ -1393,7 +1381,7 @@ namespace CarPlay { string [] SubtitleVariants { get; } } - [NoWatch, NoTV, NoMac, iOS (13,4)] + [NoWatch, NoTV, NoMac, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPDashboardController { @@ -1404,7 +1392,7 @@ namespace CarPlay { interface ICPTemplateApplicationDashboardSceneDelegate { } - [NoWatch, NoTV, NoMac, iOS (13,4)] + [NoWatch, NoTV, NoMac, iOS (13, 4)] #if NET [Protocol, Model] #else @@ -1420,7 +1408,7 @@ namespace CarPlay { void DidDisconnectDashboardController (CPTemplateApplicationDashboardScene templateApplicationDashboardScene, CPDashboardController dashboardController, UIWindow window); } - [NoWatch, NoTV, NoMac, iOS (13,4)] + [NoWatch, NoTV, NoMac, iOS (13, 4)] [BaseType (typeof (UIScene))] interface CPTemplateApplicationDashboardScene { @@ -1445,11 +1433,10 @@ namespace CarPlay { UIWindow DashboardWindow { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPButton - { + interface CPButton { [Export ("initWithImage:handler:")] [DesignatedInitializer] NativeHandle Constructor (UIImage image, [NullAllowed] Action handler); @@ -1467,10 +1454,9 @@ namespace CarPlay { CGSize MaximumImageSize { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] - interface CPContact : NSSecureCoding - { + interface CPContact : NSSecureCoding { [Export ("initWithName:image:")] NativeHandle Constructor (string name, UIImage image); @@ -1481,7 +1467,7 @@ namespace CarPlay { UIImage Image { get; set; } [NullAllowed, Export ("actions", ArgumentSemantic.Copy)] - CPButton[] Actions { get; set; } + CPButton [] Actions { get; set; } [NullAllowed, Export ("subtitle")] string Subtitle { get; set; } @@ -1490,11 +1476,10 @@ namespace CarPlay { string InformativeText { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPButton))] [DisableDefaultCtor] - interface CPContactCallButton - { + interface CPContactCallButton { [Export ("initWithImage:handler:")] [DesignatedInitializer] NativeHandle Constructor (UIImage image, [NullAllowed] Action handler); @@ -1503,11 +1488,10 @@ namespace CarPlay { NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPButton))] [DisableDefaultCtor] - interface CPContactDirectionsButton - { + interface CPContactDirectionsButton { [Export ("initWithImage:handler:")] [DesignatedInitializer] NativeHandle Constructor (UIImage image, [NullAllowed] Action handler); @@ -1516,11 +1500,10 @@ namespace CarPlay { NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPContactTemplate : CPBarButtonProviding - { + interface CPContactTemplate : CPBarButtonProviding { [Export ("initWithContact:")] [DesignatedInitializer] NativeHandle Constructor (CPContact contact); @@ -1529,11 +1512,10 @@ namespace CarPlay { CPContact Contact { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPInformationItem : NSSecureCoding - { + interface CPInformationItem : NSSecureCoding { [Export ("initWithTitle:detail:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] string detail); @@ -1545,14 +1527,13 @@ namespace CarPlay { string Detail { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPInformationTemplate - { + interface CPInformationTemplate { [Export ("initWithTitle:layout:items:actions:")] [DesignatedInitializer] - NativeHandle Constructor (string title, CPInformationTemplateLayout layout, CPInformationItem[] items, CPTextButton[] actions); + NativeHandle Constructor (string title, CPInformationTemplateLayout layout, CPInformationItem [] items, CPTextButton [] actions); [Export ("layout")] CPInformationTemplateLayout Layout { get; } @@ -1561,27 +1542,26 @@ namespace CarPlay { string Title { get; set; } [Export ("items", ArgumentSemantic.Copy)] - CPInformationItem[] Items { get; set; } + CPInformationItem [] Items { get; set; } [Export ("actions", ArgumentSemantic.Copy)] - CPTextButton[] Actions { get; set; } + CPTextButton [] Actions { get; set; } } delegate void CPListImageRowItemHandler (CPListImageRowItem item, nint index, [BlockCallback] Action completionBlock); - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPListImageRowItem : CPSelectableListItem - { + interface CPListImageRowItem : CPSelectableListItem { [Export ("initWithText:images:")] - NativeHandle Constructor (string text, UIImage[] images); + NativeHandle Constructor (string text, UIImage [] images); [Export ("gridImages", ArgumentSemantic.Strong)] - UIImage[] GridImages { get; } + UIImage [] GridImages { get; } [Export ("updateImages:")] - void UpdateImages (UIImage[] gridImages); + void UpdateImages (UIImage [] gridImages); [NullAllowed, Export ("listImageRowHandler", ArgumentSemantic.Copy)] CPListImageRowItemHandler ListImageRowHandler { get; set; } @@ -1597,11 +1577,10 @@ namespace CarPlay { new string Text { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPTextButton - { + interface CPTextButton { [Export ("initWithTitle:textStyle:handler:")] [DesignatedInitializer] NativeHandle Constructor (string title, CPTextButtonStyle textStyle, [NullAllowed] Action handler); @@ -1613,10 +1592,9 @@ namespace CarPlay { CPTextButtonStyle TextStyle { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPBarButton))] - interface CPMessageComposeBarButton - { + interface CPMessageComposeBarButton { [Static] [Export ("new")] [return: Release] @@ -1626,10 +1604,9 @@ namespace CarPlay { NativeHandle Constructor (UIImage image); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] - interface CPMessageListItem : CPListTemplateItem - { + interface CPMessageListItem : CPListTemplateItem { [Internal] [Export ("initWithConversationIdentifier:text:leadingConfiguration:trailingConfiguration:detailText:trailingText:")] IntPtr InitWithConversationIdentifier (string conversationIdentifier, string text, CPMessageListItemLeadingConfiguration leadingConfiguration, [NullAllowed] CPMessageListItemTrailingConfiguration trailingConfiguration, [NullAllowed] string detailText, [NullAllowed] string trailingText); @@ -1663,11 +1640,10 @@ namespace CarPlay { new string Text { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPMessageListItemLeadingConfiguration - { + interface CPMessageListItemLeadingConfiguration { [Export ("unread")] bool Unread { [Bind ("isUnread")] get; } @@ -1681,11 +1657,10 @@ namespace CarPlay { NativeHandle Constructor (CPMessageLeadingItem leadingItem, [NullAllowed] UIImage leadingImage, bool unread); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPMessageListItemTrailingConfiguration - { + interface CPMessageListItemTrailingConfiguration { [Export ("trailingItem")] CPMessageTrailingItem TrailingItem { get; } @@ -1696,11 +1671,10 @@ namespace CarPlay { NativeHandle Constructor (CPMessageTrailingItem trailingItem, [NullAllowed] UIImage trailingImage); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPNowPlayingButton : NSSecureCoding - { + interface CPNowPlayingButton : NSSecureCoding { [Export ("initWithHandler:")] NativeHandle Constructor ([NullAllowed] Action handler); @@ -1714,11 +1688,10 @@ namespace CarPlay { CGSize MaximumImageSize { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] [DisableDefaultCtor] - interface CPNowPlayingImageButton - { + interface CPNowPlayingImageButton { [Export ("initWithImage:handler:")] NativeHandle Constructor (UIImage image, [NullAllowed] Action handler); @@ -1729,15 +1702,14 @@ namespace CarPlay { UIImage Image { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPPointOfInterest : NSSecureCoding - { + interface CPPointOfInterest : NSSecureCoding { [Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:")] NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage); - [iOS (16,0)] + [iOS (16, 0)] [Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:")] [DesignatedInitializer] NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage, [NullAllowed] UIImage selectedPinImage); @@ -1792,15 +1764,14 @@ namespace CarPlay { interface ICPPointOfInterestTemplateDelegate { } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface CPPointOfInterestTemplateDelegate - { + [BaseType (typeof (NSObject))] + interface CPPointOfInterestTemplateDelegate { [Abstract] [Export ("pointOfInterestTemplate:didChangeMapRegion:")] void DidChangeMapRegion (CPPointOfInterestTemplate pointOfInterestTemplate, MKCoordinateRegion region); @@ -1809,23 +1780,22 @@ namespace CarPlay { void DidSelectPointOfInterest (CPPointOfInterestTemplate pointOfInterestTemplate, CPPointOfInterest pointOfInterest); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPPointOfInterestTemplate : CPBarButtonProviding - { + interface CPPointOfInterestTemplate : CPBarButtonProviding { [Export ("initWithTitle:pointsOfInterest:selectedIndex:")] [DesignatedInitializer] - NativeHandle Constructor (string title, CPPointOfInterest[] pointsOfInterest, nint selectedIndex); + NativeHandle Constructor (string title, CPPointOfInterest [] pointsOfInterest, nint selectedIndex); [Export ("title")] string Title { get; set; } [Export ("setPointsOfInterest:selectedIndex:")] - void SetPointsOfInterest (CPPointOfInterest[] pointsOfInterest, nint selectedIndex); + void SetPointsOfInterest (CPPointOfInterest [] pointsOfInterest, nint selectedIndex); [Export ("pointsOfInterest")] - CPPointOfInterest[] PointsOfInterest { get; } + CPPointOfInterest [] PointsOfInterest { get; } [Export ("selectedIndex")] nint SelectedIndex { get; set; } @@ -1840,28 +1810,26 @@ namespace CarPlay { interface ICPTabBarTemplateDelegate { } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface CPTabBarTemplateDelegate - { + interface CPTabBarTemplateDelegate { [Abstract] [Export ("tabBarTemplate:didSelectTemplate:")] void DidSelectTemplate (CPTabBarTemplate tabBarTemplate, CPTemplate selectedTemplate); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPTabBarTemplate - { + interface CPTabBarTemplate { [Export ("initWithTemplates:")] - NativeHandle Constructor (CPTemplate[] templates); + NativeHandle Constructor (CPTemplate [] templates); [Wrap ("WeakDelegate")] [NullAllowed] @@ -1875,21 +1843,20 @@ namespace CarPlay { nuint MaximumTabCount { get; } [Export ("templates", ArgumentSemantic.Strong)] - CPTemplate[] Templates { get; } + CPTemplate [] Templates { get; } [NullAllowed, Export ("selectedTemplate", ArgumentSemantic.Strong)] CPTemplate SelectedTemplate { get; } [Export ("updateTemplates:")] - void UpdateTemplates (CPTemplate[] newTemplates); + void UpdateTemplates (CPTemplate [] newTemplates); } interface ICPNowPlayingTemplateObserver { } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Protocol] - interface CPNowPlayingTemplateObserver - { + interface CPNowPlayingTemplateObserver { [Export ("nowPlayingTemplateUpNextButtonTapped:")] void UpNextButtonTapped (CPNowPlayingTemplate nowPlayingTemplate); @@ -1897,11 +1864,10 @@ namespace CarPlay { void AlbumArtistButtonTapped (CPNowPlayingTemplate nowPlayingTemplate); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPTemplate))] [DisableDefaultCtor] - interface CPNowPlayingTemplate - { + interface CPNowPlayingTemplate { [Static] [Export ("sharedTemplate", ArgumentSemantic.Strong)] CPNowPlayingTemplate SharedTemplate { get; } @@ -1913,7 +1879,7 @@ namespace CarPlay { void RemoveObserver (ICPNowPlayingTemplateObserver observer); [Export ("nowPlayingButtons", ArgumentSemantic.Strong)] - CPNowPlayingButton[] NowPlayingButtons { get; } + CPNowPlayingButton [] NowPlayingButtons { get; } [Export ("upNextButtonEnabled")] bool IsUpNextButtonEnabled { [Bind ("isUpNextButtonEnabled")] get; set; } @@ -1925,14 +1891,13 @@ namespace CarPlay { bool IsAlbumArtistButtonEnabled { [Bind ("isAlbumArtistButtonEnabled")] get; set; } [Export ("updateNowPlayingButtons:")] - void UpdateNowPlayingButtons (CPNowPlayingButton[] nowPlayingButtons); + void UpdateNowPlayingButtons (CPNowPlayingButton [] nowPlayingButtons); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPButton))] [DisableDefaultCtor] - interface CPContactMessageButton - { + interface CPContactMessageButton { [Export ("initWithImage:handler:")] [DesignatedInitializer] NativeHandle Constructor (UIImage image, [NullAllowed] Action handler); @@ -1944,35 +1909,35 @@ namespace CarPlay { string PhoneOrEmail { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] interface CPNowPlayingShuffleButton { [Export ("initWithHandler:")] NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] interface CPNowPlayingAddToLibraryButton { [Export ("initWithHandler:")] NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] interface CPNowPlayingMoreButton { [Export ("initWithHandler:")] NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] interface CPNowPlayingPlaybackRateButton { [Export ("initWithHandler:")] NativeHandle Constructor ([NullAllowed] Action handler); } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPNowPlayingButton))] interface CPNowPlayingRepeatButton { [Export ("initWithHandler:")] @@ -1981,10 +1946,9 @@ namespace CarPlay { interface ICPListTemplateItem { } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Protocol] - interface CPListTemplateItem - { + interface CPListTemplateItem { [Abstract] [NullAllowed, Export ("text")] string Text { get; } @@ -1996,7 +1960,7 @@ namespace CarPlay { #if NET [Abstract] #endif - [iOS (15, 0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } } @@ -2005,20 +1969,18 @@ namespace CarPlay { delegate void CPSelectableListItemHandler (ICPSelectableListItem item, [BlockCallback] Action completionBlock); - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Protocol] - interface CPSelectableListItem : CPListTemplateItem - { + interface CPSelectableListItem : CPListTemplateItem { [Abstract] [NullAllowed, Export ("handler", ArgumentSemantic.Copy)] CPSelectableListItemHandler Handler { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [BaseType (typeof (CPInformationItem))] [DisableDefaultCtor] - interface CPInformationRatingItem - { + interface CPInformationRatingItem { [Export ("initWithRating:maximumRating:title:detail:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSNumber rating, [NullAllowed] NSNumber maximumRating, [NullAllowed] string title, [NullAllowed] string detail); @@ -2030,11 +1992,10 @@ namespace CarPlay { NSNumber MaximumRating { get; } } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CPAssistantCellConfiguration : NSSecureCoding - { + interface CPAssistantCellConfiguration : NSSecureCoding { [Export ("initWithPosition:visibility:assistantAction:")] NativeHandle Constructor (CPAssistantCellPosition position, CPAssistantCellVisibility visibility, CPAssistantCellActionType assistantAction); @@ -2048,7 +2009,7 @@ namespace CarPlay { CPAssistantCellActionType AssistantAction { get; } } - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CPInstrumentClusterController { @@ -2073,12 +2034,12 @@ namespace CarPlay { string [] InactiveDescriptionVariants { get; set; } [Export ("attributedInactiveDescriptionVariants", ArgumentSemantic.Copy)] - NSAttributedString[] AttributedInactiveDescriptionVariants { get; set; } + NSAttributedString [] AttributedInactiveDescriptionVariants { get; set; } } interface ICPInstrumentClusterControllerDelegate { } - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] #if NET [Protocol, Model] #else @@ -2110,7 +2071,7 @@ namespace CarPlay { interface ICPTemplateApplicationInstrumentClusterSceneDelegate { } - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] #if NET [Protocol, Model] #else @@ -2129,7 +2090,7 @@ namespace CarPlay { void ContentStyleDidChange (UIUserInterfaceStyle contentStyle); } - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [BaseType (typeof (UIScene))] [DisableDefaultCtor] interface CPTemplateApplicationInstrumentClusterScene { diff --git a/src/cfnetwork.cs b/src/cfnetwork.cs index 60980c1ec2..d103f83802 100644 --- a/src/cfnetwork.cs +++ b/src/cfnetwork.cs @@ -20,85 +20,106 @@ namespace CoreServices { [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPAttemptPersistentConnection", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPAttemptPersistentConnection", "CFNetwork")] NSString _AttemptPersistentConnection { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPFinalURL", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPFinalURL", "CFNetwork")] NSString _FinalURL { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPFinalRequest", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPFinalRequest", "CFNetwork")] NSString _FinalRequest { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPProxy", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPProxy", "CFNetwork")] NSString _Proxy { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPRequestBytesWrittenCount", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPRequestBytesWrittenCount", "CFNetwork")] NSString _RequestBytesWrittenCount { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPResponseHeader", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPResponseHeader", "CFNetwork")] NSString _ResponseHeader { get; } [Deprecated (PlatformName.iOS, 9, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] - [Internal][Field ("kCFStreamPropertyHTTPShouldAutoredirect", "CFNetwork")] + [Internal] + [Field ("kCFStreamPropertyHTTPShouldAutoredirect", "CFNetwork")] NSString _ShouldAutoredirect { get; } } [Partial] interface CFHTTPMessage { - [Internal][Field ("kCFHTTPVersion1_0", "CFNetwork")] + [Internal] + [Field ("kCFHTTPVersion1_0", "CFNetwork")] IntPtr _HTTPVersion1_0 { get; } - [Internal][Field ("kCFHTTPVersion1_1", "CFNetwork")] + [Internal] + [Field ("kCFHTTPVersion1_1", "CFNetwork")] IntPtr _HTTPVersion1_1 { get; } - [Mac (10,11)][iOS (9,0)] - [Internal][Field ("kCFHTTPVersion2_0", "CFNetwork")] + [Mac (10, 11)] + [iOS (9, 0)] + [Internal] + [Field ("kCFHTTPVersion2_0", "CFNetwork")] IntPtr _HTTPVersion2_0 { get; } - [Mac (11, 0), iOS (14,0), TV (14, 0)] - [MacCatalyst (14,0)] - [Internal][Field ("kCFHTTPVersion3_0", "CFNetwork")] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] + [Internal] + [Field ("kCFHTTPVersion3_0", "CFNetwork")] IntPtr _HTTPVersion3_0 { get; } - [Internal][Field ("kCFHTTPAuthenticationSchemeBasic", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationSchemeBasic", "CFNetwork")] IntPtr _AuthenticationSchemeBasic { get; } - [Internal][Field ("kCFHTTPAuthenticationSchemeNegotiate", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationSchemeNegotiate", "CFNetwork")] IntPtr _AuthenticationSchemeNegotiate { get; } - [Internal][Field ("kCFHTTPAuthenticationSchemeNTLM", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationSchemeNTLM", "CFNetwork")] IntPtr _AuthenticationSchemeNTLM { get; } - [Internal][Field ("kCFHTTPAuthenticationSchemeDigest", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationSchemeDigest", "CFNetwork")] IntPtr _AuthenticationSchemeDigest { get; } - [Internal][Field ("kCFHTTPAuthenticationUsername", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationUsername", "CFNetwork")] NSString _AuthenticationUsername { get; } - [Internal][Field ("kCFHTTPAuthenticationPassword", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationPassword", "CFNetwork")] NSString _AuthenticationPassword { get; } - [Internal][Field ("kCFHTTPAuthenticationAccountDomain", "CFNetwork")] + [Internal] + [Field ("kCFHTTPAuthenticationAccountDomain", "CFNetwork")] NSString _AuthenticationAccountDomain { get; } // misdocumented by Apple (feedback left) // OSX headers says it's 10.9 only // iOS headers says it's iOS 7.0 only (but comments talks about OSX) // yet both 7.0+ and 10.9 returns null - [Mac (10, 9)][iOS (7,0)] - [Internal][Field ("kCFHTTPAuthenticationSchemeOAuth1", "CFNetwork")] + [Mac (10, 9)] + [iOS (7, 0)] + [Internal] + [Field ("kCFHTTPAuthenticationSchemeOAuth1", "CFNetwork")] IntPtr _AuthenticationSchemeOAuth1 { get; } } } diff --git a/src/chip.cs b/src/chip.cs index 540b5b0b82..fddbb30c30 100644 --- a/src/chip.cs +++ b/src/chip.cs @@ -12,12 +12,12 @@ using NativeHandle = System.IntPtr; namespace Chip { - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum ChipOnboardingPayloadType : ulong { QRCode = 0, @@ -26,12 +26,12 @@ namespace Chip { Admin, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum ChipPairingStatus : ulong { SecurePairingSuccess = 0, @@ -39,12 +39,12 @@ namespace Chip { UnknownStatus, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [ErrorDomain ("CHIPErrorDomain")] [Native] public enum ChipErrorCode : long { @@ -61,12 +61,12 @@ namespace Chip { UnsupportedAttribute = 10, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] public enum ChipRendezvousInformationFlags : ulong { @@ -77,12 +77,12 @@ namespace Chip { AllMask = SoftAP | Ble | OnNetwork, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum ChipCommissioningFlow : ulong { Standard = 0, @@ -91,12 +91,12 @@ namespace Chip { Invalid = 3, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum ChipOptionalQRCodeInfoType : ulong { Unknown, @@ -104,16 +104,15 @@ namespace Chip { Int32, } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPDevice")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPDevice")] [DisableDefaultCtor] - interface ChipDevice - { + interface ChipDevice { [Export ("openPairingWindow:error:")] bool OpenPairingWindow (nuint duration, [NullAllowed] out NSError error); @@ -125,17 +124,16 @@ namespace Chip { bool IsActive { get; } } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPCluster")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPCluster")] [DisableDefaultCtor] - interface ChipCluster - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipCluster { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -151,25 +149,24 @@ namespace Chip { #endif } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void ChipResponseHandler ([NullAllowed] NSError error, [NullAllowed] NSDictionary data); - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPApplicationBasic")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPApplicationBasic")] [DisableDefaultCtor] - interface ChipApplicationBasic - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipApplicationBasic { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -184,7 +181,7 @@ namespace Chip { NativeHandle Constructor (ChipDevice device, byte endpoint, DispatchQueue queue); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("changeStatus:responseHandler:")] void ChangeStatus (byte status, ChipResponseHandler responseHandler); @@ -221,7 +218,7 @@ namespace Chip { void ReadAttributeApplicationSatus (ChipResponseHandler responseHandler); #endif - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeApplicationStatusWithResponseHandler:")] void ReadAttributeApplicationStatus (ChipResponseHandler responseHandler); @@ -231,17 +228,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPBarrierControl")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPBarrierControl")] [DisableDefaultCtor] - interface ChipBarrierControl - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipBarrierControl { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -285,17 +281,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPBasic")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPBasic")] [DisableDefaultCtor] - interface ChipBasic - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipBasic { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -400,12 +395,12 @@ namespace Chip { void WriteAttributeLocalConfigDisabled (byte value, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeLocalConfigDisabledWithValue:responseHandler:")] void WriteAttributeLocalConfigDisabled (bool disabled, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeReachableWithResponseHandler:")] void ReadAttributeReachable (ChipResponseHandler responseHandler); @@ -415,17 +410,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPBinding")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPBinding")] [DisableDefaultCtor] - interface ChipBinding - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipBinding { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -451,7 +445,7 @@ namespace Chip { void Bind (ulong nodeId, ushort groupId, byte endpointId, ushort clusterId, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("bind:groupId:endpointId:clusterId:responseHandler:")] void Bind (ulong nodeId, ushort groupId, ushort endpointId, uint clusterId, ChipResponseHandler responseHandler); @@ -467,7 +461,7 @@ namespace Chip { void Unbind (ulong nodeId, ushort groupId, byte endpointId, ushort clusterId, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("unbind:groupId:endpointId:clusterId:responseHandler:")] void Unbind (ulong nodeId, ushort groupId, ushort endpointId, uint clusterId, ChipResponseHandler responseHandler); @@ -477,17 +471,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPColorControl")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPColorControl")] [DisableDefaultCtor] - interface ChipColorControl - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipColorControl { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -502,27 +495,27 @@ namespace Chip { NativeHandle Constructor (ChipDevice device, byte endpoint, DispatchQueue queue); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("colorLoopSet:action:direction:time:startHue:optionsMask:optionsOverride:responseHandler:")] void ColorLoopSet (byte updateFlags, byte action, byte direction, ushort time, ushort startHue, byte optionsMask, byte optionsOverride, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("enhancedMoveHue:rate:optionsMask:optionsOverride:responseHandler:")] void EnhancedMoveHue (byte moveMode, ushort rate, byte optionsMask, byte optionsOverride, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("enhancedMoveToHue:direction:transitionTime:optionsMask:optionsOverride:responseHandler:")] void EnhancedMoveToHue (ushort enhancedHue, byte direction, ushort transitionTime, byte optionsMask, byte optionsOverride, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("enhancedMoveToHueAndSaturation:saturation:transitionTime:optionsMask:optionsOverride:responseHandler:")] void EnhancedMoveToHueAndSaturation (ushort enhancedHue, byte saturation, ushort transitionTime, byte optionsMask, byte optionsOverride, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("enhancedStepHue:stepSize:transitionTime:optionsMask:optionsOverride:responseHandler:")] void EnhancedStepHue (byte stepMode, ushort stepSize, ushort transitionTime, byte optionsMask, byte optionsOverride, ChipResponseHandler responseHandler); @@ -851,12 +844,12 @@ namespace Chip { [Export ("readAttributeColorLoopTimeWithResponseHandler:")] void ReadAttributeColorLoopTime (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeColorLoopStartEnhancedHueWithResponseHandler:")] void ReadAttributeColorLoopStartEnhancedHue (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeColorLoopStoredEnhancedHueWithResponseHandler:")] void ReadAttributeColorLoopStoredEnhancedHue (ChipResponseHandler responseHandler); @@ -890,17 +883,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPDescriptor")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPDescriptor")] [DisableDefaultCtor] - interface ChipDescriptor - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipDescriptor { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -936,16 +928,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPDiagnosticLogs")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPDiagnosticLogs")] [DisableDefaultCtor] - interface ChipDiagnosticLogs - { + interface ChipDiagnosticLogs { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -954,17 +945,16 @@ namespace Chip { void RetrieveLogsRequest (byte intent, byte requestedProtocol, NSData transferFileDesignator, ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPDoorLock")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPDoorLock")] [DisableDefaultCtor] - interface ChipDoorLock - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipDoorLock { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1096,17 +1086,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPGroupKeyManagement")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPGroupKeyManagement")] [DisableDefaultCtor] - interface ChipGroupKeyManagement - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipGroupKeyManagement { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1134,17 +1123,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPGroups")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPGroups")] [DisableDefaultCtor] - interface ChipGroups - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipGroups { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1192,17 +1180,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPIdentify")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPIdentify")] [DisableDefaultCtor] - interface ChipIdentify - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipIdentify { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1238,17 +1225,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPLevelControl")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPLevelControl")] [DisableDefaultCtor] - interface ChipLevelControl - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipLevelControl { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1312,17 +1298,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPNetworkCommissioning")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPNetworkCommissioning")] [DisableDefaultCtor] - interface ChipNetworkCommissioning - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipNetworkCommissioning { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1377,22 +1362,21 @@ namespace Chip { [Export ("readAttributeClusterRevisionWithResponseHandler:")] void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeFeatureMapWithResponseHandler:")] void ReadAttributeFeatureMap (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPOtaSoftwareUpdateProvider")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPOtaSoftwareUpdateProvider")] [DisableDefaultCtor] - interface ChipOtaSoftwareUpdateProvider - { + interface ChipOtaSoftwareUpdateProvider { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1414,16 +1398,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPOccupancySensing")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPOccupancySensing")] [DisableDefaultCtor] - interface ChipOccupancySensing - { + interface ChipOccupancySensing { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1453,17 +1436,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPOnOff")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPOnOff")] [DisableDefaultCtor] - interface ChipOnOff - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipOnOff { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1482,7 +1464,7 @@ namespace Chip { [Export ("off:")] void Off (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("offWithEffect:effectVariant:responseHandler:")] void OffWithEffect (byte effectId, byte effectVariant, ChipResponseHandler responseHandler); @@ -1491,12 +1473,12 @@ namespace Chip { [Export ("on:")] void On (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("onWithRecallGlobalScene:")] void OnWithRecallGlobalScene (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("onWithTimedOff:onTime:offWaitTime:responseHandler:")] void OnWithTimedOff (byte onOffControl, ushort onTime, ushort offWaitTime, ChipResponseHandler responseHandler); @@ -1517,42 +1499,42 @@ namespace Chip { [Export ("reportAttributeOnOffWithResponseHandler:")] void ReportAttributeOnOff (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeGlobalSceneControlWithResponseHandler:")] void ReadAttributeGlobalSceneControl (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeOnTimeWithResponseHandler:")] void ReadAttributeOnTime (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeOnTimeWithValue:responseHandler:")] void WriteAttributeOnTime (ushort value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeOffWaitTimeWithResponseHandler:")] void ReadAttributeOffWaitTime (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeOffWaitTimeWithValue:responseHandler:")] void WriteAttributeOffWaitTime (ushort value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeStartUpOnOffWithResponseHandler:")] void ReadAttributeStartUpOnOff (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeStartUpOnOffWithValue:responseHandler:")] void WriteAttributeStartUpOnOff (byte value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeFeatureMapWithResponseHandler:")] void ReadAttributeFeatureMap (ChipResponseHandler responseHandler); @@ -1562,16 +1544,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPOnOffSwitchConfiguration")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPOnOffSwitchConfiguration")] [DisableDefaultCtor] - interface ChipOnOffSwitchConfiguration - { + interface ChipOnOffSwitchConfiguration { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1593,17 +1574,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPOperationalCredentials")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPOperationalCredentials")] [DisableDefaultCtor] - interface ChipOperationalCredentials - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipOperationalCredentials { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1627,12 +1607,12 @@ namespace Chip { #endif // Parameter names are left to match header files. Without documentation, we cannot know what the parameters signify for certain. - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("addNOC:iPKValue:caseAdminNode:adminVendorId:responseHandler:")] void AddNoc (NSData nocArray, NSData iPKValue, ulong caseAdminNode, ushort adminVendorId, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("addTrustedRootCertificate:responseHandler:")] void AddTrustedRootCertificate (NSData rootCertificate, ChipResponseHandler responseHandler); @@ -1662,12 +1642,12 @@ namespace Chip { void RemoveFabric (ulong fabricId, ulong nodeId, ushort vendorId, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("removeFabric:responseHandler:")] void RemoveFabric (byte fabricIndex, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("removeTrustedRootCertificate:responseHandler:")] void RemoveTrustedRootCertificate (NSData trustedRootIdentifier, ChipResponseHandler responseHandler); @@ -1676,7 +1656,7 @@ namespace Chip { [Export ("updateFabricLabel:responseHandler:")] void UpdateFabricLabel (string label, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("updateNOC:responseHandler:")] void UpdateNoc (NSData nocArray, ChipResponseHandler responseHandler); @@ -1685,12 +1665,12 @@ namespace Chip { [Export ("readAttributeFabricsListWithResponseHandler:")] void ReadAttributeFabricsList (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeSupportedFabricsWithResponseHandler:")] void ReadAttributeSupportedFabrics (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCommissionedFabricsWithResponseHandler:")] void ReadAttributeCommissionedFabrics (ChipResponseHandler responseHandler); @@ -1700,16 +1680,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPPressureMeasurement")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPPressureMeasurement")] [DisableDefaultCtor] - interface ChipPressureMeasurement - { + interface ChipPressureMeasurement { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1736,20 +1715,19 @@ namespace Chip { [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeClusterRevisionWithResponseHandler:")] - void ReadAttributeClusterRevision(ChipResponseHandler responseHandler); + void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPPumpConfigurationAndControl")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPPumpConfigurationAndControl")] [DisableDefaultCtor] - interface ChipPumpConfigurationAndControl - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipPumpConfigurationAndControl { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1809,17 +1787,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPScenes")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPScenes")] [DisableDefaultCtor] - interface ChipScenes - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipScenes { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1845,7 +1822,7 @@ namespace Chip { void AddScene (ushort groupId, byte sceneId, ushort transitionTime, string sceneName, ushort clusterId, byte length, byte value, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("addScene:sceneId:transitionTime:sceneName:clusterId:length:value:responseHandler:")] void AddScene (ushort groupId, byte sceneId, ushort transitionTime, string sceneName, uint clusterId, byte length, byte value, ChipResponseHandler responseHandler); @@ -1899,17 +1876,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPSwitch")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPSwitch")] [DisableDefaultCtor] - interface ChipSwitch - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipSwitch { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1945,17 +1921,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPTemperatureMeasurement")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPTemperatureMeasurement")] [DisableDefaultCtor] - interface ChipTemperatureMeasurement - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipTemperatureMeasurement { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -1995,17 +1970,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPThermostat")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPThermostat")] [DisableDefaultCtor] - interface ChipThermostat - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipThermostat { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2052,22 +2026,22 @@ namespace Chip { [Export ("reportAttributeLocalTemperatureWithResponseHandler:")] void ReportAttributeLocalTemperature (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeAbsMinHeatSetpointLimitWithResponseHandler:")] void ReadAttributeAbsMinHeatSetpointLimit (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeAbsMaxHeatSetpointLimitWithResponseHandler:")] void ReadAttributeAbsMaxHeatSetpointLimit (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeAbsMinCoolSetpointLimitWithResponseHandler:")] void ReadAttributeAbsMinCoolSetpointLimit (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeAbsMaxCoolSetpointLimitWithResponseHandler:")] void ReadAttributeAbsMaxCoolSetpointLimit (ChipResponseHandler responseHandler); @@ -2080,42 +2054,42 @@ namespace Chip { [Export ("writeAttributeOccupiedCoolingSetpointWithValue:responseHandler:")] void WriteAttributeOccupiedCoolingSetpoint (short value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMinHeatSetpointLimitWithResponseHandler:")] void ReadAttributeMinHeatSetpointLimit (ChipResponseHandler responseHandler); - - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeMinHeatSetpointLimitWithValue:responseHandler:")] void WriteAttributeMinHeatSetpointLimit (short value, ChipResponseHandler responseHandler); - - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMaxHeatSetpointLimitWithResponseHandler:")] void ReadAttributeMaxHeatSetpointLimit (ChipResponseHandler responseHandler); - - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeMaxHeatSetpointLimitWithValue:responseHandler:")] void WriteAttributeMaxHeatSetpointLimit (short value, ChipResponseHandler responseHandler); - - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMinCoolSetpointLimitWithResponseHandler:")] void ReadAttributeMinCoolSetpointLimit (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeMinCoolSetpointLimitWithValue:responseHandler:")] void WriteAttributeMinCoolSetpointLimit (short value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMaxCoolSetpointLimitWithResponseHandler:")] void ReadAttributeMaxCoolSetpointLimit (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeMaxCoolSetpointLimitWithValue:responseHandler:")] void WriteAttributeMaxCoolSetpointLimit (short value, ChipResponseHandler responseHandler); @@ -2144,22 +2118,22 @@ namespace Chip { [Export ("writeAttributeSystemModeWithValue:responseHandler:")] void WriteAttributeSystemMode (byte value, ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeStartOfWeekWithResponseHandler:")] void ReadAttributeStartOfWeek (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeNumberOfWeeklyTransitionsWithResponseHandler:")] void ReadAttributeNumberOfWeeklyTransitions (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeNumberOfDailyTransitionsWithResponseHandler:")] void ReadAttributeNumberOfDailyTransitions (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeFeatureMapWithResponseHandler:")] void ReadAttributeFeatureMap (ChipResponseHandler responseHandler); @@ -2169,38 +2143,36 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPOnboardingPayloadParser")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPOnboardingPayloadParser")] [DisableDefaultCtor] - interface ChipOnboardingPayloadParser - { + interface ChipOnboardingPayloadParser { [Static] [Export ("setupPayloadForOnboardingPayload:ofType:error:")] [return: NullAllowed] ChipSetupPayload SetupPayload (string onboardingPayload, ChipOnboardingPayloadType type, [NullAllowed] out NSError error); } - interface IChipDevicePairingDelegate {} + interface IChipDevicePairingDelegate { } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof (NSObject), Name="CHIPDevicePairingDelegate")] - interface ChipDevicePairingDelegate - { + [BaseType (typeof (NSObject), Name = "CHIPDevicePairingDelegate")] + interface ChipDevicePairingDelegate { [Export ("onStatusUpdate:")] void OnStatusUpdate (ChipPairingStatus status); @@ -2214,22 +2186,21 @@ namespace Chip { void OnAddressUpdated ([NullAllowed] NSError error); } - interface IChipKeypair {} + interface IChipKeypair { } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject), Name="CHIPKeypair")] - interface ChipKeypair - { + [BaseType (typeof (NSObject), Name = "CHIPKeypair")] + interface ChipKeypair { [Abstract] [Export ("initialize")] bool Initialize (); @@ -2243,16 +2214,15 @@ namespace Chip { IntPtr /* SecKeyRef _Nullable */ GetPubKeyRef (); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPManualSetupPayloadParser")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPManualSetupPayloadParser")] [DisableDefaultCtor] - interface ChipManualSetupPayloadParser - { + interface ChipManualSetupPayloadParser { [Export ("initWithDecimalStringRepresentation:")] NativeHandle Constructor (string decimalStringRepresentation); @@ -2261,22 +2231,21 @@ namespace Chip { ChipSetupPayload PopulatePayload ([NullAllowed] out NSError error); } - interface IChipPersistentStorageDelegate {} + interface IChipPersistentStorageDelegate { } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof (NSObject), Name="CHIPPersistentStorageDelegate")] - interface ChipPersistentStorageDelegate - { + [BaseType (typeof (NSObject), Name = "CHIPPersistentStorageDelegate")] + interface ChipPersistentStorageDelegate { [Abstract] [Export ("CHIPGetKeyValue:")] [return: NullAllowed] @@ -2291,16 +2260,15 @@ namespace Chip { void DeleteValue (string key); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPOptionalQRCodeInfo")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPOptionalQRCodeInfo")] [DisableDefaultCtor] - interface ChipOptionalQRCodeInfo - { + interface ChipOptionalQRCodeInfo { [Export ("infoType", ArgumentSemantic.Strong)] NSNumber InfoType { get; set; } @@ -2314,16 +2282,15 @@ namespace Chip { string StringValue { get; set; } } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPSetupPayload")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPSetupPayload")] [DisableDefaultCtor] - interface ChipSetupPayload - { + interface ChipSetupPayload { [Export ("version", ArgumentSemantic.Strong)] NSNumber Version { get; set; } @@ -2350,19 +2317,18 @@ namespace Chip { [Export ("getAllOptionalVendorData:")] [return: NullAllowed] - ChipOptionalQRCodeInfo[] GetAllOptionalVendorData ([NullAllowed] out NSError error); + ChipOptionalQRCodeInfo [] GetAllOptionalVendorData ([NullAllowed] out NSError error); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(NSObject), Name="CHIPThreadOperationalDataset")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (NSObject), Name = "CHIPThreadOperationalDataset")] [DisableDefaultCtor] - interface ChipThreadOperationalDataset - { + interface ChipThreadOperationalDataset { [NullAllowed, Export ("networkName")] string NetworkName { get; } @@ -2371,7 +2337,7 @@ namespace Chip { [NullAllowed, Export ("masterKey", ArgumentSemantic.Copy)] NSData MasterKey { get; } - + // API names are left to match header files. // PSK is likely pre-shared key, but without documentation, we cannot know for certain. [NullAllowed, Export ("PSKc", ArgumentSemantic.Copy)] @@ -2393,16 +2359,15 @@ namespace Chip { NSData GetAsData (); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="CHIPQRCodeSetupPayloadParser")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "CHIPQRCodeSetupPayloadParser")] [DisableDefaultCtor] - interface ChipQRCodeSetupPayloadParser - { + interface ChipQRCodeSetupPayloadParser { [Export ("initWithBase38Representation:")] NativeHandle Constructor (string base38Representation); @@ -2411,17 +2376,16 @@ namespace Chip { ChipSetupPayload PopulatePayload ([NullAllowed] out NSError error); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPAccountLogin")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPAccountLogin")] [DisableDefaultCtor] - interface ChipAccountLogin - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipAccountLogin { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2449,16 +2413,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPAdministratorCommissioning")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPAdministratorCommissioning")] [DisableDefaultCtor] - interface ChipAdministratorCommissioning - { + interface ChipAdministratorCommissioning { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2482,17 +2445,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPApplicationLauncher")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPApplicationLauncher")] [DisableDefaultCtor] - interface ChipApplicationLauncher - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipApplicationLauncher { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2515,12 +2477,12 @@ namespace Chip { [Export ("readAttributeApplicationLauncherListWithResponseHandler:")] void ReadAttributeApplicationLauncherList (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCatalogVendorIdWithResponseHandler:")] void ReadAttributeCatalogVendorId (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeApplicationIdWithResponseHandler:")] void ReadAttributeApplicationId (ChipResponseHandler responseHandler); @@ -2530,17 +2492,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPAudioOutput")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPAudioOutput")] [DisableDefaultCtor] - interface ChipAudioOutput - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipAudioOutput { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2567,27 +2528,26 @@ namespace Chip { [Export ("readAttributeAudioOutputListWithResponseHandler:")] void ReadAttributeAudioOutputList (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentAudioOutputWithResponseHandler:")] - void ReadAttributeCurrentAudioOutput(ChipResponseHandler responseHandler); + void ReadAttributeCurrentAudioOutput (ChipResponseHandler responseHandler); [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeClusterRevisionWithResponseHandler:")] void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPBinaryInputBasic")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPBinaryInputBasic")] [DisableDefaultCtor] - interface ChipBinaryInputBasic - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipBinaryInputBasic { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2617,7 +2577,7 @@ namespace Chip { void WriteAttributeOutOfService (byte value, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributeOutOfServiceWithValue:responseHandler:")] void WriteAttributeOutOfService (bool boolValue, ChipResponseHandler responseHandler); @@ -2637,7 +2597,7 @@ namespace Chip { void WriteAttributePresentValue (byte value, ChipResponseHandler responseHandler); #endif - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("writeAttributePresentValueWithValue:responseHandler:")] void WriteAttributePresentValue (bool boolValue, ChipResponseHandler responseHandler); @@ -2667,17 +2627,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPBridgedDeviceBasic")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPBridgedDeviceBasic")] [DisableDefaultCtor] - interface ChipBridgedDeviceBasic - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipBridgedDeviceBasic { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2757,16 +2716,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof (ChipCluster), Name="CHIPContentLauncher")] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPContentLauncher")] [DisableDefaultCtor] - interface ChipContentLauncher - { + interface ChipContentLauncher { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2792,36 +2750,35 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPElectricalMeasurement")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPElectricalMeasurement")] [DisableDefaultCtor] - interface ChipElectricalMeasurement - { + interface ChipElectricalMeasurement { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMeasurementTypeWithResponseHandler:")] - void ReadAttributeMeasurementType(ChipResponseHandler responseHandler); + void ReadAttributeMeasurementType (ChipResponseHandler responseHandler); [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeTotalActivePowerWithResponseHandler:")] - void ReadAttributeTotalActivePower(ChipResponseHandler responseHandler); - + void ReadAttributeTotalActivePower (ChipResponseHandler responseHandler); + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeRmsVoltageWithResponseHandler:")] void ReadAttributeRmsVoltage (ChipResponseHandler responseHandler); - + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeRmsVoltageMinWithResponseHandler:")] void ReadAttributeRmsVoltageMin (ChipResponseHandler responseHandler); - + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeRmsVoltageMaxWithResponseHandler:")] void ReadAttributeRmsVoltageMax (ChipResponseHandler responseHandler); @@ -2855,17 +2812,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPEthernetNetworkDiagnostics")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPEthernetNetworkDiagnostics")] [DisableDefaultCtor] - interface ChipEthernetNetworkDiagnostics - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipEthernetNetworkDiagnostics { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2909,17 +2865,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPFixedLabel")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPFixedLabel")] [DisableDefaultCtor] - interface ChipFixedLabel - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipFixedLabel { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2943,16 +2898,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPFlowMeasurement")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPFlowMeasurement")] [DisableDefaultCtor] - interface ChipFlowMeasurement - { + interface ChipFlowMeasurement { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -2960,31 +2914,30 @@ namespace Chip { [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMeasuredValueWithResponseHandler:")] void ReadAttributeMeasuredValue (ChipResponseHandler responseHandler); - + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMinMeasuredValueWithResponseHandler:")] void ReadAttributeMinMeasuredValue (ChipResponseHandler responseHandler); - + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeMaxMeasuredValueWithResponseHandler:")] void ReadAttributeMaxMeasuredValue (ChipResponseHandler responseHandler); - + [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeClusterRevisionWithResponseHandler:")] void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPGeneralDiagnostics")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPGeneralDiagnostics")] [DisableDefaultCtor] - interface ChipGeneralDiagnostics - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipGeneralDiagnostics { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3012,17 +2965,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPKeypadInput")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPKeypadInput")] [DisableDefaultCtor] - interface ChipKeypadInput - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipKeypadInput { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3046,17 +2998,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPMediaInput")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPMediaInput")] [DisableDefaultCtor] - interface ChipMediaInput - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipMediaInput { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3091,7 +3042,7 @@ namespace Chip { [Export ("readAttributeMediaInputListWithResponseHandler:")] void ReadAttributeMediaInputList (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentMediaInputWithResponseHandler:")] void ReadAttributeCurrentMediaInput (ChipResponseHandler responseHandler); @@ -3101,17 +3052,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPMediaPlayback")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPMediaPlayback")] [DisableDefaultCtor] - interface ChipMediaPlayback - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipMediaPlayback { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3150,7 +3100,7 @@ namespace Chip { [Export ("mediaRewind:")] void Rewind (ChipResponseHandler responseHandler); - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("mediaSeek:responseHandler:")] void MediaSeek (ulong position, ChipResponseHandler responseHandler); @@ -3184,17 +3134,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPRelativeHumidityMeasurement")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPRelativeHumidityMeasurement")] [DisableDefaultCtor] - interface ChipRelativeHumidityMeasurement - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipRelativeHumidityMeasurement { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3234,17 +3183,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPSoftwareDiagnostics")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPSoftwareDiagnostics")] [DisableDefaultCtor] - interface ChipSoftwareDiagnostics - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipSoftwareDiagnostics { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3272,17 +3220,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPTargetNavigator")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPTargetNavigator")] [DisableDefaultCtor] - interface ChipTargetNavigator - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipTargetNavigator { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3310,16 +3257,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof (ChipCluster), Name="CHIPThermostatUserInterfaceConfiguration")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPThermostatUserInterfaceConfiguration")] [DisableDefaultCtor] - interface ChipThermostatUserInterfaceConfiguration - { + interface ChipThermostatUserInterfaceConfiguration { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3353,17 +3299,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPTvChannel")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPTvChannel")] [DisableDefaultCtor] - interface ChipTvChannel - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipTvChannel { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3407,16 +3352,15 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPThreadNetworkDiagnostics")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPThreadNetworkDiagnostics")] [DisableDefaultCtor] - interface ChipThreadNetworkDiagnostics - { + interface ChipThreadNetworkDiagnostics { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3670,17 +3614,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPWakeOnLan")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPWakeOnLan")] [DisableDefaultCtor] - interface ChipWakeOnLan - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipWakeOnLan { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3697,23 +3640,22 @@ namespace Chip { [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeWakeOnLanMacAddressWithResponseHandler:")] - void ReadAttributeWakeOnLanMacAddress(ChipResponseHandler responseHandler); + void ReadAttributeWakeOnLanMacAddress (ChipResponseHandler responseHandler); [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeClusterRevisionWithResponseHandler:")] void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(ChipCluster), Name="CHIPWiFiNetworkDiagnostics")] + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (ChipCluster), Name = "CHIPWiFiNetworkDiagnostics")] [DisableDefaultCtor] - interface ChipWiFiNetworkDiagnostics - { + interface ChipWiFiNetworkDiagnostics { [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3747,17 +3689,16 @@ namespace Chip { void ReadAttributeClusterRevision (ChipResponseHandler responseHandler); } - [Obsoleted (PlatformName.iOS, 16,0, message: Constants.ChipRemoved)] + [Obsoleted (PlatformName.iOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.TvOS, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacCatalyst, 16, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.MacOSX, 13, 0, message: Constants.ChipRemoved)] [Obsoleted (PlatformName.WatchOS, 9, 0, message: Constants.ChipRemoved)] - [Mac (12,0), Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (ChipCluster), Name="CHIPWindowCovering")] + [Mac (12, 0), Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (ChipCluster), Name = "CHIPWindowCovering")] [DisableDefaultCtor] - interface ChipWindowCovering - { - [Mac (12,1), Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + interface ChipWindowCovering { + [Mac (12, 1), Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Export ("initWithDevice:endpoint:queue:")] [DesignatedInitializer] NativeHandle Constructor (ChipDevice device, ushort endpoint, DispatchQueue queue); @@ -3848,44 +3789,44 @@ namespace Chip { void ReportAttributeWindowCoveringType (ChipResponseHandler responseHandler); #endif - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("downOrClose:")] void DownOrClose (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("goToLiftPercentage:liftPercent100thsValue:responseHandler:")] void GoToLiftPercentage (byte liftPercentageValue, ushort liftPercent100thsValue, ChipResponseHandler responseHandler); [Internal] - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("goToLiftValue:responseHandler:")] void _NewGoToLiftValue (ushort liftValue, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("goToTiltPercentage:tiltPercent100thsValue:responseHandler:")] void GoToTiltPercentage (byte tiltPercentageValue, ushort tiltPercent100thsValue, ChipResponseHandler responseHandler); [Internal] - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("goToTiltValue:responseHandler:")] void _NewGoToTiltValue (ushort tiltValue, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("stopMotion:")] void StopMotion (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("upOrOpen:")] void UpOrOpen (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeTypeWithResponseHandler:")] void ReadAttributeType (ChipResponseHandler responseHandler); @@ -3950,112 +3891,112 @@ namespace Chip { void ReportAttributeConfigStatus (ChipResponseHandler responseHandler); #endif - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentPositionLiftPercentageWithResponseHandler:")] void ReadAttributeCurrentPositionLiftPercentage (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeCurrentPositionLiftPercentageWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeCurrentPositionLiftPercentage (ushort minInterval, ushort maxInterval, byte change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeCurrentPositionLiftPercentageWithResponseHandler:")] void ReportAttributeCurrentPositionLiftPercentage (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentPositionTiltPercentageWithResponseHandler:")] void ReadAttributeCurrentPositionTiltPercentage (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeCurrentPositionTiltPercentageWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeCurrentPositionTiltPercentage (ushort minInterval, ushort maxInterval, byte change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeCurrentPositionTiltPercentageWithResponseHandler:")] void ReportAttributeCurrentPositionTiltPercentage (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeOperationalStatusWithResponseHandler:")] void ReadAttributeOperationalStatus (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeOperationalStatusWithMinInterval:maxInterval:responseHandler:")] void ConfigureAttributeOperationalStatus (ushort minInterval, ushort maxInterval, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeOperationalStatusWithResponseHandler:")] void ReportAttributeOperationalStatus (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeTargetPositionLiftPercent100thsWithResponseHandler:")] void ReadAttributeTargetPositionLiftPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeTargetPositionLiftPercent100thsWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeTargetPositionLiftPercent100ths (ushort minInterval, ushort maxInterval, ushort change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeTargetPositionLiftPercent100thsWithResponseHandler:")] void ReportAttributeTargetPositionLiftPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeTargetPositionTiltPercent100thsWithResponseHandler:")] void ReadAttributeTargetPositionTiltPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeTargetPositionTiltPercent100thsWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeTargetPositionTiltPercent100ths (ushort minInterval, ushort maxInterval, ushort change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeTargetPositionTiltPercent100thsWithResponseHandler:")] void ReportAttributeTargetPositionTiltPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeEndProductTypeWithResponseHandler:")] void ReadAttributeEndProductType (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentPositionLiftPercent100thsWithResponseHandler:")] void ReadAttributeCurrentPositionLiftPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeCurrentPositionLiftPercent100thsWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeCurrentPositionLiftPercent100ths (ushort minInterval, ushort maxInterval, ushort change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeCurrentPositionLiftPercent100thsWithResponseHandler:")] void ReportAttributeCurrentPositionLiftPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeCurrentPositionTiltPercent100thsWithResponseHandler:")] void ReadAttributeCurrentPositionTiltPercent100ths (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeCurrentPositionTiltPercent100thsWithMinInterval:maxInterval:change:responseHandler:")] void ConfigureAttributeCurrentPositionTiltPercent100ths (ushort minInterval, ushort maxInterval, ushort change, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeCurrentPositionTiltPercent100thsWithResponseHandler:")] void ReportAttributeCurrentPositionTiltPercent100ths (ChipResponseHandler responseHandler); @@ -4084,17 +4025,17 @@ namespace Chip { [Export ("writeAttributeModeWithValue:responseHandler:")] void WriteAttributeMode (byte value, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("readAttributeSafetyStatusWithResponseHandler:")] void ReadAttributeSafetyStatus (ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("configureAttributeSafetyStatusWithMinInterval:maxInterval:responseHandler:")] void ConfigureAttributeSafetyStatus (ushort minInterval, ushort maxInterval, ChipResponseHandler responseHandler); - [NoMac, Watch (8,3), TV (15,2), iOS (15,2), MacCatalyst (15,2)] + [NoMac, Watch (8, 3), TV (15, 2), iOS (15, 2), MacCatalyst (15, 2)] [Async (ResultTypeName = "ChipReadAttributeResult")] [Export ("reportAttributeSafetyStatusWithResponseHandler:")] void ReportAttributeSafetyStatus (ChipResponseHandler responseHandler); diff --git a/src/classkit.cs b/src/classkit.cs index 63b3304f94..5d8825a893 100644 --- a/src/classkit.cs +++ b/src/classkit.cs @@ -20,18 +20,18 @@ using NativeHandle = System.IntPtr; namespace ClassKit { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Native] enum CLSBinaryValueType : long { TrueFalse = 0, PassFail, YesNo, - [iOS (12,2)] + [iOS (12, 2)] CorrectIncorrect, } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Native] enum CLSContextType : long { None = 0, @@ -50,14 +50,14 @@ namespace ClassKit { Document, Audio, Video, - [iOS (13,4)] + [iOS (13, 4)] Course, - [iOS (13,4)] + [iOS (13, 4)] Custom, } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Native] [ErrorDomain ("CLSErrorCodeDomain")] public enum CLSErrorCode : long { @@ -76,7 +76,7 @@ namespace ClassKit { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] enum CLSContextTopic { [Field ("CLSContextTopicMath")] Math, @@ -101,7 +101,7 @@ namespace ClassKit { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (14, 0)] + [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] [Native] public enum CLSProgressReportingCapabilityKind : long { Duration = 0, @@ -112,7 +112,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Static] interface CLSErrorUserInfoKeys { @@ -122,13 +122,13 @@ namespace ClassKit { [Field ("CLSErrorUnderlyingErrorsKey")] NSString UnderlyingErrorsKey { get; } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("CLSErrorSuccessfulObjectsKey")] NSString SuccessfulObjectsKey { get; } } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Static] interface CLSPredicateKeyPath { [Field ("CLSPredicateKeyPathDateCreated")] @@ -151,7 +151,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CLSObject : NSSecureCoding { @@ -164,7 +164,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSObject))] [DisableDefaultCtor] interface CLSActivity { @@ -199,14 +199,15 @@ namespace ClassKit { [Export ("stop")] void Stop (); - [Introduced (PlatformName.MacCatalyst, 14,5)] - [Mac (11,3)][iOS (14,5)] + [Introduced (PlatformName.MacCatalyst, 14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("removeAllActivityItems")] void RemoveAllActivityItems (); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSObject))] [DisableDefaultCtor] interface CLSActivityItem { @@ -219,7 +220,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSActivityItem))] [DisableDefaultCtor] interface CLSBinaryItem { @@ -236,12 +237,12 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSObject))] [DisableDefaultCtor] interface CLSContext { - [iOS (13,4)] + [iOS (13, 4)] [Export ("identifierPath", ArgumentSemantic.Copy)] string [] IdentifierPath { get; } @@ -254,7 +255,7 @@ namespace ClassKit { [Export ("type", ArgumentSemantic.Assign)] CLSContextType Type { get; } - [iOS (13,4)] + [iOS (13, 4)] [NullAllowed, Export ("customTypeName")] string CustomTypeName { get; set; } @@ -264,11 +265,11 @@ namespace ClassKit { [Export ("displayOrder")] nint DisplayOrder { get; set; } - [iOS (13,4)] + [iOS (13, 4)] [NullAllowed, Export ("summary")] string Summary { get; set; } - [iOS (13,4)] + [iOS (13, 4)] [NullAllowed, Export ("thumbnail", ArgumentSemantic.Assign)] CGImage Thumbnail { get; set; } @@ -332,18 +333,21 @@ namespace ClassKit { [Export ("descendantMatchingIdentifierPath:completion:")] void FindDescendantMatching (string [] identifierPath, Action completion); - [Introduced (PlatformName.MacCatalyst, 14,5)] - [Mac (11,3)][iOS (14,5)] + [Introduced (PlatformName.MacCatalyst, 14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("navigationChildContexts", ArgumentSemantic.Copy)] - CLSContext[] NavigationChildContexts { get; } + CLSContext [] NavigationChildContexts { get; } - [Introduced (PlatformName.MacCatalyst, 14,5)] - [Mac (11,3)][iOS (14,5)] + [Introduced (PlatformName.MacCatalyst, 14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("addNavigationChildContext:")] void AddNavigationChild (CLSContext childContext); - [Introduced (PlatformName.MacCatalyst, 14,5)] - [Mac (11,3)][iOS (14,5)] + [Introduced (PlatformName.MacCatalyst, 14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("removeNavigationChildContext:")] void RemoveNavigationChild (CLSContext childContext); @@ -359,7 +363,7 @@ namespace ClassKit { interface ICLSDataStoreDelegate { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Protocol, Model] [BaseType (typeof (NSObject))] interface CLSDataStoreDelegate { @@ -371,7 +375,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CLSDataStore { @@ -400,9 +404,9 @@ namespace ClassKit { [Export ("saveWithCompletion:")] void Save ([NullAllowed] Action completion); - [iOS (12,2)] + [iOS (12, 2)] [Export ("completeAllAssignedActivitiesMatching:")] - void CompleteAllAssignedActivitiesMatching (string[] contextPath); + void CompleteAllAssignedActivitiesMatching (string [] contextPath); // From CLSDataStore (Contexts) Category @@ -417,15 +421,16 @@ namespace ClassKit { [Export ("removeContext:")] void Remove (CLSContext context); - [Introduced (PlatformName.MacCatalyst, 14,5)] - [Mac (11,3)][iOS (14,5)] + [Introduced (PlatformName.MacCatalyst, 14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Async] [Export ("fetchActivityForURL:completion:")] void FetchActivity (NSUrl url, Action completion); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSActivityItem))] [DisableDefaultCtor] interface CLSQuantityItem { @@ -439,7 +444,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [BaseType (typeof (CLSActivityItem))] [DisableDefaultCtor] interface CLSScoreItem { @@ -456,7 +461,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (12,2)] + [NoWatch, NoTV, Mac (11, 0), iOS (12, 2)] [Protocol] interface CLSContextProvider { [Abstract] @@ -465,7 +470,7 @@ namespace ClassKit { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11,0), iOS (14,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] [BaseType (typeof (CLSObject))] [DisableDefaultCtor] interface CLSProgressReportingCapability { diff --git a/src/clockkit.cs b/src/clockkit.cs index efee99ead4..c70d51181c 100644 --- a/src/clockkit.cs +++ b/src/clockkit.cs @@ -19,7 +19,7 @@ using NativeHandle = System.IntPtr; namespace ClockKit { - [Watch (7,0)] + [Watch (7, 0)] [ErrorDomain ("CLKWatchFaceLibraryErrorDomain")] [Native] public enum CLKWatchFaceLibraryErrorCode : long { @@ -28,7 +28,7 @@ namespace ClockKit { PermissionDenied = 3, FaceNotAvailable = 4, } - + [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [BaseType (typeof (NSObject))] interface CLKComplication : NSCopying { @@ -81,7 +81,7 @@ namespace ClockKit { void GetTimelineAnimationBehavior (CLKComplication complication, Action handler); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (6,0)] + [Watch (6, 0)] [Export ("getAlwaysOnTemplateForComplication:withHandler:")] void GetAlwaysOnTemplate (CLKComplication complication, Action handler); @@ -97,7 +97,7 @@ namespace ClockKit { [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Export ("getTimelineEntriesForComplication:afterDate:limit:withHandler:")] void GetTimelineEntriesAfterDate (CLKComplication complication, NSDate afterDate, nuint limit, Action handler); - + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'WKRefreshBackgroundTask' instead.")] [Export ("getNextRequestedUpdateDateWithHandler:")] void GetNextRequestedUpdateDate (Action handler); @@ -116,19 +116,19 @@ namespace ClockKit { void GetPlaceholderTemplate (CLKComplication complication, Action handler); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [Export ("getLocalizableSampleTemplateForComplication:withHandler:")] void GetLocalizableSampleTemplate (CLKComplication complication, Action handler); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Watch (7, 0)] [Export ("getComplicationDescriptorsWithHandler:")] - void GetComplicationDescriptors (Action handler); + void GetComplicationDescriptors (Action handler); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Watch (7, 0)] [Export ("handleSharedComplicationDescriptors:")] - void HandleSharedComplicationDescriptors (CLKComplicationDescriptor[] complicationDescriptors); + void HandleSharedComplicationDescriptors (CLKComplicationDescriptor [] complicationDescriptors); [Watch (9, 0), NoiOS] [Export ("widgetMigrator")] @@ -664,11 +664,11 @@ namespace ClockKit { [Export ("imageProvider", ArgumentSemantic.Copy)] CLKImageProvider ImageProvider { get; set; } - [Watch (7,0)] + [Watch (7, 0)] [Export ("initWithImageProvider:")] NativeHandle Constructor (CLKImageProvider imageProvider); - [Watch (7,0)] + [Watch (7, 0)] [Static] [Export ("templateWithImageProvider:")] CLKComplicationTemplateCircularSmallSimpleImage Create (CLKImageProvider imageProvider); @@ -761,10 +761,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeSimpleText { - + [Export ("textProvider", ArgumentSemantic.Copy)] CLKTextProvider TextProvider { get; set; } @@ -779,10 +779,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeSimpleImage { - + [Export ("imageProvider", ArgumentSemantic.Copy)] CLKImageProvider ImageProvider { get; set; } @@ -797,10 +797,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeRingText { - + [Export ("textProvider", ArgumentSemantic.Copy)] CLKTextProvider TextProvider { get; set; } @@ -821,10 +821,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeRingImage { - + [Export ("imageProvider", ArgumentSemantic.Copy)] CLKImageProvider ImageProvider { get; set; } @@ -845,10 +845,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeStackText { - + [Export ("line1TextProvider", ArgumentSemantic.Copy)] CLKTextProvider Line1TextProvider { get; set; } @@ -869,10 +869,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeStackImage { - + [Export ("line1ImageProvider", ArgumentSemantic.Copy)] CLKImageProvider Line1ImageProvider { get; set; } @@ -893,10 +893,10 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateExtraLargeColumnsText { - + [Export ("row1Column1TextProvider", ArgumentSemantic.Copy)] CLKTextProvider Row1Column1TextProvider { get; set; } @@ -952,7 +952,7 @@ namespace ClockKit { [DisableDefaultCtor] interface CLKImageProvider : NSCopying { - [Deprecated (PlatformName.WatchOS, 7, 0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [Export ("init")] NativeHandle Constructor (); @@ -993,7 +993,7 @@ namespace ClockKit { [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CLKTextProvider : NSCopying { - + [Deprecated (PlatformName.iOS, 14, 0, message: "Use overloaded constructors.")] [Export ("init")] NativeHandle Constructor (); @@ -1010,20 +1010,20 @@ namespace ClockKit { // but static methods are not great candidates for extensions methods // so they are inlined inside the actual type - [Watch (3,0)] + [Watch (3, 0)] [Static] [Export ("localizableTextProviderWithStringsFileTextKey:")] CLKTextProvider CreateLocalizable (string textKey); - [Watch (3,0)] + [Watch (3, 0)] [Static] [Export ("localizableTextProviderWithStringsFileTextKey:shortTextKey:")] CLKTextProvider CreateLocalizable (string textKey, [NullAllowed] string shortTextKey); - [Watch (3,0)] + [Watch (3, 0)] [Static] [Export ("localizableTextProviderWithStringsFileFormatKey:textProviders:")] - CLKTextProvider CreateLocalizable (string formatKey, CLKTextProvider[] textProviders); + CLKTextProvider CreateLocalizable (string formatKey, CLKTextProvider [] textProviders); [NullAllowed] [Export ("accessibilityLabel")] @@ -1088,7 +1088,7 @@ namespace ClockKit { [Export ("timeZone", ArgumentSemantic.Retain)] NSTimeZone TimeZone { get; set; } - [Watch (6,0)] + [Watch (6, 0)] [Export ("uppercase")] bool Uppercase { get; set; } @@ -1207,7 +1207,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicBezelCircularText { [Export ("circularTemplate", ArgumentSemantic.Copy)] @@ -1236,7 +1236,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [Abstract] // An abstract superclass for all the circular graphic templates. [DisableDefaultCtor] [BaseType (typeof (CLKComplicationTemplate))] @@ -1244,7 +1244,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularClosedGaugeImage { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1264,7 +1264,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularClosedGaugeText { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1284,7 +1284,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularImage { [Export ("imageProvider", ArgumentSemantic.Copy)] @@ -1301,7 +1301,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularOpenGaugeImage { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1324,7 +1324,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularOpenGaugeRangeText { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1338,7 +1338,7 @@ namespace ClockKit { [Export ("centerTextProvider", ArgumentSemantic.Copy)] CLKTextProvider CenterTextProvider { get; set; } - + [Watch (7, 0)] [Export ("initWithGaugeProvider:leadingTextProvider:trailingTextProvider:centerTextProvider:")] NativeHandle Constructor (CLKGaugeProvider gaugeProvider, CLKTextProvider leadingTextProvider, CLKTextProvider trailingTextProvider, CLKTextProvider centerTextProvider); @@ -1350,7 +1350,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularOpenGaugeSimpleText { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1373,7 +1373,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicCornerCircularImage { [Export ("imageProvider", ArgumentSemantic.Copy)] @@ -1390,7 +1390,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicCornerGaugeImage { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1425,7 +1425,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicCornerGaugeText { [Export ("gaugeProvider", ArgumentSemantic.Copy)] @@ -1448,19 +1448,19 @@ namespace ClockKit { [Export ("initWithGaugeProvider:leadingTextProvider:trailingTextProvider:outerTextProvider:")] NativeHandle Constructor (CLKGaugeProvider gaugeProvider, [NullAllowed] CLKTextProvider leadingTextProvider, [NullAllowed] CLKTextProvider trailingTextProvider, CLKTextProvider outerTextProvider); - [Watch (7,0)] + [Watch (7, 0)] [Static] [Export ("templateWithGaugeProvider:outerTextProvider:")] CLKComplicationTemplateGraphicCornerGaugeText Create (CLKGaugeProvider gaugeProvider, CLKTextProvider outerTextProvider); - [Watch (7,0)] + [Watch (7, 0)] [Static] [Export ("templateWithGaugeProvider:leadingTextProvider:trailingTextProvider:outerTextProvider:")] CLKComplicationTemplateGraphicCornerGaugeText Create (CLKGaugeProvider gaugeProvider, [NullAllowed] CLKTextProvider leadingTextProvider, [NullAllowed] CLKTextProvider trailingTextProvider, CLKTextProvider outerTextProvider); } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicCornerStackText { [Export ("innerTextProvider", ArgumentSemantic.Copy)] @@ -1480,7 +1480,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicCornerTextImage { [Export ("textProvider", ArgumentSemantic.Copy)] @@ -1500,7 +1500,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicRectangularLargeImage { [Export ("imageProvider", ArgumentSemantic.Copy)] @@ -1520,7 +1520,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicRectangularStandardBody { [NullAllowed, Export ("headerImageProvider", ArgumentSemantic.Copy)] @@ -1573,7 +1573,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKComplicationTemplate))] interface CLKComplicationTemplateGraphicRectangularTextGauge { [NullAllowed, Export ("headerImageProvider", ArgumentSemantic.Copy)] @@ -1608,7 +1608,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CLKFullColorImageProvider : NSCopying { @@ -1616,7 +1616,7 @@ namespace ClockKit { [Export ("providerWithFullColorImage:")] CLKFullColorImageProvider Create (UIImage image); - [Watch (6,0)] + [Watch (6, 0)] [Static] [Export ("providerWithFullColorImage:tintedImageProvider:")] CLKFullColorImageProvider Create (UIImage image, [NullAllowed] CLKImageProvider tintedImageProvider); @@ -1624,7 +1624,7 @@ namespace ClockKit { [Export ("image", ArgumentSemantic.Retain)] UIImage Image { get; set; } - [Watch (6,0)] + [Watch (6, 0)] [NullAllowed, Export ("tintedImageProvider", ArgumentSemantic.Retain)] CLKImageProvider TintedImageProvider { get; set; } @@ -1645,7 +1645,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (NSObject))] [Abstract] // An abstract superclass that... [DisableDefaultCtor] @@ -1654,25 +1654,25 @@ namespace ClockKit { CLKGaugeProviderStyle Style { get; } [NullAllowed, Export ("gaugeColors")] - UIColor[] GaugeColors { get; } + UIColor [] GaugeColors { get; } [NullAllowed, Export ("gaugeColorLocations")] [BindAs (typeof (float []))] // between 0.0 and 1.0 - NSNumber[] GaugeColorLocations { get; } + NSNumber [] GaugeColorLocations { get; } - [Watch (5,2)] + [Watch (5, 2)] [NullAllowed, Export ("accessibilityLabel")] string AccessibilityLabel { get; set; } } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKGaugeProvider))] [DisableDefaultCtor] interface CLKSimpleGaugeProvider { [Static] [Export ("gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:fillFraction:")] - CLKSimpleGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor[] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber[] gaugeColorLocations, float fillFraction); + CLKSimpleGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor [] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber [] gaugeColorLocations, float fillFraction); [Static] [Export ("gaugeProviderWithStyle:gaugeColor:fillFraction:")] @@ -1686,17 +1686,17 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (5,0)] + [Watch (5, 0)] [BaseType (typeof (CLKGaugeProvider))] [DisableDefaultCtor] interface CLKTimeIntervalGaugeProvider { [Static] [Export ("gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:startDate:endDate:")] - CLKTimeIntervalGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor[] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber[] gaugeColorLocations, NSDate startDate, NSDate endDate); + CLKTimeIntervalGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor [] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber [] gaugeColorLocations, NSDate startDate, NSDate endDate); [Static] [Export ("gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:startDate:startFillFraction:endDate:endFillFraction:")] - CLKTimeIntervalGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor[] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber[] gaugeColorLocations, NSDate startDate, float startFillFraction, NSDate endDate, float endFillFraction); + CLKTimeIntervalGaugeProvider Create (CLKGaugeProviderStyle style, [NullAllowed] UIColor [] gaugeColors, [NullAllowed][BindAs (typeof (float []))] NSNumber [] gaugeColorLocations, NSDate startDate, float startFillFraction, NSDate endDate, float endFillFraction); [Export ("startDate")] NSDate StartDate { get; } @@ -1712,7 +1712,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularStackText { @@ -1733,7 +1733,7 @@ namespace ClockKit { } [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (CLKComplicationTemplateGraphicCircular))] interface CLKComplicationTemplateGraphicCircularStackImage { @@ -1886,7 +1886,7 @@ namespace ClockKit { [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Watch (7, 0)] - [BaseType (typeof(CLKComplicationTemplateGraphicExtraLargeCircular))] + [BaseType (typeof (CLKComplicationTemplateGraphicExtraLargeCircular))] interface CLKComplicationTemplateGraphicExtraLargeCircularImage { [Export ("imageProvider", ArgumentSemantic.Copy)] CLKFullColorImageProvider ImageProvider { get; set; } @@ -1901,7 +1901,7 @@ namespace ClockKit { [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Watch (7, 0)] - [BaseType (typeof(CLKComplicationTemplateGraphicExtraLargeCircular))] + [BaseType (typeof (CLKComplicationTemplateGraphicExtraLargeCircular))] interface CLKComplicationTemplateGraphicExtraLargeCircularClosedGaugeText { [Export ("gaugeProvider", ArgumentSemantic.Copy)] CLKGaugeProvider GaugeProvider { get; set; } @@ -1919,7 +1919,7 @@ namespace ClockKit { [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Watch (7, 0)] - [BaseType (typeof(CLKComplicationTemplateGraphicExtraLargeCircular))] + [BaseType (typeof (CLKComplicationTemplateGraphicExtraLargeCircular))] interface CLKComplicationTemplateGraphicExtraLargeCircularClosedGaugeImage { [Export ("gaugeProvider", ArgumentSemantic.Copy)] CLKGaugeProvider GaugeProvider { get; set; } @@ -1936,7 +1936,7 @@ namespace ClockKit { } [Watch (7, 0)] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CLKComplicationDescriptor : NSCopying, NSSecureCoding { [Export ("identifier")] @@ -1946,8 +1946,8 @@ namespace ClockKit { string DisplayName { get; } [Export ("supportedFamilies")] - [BindAs ( typeof (CLKComplicationFamily []))] - NSNumber[] SupportedFamilies { get; } + [BindAs (typeof (CLKComplicationFamily []))] + NSNumber [] SupportedFamilies { get; } [NullAllowed, Export ("userInfo")] NSDictionary UserInfo { get; } @@ -1957,36 +1957,34 @@ namespace ClockKit { [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Export ("initWithIdentifier:displayName:supportedFamilies:")] - NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber[] supportedFamilies); + NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber [] supportedFamilies); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Export ("initWithIdentifier:displayName:supportedFamilies:userInfo:")] - NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber[] supportedFamilies, NSDictionary userInfo); + NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber [] supportedFamilies, NSDictionary userInfo); [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")] [Export ("initWithIdentifier:displayName:supportedFamilies:userActivity:")] - NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber[] supportedFamilies, NSUserActivity userActivity); + NativeHandle Constructor (string identifier, string displayName, [BindAs (typeof (CLKComplicationFamily []))] NSNumber [] supportedFamilies, NSUserActivity userActivity); } - [Watch (9,0), NoiOS] + [Watch (9, 0), NoiOS] [BaseType (typeof (NSObject))] - interface CLKComplicationWidgetMigrationConfiguration : NSCopying {} + interface CLKComplicationWidgetMigrationConfiguration : NSCopying { } - [Watch (9,0), NoiOS] + [Watch (9, 0), NoiOS] [Protocol] - [BaseType (typeof(NSObject))] - interface CLKComplicationWidgetMigrator - { + [BaseType (typeof (NSObject))] + interface CLKComplicationWidgetMigrator { [Async] [Export ("getWidgetConfigurationFrom:completionHandler:")] void GetWidgetConfiguration (CLKComplicationDescriptor complicationDescriptor, Action completionHandler); } - [Watch (9,0), NoiOS] + [Watch (9, 0), NoiOS] [BaseType (typeof (CLKComplicationWidgetMigrationConfiguration))] [DisableDefaultCtor] - interface CLKComplicationIntentWidgetMigrationConfiguration - { + interface CLKComplicationIntentWidgetMigrationConfiguration { [Export ("kind")] string Kind { get; } @@ -2008,11 +2006,10 @@ namespace ClockKit { } - [Watch (9,0), NoiOS] - [BaseType (typeof(CLKComplicationWidgetMigrationConfiguration))] + [Watch (9, 0), NoiOS] + [BaseType (typeof (CLKComplicationWidgetMigrationConfiguration))] [DisableDefaultCtor] - interface CLKComplicationStaticWidgetMigrationConfiguration - { + interface CLKComplicationStaticWidgetMigrationConfiguration { [Export ("kind")] string Kind { get; } diff --git a/src/cloudkit.cs b/src/cloudkit.cs index b66e8d42ff..4f86b6eca8 100644 --- a/src/cloudkit.cs +++ b/src/cloudkit.cs @@ -12,8 +12,8 @@ using NativeHandle = System.IntPtr; namespace CloudKit { - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You must call -[CKAsset initWithFileURL:] or -[CKAsset initWithData:] [BaseType (typeof (NSObject))] interface CKAsset : NSCoding, NSSecureCoding, CKRecordValue { @@ -25,12 +25,11 @@ namespace CloudKit { [NullAllowed] NSUrl FileUrl { get; } } - - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CKUserIdentityLookupInfo : NSSecureCoding, NSCopying - { + interface CKUserIdentityLookupInfo : NSSecureCoding, NSCopying { [Internal, Export ("initWithEmailAddress:")] IntPtr _FromEmail (string emailAddress); @@ -42,15 +41,15 @@ namespace CloudKit { [Static] [Export ("lookupInfosWithEmails:")] - CKUserIdentityLookupInfo[] GetLookupInfosWithEmails (string[] emails); + CKUserIdentityLookupInfo [] GetLookupInfosWithEmails (string [] emails); [Static] [Export ("lookupInfosWithPhoneNumbers:")] - CKUserIdentityLookupInfo[] GetLookupInfosWithPhoneNumbers (string[] phoneNumbers); + CKUserIdentityLookupInfo [] GetLookupInfosWithPhoneNumbers (string [] phoneNumbers); [Static] [Export ("lookupInfosWithRecordIDs:")] - CKUserIdentityLookupInfo[] GetLookupInfos (CKRecordID[] recordIDs); + CKUserIdentityLookupInfo [] GetLookupInfos (CKRecordID [] recordIDs); [NullAllowed, Export ("emailAddress")] string EmailAddress { get; } @@ -62,11 +61,10 @@ namespace CloudKit { CKRecordID UserRecordID { get; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CKUserIdentity : NSSecureCoding, NSCopying - { + interface CKUserIdentity : NSSecureCoding, NSCopying { [NullAllowed, Export ("lookupInfo", ArgumentSemantic.Copy)] CKUserIdentityLookupInfo LookupInfo { get; } @@ -81,13 +79,12 @@ namespace CloudKit { [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [Export ("contactIdentifiers", ArgumentSemantic.Copy)] - string[] ContactIdentifiers { get; } + string [] ContactIdentifiers { get; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] - interface CKShareMetadata : NSCopying, NSSecureCoding - { + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface CKShareMetadata : NSCopying, NSSecureCoding { [Export ("containerIdentifier")] string ContainerIdentifier { get; } @@ -102,7 +99,7 @@ namespace CloudKit { [Export ("rootRecordID", ArgumentSemantic.Copy)] CKRecordID RootRecordID { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("participantRole", ArgumentSemantic.Assign)] CKShareParticipantRole ParticipantRole { get; } @@ -125,16 +122,15 @@ namespace CloudKit { [NullAllowed, Export ("rootRecord", ArgumentSemantic.Strong)] CKRecord RootRecord { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("hierarchicalRootRecordID", ArgumentSemantic.Copy)] CKRecordID HierarchicalRootRecordId { get; } } - - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKRecord))] + + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKRecord))] [DisableDefaultCtor] - interface CKShare - { + interface CKShare { [Export ("initWithRootRecord:")] NativeHandle Constructor (CKRecord rootRecord); @@ -142,7 +138,7 @@ namespace CloudKit { [DesignatedInitializer] NativeHandle Constructor (CKRecord rootRecord, CKRecordID shareID); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithRecordZoneID:")] [DesignatedInitializer] NativeHandle Constructor (CKRecordZoneID recordZoneId); @@ -155,7 +151,7 @@ namespace CloudKit { NSUrl Url { get; } [Export ("participants", ArgumentSemantic.Strong)] - CKShareParticipant[] Participants { get; } + CKShareParticipant [] Participants { get; } [Export ("owner", ArgumentSemantic.Strong)] CKShareParticipant Owner { get; } @@ -171,9 +167,9 @@ namespace CloudKit { } [Static] - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] partial interface CKShareKeys { - + [Field ("CKShareTitleKey")] NSString Title { get; } @@ -183,16 +179,15 @@ namespace CloudKit { [Field ("CKShareTypeKey")] NSString Type { get; } } - - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CKShareParticipant : NSSecureCoding, NSCopying - { + interface CKShareParticipant : NSSecureCoding, NSCopying { [Export ("userIdentity", ArgumentSemantic.Strong)] CKUserIdentity UserIdentity { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("role", ArgumentSemantic.Assign)] CKShareParticipantRole Role { get; set; } @@ -210,19 +205,19 @@ namespace CloudKit { CKShareParticipantPermission Permission { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: Use +[CKContainer privateCloudDatabase] or +[CKContainer publicCloudDatabase] instead of creating your own [BaseType (typeof (NSObject))] interface CKContainer { [NoWatch] - [Deprecated (PlatformName.iOS, 10, 0, message : "Use 'CurrentUserDefaultName' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 12, message : "Use 'CurrentUserDefaultName' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CurrentUserDefaultName' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CurrentUserDefaultName' instead.")] [Field ("CKOwnerDefaultName")] NSString OwnerDefaultName { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("CKCurrentUserDefaultName")] NSString CurrentUserDefaultName { get; } @@ -246,89 +241,94 @@ namespace CloudKit { [Export ("publicCloudDatabase")] CKDatabase PublicCloudDatabase { get; } - [iOS (10, 0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("sharedCloudDatabase")] CKDatabase SharedCloudDatabase { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("databaseWithDatabaseScope:")] CKDatabase GetDatabase (CKDatabaseScope databaseScope); [Export ("accountStatusWithCompletionHandler:")] [Async] - void GetAccountStatus (Action completionHandler); + void GetAccountStatus (Action completionHandler); [Export ("statusForApplicationPermission:completionHandler:")] [Async] - void StatusForApplicationPermission (CKApplicationPermissions applicationPermission, Action completionHandler); + void StatusForApplicationPermission (CKApplicationPermissions applicationPermission, Action completionHandler); [Export ("requestApplicationPermission:completionHandler:")] [Async] - void RequestApplicationPermission (CKApplicationPermissions applicationPermission, Action completionHandler); + void RequestApplicationPermission (CKApplicationPermissions applicationPermission, Action completionHandler); [Export ("fetchUserRecordIDWithCompletionHandler:")] [Async] void FetchUserRecordId (Action completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [NoTV] [Export ("discoverAllIdentitiesWithCompletionHandler:")] [Async] - void DiscoverAllIdentities (Action completionHandler); - - [iOS (10,0), TV (10,0), Mac (10,12)] + void DiscoverAllIdentities (Action completionHandler); + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("discoverUserIdentityWithEmailAddress:completionHandler:")] [Async] void DiscoverUserIdentityWithEmailAddress (string email, Action completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("discoverUserIdentityWithPhoneNumber:completionHandler:")] [Async] void DiscoverUserIdentityWithPhoneNumber (string phoneNumber, Action completionHandler); - - [iOS (10,0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("discoverUserIdentityWithUserRecordID:completionHandler:")] [Async] void DiscoverUserIdentity (CKRecordID userRecordID, Action completionHandler); - - [iOS (9,0)][Mac (10,11)] + + [iOS (9, 0)] + [Mac (10, 11)] [Field ("CKAccountChangedNotification")] [Notification] NSString AccountChangedNotification { get; } - [iOS (9,3)][Mac (10,11,4)] + [iOS (9, 3)] + [Mac (10, 11, 4)] [NoTV] // does not answer on devices [Export ("fetchAllLongLivedOperationIDsWithCompletionHandler:")] [Async] - void FetchAllLongLivedOperationIDs (Action, NSError> completionHandler); + void FetchAllLongLivedOperationIDs (Action, NSError> completionHandler); - [iOS (9,3)][Mac (10,11,4)] + [iOS (9, 3)] + [Mac (10, 11, 4)] [NoTV] // does not answer on devices [Export ("fetchLongLivedOperationWithID:completionHandler:")] [Async] - void FetchLongLivedOperation (string[] operationID, Action, NSError> completionHandler); + void FetchLongLivedOperation (string [] operationID, Action, NSError> completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("fetchShareParticipantWithEmailAddress:completionHandler:")] [Async] void FetchShareParticipantWithEmailAddress (string emailAddress, Action completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("fetchShareParticipantWithPhoneNumber:completionHandler:")] [Async] void FetchShareParticipantWithPhoneNumber (string phoneNumber, Action completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("fetchShareParticipantWithUserRecordID:completionHandler:")] [Async] void FetchShareParticipant (CKRecordID userRecordID, Action completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("fetchShareMetadataWithURL:completionHandler:")] [Async] void FetchShareMetadata (NSUrl url, Action completionHandler); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("acceptShareMetadata:completionHandler:")] [Async] void AcceptShareMetadata (CKShareMetadata metadata, Action completionHandler); @@ -336,15 +336,15 @@ namespace CloudKit { delegate void CKDatabaseDeleteSubscriptionHandler (string subscriptionId, NSError error); - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // *** Assertion failure in -[CKDatabase init] [BaseType (typeof (NSObject))] interface CKDatabase { [Export ("addOperation:")] void AddOperation (CKDatabaseOperation operation); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("databaseScope", ArgumentSemantic.Assign)] CKDatabaseScope DatabaseScope { get; } @@ -362,11 +362,11 @@ namespace CloudKit { [Export ("performQuery:inZoneWithID:completionHandler:")] [Async] - void PerformQuery (CKQuery query, [NullAllowed] CKRecordZoneID zoneId, Action completionHandler); + void PerformQuery (CKQuery query, [NullAllowed] CKRecordZoneID zoneId, Action completionHandler); [Export ("fetchAllRecordZonesWithCompletionHandler:")] [Async] - void FetchAllRecordZones (Action completionHandler); + void FetchAllRecordZones (Action completionHandler); [Export ("fetchRecordZoneWithID:completionHandler:")] [Async] @@ -381,28 +381,28 @@ namespace CloudKit { void DeleteRecordZone (CKRecordZoneID zoneId, Action completionHandler); [Export ("fetchSubscriptionWithID:completionHandler:")] - [Watch (6,0)] + [Watch (6, 0)] [Async] void FetchSubscription (string subscriptionId, Action completionHandler); - [Watch (6,0)] + [Watch (6, 0)] [Export ("fetchAllSubscriptionsWithCompletionHandler:")] [Async] - void FetchAllSubscriptions (Action completionHandler); + void FetchAllSubscriptions (Action completionHandler); - [Watch (6,0)] + [Watch (6, 0)] [Export ("saveSubscription:completionHandler:")] [Async] void SaveSubscription (CKSubscription subscription, Action completionHandler); [Export ("deleteSubscriptionWithID:completionHandler:")] - [Watch (6,0)] + [Watch (6, 0)] [Async] void DeleteSubscription (string subscriptionID, CKDatabaseDeleteSubscriptionHandler completionHandler); } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (CKOperation))] [DisableDefaultCtor] #if NET || WATCH @@ -410,7 +410,8 @@ namespace CloudKit { #endif interface CKDatabaseOperation { - [Export ("database", ArgumentSemantic.Retain)] [NullAllowed] + [Export ("database", ArgumentSemantic.Retain)] + [NullAllowed] CKDatabase Database { get; set; } } @@ -418,11 +419,11 @@ namespace CloudKit { // This type is no longer in the headers. [NoWatch] [NoTV] - [Obsoleted (PlatformName.iOS, 14, 0, message : "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] - [Deprecated (PlatformName.iOS, 10, 0, message : "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] - [Obsoleted (PlatformName.MacOSX, 10, 16, message : "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 12, message : "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] - [iOS (8,0), Mac (10,10)] + [Obsoleted (PlatformName.iOS, 14, 0, message: "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] + [Obsoleted (PlatformName.MacOSX, 10, 16, message: "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKDiscoverAllUserIdentitiesOperation' instead.")] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated interface CKDiscoverAllContactsOperation { @@ -434,11 +435,11 @@ namespace CloudKit { } // This type is no longer in the headers. - [Obsoleted (PlatformName.iOS, 14, 0, message : "Use 'CKUserIdentity' instead.")] - [Deprecated (PlatformName.iOS, 10, 0, message : "Use 'CKUserIdentity' instead.")] - [Obsoleted (PlatformName.MacOSX, 10, 16, message : "Use 'CKUserIdentity' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 12, message : "Use 'CKUserIdentity' instead.")] - [iOS (8,0), Mac (10,10)] + [Obsoleted (PlatformName.iOS, 14, 0, message: "Use 'CKUserIdentity' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKUserIdentity' instead.")] + [Obsoleted (PlatformName.MacOSX, 10, 16, message: "Use 'CKUserIdentity' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKUserIdentity' instead.")] + [iOS (8, 0), Mac (10, 10)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated @@ -455,8 +456,8 @@ namespace CloudKit { #endif // !NET // CKError.h Fields - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [Static] interface CKErrorFields { #if !XAMCORE_3_0 @@ -480,17 +481,17 @@ namespace CloudKit { [Field ("CKErrorRetryAfterKey")] NSString ErrorRetryAfterKey { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("CKErrorUserDidResetEncryptedDataKey")] NSString UserDidResetEncryptedDataKey { get; } } - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] [BaseType (typeof (CKOperation))] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] [DisableDefaultCtor] // designated interface CKFetchNotificationChangesOperation { @@ -515,33 +516,33 @@ namespace CloudKit { [Export ("notificationChangedBlock", ArgumentSemantic.Copy)] Action NotificationChanged { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("fetchNotificationChangesCompletionBlock", ArgumentSemantic.Copy)] Action Completed { get; - set; + set; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // Objective-C exception thrown. Name: CKException Reason: You can't call init on CKServerChangeToken [BaseType (typeof (NSObject))] interface CKServerChangeToken : NSCopying, NSSecureCoding { - + } [NoWatch] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKFetchRecordChangesHandler (CKServerChangeToken serverChangeToken, NSData clientChangeTokenData, NSError operationError); - [Deprecated (PlatformName.iOS, 10, 0, message : "Use 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.TvOS, 10, 0, message : "Use 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 12, message : "Use 'CKFetchRecordZoneChangesOperation' instead.")] - [iOS (8,0), Mac (10,10)] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.TvOS, 10, 0, message: "Use 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKFetchRecordZoneChangesOperation' instead.")] + [iOS (8, 0), Mac (10, 10)] [NoWatch] [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated @@ -565,21 +566,22 @@ namespace CloudKit { [Export ("resultsLimit", ArgumentSemantic.UnsafeUnretained)] nuint ResultsLimit { get; set; } - [Export ("desiredKeys", ArgumentSemantic.Copy)] [NullAllowed] + [Export ("desiredKeys", ArgumentSemantic.Copy)] + [NullAllowed] string [] DesiredKeys { get; set; } [NullAllowed] // by default this property is null [Export ("recordChangedBlock", ArgumentSemantic.Copy)] Action RecordChanged { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("recordWithIDWasDeletedBlock", ArgumentSemantic.Copy)] Action RecordDeleted { get; - set; + set; } [Export ("moreComing")] @@ -589,27 +591,26 @@ namespace CloudKit { [Export ("fetchRecordChangesCompletionBlock", ArgumentSemantic.Copy)] CKFetchRecordChangesHandler AllChangesReported { get; - set; + set; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10, 12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKFetchRecordZoneChangesWithIDWasDeletedHandler (CKRecordID recordID, NSString recordType); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKFetchRecordZoneChangesTokensUpdatedHandler (CKRecordZoneID recordZoneID, CKServerChangeToken serverChangeToken, NSData clientChangeTokenData); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKFetchRecordZoneChangesFetchCompletedHandler (CKRecordZoneID recordZoneID, CKServerChangeToken serverChangeToken, NSData clientChangeTokenData, bool moreComing, NSError recordZoneError); - [iOS (15,0), Watch (8,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Watch (8, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] delegate void CKFetchRecordZoneChangesRecordWasChangedHandler (CKRecordID recordId, CKRecord record, NSError error); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKDatabaseOperation))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated - interface CKFetchRecordZoneChangesOperation - { + interface CKFetchRecordZoneChangesOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -619,15 +620,15 @@ namespace CloudKit { [Deprecated (PlatformName.iOS, 12, 0, message: "Use the overload with the 'NSDictionary' parameter instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the overload with the 'NSDictionary' parameter instead.")] [Export ("initWithRecordZoneIDs:optionsByRecordZoneID:")] - NativeHandle Constructor (CKRecordZoneID[] recordZoneIDs, [NullAllowed] NSDictionary optionsByRecordZoneID); + NativeHandle Constructor (CKRecordZoneID [] recordZoneIDs, [NullAllowed] NSDictionary optionsByRecordZoneID); - [iOS (12,0), Watch (5,0), TV (12,0), Mac (10,14)] + [iOS (12, 0), Watch (5, 0), TV (12, 0), Mac (10, 14)] [Export ("initWithRecordZoneIDs:configurationsByRecordZoneID:")] - NativeHandle Constructor (CKRecordZoneID[] recordZoneIDs, [NullAllowed] NSDictionary configurationsByRecordZoneID); + NativeHandle Constructor (CKRecordZoneID [] recordZoneIDs, [NullAllowed] NSDictionary configurationsByRecordZoneID); [NullAllowed] [Export ("recordZoneIDs", ArgumentSemantic.Copy)] - CKRecordZoneID[] RecordZoneIDs { get; set; } + CKRecordZoneID [] RecordZoneIDs { get; set; } [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'ConfigurationsByRecordZoneID' instead.")] [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'ConfigurationsByRecordZoneID' instead.")] @@ -636,7 +637,7 @@ namespace CloudKit { [NullAllowed, Export ("optionsByRecordZoneID", ArgumentSemantic.Copy)] NSDictionary OptionsByRecordZoneID { get; set; } - [iOS (12,0), Watch (5,0), TV (12,0), Mac (10,14)] + [iOS (12, 0), Watch (5, 0), TV (12, 0), Mac (10, 14)] [NullAllowed, Export ("configurationsByRecordZoneID", ArgumentSemantic.Copy)] NSDictionary ConfigurationsByRecordZoneID { get; set; } @@ -664,7 +665,7 @@ namespace CloudKit { Action ChangesCompleted { get; set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("recordWasChangedBlock", ArgumentSemantic.Copy)] CKFetchRecordZoneChangesRecordWasChangedHandler RecordWasChangedHandler { get; set; } } @@ -673,10 +674,9 @@ namespace CloudKit { [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'CKFetchRecordZoneChangesConfiguration' instead.")] [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'CKFetchRecordZoneChangesConfiguration' instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'CKFetchRecordZoneChangesConfiguration' instead.")] - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] - interface CKFetchRecordZoneChangesOptions : NSSecureCoding, NSCopying - { + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface CKFetchRecordZoneChangesOptions : NSSecureCoding, NSCopying { [NullAllowed, Export ("previousServerChangeToken", ArgumentSemantic.Copy)] CKServerChangeToken PreviousServerChangeToken { get; set; } @@ -684,10 +684,10 @@ namespace CloudKit { nuint ResultsLimit { get; set; } [NullAllowed, Export ("desiredKeys", ArgumentSemantic.Copy)] - string[] DesiredKeys { get; set; } + string [] DesiredKeys { get; set; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (NSObject))] interface CKFetchRecordZoneChangesConfiguration : NSSecureCoding, NSCopying { @@ -701,10 +701,10 @@ namespace CloudKit { string [] DesiredKeys { get; set; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKFetchRecordsCompletedHandler (NSDictionary recordsByRecordId, NSError error); - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility #else @@ -726,23 +726,23 @@ namespace CloudKit { [NullAllowed] // by default this property is null [Export ("perRecordProgressBlock", ArgumentSemantic.Copy)] - Action PerRecordProgress { + Action PerRecordProgress { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("perRecordCompletionBlock", ArgumentSemantic.Copy)] - Action PerRecordCompletion { + Action PerRecordCompletion { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("fetchRecordsCompletionBlock", ArgumentSemantic.Copy)] CKFetchRecordsCompletedHandler Completed { get; - set; + set; } [Static] @@ -750,13 +750,13 @@ namespace CloudKit { CKFetchRecordsOperation FetchCurrentUserRecordOperation (); } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKRecordZoneCompleteHandler (NSDictionary recordZonesByZoneId, NSError operationError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKRecordZonePerRecordZoneCompletionHandler (CKRecordZoneID recordZoneId, CKRecordZone recordZone, NSError error); - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] [BaseType (typeof (CKDatabaseOperation))] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility @@ -776,7 +776,7 @@ namespace CloudKit { [Export ("fetchRecordZonesCompletionBlock", ArgumentSemantic.Copy)] CKRecordZoneCompleteHandler Completed { get; - set; + set; } [Static] @@ -784,20 +784,20 @@ namespace CloudKit { CKFetchRecordZonesOperation FetchAllRecordZonesOperation (); [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perRecordZoneCompletionBlock", ArgumentSemantic.Copy)] CKRecordZonePerRecordZoneCompletionHandler PerRecordZoneCompletionHandler { get; set; } } [NoWatch] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKFetchSubscriptionsCompleteHandler (NSDictionary subscriptionsBySubscriptionId, NSError operationError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKFetchSubscriptionsPerSubscriptionCompletionHandler (NSString subscriptionId, CKSubscription subscription, NSError error); - [iOS (8,0), Mac (10,10)] - [Watch (6,0)] + [iOS (8, 0), Mac (10, 10)] + [Watch (6, 0)] [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated interface CKFetchSubscriptionsOperation { @@ -817,7 +817,7 @@ namespace CloudKit { [Export ("fetchSubscriptionCompletionBlock", ArgumentSemantic.Copy)] CKFetchSubscriptionsCompleteHandler Completed { get; - set; + set; } [Static] @@ -825,12 +825,12 @@ namespace CloudKit { CKFetchSubscriptionsOperation FetchAllSubscriptionsOperation (); [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perSubscriptionCompletionBlock", ArgumentSemantic.Copy)] CKFetchSubscriptionsPerSubscriptionCompletionHandler PerSubscriptionCompletionHandler { get; set; } } - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] #if NET || WATCH // does not work on watchOS, existiong init* does not allow null to be used to fake it [DisableDefaultCtor] #endif @@ -844,17 +844,17 @@ namespace CloudKit { CLLocation RelativeLocation { get; } } - [iOS (8,0), Mac (10,10)] - delegate void CKMarkNotificationsReadHandler (CKNotificationID[] notificationIDsMarkedRead, NSError operationError); + [iOS (8, 0), Mac (10, 10)] + delegate void CKMarkNotificationsReadHandler (CKNotificationID [] notificationIDsMarkedRead, NSError operationError); - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You must call -[CKMarkNotificationsReadOperation initWithNotificationIDsToMarkRead:] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKDatabaseSubscription', 'CKFetchDatabaseChangesOperation' and 'CKFetchRecordZoneChangesOperation' instead.")] interface CKMarkNotificationsReadOperation { [DesignatedInitializer] @@ -869,11 +869,11 @@ namespace CloudKit { [Export ("markNotificationsReadCompletionBlock", ArgumentSemantic.Copy)] CKMarkNotificationsReadHandler Completed { get; - set; + set; } } - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility #else @@ -896,20 +896,20 @@ namespace CloudKit { [Export ("modifyBadgeCompletionBlock", ArgumentSemantic.Copy)] Action Completed { get; - set; + set; } } - [iOS (8,0), Mac (10,10), Watch (3,0)] + [iOS (8, 0), Mac (10, 10), Watch (3, 0)] delegate void CKModifyRecordsOperationHandler (CKRecord [] savedRecords, CKRecordID [] deletedRecordIds, NSError operationError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKModifyRecordsOperationPerRecordSaveHandler (CKRecordID recordId, CKRecord record, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKModifyRecordsOperationPerRecordDeleteHandler (CKRecordID recordId, NSError error); - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility #else @@ -938,9 +938,9 @@ namespace CloudKit { [NullAllowed] // by default this property is null [Export ("perRecordProgressBlock", ArgumentSemantic.Copy)] - Action PerRecordProgress { + Action PerRecordProgress { get; - set; + set; } [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'PerRecordResultHandler' instead.")] @@ -952,41 +952,41 @@ namespace CloudKit { [Export ("perRecordCompletionBlock", ArgumentSemantic.Copy)] Action PerRecordCompletion { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("modifyRecordsCompletionBlock", ArgumentSemantic.Copy)] CKModifyRecordsOperationHandler Completed { get; - set; + set; } [Export ("atomic")] bool Atomic { get; set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perRecordSaveBlock", ArgumentSemantic.Copy)] CKModifyRecordsOperationPerRecordSaveHandler PerRecordSaveHandler { get; set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perRecordDeleteBlock", ArgumentSemantic.Copy)] CKModifyRecordsOperationPerRecordDeleteHandler PerRecordDeleteHandler { get; set; } - + } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKModifyRecordZonesHandler (CKRecordZone [] savedRecordZones, CKRecordZoneID [] deletedRecordZoneIds, NSError operationError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKModifyRecordZonesPerRecordZoneSaveHandler (CKRecordZoneID zoneId, CKRecordZone zone, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKModifyRecordZonesPerRecordZoneDeleteHandler (CKRecordZoneID zoneId, NSError error); - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility #else @@ -1010,31 +1010,31 @@ namespace CloudKit { [Export ("modifyRecordZonesCompletionBlock", ArgumentSemantic.Copy)] CKModifyRecordZonesHandler Completed { get; - set; + set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perRecordZoneSaveBlock", ArgumentSemantic.Copy)] CKModifyRecordZonesPerRecordZoneSaveHandler PerRecordZoneSaveHandler { get; set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perRecordZoneDeleteBlock", ArgumentSemantic.Copy)] CKModifyRecordZonesPerRecordZoneDeleteHandler PerRecordZoneDeleteHandler { get; set; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void CKModifySubscriptionsHandler (CKSubscription [] savedSubscriptions, string [] deletedSubscriptionIds, NSError operationError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKModifySubscriptionsPerSubscriptionSaveHandler (NSString subscriptionId, CKSubscription subscription, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - delegate void CKModifySubscriptionsPerSubscriptionDeleteHandler (NSString subscriptionId, NSError error); + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + delegate void CKModifySubscriptionsPerSubscriptionDeleteHandler (NSString subscriptionId, NSError error); - [iOS (8,0), Mac (10,10)] - [Watch (6,0)] + [iOS (8, 0), Mac (10, 10)] + [Watch (6, 0)] [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated interface CKModifySubscriptionsOperation { @@ -1058,29 +1058,29 @@ namespace CloudKit { [Export ("modifySubscriptionsCompletionBlock", ArgumentSemantic.Copy)] CKModifySubscriptionsHandler Completed { get; - set; + set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perSubscriptionSaveBlock", ArgumentSemantic.Copy)] CKModifySubscriptionsPerSubscriptionSaveHandler PerSubscriptionSaveHandler { get; set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("perSubscriptionDeleteBlock", ArgumentSemantic.Copy)] CKModifySubscriptionsPerSubscriptionDeleteHandler PerSubscriptionDeleteHandler { get; set; } } - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] [DisableDefaultCtor] // doc: You do not create notification IDs directly. [BaseType (typeof (NSObject))] interface CKNotificationID : NSCopying, NSSecureCoding, NSCoding { } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: CKNotification is not meant for direct instantiation [BaseType (typeof (NSObject))] #if NET || WATCH @@ -1134,12 +1134,14 @@ namespace CloudKit { [return: NullAllowed] CKNotification FromRemoteNotificationDictionary (NSDictionary notificationDictionary); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("subscriptionID")] string SubscriptionID { get; } [NoTV] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("category")] string Category { get; } @@ -1153,7 +1155,7 @@ namespace CloudKit { [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("titleLocalizationArgs", ArgumentSemantic.Copy)] - string[] TitleLocalizationArgs { get; } + string [] TitleLocalizationArgs { get; } [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("subtitle")] @@ -1165,15 +1167,15 @@ namespace CloudKit { [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("subtitleLocalizationArgs", ArgumentSemantic.Copy)] - string[] SubtitleLocalizationArgs { get; } + string [] SubtitleLocalizationArgs { get; } [Watch (7, 0), TV (14, 0), Mac (10, 16), iOS (14, 0)] [NullAllowed, Export ("subscriptionOwnerUserRecordID", ArgumentSemantic.Copy)] CKRecordID SubscriptionOwnerUserRecordId { get; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: CKQueryNotification is not meant for direct instantiation [BaseType (typeof (CKNotification))] interface CKQueryNotification : NSCoding, NSSecureCoding { @@ -1191,13 +1193,13 @@ namespace CloudKit { [NullAllowed, Export ("recordID", ArgumentSemantic.Copy)] CKRecordID RecordId { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("databaseScope", ArgumentSemantic.Assign)] CKDatabaseScope DatabaseScope { get; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // objc_exception_throw on CKNotification init [BaseType (typeof (CKNotification))] interface CKRecordZoneNotification : NSCoding, NSSecureCoding { @@ -1206,22 +1208,21 @@ namespace CloudKit { [Export ("recordZoneID", ArgumentSemantic.Copy)] CKRecordZoneID RecordZoneId { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("databaseScope", ArgumentSemantic.Assign)] CKDatabaseScope DatabaseScope { get; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] // objc_exception_throw on CKNotification init - [BaseType (typeof(CKNotification))] - interface CKDatabaseNotification - { + [BaseType (typeof (CKNotification))] + interface CKDatabaseNotification { [Export ("databaseScope", ArgumentSemantic.Assign)] CKDatabaseScope DatabaseScope { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] interface CKOperationConfiguration : NSSecureCoding, NSCopying { [NullAllowed, Export ("container", ArgumentSemantic.Strong)] CKContainer Container { get; set; } @@ -1242,8 +1243,8 @@ namespace CloudKit { double TimeoutIntervalForResource { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSOperation))] [DisableDefaultCtor] #if NET || WATCH @@ -1261,55 +1262,58 @@ namespace CloudKit { // [Export ("activityStart")] // ulong ActivityStart (); - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] [NullAllowed, Export ("container", ArgumentSemantic.Retain)] CKContainer Container { get; set; } - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] [Export ("allowsCellularAccess", ArgumentSemantic.UnsafeUnretained)] bool AllowsCellularAccess { get; set; } - [iOS (9,3)][Mac (10,11,4)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11, 4)] + [TV (9, 2)] [Export ("operationID")] string OperationID { get; } - [iOS (9,3)][Mac (10,11,4)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11, 4)] + [TV (9, 2)] [Export ("longLived")] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] bool LongLived { [Bind ("isLongLived")] get; set; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("timeoutIntervalForRequest")] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] double TimeoutIntervalForRequest { get; set; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("timeoutIntervalForResource")] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'CKOperationConfiguration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CKOperationConfiguration' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CKOperationConfiguration' instead.")] double TimeoutIntervalForResource { get; set; } - [iOS (9,3)][Mac (10,11,4)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11, 4)] + [TV (9, 2)] [NullAllowed] [Export ("longLivedOperationWasPersistedBlock", ArgumentSemantic.Strong)] - Action LongLivedOperationWasPersistedCallback { get; set; } + Action LongLivedOperationWasPersistedCallback { get; set; } [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed] @@ -1321,8 +1325,8 @@ namespace CloudKit { CKOperationGroup Group { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface CKOperationGroup : NSSecureCoding { @@ -1346,8 +1350,8 @@ namespace CloudKit { CKOperationGroupTransferSize ExpectedReceiveSize { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You must call -[CKQuery initWithRecordType:predicate:sortDescriptors:] [BaseType (typeof (NSObject))] interface CKQuery : NSSecureCoding, NSCopying { @@ -1366,10 +1370,10 @@ namespace CloudKit { NSSortDescriptor [] SortDescriptors { get; set; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void CKQueryOperationRecordMatchedHandler (CKRecordID recordId, CKRecord record, NSError error); - [iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10)] + [iOS (8, 0), Watch (3, 0), TV (10, 0), Mac (10, 10)] [BaseType (typeof (CKDatabaseOperation))] #if WATCH [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility @@ -1378,7 +1382,8 @@ namespace CloudKit { #endif interface CKQueryOperation { - [Field ("CKQueryOperationMaximumResults")][Internal] + [Field ("CKQueryOperationMaximumResults")] + [Internal] IntPtr _MaximumResults { get; set; } [Export ("initWithQuery:")] @@ -1402,7 +1407,8 @@ namespace CloudKit { [Export ("resultsLimit", ArgumentSemantic.UnsafeUnretained)] nuint ResultsLimit { get; set; } - [Export ("desiredKeys", ArgumentSemantic.Copy)][NullAllowed] + [Export ("desiredKeys", ArgumentSemantic.Copy)] + [NullAllowed] string [] DesiredKeys { get; set; } [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'RecordMatchedHandler' instead.")] @@ -1414,24 +1420,24 @@ namespace CloudKit { [Export ("recordFetchedBlock", ArgumentSemantic.Copy)] Action RecordFetched { get; - set; + set; } [NullAllowed] // by default this property is null [Export ("queryCompletionBlock", ArgumentSemantic.Copy)] Action Completed { get; - set; + set; } [NullAllowed] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("recordMatchedBlock", ArgumentSemantic.Copy)] CKQueryOperationRecordMatchedHandler RecordMatchedHandler { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -1441,8 +1447,8 @@ namespace CloudKit { interface ICKRecordValue { } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // Crashes [CKRecord init] objc_exception_throw [BaseType (typeof (NSObject))] interface CKRecord : NSSecureCoding, NSCopying { @@ -1450,19 +1456,19 @@ namespace CloudKit { [Field ("CKRecordTypeUserRecord")] NSString TypeUserRecord { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("CKRecordParentKey")] NSString ParentKey { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("CKRecordShareKey")] NSString ShareKey { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Field ("CKRecordTypeShare")] NSString TypeShare { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("CKRecordNameZoneWideShare")] NSString NameZoneWideShare { get; } @@ -1497,10 +1503,12 @@ namespace CloudKit { NSDate ModificationDate { get; } [return: NullAllowed] - [Export ("objectForKey:")] [Internal] + [Export ("objectForKey:")] + [Internal] NSObject _ObjectForKey (string key); - [Export ("setObject:forKey:")] [Internal] + [Export ("setObject:forKey:")] + [Internal] void _SetObject (IntPtr obj, string key); [Export ("allKeys")] @@ -1510,37 +1518,37 @@ namespace CloudKit { string [] AllTokens (); // No need for this ones -// [Export ("objectForKeyedSubscript:")] -// NSObject ObjectForKeyedSubscript (string key); -// -// [Export ("setObject:forKeyedSubscript:")] -// void SetObject (CKRecordValue obj, string key); + // [Export ("objectForKeyedSubscript:")] + // NSObject ObjectForKeyedSubscript (string key); + // + // [Export ("setObject:forKeyedSubscript:")] + // void SetObject (CKRecordValue obj, string key); [Export ("changedKeys")] string [] ChangedKeys (); [Export ("encodeSystemFieldsWithCoder:")] void EncodeSystemFields (NSCoder coder); - - [iOS (10,0), TV (10,0), Mac (10,12)] + + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("share", ArgumentSemantic.Copy)] CKReference Share { get; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [NullAllowed, Export ("parent", ArgumentSemantic.Copy)] CKReference Parent { get; set; } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("setParentReferenceFromRecord:")] void SetParent ([NullAllowed] CKRecord parentRecord); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("setParentReferenceFromRecordID:")] void SetParent ([NullAllowed] CKRecordID parentRecordID); } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException You must call -[CKRecordID initWithRecordName:] or -[CKRecordID initWithRecordName:zoneID:] interface CKRecordID : NSSecureCoding, NSCopying { @@ -1559,8 +1567,8 @@ namespace CloudKit { CKRecordZoneID ZoneId { get; } } - [iOS (8,0), Mac (10,10)] - [Watch (3,0)] + [iOS (8, 0), Mac (10, 10)] + [Watch (3, 0)] #if NET || WATCH // does not work on watchOS, existiong init* does not allow null to be used to fake it [DisableDefaultCtor] #endif @@ -1586,13 +1594,13 @@ namespace CloudKit { [Export ("defaultRecordZone")] CKRecordZone DefaultRecordZone (); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("share", ArgumentSemantic.Copy)] CKReference Share { get; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException You must call -[CKRecordZoneID initWithZoneName:ownerName:] interface CKRecordZoneID : NSSecureCoding, NSCopying { @@ -1608,8 +1616,8 @@ namespace CloudKit { string OwnerName { get; } } - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You must call -[CKReference initWithRecordID:] or -[CKReference initWithRecord:] or -[CKReference initWithAsset:] [BaseType (typeof (NSObject))] interface CKReference : NSSecureCoding, NSCopying, CKRecordValue { @@ -1628,12 +1636,12 @@ namespace CloudKit { CKRecordID RecordId { get; } } - [Watch (6,0)] - [iOS (10,0)][TV (10,0), Mac (10,12)] + [Watch (6, 0)] + [iOS (10, 0)] + [TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] - [BaseType (typeof(CKSubscription))] - interface CKQuerySubscription : NSSecureCoding, NSCopying - { + [BaseType (typeof (CKSubscription))] + interface CKQuerySubscription : NSSecureCoding, NSCopying { [Export ("initWithRecordType:predicate:options:")] NativeHandle Constructor (string recordType, NSPredicate predicate, CKQuerySubscriptionOptions querySubscriptionOptions); @@ -1654,12 +1662,12 @@ namespace CloudKit { CKQuerySubscriptionOptions SubscriptionOptions { get; } } - [Watch (6,0)] - [iOS (10,0)][TV (10,0), Mac (10,12)] + [Watch (6, 0)] + [iOS (10, 0)] + [TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] - [BaseType (typeof(CKSubscription))] - interface CKRecordZoneSubscription : NSSecureCoding, NSCopying - { + [BaseType (typeof (CKSubscription))] + interface CKRecordZoneSubscription : NSSecureCoding, NSCopying { [Export ("initWithZoneID:")] NativeHandle Constructor (CKRecordZoneID zoneID); @@ -1675,11 +1683,11 @@ namespace CloudKit { string RecordType { get; set; } } - [Watch (6,0)] - [iOS (10,0)][TV (10,0), Mac (10,12)] - [BaseType (typeof(CKSubscription))] - interface CKDatabaseSubscription : NSSecureCoding, NSCopying - { + [Watch (6, 0)] + [iOS (10, 0)] + [TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKSubscription))] + interface CKDatabaseSubscription : NSSecureCoding, NSCopying { [Export ("initWithSubscriptionID:")] [DesignatedInitializer] NativeHandle Constructor (string subscriptionID); @@ -1688,8 +1696,8 @@ namespace CloudKit { string RecordType { get; set; } } - [Watch (6,0)] - [iOS (8,0), Mac (10,10)] + [Watch (6, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // objc_exception_throw on [CKSubscription init] [BaseType (typeof (NSObject))] interface CKSubscription : NSSecureCoding, NSCopying { @@ -1697,15 +1705,15 @@ namespace CloudKit { #if !NET // This constructor does not exist in the headers (anymore?) [NoWatch] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'CKQuerySubscription'.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKQuerySubscription'.")] [Export ("initWithRecordType:predicate:options:")] NativeHandle Constructor (string recordType, NSPredicate predicate, CKSubscriptionOptions subscriptionOptions); // This constructor does not exist in the headers (anymore?) [NoWatch] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'CKQuerySubscription'.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKQuerySubscription'.")] [Export ("initWithRecordType:predicate:subscriptionID:options:")] NativeHandle Constructor (string recordType, NSPredicate predicate, string subscriptionId, CKSubscriptionOptions subscriptionOptions); #endif @@ -1715,37 +1723,38 @@ namespace CloudKit { [Export ("subscriptionType", ArgumentSemantic.UnsafeUnretained)] CKSubscriptionType SubscriptionType { get; } - + [NoWatch] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'CKQuerySubscription'.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKQuerySubscription'.")] [NullAllowed] [Export ("recordType")] string RecordType { get; } [NoWatch] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'CKQuerySubscription'.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKQuerySubscription'.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKQuerySubscription'.")] [NullAllowed] [Export ("predicate", ArgumentSemantic.Copy)] NSPredicate Predicate { get; } - [TV (10,0)] + [TV (10, 0)] [NullAllowed] [Export ("notificationInfo", ArgumentSemantic.Copy)] CKNotificationInfo NotificationInfo { get; set; } [NoWatch] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'CKRecordZoneSubscription'.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'CKRecordZoneSubscription'.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'CKRecordZoneSubscription'.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'CKRecordZoneSubscription'.")] [NoMacCatalyst] [NullAllowed] [Export ("zoneID", ArgumentSemantic.Copy)] CKRecordZoneID ZoneID { get; set; } } - [Watch (6,0)] - [iOS (8,0)][TV (10,0), Mac (10,10)] + [Watch (6, 0)] + [iOS (8, 0)] + [TV (10, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] interface CKNotificationInfo : NSSecureCoding, NSCopying, NSCoding { @@ -1790,7 +1799,8 @@ namespace CloudKit { bool ShouldSendContentAvailable { get; set; } [NoTV] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("category")] string Category { get; set; } @@ -1804,7 +1814,7 @@ namespace CloudKit { [NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("titleLocalizationArgs", ArgumentSemantic.Copy)] - string[] TitleLocalizationArgs { get; set; } + string [] TitleLocalizationArgs { get; set; } [NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("subtitle")] @@ -1816,21 +1826,21 @@ namespace CloudKit { [NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("subtitleLocalizationArgs", ArgumentSemantic.Copy)] - string[] SubtitleLocalizationArgs { get; set; } + string [] SubtitleLocalizationArgs { get; set; } [Mac (10, 13), iOS (11, 0)] - [TV (11,0)] + [TV (11, 0)] [Export ("shouldSendMutableContent")] bool ShouldSendMutableContent { get; set; } [Mac (10, 13), iOS (11, 0)] - [TV (11,0)] + [TV (11, 0)] [NullAllowed, Export ("collapseIDKey")] string CollapseIdKey { get; set; } } - - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [DisableDefaultCtor] // Name: CKException Reason: You can't call init on CKQueryCursor [BaseType (typeof (NSObject))] interface CKQueryCursor : NSCopying, NSSecureCoding { @@ -1839,9 +1849,9 @@ namespace CloudKit { delegate void CKFetchWebAuthTokenOperationHandler (string webAuthToken, NSError operationError); - [iOS (9,2), Mac (10,11,2)] - [TV (9,1)] - [Watch (3,0)] + [iOS (9, 2), Mac (10, 11, 2)] + [TV (9, 1)] + [Watch (3, 0)] [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated interface CKFetchWebAuthTokenOperation { @@ -1862,20 +1872,19 @@ namespace CloudKit { CKFetchWebAuthTokenOperationHandler Completed { get; set; } } - [iOS (10,0), TV (10,0), Watch (3,0), Mac (10,12)] - [BaseType (typeof(CKOperation))] + [iOS (10, 0), TV (10, 0), Watch (3, 0), Mac (10, 12)] + [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated - interface CKDiscoverUserIdentitiesOperation - { + interface CKDiscoverUserIdentitiesOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); [Export ("initWithUserIdentityLookupInfos:")] - NativeHandle Constructor (CKUserIdentityLookupInfo[] userIdentityLookupInfos); + NativeHandle Constructor (CKUserIdentityLookupInfo [] userIdentityLookupInfos); [Export ("userIdentityLookupInfos", ArgumentSemantic.Copy)] - CKUserIdentityLookupInfo[] UserIdentityLookupInfos { get; set; } + CKUserIdentityLookupInfo [] UserIdentityLookupInfos { get; set; } [NullAllowed, Export ("userIdentityDiscoveredBlock", ArgumentSemantic.Copy)] Action Discovered { get; set; } @@ -1884,11 +1893,10 @@ namespace CloudKit { Action Completed { get; set; } } - [NoTV, iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKOperation))] + [NoTV, iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated - interface CKDiscoverAllUserIdentitiesOperation - { + interface CKDiscoverAllUserIdentitiesOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -1900,24 +1908,23 @@ namespace CloudKit { Action Completed { get; set; } } - [iOS (15,0), Watch (8,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Watch (8, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] delegate void CKFetchShareParticipantsOperationPerShareParticipantCompletionHandler (CKUserIdentityLookupInfo identityLookupInfo, CKShareParticipant participant, NSError error); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKOperation))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated - interface CKFetchShareParticipantsOperation - { + interface CKFetchShareParticipantsOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); [Export ("initWithUserIdentityLookupInfos:")] - NativeHandle Constructor (CKUserIdentityLookupInfo[] userIdentityLookupInfos); + NativeHandle Constructor (CKUserIdentityLookupInfo [] userIdentityLookupInfos); [NullAllowed] [Export ("userIdentityLookupInfos", ArgumentSemantic.Copy)] - CKUserIdentityLookupInfo[] UserIdentityLookupInfos { get; set; } + CKUserIdentityLookupInfo [] UserIdentityLookupInfos { get; set; } [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'PerShareParticipantCompletionHandler' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'PerShareParticipantCompletionHandler' instead.")] @@ -1931,29 +1938,28 @@ namespace CloudKit { Action Completed { get; set; } [NullAllowed] - [iOS (15,0), Watch (8,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Watch (8, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("perShareParticipantCompletionBlock", ArgumentSemantic.Copy)] CKFetchShareParticipantsOperationPerShareParticipantCompletionHandler PerShareParticipantCompletionBlock { get; set; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKAcceptPerShareCompletionHandler (CKShareMetadata shareMetadata, CKShare acceptedShare, NSError error); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKOperation))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated - interface CKAcceptSharesOperation - { + interface CKAcceptSharesOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); [Export ("initWithShareMetadatas:")] - NativeHandle Constructor (CKShareMetadata[] shareMetadatas); + NativeHandle Constructor (CKShareMetadata [] shareMetadatas); [Export ("shareMetadatas", ArgumentSemantic.Copy)] [NullAllowed] - CKShareMetadata[] ShareMetadatas { get; set; } + CKShareMetadata [] ShareMetadatas { get; set; } [NullAllowed, Export ("perShareCompletionBlock", ArgumentSemantic.Copy)] CKAcceptPerShareCompletionHandler PerShareCompleted { get; set; } @@ -1962,30 +1968,29 @@ namespace CloudKit { Action AcceptSharesCompleted { get; set; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKFetchPerShareMetadataHandler (NSUrl shareURL, CKShareMetadata shareMetadata, NSError error); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKOperation))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKOperation))] [DisableDefaultCtor] // designated - interface CKFetchShareMetadataOperation - { + interface CKFetchShareMetadataOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); [Export ("initWithShareURLs:")] - NativeHandle Constructor (NSUrl[] shareUrls); + NativeHandle Constructor (NSUrl [] shareUrls); [NullAllowed] [Export ("shareURLs", ArgumentSemantic.Copy)] - NSUrl[] ShareUrls { get; set; } + NSUrl [] ShareUrls { get; set; } [Export ("shouldFetchRootRecord")] bool ShouldFetchRootRecord { get; set; } [NullAllowed, Export ("rootRecordDesiredKeys", ArgumentSemantic.Copy)] - string[] RootRecordDesiredKeys { get; set; } + string [] RootRecordDesiredKeys { get; set; } [NullAllowed, Export ("perShareMetadataBlock", ArgumentSemantic.Copy)] CKFetchPerShareMetadataHandler PerShareMetadata { get; set; } @@ -1994,14 +1999,13 @@ namespace CloudKit { Action FetchShareMetadataCompleted { get; set; } } - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] delegate void CKFetchDatabaseChangesCompletionHandler (CKServerChangeToken serverChangeToken, bool moreComing, NSError operationError); - [iOS (10,0), Watch (3,0), TV (10,0), Mac (10,12)] - [BaseType (typeof(CKDatabaseOperation))] + [iOS (10, 0), Watch (3, 0), TV (10, 0), Mac (10, 12)] + [BaseType (typeof (CKDatabaseOperation))] [DisableDefaultCtor] // designated - interface CKFetchDatabaseChangesOperation - { + interface CKFetchDatabaseChangesOperation { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -2035,16 +2039,15 @@ namespace CloudKit { [NullAllowed, Export ("fetchDatabaseChangesCompletionBlock", ArgumentSemantic.Copy)] CKFetchDatabaseChangesCompletionHandler ChangesCompleted { get; set; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock", ArgumentSemantic.Copy)] Action RecordZoneWithIdWasDeletedDueToUserEncryptedDataReset { get; set; } } - [NoTV, NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CKAllowedSharingOptions : NSSecureCoding, NSCopying - { + interface CKAllowedSharingOptions : NSSecureCoding, NSCopying { [Export ("initWithAllowedParticipantPermissionOptions:allowedParticipantAccessOptions:")] NativeHandle Constructor (CKSharingParticipantPermissionOption allowedParticipantPermissionOptions, CKSharingParticipantAccessOption allowedParticipantAccessOptions); @@ -2059,11 +2062,10 @@ namespace CloudKit { CKAllowedSharingOptions StandardOptions { get; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CKSystemSharingUIObserver - { + interface CKSystemSharingUIObserver { [Export ("initWithContainer:")] [DesignatedInitializer] NativeHandle Constructor (CKContainer container); diff --git a/src/contacts.cs b/src/contacts.cs index 2ea24e07a8..f9a5992d1b 100644 --- a/src/contacts.cs +++ b/src/contacts.cs @@ -18,15 +18,15 @@ using NativeHandle = System.IntPtr; namespace Contacts { - interface ICNKeyDescriptor {} + interface ICNKeyDescriptor { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] // Headers say "This protocol is reserved for Contacts framework usage.", so don't create a model interface CNKeyDescriptor : NSObjectProtocol, NSSecureCoding, NSCopying { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContact : NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading, NSItemProviderWriting { @@ -66,8 +66,9 @@ namespace Contacts { [Export ("phoneticFamilyName")] string PhoneticFamilyName { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] [Export ("phoneticOrganizationName")] string PhoneticOrganizationName { get; } @@ -91,7 +92,7 @@ namespace Contacts { [Export ("thumbnailImageData", ArgumentSemantic.Copy)] NSData ThumbnailImageData { get; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("imageDataAvailable")] bool ImageDataAvailable { get; } @@ -168,12 +169,12 @@ namespace Contacts { [Export ("predicateForContactsMatchingName:")] NSPredicate GetPredicateForContacts (string matchingName); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("predicateForContactsMatchingEmailAddress:")] NSPredicate GetPredicateForContactsMatchingEmailAddress (string emailAddress); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("predicateForContactsMatchingPhoneNumber:")] NSPredicate GetPredicateForContacts (CNPhoneNumber phoneNumber); @@ -191,7 +192,7 @@ namespace Contacts { NSPredicate GetPredicateForContactsInContainer (string containerIdentifier); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNContactKey { @@ -229,8 +230,9 @@ namespace Contacts { [Field ("CNContactPhoneticFamilyNameKey")] NSString PhoneticFamilyName { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] [Field ("CNContactPhoneticOrganizationNameKey")] NSString PhoneticOrganizationName { get; } @@ -255,7 +257,7 @@ namespace Contacts { [Field ("CNContactImageDataKey")] NSString ImageData { get; } - [Mac (10,12)] + [Mac (10, 12)] [Field ("CNContactImageDataAvailableKey")] NSString ImageDataAvailable { get; } @@ -290,7 +292,7 @@ namespace Contacts { NSString InstantMessageAddresses { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (CNFetchRequest))] [DisableDefaultCtor] // using init raises an exception according to docs interface CNContactFetchRequest : NSSecureCoding { @@ -309,7 +311,8 @@ namespace Contacts { // cannot be exposed as NSString since they could be internalized types, like CNAggregateKeyDescriptor NSArray KeysToFetch { get; set; } - [iOS (10,0)][Mac (10,12)] // API existed previously ? maybe it was not working before now ? + [iOS (10, 0)] + [Mac (10, 12)] // API existed previously ? maybe it was not working before now ? [Export ("mutableObjects")] bool MutableObjects { get; set; } @@ -320,7 +323,7 @@ namespace Contacts { CNContactSortOrder SortOrder { get; set; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSFormatter))] interface CNContactFormatter : NSSecureCoding { @@ -371,7 +374,7 @@ namespace Contacts { ICNKeyDescriptor RequiredKeysForNameOrder { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContactProperty : NSCopying, NSSecureCoding { @@ -394,7 +397,7 @@ namespace Contacts { string Label { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContactRelation : NSCopying, NSSecureCoding, INSCopying, INSSecureCoding { @@ -409,7 +412,7 @@ namespace Contacts { string Name { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNLabelContactRelationKey { @@ -447,827 +450,827 @@ namespace Contacts { [Field ("CNLabelContactRelationManager")] NSString Manager { get; } - [iOS (11,0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [Field ("CNLabelContactRelationSon")] - [Watch (4,0)] + [Watch (4, 0)] NSString Son { get; } - [iOS (11,0), Mac (10,13)] - [Watch (4,0)] + [iOS (11, 0), Mac (10, 13)] + [Watch (4, 0)] [Field ("CNLabelContactRelationDaughter")] NSString Daughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationColleague")] NSString Colleague { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationTeacher")] NSString Teacher { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSibling")] NSString Sibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerSibling")] NSString YoungerSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderSibling")] NSString ElderSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerSister")] NSString YoungerSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungestSister")] NSString YoungestSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderSister")] NSString ElderSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationEldestSister")] NSString EldestSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerBrother")] NSString YoungerBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungestBrother")] NSString YoungestBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderBrother")] NSString ElderBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationEldestBrother")] NSString EldestBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMaleFriend")] NSString MaleFriend { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFemaleFriend")] NSString FemaleFriend { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationWife")] NSString Wife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationHusband")] NSString Husband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMalePartner")] NSString MalePartner { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFemalePartner")] NSString FemalePartner { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGirlfriendOrBoyfriend")] NSString GirlfriendOrBoyfriend { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGirlfriend")] NSString Girlfriend { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBoyfriend")] NSString Boyfriend { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandparent")] NSString Grandparent { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandmother")] NSString Grandmother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandmotherMothersMother")] NSString GrandmotherMothersMother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandmotherFathersMother")] NSString GrandmotherFathersMother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandfather")] NSString Grandfather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandfatherMothersFather")] NSString GrandfatherMothersFather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandfatherFathersFather")] NSString GrandfatherFathersFather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandparent")] NSString GreatGrandparent { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandmother")] NSString GreatGrandmother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandfather")] NSString GreatGrandfather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandchild")] NSString Grandchild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGranddaughter")] NSString Granddaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGranddaughterDaughtersDaughter")] NSString GranddaughterDaughtersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGranddaughterSonsDaughter")] NSString GranddaughterSonsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandson")] NSString Grandson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandsonDaughtersSon")] NSString GrandsonDaughtersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandsonSonsSon")] NSString GrandsonSonsSon { get; } - - [Watch (6,0), Mac (10,15), iOS (13,0)] + + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandchild")] NSString GreatGrandchild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGranddaughter")] NSString GreatGranddaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandson")] NSString GreatGrandson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentInLaw")] NSString ParentInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMotherInLaw")] NSString MotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMotherInLawWifesMother")] NSString MotherInLawWifesMother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMotherInLawHusbandsMother")] NSString MotherInLawHusbandsMother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFatherInLaw")] NSString FatherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFatherInLawWifesFather")] NSString FatherInLawWifesFather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFatherInLawHusbandsFather")] NSString FatherInLawHusbandsFather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoParentInLaw")] NSString CoParentInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoMotherInLaw")] NSString CoMotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoFatherInLaw")] NSString CoFatherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSiblingInLaw")] NSString SiblingInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerSiblingInLaw")] NSString YoungerSiblingInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderSiblingInLaw")] NSString ElderSiblingInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLaw")] NSString SisterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerSisterInLaw")] NSString YoungerSisterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderSisterInLaw")] NSString ElderSisterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawSpousesSister")] NSString SisterInLawSpousesSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawWifesSister")] NSString SisterInLawWifesSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawHusbandsSister")] NSString SisterInLawHusbandsSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawBrothersWife")] NSString SisterInLawBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawYoungerBrothersWife")] NSString SisterInLawYoungerBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawElderBrothersWife")] NSString SisterInLawElderBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLaw")] NSString BrotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerBrotherInLaw")] NSString YoungerBrotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderBrotherInLaw")] NSString ElderBrotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawSpousesBrother")] NSString BrotherInLawSpousesBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawHusbandsBrother")] NSString BrotherInLawHusbandsBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawWifesBrother")] NSString BrotherInLawWifesBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawSistersHusband")] NSString BrotherInLawSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawYoungerSistersHusband")] NSString BrotherInLawYoungerSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawElderSistersHusband")] NSString BrotherInLawElderSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawWifesBrothersWife")] NSString SisterInLawWifesBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSisterInLawHusbandsBrothersWife")] NSString SisterInLawHusbandsBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawWifesSistersHusband")] NSString BrotherInLawWifesSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationBrotherInLawHusbandsSistersHusband")] NSString BrotherInLawHusbandsSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoSiblingInLaw")] NSString CoSiblingInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoSisterInLaw")] NSString CoSisterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCoBrotherInLaw")] NSString CoBrotherInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationChildInLaw")] NSString ChildInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationDaughterInLaw")] NSString DaughterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSonInLaw")] NSString SonInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousin")] NSString Cousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousin")] NSString YoungerCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousin")] NSString ElderCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMaleCousin")] NSString MaleCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFemaleCousin")] NSString FemaleCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinParentsSiblingsChild")] NSString CousinParentsSiblingsChild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinParentsSiblingsSon")] NSString CousinParentsSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinParentsSiblingsSon")] NSString YoungerCousinParentsSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinParentsSiblingsSon")] NSString ElderCousinParentsSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinParentsSiblingsDaughter")] NSString CousinParentsSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinParentsSiblingsDaughter")] NSString YoungerCousinParentsSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinParentsSiblingsDaughter")] NSString ElderCousinParentsSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinMothersSistersDaughter")] NSString CousinMothersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersSistersDaughter")] NSString YoungerCousinMothersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersSistersDaughter")] NSString ElderCousinMothersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinMothersSistersSon")] NSString CousinMothersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersSistersSon")] NSString YoungerCousinMothersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersSistersSon")] NSString ElderCousinMothersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinMothersBrothersDaughter")] NSString CousinMothersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersBrothersDaughter")] NSString YoungerCousinMothersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersBrothersDaughter")] NSString ElderCousinMothersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinMothersBrothersSon")] NSString CousinMothersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersBrothersSon")] NSString YoungerCousinMothersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersBrothersSon")] NSString ElderCousinMothersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinFathersSistersDaughter")] NSString CousinFathersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinFathersSistersDaughter")] NSString YoungerCousinFathersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinFathersSistersDaughter")] NSString ElderCousinFathersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinFathersSistersSon")] NSString CousinFathersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinFathersSistersSon")] NSString YoungerCousinFathersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinFathersSistersSon")] NSString ElderCousinFathersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinFathersBrothersDaughter")] NSString CousinFathersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinFathersBrothersDaughter")] NSString YoungerCousinFathersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinFathersBrothersDaughter")] NSString ElderCousinFathersBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinFathersBrothersSon")] NSString CousinFathersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinFathersBrothersSon")] NSString YoungerCousinFathersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinFathersBrothersSon")] NSString ElderCousinFathersBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinGrandparentsSiblingsChild")] NSString CousinGrandparentsSiblingsChild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinGrandparentsSiblingsDaughter")] NSString CousinGrandparentsSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinGrandparentsSiblingsSon")] NSString CousinGrandparentsSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon")] NSString YoungerCousinMothersSiblingsSonOrFathersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon")] NSString ElderCousinMothersSiblingsSonOrFathersSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter")] NSString YoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter")] NSString ElderCousinMothersSiblingsDaughterOrFathersSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSibling")] NSString ParentsSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsYoungerSibling")] NSString ParentsYoungerSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsElderSibling")] NSString ParentsElderSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingMothersSibling")] NSString ParentsSiblingMothersSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingMothersYoungerSibling")] NSString ParentsSiblingMothersYoungerSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingMothersElderSibling")] NSString ParentsSiblingMothersElderSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingFathersSibling")] NSString ParentsSiblingFathersSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingFathersYoungerSibling")] NSString ParentsSiblingFathersYoungerSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationParentsSiblingFathersElderSibling")] NSString ParentsSiblingFathersElderSibling { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAunt")] NSString Aunt { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntParentsSister")] NSString AuntParentsSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntParentsYoungerSister")] NSString AuntParentsYoungerSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntParentsElderSister")] NSString AuntParentsElderSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersSister")] NSString AuntFathersSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersYoungerSister")] NSString AuntFathersYoungerSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersElderSister")] NSString AuntFathersElderSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersBrothersWife")] NSString AuntFathersBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersYoungerBrothersWife")] NSString AuntFathersYoungerBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntFathersElderBrothersWife")] NSString AuntFathersElderBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntMothersSister")] NSString AuntMothersSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntMothersYoungerSister")] NSString AuntMothersYoungerSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntMothersElderSister")] NSString AuntMothersElderSister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationAuntMothersBrothersWife")] NSString AuntMothersBrothersWife { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandaunt")] NSString Grandaunt { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncle")] NSString Uncle { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleParentsBrother")] NSString UncleParentsBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleParentsYoungerBrother")] NSString UncleParentsYoungerBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleParentsElderBrother")] NSString UncleParentsElderBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleMothersBrother")] NSString UncleMothersBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleMothersYoungerBrother")] NSString UncleMothersYoungerBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleMothersElderBrother")] NSString UncleMothersElderBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleMothersSistersHusband")] NSString UncleMothersSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersBrother")] NSString UncleFathersBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersYoungerBrother")] NSString UncleFathersYoungerBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersElderBrother")] NSString UncleFathersElderBrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersSistersHusband")] NSString UncleFathersSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersYoungerSistersHusband")] NSString UncleFathersYoungerSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationUncleFathersElderSistersHusband")] NSString UncleFathersElderSistersHusband { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGranduncle")] NSString Granduncle { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSiblingsChild")] NSString SiblingsChild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNiece")] NSString Niece { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNieceSistersDaughter")] NSString NieceSistersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNieceBrothersDaughter")] NSString NieceBrothersDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter")] NSString NieceSistersDaughterOrWifesSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter")] NSString NieceBrothersDaughterOrHusbandsSiblingsDaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephew")] NSString Nephew { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephewSistersSon")] NSString NephewSistersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephewBrothersSon")] NSString NephewBrothersSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon")] NSString NephewBrothersSonOrHusbandsSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon")] NSString NephewSistersSonOrWifesSiblingsSon { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandniece")] NSString Grandniece { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandnieceSistersGranddaughter")] NSString GrandnieceSistersGranddaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandnieceBrothersGranddaughter")] NSString GrandnieceBrothersGranddaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandnephew")] NSString Grandnephew { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandnephewSistersGrandson")] NSString GrandnephewSistersGrandson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandnephewBrothersGrandson")] NSString GrandnephewBrothersGrandson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepparent")] NSString Stepparent { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepfather")] NSString Stepfather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepmother")] NSString Stepmother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepchild")] NSString Stepchild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepson")] NSString Stepson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepdaughter")] NSString Stepdaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepbrother")] NSString Stepbrother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationStepsister")] NSString Stepsister { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationMotherInLawOrStepmother")] NSString MotherInLawOrStepmother { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationFatherInLawOrStepfather")] NSString FatherInLawOrStepfather { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationDaughterInLawOrStepdaughter")] NSString DaughterInLawOrStepdaughter { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSonInLawOrStepson")] NSString SonInLawOrStepson { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationCousinOrSiblingsChild")] NSString CousinOrSiblingsChild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNieceOrCousin")] NSString NieceOrCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationNephewOrCousin")] NSString NephewOrCousin { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGrandchildOrSiblingsChild")] NSString GrandchildOrSiblingsChild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild")] NSString GreatGrandchildOrSiblingsGrandchild { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationDaughterInLawOrSisterInLaw")] NSString DaughterInLawOrSisterInLaw { get; } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Field ("CNLabelContactRelationSonInLawOrBrotherInLaw")] NSString SonInLawOrBrotherInLaw { get; } [iOS (14, 0), Mac (11, 0), Watch (7, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("CNLabelContactRelationGranddaughterOrNiece")] NSString GranddaughterOrNiece { get; } [iOS (14, 0), Mac (11, 0), Watch (7, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("CNLabelContactRelationGrandsonOrNephew")] NSString GrandsonOrNephew { get; } @@ -1279,9 +1282,9 @@ namespace Contacts { #endif delegate void CNContactStoreListContactsHandler (CNContact contact, ref bool stop); - interface ICNChangeHistoryEventVisitor {} + interface ICNChangeHistoryEventVisitor { } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface CNChangeHistoryEventVisitor { [Abstract] @@ -1322,7 +1325,7 @@ namespace Contacts { void RemoveSubgroupFromGroup (CNChangeHistoryRemoveSubgroupFromGroupEvent @event); } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CNChangeHistoryEvent : NSCopying, NSSecureCoding { @@ -1330,11 +1333,11 @@ namespace Contacts { void AcceptEventVisitor (ICNChangeHistoryEventVisitor visitor); } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] - interface CNChangeHistoryDropEverythingEvent {} + interface CNChangeHistoryDropEverythingEvent { } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryAddContactEvent { @@ -1345,7 +1348,7 @@ namespace Contacts { string ContainerIdentifier { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryUpdateContactEvent { @@ -1353,7 +1356,7 @@ namespace Contacts { CNContact Contact { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryDeleteContactEvent { @@ -1361,7 +1364,7 @@ namespace Contacts { string ContactIdentifier { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryAddGroupEvent { @@ -1372,7 +1375,7 @@ namespace Contacts { string ContainerIdentifier { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryUpdateGroupEvent { @@ -1380,7 +1383,7 @@ namespace Contacts { CNGroup Group { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryDeleteGroupEvent { @@ -1388,7 +1391,7 @@ namespace Contacts { string GroupIdentifier { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryAddMemberToGroupEvent { @@ -1399,7 +1402,7 @@ namespace Contacts { CNGroup Group { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryRemoveMemberFromGroupEvent { @@ -1410,7 +1413,7 @@ namespace Contacts { CNGroup Group { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryAddSubgroupToGroupEvent { @@ -1421,7 +1424,7 @@ namespace Contacts { CNGroup Group { get; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNChangeHistoryEvent))] [DisableDefaultCtor] interface CNChangeHistoryRemoveSubgroupFromGroupEvent { @@ -1434,19 +1437,19 @@ namespace Contacts { // this type is new in Xcode11 but is decorated with earlier versions since it's used as a // base type for older types (and that confuse the generator for 32bits availability) - [iOS (9,0), Mac (10,15), Watch (6,0)] + [iOS (9, 0), Mac (10, 15), Watch (6, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CNFetchRequest {} + interface CNFetchRequest { } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (CNFetchRequest))] interface CNChangeHistoryFetchRequest : NSSecureCoding { [NullAllowed, Export ("startingToken", ArgumentSemantic.Copy)] NSData StartingToken { get; set; } [NullAllowed, Export ("additionalContactKeyDescriptors", ArgumentSemantic.Copy)] - ICNKeyDescriptor[] AdditionalContactKeyDescriptors { get; set; } + ICNKeyDescriptor [] AdditionalContactKeyDescriptors { get; set; } [Export ("shouldUnifyResults")] bool ShouldUnifyResults { get; set; } @@ -1459,10 +1462,10 @@ namespace Contacts { [NullAllowed] [Export ("excludedTransactionAuthors", ArgumentSemantic.Copy)] - string[] ExcludedTransactionAuthors { get; set; } + string [] ExcludedTransactionAuthors { get; set; } } - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CNFetchResult { @@ -1473,7 +1476,7 @@ namespace Contacts { NSData CurrentHistoryToken { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContactStore { @@ -1488,7 +1491,7 @@ namespace Contacts { [Export ("unifiedContactsMatchingPredicate:keysToFetch:error:")] [Protected] // we cannot use ICNKeyDescriptor as Apple (and others) can adopt it from categories [return: NullAllowed] - CNContact[] GetUnifiedContacts (NSPredicate predicate, NSArray keys, [NullAllowed] out NSError error); + CNContact [] GetUnifiedContacts (NSPredicate predicate, NSArray keys, [NullAllowed] out NSError error); [Export ("unifiedContactWithIdentifier:keysToFetch:error:")] [Protected] // we cannot use ICNKeyDescriptor as Apple (and others) can adopt it from categories @@ -1501,12 +1504,12 @@ namespace Contacts { [return: NullAllowed] NSObject GetUnifiedMeContact (NSArray keys, [NullAllowed] out NSError error); - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Export ("enumeratorForContactFetchRequest:error:")] [return: NullAllowed] CNFetchResult> GetEnumeratorForContact (CNContactFetchRequest request, [NullAllowed] out NSError error); - [Watch (6,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), Mac (10, 15), iOS (13, 0)] [Export ("enumeratorForChangeHistoryFetchRequest:error:")] [return: NullAllowed] CNFetchResult> GetEnumeratorForChangeHistory (CNChangeHistoryFetchRequest request, [NullAllowed] out NSError error); @@ -1549,7 +1552,7 @@ namespace Contacts { NSString NotificationDidChange { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [ThreadSafe (false)] interface CNContactsUserDefaults { @@ -1565,7 +1568,7 @@ namespace Contacts { string CountryCode { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContactVCardSerialization { @@ -1585,7 +1588,7 @@ namespace Contacts { } #if !NET - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] #pragma warning disable 0618 // warning CS0618: 'CategoryAttribute.CategoryAttribute(bool)' is obsolete: 'Inline the static members in this category in the category's class (and remove this obsolete once fixed)' [Category (allowStaticMembers: true)] #pragma warning disable @@ -1609,7 +1612,7 @@ namespace Contacts { } #endif - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNContainer : NSCopying, NSSecureCoding { @@ -1622,7 +1625,7 @@ namespace Contacts { [Export ("type", ArgumentSemantic.Assign)] CNContainerType ContainerType { get; } -#region comes from CNContainer (Predicates) Category + #region comes from CNContainer (Predicates) Category [Static] #if NET [Export ("predicateForContainersWithIdentifiers:")] @@ -1646,10 +1649,10 @@ namespace Contacts { [Wrap ("CNContainer_PredicatesExtension.GetPredicateForContainerOfGroup (null!, groupIdentifier)")] #endif NSPredicate CreatePredicateForContainerOfGroup (string groupIdentifier); -#endregion + #endregion } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNContainerKey { // Can be used in KVO @@ -1664,7 +1667,7 @@ namespace Contacts { NSString Type { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNErrorUserInfoKey { @@ -1683,7 +1686,7 @@ namespace Contacts { } #if !NET - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] #pragma warning disable 0618 // warning CS0618: 'CategoryAttribute.CategoryAttribute(bool)' is obsolete: 'Inline the static members in this category in the category's class (and remove this obsolete once fixed)' [Category (allowStaticMembers: true)] #pragma warning disable @@ -1696,7 +1699,8 @@ namespace Contacts { NSPredicate GetPredicateForGroups (string [] identifiers); [Obsolete ("Use 'CNGroup.CreatePredicateForSubgroupsInGroup' instead.")] - [NoiOS][NoWatch] + [NoiOS] + [NoWatch] [Static] [Export ("predicateForSubgroupsInGroupWithIdentifier:")] NSPredicate GetPredicateForSubgroupsInGroup (string parentGroupIdentifier); @@ -1708,7 +1712,7 @@ namespace Contacts { } #endif - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNGroup : NSCopying, NSMutableCopying, NSSecureCoding { @@ -1718,7 +1722,7 @@ namespace Contacts { [Export ("name")] string Name { get; } -#region comes from CNGroup (Predicates) Category + #region comes from CNGroup (Predicates) Category [Static] #if NET [Export ("predicateForGroupsWithIdentifiers:")] @@ -1727,7 +1731,8 @@ namespace Contacts { #endif NSPredicate CreatePredicateForGroups (string [] identifiers); - [NoiOS][NoWatch] + [NoiOS] + [NoWatch] [Static] #if NET [Export ("predicateForSubgroupsInGroupWithIdentifier:")] @@ -1743,10 +1748,10 @@ namespace Contacts { [Wrap ("CNGroup_PredicatesExtension.GetPredicateForGroupsInContainer (null!, containerIdentifier)")] #endif NSPredicate CreatePredicateForGroupsInContainer (string containerIdentifier); -#endregion + #endregion } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNGroupKey { // Can be used in KVO @@ -1758,7 +1763,7 @@ namespace Contacts { NSString Name { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNInstantMessageAddress : NSCopying, NSSecureCoding, INSCopying, INSSecureCoding { @@ -1780,7 +1785,7 @@ namespace Contacts { string LocalizeService (NSString service); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNInstantMessageAddressKey { // Can be used in KVO @@ -1792,7 +1797,7 @@ namespace Contacts { NSString Service { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNInstantMessageServiceKey { @@ -1828,11 +1833,10 @@ namespace Contacts { NSString Yahoo { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNLabeledValue : NSCopying, NSSecureCoding - where ValueType : INSCopying, INSSecureCoding - { + where ValueType : INSCopying, INSSecureCoding { [Export ("identifier")] string Identifier { get; } @@ -1866,7 +1870,7 @@ namespace Contacts { string LocalizeLabel (NSString labelKey); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNLabelKey { @@ -1877,7 +1881,7 @@ namespace Contacts { [Field ("CNLabelWork")] NSString Work { get; } - [iOS (13, 0), Mac (10,15), Watch (6,0)] + [iOS (13, 0), Mac (10, 15), Watch (6, 0)] [Field ("CNLabelSchool")] NSString School { get; } @@ -1894,7 +1898,7 @@ namespace Contacts { NSString DateAnniversary { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (CNContact))] interface CNMutableContact { @@ -1942,8 +1946,9 @@ namespace Contacts { [Export ("phoneticFamilyName")] string PhoneticFamilyName { get; set; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] [New] [Export ("phoneticOrganizationName")] string PhoneticOrganizationName { get; set; } @@ -2012,7 +2017,7 @@ namespace Contacts { CNLabeledValue [] Dates { get; set; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (CNGroup))] interface CNMutableGroup { @@ -2021,7 +2026,7 @@ namespace Contacts { string Name { get; set; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (CNPostalAddress))] interface CNMutablePostalAddress { @@ -2029,8 +2034,8 @@ namespace Contacts { [Export ("street")] string Street { get; set; } - [iOS (10,3), Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3), Mac (10, 12, 4)] + [Watch (3, 3)] [New] [Export ("subLocality")] string SubLocality { get; set; } @@ -2039,8 +2044,8 @@ namespace Contacts { [Export ("city")] string City { get; set; } - [iOS (10,3), Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3), Mac (10, 12, 4)] + [Watch (3, 3)] [New] [Export ("subAdministrativeArea")] string SubAdministrativeArea { get; set; } @@ -2062,7 +2067,7 @@ namespace Contacts { string IsoCountryCode { get; set; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Apple doc: no handle (nil) if no string (or nil string) is given interface CNPhoneNumber : NSCopying, NSSecureCoding, INSCopying, INSSecureCoding { @@ -2078,7 +2083,7 @@ namespace Contacts { string StringValue { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNLabelPhoneNumberKey { @@ -2086,8 +2091,8 @@ namespace Contacts { [Field ("CNLabelPhoneNumberiPhone")] NSString iPhone { get; } - [Watch (7,2), Mac (11,1), iOS (14,3)] - [MacCatalyst (14,3)] + [Watch (7, 2), Mac (11, 1), iOS (14, 3)] + [MacCatalyst (14, 3)] [Field ("CNLabelPhoneNumberAppleWatch")] NSString AppleWatch { get; } @@ -2110,23 +2115,26 @@ namespace Contacts { NSString Pager { get; } } - [iOS (9,0)] [Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNPostalAddress : NSCopying, NSMutableCopying, NSSecureCoding, INSCopying, INSSecureCoding { [Export ("street")] string Street { get; } - [iOS (10,3)] [Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3)] + [Mac (10, 12, 4)] + [Watch (3, 3)] [Export ("subLocality")] string SubLocality { get; } [Export ("city")] string City { get; } - [iOS (10,3)] [Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3)] + [Mac (10, 12, 4)] + [Watch (3, 3)] [Export ("subAdministrativeArea")] string SubAdministrativeArea { get; } @@ -2152,7 +2160,7 @@ namespace Contacts { } #if !NET - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNPostalAddressKey { // Can be used in KVO @@ -2160,16 +2168,18 @@ namespace Contacts { [Field ("CNPostalAddressStreetKey")] NSString Street { get; } - [iOS (10,3)] [Mac (10,12,4)] + [iOS (10, 3)] + [Mac (10, 12, 4)] [Field ("CNPostalAddressSubLocalityKey")] - [Watch (3,3)] + [Watch (3, 3)] NSString SubLocality { get; } [Field ("CNPostalAddressCityKey")] NSString City { get; } - [iOS (10,3)] [Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3)] + [Mac (10, 12, 4)] + [Watch (3, 3)] [Field ("CNPostalAddressSubAdministrativeAreaKey")] NSString SubAdministrativeArea { get; } @@ -2187,7 +2197,7 @@ namespace Contacts { } #endif - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] public enum CNPostalAddressKeyOption { [Field ("CNPostalAddressStreetKey")] Street, @@ -2202,18 +2212,20 @@ namespace Contacts { [Field ("CNPostalAddressISOCountryCodeKey")] IsoCountryCode, - [iOS (10,3)] [Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3)] + [Mac (10, 12, 4)] + [Watch (3, 3)] [Field ("CNPostalAddressSubLocalityKey")] SubLocality, - [iOS (10,3)] [Mac (10,12,4)] - [Watch (3,3)] + [iOS (10, 3)] + [Mac (10, 12, 4)] + [Watch (3, 3)] [Field ("CNPostalAddressSubAdministrativeAreaKey")] SubAdministrativeArea, } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSFormatter))] interface CNPostalAddressFormatter { @@ -2242,7 +2254,7 @@ namespace Contacts { } #if !WATCH - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNSaveRequest { @@ -2278,17 +2290,17 @@ namespace Contacts { [Export ("removeMember:fromGroup:")] void RemoveMember (CNContact contact, CNGroup group); - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("transactionAuthor")] string TransactionAuthor { get; set; } - [Mac (12, 3), iOS (15,4), MacCatalyst (15,4)] + [Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("shouldRefetchContacts")] bool ShouldRefetchContacts { get; set; } } #endif // !WATCH - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface CNSocialProfile : NSCopying, NSSecureCoding, INSCopying, INSSecureCoding { @@ -2321,7 +2333,7 @@ namespace Contacts { string LocalizeService (NSString service); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNSocialProfileKey { // Can be used in KVO @@ -2339,7 +2351,7 @@ namespace Contacts { NSString Service { get; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface CNSocialProfileServiceKey { diff --git a/src/contactsui.cs b/src/contactsui.cs index 1dc158a360..9cdb3d301e 100644 --- a/src/contactsui.cs +++ b/src/contactsui.cs @@ -27,7 +27,8 @@ using NativeHandle = System.IntPtr; namespace ContactsUI { #if !MONOMAC - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [BaseType (typeof (UIViewController))] interface CNContactPickerViewController { [Export ("initWithNibName:bundle:")] @@ -38,7 +39,8 @@ namespace ContactsUI { [Export ("displayedPropertyKeys")] NSString [] DisplayedPropertyKeys { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] ICNContactPickerDelegate Delegate { get; set; } [NullAllowed] @@ -55,7 +57,7 @@ namespace ContactsUI { } #endif - interface ICNContactPickerDelegate {} + interface ICNContactPickerDelegate { } #if MONOMAC [NoiOS][NoMacCatalyst][NoTV] @@ -78,7 +80,7 @@ namespace ContactsUI { } #else [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface CNContactPickerDelegate { @@ -100,8 +102,8 @@ namespace ContactsUI { } #endif // MONOMAC - [Mac (10,11)] - [iOS (9,0)] + [Mac (10, 11)] + [iOS (9, 0)] #if MONOMAC [BaseType (typeof (NSViewController))] #else @@ -147,7 +149,8 @@ namespace ContactsUI { NSString [] DisplayedPropertyKeys { get; set; } [NoMac] - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] ICNContactViewControllerDelegate Delegate { get; set; } [NoMac] @@ -192,9 +195,9 @@ namespace ContactsUI { void HighlightProperty (NSString key, [NullAllowed] string identifier); } - interface ICNContactViewControllerDelegate {} + interface ICNContactViewControllerDelegate { } - [iOS (9,0)] + [iOS (9, 0)] [NoMac] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -207,13 +210,14 @@ namespace ContactsUI { void DidComplete (CNContactViewController viewController, [NullAllowed] CNContact contact); } - [Mac (10,11)] - [NoiOS][NoTV][NoMacCatalyst] + [Mac (10, 11)] + [NoiOS] + [NoTV] + [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface CNContactPicker - { + interface CNContactPicker { [Export ("displayedKeys", ArgumentSemantic.Copy)] - string[] DisplayedKeys { get; set; } + string [] DisplayedKeys { get; set; } [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] [Protocolize] diff --git a/src/coreanimation.cs b/src/coreanimation.cs index 3a6bc6a24a..7727c388ae 100644 --- a/src/coreanimation.cs +++ b/src/coreanimation.cs @@ -69,60 +69,66 @@ namespace CoreAnimation { [Abstract] [Export ("beginTime")] double BeginTime { get; set; } - + [Abstract] [Export ("duration")] double Duration { get; set; } - + [Abstract] [Export ("speed")] float Speed { get; set; } /* float, not CGFloat */ - + [Abstract] [Export ("timeOffset")] double TimeOffset { get; set; } - + [Abstract] [Export ("repeatCount")] float RepeatCount { get; set; } /* float, not CGFloat */ - + [Abstract] [Export ("repeatDuration")] double RepeatDuration { get; set; } - + [Abstract] [Export ("autoreverses")] - bool AutoReverses { get;set; } - + bool AutoReverses { get; set; } + [Abstract] [Export ("fillMode", ArgumentSemantic.Copy)] string FillMode { get; set; } } - interface ICAMediaTiming {} + interface ICAMediaTiming { } - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [BaseType (typeof (NSObject))] interface CAConstraintLayoutManager : NSCoding { [Static] [Export ("layoutManager")] CAConstraintLayoutManager LayoutManager { get; } } - - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [BaseType (typeof (NSObject))] interface CAConstraint : NSSecureCoding { [Export ("attribute")] - CAConstraintAttribute Attribute { get; } + CAConstraintAttribute Attribute { get; } [Export ("sourceName")] - string SourceName { get; } + string SourceName { get; } [Export ("sourceAttribute")] - CAConstraintAttribute SourceAttribute { get; } + CAConstraintAttribute SourceAttribute { get; } [Export ("scale")] - nfloat Scale { get; } + nfloat Scale { get; } [Static] [Export ("constraintWithAttribute:relativeTo:attribute:scale:offset:")] @@ -143,15 +149,16 @@ namespace CoreAnimation { [NoMac] [BaseType (typeof (NSObject))] interface CADisplayLink { - [Export ("displayLinkWithTarget:selector:")][Static] + [Export ("displayLinkWithTarget:selector:")] + [Static] CADisplayLink Create (NSObject target, Selector sel); - + [Export ("addToRunLoop:forMode:")] void AddToRunLoop (NSRunLoop runloop, NSString mode); [Wrap ("AddToRunLoop (runloop, mode.GetConstant ()!)")] void AddToRunLoop (NSRunLoop runloop, NSRunLoopMode mode); - + [Export ("removeFromRunLoop:forMode:")] void RemoveFromRunLoop (NSRunLoop runloop, NSString mode); @@ -160,39 +167,46 @@ namespace CoreAnimation { [Export ("invalidate")] void Invalidate (); - + [Export ("timestamp")] double Timestamp { get; } - + [Export ("paused")] bool Paused { [Bind ("isPaused")] get; set; } - - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'PreferredFramesPerSecond' property.")] - [Deprecated (PlatformName.TvOS, 10,0, message: "Use 'PreferredFramesPerSecond' property.")] - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'PreferredFramesPerSecond' property.")] + + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] + [Deprecated (PlatformName.TvOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'PreferredFramesPerSecond' property.")] [Export ("frameInterval")] - nint FrameInterval { get; set; } + nint FrameInterval { get; set; } [Export ("duration")] double Duration { get; } - [Watch (3,0)][TV (10,0)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [iOS (10, 0)] [Export ("targetTimestamp")] double TargetTimestamp { get; } - [Deprecated (PlatformName.iOS, 15,0, message: "Use 'PreferredFrameRateRange' property.")] - [Deprecated (PlatformName.TvOS, 15,0, message: "Use 'PreferredFrameRateRange' property.")] - [Deprecated (PlatformName.WatchOS, 8,0, message: "Use 'PreferredFrameRateRange' property.")] - [Watch (3,0)][TV (10,0)][iOS (10,0)] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'PreferredFrameRateRange' property.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'PreferredFrameRateRange' property.")] + [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'PreferredFrameRateRange' property.")] + [Watch (3, 0)] + [TV (10, 0)] + [iOS (10, 0)] [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } - [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("preferredFrameRateRange", ArgumentSemantic.Assign)] CAFrameRateRange PreferredFrameRateRange { get; set; } } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] enum CAContentsFormat { [Field ("kCAContentsFormatGray8Uint")] Gray8Uint, @@ -206,7 +220,8 @@ namespace CoreAnimation { [BaseType (typeof (NSObject))] [Dispose ("OnDispose ();", Optimizable = true)] interface CALayer : CAMediaTiming, NSSecureCoding { - [Export ("layer")][Static] + [Export ("layer")] + [Static] CALayer Create (); [Export ("presentationLayer")] @@ -226,17 +241,17 @@ namespace CoreAnimation { bool NeedsDisplayForKey (string key); [Export ("bounds")] - CGRect Bounds { get; set; } + CGRect Bounds { get; set; } [Export ("zPosition")] nfloat ZPosition { get; set; } - + [Export ("anchorPoint")] CGPoint AnchorPoint { get; set; } [Export ("anchorPointZ")] nfloat AnchorPointZ { get; set; } - + [Export ("position")] CGPoint Position { get; set; } @@ -250,7 +265,7 @@ namespace CoreAnimation { CGRect Frame { get; set; } [Export ("hidden")] // Setter needs setHidden instead - bool Hidden { [Bind ("isHidden")] get; set; } + bool Hidden { [Bind ("isHidden")] get; set; } [Export ("doubleSided")] // Setter needs setDoubleSided bool DoubleSided { [Bind ("isDoubleSided")] get; set; } @@ -271,26 +286,32 @@ namespace CoreAnimation { [NullAllowed] // by default this property is null [Export ("sublayers", ArgumentSemantic.Copy)] CALayer [] Sublayers { get; set; } - - [Export ("addSublayer:")][PostGet ("Sublayers")] + + [Export ("addSublayer:")] + [PostGet ("Sublayers")] void AddSublayer (CALayer layer); - [Export ("insertSublayer:atIndex:")][PostGet ("Sublayers")] + [Export ("insertSublayer:atIndex:")] + [PostGet ("Sublayers")] void InsertSublayer (CALayer layer, int index); - [Export ("insertSublayer:below:")][PostGet ("Sublayers")] + [Export ("insertSublayer:below:")] + [PostGet ("Sublayers")] void InsertSublayerBelow (CALayer layer, [NullAllowed] CALayer sibling); - - [Export ("insertSublayer:above:")][PostGet ("Sublayers")] + + [Export ("insertSublayer:above:")] + [PostGet ("Sublayers")] void InsertSublayerAbove (CALayer layer, [NullAllowed] CALayer sibling); - [Export ("replaceSublayer:with:")][PostGet ("Sublayers")] + [Export ("replaceSublayer:with:")] + [PostGet ("Sublayers")] void ReplaceSublayer (CALayer layer, CALayer with); [Export ("sublayerTransform")] CATransform3D SublayerTransform { get; set; } - [Export ("mask", ArgumentSemantic.Strong)][NullAllowed] + [Export ("mask", ArgumentSemantic.Strong)] + [NullAllowed] CALayer Mask { get; set; } [Export ("masksToBounds")] @@ -298,19 +319,19 @@ namespace CoreAnimation { [Export ("convertPoint:fromLayer:")] CGPoint ConvertPointFromLayer (CGPoint point, [NullAllowed] CALayer layer); - + [Export ("convertPoint:toLayer:")] CGPoint ConvertPointToLayer (CGPoint point, [NullAllowed] CALayer layer); - + [Export ("convertRect:fromLayer:")] CGRect ConvertRectFromLayer (CGRect rect, [NullAllowed] CALayer layer); - + [Export ("convertRect:toLayer:")] CGRect ConvertRectToLayer (CGRect rect, [NullAllowed] CALayer layer); [Export ("convertTime:fromLayer:")] double ConvertTimeFromLayer (double timeInterval, [NullAllowed] CALayer layer); - + [Export ("convertTime:toLayer:")] double ConvertTimeToLayer (double timeInterval, [NullAllowed] CALayer layer); @@ -325,10 +346,15 @@ namespace CoreAnimation { [Export ("contents", ArgumentSemantic.Strong), NullAllowed] CGImage Contents { get; set; } - [Export ("contents", ArgumentSemantic.Strong)][Internal][Sealed] + [Export ("contents", ArgumentSemantic.Strong)] + [Internal] + [Sealed] IntPtr _Contents { get; set; } - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("layoutManager", ArgumentSemantic.Retain)] [NullAllowed] NSObject LayoutManager { get; set; } @@ -347,7 +373,7 @@ namespace CoreAnimation { [Export ("minificationFilter", ArgumentSemantic.Copy)] string MinificationFilter { get; set; } - + [Export ("magnificationFilter", ArgumentSemantic.Copy)] string MagnificationFilter { get; set; } @@ -430,7 +456,7 @@ namespace CoreAnimation { [Export ("addAnimation:forKey:")] void AddAnimation (CAAnimation animation, [NullAllowed] string key); - + [Export ("removeAllAnimations")] void RemoveAllAnimations (); @@ -448,7 +474,8 @@ namespace CoreAnimation { [Export ("name", ArgumentSemantic.Copy)] string Name { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; [PostSnippet (@"SetCALayerDelegate (value as CALayerDelegate);", Optimizable = true)] set; } [Wrap ("WeakDelegate")] @@ -469,7 +496,7 @@ namespace CoreAnimation { nfloat ShadowRadius { get; set; } [Field ("kCATransition")] - NSString Transition { get; } + NSString Transition { get; } [Field ("kCAGravityCenter")] NSString GravityCenter { get; } @@ -522,13 +549,16 @@ namespace CoreAnimation { [Field ("kCAOnOrderOut")] NSString OnOrderOut { get; } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Internal] [Export ("contentsFormat")] NSString _ContentsFormat { get; set; } [Export ("visibleRect")] - CGRect VisibleRect { get; } + CGRect VisibleRect { get; } [Export ("scrollPoint:")] void ScrollPoint (CGPoint p); @@ -550,24 +580,39 @@ namespace CoreAnimation { [Export ("minificationFilterBias")] float MinificationFilterBias { get; set; } /* float, not CGFloat */ - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("autoresizingMask")] CAAutoresizingMask AutoresizingMask { get; set; } - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("resizeSublayersWithOldSize:")] void ResizeSublayers (CGSize oldSize); - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("resizeWithOldSuperlayerSize:")] void Resize (CGSize oldSuperlayerSize); - - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("constraints")] [NullAllowed] - CAConstraint[] Constraints { get; set; } + CAConstraint [] Constraints { get; set; } - [NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 1)] [Export ("addConstraint:")] void AddConstraint (CAConstraint c); @@ -584,11 +629,11 @@ namespace CoreAnimation { [Export ("drawsAsynchronously")] bool DrawsAsynchronously { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("allowsEdgeAntialiasing")] bool AllowsEdgeAntialiasing { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("allowsGroupOpacity")] bool AllowsGroupOpacity { get; set; } @@ -597,25 +642,33 @@ namespace CoreAnimation { NSObject CompositingFilter { get; set; } [NoWatch] // headers not updated - [TV (11,0)][Mac (10,13)][iOS (11,0)] + [TV (11, 0)] + [Mac (10, 13)] + [iOS (11, 0)] [Export ("maskedCorners", ArgumentSemantic.Assign)] CACornerMask MaskedCorners { get; set; } [BindAs (typeof (CACornerCurve))] [NoWatch] // headers not updated - [TV (13,0)][Mac (10, 15)][iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("cornerCurve")] NSString CornerCurve { get; set; } [NoWatch] // headers not updated - [TV (13,0)][Mac (10, 15)][iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Static] [Export ("cornerCurveExpansionFactor:")] nfloat GetCornerCurveExpansionFactor ([BindAs (typeof (CACornerCurve))] NSString curve); } [NoWatch] // headers not updated - [TV (13,0)][Mac (10, 15)][iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] enum CACornerCurve { [DefaultEnumValue] [Field ("kCACornerCurveCircular")] @@ -624,10 +677,11 @@ namespace CoreAnimation { Continuous, } - interface ICAMetalDrawable {} + interface ICAMetalDrawable { } [Protocol] - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] interface CAMetalDrawable : MTLDrawable { [Abstract] [Export ("texture")] @@ -638,7 +692,9 @@ namespace CoreAnimation { CAMetalLayer Layer { get; } } - [iOS (8,0)][Mac (10,11)][MacCatalyst (13,0)] + [iOS (8, 0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] [BaseType (typeof (CALayer))] interface CAMetalLayer { [NullAllowed] // by default this property is null @@ -657,39 +713,51 @@ namespace CoreAnimation { [Export ("nextDrawable")] [return: NullAllowed] ICAMetalDrawable NextDrawable (); - + [Export ("presentsWithTransaction")] bool PresentsWithTransaction { [Bind ("presentsWithTransaction")] get; set; } - [NoWatch][NoTV][NoiOS] - [Mac (10,13)] - [MacCatalyst (13,0)] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 13)] + [MacCatalyst (13, 0)] [Export ("displaySyncEnabled")] bool DisplaySyncEnabled { get; set; } [NoWatch] // headers not updated - [TV (11,0)][Mac (10,13)][iOS (11,0)] + [TV (11, 0)] + [Mac (10, 13)] + [iOS (11, 0)] [Export ("allowsNextDrawableTimeout")] bool AllowsNextDrawableTimeout { get; set; } [NoWatch] // headers not updated - [TV (11,2)][Mac (10,13,2)][iOS (11,2)] + [TV (11, 2)] + [Mac (10, 13, 2)] + [iOS (11, 2)] [Export ("maximumDrawableCount")] nuint MaximumDrawableCount { get; set; } [NoWatch] // headers not updated - [TV (13,0)][Mac (10, 15)][iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [NullAllowed, Export ("colorspace", ArgumentSemantic.Assign)] CGColorSpace ColorSpace { get; set; } [NoWatch] // headers not updated - [TV (13,0)][Mac (10, 15)][iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [NullAllowed, Export ("preferredDevice")] IMTLDevice PreferredDevice { get; } - [NoWatch][NoiOS][NoTV] - [Mac (10,15)] - [MacCatalyst (13,0)] + [NoWatch] + [NoiOS] + [NoTV] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [NullAllowed, Export ("EDRMetadata", ArgumentSemantic.Strong)] CAEdrMetadata EdrMetadata { get; set; } } @@ -698,8 +766,9 @@ namespace CoreAnimation { interface CATiledLayer { [Export ("layer"), New, Static] CALayer Create (); - - [Static][Export ("fadeDuration")] + + [Static] + [Export ("fadeDuration")] double FadeDuration { get; } [Export ("levelsOfDetail")] @@ -765,7 +834,7 @@ namespace CoreAnimation { } #else [Export ("scrollMode", ArgumentSemantic.Copy)] - NSString ScrollMode { get; set; } + NSString ScrollMode { get; set; } #endif [Export ("scrollToPoint:")] @@ -789,16 +858,18 @@ namespace CoreAnimation { [Field ("kCAScrollBoth")] Both, } - + [BaseType (typeof (CALayer))] interface CAShapeLayer { [Export ("layer"), New, Static] CALayer Create (); - [Export ("path")] [NullAllowed] + [Export ("path")] + [NullAllowed] CGPath Path { get; set; } - [Export ("fillColor")] [NullAllowed] + [Export ("fillColor")] + [NullAllowed] CGColor FillColor { get; set; } [Export ("fillRule", ArgumentSemantic.Copy)] @@ -807,7 +878,8 @@ namespace CoreAnimation { [Export ("lineCap", ArgumentSemantic.Copy)] NSString LineCap { get; set; } - [Export ("lineDashPattern", ArgumentSemantic.Copy)] [NullAllowed] + [Export ("lineDashPattern", ArgumentSemantic.Copy)] + [NullAllowed] NSNumber [] LineDashPattern { get; set; } [Export ("lineDashPhase")] @@ -822,7 +894,8 @@ namespace CoreAnimation { [Export ("miterLimit")] nfloat MiterLimit { get; set; } - [Export ("strokeColor")] [NullAllowed] + [Export ("strokeColor")] + [NullAllowed] CGColor StrokeColor { get; set; } [Export ("strokeStart")] @@ -905,7 +978,8 @@ namespace CoreAnimation { [Export ("string", ArgumentSemantic.Copy)] string String { get; set; } - [Sealed] [Internal] + [Sealed] + [Internal] [NullAllowed] // by default this property is null [Export ("string", ArgumentSemantic.Copy)] IntPtr _AttributedString { get; set; } @@ -915,7 +989,7 @@ namespace CoreAnimation { [Export ("font"), Internal] IntPtr _Font { get; set; } - + [Export ("foregroundColor")] [NullAllowed] CGColor ForegroundColor { get; set; } @@ -936,49 +1010,49 @@ namespace CoreAnimation { [Static] [Wrap ("CATextLayerTruncationMode.None.GetConstant ()")] NSString TruncationNone { get; } - + [Obsolete ("Use 'CATextLayerTruncationMode.Start.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerTruncationMode.Start.GetConstant ()")] NSString TruncantionStart { get; } - + [Obsolete ("Use 'CATextLayerTruncationMode.End.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerTruncationMode.End.GetConstant ()")] NSString TruncantionEnd { get; } - + [Obsolete ("Use 'CATextLayerTruncationMode.Middle.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerTruncationMode.Middle.GetConstant ()")] NSString TruncantionMiddle { get; } - + [Obsolete ("Use 'CATextLayerAlignmentMode.Natural.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerAlignmentMode.Natural.GetConstant ()")] NSString AlignmentNatural { get; } - + [Obsolete ("Use 'CATextLayerAlignmentMode.Left.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerAlignmentMode.Left.GetConstant ()")] NSString AlignmentLeft { get; } - + [Obsolete ("Use 'CATextLayerAlignmentMode.Right.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerAlignmentMode.Right.GetConstant ()")] NSString AlignmentRight { get; } - + [Obsolete ("Use 'CATextLayerAlignmentMode.Center.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerAlignmentMode.Center.GetConstant ()")] NSString AlignmentCenter { get; } - + [Obsolete ("Use 'CATextLayerAlignmentMode.Justified.GetConstant ()' instead.")] [Static] [Wrap ("CATextLayerAlignmentMode.Justified.GetConstant ()")] NSString AlignmentJustified { get; } #endif // !NET - [iOS(9,0)] + [iOS (9, 0)] [Export ("allowsFontSubpixelQuantization")] bool AllowsFontSubpixelQuantization { get; set; } } @@ -1001,7 +1075,10 @@ namespace CoreAnimation { [Export ("drawLayer:inContext:"), EventArgs ("CALayerDrawEventArgs")] void DrawLayer (CALayer layer, CGContext context); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("layerWillDraw:")] void WillDrawLayer (CALayer layer); @@ -1012,7 +1089,7 @@ namespace CoreAnimation { [return: NullAllowed] NSObject ActionForLayer (CALayer layer, string eventKey); } - + #if HAS_OPENGLES [NoMac][NoMacCatalyst] [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'CAMetalLayer' instead.")] @@ -1038,7 +1115,7 @@ namespace CoreAnimation { [Export ("runActionForKey:object:arguments:")] void RunAction (string eventKey, NSObject obj, [NullAllowed] NSDictionary arguments); } - + [BaseType (typeof (NSObject) #if NET , Delegates = new string [] {"WeakDelegate"}, Events = new Type [] { typeof (CAAnimationDelegate) } @@ -1047,31 +1124,32 @@ namespace CoreAnimation { interface CAAnimation : CAAction, CAMediaTiming, NSSecureCoding, NSMutableCopying, SCNAnimationProtocol { [Export ("animation"), Static] CAAnimation CreateAnimation (); - + [Static] [Export ("defaultValueForKey:")] [return: NullAllowed] NSObject DefaultValue (string key); - + [NullAllowed] // by default this property is null [Export ("timingFunction", ArgumentSemantic.Strong)] CAMediaTimingFunction TimingFunction { get; set; } - + #if NET // before that we need to be wrap this manually to avoid the BI1110 error [Wrap ("WeakDelegate")] ICAAnimationDelegate Delegate { get; set; } #endif - - [Export ("delegate", ArgumentSemantic.Strong)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Strong)] + [NullAllowed] NSObject WeakDelegate { get; set; } - + [Export ("removedOnCompletion")] bool RemovedOnCompletion { [Bind ("isRemovedOnCompletion")] get; set; } [Export ("willChangeValueForKey:")] void WillChangeValueForKey (string key); - + [Export ("didChangeValueForKey:")] void DidChangeValueForKey (string key); @@ -1080,19 +1158,19 @@ namespace CoreAnimation { [Field ("kCATransitionFade")] NSString TransitionFade { get; } - + [Field ("kCATransitionMoveIn")] NSString TransitionMoveIn { get; } [Field ("kCATransitionPush")] NSString TransitionPush { get; } - + [Field ("kCATransitionReveal")] NSString TransitionReveal { get; } - + [Field ("kCATransitionFromRight")] NSString TransitionFromRight { get; } - + [Field ("kCATransitionFromLeft")] NSString TransitionFromLeft { get; } @@ -1101,11 +1179,11 @@ namespace CoreAnimation { [Field ("kCATransitionFromBottom")] NSString TransitionFromBottom { get; } - + /* 'calculationMode' strings. */ [Field ("kCAAnimationLinear")] NSString AnimationLinear { get; } - + #if !NET [Field ("kCAAnimationDiscrete")] [Obsolete ("The name has been fixed, use 'AnimationDiscrete' instead.")] @@ -1113,7 +1191,7 @@ namespace CoreAnimation { #endif [Field ("kCAAnimationDiscrete")] NSString AnimationDiscrete { get; } - + [Field ("kCAAnimationPaced")] NSString AnimationPaced { get; } @@ -1132,36 +1210,39 @@ namespace CoreAnimation { #region SceneKitAdditions - [TV (11,0), Mac (10,13), iOS (11,0), NoWatch] + [TV (11, 0), Mac (10, 13), iOS (11, 0), NoWatch] [Static] [Export ("animationWithSCNAnimation:")] CAAnimation FromSCNAnimation (SCNAnimation animation); - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Export ("usesSceneTimeBase")] bool UsesSceneTimeBase { get; set; } - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Export ("fadeInDuration")] nfloat FadeInDuration { get; set; } - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Export ("fadeOutDuration")] nfloat FadeOutDuration { get; set; } - [Mac (10,9), iOS (8, 0)] + [Mac (10, 9), iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("animationEvents", ArgumentSemantic.Retain)] SCNAnimationEvent [] AnimationEvents { get; set; } #endregion - [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15,0), Mac (12,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0)] [Export ("preferredFrameRateRange", ArgumentSemantic.Assign)] CAFrameRateRange PreferredFrameRateRange { get; set; } } - interface ICAAnimationDelegate {} + interface ICAAnimationDelegate { } [BaseType (typeof (NSObject))] #if IOS || TVOS @@ -1177,58 +1258,67 @@ namespace CoreAnimation { interface CAAnimationDelegate { [Export ("animationDidStart:")] void AnimationStarted (CAAnimation anim); - + [Export ("animationDidStop:finished:"), EventArgs ("CAAnimationState")] void AnimationStopped (CAAnimation anim, bool finished); - + } - + [BaseType (typeof (CAAnimation))] interface CAPropertyAnimation { [Static] [Export ("animationWithKeyPath:")] CAPropertyAnimation FromKeyPath ([NullAllowed] string path); - + [NullAllowed] // by default this property is null [Export ("keyPath", ArgumentSemantic.Copy)] string KeyPath { get; set; } - + [Export ("additive")] bool Additive { [Bind ("isAdditive")] get; set; } - + [Export ("cumulative")] bool Cumulative { [Bind ("isCumulative")] get; set; } - + [NullAllowed] // by default this property is null [Export ("valueFunction", ArgumentSemantic.Strong)] CAValueFunction ValueFunction { get; set; } } - + [BaseType (typeof (CAPropertyAnimation))] interface CABasicAnimation { [Static, New, Export ("animationWithKeyPath:")] CABasicAnimation FromKeyPath ([NullAllowed] string path); - [Export ("fromValue", ArgumentSemantic.Strong)][Internal][Sealed] + [Export ("fromValue", ArgumentSemantic.Strong)] + [Internal] + [Sealed] IntPtr _From { get; set; } - [Export ("fromValue", ArgumentSemantic.Strong)][NullAllowed] + [Export ("fromValue", ArgumentSemantic.Strong)] + [NullAllowed] NSObject From { get; set; } - [Export ("toValue", ArgumentSemantic.Strong)][Internal][Sealed] + [Export ("toValue", ArgumentSemantic.Strong)] + [Internal] + [Sealed] IntPtr _To { get; set; } - [Export ("toValue", ArgumentSemantic.Strong)][NullAllowed] + [Export ("toValue", ArgumentSemantic.Strong)] + [NullAllowed] NSObject To { get; set; } - [Export ("byValue", ArgumentSemantic.Strong)][Internal][Sealed] + [Export ("byValue", ArgumentSemantic.Strong)] + [Internal] + [Sealed] IntPtr _By { get; set; } - [Export ("byValue", ArgumentSemantic.Strong)][NullAllowed] + [Export ("byValue", ArgumentSemantic.Strong)] + [NullAllowed] NSObject By { get; set; } } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (CABasicAnimation))] interface CASpringAnimation { [Static, New, Export ("animationWithKeyPath:")] @@ -1240,7 +1330,7 @@ namespace CoreAnimation { [Export ("stiffness")] nfloat Stiffness { get; set; } - [Export("damping")] + [Export ("damping")] nfloat Damping { get; set; } [Export ("initialVelocity")] @@ -1249,8 +1339,8 @@ namespace CoreAnimation { [Export ("settlingDuration")] double /* CFTimeInterval */ SettlingDuration { get; } } - - [BaseType (typeof (CAPropertyAnimation), Name="CAKeyframeAnimation")] + + [BaseType (typeof (CAPropertyAnimation), Name = "CAKeyframeAnimation")] interface CAKeyFrameAnimation { [Static, Export ("animationWithKeyPath:")] CAKeyFrameAnimation FromKeyPath ([NullAllowed] string path); @@ -1259,25 +1349,29 @@ namespace CoreAnimation { [Export ("values", ArgumentSemantic.Copy)] NSObject [] Values { get; set; } - [Export ("values", ArgumentSemantic.Strong)][Internal][Sealed] + [Export ("values", ArgumentSemantic.Strong)] + [Internal] + [Sealed] NSArray _Values { get; set; } - + [NullAllowed] [Export ("path")] CGPath Path { get; set; } - - [Export ("keyTimes", ArgumentSemantic.Copy)][NullAllowed] + + [Export ("keyTimes", ArgumentSemantic.Copy)] + [NullAllowed] NSNumber [] KeyTimes { get; set; } - + [NullAllowed] // by default this property is null [Export ("timingFunctions", ArgumentSemantic.Copy)] CAMediaTimingFunction [] TimingFunctions { get; set; } - + [Export ("calculationMode", ArgumentSemantic.Copy)] [Internal] NSString _CalculationMode { get; set; } - - [Export ("rotationMode", ArgumentSemantic.Copy)][NullAllowed] + + [Export ("rotationMode", ArgumentSemantic.Copy)] + [NullAllowed] string RotationMode { get; set; } [NullAllowed] // by default this property is null @@ -1292,7 +1386,7 @@ namespace CoreAnimation { [Export ("biasValues", ArgumentSemantic.Copy)] NSNumber [] BiasValues { get; set; } } - + [BaseType (typeof (CAAnimation))] interface CATransition { [Export ("animation"), Static, New] @@ -1300,18 +1394,19 @@ namespace CoreAnimation { [Export ("type", ArgumentSemantic.Copy)] string Type { get; set; } - + [NullAllowed] // by default this property is null [Export ("subtype", ArgumentSemantic.Copy)] string Subtype { get; set; } - + [Export ("startProgress")] float StartProgress { get; set; } /* float, not CGFloat */ - + [Export ("endProgress")] float EndProgress { get; set; } /* float, not CGFloat */ - - [Export ("filter", ArgumentSemantic.Strong)][NullAllowed] + + [Export ("filter", ArgumentSemantic.Strong)] + [NullAllowed] NSObject Filter { get; set; } } @@ -1335,40 +1430,40 @@ namespace CoreAnimation { [Static] [Export ("begin")] void Begin (); - + [Static] [Export ("commit")] void Commit (); - + [Static] [Export ("flush")] void Flush (); - + [Static] [Export ("lock")] void Lock (); - + [Static] [Export ("unlock")] void Unlock (); - + [Static] [Export ("animationDuration")] double AnimationDuration { get; set; } - + [Static, NullAllowed] [Export ("animationTimingFunction")] CAMediaTimingFunction AnimationTimingFunction { get; set; } - + [Static] [Export ("disableActions")] bool DisableActions { get; set; } - + [Static] [Export ("valueForKey:")] [return: NullAllowed] NSObject ValueForKey (NSString key); - + [Static] [Export ("setValue:forKey:")] void SetValueForKey ([NullAllowed] NSObject anObject, NSString key); @@ -1378,13 +1473,13 @@ namespace CoreAnimation { [Field ("kCATransactionAnimationDuration")] NSString AnimationDurationKey { get; } - + [Field ("kCATransactionDisableActions")] NSString DisableActionsKey { get; } - + [Field ("kCATransactionAnimationTimingFunction")] NSString TimingFunctionKey { get; } - + [Field ("kCATransactionCompletionBlock")] NSString CompletionBlockKey { get; } } @@ -1405,18 +1500,19 @@ namespace CoreAnimation { CALayer Create (); [NullAllowed] // by default this property is null - [Export ("colors", ArgumentSemantic.Copy)][Internal] - IntPtr _Colors { get; set; } - + [Export ("colors", ArgumentSemantic.Copy)] + [Internal] + IntPtr _Colors { get; set; } + [NullAllowed] // by default this property is null [Export ("locations", ArgumentSemantic.Copy)] - NSNumber [] Locations { get; set; } - + NSNumber [] Locations { get; set; } + [Export ("startPoint")] - CGPoint StartPoint { get; set; } + CGPoint StartPoint { get; set; } [Export ("endPoint")] - CGPoint EndPoint { get; set; } + CGPoint EndPoint { get; set; } #if NET CAGradientLayerType LayerType { @@ -1450,12 +1546,16 @@ namespace CoreAnimation { [Field ("kCAGradientLayerAxial")] Axial, - [iOS (12,0)][TV (12,0)][Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [NoWatch] [Field ("kCAGradientLayerRadial")] Radial, - [iOS (12,0)][TV (12,0)][Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [NoWatch] [Field ("kCAGradientLayerConic")] Conic, @@ -1464,32 +1564,33 @@ namespace CoreAnimation { [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CAMediaTimingFunction : NSSecureCoding { - [Export ("functionWithName:")][Static] - CAMediaTimingFunction FromName (NSString name); + [Export ("functionWithName:")] + [Static] + CAMediaTimingFunction FromName (NSString name); [Static] [Export ("functionWithControlPoints::::")] CAMediaTimingFunction FromControlPoints (float c1x, float c1y, float c2x, float c2y); /* all float, not CGFloat */ - + [Export ("initWithControlPoints::::")] NativeHandle Constructor (float c1x, float c1y, float c2x, float c2y); /* all float, not CGFloat */ - + [Export ("getControlPointAtIndex:values:"), Internal] void GetControlPointAtIndex (nint idx, IntPtr /* float[2] */ point); - - [Field("kCAMediaTimingFunctionLinear")] + + [Field ("kCAMediaTimingFunctionLinear")] NSString Linear { get; } - - [Field("kCAMediaTimingFunctionEaseIn")] + + [Field ("kCAMediaTimingFunctionEaseIn")] NSString EaseIn { get; } - - [Field("kCAMediaTimingFunctionEaseOut")] + + [Field ("kCAMediaTimingFunctionEaseOut")] NSString EaseOut { get; } - - [Field("kCAMediaTimingFunctionEaseInEaseOut")] + + [Field ("kCAMediaTimingFunctionEaseInEaseOut")] NSString EaseInEaseOut { get; } - [Field("kCAMediaTimingFunctionDefault")] + [Field ("kCAMediaTimingFunctionDefault")] NSString Default { get; } } @@ -1504,48 +1605,50 @@ namespace CoreAnimation { [Field ("kCAValueFunctionRotateX")] NSString RotateX { get; } - + [Field ("kCAValueFunctionRotateY")] NSString RotateY { get; } - + [Field ("kCAValueFunctionRotateZ")] NSString RotateZ { get; } - + [Field ("kCAValueFunctionScale")] NSString Scale { get; } - + [Field ("kCAValueFunctionScaleX")] NSString ScaleX { get; } - + [Field ("kCAValueFunctionScaleY")] NSString ScaleY { get; } - + [Field ("kCAValueFunctionScaleZ")] NSString ScaleZ { get; } - + [Field ("kCAValueFunctionTranslate")] NSString Translate { get; } - + [Field ("kCAValueFunctionTranslateX")] NSString TranslateX { get; } - + [Field ("kCAValueFunctionTranslateY")] NSString TranslateY { get; } - + [Field ("kCAValueFunctionTranslateZ")] NSString TranslateZ { get; } - + } - [NoiOS][NoTV][NoWatch] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'CAMetalLayer' instead.")] + [NoiOS] + [NoTV] + [NoWatch] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'CAMetalLayer' instead.")] [BaseType (typeof (CALayer))] interface CAOpenGLLayer { [Export ("layer"), New, Static] CALayer Create (); [Export ("asynchronous")] - bool Asynchronous { [Bind ("isAsynchronous")]get; set; } + bool Asynchronous { [Bind ("isAsynchronous")] get; set; } [Export ("canDrawInCGLContext:pixelFormat:forLayerTime:displayTime:")] bool CanDrawInCGLContext (CGLContext glContext, CGLPixelFormat pixelFormat, double timeInterval, ref CVTimeStamp timeStamp); @@ -1570,78 +1673,78 @@ namespace CoreAnimation { interface CAEmitterCell : CAMediaTiming, NSSecureCoding { [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")] get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("birthRate")] - float BirthRate { get; set; } /* float, not CGFloat */ + float BirthRate { get; set; } /* float, not CGFloat */ [Export ("lifetime")] - float LifeTime { get; set; } /* float, not CGFloat */ + float LifeTime { get; set; } /* float, not CGFloat */ [Export ("lifetimeRange")] - float LifetimeRange { get; set; } /* float, not CGFloat */ + float LifetimeRange { get; set; } /* float, not CGFloat */ [Export ("emissionLatitude")] - nfloat EmissionLatitude { get; set; } + nfloat EmissionLatitude { get; set; } [Export ("emissionLongitude")] - nfloat EmissionLongitude { get; set; } + nfloat EmissionLongitude { get; set; } [Export ("emissionRange")] - nfloat EmissionRange { get; set; } + nfloat EmissionRange { get; set; } [Export ("velocity")] - nfloat Velocity { get; set; } + nfloat Velocity { get; set; } [Export ("velocityRange")] - nfloat VelocityRange { get; set; } + nfloat VelocityRange { get; set; } [Export ("xAcceleration")] - nfloat AccelerationX { get; set; } + nfloat AccelerationX { get; set; } [Export ("yAcceleration")] - nfloat AccelerationY { get; set; } + nfloat AccelerationY { get; set; } [Export ("zAcceleration")] - nfloat AccelerationZ { get; set; } + nfloat AccelerationZ { get; set; } [Export ("scale")] - nfloat Scale { get; set; } + nfloat Scale { get; set; } [Export ("scaleRange")] - nfloat ScaleRange { get; set; } + nfloat ScaleRange { get; set; } [Export ("scaleSpeed")] - nfloat ScaleSpeed { get; set; } + nfloat ScaleSpeed { get; set; } [Export ("spin")] - nfloat Spin { get; set; } + nfloat Spin { get; set; } [Export ("spinRange")] - nfloat SpinRange { get; set; } - + nfloat SpinRange { get; set; } + [Export ("color")] [NullAllowed] - CGColor Color { get; set; } + CGColor Color { get; set; } [Export ("redSpeed")] - float RedSpeed { get; set; } /* float, not CGFloat */ + float RedSpeed { get; set; } /* float, not CGFloat */ [Export ("greenSpeed")] - float GreenSpeed { get; set; } /* float, not CGFloat */ + float GreenSpeed { get; set; } /* float, not CGFloat */ [Export ("blueSpeed")] - float BlueSpeed { get; set; } /* float, not CGFloat */ + float BlueSpeed { get; set; } /* float, not CGFloat */ [Export ("alphaSpeed")] - float AlphaSpeed { get; set; } /* float, not CGFloat */ + float AlphaSpeed { get; set; } /* float, not CGFloat */ [NullAllowed] // by default this property is null [Export ("contents", ArgumentSemantic.Strong)] - NSObject WeakContents { get; set; } + NSObject WeakContents { get; set; } [NullAllowed] // just like it's weak property [Sealed] @@ -1649,25 +1752,25 @@ namespace CoreAnimation { CGImage Contents { get; set; } [Export ("contentsRect")] - CGRect ContentsRect { get; set; } + CGRect ContentsRect { get; set; } [Export ("minificationFilter", ArgumentSemantic.Copy)] - string MinificationFilter { get; set; } + string MinificationFilter { get; set; } [Export ("magnificationFilter", ArgumentSemantic.Copy)] - string MagnificationFilter { get; set; } + string MagnificationFilter { get; set; } [Export ("minificationFilterBias")] - float MinificationFilterBias { get; set; } /* float, not CGFloat */ + float MinificationFilterBias { get; set; } /* float, not CGFloat */ [NullAllowed] // by default this property is null [Export ("emitterCells", ArgumentSemantic.Copy)] - CAEmitterCell[] Cells { get; set; } + CAEmitterCell [] Cells { get; set; } [NullAllowed] // by default this property is null [Export ("style", ArgumentSemantic.Copy)] - NSDictionary Style { get; set; } - + NSDictionary Style { get; set; } + [Static] [Export ("emitterCell")] CAEmitterCell EmitterCell (); @@ -1682,7 +1785,7 @@ namespace CoreAnimation { [Export ("redRange")] float RedRange { get; set; } /* float, not CGFloat */ - + [Export ("greenRange")] float GreenRange { get; set; } /* float, not CGFloat */ @@ -1692,7 +1795,8 @@ namespace CoreAnimation { [Export ("alphaRange")] float AlphaRange { get; set; } /* float, not CGFloat */ - [iOS(9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("contentsScale")] nfloat ContentsScale { get; set; } } @@ -1704,105 +1808,105 @@ namespace CoreAnimation { [NullAllowed] // by default this property is null [Export ("emitterCells", ArgumentSemantic.Copy)] - CAEmitterCell[] Cells { get; set; } + CAEmitterCell [] Cells { get; set; } [Export ("birthRate")] - float BirthRate { get; set; } /* float, not CGFloat */ + float BirthRate { get; set; } /* float, not CGFloat */ [Export ("lifetime")] - float LifeTime { get; set; } /* float, not CGFloat */ + float LifeTime { get; set; } /* float, not CGFloat */ [Export ("emitterPosition")] - CGPoint Position { get; set; } + CGPoint Position { get; set; } [Export ("emitterZPosition")] - nfloat ZPosition { get; set; } + nfloat ZPosition { get; set; } [Export ("emitterSize")] - CGSize Size { get; set; } + CGSize Size { get; set; } [Export ("emitterDepth")] - nfloat Depth { get; set; } + nfloat Depth { get; set; } [Export ("emitterShape", ArgumentSemantic.Copy)] - string Shape { get; set; } + string Shape { get; set; } [Export ("emitterMode", ArgumentSemantic.Copy)] - string Mode { get; set; } + string Mode { get; set; } [Export ("renderMode", ArgumentSemantic.Copy)] - string RenderMode { get; set; } + string RenderMode { get; set; } [Export ("preservesDepth")] - bool PreservesDepth { get; set; } + bool PreservesDepth { get; set; } [Export ("velocity")] - float Velocity { get; set; } /* float, not CGFloat */ + float Velocity { get; set; } /* float, not CGFloat */ [Export ("scale")] - float Scale { get; set; } /* float, not CGFloat */ + float Scale { get; set; } /* float, not CGFloat */ [Export ("spin")] - float Spin { get; set; } /* float, not CGFloat */ + float Spin { get; set; } /* float, not CGFloat */ [Export ("seed")] - int Seed { get; set; } // unsigned int - + int Seed { get; set; } // unsigned int + /** `emitterShape' values. **/ [Field ("kCAEmitterLayerPoint")] - NSString ShapePoint { get; } + NSString ShapePoint { get; } [Field ("kCAEmitterLayerLine")] - NSString ShapeLine { get; } + NSString ShapeLine { get; } [Field ("kCAEmitterLayerRectangle")] - NSString ShapeRectangle { get; } - + NSString ShapeRectangle { get; } + [Field ("kCAEmitterLayerCuboid")] - NSString ShapeCuboid { get; } - + NSString ShapeCuboid { get; } + [Field ("kCAEmitterLayerCircle")] - NSString ShapeCircle { get; } - + NSString ShapeCircle { get; } + [Field ("kCAEmitterLayerSphere")] - NSString ShapeSphere { get; } - + NSString ShapeSphere { get; } + /** `emitterMode' values. **/ [Field ("kCAEmitterLayerPoints")] - NSString ModePoints { get; } + NSString ModePoints { get; } [Field ("kCAEmitterLayerOutline")] - NSString ModeOutline { get; } + NSString ModeOutline { get; } [Field ("kCAEmitterLayerSurface")] - NSString ModeSurface { get; } + NSString ModeSurface { get; } [Field ("kCAEmitterLayerVolume")] - NSString ModeVolume { get; } + NSString ModeVolume { get; } - /** `renderOrder' values. **/ + /** `renderOrder' values. **/ [Field ("kCAEmitterLayerUnordered")] - NSString RenderUnordered { get; } + NSString RenderUnordered { get; } [Field ("kCAEmitterLayerOldestFirst")] - NSString RenderOldestFirst { get; } + NSString RenderOldestFirst { get; } [Field ("kCAEmitterLayerOldestLast")] - NSString RenderOldestLast { get; } + NSString RenderOldestLast { get; } [Field ("kCAEmitterLayerBackToFront")] - NSString RenderBackToFront { get; } + NSString RenderBackToFront { get; } [Field ("kCAEmitterLayerAdditive")] - NSString RenderAdditive { get; } + NSString RenderAdditive { get; } } -// Corresponding headers were removed in Xcode 9 without any explanation -// rdar #33590997 was filled - no news -// 'initWithType:', 'behaviorWithType:' and 'behaviorTypes' API now cause rejection -// https://trello.com/c/J8BDDUV9/86-33590997-coreanimation-quartzcore-api-removals + // Corresponding headers were removed in Xcode 9 without any explanation + // rdar #33590997 was filled - no news + // 'initWithType:', 'behaviorWithType:' and 'behaviorTypes' API now cause rejection + // https://trello.com/c/J8BDDUV9/86-33590997-coreanimation-quartzcore-api-removals #if !NET - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [BaseType (typeof (NSObject))] interface CAEmitterBehavior : NSSecureCoding { @@ -1823,66 +1927,75 @@ namespace CoreAnimation { // CAEmitterBehavior Create (NSString type); [Field ("kCAEmitterBehaviorAlignToMotion")] - NSString AlignToMotion { get; } + NSString AlignToMotion { get; } [Field ("kCAEmitterBehaviorAttractor")] - NSString Attractor { get; } + NSString Attractor { get; } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Field ("kCAEmitterBehaviorSimpleAttractor")] NSString SimpleAttractor { get; } [Field ("kCAEmitterBehaviorColorOverLife")] - NSString ColorOverLife { get; } + NSString ColorOverLife { get; } [Field ("kCAEmitterBehaviorDrag")] - NSString Drag { get; } + NSString Drag { get; } [Field ("kCAEmitterBehaviorLight")] - NSString Light { get; } + NSString Light { get; } [Field ("kCAEmitterBehaviorValueOverLife")] - NSString ValueOverLife { get; } + NSString ValueOverLife { get; } [Field ("kCAEmitterBehaviorWave")] - NSString Wave { get; } + NSString Wave { get; } } #endif [Internal] [Static] - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] partial interface CARendererOptionKeys { [Field ("kCARendererColorSpace")] NSString ColorSpace { get; } - [Mac (10,14)] + [Mac (10, 14)] [Field ("kCARendererMetalCommandQueue")] NSString MetalCommandQueue { get; } } - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [StrongDictionary ("CARendererOptionKeys")] interface CARendererOptions { [Export ("ColorSpace")] CGColorSpace ColorSpace { get; set; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("MetalCommandQueue")] IMTLCommandQueue MetalCommandQueue { get; set; } } // 10.5 on the Mac - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [BaseType (typeof (NSObject))] interface CARenderer { - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("rendererWithMTLTexture:options:")] CARenderer Create (IMTLTexture tex, [NullAllowed] NSDictionary dict); - [Mac (10,13)] + [Mac (10, 13)] [Static] [Wrap ("Create (tex, options.GetDictionary ())")] CARenderer Create (IMTLTexture tex, [NullAllowed] CARendererOptions options); @@ -1896,7 +2009,8 @@ namespace CoreAnimation { [Export ("beginFrameAtTime:timeStamp:")] void BeginFrame (double timeInSeconds, ref CVTimeStamp ts); - [Sealed][Internal] // since the timestamp is nullable + [Sealed] + [Internal] // since the timestamp is nullable [Export ("beginFrameAtTime:timeStamp:")] void BeginFrame (double timeInSeconds, IntPtr ts); @@ -1918,14 +2032,16 @@ namespace CoreAnimation { [Export ("endFrame")] void EndFrame (); - [Mac (10,14)] + [Mac (10, 14)] [Export ("setDestination:")] void SetDestination (IMTLTexture tex); } - [NoWatch][NoiOS][NoTV] - [MacCatalyst (13,1)] - [Mac (10,15)] + [NoWatch] + [NoiOS] + [NoTV] + [MacCatalyst (13, 1)] + [Mac (10, 15)] [BaseType (typeof (NSObject), Name = "CAEDRMetadata")] [DisableDefaultCtor] interface CAEdrMetadata { diff --git a/src/coreaudiokit.cs b/src/coreaudiokit.cs index 497f4d1734..f1a0aa6d3d 100644 --- a/src/coreaudiokit.cs +++ b/src/coreaudiokit.cs @@ -35,7 +35,7 @@ using NativeHandle = System.IntPtr; namespace CoreAudioKit { [NoiOS] - [Mac (10,11)] + [Mac (10, 11)] [Flags] public enum AUGenericViewDisplayFlags : uint { TitleDisplay = 1u << 0, @@ -43,15 +43,17 @@ namespace CoreAudioKit { ParametersDisplay = 1u << 2, } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(AUViewControllerBase))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (AUViewControllerBase))] interface AUViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); } - [iOS (11,0)][Mac (10,13)] + [iOS (11, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface AUAudioUnitViewConfiguration : NSSecureCoding { [Export ("initWithWidth:height:hostHasController:")] @@ -68,7 +70,8 @@ namespace CoreAudioKit { } [Category] - [iOS (11,0)][Mac (10,13)] + [iOS (11, 0)] + [Mac (10, 13)] [BaseType (typeof (AUAudioUnit))] interface AUAudioUnitViewControllerExtensions { [Export ("supportedViewConfigurations:")] @@ -79,7 +82,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [Protocol] interface AUCustomViewPersistentData { @@ -89,7 +92,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [DisableDefaultCtor] // Crashes [BaseType (typeof (NSView))] interface AUGenericView : AUCustomViewPersistentData { @@ -108,7 +111,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [BaseType (typeof (NSView))] [DisableDefaultCtor] interface AUPannerView { @@ -122,7 +125,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [BaseType (typeof (NSWindowController), Name = "CABTLEMIDIWindowController")] interface CABtleMidiWindowController { @@ -131,7 +134,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [BaseType (typeof (NSViewController))] interface CAInterDeviceAudioViewController { @@ -140,7 +143,7 @@ namespace CoreAudioKit { } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [DesignatedDefaultCtor] [BaseType (typeof (NSWindowController))] interface CANetworkBrowserWindowController { @@ -154,38 +157,38 @@ namespace CoreAudioKit { } #if !MONOMAC - [iOS (8,0)] + [iOS (8, 0)] [NoMac] // in iOS 8.3 (Xcode 6.3 SDK) the base type was changed from UIViewController to UITableViewController - [BaseType (typeof (UITableViewController), Name="CABTMIDICentralViewController")] + [BaseType (typeof (UITableViewController), Name = "CABTMIDICentralViewController")] interface CABTMidiCentralViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - [iOS (8,3)] + [iOS (8, 3)] [Export ("initWithStyle:")] NativeHandle Constructor (UITableViewStyle withStyle); } - [iOS (8,0)] + [iOS (8, 0)] [NoMac] - [BaseType (typeof (UIViewController), Name="CABTMIDILocalPeripheralViewController")] + [BaseType (typeof (UIViewController), Name = "CABTMIDILocalPeripheralViewController")] interface CABTMidiLocalPeripheralViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); } - [iOS (8,0)] + [iOS (8, 0)] [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'AudioUnit' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AudioUnit' instead.")] [NoMacCatalyst] [BaseType (typeof (UIView))] interface CAInterAppAudioSwitcherView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect bounds); - + [Export ("showingAppNames")] bool ShowingAppNames { [Bind ("isShowingAppNames")] get; set; } @@ -196,15 +199,15 @@ namespace CoreAudioKit { nfloat ContentWidth (); } - [iOS (8,0)] + [iOS (8, 0)] [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'AudioUnit' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AudioUnit' instead.")] [NoMacCatalyst] [BaseType (typeof (UIView))] interface CAInterAppAudioTransportView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect bounds); - + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } @@ -242,10 +245,9 @@ namespace CoreAudioKit { } #endif - [Mac (13,0), iOS (16,0)] - [BaseType (typeof(UIViewController))] - interface AUGenericViewController - { + [Mac (13, 0), iOS (16, 0)] + [BaseType (typeof (UIViewController))] + interface AUGenericViewController { [DesignatedInitializer] [Export ("initWithNibName:bundle:")] diff --git a/src/corebluetooth.cs b/src/corebluetooth.cs index 38c2e27480..af6059b4fd 100644 --- a/src/corebluetooth.cs +++ b/src/corebluetooth.cs @@ -20,16 +20,16 @@ using NativeHandle = System.IntPtr; namespace CoreBluetooth { - [Watch (4,0)] - [iOS (8,0)] - [Mac (10,13)] + [Watch (4, 0)] + [iOS (8, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CBAttribute { [Export ("UUID")] - CBUUID UUID { get; [NotImplemented] set; } + CBUUID UUID { get; [NotImplemented] set; } } - [Watch (4,0)] + [Watch (4, 0)] [StrongDictionary ("CBCentralManager")] interface CBCentralInitOptions { [Export ("OptionShowPowerAlertKey")] @@ -40,43 +40,46 @@ namespace CoreBluetooth { string RestoreIdentifier { get; set; } } - [Watch (4,0)] - [iOS (10,0)] - [Mac (10,13)] - [BaseType (typeof(NSObject))] + [Watch (4, 0)] + [iOS (10, 0)] + [Mac (10, 13)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CBManager { [Export ("state", ArgumentSemantic.Assign)] CBManagerState State { get; } [Internal] - [iOS (13,0), Watch (6,0)] - [NoTV][NoMac] + [iOS (13, 0), Watch (6, 0)] + [NoTV] + [NoMac] [Export ("authorization", ArgumentSemantic.Assign)] CBManagerAuthorization _IAuthorization { get; } [Internal] - [iOS (13,1), Watch (6,1)] - [NoTV][NoMac] + [iOS (13, 1), Watch (6, 1)] + [NoTV] + [NoMac] [Static] [Export ("authorization", ArgumentSemantic.Assign)] CBManagerAuthorization _SAuthorization { get; } - [TV (13,0), Mac (10, 15)] - [NoiOS][NoWatch] + [TV (13, 0), Mac (10, 15)] + [NoiOS] + [NoWatch] [Static] [Export ("authorization", ArgumentSemantic.Assign)] CBManagerAuthorization Authorization { get; } } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [StrongDictionary ("CBConnectionEventMatchingOptionsKeys")] interface CBConnectionEventMatchingOptions { NSUuid [] PeripheralUuids { get; set; } - CBUUID [] ServiceUuids { get; set;} + CBUUID [] ServiceUuids { get; set; } } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Static] [Internal] interface CBConnectionEventMatchingOptionsKeys { @@ -88,38 +91,38 @@ namespace CoreBluetooth { [StrongDictionary ("CBConnectPeripheralOptionsKeys")] interface CBConnectPeripheralOptions { - [Mac (10,13)] + [Mac (10, 13)] bool NotifyOnConnection { get; set; } bool NotifyOnDisconnection { get; set; } - [Mac (10,13)] + [Mac (10, 13)] bool NotifyOnNotification { get; set; } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] bool EnableTransportBridging { get; set; } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] bool RequiresAncs { get; set; } } [Static] [Internal] interface CBConnectPeripheralOptionsKeys { - [Mac (10,13)] + [Mac (10, 13)] [Field ("CBConnectPeripheralOptionNotifyOnConnectionKey")] NSString NotifyOnConnectionKey { get; } [Field ("CBConnectPeripheralOptionNotifyOnDisconnectionKey")] NSString NotifyOnDisconnectionKey { get; } - [Mac (10,13)] + [Mac (10, 13)] [Field ("CBConnectPeripheralOptionNotifyOnNotificationKey")] NSString NotifyOnNotificationKey { get; } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Field ("CBConnectPeripheralOptionEnableTransportBridgingKey")] NSString EnableTransportBridgingKey { get; } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Field ("CBConnectPeripheralOptionRequiresANCS")] - NSString RequiresAncsKey {get; } + NSString RequiresAncsKey { get; } } - [Watch (4,0)] - [BaseType (typeof (CBManager), Delegates=new[] {"WeakDelegate"}, Events = new[] { typeof (CBCentralManagerDelegate)})] + [Watch (4, 0)] + [BaseType (typeof (CBManager), Delegates = new [] { "WeakDelegate" }, Events = new [] { typeof (CBCentralManagerDelegate) })] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBCentralManager { @@ -129,18 +132,18 @@ namespace CoreBluetooth { [Wrap ("WeakDelegate")] [Protocolize] CBCentralManagerDelegate Delegate { get; set; } - + [Export ("initWithDelegate:queue:")] [PostGet ("WeakDelegate")] NativeHandle Constructor ([NullAllowed, Protocolize] CBCentralManagerDelegate centralDelegate, [NullAllowed] DispatchQueue queue); [DesignatedInitializer] - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("initWithDelegate:queue:options:")] [PostGet ("WeakDelegate")] NativeHandle Constructor ([NullAllowed, Protocolize] CBCentralManagerDelegate centralDelegate, [NullAllowed] DispatchQueue queue, [NullAllowed] NSDictionary options); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Wrap ("this (centralDelegate, queue, options.GetDictionary ())")] NativeHandle Constructor ([NullAllowed, Protocolize] CBCentralManagerDelegate centralDelegate, [NullAllowed] DispatchQueue queue, CBCentralInitOptions options); @@ -169,87 +172,89 @@ namespace CoreBluetooth { NSString OptionNotifyOnDisconnectionKey { get; } [Obsolete ("Use 'CBConnectPeripheralOptions' instead.")] - [Mac (10,13)] + [Mac (10, 13)] [Field ("CBConnectPeripheralOptionNotifyOnConnectionKey")] NSString OptionNotifyOnConnectionKey { get; } [Obsolete ("Use 'CBConnectPeripheralOptions' instead.")] - [Mac (10,13)] + [Mac (10, 13)] [Field ("CBConnectPeripheralOptionNotifyOnNotificationKey")] NSString OptionNotifyOnNotificationKey { get; } #endif - [Mac (10,14)] - [iOS (11,2)][TV (11,2)][Watch (4,2)] + [Mac (10, 14)] + [iOS (11, 2)] + [TV (11, 2)] + [Watch (4, 2)] [Field ("CBConnectPeripheralOptionStartDelayKey")] NSString OptionStartDelayKey { get; } [Field ("CBCentralManagerOptionRestoreIdentifierKey")] - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] NSString OptionRestoreIdentifierKey { get; } [Field ("CBCentralManagerRestoredStatePeripheralsKey")] - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] NSString RestoredStatePeripheralsKey { get; } [Field ("CBCentralManagerRestoredStateScanServicesKey")] - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] NSString RestoredStateScanServicesKey { get; } [Field ("CBCentralManagerRestoredStateScanOptionsKey")] - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] NSString RestoredStateScanOptionsKey { get; } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("retrievePeripheralsWithIdentifiers:")] CBPeripheral [] RetrievePeripheralsWithIdentifiers ([Params] NSUuid [] identifiers); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("retrieveConnectedPeripheralsWithServices:")] - CBPeripheral [] RetrieveConnectedPeripherals ([Params] CBUUID [] serviceUUIDs); + CBPeripheral [] RetrieveConnectedPeripherals ([Params] CBUUID [] serviceUUIDs); [Field ("CBCentralManagerOptionShowPowerAlertKey")] - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] NSString OptionShowPowerAlertKey { get; } - [iOS (16,0), NoMac, TV(16,0), MacCatalyst (16,0), Watch (9,0)] + [iOS (16, 0), NoMac, TV (16, 0), MacCatalyst (16, 0), Watch (9, 0)] [Field ("CBCentralManagerOptionDeviceAccessForMedia")] NSString OptionDeviceAccessForMedia { get; } [Field ("CBCentralManagerScanOptionSolicitedServiceUUIDsKey")] - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] NSString ScanOptionSolicitedServiceUUIDsKey { get; } - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [Export ("isScanning")] bool IsScanning { get; } - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Static] [Export ("supportsFeatures:")] bool SupportsFeatures (CBCentralManagerFeature features); [EditorBrowsable (EditorBrowsableState.Advanced)] - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Export ("registerForConnectionEventsWithOptions:")] void RegisterForConnectionEvents ([NullAllowed] NSDictionary options); - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Wrap ("RegisterForConnectionEvents (options.GetDictionary ())")] void RegisterForConnectionEvents ([NullAllowed] CBConnectionEventMatchingOptions options); } - [Watch (4,0)] + [Watch (4, 0)] [StrongDictionary ("AdvertisementDataKeys")] interface AdvertisementData { string LocalName { get; set; } NSData ManufacturerData { get; set; } - NSDictionary ServiceData { get; set; } + NSDictionary ServiceData { get; set; } CBUUID [] ServiceUuids { get; set; } CBUUID [] OverflowServiceUuids { get; set; } NSNumber TxPowerLevel { get; set; } @@ -257,7 +262,7 @@ namespace CoreBluetooth { CBUUID [] SolicitedServiceUuids { get; set; } } - [Watch (4,0)] + [Watch (4, 0)] [Static, Internal] interface AdvertisementDataKeys { [Field ("CBAdvertisementDataLocalNameKey")] @@ -279,20 +284,20 @@ namespace CoreBluetooth { [Field ("CBAdvertisementDataTxPowerLevelKey")] NSString TxPowerLevelKey { get; } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CBAdvertisementDataIsConnectable")] NSString IsConnectableKey { get; } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CBAdvertisementDataSolicitedServiceUUIDsKey")] NSString SolicitedServiceUuidsKey { get; } } - [Watch (4,0)] + [Watch (4, 0)] [StrongDictionary ("PeripheralScanningOptionsKeys")] interface PeripheralScanningOptions { } - [Watch (4,0)] + [Watch (4, 0)] [StrongDictionary ("RestoredStateKeys")] interface RestoredState { CBPeripheral [] Peripherals { get; set; } @@ -300,26 +305,26 @@ namespace CoreBluetooth { PeripheralScanningOptions ScanOptions { get; set; } } - [Watch (4,0)] + [Watch (4, 0)] [Static, Internal] interface RestoredStateKeys { - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] [Field ("CBCentralManagerRestoredStatePeripheralsKey")] NSString PeripheralsKey { get; } - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] [Field ("CBCentralManagerRestoredStateScanServicesKey")] NSString ScanServicesKey { get; } - [iOS (7,0)] - [Mac (10,13)] + [iOS (7, 0)] + [Mac (10, 13)] [Field ("CBCentralManagerRestoredStateScanOptionsKey")] NSString ScanOptionsKey { get; } } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -361,82 +366,82 @@ namespace CoreBluetooth { [Export ("centralManager:didDisconnectPeripheral:error:"), EventArgs ("CBPeripheralError")] void DisconnectedPeripheral (CBCentralManager central, CBPeripheral peripheral, [NullAllowed] NSError error); - + [Export ("centralManager:willRestoreState:"), EventArgs ("CBWillRestore")] void WillRestoreState (CBCentralManager central, NSDictionary dict); - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Export ("centralManager:connectionEventDidOccur:forPeripheral:"), EventArgs ("CBPeripheralConnectionEvent")] void ConnectionEventDidOccur (CBCentralManager central, CBConnectionEvent connectionEvent, CBPeripheral peripheral); - [iOS (13,0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Export ("centralManager:didUpdateANCSAuthorizationForPeripheral:"), EventArgs ("CBAncsAuthorizationUpdate")] void DidUpdateAncsAuthorization (CBCentralManager central, CBPeripheral peripheral); } - [Watch (4,0)] + [Watch (4, 0)] [Static] interface CBAdvertisement { [Field ("CBAdvertisementDataServiceUUIDsKey")] NSString DataServiceUUIDsKey { get; } - + [Field ("CBAdvertisementDataLocalNameKey")] NSString DataLocalNameKey { get; } - + [Field ("CBAdvertisementDataTxPowerLevelKey")] NSString DataTxPowerLevelKey { get; } - + [Field ("CBAdvertisementDataManufacturerDataKey")] NSString DataManufacturerDataKey { get; } - + [Field ("CBAdvertisementDataServiceDataKey")] NSString DataServiceDataKey { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("CBAdvertisementDataOverflowServiceUUIDsKey")] NSString DataOverflowServiceUUIDsKey { get; } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CBAdvertisementDataIsConnectable")] NSString IsConnectable { get; } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CBAdvertisementDataSolicitedServiceUUIDsKey")] NSString DataSolicitedServiceUUIDsKey { get; } } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (CBAttribute))] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBCharacteristic { - + [Export ("properties")] CBCharacteristicProperties Properties { get; [NotImplemented ("Not available on CBCharacteristic, only available on CBMutableCharacteristic")] set; } [NullAllowed] [Export ("value", ArgumentSemantic.Retain)] - NSData Value { get; [NotImplemented ("Not available on CBCharacteristic, only available on CBMutableCharacteristic")] set; } + NSData Value { get; [NotImplemented ("Not available on CBCharacteristic, only available on CBMutableCharacteristic")] set; } [NullAllowed] [Export ("descriptors", ArgumentSemantic.Retain)] CBDescriptor [] Descriptors { get; [NotImplemented ("Not available on CBCharacteristic, only available on CBMutableCharacteristic")] set; } - [Deprecated (PlatformName.iOS, 8,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] + [Deprecated (PlatformName.iOS, 8, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] [Export ("isBroadcasted")] - bool IsBroadcasted { get; } + bool IsBroadcasted { get; } [Export ("isNotifying")] - bool IsNotifying { get; } + bool IsNotifying { get; } [NullAllowed] [Export ("service", ArgumentSemantic.Weak)] CBService Service { get; } } - [Watch (4,0)] - [Mac (10,9)] + [Watch (4, 0)] + [Mac (10, 9)] [BaseType (typeof (CBCharacteristic))] [DisableDefaultCtor] interface CBMutableCharacteristic { @@ -466,27 +471,27 @@ namespace CoreBluetooth { [Override] CBDescriptor [] Descriptors { get; set; } - [iOS (7,0), Export ("subscribedCentrals")] + [iOS (7, 0), Export ("subscribedCentrals")] [NullAllowed] CBCentral [] SubscribedCentrals { get; } } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (CBAttribute))] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBDescriptor { - + [Export ("value", ArgumentSemantic.Retain)] [NullAllowed] - NSObject Value { get; } + NSObject Value { get; } [NullAllowed] [Export ("characteristic", ArgumentSemantic.Weak)] CBCharacteristic Characteristic { get; } } - [Watch (4,0)] - [Mac (10,9)] + [Watch (4, 0)] + [Mac (10, 9)] [BaseType (typeof (CBDescriptor))] [DisableDefaultCtor] interface CBMutableDescriptor { @@ -499,21 +504,21 @@ namespace CoreBluetooth { NativeHandle Constructor (CBUUID uuid, [NullAllowed] NSObject descriptorValue); } - [Watch (4,0)] - [BaseType (typeof (CBPeer), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof (CBPeripheralDelegate)})] + [Watch (4, 0)] + [BaseType (typeof (CBPeer), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (CBPeripheralDelegate) })] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBPeripheral : NSCopying { [Export ("name", ArgumentSemantic.Retain)] [DisableZeroCopy] [NullAllowed] - string Name { get; } + string Name { get; } - [Deprecated (PlatformName.iOS, 8,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] + [Deprecated (PlatformName.iOS, 8, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] [NoWatch] [Export ("RSSI", ArgumentSemantic.Retain)] [NullAllowed] - NSNumber RSSI { get; } + NSNumber RSSI { get; } #if !NET [NoTV] @@ -521,12 +526,12 @@ namespace CoreBluetooth { [Deprecated (PlatformName.iOS, 7, 0)] [Obsoleted (PlatformName.iOS, 9, 0)] [Export ("isConnected")] - bool IsConnected { get; } + bool IsConnected { get; } #endif [Export ("services", ArgumentSemantic.Retain)] [NullAllowed] - CBService [] Services { get; } + CBService [] Services { get; } [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } @@ -534,7 +539,7 @@ namespace CoreBluetooth { [Wrap ("WeakDelegate")] [Protocolize] CBPeripheralDelegate Delegate { get; set; } - + [Export ("readRSSI")] void ReadRSSI (); @@ -565,39 +570,44 @@ namespace CoreBluetooth { [Export ("writeValue:forDescriptor:")] void WriteValue (NSData data, CBDescriptor descriptor); - [iOS (9,0)][Mac (10,12)] + [iOS (9, 0)] + [Mac (10, 12)] [Export ("maximumWriteValueLengthForType:")] nuint GetMaximumWriteValueLength (CBCharacteristicWriteType type); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("state")] CBPeripheralState State { get; } - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("canSendWriteWithoutResponse")] bool CanSendWriteWithoutResponse { get; } - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("openL2CAPChannel:")] void OpenL2CapChannel (ushort psm); - [iOS (13, 0), TV (13,0), Watch (6,0), NoMac] + [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [Export ("ancsAuthorized")] bool AncsAuthorized { get; } } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] interface CBPeripheralDelegate { - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'RssiRead' instead.")] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'RssiRead' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'RssiRead' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'RssiRead' instead.")] [Export ("peripheralDidUpdateRSSI:error:"), EventArgs ("NSError", true)] void RssiUpdated (CBPeripheral peripheral, [NullAllowed] NSError error); - [iOS (8,0)] - [Mac (10,13)] + [iOS (8, 0)] + [Mac (10, 13)] [Export ("peripheral:didReadRSSI:error:"), EventArgs ("CBRssi")] void RssiRead (CBPeripheral peripheral, NSNumber rssi, [NullAllowed] NSError error); @@ -606,7 +616,7 @@ namespace CoreBluetooth { void DiscoveredService (CBPeripheral peripheral, [NullAllowed] NSError error); [Export ("peripheral:didDiscoverIncludedServicesForService:error:"), EventArgs ("CBService")] - void DiscoveredIncludedService (CBPeripheral peripheral, CBService service, [NullAllowed] NSError error); + void DiscoveredIncludedService (CBPeripheral peripheral, CBService service, [NullAllowed] NSError error); [Export ("peripheral:didDiscoverCharacteristicsForService:error:"), EventArgs ("CBService")] #if NET @@ -614,10 +624,10 @@ namespace CoreBluetooth { #else void DiscoveredCharacteristic (CBPeripheral peripheral, CBService service, [NullAllowed] NSError error); #endif - + [Export ("peripheral:didUpdateValueForCharacteristic:error:"), EventArgs ("CBCharacteristic")] void UpdatedCharacterteristicValue (CBPeripheral peripheral, CBCharacteristic characteristic, [NullAllowed] NSError error); - + [Export ("peripheral:didWriteValueForCharacteristic:error:"), EventArgs ("CBCharacteristic")] void WroteCharacteristicValue (CBPeripheral peripheral, CBCharacteristic characteristic, [NullAllowed] NSError error); @@ -640,31 +650,35 @@ namespace CoreBluetooth { [Obsoleted (PlatformName.iOS, 8, 4)] [NoMacCatalyst] [Export ("peripheralDidInvalidateServices:")] - void InvalidatedService (CBPeripheral peripheral); + void InvalidatedService (CBPeripheral peripheral); #endif // !NET [Export ("peripheralDidUpdateName:")] void UpdatedName (CBPeripheral peripheral); - [iOS (7,0)] + [iOS (7, 0)] [Export ("peripheral:didModifyServices:"), EventArgs ("CBPeripheralServices")] void ModifiedServices (CBPeripheral peripheral, CBService [] services); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [EventArgs ("CBPeripheralOpenL2CapChannel")] [Export ("peripheral:didOpenL2CAPChannel:error:")] void DidOpenL2CapChannel (CBPeripheral peripheral, [NullAllowed] CBL2CapChannel channel, [NullAllowed] NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("peripheralIsReadyToSendWriteWithoutResponse:")] void IsReadyToSendWriteWithoutResponse (CBPeripheral peripheral); } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (CBAttribute))] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBService { - [Mac (10,9)] + [Mac (10, 9)] [Export ("isPrimary")] #if NET bool Primary { get; } @@ -674,20 +688,20 @@ namespace CoreBluetooth { [Export ("includedServices", ArgumentSemantic.Retain)] [NullAllowed] - CBService [] IncludedServices { get; [NotImplemented ("Not available on 'CBService', only available on CBMutableService.")] set; } + CBService [] IncludedServices { get; [NotImplemented ("Not available on 'CBService', only available on CBMutableService.")] set; } [Export ("characteristics", ArgumentSemantic.Retain)] [NullAllowed] - CBCharacteristic [] Characteristics { get; [NotImplemented ("Not available on 'CBService', only available on CBMutableService.")] set; } + CBCharacteristic [] Characteristics { get; [NotImplemented ("Not available on 'CBService', only available on CBMutableService.")] set; } [NullAllowed] [Export ("peripheral", ArgumentSemantic.Weak)] CBPeripheral Peripheral { get; } } - - [Watch (4,0)] - [Mac(10,9)] + + [Watch (4, 0)] + [Mac (10, 9)] [BaseType (typeof (CBService))] [DisableDefaultCtor] interface CBMutableService { @@ -701,20 +715,20 @@ namespace CoreBluetooth { [Export ("includedServices", ArgumentSemantic.Retain)] [Override] [NullAllowed] - CBService[] IncludedServices { get; set; } // TODO: check array type + CBService [] IncludedServices { get; set; } // TODO: check array type [Export ("characteristics", ArgumentSemantic.Retain)] [Override] [NullAllowed] - CBCharacteristic[] Characteristics { get; set; } // TODO: check array type + CBCharacteristic [] Characteristics { get; set; } // TODO: check array type } - [Watch (4,0)] + [Watch (4, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash (at dispose time) on OSX interface CBUUID : NSCopying { [Export ("data")] - NSData Data{ get; } + NSData Data { get; } [Static] [MarshalNativeExceptions] @@ -731,9 +745,9 @@ namespace CoreBluetooth { [Static] [Export ("UUIDWithCFUUID:")] CBUUID FromCFUUID (IntPtr theUUID); - + [Static] - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("UUIDWithNSUUID:")] CBUUID FromNSUuid (NSUuid theUUID); @@ -772,7 +786,10 @@ namespace CoreBluetooth { [Introduced (PlatformName.MacOSX, 10, 12)] [Deprecated (PlatformName.MacOSX, 10, 13)] [Obsoleted (PlatformName.MacOSX, 10, 13)] - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] NSString CBUUIDValidRangeString { get; } #if MONOMAC && !NET @@ -781,18 +798,18 @@ namespace CoreBluetooth { [Field ("CBUUIDCharacteristicValidRangeString")] NSString CBUUIDCharacteristicValidRangeString { get; } #else - [iOS (10,0)] - [TV (10,0)] - [Watch (4,0)] - [Mac (10,13)] - [MacCatalyst (13,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (4, 0)] + [Mac (10, 13)] + [MacCatalyst (13, 0)] [Field ("CBUUIDCharacteristicValidRangeString")] NSString CharacteristicValidRangeString { get; } #endif - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Field ("CBUUIDL2CAPPSMCharacteristicString")] NSString L2CapPsmCharacteristicString { get; } @@ -828,13 +845,14 @@ namespace CoreBluetooth { NSString ServiceChangedString { get; } #endif // !XAMCORE_3_0 && !NET - [iOS (7,1)][Mac (10,10)] + [iOS (7, 1)] + [Mac (10, 10)] [Export ("UUIDString")] string Uuid { get; } } - - [Watch (4,0)] - [Mac(10,9)] + + [Watch (4, 0)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CBATTRequest { @@ -849,29 +867,32 @@ namespace CoreBluetooth { [Export ("value", ArgumentSemantic.Copy)] [NullAllowed] - NSData Value { get; set; } + NSData Value { get; set; } } - [Mac (10,9)] - [Watch (4,0)] + [Mac (10, 9)] + [Watch (4, 0)] [BaseType (typeof (CBPeer))] // `delloc` a default instance crash applications and a default instance, without the ability to change the UUID, does not make sense [DisableDefaultCtor] interface CBCentral : NSCopying { - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Export ("identifier")] NSUuid Identifier { get; } // Introduced with iOS7, but does not have NS_AVAILABLE - [iOS (7,0)] + [iOS (7, 0)] [Export ("maximumUpdateValueLength")] nuint MaximumUpdateValueLength { get; } } - [Watch (4,0)] - [Mac(10,9)] + [Watch (4, 0)] + [Mac (10, 9)] [DisableDefaultCtor] - [BaseType (typeof (CBManager), Delegates=new[] { "WeakDelegate" }, Events=new[] { typeof (CBPeripheralManagerDelegate) })] + [BaseType (typeof (CBManager), Delegates = new [] { "WeakDelegate" }, Events = new [] { typeof (CBPeripheralManagerDelegate) })] interface CBPeripheralManager { [Export ("init")] @@ -886,7 +907,7 @@ namespace CoreBluetooth { [NoTV] [NoWatch] [DesignatedInitializer] - [iOS (7,0)] + [iOS (7, 0)] [Export ("initWithDelegate:queue:options:")] [PostGet ("WeakDelegate")] NativeHandle Constructor ([NullAllowed][Protocolize] CBPeripheralManagerDelegate peripheralDelegate, [NullAllowed] DispatchQueue queue, [NullAllowed] NSDictionary options); @@ -928,45 +949,49 @@ namespace CoreBluetooth { void SetDesiredConnectionLatency (CBPeripheralManagerConnectionLatency latency, CBCentral connectedCentral); [Export ("updateValue:forCharacteristic:onSubscribedCentrals:")] - bool UpdateValue (NSData value, CBMutableCharacteristic characteristic, [NullAllowed] CBCentral[] subscribedCentrals); + bool UpdateValue (NSData value, CBMutableCharacteristic characteristic, [NullAllowed] CBCentral [] subscribedCentrals); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("publishL2CAPChannelWithEncryption:")] void PublishL2CapChannel (bool encryptionRequired); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("unpublishL2CAPChannel:")] void UnpublishL2CapChannel (ushort psm); [Field ("CBPeripheralManagerOptionShowPowerAlertKey")] - [iOS (7,0)] + [iOS (7, 0)] NSString OptionShowPowerAlertKey { get; } [Field ("CBPeripheralManagerOptionRestoreIdentifierKey")] - [iOS (7,0)] + [iOS (7, 0)] NSString OptionRestoreIdentifierKey { get; } [Field ("CBPeripheralManagerRestoredStateServicesKey")] - [iOS (7,0)] + [iOS (7, 0)] NSString RestoredStateServicesKey { get; } [Field ("CBPeripheralManagerRestoredStateAdvertisementDataKey")] - [iOS (7,0)] + [iOS (7, 0)] NSString RestoredStateAdvertisementDataKey { get; } #if !NET [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'CBManager.Authorization' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'CBManager.Authorization' instead.")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'CBManager.Authorization' instead.")] - [iOS (7,0)] + [iOS (7, 0)] [Static] [Export ("authorizationStatus")] CBPeripheralManagerAuthorizationStatus AuthorizationStatus { get; } #endif // !NET } - [Watch (4,0)] - [Mac(10,9)] + [Watch (4, 0)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -994,30 +1019,36 @@ namespace CoreBluetooth { void ReadRequestReceived (CBPeripheralManager peripheral, CBATTRequest request); [Export ("peripheralManager:didReceiveWriteRequests:"), EventArgs ("CBATTRequests")] - void WriteRequestsReceived (CBPeripheralManager peripheral, CBATTRequest[] requests); + void WriteRequestsReceived (CBPeripheralManager peripheral, CBATTRequest [] requests); [Export ("peripheralManagerIsReadyToUpdateSubscribers:")] void ReadyToUpdateSubscribers (CBPeripheralManager peripheral); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [EventArgs ("CBPeripheralManagerOpenL2CapChannel")] [Export ("peripheralManager:didOpenL2CAPChannel:error:")] void DidOpenL2CapChannel (CBPeripheralManager peripheral, [NullAllowed] CBL2CapChannel channel, [NullAllowed] NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [EventArgs ("CBPeripheralManagerL2CapChannelOperation")] [Export ("peripheralManager:didUnpublishL2CAPChannel:error:")] void DidUnpublishL2CapChannel (CBPeripheralManager peripheral, ushort psm, [NullAllowed] NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [EventArgs ("CBPeripheralManagerL2CapChannelOperation")] [Export ("peripheralManager:didPublishL2CAPChannel:error:")] void DidPublishL2CapChannel (CBPeripheralManager peripheral, ushort psm, [NullAllowed] NSError error); } [iOS (8, 0)] - [Mac (10,13)] - [Watch (4,0)] + [Mac (10, 13)] + [Watch (4, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // CBPeer.h: - (instancetype)init NS_UNAVAILABLE; interface CBPeer : NSCopying { @@ -1029,16 +1060,19 @@ namespace CoreBluetooth { [Deprecated (PlatformName.iOS, 7, 0)] [Obsoleted (PlatformName.iOS, 9, 0)] [Export ("UUID")] - IntPtr _UUID { get; } + IntPtr _UUID { get; } #endif - + [iOS (7, 0)] [Export ("identifier")] NSUuid Identifier { get; } } // The type is available in 32bits macOS 10.13 even if most properties are 64 bits only - [Watch (4,0)][iOS (11,0)][TV (11,0)][Mac (10,13)] + [Watch (4, 0)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject), Name = "CBL2CAPChannel")] interface CBL2CapChannel { @@ -1052,6 +1086,7 @@ namespace CoreBluetooth { NSOutputStream OutputStream { get; } [Export ("PSM")] - /* uint16_t */ ushort Psm { get; } + /* uint16_t */ + ushort Psm { get; } } } diff --git a/src/coredata.cs b/src/coredata.cs index 569c19cd3b..2ccd218770 100644 --- a/src/coredata.cs +++ b/src/coredata.cs @@ -22,8 +22,7 @@ using CoreSpotlight; using NativeHandle = System.IntPtr; #endif -namespace CoreData -{ +namespace CoreData { [StrongDictionary ("UserInfoKeys")] interface UserInfo { NSError [] DetailedErrors { get; set; } @@ -59,12 +58,13 @@ namespace CoreData NSString AffectedStoresForErrorKey { get; } } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Native] // NUInteger -> NSPersistentStoreCoordinator.h [iOS (7, 0)] - [Deprecated (PlatformName.iOS, 10, 0, message : "Please see the release notes and Core Data documentation.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] [Mac (10, 9)] - [Deprecated (PlatformName.MacOSX, 10, 12, message : "Please see the release notes and Core Data documentation.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Please see the release notes and Core Data documentation.")] public enum NSPersistentStoreUbiquitousTransitionType : ulong { AccountAdded = 1, AccountRemoved, @@ -110,7 +110,7 @@ namespace CoreData #endif [Export ("addCacheNodes:")] - + #if XAMCORE_5_0 void AddCacheNodes (NSSet cacheNodes); #else @@ -138,10 +138,9 @@ namespace CoreData NSAtomicStore ReferenceObjectForObjectID (NSManagedObjectID objectID); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface NSFetchIndexElementDescription : NSCoding, NSCopying - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface NSFetchIndexElementDescription : NSCoding, NSCopying { [Export ("initWithProperty:collationType:")] NativeHandle Constructor (NSPropertyDescription property, NSFetchIndexElementType collationType); @@ -161,18 +160,17 @@ namespace CoreData NSFetchIndexDescription IndexDescription { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface NSFetchIndexDescription : NSCoding, NSCopying - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface NSFetchIndexDescription : NSCoding, NSCopying { [Export ("initWithName:elements:")] - NativeHandle Constructor (string name, [NullAllowed] NSFetchIndexElementDescription[] elements); + NativeHandle Constructor (string name, [NullAllowed] NSFetchIndexElementDescription [] elements); [Export ("name")] string Name { get; set; } [Export ("elements", ArgumentSemantic.Copy)] - NSFetchIndexElementDescription[] Elements { get; set; } + NSFetchIndexElementDescription [] Elements { get; set; } [NullAllowed, Export ("entity", ArgumentSemantic.Assign)] NSEntityDescription Entity { get; } @@ -237,7 +235,7 @@ namespace CoreData [Export ("preservesValueInHistoryOnDeletion")] bool PreservesValueInHistoryOnDeletion { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsCloudEncryption")] bool AllowsCloudEncryption { get; set; } } @@ -271,7 +269,7 @@ namespace CoreData string Name { get; set; } [Export ("abstract")] - bool Abstract { [Bind("isAbstract")] get; set; } + bool Abstract { [Bind ("isAbstract")] get; set; } [Export ("subentitiesByName")] #if XAMCORE_5_0 @@ -281,7 +279,7 @@ namespace CoreData #endif [Export ("subentities", ArgumentSemantic.Retain)] - NSEntityDescription[] Subentities { get; set; } + NSEntityDescription [] Subentities { get; set; } [NullAllowed, Export ("superentity")] NSEntityDescription Superentity { get; } @@ -294,7 +292,7 @@ namespace CoreData #endif [Export ("properties", ArgumentSemantic.Retain)] - NSPropertyDescription[] Properties { get; set; } + NSPropertyDescription [] Properties { get; set; } [NullAllowed, Export ("userInfo", ArgumentSemantic.Retain)] NSDictionary UserInfo { get; set; } @@ -314,7 +312,7 @@ namespace CoreData #endif [Export ("relationshipsWithDestinationEntity:")] - NSRelationshipDescription[] RelationshipsWithDestinationEntity (NSEntityDescription entity); + NSRelationshipDescription [] RelationshipsWithDestinationEntity (NSEntityDescription entity); [Export ("isKindOfEntity:")] bool IsKindOfEntity (NSEntityDescription entity); @@ -327,18 +325,18 @@ namespace CoreData string VersionHashModifier { get; set; } [Export ("compoundIndexes", ArgumentSemantic.Retain)] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] NSPropertyDescription [] CompoundIndexes { get; set; } [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("indexes", ArgumentSemantic.Copy)] - NSFetchIndexDescription[] Indexes { get; set; } + NSFetchIndexDescription [] Indexes { get; set; } // @property (strong) NSArray * __nonnull> * __nonnull uniquenessConstraints __attribute__((availability(ios, introduced=9.0))); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Internal, Export ("uniquenessConstraints", ArgumentSemantic.Strong)] NSArray _UniquenessConstraints { get; set; } @@ -375,11 +373,11 @@ namespace CoreData [Export ("attributeMappings", ArgumentSemantic.Retain)] [NullAllowed] - NSPropertyMapping[] AttributeMappings { get; set; } + NSPropertyMapping [] AttributeMappings { get; set; } [Export ("relationshipMappings", ArgumentSemantic.Retain)] [NullAllowed] - NSPropertyMapping[] RelationshipMappings { get; set; } + NSPropertyMapping [] RelationshipMappings { get; set; } [NullAllowed] // by default this property is null [Export ("sourceExpression", ArgumentSemantic.Retain)] @@ -456,14 +454,14 @@ namespace CoreData NSExpression Context { get; } [Export ("countOnlyRequest")] - bool IsCountOnly { [Bind ("isCountOnlyRequest")] get;} + bool IsCountOnly { [Bind ("isCountOnlyRequest")] get; } } - interface INSFetchRequestResult {} + interface INSFetchRequestResult { } - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Protocol] - interface NSFetchRequestResult {} + interface NSFetchRequestResult { } [DisableDefaultCtor] // designated [BaseType (typeof (NSPersistentStoreRequest))] @@ -483,7 +481,7 @@ namespace CoreData [Export ("sortDescriptors", ArgumentSemantic.Retain)] [NullAllowed] - NSSortDescriptor[] SortDescriptors { get; set; } + NSSortDescriptor [] SortDescriptors { get; set; } [Export ("fetchLimit")] nuint FetchLimit { get; set; } @@ -493,7 +491,7 @@ namespace CoreData [Export ("affectedStores", ArgumentSemantic.Retain)] [NullAllowed] - NSPersistentStore[] AffectedStores { get; set; } + NSPersistentStore [] AffectedStores { get; set; } [Export ("resultType")] NSFetchRequestResultType ResultType { get; set; } @@ -515,7 +513,7 @@ namespace CoreData [Export ("relationshipKeyPathsForPrefetching")] [NullAllowed] - string[] RelationshipKeyPathsForPrefetching { get; set; } + string [] RelationshipKeyPathsForPrefetching { get; set; } [Export ("propertiesToFetch", ArgumentSemantic.Copy)] [NullAllowed] @@ -546,10 +544,10 @@ namespace CoreData [NullAllowed] NSPropertyDescription [] PropertiesToGroupBy { get; set; } - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Export ("execute:")] [return: NullAllowed] - INSFetchRequestResult[] Execute (out NSError error); + INSFetchRequestResult [] Execute (out NSError error); } [NoMac] @@ -563,7 +561,8 @@ namespace CoreData [Protocolize] NSFetchedResultsControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [NullAllowed, Export ("cacheName")] @@ -571,7 +570,7 @@ namespace CoreData [Export ("fetchedObjects")] [NullAllowed] - NSObject[] FetchedObjects { get; } + NSObject [] FetchedObjects { get; } [Export ("fetchRequest")] NSFetchRequest FetchRequest { get; } @@ -583,7 +582,7 @@ namespace CoreData string SectionNameKeyPath { get; } [NullAllowed, Export ("sections")] - INSFetchedResultsSectionInfo[] Sections { get; } + INSFetchedResultsSectionInfo [] Sections { get; } [Export ("performFetch:")] bool PerformFetch (out NSError error); @@ -607,7 +606,7 @@ namespace CoreData // expose a method as the property name is taken [Export ("sectionIndexTitles")] - string[] GetSectionIndexTitles (); + string [] GetSectionIndexTitles (); #else [Export ("sectionIndexTitleForSectionName:")] [return: NullAllowed] @@ -616,7 +615,7 @@ namespace CoreData [Export ("sectionIndexTitles")] string[] SectionIndexTitles { get; } #endif - + [Static] [Export ("deleteCacheWithName:")] void DeleteCache ([NullAllowed] string name); @@ -655,7 +654,7 @@ namespace CoreData [NullAllowed, Export ("objects")] [Abstract] - NSObject[] Objects { get; } + NSObject [] Objects { get; } [Export ("name")] [Abstract] @@ -666,7 +665,7 @@ namespace CoreData string IndexTitle { get; } } - interface INSFetchedResultsSectionInfo {} + interface INSFetchedResultsSectionInfo { } // NSInvalidArgumentException *** -loadMetadata: cannot be sent to an abstract object of class NSIncrementalStore: Create a concrete instance! // Apple doc quote: "NSIncrementalStore is an abstract superclass..." @@ -728,7 +727,7 @@ namespace CoreData [Export ("initWithObjectID:withValues:version:")] #if XAMCORE_5_0 NativeHandle Constructor (NSManagedObjectID objectId, NSDictionary values, ulong version); -#else +#else NativeHandle Constructor (NSManagedObjectID objectId, NSDictionary values, ulong version); #endif @@ -759,16 +758,16 @@ namespace CoreData [Export ("initWithEntity:insertIntoManagedObjectContext:")] NativeHandle Constructor (NSEntityDescription entity, [NullAllowed] NSManagedObjectContext context); - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Export ("initWithContext:")] NativeHandle Constructor (NSManagedObjectContext moc); - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static] [Export ("entity")] NSEntityDescription GetEntityDescription (); - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static] [Export ("fetchRequest")] NSFetchRequest CreateFetchRequest (); @@ -781,7 +780,7 @@ namespace CoreData [Export ("objectID", ArgumentSemantic.Strong)] NSManagedObjectID ObjectID { get; } - + [Static, Export ("contextShouldIgnoreUnmodeledPropertyChanges")] bool ContextShouldIgnoreUnModeledPropertyChanges { get; } @@ -821,7 +820,8 @@ namespace CoreData [Export ("didChangeValueForKey:withSetMutation:usingObjects:")] void DidChangeValueForKey (string inKey, NSKeyValueSetMutationKind inMutationKind, NSSet inObjects); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("observationInfo")] IntPtr ObservationInfo { get; set; } @@ -882,7 +882,7 @@ namespace CoreData #elif NET NSDictionary GetCommittedValues ([NullAllowed] string[] keys); #else - NSDictionary CommittedValuesForKeys ([NullAllowed] string[] keys); + NSDictionary CommittedValuesForKeys ([NullAllowed] string [] keys); #endif [Export ("changedValues")] @@ -915,23 +915,22 @@ namespace CoreData // headers say this is introduced in 7.0,10.9 but Xcode 7 API diff // indicates it's new in 9.0,10.11... going by the header value... - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [Export ("hasPersistentChangedValues")] bool HasPersistentChangedValues { get; } - [iOS (8,3), Mac (10,11)] + [iOS (8, 3), Mac (10, 11)] [Export ("objectIDsForRelationshipNamed:")] NSManagedObjectID [] GetObjectIDs (string relationshipName); } - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] - interface NSQueryGenerationToken : NSSecureCoding, NSCopying - { + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface NSQueryGenerationToken : NSSecureCoding, NSCopying { [Static, Export ("currentQueryGenerationToken", ArgumentSemantic.Strong)] NSQueryGenerationToken CurrentToken { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSManagedObjectContext : NSCoding @@ -946,7 +945,7 @@ namespace CoreData [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSManagedObjectContext (NSManagedObjectContextConcurrencyType)' instead.")] [Export ("init")] NativeHandle Constructor (); - + [NullAllowed] // by default this property is null [Export ("persistentStoreCoordinator", ArgumentSemantic.Retain)] NSPersistentStoreCoordinator PersistentStoreCoordinator { get; set; } @@ -967,7 +966,7 @@ namespace CoreData [Export ("executeFetchRequest:error:")] [return: NullAllowed] - NSObject[] ExecuteFetchRequest (NSFetchRequest request, out NSError error); + NSObject [] ExecuteFetchRequest (NSFetchRequest request, out NSError error); [Export ("countForFetchRequest:error:")] nuint CountForFetchRequest (NSFetchRequest request, out NSError error); @@ -1047,24 +1046,27 @@ namespace CoreData bool Save (out NSError error); #pragma warning disable 0109 // warning CS0109: The member 'NSManagedObjectContext.Lock()' does not hide an accessible member. The new keyword is not required. - [NoWatch][NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use a queue style context and 'PerformAndWait' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use a queue style context and 'PerformAndWait' instead.")] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use a queue style context and 'PerformAndWait' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a queue style context and 'PerformAndWait' instead.")] [Export ("lock")] new void Lock (); #pragma warning restore #pragma warning disable 0109 // warning CS0109: The member 'NSManagedObjectContext.Unlock()' does not hide an accessible member. The new keyword is not required. - [NoWatch][NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use a queue style context and 'PerformAndWait' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use a queue style context and 'PerformAndWait' instead.")] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use a queue style context and 'PerformAndWait' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a queue style context and 'PerformAndWait' instead.")] [Export ("unlock")] new void Unlock (); #pragma warning restore - [NoWatch][NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use a queue style context and 'Perform' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use a queue style context and 'Perform' instead.")] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use a queue style context and 'Perform' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use a queue style context and 'Perform' instead.")] [Export ("tryLock")] bool TryLock { get; } @@ -1081,7 +1083,7 @@ namespace CoreData IntPtr MergePolicy { get; set; } [Export ("obtainPermanentIDsForObjects:error:")] - bool ObtainPermanentIDsForObjects (NSManagedObject[] objects, out NSError error); + bool ObtainPermanentIDsForObjects (NSManagedObject [] objects, out NSError error); [Export ("mergeChangesFromContextDidSaveNotification:")] void MergeChangesFromContextDidSaveNotification (NSNotification notification); @@ -1119,12 +1121,12 @@ namespace CoreData [Notification ()] NSString WillSaveNotification { get; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("name")] string Name { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("executeRequest:error:")] [return: NullAllowed] NSPersistentStoreResult ExecuteRequest (NSPersistentStoreRequest request, out NSError error); @@ -1133,32 +1135,32 @@ namespace CoreData [return: NullAllowed] NSManagedObject GetExistingObject (NSManagedObjectID objectID, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("shouldDeleteInaccessibleFaults")] bool ShouldDeleteInaccessibleFaults { get; set; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("shouldHandleInaccessibleFault:forObjectID:triggeredByProperty:")] bool ShouldHandleInaccessibleFault (NSManagedObject fault, NSManagedObjectID oid, [NullAllowed] NSPropertyDescription property); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("mergeChangesFromRemoteContextSave:intoContexts:")] - void MergeChangesFromRemoteContextSave (NSDictionary changeNotificationData, NSManagedObjectContext[] contexts); + void MergeChangesFromRemoteContextSave (NSDictionary changeNotificationData, NSManagedObjectContext [] contexts); - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [NullAllowed, Export ("queryGenerationToken", ArgumentSemantic.Strong)] NSQueryGenerationToken QueryGenerationToken { get; } - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Export ("setQueryGenerationFromToken:error:")] bool SetQueryGenerationFromToken ([NullAllowed] NSQueryGenerationToken generation, out NSError error); - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Export ("automaticallyMergesChangesFromParent")] bool AutomaticallyMergesChangesFromParent { get; set; } - [iOS (8,3), Mac (10,11)] + [iOS (8, 3), Mac (10, 11)] [Export ("refreshAllObjects")] void RefreshAllObjects (); @@ -1167,17 +1169,17 @@ namespace CoreData string TransactionAuthor { get; set; } [Notification (typeof (NSManagedObjectsIdsChangedEventArgs))] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Field ("NSManagedObjectContextDidMergeChangesObjectIDsNotification")] NSString DidMergeChangesObjectIdsNotification { get; } [Notification (typeof (NSManagedObjectsIdsChangedEventArgs))] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Field ("NSManagedObjectContextDidSaveObjectIDsNotification")] NSString DidSaveObjectIdsNotification { get; } } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] interface NSManagedObjectsIdsChangedEventArgs { [Export ("NSDeletedObjectIDsKey")] NSSet DeletedObjectIds { get; } @@ -1215,7 +1217,7 @@ namespace CoreData [Export ("NSInvalidatedAllObjectsKey")] bool InvalidatedAllObjects { get; } } - + [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -URIRepresentation cannot be sent to an abstract object of class NSManagedObjectID: Create a concrete instance! [DisableDefaultCtor] @@ -1248,12 +1250,12 @@ namespace CoreData #if NET NSManagedObjectModel GetMergedModel ([NullAllowed] NSBundle[] bundles); #else - NSManagedObjectModel MergedModelFromBundles ([NullAllowed] NSBundle[] bundles); + NSManagedObjectModel MergedModelFromBundles ([NullAllowed] NSBundle [] bundles); #endif [Static, Export ("modelByMergingModels:")] [return: NullAllowed] - NSManagedObjectModel ModelByMergingModels ([NullAllowed] NSManagedObjectModel[] models); + NSManagedObjectModel ModelByMergingModels ([NullAllowed] NSManagedObjectModel [] models); [Export ("initWithContentsOfURL:")] NativeHandle Constructor (NSUrl url); @@ -1266,17 +1268,17 @@ namespace CoreData #endif [Export ("entities", ArgumentSemantic.Retain)] - NSEntityDescription[] Entities { get; set; } + NSEntityDescription [] Entities { get; set; } [Export ("configurations", ArgumentSemantic.Strong)] - string[] Configurations { get; } + string [] Configurations { get; } [Export ("entitiesForConfiguration:")] [return: NullAllowed] - string[] EntitiesForConfiguration ([NullAllowed] string configuration); + string [] EntitiesForConfiguration ([NullAllowed] string configuration); [Export ("setEntities:forConfiguration:")] - void SetEntities (NSEntityDescription[] entities, string configuration); + void SetEntities (NSEntityDescription [] entities, string configuration); [Export ("setFetchRequestTemplate:forName:")] void SetFetchRequestTemplate ([NullAllowed] NSFetchRequest fetchRequestTemplate, string name); @@ -1314,7 +1316,7 @@ namespace CoreData #elif NET NSManagedObjectModel GetMergedModel ([NullAllowed] NSBundle[] bundles, NSDictionary metadata); #else - NSManagedObjectModel MergedModelFromBundles ([NullAllowed] NSBundle[] bundles, NSDictionary metadata); + NSManagedObjectModel MergedModelFromBundles ([NullAllowed] NSBundle [] bundles, NSDictionary metadata); #endif [Static, Export ("modelByMergingModels:forStoreMetadata:")] @@ -1324,7 +1326,7 @@ namespace CoreData #elif NET NSManagedObjectModel GetModelByMerging (NSManagedObjectModel[] models, NSDictionary metadata); #else - NSManagedObjectModel ModelByMergingModels (NSManagedObjectModel[] models, NSDictionary metadata); + NSManagedObjectModel ModelByMergingModels (NSManagedObjectModel [] models, NSDictionary metadata); #endif [Export ("fetchRequestTemplatesByName", ArgumentSemantic.Copy)] @@ -1362,7 +1364,7 @@ namespace CoreData #if NET NSMappingModel GetMappingModel ([NullAllowed] NSBundle[] bundles, [NullAllowed] NSManagedObjectModel sourceModel, [NullAllowed] NSManagedObjectModel destinationModel); #else - NSMappingModel MappingModelFromBundles ([NullAllowed] NSBundle[] bundles, [NullAllowed] NSManagedObjectModel sourceModel, [NullAllowed] NSManagedObjectModel destinationModel); + NSMappingModel MappingModelFromBundles ([NullAllowed] NSBundle [] bundles, [NullAllowed] NSManagedObjectModel sourceModel, [NullAllowed] NSManagedObjectModel destinationModel); #endif [Static, Export ("inferredMappingModelForSourceModel:destinationModel:error:")] @@ -1374,7 +1376,7 @@ namespace CoreData [Export ("entityMappings", ArgumentSemantic.Retain)] [NullAllowed] - NSEntityMapping[] EntityMappings { get; set; } + NSEntityMapping [] EntityMappings { get; set; } [Export ("entityMappingsByName", ArgumentSemantic.Copy)] #if XAMCORE_5_0 @@ -1389,14 +1391,14 @@ namespace CoreData [DisableDefaultCtor] interface NSMergeConflict { [Export ("sourceObject", ArgumentSemantic.Retain)] - NSManagedObject SourceObject { get; } + NSManagedObject SourceObject { get; } [Export ("objectSnapshot", ArgumentSemantic.Retain)] [NullAllowed] #if XAMCORE_5_0 NSDictionary ObjectSnapshot { get; } #else - NSDictionary ObjectSnapshot { get; } + NSDictionary ObjectSnapshot { get; } #endif [Export ("cachedSnapshot", ArgumentSemantic.Retain)] @@ -1404,7 +1406,7 @@ namespace CoreData #if XAMCORE_5_0 NSDictionary CachedSnapshot { get; } #else - NSDictionary CachedSnapshot { get; } + NSDictionary CachedSnapshot { get; } #endif [Export ("persistedSnapshot", ArgumentSemantic.Retain)] @@ -1412,14 +1414,14 @@ namespace CoreData #if XAMCORE_5_0 NSDictionary PersistedSnapshot { get; } #else - NSDictionary PersistedSnapshot { get; } + NSDictionary PersistedSnapshot { get; } #endif [Export ("newVersionNumber")] - nuint NewVersionNumber { get; } + nuint NewVersionNumber { get; } [Export ("oldVersionNumber")] - nuint OldVersionNumber { get; } + nuint OldVersionNumber { get; } [DesignatedInitializer] [Export ("initWithSource:newVersion:oldVersion:cachedSnapshot:persistedSnapshot:")] @@ -1436,7 +1438,7 @@ namespace CoreData [DisableDefaultCtor] interface NSMergePolicy { [Export ("mergeType")] - NSMergePolicyType MergeType { get; } + NSMergePolicyType MergeType { get; } [DesignatedInitializer] [Export ("initWithMergeType:")] @@ -1449,31 +1451,31 @@ namespace CoreData bool ResolveConflictserror (NSMergeConflict [] list, out NSError error); #endif - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("resolveOptimisticLockingVersionConflicts:error:")] - bool ResolveOptimisticLockingVersionConflicts (NSMergeConflict[] list, out NSError error); + bool ResolveOptimisticLockingVersionConflicts (NSMergeConflict [] list, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("resolveConstraintConflicts:error:")] - bool ResolveConstraintConflicts (NSConstraintConflict[] list, out NSError error); + bool ResolveConstraintConflicts (NSConstraintConflict [] list, out NSError error); - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static, Export ("errorMergePolicy", ArgumentSemantic.Strong)] NSMergePolicy ErrorPolicy { get; } - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static, Export ("rollbackMergePolicy", ArgumentSemantic.Strong)] NSMergePolicy RollbackPolicy { get; } - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static, Export ("overwriteMergePolicy", ArgumentSemantic.Strong)] NSMergePolicy OverwritePolicy { get; } - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static, Export ("mergeByPropertyObjectTrumpMergePolicy", ArgumentSemantic.Strong)] NSMergePolicy MergeByPropertyObjectTrumpPolicy { get; } - [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10,12)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Static, Export ("mergeByPropertyStoreTrumpMergePolicy", ArgumentSemantic.Strong)] NSMergePolicy MergeByPropertyStoreTrumpPolicy { get; } } @@ -1517,10 +1519,10 @@ namespace CoreData void AssociateSourceInstance (NSManagedObject sourceInstance, NSManagedObject destinationInstance, NSEntityMapping entityMapping); [Export ("destinationInstancesForEntityMappingNamed:sourceInstances:")] - NSManagedObject[] DestinationInstancesForEntityMappingNamed (string mappingName, [NullAllowed] NSManagedObject[] sourceInstances); + NSManagedObject [] DestinationInstancesForEntityMappingNamed (string mappingName, [NullAllowed] NSManagedObject [] sourceInstances); [Export ("sourceInstancesForEntityMappingNamed:destinationInstances:")] - NSManagedObject[] SourceInstancesForEntityMappingNamed (string mappingName, [NullAllowed] NSManagedObject[] destinationInstances); + NSManagedObject [] SourceInstancesForEntityMappingNamed (string mappingName, [NullAllowed] NSManagedObject [] destinationInstances); [Export ("currentEntityMapping", ArgumentSemantic.Strong)] NSEntityMapping CurrentEntityMapping { get; } @@ -1541,10 +1543,9 @@ namespace CoreData } [Abstract] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface NSPersistentHistoryChange : NSCopying - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface NSPersistentHistoryChange : NSCopying { [Export ("changeID")] long ChangeId { get; } @@ -1573,24 +1574,23 @@ namespace CoreData [NullAllowed, Export ("fetchRequest")] NSFetchRequest FetchRequest { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("entityDescriptionWithContext:")] [return: NullAllowed] NSEntityDescription GetEntityDescription (NSManagedObjectContext context); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface NSPersistentHistoryToken : NSCopying //, NSSecureCoding TODO: The class does state that it supports the NSSecureCoding YET SupportsSecureCoding returns false, radar 32761925 { } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSPersistentStoreRequest))] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSPersistentStoreRequest))] [DisableDefaultCtor] - interface NSPersistentHistoryChangeRequest - { + interface NSPersistentHistoryChangeRequest { [Static] [Export ("fetchHistoryAfterDate:")] NSPersistentHistoryChangeRequest FetchHistoryAfter (NSDate date); @@ -1621,7 +1621,7 @@ namespace CoreData [NullAllowed, Export ("token", ArgumentSemantic.Strong)] NSPersistentHistoryToken Token { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("fetchHistoryWithFetchRequest:")] NSPersistentHistoryChangeRequest FetchHistory (NSFetchRequest fetchRequest); @@ -1631,10 +1631,9 @@ namespace CoreData NSFetchRequest FetchRequest { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSPersistentStoreResult))] - interface NSPersistentHistoryResult - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSPersistentStoreResult))] + interface NSPersistentHistoryResult { [NullAllowed] [Export ("result", ArgumentSemantic.Strong)] NSObject Result { get; } @@ -1644,15 +1643,14 @@ namespace CoreData } [Abstract] - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface NSPersistentHistoryTransaction : NSCopying - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface NSPersistentHistoryTransaction : NSCopying { [Export ("timestamp", ArgumentSemantic.Copy)] NSDate Timestamp { get; } [NullAllowed, Export ("changes", ArgumentSemantic.Copy)] - NSPersistentHistoryChange[] Changes { get; } + NSPersistentHistoryChange [] Changes { get; } [Export ("transactionNumber")] long TransactionNumber { get; } @@ -1678,7 +1676,7 @@ namespace CoreData [Export ("objectIDNotification")] NSNotification ObjectIdNotification { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("entityDescriptionWithContext:")] [return: NullAllowed] @@ -1696,18 +1694,17 @@ namespace CoreData } #if !WATCH - [NoWatch, NoTV, Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: NSCoreDataCoreSpotlightDelegate requires the use of the initializer initForStoreWithDescription:model: - interface NSCoreDataCoreSpotlightDelegate - { + interface NSCoreDataCoreSpotlightDelegate { [Notification] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("NSCoreDataCoreSpotlightDelegateIndexDidUpdateNotification")] NSString IndexDidUpdateNotification { get; } - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initForStoreWithDescription:coordinator:")] [DesignatedInitializer] NativeHandle Constructor (NSPersistentStoreDescription description, NSPersistentStoreCoordinator psc); @@ -1718,8 +1715,8 @@ namespace CoreData [NullAllowed, Export ("indexName")] string IndexName { get; } - [Deprecated (PlatformName.iOS, 15,0, message: "Use the constructor that takes a NSPersistentStoreCoordinator instead.")] - [Deprecated (PlatformName.MacOSX, 12,0, message: "Use the constructor that takes a NSPersistentStoreCoordinator instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the constructor that takes a NSPersistentStoreCoordinator instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the constructor that takes a NSPersistentStoreCoordinator instead.")] [Export ("initForStoreWithDescription:model:")] NativeHandle Constructor (NSPersistentStoreDescription description, NSManagedObjectModel model); @@ -1731,26 +1728,26 @@ namespace CoreData void ReindexAllSearchableItems (CSSearchableIndex searchableIndex, Action acknowledgementHandler); [Export ("searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:")] - void ReindexSearchableItems (CSSearchableIndex searchableIndex, string[] identifiers, Action acknowledgementHandler); + void ReindexSearchableItems (CSSearchableIndex searchableIndex, string [] identifiers, Action acknowledgementHandler); [Async] - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("deleteSpotlightIndexWithCompletionHandler:")] void DeleteSpotlightIndex (Action completionHandler); - [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("indexingEnabled")] bool IndexingEnabled { [Bind ("isIndexingEnabled")] get; } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("startSpotlightIndexing")] void StartSpotlightIndexing (); - [NoWatch, NoTV, Mac (12,0), iOS (15,0),MacCatalyst (15,0)] - [Export ("stopSpotlightIndexing")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [Export ("stopSpotlightIndexing")] void StopSpotlightIndexing (); } -#endif +#endif // NSPersistentStore is an abstract type according to Apple's documentation, but Apple // also have internal subclasses of NSPersistentStore, and in those cases our closest @@ -1786,7 +1783,7 @@ namespace CoreData [DesignatedInitializer] [Export ("initWithPersistentStoreCoordinator:configurationName:URL:options:")] NativeHandle Constructor ([NullAllowed] NSPersistentStoreCoordinator root, [NullAllowed] string name, NSUrl url, [NullAllowed] NSDictionary options); - + [Export ("loadMetadata:")] bool LoadMetadata (out NSError error); @@ -1846,7 +1843,7 @@ namespace CoreData NSString StoreRemoteChangeNotification { get; } } - + interface NSPersistentStoreRemoteChangeEventArgs { [Export ("NSStoreUUIDKey")] NSUuid Uuid { get; } @@ -1855,14 +1852,13 @@ namespace CoreData string Url { get; } [Export ("NSPersistentHistoryTokenKey")] - NSPersistentHistoryToken PersistentHistoryTracking {get; } + NSPersistentHistoryToken PersistentHistoryTracking { get; } } - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSPersistentStoreDescription : NSCopying - { + interface NSPersistentStoreDescription : NSCopying { [Static] [Export ("persistentStoreDescriptionWithURL:")] NSPersistentStoreDescription GetPersistentStoreDescription (NSUrl Url); @@ -1912,12 +1908,11 @@ namespace CoreData [NullAllowed, Export ("cloudKitContainerOptions", ArgumentSemantic.Strong)] NSPersistentCloudKitContainerOptions CloudKitContainerOptions { get; set; } } - - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] - [BaseType (typeof(NSObject))] + + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSPersistentContainer - { + interface NSPersistentContainer { [Static] [Export ("persistentContainerWithName:")] NSPersistentContainer GetPersistentContainer (string name); @@ -1943,7 +1938,7 @@ namespace CoreData NSPersistentStoreCoordinator PersistentStoreCoordinator { get; } [Export ("persistentStoreDescriptions", ArgumentSemantic.Copy)] - NSPersistentStoreDescription[] PersistentStoreDescriptions { get; set; } + NSPersistentStoreDescription [] PersistentStoreDescriptions { get; set; } [Export ("initWithName:")] NativeHandle Constructor (string name); @@ -1981,25 +1976,25 @@ namespace CoreData [Static, Export ("registerStoreClass:forStoreType:")] void RegisterStoreClass ([NullAllowed] Class storeClass, NSString storeType); - [Deprecated (PlatformName.iOS, 9, 0, message : "Use the method that takes an out NSError parameter.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use the method that takes an out NSError parameter.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use the method that takes an out NSError parameter.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use the method that takes an out NSError parameter.")] [Static, Export ("metadataForPersistentStoreOfType:URL:error:")] [return: NullAllowed] NSDictionary MetadataForPersistentStoreOfType ([NullAllowed] NSString storeType, NSUrl url, out NSError error); - - [iOS (7,0)] + + [iOS (7, 0)] [Mac (10, 9)] [Static, Export ("metadataForPersistentStoreOfType:URL:options:error:")] [return: NullAllowed] NSDictionary GetMetadata (string storeType, NSUrl url, [NullAllowed] NSDictionary options, out NSError error); - [Deprecated (PlatformName.iOS, 9, 0, message : "Use the method that takes an 'out NSError' parameter.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use the method that takes an 'out NSError' parameter.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use the method that takes an 'out NSError' parameter.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use the method that takes an 'out NSError' parameter.")] [Static, Export ("setMetadata:forPersistentStoreOfType:URL:error:")] bool SetMetadata ([NullAllowed] NSDictionary metadata, [NullAllowed] NSString storeType, NSUrl url, out NSError error); - - [iOS (7,0)] - [Mac (10,9)] + + [iOS (7, 0)] + [Mac (10, 9)] [Static, Export ("setMetadata:forPersistentStoreOfType:URL:options:error:")] bool SetMetadata ([NullAllowed] NSDictionary metadata, string storeType, NSUrl url, [NullAllowed] NSDictionary options, out NSError error); @@ -2027,7 +2022,7 @@ namespace CoreData NSManagedObjectModel ManagedObjectModel { get; } [Export ("persistentStores", ArgumentSemantic.Strong)] - NSPersistentStore[] PersistentStores { get; } + NSPersistentStore [] PersistentStores { get; } [Export ("persistentStoreForURL:")] [return: NullAllowed] @@ -2046,8 +2041,8 @@ namespace CoreData #else NSPersistentStore AddPersistentStoreWithType (NSString storeType, [NullAllowed] string configuration, [NullAllowed] NSUrl storeUrl, [NullAllowed] NSDictionary options, out NSError error); #endif - - [Watch (3,0), TV (10,0), iOS (10,0), Mac (10,12)] + + [Watch (3, 0), TV (10, 0), iOS (10, 0), Mac (10, 12)] [Export ("addPersistentStoreWithDescription:completionHandler:")] [Async] void AddPersistentStore (NSPersistentStoreDescription storeDescription, Action block); @@ -2064,7 +2059,8 @@ namespace CoreData NSManagedObjectID ManagedObjectIDForURIRepresentation (NSUrl url); #pragma warning disable 0109 // warning CS0109: The member 'NSManagedObjectContext.Lock()' does not hide an accessible member. The new keyword is not required. - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'PerformAndWait' instead.")] [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'PerformAndWait' instead.")] [Export ("lock")] @@ -2072,20 +2068,25 @@ namespace CoreData #pragma warning restore #pragma warning disable 0109 // warning CS0109: The member 'NSManagedObjectContext.Unlock()' does not hide an accessible member. The new keyword is not required. - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'PerformAndWait' instead.")] [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'PerformAndWait' instead.")] [Export ("unlock")] new void Unlock (); #pragma warning restore - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Perform' instead.")] [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Perform' instead.")] [Export ("tryLock")] bool TryLock { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 5)] [Static, Export ("metadataForPersistentStoreWithURL:error:")] [return: NullAllowed] @@ -2094,18 +2095,27 @@ namespace CoreData [Field ("NSSQLiteStoreType")] NSString SQLiteStoreType { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSXMLStoreType")] NSString XMLStoreType { get; } [Field ("NSBinaryStoreType")] NSString BinaryStoreType { get; } - [Watch (4,0)][TV (11,0)][Mac (10,13)][iOS (11,0)] + [Watch (4, 0)] + [TV (11, 0)] + [Mac (10, 13)] + [iOS (11, 0)] [Field ("NSBinaryStoreSecureDecodingClasses")] NSString BinaryStoreSecureDecodingClasses { get; } - [Watch (4,0)][TV (11,0)][Mac (10,13)][iOS (11,0)] + [Watch (4, 0)] + [TV (11, 0)] + [Mac (10, 13)] + [iOS (11, 0)] [Field ("NSBinaryStoreInsecureDecodingCompatibilityOption")] NSString BinaryStoreInsecureDecodingCompatibilityOption { get; } @@ -2127,7 +2137,10 @@ namespace CoreData [Field ("NSReadOnlyPersistentStoreOption")] NSString ReadOnlyPersistentStoreOption { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSValidateXMLStoreOption")] NSString ValidateXMLStoreOption { get; } @@ -2167,11 +2180,11 @@ namespace CoreData [Notification] [Field ("NSPersistentStoreCoordinatorStoresDidChangeNotification")] NSString StoresDidChangeNotification { get; } - + [Notification] [Field ("NSPersistentStoreCoordinatorWillRemoveStoreNotification")] NSString WillRemoveStoreNotification { get; } - + // 5.0 [Export ("executeRequest:withContext:error:")] [return: NullAllowed] @@ -2181,18 +2194,21 @@ namespace CoreData NSObject ExecuteRequestwithContexterror (NSPersistentStoreRequest request, NSManagedObjectContext context, out NSError error); #endif - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Notification] [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] [Field ("NSPersistentStoreDidImportUbiquitousContentChangesNotification")] NSString DidImportUbiquitousContentChangesNotification { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] [Field ("NSPersistentStoreUbiquitousContentNameKey")] NSString PersistentStoreUbiquitousContentNameKey { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] [Field ("NSPersistentStoreUbiquitousContentURLKey")] #if NET @@ -2207,42 +2223,48 @@ namespace CoreData // 7.0 - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Field ("NSPersistentStoreUbiquitousPeerTokenOption")] NSString PersistentStoreUbiquitousPeerTokenOption { get; } - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Static] [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] [Deprecated (PlatformName.MacOSX, 10, 12, message: "Please see the release notes and Core Data documentation.")] [Export ("removeUbiquitousContentAndPersistentStoreAtURL:options:error:")] bool RemoveUbiquitousContentAndPersistentStore (NSUrl storeUrl, [NullAllowed] NSDictionary options, out NSError error); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Notification (typeof (NSPersistentStoreCoordinatorStoreChangeEventArgs))] [Field ("NSPersistentStoreCoordinatorStoresWillChangeNotification")] NSString StoresWillChangeNotification { get; } - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Field ("NSPersistentStoreRebuildFromUbiquitousContentOption")] NSString RebuildFromUbiquitousContentOption { get; } - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Field ("NSPersistentStoreRemoveUbiquitousMetadataOption")] NSString RemoveUbiquitousMetadataOption { get; } - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Field ("NSPersistentStoreUbiquitousContainerIdentifierKey")] [Obsolete ("Use 'UbiquitousContainerIdentifierKey' instead.")] NSString eUbiquitousContainerIdentifierKey { get; } - [NoWatch][NoTV] - [iOS (7,0), Mac (10, 9)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (10, 9)] [Field ("NSPersistentStoreUbiquitousContainerIdentifierKey")] NSString UbiquitousContainerIdentifierKey { get; } @@ -2256,35 +2278,36 @@ namespace CoreData [Field ("NSPersistentHistoryTrackingKey")] NSString HistoryTrackingKey { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed, Export ("name")] string Name { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("performBlock:")] void Perform (Action code); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("performBlockAndWait:")] void PerformAndWait (Action code); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("destroyPersistentStoreAtURL:withType:options:error:")] bool DestroyPersistentStore (NSUrl url, string storeType, [NullAllowed] NSDictionary options, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("replacePersistentStoreAtURL:destinationOptions:withPersistentStoreFromURL:sourceOptions:storeType:error:")] bool ReplacePersistentStore (NSUrl destinationUrl, [NullAllowed] NSDictionary destinationOptions, NSUrl sourceUrl, [NullAllowed] NSDictionary sourceOptions, string storeType, out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("currentPersistentHistoryTokenFromStores:")] [return: NullAllowed] - NSPersistentHistoryToken GetCurrentPersistentHistoryToken ([NullAllowed] NSObject[] stores); + NSPersistentHistoryToken GetCurrentPersistentHistoryToken ([NullAllowed] NSObject [] stores); } interface NSPersistentStoreCoordinatorStoreChangeEventArgs { - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("NSPersistentStoreUbiquitousTransitionTypeKey")] [iOS (7, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Please see the release notes and Core Data documentation.")] @@ -2302,7 +2325,7 @@ namespace CoreData NSPersistentStore [] AffectedStores { get; set; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSPersistentStoreAsynchronousResult))] interface NSAsynchronousFetchResult { [Export ("fetchRequest", ArgumentSemantic.Retain)] @@ -2317,13 +2340,13 @@ namespace CoreData #endif } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] interface NSPersistentStoreResult { } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSPersistentStoreResult))] interface NSBatchUpdateResult { [Export ("result", ArgumentSemantic.Retain)] @@ -2333,8 +2356,8 @@ namespace CoreData [Export ("resultType")] NSBatchUpdateRequestResultType ResultType { get; } } - - [iOS (8,0), Mac (10,10)] + + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSPersistentStoreResult))] interface NSPersistentStoreAsynchronousResult { [Export ("managedObjectContext", ArgumentSemantic.Retain)] @@ -2351,8 +2374,8 @@ namespace CoreData [Export ("cancel")] void Cancel (); } - - [iOS (8,0), Mac (10,10)] + + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSPersistentStoreRequest))] interface NSAsynchronousFetchRequest { [Export ("initWithFetchRequest:completionBlock:")] @@ -2383,22 +2406,22 @@ namespace CoreData bool Transient { [Bind ("isTransient")] get; set; } [Export ("validationPredicates")] - NSPredicate[] ValidationPredicates { get; } + NSPredicate [] ValidationPredicates { get; } [Export ("validationWarnings")] - string[] ValidationWarnings { get; } + string [] ValidationWarnings { get; } [Export ("setValidationPredicates:withValidationWarnings:")] - void SetValidationPredicates ([NullAllowed] NSPredicate[] validationPredicates, [NullAllowed] string[] validationWarnings); + void SetValidationPredicates ([NullAllowed] NSPredicate [] validationPredicates, [NullAllowed] string [] validationWarnings); [NullAllowed, Export ("userInfo", ArgumentSemantic.Retain)] NSDictionary UserInfo { get; set; } [Export ("indexed")] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message : "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'NSEntityDescription.Indexes' instead.")] bool Indexed { [Bind ("isIndexed")] get; set; } [Export ("versionHash")] @@ -2414,12 +2437,12 @@ namespace CoreData // 5.0 [Export ("indexedBySpotlight")] - bool IndexedBySpotlight { [Bind ("isIndexedBySpotlight")]get; set; } + bool IndexedBySpotlight { [Bind ("isIndexedBySpotlight")] get; set; } [Export ("storedInExternalRecord")] - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'CoreSpotlight' integration instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'CoreSpotlight' integration instead.")] - bool StoredInExternalRecord { [Bind ("isStoredInExternalRecord")]get; set; } + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CoreSpotlight' integration instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CoreSpotlight' integration instead.")] + bool StoredInExternalRecord { [Bind ("isStoredInExternalRecord")] get; set; } } [BaseType (typeof (NSObject))] @@ -2466,7 +2489,7 @@ namespace CoreData // 5.0 [Export ("ordered")] - bool Ordered { [Bind ("isOrdered")]get; set; } + bool Ordered { [Bind ("isOrdered")] get; set; } } [BaseType (typeof (NSPersistentStoreRequest))] @@ -2507,7 +2530,7 @@ namespace CoreData #endif } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSPersistentStoreRequest))] interface NSBatchUpdateRequest { [Export ("initWithEntityName:")] @@ -2542,17 +2565,16 @@ namespace CoreData NSBatchUpdateRequest BatchUpdateRequestWithEntityName (string entityName); } - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSPersistentStoreRequest))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSPersistentStoreRequest))] [DisableDefaultCtor] - interface NSBatchDeleteRequest - { + interface NSBatchDeleteRequest { [Export ("initWithFetchRequest:")] [DesignatedInitializer] NativeHandle Constructor (NSFetchRequest fetch); [Export ("initWithObjectIDs:")] - NativeHandle Constructor (NSManagedObjectID[] objects); + NativeHandle Constructor (NSManagedObjectID [] objects); [Export ("resultType", ArgumentSemantic.Assign)] NSBatchDeleteRequestResultType ResultType { get; set; } @@ -2561,10 +2583,9 @@ namespace CoreData NSFetchRequest FetchRequest { get; } } - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSPersistentStoreResult))] - interface NSBatchDeleteResult - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSPersistentStoreResult))] + interface NSBatchDeleteResult { [NullAllowed, Export ("result", ArgumentSemantic.Strong)] NSObject Result { get; } @@ -2572,20 +2593,19 @@ namespace CoreData NSBatchDeleteRequestResultType ResultType { get; } } - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSObject))] - interface NSConstraintConflict - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface NSConstraintConflict { [Export ("initWithConstraint:databaseObject:databaseSnapshot:conflictingObjects:conflictingSnapshots:")] [DesignatedInitializer] - NativeHandle Constructor (string[] contraint, [NullAllowed] NSManagedObject databaseObject, [NullAllowed] NSDictionary databaseSnapshot, NSManagedObject[] conflictingObjects, NSObject[] conflictingSnapshots); + NativeHandle Constructor (string [] contraint, [NullAllowed] NSManagedObject databaseObject, [NullAllowed] NSDictionary databaseSnapshot, NSManagedObject [] conflictingObjects, NSObject [] conflictingSnapshots); #if MONOMAC [Export ("constraint", ArgumentSemantic.Copy)] #else [Export ("constraint", ArgumentSemantic.Retain)] #endif - string[] Constraint { get; } + string [] Constraint { get; } #if MONOMAC [Export ("constraintValues", ArgumentSemantic.Copy)] @@ -2605,14 +2625,14 @@ namespace CoreData #else [Export ("conflictingObjects", ArgumentSemantic.Retain)] #endif - NSManagedObject[] ConflictingObjects { get; } + NSManagedObject [] ConflictingObjects { get; } #if MONOMAC [Export ("conflictingSnapshots", ArgumentSemantic.Copy)] #else [Export ("conflictingSnapshots", ArgumentSemantic.Retain)] #endif - NSDictionary[] ConflictingSnapshots { get; } + NSDictionary [] ConflictingSnapshots { get; } } #if XAMCORE_5_0 @@ -2622,32 +2642,32 @@ namespace CoreData #endif delegate bool NSBatchInsertRequestManagedObjectHandler (NSManagedObject managedObject); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSPersistentStoreRequest))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSPersistentStoreRequest))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: -init results in undefined behavior for NSBatchInsertRequest interface NSBatchInsertRequest { - [Deprecated (PlatformName.iOS, 14,0, message: "Use another constructor instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use another constructor instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use another constructor instead.")] - [Deprecated (PlatformName.MacOSX, 10,16, message: "Use another constructor instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use another constructor instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use another constructor instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use another constructor instead.")] + [Deprecated (PlatformName.MacOSX, 10, 16, message: "Use another constructor instead.")] [NoMacCatalyst] [Export ("init")] NativeHandle Constructor (); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("initWithEntity:dictionaryHandler:")] NativeHandle Constructor (NSEntityDescription entity, NSBatchInsertRequestDictionaryHandler handler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("initWithEntity:managedObjectHandler:")] NativeHandle Constructor (NSEntityDescription entity, NSBatchInsertRequestManagedObjectHandler handler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("initWithEntityName:dictionaryHandler:")] NativeHandle Constructor (string entityName, NSBatchInsertRequestDictionaryHandler handler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("initWithEntityName:managedObjectHandler:")] NativeHandle Constructor (string entityName, NSBatchInsertRequestManagedObjectHandler handler); @@ -2658,22 +2678,22 @@ namespace CoreData NSEntityDescription Entity { get; } [NullAllowed, Export ("objectsToInsert", ArgumentSemantic.Copy)] - NSDictionary[] ObjectsToInsert { get; set; } + NSDictionary [] ObjectsToInsert { get; set; } [Export ("resultType", ArgumentSemantic.Assign)] NSBatchInsertRequestResultType ResultType { get; set; } [Static] [Export ("batchInsertRequestWithEntityName:objects:")] - NSBatchInsertRequest BatchInsertRequest (string entityName, NSDictionary[] dictionaries); + NSBatchInsertRequest BatchInsertRequest (string entityName, NSDictionary [] dictionaries); [DesignatedInitializer] [Export ("initWithEntityName:objects:")] - NativeHandle Constructor (string entityName, NSDictionary[] dictionaries); + NativeHandle Constructor (string entityName, NSDictionary [] dictionaries); [DesignatedInitializer] [Export ("initWithEntity:objects:")] - NativeHandle Constructor (NSEntityDescription entity, NSDictionary[] dictionaries); + NativeHandle Constructor (NSEntityDescription entity, NSDictionary [] dictionaries); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [NullAllowed, Export ("dictionaryHandler", ArgumentSemantic.Copy)] @@ -2683,19 +2703,19 @@ namespace CoreData [NullAllowed, Export ("managedObjectHandler", ArgumentSemantic.Copy)] NSBatchInsertRequestManagedObjectHandler ManagedObjectHandler { get; set; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("batchInsertRequestWithEntityName:dictionaryHandler:")] NSBatchInsertRequest CreateBatchInsertRequest (string entityName, NSBatchInsertRequestDictionaryHandler handler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("batchInsertRequestWithEntityName:managedObjectHandler:")] NSBatchInsertRequest CreateBatchInsertRequest (string entityName, NSBatchInsertRequestManagedObjectHandler handler); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSPersistentStoreResult))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSPersistentStoreResult))] interface NSBatchInsertResult { [NullAllowed, Export ("result", ArgumentSemantic.Strong)] NSObject Result { get; } @@ -2704,30 +2724,30 @@ namespace CoreData NSBatchInsertRequestResultType ResultType { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSAttributeDescription))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSAttributeDescription))] interface NSDerivedAttributeDescription : NSSecureCoding { [NullAllowed, Export ("derivationExpression", ArgumentSemantic.Strong)] NSExpression DerivationExpression { get; set; } } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSPersistentCloudKitContainerShareManagedObjectsHandler (NSSet sharedObjectIds, CKShare share, CKContainer container, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSPersistentCloudKitContainerFetchParticipantsMatchingLookupInfosHandler (NSArray fetchedParticipants, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSPersistentCloudKitContainerPersistUpdatedShareHandler (CKShare persistedShare, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSPersistentCloudKitContainerPurgeObjectsAndRecordsInZoneHandler (CKRecordZoneID purgedZoneId, NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSPersistentCloudKitContainerAcceptShareInvitationsHandler (NSArray acceptedShareMetadatas, NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSPersistentContainer))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSPersistentContainer))] [DisableDefaultCtor] interface NSPersistentCloudKitContainer { @@ -2743,67 +2763,67 @@ namespace CoreData CKRecord GetRecord (NSManagedObjectID managedObjectId); [Export ("recordsForManagedObjectIDs:")] - NSDictionary GetRecords (NSManagedObjectID[] managedObjectIds); + NSDictionary GetRecords (NSManagedObjectID [] managedObjectIds); [Export ("recordIDForManagedObjectID:")] [return: NullAllowed] CKRecordID GetRecordId (NSManagedObjectID managedObjectId); [Export ("recordIDsForManagedObjectIDs:")] - NSDictionary GetRecordIds (NSManagedObjectID[] managedObjectIds); + NSDictionary GetRecordIds (NSManagedObjectID [] managedObjectIds); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("canUpdateRecordForManagedObjectWithID:")] bool CanUpdateRecord (NSManagedObjectID objectID); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("canDeleteRecordForManagedObjectWithID:")] bool CanDeleteRecord (NSManagedObjectID objectID); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("canModifyManagedObjectsInStore:")] bool CanModifyManagedObjects (NSPersistentStore store); // NSPersistentCloudKitContainer_Sharing [Async (ResultTypeName = "NSPersistentCloudKitContainerAcceptShareInvitationsResult")] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("acceptShareInvitationsFromMetadata:intoPersistentStore:completion:")] - void AcceptShareInvitations (CKShareMetadata[] metadata, NSPersistentStore persistentStore, [NullAllowed] NSPersistentCloudKitContainerAcceptShareInvitationsHandler handler); + void AcceptShareInvitations (CKShareMetadata [] metadata, NSPersistentStore persistentStore, [NullAllowed] NSPersistentCloudKitContainerAcceptShareInvitationsHandler handler); [Async (ResultTypeName = "NSPersistentCloudKitContainerPurgeObjectsAndRecordsInZone")] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("purgeObjectsAndRecordsInZoneWithID:inPersistentStore:completion:")] - void PurgeObjectsAndRecordsInZone (CKRecordZoneID zoneId, [NullAllowed] NSPersistentStore persistentStore, [NullAllowed] NSPersistentCloudKitContainerPurgeObjectsAndRecordsInZoneHandler handler); + void PurgeObjectsAndRecordsInZone (CKRecordZoneID zoneId, [NullAllowed] NSPersistentStore persistentStore, [NullAllowed] NSPersistentCloudKitContainerPurgeObjectsAndRecordsInZoneHandler handler); [Async (ResultTypeName = "NSPersistentCloudKitContainerPersistUpdatedShareResult")] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("persistUpdatedShare:inPersistentStore:completion:")] void PersistUpdatedShare (CKShare share, NSPersistentStore persistentStore, [NullAllowed] NSPersistentCloudKitContainerPersistUpdatedShareHandler handler); [Async (ResultTypeName = "NSPersistentCloudKitContainerFetchParticipantsMatchingLookupInfosResult")] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:")] - void FetchParticipantsMatchingLookupInfos (CKUserIdentityLookupInfo[] lookupInfos, NSPersistentStore persistentStore, NSPersistentCloudKitContainerFetchParticipantsMatchingLookupInfosHandler handler); + void FetchParticipantsMatchingLookupInfos (CKUserIdentityLookupInfo [] lookupInfos, NSPersistentStore persistentStore, NSPersistentCloudKitContainerFetchParticipantsMatchingLookupInfosHandler handler); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("fetchSharesMatchingObjectIDs:error:")] [return: NullAllowed] - NSDictionary FetchSharesMatchingObjectIds (NSManagedObjectID[] objectIDs, [NullAllowed] out NSError error); + NSDictionary FetchSharesMatchingObjectIds (NSManagedObjectID [] objectIDs, [NullAllowed] out NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("fetchSharesInPersistentStore:error:")] [return: NullAllowed] - CKShare[] FetchSharesInPersistentStore ([NullAllowed] NSPersistentStore persistentStore, [NullAllowed] out NSError error); + CKShare [] FetchSharesInPersistentStore ([NullAllowed] NSPersistentStore persistentStore, [NullAllowed] out NSError error); [Async (ResultTypeName = "NSPersistentCloudKitContainerShareManagedObjectsResult")] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("shareManagedObjects:toShare:completion:")] - void ShareManagedObjects (NSManagedObject[] managedObjects, [NullAllowed] CKShare share, NSPersistentCloudKitContainerShareManagedObjectsHandler handler); + void ShareManagedObjects (NSManagedObject [] managedObjects, [NullAllowed] CKShare share, NSPersistentCloudKitContainerShareManagedObjectsHandler handler); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSPersistentCloudKitContainerOptions { [Export ("containerIdentifier")] @@ -2818,9 +2838,9 @@ namespace CoreData CKDatabaseScope DatabaseScope { get; set; } } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSPersistentCloudKitContainerEvent : NSCopying { [Export ("identifier", ArgumentSemantic.Strong)] @@ -2852,8 +2872,8 @@ namespace CoreData NSString UserInfoKey { get; } } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSPersistentStoreRequest))] interface NSPersistentCloudKitContainerEventRequest { [Export ("resultType", ArgumentSemantic.Assign)] @@ -2876,9 +2896,9 @@ namespace CoreData NSFetchRequest FetchRequest (); } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] - [BaseType (typeof(NSPersistentStoreResult))] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSPersistentStoreResult))] [DisableDefaultCtor] interface NSPersistentCloudKitContainerEventResult { [NullAllowed, Export ("result", ArgumentSemantic.Strong)] diff --git a/src/corefoundation.cs b/src/corefoundation.cs index 1f1d063157..2fcaef2727 100644 --- a/src/corefoundation.cs +++ b/src/corefoundation.cs @@ -13,26 +13,32 @@ namespace CoreFoundation { [Partial] interface CFAllocator { - [Internal][Field ("kCFAllocatorDefault")] + [Internal] + [Field ("kCFAllocatorDefault")] IntPtr default_ptr { get; } - [Internal][Field ("kCFAllocatorSystemDefault")] + [Internal] + [Field ("kCFAllocatorSystemDefault")] IntPtr system_default_ptr { get; } - [Internal][Field ("kCFAllocatorMalloc")] + [Internal] + [Field ("kCFAllocatorMalloc")] IntPtr malloc_ptr { get; } - [Internal][Field ("kCFAllocatorMallocZone")] + [Internal] + [Field ("kCFAllocatorMallocZone")] IntPtr malloc_zone_ptr { get; } - [Internal][Field ("kCFAllocatorNull")] + [Internal] + [Field ("kCFAllocatorNull")] IntPtr null_ptr { get; } } [Partial] interface CFArray { - [Internal][Field ("kCFNull")] + [Internal] + [Field ("kCFNull")] IntPtr /* CFNullRef */ _CFNullHandle { get; } } @@ -124,15 +130,14 @@ namespace CoreFoundation { StripDiacritics, } - [Mac (10,12), iOS (10,0), Watch (3,0), TV (10,0)] + [Mac (10, 12), iOS (10, 0), Watch (3, 0), TV (10, 0)] [Introduced (PlatformName.MacCatalyst, 13, 0)] - public enum OSLogLevel : byte - { + public enum OSLogLevel : byte { // These values must match the os_log_type_t enum in . Default = 0x00, - Info = 0x01, - Debug = 0x02, - Error = 0x10, - Fault = 0x11, + Info = 0x01, + Debug = 0x02, + Error = 0x10, + Fault = 0x11, } } diff --git a/src/coregraphics.cs b/src/coregraphics.cs index 7ff056cf9f..e8b0e0e67b 100644 --- a/src/coregraphics.cs +++ b/src/coregraphics.cs @@ -13,53 +13,68 @@ namespace CoreGraphics { [Partial] interface CGPDFPageInfo { - [Internal][Field ("kCGPDFContextMediaBox")] + [Internal] + [Field ("kCGPDFContextMediaBox")] IntPtr kCGPDFContextMediaBox { get; } - [Internal][Field ("kCGPDFContextCropBox")] + [Internal] + [Field ("kCGPDFContextCropBox")] IntPtr kCGPDFContextCropBox { get; } - [Internal][Field ("kCGPDFContextBleedBox")] + [Internal] + [Field ("kCGPDFContextBleedBox")] IntPtr kCGPDFContextBleedBox { get; } - [Internal][Field ("kCGPDFContextTrimBox")] + [Internal] + [Field ("kCGPDFContextTrimBox")] IntPtr kCGPDFContextTrimBox { get; } - [Internal][Field ("kCGPDFContextArtBox")] + [Internal] + [Field ("kCGPDFContextArtBox")] IntPtr kCGPDFContextArtBox { get; } } [Partial] interface CGPDFInfo { - [Internal][Field ("kCGPDFContextTitle")] + [Internal] + [Field ("kCGPDFContextTitle")] IntPtr kCGPDFContextTitle { get; } - [Internal][Field ("kCGPDFContextAuthor")] + [Internal] + [Field ("kCGPDFContextAuthor")] IntPtr kCGPDFContextAuthor { get; } - [Internal][Field ("kCGPDFContextSubject")] + [Internal] + [Field ("kCGPDFContextSubject")] IntPtr kCGPDFContextSubject { get; } - [Internal][Field ("kCGPDFContextKeywords")] + [Internal] + [Field ("kCGPDFContextKeywords")] IntPtr kCGPDFContextKeywords { get; } - [Internal][Field ("kCGPDFContextCreator")] + [Internal] + [Field ("kCGPDFContextCreator")] IntPtr kCGPDFContextCreator { get; } - [Internal][Field ("kCGPDFContextOwnerPassword")] + [Internal] + [Field ("kCGPDFContextOwnerPassword")] IntPtr kCGPDFContextOwnerPassword { get; } - [Internal][Field ("kCGPDFContextUserPassword")] + [Internal] + [Field ("kCGPDFContextUserPassword")] IntPtr kCGPDFContextUserPassword { get; } - [Internal][Field ("kCGPDFContextEncryptionKeyLength")] + [Internal] + [Field ("kCGPDFContextEncryptionKeyLength")] IntPtr kCGPDFContextEncryptionKeyLength { get; } - [Internal][Field ("kCGPDFContextAllowsPrinting")] + [Internal] + [Field ("kCGPDFContextAllowsPrinting")] IntPtr kCGPDFContextAllowsPrinting { get; } - [Internal][Field ("kCGPDFContextAllowsCopying")] + [Internal] + [Field ("kCGPDFContextAllowsCopying")] IntPtr kCGPDFContextAllowsCopying { get; } #if false @@ -73,23 +88,35 @@ namespace CoreGraphics { kCGPDFContextOutputIntents; #endif - [Mac (10,13)][iOS (11,0)][TV (11,0)][Watch (4,0)] - [Internal][Field ("kCGPDFContextAccessPermissions")] + [Mac (10, 13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Internal] + [Field ("kCGPDFContextAccessPermissions")] IntPtr kCGPDFContextAccessPermissions { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] - [Internal][Field ("kCGPDFContextCreateLinearizedPDF")] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] + [Internal] + [Field ("kCGPDFContextCreateLinearizedPDF")] IntPtr kCGPDFContextCreateLinearizedPDF { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] - [Internal][Field ("kCGPDFContextCreatePDFA")] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] + [Internal] + [Field ("kCGPDFContextCreatePDFA")] IntPtr kCGPDFContextCreatePDFA { get; } } [Static] - [iOS (9,0)] + [iOS (9, 0)] interface CGColorSpaceNames { [Field ("kCGColorSpaceGenericGray")] NSString GenericGray { get; } @@ -100,8 +127,9 @@ namespace CoreGraphics { [Field ("kCGColorSpaceGenericCMYK")] NSString GenericCmyk { get; } - [iOS (9,3)][Mac(10,11,2)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11, 2)] + [TV (9, 2)] [Field ("kCGColorSpaceDisplayP3")] NSString DisplayP3 { get; } @@ -117,192 +145,236 @@ namespace CoreGraphics { [Field ("kCGColorSpaceGenericGrayGamma2_2")] NSString GenericGrayGamma2_2 { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("kCGColorSpaceGenericXYZ")] NSString GenericXyz { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("kCGColorSpaceACESCGLinear")] NSString AcesCGLinear { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("kCGColorSpaceITUR_709")] NSString ItuR_709 { get; } - [Mac (12,1), iOS (15,2), TV (15,2), Watch (8,3)] + [Mac (12, 1), iOS (15, 2), TV (15, 2), Watch (8, 3)] [Field ("kCGColorSpaceITUR_709_PQ")] NSString ItuR_709_PQ { get; } - [Mac (13,0), iOS (16,0), TV (16,0), MacCatalyst (16,0), Watch (9,0)] + [Mac (13, 0), iOS (16, 0), TV (16, 0), MacCatalyst (16, 0), Watch (9, 0)] [Field ("kCGColorSpaceITUR_709_HLG")] NSString ItuR_709_Hlg { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("kCGColorSpaceITUR_2020")] NSString ItuR_2020 { get; } - [Mac (12,1), iOS (15,2), TV (15,2), Watch (8,3)] + [Mac (12, 1), iOS (15, 2), TV (15, 2), Watch (8, 3)] [Field ("kCGColorSpaceITUR_2020_sRGBGamma")] NSString ItuR_2020_sRgbGamma { get; } - [iOS (9,3)][Mac (10,11)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11)] + [TV (9, 2)] [Field ("kCGColorSpaceROMMRGB")] NSString RommRgb { get; } - [iOS (9,3)][Mac (10,11)] - [TV (9,2)] + [iOS (9, 3)] + [Mac (10, 11)] + [TV (9, 2)] [Field ("kCGColorSpaceDCIP3")] NSString Dcip3 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceExtendedSRGB")] NSString ExtendedSrgb { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceLinearSRGB")] NSString LinearSrgb { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceExtendedLinearSRGB")] NSString ExtendedLinearSrgb { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceExtendedGray")] NSString ExtendedGray { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceLinearGray")] NSString LinearGray { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGColorSpaceExtendedLinearGray")] NSString ExtendedLinearGray { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Now accessible as GenericCmyk.")] [Field ("kCGColorSpaceGenericCMYK")] NSString GenericCMYK { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Now accessible as AdobeRgb1998.")] [Field ("kCGColorSpaceAdobeRGB1998")] NSString AdobeRGB1998 { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Now accessible as Srgb.")] [Field ("kCGColorSpaceSRGB")] NSString SRGB { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Now accessible as GenericRgb.")] [Field ("kCGColorSpaceGenericRGB")] NSString GenericRGB { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Now accessible as GenericRgb.")] [Field ("kCGColorSpaceGenericRGBLinear")] NSString GenericRGBLinear { get; } - [iOS (11,0)][Mac (10,13)][Watch (4,0)][TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [Watch (4, 0)] + [TV (11, 0)] [Field ("kCGColorSpaceGenericLab")] NSString GenericLab { get; } - [Mac (10,14,3)][iOS (12,3)] - [TV (12,3)][Watch (5,3)] + [Mac (10, 14, 3)] + [iOS (12, 3)] + [TV (12, 3)] + [Watch (5, 3)] [Field ("kCGColorSpaceExtendedLinearITUR_2020")] NSString ExtendedLinearItur_2020 { get; } - [iOS (14,1), Mac (11,0), TV (14,2), Watch (7,1)] - [MacCatalyst (14,1)] + [iOS (14, 1), Mac (11, 0), TV (14, 2), Watch (7, 1)] + [MacCatalyst (14, 1)] [Field ("kCGColorSpaceExtendedITUR_2020")] NSString ExtendedItur_2020 { get; } - [Mac (10,14,3)][iOS (12,3)] - [TV (12,3)][Watch (5,3)] + [Mac (10, 14, 3)] + [iOS (12, 3)] + [TV (12, 3)] + [Watch (5, 3)] [Field ("kCGColorSpaceExtendedLinearDisplayP3")] NSString ExtendedLinearDisplayP3 { get; } - [iOS (14,1), Mac (11,0), TV (14,2), Watch (7,1)] - [MacCatalyst (14,1)] + [iOS (14, 1), Mac (11, 0), TV (14, 2), Watch (7, 1)] + [MacCatalyst (14, 1)] [Field ("kCGColorSpaceExtendedDisplayP3")] NSString ExtendedDisplayP3 { get; } - [Mac (10,14)][iOS (12,0)] - [TV (12,0)][Watch (5,0)] - [Deprecated (PlatformName.MacOSX, 10,15,4, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.iOS, 13,4, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.TvOS, 13,4, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.WatchOS, 6,2, message: "Use 'Itur_2100_PQ' instead.")] + [Mac (10, 14)] + [iOS (12, 0)] + [TV (12, 0)] + [Watch (5, 0)] + [Deprecated (PlatformName.MacOSX, 10, 15, 4, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.TvOS, 13, 4, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'Itur_2100_PQ' instead.")] [Field ("kCGColorSpaceITUR_2020_PQ_EOTF")] NSString Itur_2020_PQ_Eotf { get; } - [Mac (10,15,4), iOS (13,4), TV (13,4), Watch (6,2)] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'Itur_2100_PQ' instead.")] + [Mac (10, 15, 4), iOS (13, 4), TV (13, 4), Watch (6, 2)] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'Itur_2100_PQ' instead.")] [Field ("kCGColorSpaceITUR_2020_PQ")] NSString Itur_2020_PQ { get; } - [Mac (10,15)][iOS (13,0)] - [TV (13,0)][Watch (6,0)] - [Deprecated (PlatformName.MacOSX, 10,15,4)] - [Deprecated (PlatformName.iOS, 13,4)] - [Deprecated (PlatformName.TvOS, 13,4)] - [Deprecated (PlatformName.WatchOS, 6,2)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Deprecated (PlatformName.MacOSX, 10, 15, 4)] + [Deprecated (PlatformName.iOS, 13, 4)] + [Deprecated (PlatformName.TvOS, 13, 4)] + [Deprecated (PlatformName.WatchOS, 6, 2)] [Field ("kCGColorSpaceDisplayP3_PQ_EOTF")] NSString DisplayP3_PQ_Eotf { get; } - [Mac (10,15,4), iOS (13,4), TV (13,4), Watch (6,2)] + [Mac (10, 15, 4), iOS (13, 4), TV (13, 4), Watch (6, 2)] [Field ("kCGColorSpaceDisplayP3_PQ")] NSString DisplayP3_PQ { get; } - [Mac (10,15)][iOS (13,0)] - [TV (13,0)][Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] [Field ("kCGColorSpaceDisplayP3_HLG")] NSString DisplayP3_Hlg { get; } - [Mac (10,15)][iOS (13,0)] - [TV (13,0)][Watch (6,0)] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'Itur_2100_PQ' instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'Itur_2100_PQ' instead.")] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'Itur_2100_PQ' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'Itur_2100_PQ' instead.")] [Field ("kCGColorSpaceITUR_2020_HLG")] NSString Itur_2020_Hlg { get; } - [iOS (14,0)][TV (14,0)][Watch (7,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Field ("kCGColorSpaceITUR_2100_HLG")] NSString Itur_2100_Hlg { get; } - [iOS (14,0)][TV (14,0)][Watch (7,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Field ("kCGColorSpaceITUR_2100_PQ")] NSString Itur_2100_PQ { get; } - [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), Watch (8, 0), MacCatalyst (15, 0)] [Field ("kCGColorSpaceExtendedRange")] NSString ExtendedRange { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), Watch (8, 0), MacCatalyst (15, 0)] [Field ("kCGColorSpaceLinearDisplayP3")] NSString LinearDisplayP3 { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), Watch (8, 0), MacCatalyst (15, 0)] [Field ("kCGColorSpaceLinearITUR_2020")] NSString LinearItur_2020 { get; } } @@ -316,20 +388,23 @@ namespace CoreGraphics { [Internal] [Field ("kCGColorConversionTRCSize")] - [iOS (11,0), Mac(10,13), TV(11,0), Watch(4,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0), Watch (4, 0)] NSString TrcSizeKey { get; } } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [StrongDictionary ("CGColorConversionInfo")] interface CGColorConversionOptions { bool BlackPointCompensation { get; set; } CGSize TrcSize { get; set; } } - [iOS(11,0), Mac(10,13)] - [TV(11,0)] - [Watch(4,0)] + [iOS (11, 0), Mac (10, 13)] + [TV (11, 0)] + [Watch (4, 0)] [Static] [Internal] public interface CGPDFOutlineKeys { @@ -343,7 +418,7 @@ namespace CoreGraphics { [Internal] [Field ("kCGPDFOutlineDestination")] - NSString OutlineDestinationKey { get;} + NSString OutlineDestinationKey { get; } [Internal] [Field ("kCGPDFOutlineDestinationRect")] @@ -353,8 +428,8 @@ namespace CoreGraphics { [Field ("kCGPDFContextAccessPermissions")] NSString AccessPermissionsKey { get; } } - - [iOS(11,0), Mac(10,13)] + + [iOS (11, 0), Mac (10, 13)] [StrongDictionary ("CGPDFOutlineKeys")] interface CGPDFOutlineOptions { string OutlineTitle { get; set; } @@ -363,10 +438,10 @@ namespace CoreGraphics { CGRect DestinationRect { get; set; } } - [Mac (10,15)] - [iOS (13,0)] - [TV (13,0)] - [Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] [Static] [Internal] interface CGPdfTagPropertyKeys { @@ -383,10 +458,10 @@ namespace CoreGraphics { NSString LanguageTextKey { get; } } - [Mac (10,15)] - [iOS (13,0)] - [TV (13,0)] - [Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] [StrongDictionary ("CGPdfTagPropertyKeys")] interface CGPdfTagProperties { // The following CGPDFTagProperty keys are to be paired with CFStringRef values @@ -397,8 +472,10 @@ namespace CoreGraphics { } // macOS 10.5 - [iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] enum CGConstantColor { [Field ("kCGColorWhite")] White, @@ -409,7 +486,7 @@ namespace CoreGraphics { } // Adding suffix *Keys to avoid possible name clash - [NoiOS, NoTV, NoWatch, Mac (10,9), MacCatalyst (13,1)] + [NoiOS, NoTV, NoWatch, Mac (10, 9), MacCatalyst (13, 1)] [Static] interface CGDisplayStreamKeys { @@ -438,7 +515,7 @@ namespace CoreGraphics { NSString YCbCrMatrix { get; } } - [NoiOS, NoTV, NoWatch, Mac (10,9), MacCatalyst (13,1)] + [NoiOS, NoTV, NoWatch, Mac (10, 9), MacCatalyst (13, 1)] [Static] interface CGDisplayStreamYCbCrMatrixOptionKeys { diff --git a/src/corehaptics.cs b/src/corehaptics.cs index af52431729..2066b0ffd5 100644 --- a/src/corehaptics.cs +++ b/src/corehaptics.cs @@ -8,7 +8,7 @@ // using System; - + using AVFoundation; using CoreFoundation; using Foundation; @@ -20,13 +20,13 @@ using NativeHandle = System.IntPtr; namespace CoreHaptics { -// we are not binding the API on Mac OS X yet due to an issue on Apples side: https://github.com/xamarin/maccore/issues/1951 + // we are not binding the API on Mac OS X yet due to an issue on Apples side: https://github.com/xamarin/maccore/issues/1951 #if MONOMAC || TV interface AVAudioSession {} #endif - [Mac (10,15), iOS (13,0), TV (14,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticEventParameter { [BindAs (typeof (CHHapticEventParameterId))] @@ -41,8 +41,8 @@ namespace CoreHaptics { NativeHandle Constructor ([BindAs (typeof (CHHapticEventParameterId))] NSString parameterId, float value); } - [Mac (10,15), iOS (13,0), TV (14,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticDynamicParameter { [BindAs (typeof (CHHapticDynamicParameterId))] @@ -60,8 +60,8 @@ namespace CoreHaptics { NativeHandle Constructor ([BindAs (typeof (CHHapticDynamicParameterId))] NSString parameterId, float value, double time); } - [Mac (10,15), iOS (13,0), TV (14,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticParameterCurveControlPoint { [Export ("relativeTime")] @@ -75,8 +75,8 @@ namespace CoreHaptics { NativeHandle Constructor (double time, float value); } - [Mac (10,15), iOS (13,0), TV (14,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticParameterCurve { [BindAs (typeof (CHHapticDynamicParameterId))] @@ -87,15 +87,15 @@ namespace CoreHaptics { double RelativeTime { get; set; } [Export ("controlPoints")] - CHHapticParameterCurveControlPoint[] ControlPoints { get; } + CHHapticParameterCurveControlPoint [] ControlPoints { get; } [Export ("initWithParameterID:controlPoints:relativeTime:")] [DesignatedInitializer] - NativeHandle Constructor ([BindAs (typeof (CHHapticDynamicParameterId))]NSString parameterId, CHHapticParameterCurveControlPoint[] controlPoints, double relativeTime); + NativeHandle Constructor ([BindAs (typeof (CHHapticDynamicParameterId))] NSString parameterId, CHHapticParameterCurveControlPoint [] controlPoints, double relativeTime); } - [Mac (10,15), iOS (13,0), TV (14,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticEvent { [BindAs (typeof (CHHapticEventType))] @@ -103,7 +103,7 @@ namespace CoreHaptics { NSString Type { get; } [Export ("eventParameters")] - CHHapticEventParameter[] EventParameters { get; } + CHHapticEventParameter [] EventParameters { get; } [Export ("relativeTime")] double RelativeTime { get; set; } @@ -112,21 +112,21 @@ namespace CoreHaptics { double Duration { get; set; } [Export ("initWithEventType:parameters:relativeTime:")] - NativeHandle Constructor ([BindAs (typeof (CHHapticEventType))] NSString type, CHHapticEventParameter[] eventParams, double time); + NativeHandle Constructor ([BindAs (typeof (CHHapticEventType))] NSString type, CHHapticEventParameter [] eventParams, double time); [Export ("initWithEventType:parameters:relativeTime:duration:")] - NativeHandle Constructor ([BindAs (typeof (CHHapticEventType))] NSString type, CHHapticEventParameter[] eventParams, double time, double duration); + NativeHandle Constructor ([BindAs (typeof (CHHapticEventType))] NSString type, CHHapticEventParameter [] eventParams, double time, double duration); [Export ("initWithAudioResourceID:parameters:relativeTime:")] - NativeHandle Constructor (nuint resourceId, CHHapticEventParameter[] eventParams, double time); + NativeHandle Constructor (nuint resourceId, CHHapticEventParameter [] eventParams, double time); [Export ("initWithAudioResourceID:parameters:relativeTime:duration:")] - NativeHandle Constructor (nuint resourceId, CHHapticEventParameter[] eventParams, double time, double duration); + NativeHandle Constructor (nuint resourceId, CHHapticEventParameter [] eventParams, double time, double duration); } interface ICHHapticParameterAttributes { } - [Mac (10,15), iOS (13,0), TV (14,0)] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] [Protocol] interface CHHapticParameterAttributes { [Abstract] @@ -142,9 +142,10 @@ namespace CoreHaptics { float DefaultValue { get; } } - interface ICHHapticDeviceCapability { } + interface ICHHapticDeviceCapability { } - [iOS (13,0)][Mac (11,0), TV (14,0)] + [iOS (13, 0)] + [Mac (11, 0), TV (14, 0)] [Protocol] interface CHHapticDeviceCapability { [Abstract] @@ -170,7 +171,7 @@ namespace CoreHaptics { interface ICHHapticPatternPlayer { } - [Mac (10,15), iOS (13,0), TV (14,0)] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] [Protocol] interface CHHapticPatternPlayer { [Abstract] @@ -183,7 +184,7 @@ namespace CoreHaptics { [Abstract] [Export ("sendParameters:atTime:error:")] - bool Send (CHHapticDynamicParameter[] parameters, double time, [NullAllowed] out NSError outError); + bool Send (CHHapticDynamicParameter [] parameters, double time, [NullAllowed] out NSError outError); [Abstract] [Export ("scheduleParameterCurve:atTime:error:")] @@ -198,9 +199,9 @@ namespace CoreHaptics { bool IsMuted { get; set; } } - interface ICHHapticAdvancedPatternPlayer {} + interface ICHHapticAdvancedPatternPlayer { } - [Mac (10,15), iOS (13,0), TV (14,0)] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] [Protocol] interface CHHapticAdvancedPatternPlayer : CHHapticPatternPlayer { [Abstract] @@ -236,11 +237,10 @@ namespace CoreHaptics { new bool IsMuted { get; set; } } - [Mac (10,15), iOS (13,0), TV (14, 0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CHHapticEngine - { + interface CHHapticEngine { [Static] [Export ("capabilitiesForHardware")] @@ -311,14 +311,14 @@ namespace CoreHaptics { [Export ("playPatternFromData:error:")] bool PlayPattern (NSData data, [NullAllowed] out NSError outError); - [TV (16,0), NoWatch, MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), NoWatch, MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Export ("playsAudioOnly")] bool PlaysAudioOnly { get; set; } } [Static] [Internal] - [Mac (10,15), iOS (13,0), TV (14, 0)] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] partial interface CHHapticPatternDefinitionKeys { [Field ("CHHapticPatternKeyVersion")] NSString VersionKey { get; } @@ -359,16 +359,16 @@ namespace CoreHaptics { [Field ("CHHapticPatternKeyParameterCurveControlPoints")] NSString ParameterCurveControlPointsKey { get; } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("CHHapticPatternKeyEventWaveformUseVolumeEnvelope")] NSString EventWaveformUseVolumeEnvelopeKey { get; } - [TV (16,0), NoWatch, MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), NoWatch, MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("CHHapticPatternKeyEventWaveformLoopEnabled")] NSString EventWaveformLoopEnabledKey { get; } } - [Mac (10,15), iOS (13,0), TV (14, 0)] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] [StrongDictionary ("CHHapticPatternDefinitionKeys")] partial interface CHHapticPatternDefinition { double Version { get; set; } @@ -391,22 +391,22 @@ namespace CoreHaptics { [Export ("ParameterCurveControlPointsKey")] NSObject WeakParameterCurveControlPoints { get; set; } [Advice ("The default value is true.")] - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] bool EventWaveformUseVolumeEnvelope { get; set; } } - [Mac (10,15), iOS (13,0), TV (14, 0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CHHapticPattern { [Export ("duration")] double Duration { get; } [Export ("initWithEvents:parameters:error:")] - NativeHandle Constructor (CHHapticEvent[] events, CHHapticDynamicParameter[] parameters, [NullAllowed] out NSError outError); + NativeHandle Constructor (CHHapticEvent [] events, CHHapticDynamicParameter [] parameters, [NullAllowed] out NSError outError); [Export ("initWithEvents:parameterCurves:error:")] - NativeHandle Constructor (CHHapticEvent[] events, CHHapticParameterCurve[] parameterCurves, [NullAllowed] out NSError outError); + NativeHandle Constructor (CHHapticEvent [] events, CHHapticParameterCurve [] parameterCurves, [NullAllowed] out NSError outError); [Export ("initWithDictionary:error:")] NativeHandle Constructor (NSDictionary patternDict, [NullAllowed] out NSError outError); @@ -414,7 +414,7 @@ namespace CoreHaptics { [Wrap ("this (patternDefinition.GetDictionary ()!, out outError)")] NativeHandle Constructor (CHHapticPatternDefinition patternDefinition, [NullAllowed] out NSError outError); - [TV (16,0), NoWatch, MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), NoWatch, MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Export ("initWithContentsOfURL:error:")] NativeHandle Constructor (NSUrl url, [NullAllowed] out NSError error); @@ -430,18 +430,18 @@ namespace CoreHaptics { [Static] [Internal] - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] partial interface CHHapticAudioResourceKeys { [Field ("CHHapticAudioResourceKeyUseVolumeEnvelope")] NSString UseVolumeEnvelopeKey { get; } - [TV (16,0), NoWatch, MacCatalyst (16, 0), Mac (13,0), iOS (16, 0)] + [TV (16, 0), NoWatch, MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("CHHapticAudioResourceKeyLoopEnabled")] NSString LoopEnabledKey { get; } } - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [StrongDictionary ("CHHapticAudioResourceKeys")] partial interface CHHapticAudioResourceDefinition { [Advice ("The default value is true.")] diff --git a/src/coreimage.cs b/src/coreimage.cs index 2c02d882c4..6e8f3fb8be 100644 --- a/src/coreimage.cs +++ b/src/coreimage.cs @@ -75,8 +75,9 @@ namespace CoreImage { [Export ("colorWithRed:green:blue:alpha:")] CIColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("colorWithRed:green:blue:alpha:colorSpace:")] [return: NullAllowed] @@ -86,8 +87,9 @@ namespace CoreImage { [Export ("colorWithRed:green:blue:")] CIColor FromRgb (nfloat red, nfloat green, nfloat blue); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("colorWithRed:green:blue:colorSpace:")] [return: NullAllowed] @@ -101,21 +103,25 @@ namespace CoreImage { [Export ("initWithCGColor:")] NativeHandle Constructor (CGColor c); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("initWithRed:green:blue:")] NativeHandle Constructor (nfloat red, nfloat green, nfloat blue); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithRed:green:blue:colorSpace:")] NativeHandle Constructor (nfloat red, nfloat green, nfloat blue, CGColorSpace colorSpace); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("initWithRed:green:blue:alpha:")] NativeHandle Constructor (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithRed:green:blue:alpha:colorSpace:")] NativeHandle Constructor (nfloat red, nfloat green, nfloat blue, nfloat alpha, CGColorSpace colorSpace); @@ -144,62 +150,72 @@ namespace CoreImage { // while the one below are CIColor convenience helpers // conflicting names means we have to keep the *Color suffix on them - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("blackColor", ArgumentSemantic.Strong)] CIColor BlackColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("whiteColor", ArgumentSemantic.Strong)] CIColor WhiteColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("grayColor", ArgumentSemantic.Strong)] CIColor GrayColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("redColor", ArgumentSemantic.Strong)] CIColor RedColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("greenColor", ArgumentSemantic.Strong)] CIColor GreenColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("blueColor", ArgumentSemantic.Strong)] CIColor BlueColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("cyanColor", ArgumentSemantic.Strong)] CIColor CyanColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("magentaColor", ArgumentSemantic.Strong)] CIColor MagentaColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("yellowColor", ArgumentSemantic.Strong)] CIColor YellowColor { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("clearColor", ArgumentSemantic.Strong)] CIColor ClearColor { get; } @@ -215,27 +231,30 @@ namespace CoreImage { [DisableDefaultCtor] interface CIContext { // marked iOS5 but it's not working in iOS8.0 - [iOS (9,0)] + [iOS (9, 0)] [Export ("init")] NativeHandle Constructor (); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("contextWithMTLDevice:")] CIContext FromMetalDevice (IMTLDevice device); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature) [Static] [Export ("contextWithMTLDevice:options:")] CIContext FromMetalDevice (IMTLDevice device, [NullAllowed] NSDictionary options); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("contextWithMTLDevice:options:")] CIContext FromMetalDevice (IMTLDevice device, [NullAllowed] NSDictionary options); - [iOS (9,0)] + [iOS (9, 0)] [Internal, Static] [Export ("contextWithCGContext:options:")] CIContext FromContext (CGContext ctx, [NullAllowed] NSDictionary options); @@ -244,7 +263,7 @@ namespace CoreImage { [Export ("contextWithOptions:")] CIContext FromOptions ([NullAllowed] NSDictionary dictionary); - [iOS (9,0)] // documented as earlier but missing + [iOS (9, 0)] // documented as earlier but missing [Internal] [Export ("initWithOptions:")] NativeHandle Constructor ([NullAllowed] NSDictionary options); @@ -267,18 +286,18 @@ namespace CoreImage { CIContext FromContext (EAGLContext eaglContext, [NullAllowed] NSDictionary dictionary); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("render:toCVPixelBuffer:")] void Render (CIImage image, CVPixelBuffer buffer); - [Mac (10,11)] + [Mac (10, 11)] [Export ("render:toCVPixelBuffer:bounds:colorSpace:")] // null is not documented for CGColorSpace but it makes sense with the other overload not having this parameter (unit tested) void Render (CIImage image, CVPixelBuffer buffer, CGRect rectangle, [NullAllowed] CGColorSpace cs); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("render:toIOSurface:bounds:colorSpace:")] void Render (CIImage image, IOSurface.IOSurface surface, CGRect bounds, [NullAllowed] CGColorSpace colorSpace); @@ -290,12 +309,13 @@ namespace CoreImage { [Export ("outputImageMaximumSize")] CGSize OutputImageMaximumSize { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("render:toMTLTexture:commandBuffer:bounds:colorSpace:")] void Render (CIImage image, IMTLTexture texture, [NullAllowed] IMTLCommandBuffer commandBuffer, CGRect bounds, CGColorSpace colorSpace); - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'DrawImage (image, CGRect, CGRect)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'DrawImage (image, CGRect, CGRect)' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'DrawImage (image, CGRect, CGRect)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'DrawImage (image, CGRect, CGRect)' instead.")] [Export ("drawImage:atPoint:fromRect:")] void DrawImage (CIImage image, CGPoint atPoint, CGRect fromRect); @@ -312,14 +332,18 @@ namespace CoreImage { [return: NullAllowed] CGImage CreateCGImage (CIImage image, CGRect fromRect, int /* CIFormat = int */ ciImageFormat, [NullAllowed] CGColorSpace colorSpace); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("createCGImage:fromRect:format:colorSpace:deferred:")] [return: Release] [return: NullAllowed] CGImage CreateCGImage (CIImage image, CGRect fromRect, CIFormat format, [NullAllowed] CGColorSpace colorSpace, bool deferred); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Internal, Export ("createCGLayerWithSize:info:")] [return: NullAllowed] CGLayer CreateCGLayer (CGSize size, [NullAllowed] NSDictionary info); @@ -330,12 +354,15 @@ namespace CoreImage { //[Export ("render:toIOSurface:bounds:colorSpace:")] //void RendertoIOSurfaceboundscolorSpace (CIImage im, IOSurfaceRef surface, CGRect r, CGColorSpaceRef cs, ); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("reclaimResources")] void ReclaimResources (); - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("clearCaches")] void ClearCaches (); @@ -344,74 +371,93 @@ namespace CoreImage { [Internal, Field ("kCIContextWorkingColorSpace", "+CoreImage")] NSString _WorkingColorSpace { get; } - + [Internal, Field ("kCIContextUseSoftwareRenderer", "+CoreImage")] NSString UseSoftwareRenderer { get; } - [iOS (8,0)][Mac (10,12)] + [iOS (8, 0)] + [Mac (10, 12)] [Internal, Field ("kCIContextPriorityRequestLow", "+CoreImage")] NSString PriorityRequestLow { get; } - [iOS (8,0)] + [iOS (8, 0)] [Internal, Field ("kCIContextWorkingFormat", "+CoreImage")] NSString WorkingFormatField { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Internal] [Field ("kCIContextHighQualityDownsample", "+CoreImage")] NSString HighQualityDownsample { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Internal] [Field ("kCIContextAllowLowPower")] NSString AllowLowPower { get; } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [Internal] [Field ("kCIContextName")] NSString Name { get; } - [Mac(10,11)] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [Mac (10, 11)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("offlineGPUCount")] [Static] int OfflineGPUCount { get; } - [Mac(10,11)] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [Mac (10, 11)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("contextForOfflineGPUAtIndex:")] [Static] [return: NullAllowed] CIContext FromOfflineGpu (int gpuIndex); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("workingColorSpace")] [NullAllowed] CGColorSpace WorkingColorSpace { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("workingFormat")] CIFormat WorkingFormat { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal] [Field ("kCIContextOutputPremultiplied", "+CoreImage")] NSString OutputPremultiplied { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Internal] [Field ("kCIContextCacheIntermediates", "+CoreImage")] NSString CacheIntermediates { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("contextWithMTLCommandQueue:")] CIContext Create (IMTLCommandQueue commandQueue); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("contextWithMTLCommandQueue:options:")] CIContext Create (IMTLCommandQueue commandQueue, [NullAllowed] NSDictionary options); @@ -421,126 +467,153 @@ namespace CoreImage { [BaseType (typeof (CIContext))] interface CIContext_ImageRepresentation { - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("TIFFRepresentationOfImage:format:colorSpace:options:")] [return: NullAllowed] NSData GetTiffRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, NSDictionary options); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("GetTiffRepresentation (This, image, format, colorSpace, options.GetDictionary ()!)")] [return: NullAllowed] NSData GetTiffRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("JPEGRepresentationOfImage:colorSpace:options:")] [return: NullAllowed] NSData GetJpegRepresentation (CIImage image, CGColorSpace colorSpace, NSDictionary options); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("GetJpegRepresentation (This, image, colorSpace, options.GetDictionary ()!)")] [return: NullAllowed] NSData GetJpegRepresentation (CIImage image, CGColorSpace colorSpace, CIImageRepresentationOptions options); - [iOS (11,0)][TV (11,0)][Mac (10,13,4)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13, 4)] [Export ("HEIFRepresentationOfImage:format:colorSpace:options:")] [return: NullAllowed] NSData GetHeifRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, NSDictionary options); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Wrap ("GetHeifRepresentation (This, image, format, colorSpace, options.GetDictionary ()!)")] [return: NullAllowed] NSData GetHeifRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("HEIF10RepresentationOfImage:colorSpace:options:error:")] [return: NullAllowed] NSData GetHeif10Representation (CIImage image, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [Wrap ("GetHeif10Representation (This, image, colorSpace, options.GetDictionary ()!, out error)")] [return: NullAllowed] NSData GetHeif10Representation (CIImage image, CGColorSpace colorSpace, CIImageRepresentationOptions options, [NullAllowed] out NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("PNGRepresentationOfImage:format:colorSpace:options:")] [return: NullAllowed] NSData GetPngRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, NSDictionary options); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Wrap ("GetPngRepresentation (This, image, format, colorSpace, options.GetDictionary ()!)")] [return: NullAllowed] NSData GetPngRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:")] bool WriteTiffRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, NSDictionary options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("WriteTiffRepresentation (This, image, url, format, colorSpace, options.GetDictionary ()!, out error)")] bool WriteTiffRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:")] bool WriteJpegRepresentation (CIImage image, NSUrl url, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("WriteJpegRepresentation (This, image, url, colorSpace, options.GetDictionary ()!, out error)")] bool WriteJpegRepresentation (CIImage image, NSUrl url, CGColorSpace colorSpace, CIImageRepresentationOptions options, [NullAllowed] out NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13,4)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13, 4)] [Export ("writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:")] bool WriteHeifRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Wrap ("WriteHeifRepresentation (This, image, url, format, colorSpace, options.GetDictionary ()!, out error)")] bool WriteHeifRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options, [NullAllowed] out NSError error); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:")] bool WriteHeif10Representation (CIImage image, NSUrl url, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [Wrap ("WriteHeif10Representation (This, image, url, colorSpace, options.GetDictionary ()!, out error)")] bool WriteHeif10Representation (CIImage image, NSUrl url, CGColorSpace colorSpace, CIImageRepresentationOptions options, [NullAllowed] out NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:")] bool WritePngRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Wrap ("WritePngRepresentation (This, image, url, format, colorSpace, options.GetDictionary ()!, out error)")] bool WritePngRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, CIImageRepresentationOptions options, [NullAllowed] out NSError error); } [Category] - [BaseType (typeof(CIContext))] - interface CIContext_CIDepthBlurEffect - { + [BaseType (typeof (CIContext))] + interface CIContext_CIDepthBlurEffect { // as per the docs: The 'options' parameter is a key value/pair reserved for future use. - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("depthBlurEffectFilterForImageURL:options:")] [return: NullAllowed] CIFilter GetDepthBlurEffectFilter (NSUrl url, [NullAllowed] NSDictionary options); // as per the docs: The 'options' parameter is a key value/pair reserved for future use. - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("depthBlurEffectFilterForImageData:options:")] [return: NullAllowed] CIFilter GetDepthBlurEffectFilter (NSData data, [NullAllowed] NSDictionary options); // as per the docs: The 'options' parameter is a key value/pair reserved for future use. - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:orientation:options:")] [return: NullAllowed] CIFilter GetDepthBlurEffectFilter (CIImage image, CIImage disparityImage, [NullAllowed] CIImage portraitEffectsMatte, CGImagePropertyOrientation orientation, [NullAllowed] NSDictionary options); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:orientation:options:")] [return: NullAllowed] CIFilter GetDepthBlurEffectFilter (CIImage image, CIImage disparityImage, [NullAllowed] CIImage portraitEffectsMatte, [NullAllowed] CIImage hairSemanticSegmentation, CGImagePropertyOrientation orientation, [NullAllowed] NSDictionary options); - [iOS (14,1)][TV (14,2)][Mac (11,0)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] [Export ("depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:glassesMatte:gainMap:orientation:options:")] [return: NullAllowed] CIFilter GetDepthBlurEffectFilter (CIImage image, CIImage disparityImage, [NullAllowed] CIImage portraitEffectsMatte, [NullAllowed] CIImage hairSemanticSegmentation, [NullAllowed] CIImage glassesMatte, [NullAllowed] CIImage gainMap, CGImagePropertyOrientation orientation, [NullAllowed] NSDictionary options); @@ -564,16 +637,17 @@ namespace CoreImage { [Export ("name")] string Name { get; - [iOS (10,0)][TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] set; - } + } [Static] [Export ("filterWithName:")] [return: NullAllowed] CIFilter FromName (string name); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static] [Export ("filterWithName:withInputParameters:")] [return: NullAllowed] @@ -587,24 +661,24 @@ namespace CoreImage { [Export ("filterNamesInCategories:"), Internal] string [] _FilterNamesInCategories ([NullAllowed] string [] categories); - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("localizedNameForFilterName:")] [return: NullAllowed] string FilterLocalizedName (string filterName); - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("localizedNameForCategory:")] string CategoryLocalizedName (string category); - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("localizedDescriptionForFilterName:")] [return: NullAllowed] string FilterLocalizedDescription (string filterName); - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("localizedReferenceDocumentationForFilterName:")] [return: NullAllowed] @@ -615,7 +689,11 @@ namespace CoreImage { [Export ("registerFilterName:constructor:classAttributes:")] void RegisterFilterName (string name, NSObject constructorObject, NSDictionary classAttributes); #else - [iOS(9,0)][Mac (10,4)][MacCatalyst (13,1)][TV (9,0)][NoWatch] + [iOS (9, 0)] + [Mac (10, 4)] + [MacCatalyst (13, 1)] + [TV (9, 0)] + [NoWatch] [Static] [Export ("registerFilterName:constructor:classAttributes:")] #if NET @@ -626,12 +704,18 @@ namespace CoreImage { #endif #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("apply:arguments:options:")] [return: NullAllowed] CIImage Apply (CIKernel k, [NullAllowed] NSArray args, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("viewForUIConfiguration:excludedKeys:")] IKFilterUIView GetFilterUIView (NSDictionary configurationOptions, [NullAllowed] NSArray excludedKeys); @@ -644,11 +728,11 @@ namespace CoreImage { [NoMac] [Export ("serializedXMPFromFilters:inputImageExtent:"), Static] [return: NullAllowed] - NSData SerializedXMP (CIFilter[] filters, CGRect extent); + NSData SerializedXMP (CIFilter [] filters, CGRect extent); [NoMac] [Export ("filterArrayFromSerializedXMP:inputImageExtent:error:"), Static] - CIFilter[] FromSerializedXMP (NSData xmpData, CGRect extent, out NSError error); + CIFilter [] FromSerializedXMP (NSData xmpData, CGRect extent, out NSError error); [Export ("setValue:forKey:"), Internal] void SetValueForKey ([NullAllowed] NSObject value, IntPtr key); @@ -662,8 +746,8 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Static] [Export ("filterWithImageURL:options:")] CIFilter CreateRawFilter (NSUrl url, NSDictionary options); @@ -671,8 +755,8 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Static] [Wrap ("CreateRawFilter (url, options.GetDictionary ()!)")] CIFilter CreateRawFilter (NSUrl url, CIRawFilterOptions options); @@ -680,8 +764,8 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Static] [Export ("filterWithImageData:options:")] CIFilter CreateRawFilter (NSData data, NSDictionary options); @@ -689,8 +773,8 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Static] [Wrap ("CreateRawFilter (data, options.GetDictionary ()!)")] CIFilter CreateRawFilter (NSData data, CIRawFilterOptions options); @@ -698,8 +782,9 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("filterWithCVPixelBuffer:properties:options:")] CIFilter CreateRawFilter (CVPixelBuffer pixelBuffer, NSDictionary properties, NSDictionary options); @@ -707,17 +792,18 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Wrap ("CreateRawFilter (pixelBuffer, properties, options.GetDictionary ()!)")] CIFilter CreateRawFilter (CVPixelBuffer pixelBuffer, NSDictionary properties, CIRawFilterOptions options); } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [NativeName ("CIRAWDecoderVersion")] public enum CIRawDecoderVersion : long { - + [Field ("CIRAWDecoderVersionNone")] VersionNone, @@ -740,16 +826,15 @@ namespace CoreImage { Version6Dng, } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] - [BaseType (typeof(CIFilter), Name="CIRAWFilter")] - interface CIRawFilter : CIFilterProtocol - { + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] + [BaseType (typeof (CIFilter), Name = "CIRAWFilter")] + interface CIRawFilter : CIFilterProtocol { [Static] [Export ("supportedCameraModels")] - string[] SupportedCameraModels { get; } + string [] SupportedCameraModels { get; } [Export ("supportedDecoderVersions")] - string[] SupportedDecoderVersions { get; } + string [] SupportedDecoderVersions { get; } [Export ("nativeSize")] CGSize NativeSize { get; } @@ -893,128 +978,140 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [TV (10,0)] + [TV (10, 0)] [Static] [Internal] interface CIRawFilterKeys { - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputAllowDraftModeKey")] NSString AllowDraftModeKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputDecoderVersionKey")] NSString VersionKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCISupportedDecoderVersionsKey")] NSString SupportedDecoderVersionsKey { get; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Field ("kCIInputBaselineExposureKey")] NSString BaselineExposureKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputBoostKey")] NSString BoostKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputBoostShadowAmountKey")] NSString BoostShadowAmountKey { get; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Field ("kCIInputDisableGamutMapKey")] NSString DisableGamutMapKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNeutralChromaticityXKey")] NSString NeutralChromaticityXKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNeutralChromaticityYKey")] NSString NeutralChromaticityYKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNeutralTemperatureKey")] NSString NeutralTemperatureKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNeutralTintKey")] NSString NeutralTintKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNeutralLocationKey")] NSString NeutralLocationKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputScaleFactorKey")] NSString ScaleFactorKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputIgnoreImageOrientationKey")] NSString IgnoreImageOrientationKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputImageOrientationKey")] NSString ImageOrientationKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputEnableSharpeningKey")] NSString EnableSharpeningKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputEnableChromaticNoiseTrackingKey")] NSString EnableChromaticNoiseTrackingKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputNoiseReductionAmountKey")] NSString NoiseReductionAmountKey { get; } - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Field ("kCIInputMoireAmountKey")] NSString MoireAmountKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputEnableVendorLensCorrectionKey")] NSString EnableVendorLensCorrectionKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputLuminanceNoiseReductionAmountKey")] NSString LuminanceNoiseReductionAmountKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputColorNoiseReductionAmountKey")] NSString ColorNoiseReductionAmountKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputNoiseReductionSharpnessAmountKey")] NSString NoiseReductionSharpnessAmountKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputNoiseReductionContrastAmountKey")] NSString NoiseReductionContrastAmountKey { get; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputNoiseReductionDetailAmountKey")] NSString NoiseReductionDetailAmountKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIInputLinearSpaceFilter")] NSString LinearSpaceFilterKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIInputEnableEDRModeKey")] NSString EnableEdrModeKey { get; } - [iOS (14,3), TV (14,3), Mac (11,1)] - [MacCatalyst (14,3)] + [iOS (14, 3), TV (14, 3), Mac (11, 1)] + [MacCatalyst (14, 3)] [Field ("kCIInputLocalToneMapAmountKey")] NSString InputLocalToneMapAmountKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIOutputNativeSizeKey")] NSString OutputNativeSizeKey { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIActiveKeys")] NSString ActiveKeysKey { get; } } @@ -1022,208 +1119,217 @@ namespace CoreImage { [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CIRawFilter' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CIRawFilter' instead.")] - [TV (10,0)] + [TV (10, 0)] [StrongDictionary ("CIRawFilterKeys")] interface CIRawFilterOptions { - [iOS (10,0)] + [iOS (10, 0)] bool AllowDraftMode { get; set; } - [iOS (10,0)] + [iOS (10, 0)] string Version { get; set; } - [iOS (10,0)] - NSDictionary[] SupportedDecoderVersions { get; set; } + [iOS (10, 0)] + NSDictionary [] SupportedDecoderVersions { get; set; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] float BaselineExposure { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float Boost { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float BoostShadowAmount { get; set; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] bool DisableGamutMap { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float NeutralChromaticityX { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float NeutralChromaticityY { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float NeutralTemperature { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float NeutralTint { get; set; } - [iOS (10,0)] + [iOS (10, 0)] CIVector NeutralLocation { get; set; } - [iOS (10,0)] + [iOS (10, 0)] float ScaleFactor { get; set; } - [iOS (10,0)] + [iOS (10, 0)] bool IgnoreImageOrientation { get; set; } - [iOS (10,0)] + [iOS (10, 0)] int ImageOrientation { get; set; } - [iOS (10,0)] + [iOS (10, 0)] bool EnableSharpening { get; set; } - [iOS (10,0)] + [iOS (10, 0)] bool EnableChromaticNoiseTracking { get; set; } - [iOS (10,0)] + [iOS (10, 0)] double NoiseReductionAmount { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] bool EnableVendorLensCorrection { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] double LuminanceNoiseReductionAmount { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] double ColorNoiseReductionAmount { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] double NoiseReductionSharpnessAmount { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] double NoiseReductionContrastAmount { get; set; } - [iOS (10,0)][Mac (10,10)] + [iOS (10, 0)] + [Mac (10, 10)] [Field ("kCIInputNoiseReductionDetailAmountKey")] double NoiseReductionDetailAmount { get; set; } - [iOS (10,0)] + [iOS (10, 0)] CIFilter LinearSpaceFilter { get; set; } - [iOS (10,0)] + [iOS (10, 0)] CIVector OutputNativeSize { get; set; } - [iOS (10,0)] + [iOS (10, 0)] NSSet ActiveKeys { get; } } [Static] interface CIFilterOutputKey { [Field ("kCIOutputImageKey", "+CoreImage")] - NSString Image { get; } + NSString Image { get; } } - + [Static] interface CIFilterInputKey { [Field ("kCIInputBackgroundImageKey", "+CoreImage")] - NSString BackgroundImage { get; } + NSString BackgroundImage { get; } [Field ("kCIInputImageKey", "+CoreImage")] - NSString Image { get; } + NSString Image { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("kCIInputVersionKey", "+CoreImage")] NSString Version { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCIInputRefractionKey", "+CoreImage")] - NSString Refraction { get; } + NSString Refraction { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCIInputGradientImageKey", "+CoreImage")] - NSString GradientImage { get; } + NSString GradientImage { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCIInputShadingImageKey", "+CoreImage")] - NSString ShadingImage { get; } + NSString ShadingImage { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputTimeKey", "+CoreImage")] - NSString Time { get; } + NSString Time { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputTransformKey", "+CoreImage")] - NSString Transform { get; } + NSString Transform { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputScaleKey", "+CoreImage")] - NSString Scale { get; } + NSString Scale { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputAspectRatioKey", "+CoreImage")] - NSString AspectRatio { get; } + NSString AspectRatio { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputCenterKey", "+CoreImage")] - NSString Center { get; } + NSString Center { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputRadiusKey", "+CoreImage")] - NSString Radius { get; } + NSString Radius { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputAngleKey", "+CoreImage")] - NSString Angle { get; } + NSString Angle { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputWidthKey", "+CoreImage")] - NSString Width { get; } + NSString Width { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputSharpnessKey", "+CoreImage")] - NSString Sharpness { get; } + NSString Sharpness { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputIntensityKey", "+CoreImage")] - NSString Intensity { get; } + NSString Intensity { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputEVKey", "+CoreImage")] - NSString EV { get; } + NSString EV { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputSaturationKey", "+CoreImage")] - NSString Saturation { get; } + NSString Saturation { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputColorKey", "+CoreImage")] - NSString Color { get; } + NSString Color { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputBrightnessKey", "+CoreImage")] - NSString Brightness { get; } + NSString Brightness { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputContrastKey", "+CoreImage")] - NSString Contrast { get; } + NSString Contrast { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCIInputBiasKey", "+CoreImage")] - NSString BiasKey { get; } + NSString BiasKey { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kCIInputWeightsKey", "+CoreImage")] NSString WeightsKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputMaskImageKey", "+CoreImage")] - NSString MaskImage { get; } + NSString MaskImage { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputTargetImageKey", "+CoreImage")] - NSString TargetImage { get; } + NSString TargetImage { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCIInputExtentKey", "+CoreImage")] - NSString Extent { get; } + NSString Extent { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIInputDepthImageKey", "+CoreImage")] NSString DepthImage { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIInputDisparityImageKey", "+CoreImage")] NSString DisparityImage { get; } @@ -1235,118 +1341,118 @@ namespace CoreImage { [Field ("kCIInputAmountKey", "+CoreImage")] NSString Amount { get; } } - + [Static] interface CIFilterAttributes { [Field ("kCIAttributeFilterName", "+CoreImage")] - NSString FilterName { get; } + NSString FilterName { get; } [Field ("kCIAttributeFilterDisplayName", "+CoreImage")] - NSString FilterDisplayName { get; } + NSString FilterDisplayName { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCIAttributeDescription", "+CoreImage")] - NSString Description { get; } + NSString Description { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCIAttributeReferenceDocumentation", "+CoreImage")] - NSString ReferenceDocumentation { get; } + NSString ReferenceDocumentation { get; } [Field ("kCIAttributeFilterCategories", "+CoreImage")] - NSString FilterCategories { get; } + NSString FilterCategories { get; } [Field ("kCIAttributeClass", "+CoreImage")] - NSString Class { get; } + NSString Class { get; } [Field ("kCIAttributeType", "+CoreImage")] - NSString Type { get; } + NSString Type { get; } [Field ("kCIAttributeMin", "+CoreImage")] - NSString Min { get; } + NSString Min { get; } [Field ("kCIAttributeMax", "+CoreImage")] - NSString Max { get; } + NSString Max { get; } [Field ("kCIAttributeSliderMin", "+CoreImage")] - NSString SliderMin { get; } + NSString SliderMin { get; } [Field ("kCIAttributeSliderMax", "+CoreImage")] - NSString SliderMax { get; } + NSString SliderMax { get; } [Field ("kCIAttributeDefault", "+CoreImage")] - NSString Default { get; } + NSString Default { get; } [Field ("kCIAttributeIdentity", "+CoreImage")] - NSString Identity { get; } + NSString Identity { get; } [Field ("kCIAttributeName", "+CoreImage")] - NSString Name { get; } + NSString Name { get; } [Field ("kCIAttributeDisplayName", "+CoreImage")] - NSString DisplayName { get; } + NSString DisplayName { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCIUIParameterSet", "+CoreImage")] - NSString UIParameterSet { get; } + NSString UIParameterSet { get; } [Field ("kCIAttributeTypeTime", "+CoreImage")] - NSString TypeTime { get; } + NSString TypeTime { get; } [Field ("kCIAttributeTypeScalar", "+CoreImage")] - NSString TypeScalar { get; } + NSString TypeScalar { get; } [Field ("kCIAttributeTypeDistance", "+CoreImage")] - NSString TypeDistance { get; } + NSString TypeDistance { get; } [Field ("kCIAttributeTypeAngle", "+CoreImage")] - NSString TypeAngle { get; } + NSString TypeAngle { get; } [Field ("kCIAttributeTypeBoolean", "+CoreImage")] - NSString TypeBoolean { get; } + NSString TypeBoolean { get; } [Field ("kCIAttributeTypeInteger", "+CoreImage")] - NSString TypeInteger { get; } + NSString TypeInteger { get; } [Field ("kCIAttributeTypeCount", "+CoreImage")] - NSString TypeCount { get; } + NSString TypeCount { get; } [Field ("kCIAttributeTypePosition", "+CoreImage")] - NSString TypePosition { get; } + NSString TypePosition { get; } [Field ("kCIAttributeTypeOffset", "+CoreImage")] - NSString TypeOffset { get; } + NSString TypeOffset { get; } [Field ("kCIAttributeTypePosition3", "+CoreImage")] - NSString TypePosition3 { get; } + NSString TypePosition3 { get; } [Field ("kCIAttributeTypeRectangle", "+CoreImage")] - NSString TypeRectangle { get; } + NSString TypeRectangle { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCIAttributeTypeOpaqueColor", "+CoreImage")] - NSString TypeOpaqueColor { get; } + NSString TypeOpaqueColor { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCIAttributeTypeGradient", "+CoreImage")] - NSString TypeGradient { get; } + NSString TypeGradient { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("kCIAttributeTypeImage", "+CoreImage")] - NSString TypeImage { get; } + NSString TypeImage { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("kCIAttributeTypeTransform", "+CoreImage")] - NSString TypeTransform { get; } + NSString TypeTransform { get; } - [Mac(10,11)] + [Mac (10, 11)] [Field ("kCIAttributeTypeColor", "+CoreImage")] - NSString TypeColor { get; } + NSString TypeColor { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("kCIAttributeFilterAvailable_Mac", "+CoreImage")] NSString Available_Mac { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("kCIAttributeFilterAvailable_iOS", "+CoreImage")] NSString Available_iOS { get; } } @@ -1354,115 +1460,120 @@ namespace CoreImage { [Static] interface CIFilterCategory { [Field ("kCICategoryDistortionEffect", "+CoreImage")] - NSString DistortionEffect { get; } + NSString DistortionEffect { get; } [Field ("kCICategoryGeometryAdjustment", "+CoreImage")] - NSString GeometryAdjustment { get; } + NSString GeometryAdjustment { get; } [Field ("kCICategoryCompositeOperation", "+CoreImage")] - NSString CompositeOperation { get; } + NSString CompositeOperation { get; } [Field ("kCICategoryHalftoneEffect", "+CoreImage")] - NSString HalftoneEffect { get; } + NSString HalftoneEffect { get; } [Field ("kCICategoryColorAdjustment", "+CoreImage")] - NSString ColorAdjustment { get; } + NSString ColorAdjustment { get; } [Field ("kCICategoryColorEffect", "+CoreImage")] - NSString ColorEffect { get; } + NSString ColorEffect { get; } [Field ("kCICategoryTransition", "+CoreImage")] - NSString Transition { get; } + NSString Transition { get; } [Field ("kCICategoryTileEffect", "+CoreImage")] - NSString TileEffect { get; } + NSString TileEffect { get; } [Field ("kCICategoryGenerator", "+CoreImage")] - NSString Generator { get; } + NSString Generator { get; } [Field ("kCICategoryReduction", "+CoreImage")] - NSString Reduction { get; } + NSString Reduction { get; } [Field ("kCICategoryGradient", "+CoreImage")] - NSString Gradient { get; } + NSString Gradient { get; } [Field ("kCICategoryStylize", "+CoreImage")] - NSString Stylize { get; } + NSString Stylize { get; } [Field ("kCICategorySharpen", "+CoreImage")] - NSString Sharpen { get; } + NSString Sharpen { get; } [Field ("kCICategoryBlur", "+CoreImage")] - NSString Blur { get; } + NSString Blur { get; } [Field ("kCICategoryVideo", "+CoreImage")] - NSString Video { get; } + NSString Video { get; } [Field ("kCICategoryStillImage", "+CoreImage")] - NSString StillImage { get; } + NSString StillImage { get; } [Field ("kCICategoryInterlaced", "+CoreImage")] - NSString Interlaced { get; } + NSString Interlaced { get; } [Field ("kCICategoryNonSquarePixels", "+CoreImage")] - NSString NonSquarePixels { get; } + NSString NonSquarePixels { get; } [Field ("kCICategoryHighDynamicRange", "+CoreImage")] - NSString HighDynamicRange { get; } + NSString HighDynamicRange { get; } [Field ("kCICategoryBuiltIn", "+CoreImage")] - NSString BuiltIn { get; } + NSString BuiltIn { get; } - [iOS(9,0)] + [iOS (9, 0)] [Field ("kCICategoryFilterGenerator", "+CoreImage")] - NSString FilterGenerator { get; } + NSString FilterGenerator { get; } } - [iOS (9,0)] + [iOS (9, 0)] [Protocol] - interface CIFilterConstructor - { + interface CIFilterConstructor { [Abstract] [Export ("filterWithName:")] [return: NullAllowed] CIFilter FilterWithName (string name); } - interface ICIFilterConstructor {} - + interface ICIFilterConstructor { } + [Static] - [iOS (9,0)] + [iOS (9, 0)] interface CIUIParameterSet { [Field ("kCIUISetBasic", "+CoreImage")] - NSString Basic { get; } + NSString Basic { get; } [Field ("kCIUISetIntermediate", "+CoreImage")] - NSString Intermediate { get; } + NSString Intermediate { get; } [Field ("kCIUISetAdvanced", "+CoreImage")] - NSString Advanced { get; } + NSString Advanced { get; } [Field ("kCIUISetDevelopment", "+CoreImage")] - NSString Development { get; } + NSString Development { get; } } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Static] interface CIFilterApply { [Field ("kCIApplyOptionExtent", "+CoreImage")] - NSString OptionExtent { get; } + NSString OptionExtent { get; } [Field ("kCIApplyOptionDefinition", "+CoreImage")] - NSString OptionDefinition { get; } + NSString OptionDefinition { get; } [Field ("kCIApplyOptionUserInfo", "+CoreImage")] - NSString OptionUserInfo { get; } + NSString OptionUserInfo { get; } [Field ("kCIApplyOptionColorSpace", "+CoreImage")] - NSString OptionColorSpace { get; } + NSString OptionColorSpace { get; } } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CIFilterGenerator : CIFilterConstructor, NSSecureCoding, NSCopying { @@ -1520,7 +1631,7 @@ namespace CoreImage { [BaseType (typeof (NSObject))] [DisableDefaultCtor] - [iOS(9,0)] + [iOS (9, 0)] interface CIFilterShape : NSCopying { [Static] [Export ("shapeWithRect:")] @@ -1559,34 +1670,44 @@ namespace CoreImage { CoreGraphics.CGImageProperties Properties { get; set; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] bool ApplyOrientationProperty { get; set; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] bool NearestSampling { get; set; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] bool AuxiliaryDepth { get; set; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] bool AuxiliaryDisparity { get; set; } [TV (12, 0), iOS (12, 0), Mac (10, 14)] bool AuxiliaryPortraitEffectsMatte { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] bool AuxiliarySemanticSegmentationSkinMatte { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] bool AuxiliarySemanticSegmentationHairMatte { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] bool AuxiliarySemanticSegmentationTeethMatte { get; set; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] bool AuxiliarySemanticSegmentationGlassesMatte { get; set; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] bool ToneMapHdrToSdr { get; set; } } @@ -1599,19 +1720,19 @@ namespace CoreImage { [Field ("kCIImageProperties")] NSString PropertiesKey { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIImageNearestSampling")] NSString NearestSamplingKey { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIImageApplyOrientationProperty")] NSString ApplyOrientationPropertyKey { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIImageAuxiliaryDepth")] NSString AuxiliaryDepthKey { get; } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Field ("kCIImageAuxiliaryDisparity")] NSString AuxiliaryDisparityKey { get; } @@ -1619,35 +1740,45 @@ namespace CoreImage { [Field ("kCIImageAuxiliaryPortraitEffectsMatte")] NSString AuxiliaryPortraitEffectsMatteKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageAuxiliarySemanticSegmentationSkinMatte")] NSString AuxiliarySemanticSegmentationSkinMatteKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageAuxiliarySemanticSegmentationHairMatte")] NSString AuxiliarySemanticSegmentationHairMatteKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageAuxiliarySemanticSegmentationTeethMatte")] NSString AuxiliarySemanticSegmentationTeethMatteKey { get; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCIImageAuxiliarySemanticSegmentationGlassesMatte")] NSString AuxiliarySemanticSegmentationGlassesMatteKey { get; } - [iOS (14,3), TV (14,3), Mac (11,1)] - [MacCatalyst (14,3)] + [iOS (14, 3), TV (14, 3), Mac (11, 1)] + [MacCatalyst (14, 3)] [Field ("kCIImageAuxiliarySemanticSegmentationSkyMatte")] NSString AuxiliarySemanticSegmentationSkyMatteKey { get; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCIImageToneMapHDRtoSDR")] NSString ToneMapHdrToSdrKey { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CIImage : NSSecureCoding, NSCopying { @@ -1664,24 +1795,34 @@ namespace CoreImage { [Wrap ("FromCGImage (image, options.GetDictionary ())")] CIImage FromCGImage (CGImage image, [NullAllowed] CIImageInitializationOptionsWithMetadata options); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] [Export ("imageWithCGImageSource:index:options:")] CIImage FromCGImageSource (CGImageSource source, nuint index, [NullAllowed] NSDictionary options); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Wrap ("FromCGImageSource (source, index, options.GetDictionary ())")] CIImage FromCGImageSource (CGImageSource source, nuint index, [NullAllowed] CIImageInitializationOptionsWithMetadata options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11)] [Static] [Export ("imageWithCGLayer:")] CIImage FromLayer (CGLayer layer); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11)] [Static] [Export ("imageWithCGLayer:options:")] @@ -1731,7 +1872,7 @@ namespace CoreImage { CIImage FromData (NSData data, [NullAllowed] CIImageInitializationOptionsWithMetadata options); [Static] - [iOS(9,0)] + [iOS (9, 0)] [Export ("imageWithCVImageBuffer:")] CIImage FromImageBuffer (CVImageBuffer imageBuffer); @@ -1743,22 +1884,23 @@ namespace CoreImage { #else [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] - [iOS(9,0)] + [iOS (9, 0)] [Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature) [Export ("imageWithCVImageBuffer:options:")] CIImage FromImageBuffer (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict); [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] - [iOS(9,0)] + [iOS (9, 0)] [Export ("imageWithCVImageBuffer:options:")] CIImage FromImageBuffer (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict); #endif - [Static][iOS(9,0)] + [Static] + [iOS (9, 0)] [Wrap ("FromImageBuffer (imageBuffer, options.GetDictionary ())")] CIImage FromImageBuffer (CVImageBuffer imageBuffer, CIImageInitializationOptions options); - + [NoMac] [Static] [Export ("imageWithCVPixelBuffer:")] @@ -1775,24 +1917,24 @@ namespace CoreImage { [Wrap ("FromImageBuffer (buffer, options.GetDictionary ())")] CIImage FromImageBuffer (CVPixelBuffer buffer, [NullAllowed] CIImageInitializationOptions options); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Export ("imageWithIOSurface:")] CIImage FromSurface (IOSurface.IOSurface surface); - - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] [Export ("imageWithIOSurface:options:")] CIImage FromSurface (IOSurface.IOSurface surface, [NullAllowed] NSDictionary options); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Wrap ("FromSurface (surface, options.GetDictionary ())")] CIImage FromSurface (IOSurface.IOSurface surface, CIImageInitializationOptions options); @@ -1804,7 +1946,7 @@ namespace CoreImage { [Static] [Export ("emptyImage")] CIImage EmptyImage { get; } - + [Export ("initWithCGImage:")] NativeHandle Constructor (CGImage image); @@ -1815,27 +1957,40 @@ namespace CoreImage { [Wrap ("this (image, options.GetDictionary ())")] NativeHandle Constructor (CGImage image, [NullAllowed] CIImageInitializationOptionsWithMetadata options); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("initWithCGImageSource:index:options:")] NativeHandle Constructor (CGImageSource source, nuint index, [NullAllowed] NSDictionary options); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Wrap ("this (source, index, options.GetDictionary ())")] NativeHandle Constructor (CGImageSource source, nuint index, CIImageInitializationOptionsWithMetadata options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'CIImage (CGImage)' instead.")] [Export ("initWithCGLayer:")] NativeHandle Constructor (CGLayer layer); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'CIImage (CGImage)' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("initWithCGLayer:options:")] NativeHandle Constructor (CGLayer layer, [NullAllowed] NSDictionary d); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this (layer, options.GetDictionary ())")] NativeHandle Constructor (CGLayer layer, [NullAllowed] CIImageInitializationOptions options); @@ -1866,25 +2021,25 @@ namespace CoreImage { [Wrap ("this (url, options.GetDictionary ())")] NativeHandle Constructor (NSUrl url, [NullAllowed] CIImageInitializationOptions options); - [iOS (11,0)] // IOSurface was not exposed before Xcode 9 - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] // IOSurface was not exposed before Xcode 9 + [TV (11, 0)] + [Mac (10, 13)] [Export ("initWithIOSurface:")] NativeHandle Constructor (IOSurface.IOSurface surface); - - [iOS (11,0)] // IOSurface was not exposed before Xcode 9 - [TV (11,0)] - [Mac (10,13)] + + [iOS (11, 0)] // IOSurface was not exposed before Xcode 9 + [TV (11, 0)] + [Mac (10, 13)] [Export ("initWithIOSurface:options:")] NativeHandle Constructor (IOSurface.IOSurface surface, [NullAllowed] NSDictionary options); - [iOS (11,0)] // IOSurface was not exposed before Xcode 9 - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] // IOSurface was not exposed before Xcode 9 + [TV (11, 0)] + [Mac (10, 13)] [Wrap ("this (surface, options.GetDictionary ())")] NativeHandle Constructor (IOSurface.IOSurface surface, [NullAllowed] CIImageInitializationOptions options); - [iOS(9,0)] + [iOS (9, 0)] [Export ("initWithCVImageBuffer:")] NativeHandle Constructor (CVImageBuffer imageBuffer); @@ -1892,62 +2047,74 @@ namespace CoreImage { [Export ("initWithCVImageBuffer:options:")] NativeHandle Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict); #else - [iOS(9,0)] - [Mac (10,4)] - [MacCatalyst (13,1)] - [TV (9,0)] + [iOS (9, 0)] + [Mac (10, 4)] + [MacCatalyst (13, 1)] + [TV (9, 0)] [Export ("initWithCVImageBuffer:options:")] NativeHandle Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict); - [iOS(9,0)] - [Mac (10,4)] - [MacCatalyst (13,1)] - [TV (9,0)] + [iOS (9, 0)] + [Mac (10, 4)] + [MacCatalyst (13, 1)] + [TV (9, 0)] [Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature) [Sealed] [Export ("initWithCVImageBuffer:options:")] NativeHandle Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict); #endif - [iOS(9,0)] + [iOS (9, 0)] [Wrap ("this (imageBuffer, options.GetDictionary ())")] NativeHandle Constructor (CVImageBuffer imageBuffer, [NullAllowed] CIImageInitializationOptions options); - [Mac (10,11)] + [Mac (10, 11)] [Export ("initWithCVPixelBuffer:")] NativeHandle Constructor (CVPixelBuffer buffer); - [Mac (10,11)] + [Mac (10, 11)] [Export ("initWithCVPixelBuffer:options:")] NativeHandle Constructor (CVPixelBuffer buffer, [NullAllowed] NSDictionary dict); - [Mac (10,11)] + [Mac (10, 11)] [Wrap ("this (buffer, options.GetDictionary ())")] NativeHandle Constructor (CVPixelBuffer buffer, [NullAllowed] CIImageInitializationOptions options); [Export ("initWithColor:")] NativeHandle Constructor (CIColor color); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("initWithMTLTexture:options:")] NativeHandle Constructor (IMTLTexture texture, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithBitmapImageRep:")] NativeHandle Constructor (NSImageRep imageRep); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("drawAtPoint:fromRect:operation:fraction:")] void Draw (CGPoint point, CGRect srcRect, NSCompositingOperation op, nfloat delta); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("drawInRect:fromRect:operation:fraction:")] void Draw (CGRect dstRect, CGRect srcRect, NSCompositingOperation op, nfloat delta); [Export ("imageByApplyingTransform:")] CIImage ImageByApplyingTransform (CGAffineTransform matrix); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("imageByApplyingTransform:highQualityDownsample:")] CIImage ImageByApplyingTransform (CGAffineTransform matrix, bool highQualityDownsample); @@ -1963,21 +2130,24 @@ namespace CoreImage { [Wrap ("WeakProperties")] CoreGraphics.CGImageProperties Properties { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("definition")] CIFilterShape Definition { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("kCIFormatRGBA16")] int FormatRGBA16 { get; } /* CIFormat = int */ [Field ("kCIFormatARGB8")] int FormatARGB8 { get; } /* CIFormat = int */ - + [Field ("kCIFormatRGBAh")] int FormatRGBAh { get; } /* CIFormat = int */ - [iOS (8,0)] + [iOS (8, 0)] [Field ("kCIFormatRGBAf")] int FormatRGBAf { get; } /* CIFormat = int */ @@ -1988,86 +2158,115 @@ namespace CoreImage { int FormatRGBA8 { get; } /* CIFormat = int */ [Field ("kCIFormatABGR8")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatABGR8 { get; } - + [Field ("kCIFormatA8")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatA8 { get; } - + [Field ("kCIFormatA16")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatA16 { get; } - + [Field ("kCIFormatAh")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatAh { get; } - + [Field ("kCIFormatAf")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatAf { get; } - + [Field ("kCIFormatR8")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatR8 { get; } - + [Field ("kCIFormatR16")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatR16 { get; } - + [Field ("kCIFormatRh")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRh { get; } - + [Field ("kCIFormatRf")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRf { get; } - + [Field ("kCIFormatRG8")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRG8 { get; } - + [Field ("kCIFormatRG16")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRG16 { get; } - + [Field ("kCIFormatRGh")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRGh { get; } - + [Field ("kCIFormatRGf")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] int FormatRGf { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatL8")] int FormatL8 { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatL16")] int FormatL16 { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLh")] int FormatLh { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLf")] int FormatLf { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLA8")] int FormatLA8 { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLA16")] int FormatLA16 { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLAh")] int FormatLAh { get; } - [iOS (10,0)][TV (10,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Field ("kCIFormatLAf")] int FormatLAf { get; } @@ -2083,7 +2282,7 @@ namespace CoreImage { [NoMac] [Wrap ("this (image, options.GetDictionary ())")] NativeHandle Constructor (UIImage image, [NullAllowed] CIImageInitializationOptions options); - + [Field ("kCIImageAutoAdjustFeatures"), Internal] NSString AutoAdjustFeaturesKey { get; } @@ -2096,150 +2295,161 @@ namespace CoreImage { [Export ("autoAdjustmentFiltersWithOptions:"), Internal] NSArray _GetAutoAdjustmentFilters ([NullAllowed] NSDictionary opts); - [Mac (10,12)] + [Mac (10, 12)] [Export ("regionOfInterestForImage:inRect:")] CGRect GetRegionOfInterest (CIImage im, CGRect r); // // iOS 8.0 // - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("imageByApplyingOrientation:")] CIImage CreateWithOrientation (CIImageOrientation orientation); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("imageTransformForOrientation:")] CGAffineTransform GetImageTransform (CIImageOrientation orientation); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("imageByClampingToExtent")] CIImage CreateByClampingToExtent (); - [iOS (8,0)] + [iOS (8, 0)] [Export ("imageByCompositingOverImage:")] CIImage CreateByCompositingOverImage (CIImage dest); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("imageByApplyingFilter:withInputParameters:")] CIImage CreateByFiltering (string filterName, [NullAllowed] NSDictionary inputParameters); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("imageByApplyingFilter:")] CIImage CreateByFiltering (string filterName); [iOS (11, 0)] - [TV (11,0)] - [Mac (10,13)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("imageBySamplingLinear")] CIImage CreateBySamplingLinear (); [iOS (11, 0)] - [TV (11,0)] - [Mac (10,13)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("imageBySamplingNearest")] CIImage CreateBySamplingNearest (); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("kCIImageAutoAdjustCrop"), Internal] NSString AutoAdjustCrop { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("kCIImageAutoAdjustLevel"), Internal] NSString AutoAdjustLevel { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("url")] NSUrl Url { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("colorSpace")] CGColorSpace ColorSpace { get; } - [iOS (9,0)] + [iOS (9, 0)] [Static, Internal] [Export ("imageWithImageProvider:size::format:colorSpace:options:")] CIImage FromProvider (ICIImageProvider provider, nuint width, nuint height, int format, [NullAllowed] CGColorSpace colorSpace, [NullAllowed] NSDictionary options); - - [iOS (9,0)] + + [iOS (9, 0)] [Internal] [Export ("initWithImageProvider:size::format:colorSpace:options:")] NativeHandle Constructor (ICIImageProvider provider, nuint width, nuint height, int f, [NullAllowed] CGColorSpace colorSpace, [NullAllowed] NSDictionary options); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("imageWithMTLTexture:options:")] [return: NullAllowed] CIImage FromMetalTexture (IMTLTexture texture, [NullAllowed] NSDictionary options); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByClampingToRect:")] CIImage CreateByClamping (CGRect rect); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByColorMatchingColorSpaceToWorkingSpace:")] [return: NullAllowed] CIImage CreateByColorMatchingColorSpaceToWorkingSpace (CGColorSpace colorSpace); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByColorMatchingWorkingSpaceToColorSpace:")] [return: NullAllowed] CIImage CreateByColorMatchingWorkingSpaceToColorSpace (CGColorSpace colorSpace); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByPremultiplyingAlpha")] CIImage CreateByPremultiplyingAlpha (); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByUnpremultiplyingAlpha")] CIImage CreateByUnpremultiplyingAlpha (); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageBySettingAlphaOneInExtent:")] CIImage CreateBySettingAlphaOne (CGRect extent); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageByApplyingGaussianBlurWithSigma:")] CIImage CreateByApplyingGaussianBlur (double sigma); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("imageBySettingProperties:")] CIImage CreateBySettingProperties (NSDictionary properties); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [NullAllowed, Export ("pixelBuffer")] CVPixelBuffer PixelBuffer { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [NullAllowed, Export ("CGImage")] CGImage CGImage { get; } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [NullAllowed, Export ("depthData")] AVDepthData DepthData { get; } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("imageByApplyingCGOrientation:")] CIImage CreateByApplyingOrientation (CGImagePropertyOrientation orientation); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("imageTransformForCGOrientation:")] CGAffineTransform GetImageTransform (CGImagePropertyOrientation orientation); @@ -2257,21 +2467,21 @@ namespace CoreImage { [NullAllowed, Export ("portraitEffectsMatte")] AVPortraitEffectsMatte PortraitEffectsMatte { get; } - [TV (12,0), iOS (12,0), Mac (10, 14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("initWithPortaitEffectsMatte:options:")] // selector typo, rdar filled 42894821 NativeHandle Constructor (AVPortraitEffectsMatte matte, [NullAllowed] NSDictionary options); - [TV (12,0), iOS (12,0), Mac (10, 14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("initWithPortaitEffectsMatte:")] // selector typo, rdar filled 42894821 NativeHandle Constructor (AVPortraitEffectsMatte matte); - [TV (12,0), iOS (12,0), Mac (10, 14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Static] [Export ("imageWithPortaitEffectsMatte:options:")] // selector typo, rdar filled 42894821 [return: NullAllowed] CIImage FromPortraitEffectsMatte (AVPortraitEffectsMatte matte, [NullAllowed] NSDictionary options); - [TV (12,0), iOS (12,0), Mac (10, 14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Static] [Export ("imageWithPortaitEffectsMatte:")] // selector typo, rdar filled 42894821 [return: NullAllowed] @@ -2279,25 +2489,25 @@ namespace CoreImage { // CIImage_AVSemanticSegmentationMatte - [TV (13,0), iOS (13,0), Mac (10,15)] + [TV (13, 0), iOS (13, 0), Mac (10, 15)] [NullAllowed, Export ("semanticSegmentationMatte")] AVSemanticSegmentationMatte SemanticSegmentationMatte { get; } - [TV (13,0), iOS (13,0), Mac (10,15)] + [TV (13, 0), iOS (13, 0), Mac (10, 15)] [Export ("initWithSemanticSegmentationMatte:options:")] NativeHandle Constructor (AVSemanticSegmentationMatte matte, [NullAllowed] NSDictionary options); - [TV (13,0), iOS (13,0), Mac (10,15)] + [TV (13, 0), iOS (13, 0), Mac (10, 15)] [Export ("initWithSemanticSegmentationMatte:")] NativeHandle Constructor (AVSemanticSegmentationMatte matte); - [TV (13,0), iOS (13,0), Mac (10,15)] + [TV (13, 0), iOS (13, 0), Mac (10, 15)] [Static] [Export ("imageWithSemanticSegmentationMatte:options:")] [return: NullAllowed] CIImage FromSemanticSegmentationMatte (AVSemanticSegmentationMatte matte, [NullAllowed] NSDictionary options); - [TV (13,0), iOS (13,0), Mac (10,15)] + [TV (13, 0), iOS (13, 0), Mac (10, 15)] [Static] [Export ("imageWithSemanticSegmentationMatte:")] [return: NullAllowed] @@ -2305,21 +2515,21 @@ namespace CoreImage { // CIImage_AVDepthData category - [TV (11, 0), iOS (11, 0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [Export ("initWithDepthData:options:")] NativeHandle Constructor (AVDepthData data, [NullAllowed] NSDictionary options); - [TV (11, 0), iOS (11, 0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [Export ("initWithDepthData:")] NativeHandle Constructor (AVDepthData data); - [TV (11, 0), iOS (11, 0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [Static] [Export ("imageWithDepthData:options:")] [return: NullAllowed] CIImage FromDepthData (AVDepthData data, [NullAllowed] NSDictionary options); - [TV (11, 0), iOS (11, 0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [Static] [Export ("imageWithDepthData:")] [return: NullAllowed] @@ -2327,68 +2537,89 @@ namespace CoreImage { // colors - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("blackImage", ArgumentSemantic.Strong)] CIImage BlackImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("whiteImage", ArgumentSemantic.Strong)] CIImage WhiteImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("grayImage", ArgumentSemantic.Strong)] CIImage GrayImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("redImage", ArgumentSemantic.Strong)] CIImage RedImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("greenImage", ArgumentSemantic.Strong)] CIImage GreenImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("blueImage", ArgumentSemantic.Strong)] CIImage BlueImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("cyanImage", ArgumentSemantic.Strong)] CIImage CyanImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("magentaImage", ArgumentSemantic.Strong)] CIImage MagentaImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("yellowImage", ArgumentSemantic.Strong)] CIImage YellowImage { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Static] [Export ("clearImage", ArgumentSemantic.Strong)] CIImage ClearImage { get; } - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("imageByConvertingWorkingSpaceToLab")] CIImage ConvertWorkingSpaceToLab (); - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("imageByConvertingLabToWorkingSpace")] CIImage ConvertLabToWorkingSpace (); } - interface ICIImageProcessorInput {} + interface ICIImageProcessorInput { } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Protocol] interface CIImageProcessorInput { [Abstract] @@ -2418,23 +2649,24 @@ namespace CoreImage { #if NET [Abstract] // @required but it was added in Xcode9 #endif - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("surface")] IOSurface.IOSurface Surface { get; } #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("digest")] ulong Digest { get; } } - interface ICIImageProcessorOutput {} + interface ICIImageProcessorOutput { } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Protocol] interface CIImageProcessorOutput { [Abstract] @@ -2468,39 +2700,39 @@ namespace CoreImage { #if NET [Abstract] // @required but it was added in Xcode9 #endif - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Export ("surface")] IOSurface.IOSurface Surface { get; } #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("digest")] ulong Digest { get; } } - [iOS (9,0)] + [iOS (9, 0)] [StrongDictionary ("CIImageProviderKeys")] interface CIImageProviderOptions { - NSObject TileSize { get;set; } + NSObject TileSize { get; set; } NSObject UserInfo { get; set; } } [Internal] [Static] - [iOS (9,0)] + [iOS (9, 0)] interface CIImageProviderKeys { [Field ("kCIImageProviderTileSize")] NSString TileSizeKey { get; } [Field ("kCIImageProviderUserInfo")] - NSString UserInfoKey { get; } + NSString UserInfoKey { get; } } - - interface ICIImageProvider {} + + interface ICIImageProvider { } // Informal protocol [Protocol (IsInformal = true)] @@ -2509,19 +2741,19 @@ namespace CoreImage { [Export ("provideImageData:bytesPerRow:origin::size::userInfo:")] unsafe void ProvideImageData (IntPtr data, nuint rowbytes, nuint x, nuint y, nuint width, nuint height, [NullAllowed] NSObject info); } - + delegate CGRect CIKernelRoiCallback (int /* int, not NSInteger */ index, CGRect rect); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // avoid crashes interface CIKernel { - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] [Static] [Export ("kernelsWithMetalString:error:")] [return: NullAllowed] - CIKernel[] FromMetalSource (string source, [NullAllowed] out NSError error); + CIKernel [] FromMetalSource (string source, [NullAllowed] out NSError error); [Deprecated (PlatformName.iOS, 12, 0)] [Deprecated (PlatformName.MacOSX, 10, 14)] @@ -2535,44 +2767,48 @@ namespace CoreImage { [return: NullAllowed] CIKernel FromProgramSingle (string coreImageShaderProgram); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Export ("kernelWithFunctionName:fromMetalLibraryData:error:")] [return: NullAllowed] CIKernel FromFunction (string name, NSData data, [NullAllowed] out NSError error); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Export ("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:")] [return: NullAllowed] CIKernel FromFunction (string name, NSData data, CIFormat format, [NullAllowed] out NSError error); - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("kernelNamesFromMetalLibraryData:")] - string[] GetKernelNamesFromMetalLibrary (NSData data); + string [] GetKernelNamesFromMetalLibrary (NSData data); [Export ("name")] string Name { get; } - [NoiOS][NoWatch][NoTV][Mac (10,4)][MacCatalyst (13,1)] + [NoiOS] + [NoWatch] + [NoTV] + [Mac (10, 4)] + [MacCatalyst (13, 1)] [Export ("setROISelector:")] void SetRegionOfInterestSelector (Selector aMethod); - [Mac (10,11)] + [Mac (10, 11)] [Export ("applyWithExtent:roiCallback:arguments:")] [return: NullAllowed] CIImage ApplyWithExtent (CGRect extent, CIKernelRoiCallback callback, [NullAllowed] NSObject [] args); } - [iOS (8,0), Mac(10,11)] + [iOS (8, 0), Mac (10, 11)] [BaseType (typeof (CIKernel))] [DisableDefaultCtor] // returns a nil handle -> instances of this type are returned from `kernel[s]WithString:` interface CIColorKernel { @@ -2589,7 +2825,8 @@ namespace CoreImage { CIColorKernel FromProgramSingle (string coreImageShaderProgram); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (CIKernel))] [DisableDefaultCtor] // returns a nil handle -> instances of this type are returned from `kernel[s]WithString:` interface CIWarpKernel { @@ -2606,7 +2843,7 @@ namespace CoreImage { CIWarpKernel FromProgramSingle (string coreImageShaderProgram); } - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // does not work in iOS 11 beta 4 interface CIImageAccumulator { @@ -2633,7 +2870,7 @@ namespace CoreImage { [Export ("imageAccumulatorWithExtent:format:colorSpace:")] [return: NullAllowed] CIImageAccumulator FromRectangle (CGRect extent, CIFormat format, CGColorSpace colorSpace); - + [Export ("initWithExtent:format:")] NativeHandle Constructor (CGRect rectangle, CIFormat format); @@ -2645,7 +2882,7 @@ namespace CoreImage { [Export ("initWithExtent:format:colorSpace:")] NativeHandle Constructor (CGRect extent, CIFormat format, CGColorSpace colorSpace); - + [Export ("extent")] CGRect Extent { get; } @@ -2663,10 +2900,13 @@ namespace CoreImage { CIImage Image { get; set; } } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] interface CIPlugIn { - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'LoadNonExecutablePlugIns' for non-executable plugins instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'LoadNonExecutablePlugIns' for non-executable plugins instead.")] [Static] [Export ("loadAllPlugIns")] void LoadAllPlugIns (); @@ -2675,7 +2915,7 @@ namespace CoreImage { [Export ("loadNonExecutablePlugIns")] void LoadNonExecutablePlugIns (); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("loadNonExecutablePlugIn:")] void LoadNonExecutablePlugIn (NSUrl url); @@ -2686,7 +2926,7 @@ namespace CoreImage { void LoadPlugIn (NSUrl pluginUrl, bool allowNonExecutable); } - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CISampler : NSCopying { @@ -2724,14 +2964,14 @@ namespace CoreImage { [Field ("kCISamplerWrapClamp", "+CoreImage"), Internal] NSString WrapClamp { get; } - + [Field ("kCISamplerFilterNearest", "+CoreImage"), Internal] NSString FilterNearest { get; } [Field ("kCISamplerFilterLinear", "+CoreImage"), Internal] NSString FilterLinear { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCISamplerColorSpace", "+CoreImage"), Internal] NSString ColorSpace { get; } } @@ -2777,21 +3017,21 @@ namespace CoreImage { [Export ("vectorWithString:")] CIVector FromString (string representation); - [Mac (10,9)] + [Mac (10, 9)] [Export ("initWithCGPoint:")] NativeHandle Constructor (CGPoint p); - [Mac (10,9)] + [Mac (10, 9)] [Export ("initWithCGRect:")] NativeHandle Constructor (CGRect r); - [Mac (10,9)] + [Mac (10, 9)] [Export ("initWithCGAffineTransform:")] NativeHandle Constructor (CGAffineTransform r); - - + + [Export ("initWithX:")] - NativeHandle Constructor(nfloat x); + NativeHandle Constructor (nfloat x); [Export ("initWithX:Y:")] NativeHandle Constructor (nfloat x, nfloat y); @@ -2823,15 +3063,15 @@ namespace CoreImage { [Export ("W")] nfloat W { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("CGPointValue")] CGPoint Point { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("CGRectValue")] CGRect Rectangle { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("CGAffineTransformValue")] CGAffineTransform AffineTransform { get; } @@ -2874,49 +3114,49 @@ namespace CoreImage { [Field ("CIDetectorMinFeatureSize"), Internal] NSString MinFeatureSize { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("CIDetectorMaxFeatureCount"), Internal] NSString MaxFeatureCount { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CIDetectorEyeBlink"), Internal] NSString EyeBlink { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("CIDetectorSmile"), Internal] NSString Smile { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("CIDetectorAspectRatio")] NSString AspectRatio { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("CIDetectorFocalLength")] NSString FocalLength { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("CIDetectorTypeQRCode")] NSString TypeQRCode { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("CIDetectorTypeRectangle")] NSString TypeRectangle { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("CIDetectorNumberOfAngles")] NSString NumberOfAngles { get; } - [iOS (9,0), Mac(10, 11)] + [iOS (9, 0), Mac (10, 11)] [Field ("CIDetectorReturnSubFeatures")] NSString ReturnSubFeatures { get; } - - [iOS (9,0), Mac(10, 11)] + + [iOS (9, 0), Mac (10, 11)] [Field ("CIDetectorTypeText")] NSString TypeText { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CIFeature { @@ -2929,15 +3169,18 @@ namespace CoreImage { [Field ("CIFeatureTypeFace")] NSString TypeFace { get; } - [iOS (9,0)][Mac (10,10)] + [iOS (9, 0)] + [Mac (10, 10)] [Field ("CIFeatureTypeRectangle")] NSString TypeRectangle { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("CIFeatureTypeQRCode")] NSString TypeQRCode { get; } - - [iOS (9,0)][Mac (10,11)] + + [iOS (9, 0)] + [Mac (10, 11)] [Field ("CIFeatureTypeText")] NSString TypeText { get; } } @@ -2947,60 +3190,60 @@ namespace CoreImage { interface CIFaceFeature { [Export ("hasLeftEyePosition", ArgumentSemantic.Assign)] bool HasLeftEyePosition { get; } - + [Export ("leftEyePosition", ArgumentSemantic.Assign)] CGPoint LeftEyePosition { get; } - + [Export ("hasRightEyePosition", ArgumentSemantic.Assign)] bool HasRightEyePosition { get; } - + [Export ("rightEyePosition", ArgumentSemantic.Assign)] CGPoint RightEyePosition { get; } - + [Export ("hasMouthPosition", ArgumentSemantic.Assign)] bool HasMouthPosition { get; } - + [Export ("mouthPosition", ArgumentSemantic.Assign)] CGPoint MouthPosition { get; } [Export ("hasTrackingID", ArgumentSemantic.Assign)] bool HasTrackingId { get; } - + [Export ("trackingID", ArgumentSemantic.Assign)] int TrackingId { get; } /* int, not NSInteger */ - + [Export ("hasTrackingFrameCount", ArgumentSemantic.Assign)] bool HasTrackingFrameCount { get; } [Export ("trackingFrameCount", ArgumentSemantic.Assign)] int TrackingFrameCount { get; } /* int, not NSInteger */ - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("bounds", ArgumentSemantic.Assign)] CGRect Bounds { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("faceAngle", ArgumentSemantic.Assign)] float FaceAngle { get; } /* float, not CGFloat */ - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("hasFaceAngle", ArgumentSemantic.Assign)] bool HasFaceAngle { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("hasSmile", ArgumentSemantic.Assign)] bool HasSmile { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("leftEyeClosed", ArgumentSemantic.Assign)] bool LeftEyeClosed { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("rightEyeClosed", ArgumentSemantic.Assign)] bool RightEyeClosed { get; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (CIFeature))] interface CIRectangleFeature { [Export ("bounds", ArgumentSemantic.UnsafeUnretained)] @@ -3019,8 +3262,8 @@ namespace CoreImage { CGPoint BottomRight { get; } } - [iOS (8,0)] - [Mac (10,12)] + [iOS (8, 0)] + [Mac (10, 12)] [BaseType (typeof (CIFeature))] partial interface CIQRCodeFeature : NSSecureCoding, NSCopying { @@ -3043,15 +3286,15 @@ namespace CoreImage { [NullAllowed] string MessageString { get; } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [NullAllowed, Export ("symbolDescriptor")] CIQRCodeDescriptor SymbolDescriptor { get; } } - [iOS (9,0)] - [Mac (10,12)] + [iOS (9, 0)] + [Mac (10, 12)] [BaseType (typeof (CIFeature))] interface CITextFeature { [Export ("bounds")] @@ -3071,16 +3314,17 @@ namespace CoreImage { [Export ("subFeatures")] [NullAllowed] - CIFeature[] SubFeatures { get; } + CIFeature [] SubFeatures { get; } } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [BaseType (typeof (NSObject))] interface CIImageProcessorKernel { [Static] [Export ("processWithInputs:arguments:output:error:")] - bool Process ([NullAllowed] ICIImageProcessorInput[] inputs, [NullAllowed] NSDictionary arguments, ICIImageProcessorOutput output, out NSError error); + bool Process ([NullAllowed] ICIImageProcessorInput [] inputs, [NullAllowed] NSDictionary arguments, ICIImageProcessorOutput output, out NSError error); [Static] [Export ("roiForInput:arguments:outputRect:")] @@ -3101,19 +3345,19 @@ namespace CoreImage { [Static] [Export ("applyWithExtent:inputs:arguments:error:")] [return: NullAllowed] - CIImage Apply (CGRect extent, [NullAllowed] CIImage[] inputs, [NullAllowed] NSDictionary args, out NSError error); + CIImage Apply (CGRect extent, [NullAllowed] CIImage [] inputs, [NullAllowed] NSDictionary args, out NSError error); - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Export ("outputIsOpaque")] bool OutputIsOpaque { get; } } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIFilter))] interface CIAccordionFoldTransition : CIAccordionFoldTransitionProtocol { @@ -3175,32 +3419,32 @@ namespace CoreImage { CGAffineTransform Transform { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaAverage")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaAverage")] interface CIAreaAverageProtocol : CIFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIReductionFilter))] interface CIAreaAverage { [CoreImageFilterProperty ("outputImageNonMPS")] CIImage OutputImageNonMps { get; } - [iOS (13,4)] + [iOS (13, 4)] [CoreImageFilterProperty ("outputImageMPS")] CIImage OutputImageMps { get; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaReductionFilter")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaReductionFilter")] interface CIAreaReductionFilterProtocol : CIFilterProtocol { [Abstract] @@ -3212,11 +3456,11 @@ namespace CoreImage { CGRect InputExtent { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaHistogram")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaHistogram")] interface CIAreaHistogramProtocol : CIAreaReductionFilterProtocol { [Abstract] @@ -3229,7 +3473,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (CIFilter))] interface CIAreaHistogram : CIAreaHistogramProtocol { @@ -3246,7 +3490,10 @@ namespace CoreImage { CIImage OutputImageNonMps { get; } [Mac (10, 5)] - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [CoreImageFilterProperty ("outputImageMPS")] CIImage OutputImageMps { get; } @@ -3256,7 +3503,7 @@ namespace CoreImage { [CoreImageFilter] [Abstract] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIReductionFilter { @@ -3267,58 +3514,58 @@ namespace CoreImage { CIVector Extent { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMaximum")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMaximum")] interface CIAreaMaximumProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter (StringCtorVisibility = MethodAttributes.Public)] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIReductionFilter))] interface CIAreaMaximum : CIAreaMaximumProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMaximumAlpha")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMaximumAlpha")] interface CIAreaMaximumAlphaProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIReductionFilter))] interface CIAreaMaximumAlpha : CIAreaMaximumAlphaProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMinimum")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMinimum")] interface CIAreaMinimumProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIReductionFilter))] interface CIAreaMinimum : CIAreaReductionFilterProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMinimumAlpha")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMinimumAlpha")] interface CIAreaMinimumAlphaProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIReductionFilter))] interface CIAreaMinimumAlpha : CIAreaReductionFilterProtocol { } @@ -3332,8 +3579,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CICodeGenerator))] interface CIAztecCodeGenerator : CIAztecCodeGeneratorProtocol { @@ -3372,8 +3619,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIBlendWithMask))] interface CIBlendWithAlphaMask { } @@ -3396,7 +3643,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIBoxBlur : CIBoxBlurProtocol { } @@ -3419,10 +3666,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIBumpDistortion")] interface CIBumpDistortionProtocol : CIFilterProtocol { @@ -3448,10 +3695,10 @@ namespace CoreImage { interface CIBumpDistortion : CIBumpDistortionProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIBumpDistortionLinear")] interface CIBumpDistortionLinearProtocol : CIFilterProtocol { @@ -3492,10 +3739,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CICircleSplashDistortion")] interface CICircleSplashDistortionProtocol : CIFilterProtocol { @@ -3543,10 +3790,10 @@ namespace CoreImage { interface CICircularScreen : CICircularScreenProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CICircularWrap")] interface CICircularWrapProtocol : CIFilterProtocol { @@ -3568,7 +3815,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CICircularWrap : CICircularWrapProtocol { @@ -3580,8 +3827,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] - [BaseType (typeof (CIFilter), Name="CICMYKHalftone")] + [iOS (9, 0)] + [BaseType (typeof (CIFilter), Name = "CICMYKHalftone")] interface CICmykHalftone : CICmykHalftoneProtocol { #if !NET @@ -3597,8 +3844,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CICodeGenerator))] interface CICode128BarcodeGenerator : CICode128BarcodeGeneratorProtocol { @@ -3629,8 +3876,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIFilter))] interface CIColorClamp : CIColorClampProtocol { @@ -3653,8 +3900,8 @@ namespace CoreImage { } [CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)] - [iOS (7,0)] // not part of the attributes dictionary -> [NoiOS] is generated - [Mac (10,9)] // not part of the attributes dictionary -> [NoMac] is generated + [iOS (7, 0)] // not part of the attributes dictionary -> [NoiOS] is generated + [Mac (10, 9)] // not part of the attributes dictionary -> [NoMac] is generated [BaseType (typeof (CIFilter))] interface CIColorCrossPolynomial : CIColorCrossPolynomialProtocol { } @@ -3665,8 +3912,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIColorCube))] interface CIColorCubeWithColorSpace : CIColorCubeWithColorSpaceProtocol { } @@ -3688,7 +3935,7 @@ namespace CoreImage { [CoreImageFilter] [BaseType (typeof (CIFilter))] - interface CIColorMatrix : CIColorMatrixProtocol { + interface CIColorMatrix : CIColorMatrixProtocol { } [CoreImageFilter] @@ -3697,8 +3944,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIColorCrossPolynomial))] interface CIColorPolynomial : CIColorPolynomialProtocol { } @@ -3708,23 +3955,23 @@ namespace CoreImage { interface CIColorPosterize : CIColorPosterizeProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIColumnAverage")] interface CIColumnAverageProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] - [Mac (10,9)] + [iOS (9, 0)] + [Mac (10, 9)] [BaseType (typeof (CIReductionFilter))] interface CIColumnAverage : CIColumnAverageProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIComicEffect : CIComicEffectProtocol { } @@ -3753,36 +4000,36 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIConvolutionCore))] interface CIConvolution3X3 { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIConvolutionCore))] interface CIConvolution5X5 { } [CoreImageFilter] - [iOS (9,0)] - [Mac (10,9)] + [iOS (9, 0)] + [Mac (10, 9)] [BaseType (typeof (CIConvolutionCore))] interface CIConvolution7X7 { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIConvolutionCore))] interface CIConvolution9Horizontal { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIConvolutionCore))] interface CIConvolution9Vertical { } @@ -3819,7 +4066,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CICrystallize : CICrystallizeProtocol { @@ -3841,7 +4088,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIDiscBlur : CIDiscBlurProtocol { } @@ -3861,10 +4108,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIDisplacementDistortion")] interface CIDisplacementDistortionProtocol : CIFilterProtocol { @@ -3882,7 +4129,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIDisplacementDistortion : CIDisplacementDistortionProtocol { } @@ -3893,8 +4140,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIBlendFilter))] interface CIDivideBlendMode { } @@ -3904,10 +4151,10 @@ namespace CoreImage { interface CIDotScreen : CIDotScreenProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIDroste")] interface CIDrosteProtocol : CIFilterProtocol { @@ -3941,7 +4188,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIDroste : CIDrosteProtocol { @@ -3957,13 +4204,13 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIEdges : CIEdgesProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIEdgeWork : CIEdgeWorkProtocol { } @@ -4070,10 +4317,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIGlassDistortion")] interface CIGlassDistortionProtocol : CIFilterProtocol { @@ -4095,7 +4342,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (CIFilter))] interface CIGlassDistortion : CIGlassDistortionProtocol { @@ -4106,10 +4353,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIGlassLozenge")] interface CIGlassLozengeProtocol : CIFilterProtocol { @@ -4135,7 +4382,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIGlassLozenge : CIGlassLozengeProtocol { @@ -4171,13 +4418,13 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIHeightFieldFromMask : CIHeightFieldFromMaskProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIHexagonalPixellate : CIHexagonalPixellateProtocol { @@ -4193,10 +4440,10 @@ namespace CoreImage { interface CIHighlightShadowAdjust : CIHighlightShadowAdjustProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIHistogramDisplay")] interface CIHistogramDisplayProtocol : CIFilterProtocol { @@ -4218,7 +4465,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] + [iOS (8, 0)] // incorrect version string for OSX: '10.?' Double-check documentation [BaseType (typeof (CIFilter))] interface CIHistogramDisplayFilter : CIHistogramDisplayProtocol { @@ -4236,10 +4483,10 @@ namespace CoreImage { // float LowLimit { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIHoleDistortion")] interface CIHoleDistortionProtocol : CIFilterProtocol { @@ -4272,7 +4519,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIKaleidoscope : CIKaleidoscopeProtocol { @@ -4293,7 +4540,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CILenticularHaloGenerator : CILenticularHaloGeneratorProtocol { @@ -4309,10 +4556,10 @@ namespace CoreImage { interface CILightenBlendMode { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CILightTunnel")] interface CILightTunnelProtocol : CIFilterProtocol { @@ -4334,7 +4581,7 @@ namespace CoreImage { } [CoreImageFilter] - [Mac (10,11)] + [Mac (10, 11)] [BaseType (typeof (CIFilter))] interface CILightTunnel : CILightTunnelProtocol { @@ -4346,15 +4593,15 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIBlendFilter))] interface CILinearBurnBlendMode { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIBlendFilter))] interface CILinearDodgeBlendMode { } @@ -4375,14 +4622,14 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (CIFilter))] interface CILinearToSRGBToneCurve : CILinearToSrgbToneCurveProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CILineOverlay : CILineOverlayProtocol { } @@ -4413,7 +4660,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIMedianFilter : CIMedianProtocol { } @@ -4439,7 +4686,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,3)] + [iOS (8, 3)] [BaseType (typeof (CILinearBlur))] interface CIMotionBlur : CIMotionBlurProtocol { } @@ -4455,13 +4702,13 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CINoiseReduction : CINoiseReductionProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CITileFilter))] interface CIOpTile : CIOpTileProtocol { } @@ -4472,7 +4719,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CITransitionFilter))] interface CIPageCurlTransition : CIPageCurlTransitionProtocol { @@ -4483,7 +4730,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIPageCurlWithShadowTransition : CIPageCurlWithShadowTransitionProtocol { @@ -4504,15 +4751,15 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CITileFilter))] interface CIParallelogramTile : CIParallelogramTileProtocol { } [CoreImageFilter] - [iOS (9,0)] - [Mac (10,11)] - [BaseType (typeof (CICodeGenerator), Name="CIPDF417BarcodeGenerator")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (CICodeGenerator), Name = "CIPDF417BarcodeGenerator")] interface CIPdf417BarcodeGenerator : CIPdf417BarcodeGeneratorProtocol { #if !NET [Obsolete ("Use 'InputCorrectionLevel' instead.")] @@ -4545,8 +4792,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIPerspectiveTransform))] interface CIPerspectiveCorrection : CIPerspectiveCorrectionProtocol { } @@ -4599,7 +4846,7 @@ namespace CoreImage { } [CoreImageFilter] - [Mac (10,11)] + [Mac (10, 11)] [BaseType (typeof (CIPerspectiveTransform))] interface CIPerspectiveTransformWithExtent : CIPerspectiveTransformWithExtentProtocol { #if !NET @@ -4610,73 +4857,73 @@ namespace CoreImage { } [CoreImageFilter (StringCtorVisibility = MethodAttributes.Public)] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Abstract] [BaseType (typeof (CIFilter))] interface CIPhotoEffect : CIPhotoEffectProtocol { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectChrome { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectFade { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectInstant { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectMono { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectNoir { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectProcess { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectTonal { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIPhotoEffect))] interface CIPhotoEffectTransfer { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIPinchDistortion")] interface CIPinchDistortionProtocol : CIFilterProtocol { @@ -4706,8 +4953,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIBlendFilter))] interface CIPinLightBlendMode { } @@ -4723,7 +4970,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIPointillize : CIPointillizeProtocol { #if !NET @@ -4734,8 +4981,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CICodeGenerator))] interface CIQRCodeGenerator : CIQRCodeGeneratorProtocol { @@ -4760,7 +5007,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CITransitionFilter))] interface CIRippleTransition : CIRippleTransitionProtocol { #if !NET @@ -4774,16 +5021,16 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIRowAverage")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIRowAverage")] interface CIRowAverageProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIRowAverage : CIRowAverageProtocol { @@ -4810,7 +5057,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIShadedMaterial : CIShadedMaterialProtocol { } @@ -4831,7 +5078,7 @@ namespace CoreImage { } [CoreImageFilter] - [Mac (10,11)] + [Mac (10, 11)] [BaseType (typeof (CILinearGradient))] interface CISmoothLinearGradient : CISmoothLinearGradientProtocol { #if !NET @@ -4871,20 +5118,20 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CISpotColor : CISpotColorProtocol { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CISpotLight : CISpotLightProtocol { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (CIFilter))] interface CISRGBToneCurveToLinear : CISrgbToneCurveToLinearProtocol { } @@ -4904,10 +5151,10 @@ namespace CoreImage { interface CIStraightenFilter : CIStraightenProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIStretchCrop")] interface CIStretchCropProtocol : CIFilterProtocol { @@ -4929,7 +5176,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIStretchCrop : CIStretchCropProtocol { @@ -4951,8 +5198,8 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (CIBlendFilter))] interface CISubtractBlendMode { } @@ -5008,10 +5255,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CITorusLensDistortion")] interface CITorusLensDistortionProtocol : CIFilterProtocol { @@ -5037,7 +5284,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CITorusLensDistortion : CITorusLensDistortionProtocol { @@ -5049,7 +5296,7 @@ namespace CoreImage { } [CoreImageFilter] - [Mac (10,11)] + [Mac (10, 11)] [BaseType (typeof (CIFilter))] interface CITriangleKaleidoscope : CITriangleKaleidoscopeProtocol { #if !NET @@ -5060,7 +5307,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CITileFilter))] interface CITriangleTile : CITriangleTileProtocol { } @@ -5070,10 +5317,10 @@ namespace CoreImage { interface CITwelvefoldReflectedTile : CITwelvefoldReflectedTileProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CITwirlDistortion")] interface CITwirlDistortionProtocol : CIFilterProtocol { @@ -5113,14 +5360,14 @@ namespace CoreImage { } [CoreImageFilter] - [Mac (10,9)] + [Mac (10, 9)] [BaseType (typeof (CIFilter))] interface CIVignette : CIVignetteProtocol { } [CoreImageFilter] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (CIFilter))] interface CIVignetteEffect : CIVignetteEffectProtocol { @@ -5131,10 +5378,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIVortexDistortion")] interface CIVortexDistortionProtocol : CIFilterProtocol { @@ -5169,7 +5416,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (8,3)] + [iOS (8, 3)] [BaseType (typeof (CIFilter))] interface CIZoomBlur : CIZoomBlurProtocol { #if !NET @@ -5180,7 +5427,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CIDepthOfField : CIDepthOfFieldProtocol { @@ -5198,7 +5445,7 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CIFilter))] interface CISunbeamsGenerator : CISunbeamsGeneratorProtocol { #if !NET @@ -5219,18 +5466,18 @@ namespace CoreImage { interface CIFaceBalance { } - [iOS (9,3)] - [TV (9,2)] - [Mac (10,10)] + [iOS (9, 3)] + [TV (9, 2)] + [Mac (10, 10)] [CoreImageFilter] [BaseType (typeof (CIFilter))] interface CIMaskedVariableBlur : CIMaskedVariableBlurProtocol { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CIClamp { @@ -5242,17 +5489,17 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CIHueSaturationValueGradient : CIHueSaturationValueGradientProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CINinePartStretched")] interface CINinePartStretchedProtocol : CIFilterProtocol { @@ -5274,9 +5521,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CINinePartStretched : CINinePartStretchedProtocol { @@ -5295,10 +5542,10 @@ namespace CoreImage { #endif } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CINinePartTiled")] interface CINinePartTiledProtocol : CIFilterProtocol { @@ -5327,9 +5574,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CINinePartTiled : CINinePartTiledProtocol { @@ -5349,33 +5596,33 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] // filter says 10.11 but it fails when I run it on El Capitan - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] // filter says 10.11 but it fails when I run it on El Capitan + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CIThermal : CIThermalProtocol { } [CoreImageFilter] - [iOS (10,0)] - [Mac (10,12)] // filter says 10.11 but it fails when I run it on El Capitan - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] // filter says 10.11 but it fails when I run it on El Capitan + [TV (10, 0)] [BaseType (typeof (CIFilter))] interface CIXRay : CIXRayProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMinMaxRed")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMinMaxRed")] interface CIAreaMinMaxRedProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIAreaMaximum))] interface CIAreaMinMaxRed : CIAreaMinMaxRedProtocol { [CoreImageFilterProperty ("inputExtent")] @@ -5384,9 +5631,9 @@ namespace CoreImage { [CoreImageFilter] [Abstract] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIImageGenerator { [CoreImageFilterProperty ("inputScaleFactor")] @@ -5394,17 +5641,17 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIImageGenerator))] interface CIAttributedTextImageGenerator : CIAttributedTextImageGeneratorProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIBarcodeGenerator : CIBarcodeGeneratorProtocol { @@ -5425,9 +5672,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] // Maybe 'typeof (CIScaleTransform)' (shared 'Scale' and 'AspectRatio' property). // It's possible to add ours but it can bite us back in the future if Apple introduce the same with different properties. [BaseType (typeof (CIFilter))] @@ -5453,33 +5700,33 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CILinearBlur))] interface CIBokehBlur : CIBokehBlurProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] // Could almost be typeof 'CIColorCube' but property is 'inputCube0Data' not 'inputCubeData' interface CIColorCubesMixedWithMask : CIColorCubesMixedWithMaskProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIColorCurves : CIColorCurvesProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIDepthBlurEffect { @@ -5533,70 +5780,74 @@ namespace CoreImage { [CoreImageFilterProperty ("inputAuxDataMetadata")] CGImageMetadata AuxDataMetadata { get; set; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [CoreImageFilterProperty ("inputGainMap")] CIImage GainMap { get; set; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [CoreImageFilterProperty ("inputGlassesImage")] CIImage GlassesImage { get; set; } } [CoreImageFilter] [Abstract] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] - interface CIDepthDisparityConverter {} + interface CIDepthDisparityConverter { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIDepthDisparityConverter))] interface CIDepthToDisparity : CIDepthToDisparityProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIDepthDisparityConverter))] interface CIDisparityToDepth : CIDisparityToDepthProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIEdgePreserveUpsampleFilter : CIEdgePreserveUpsampleProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CILabDeltaE : CILabDeltaEProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIImageGenerator))] interface CITextImageGenerator : CITextImageGeneratorProtocol { } [CoreImageFilter] [Abstract] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIFilter))] interface CIMorphology { [CoreImageFilterProperty ("inputRadius")] @@ -5604,55 +5855,55 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIMorphology))] interface CIMorphologyGradient : CIMorphologyGradientProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIMorphology))] interface CIMorphologyMaximum : CIMorphologyMaximumProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIMorphology))] interface CIMorphologyMinimum : CIMorphologyMinimumProtocol { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBlendWithMask))] - interface CIBlendWithBlueMask {} + interface CIBlendWithBlueMask { } [CoreImageFilter] - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBlendWithMask))] - interface CIBlendWithRedMask {} + interface CIBlendWithRedMask { } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [Abstract] [BaseType (typeof (NSObject))] interface CIBarcodeDescriptor : NSSecureCoding, NSCopying { // empty } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBarcodeDescriptor))] interface CIQRCodeDescriptor { @@ -5677,9 +5928,9 @@ namespace CoreImage { CIQRCodeDescriptor CreateDescriptor (NSData errorCorrectedPayload, nint symbolVersion, byte maskPattern, CIQRCodeErrorCorrectionLevel errorCorrectionLevel); } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBarcodeDescriptor))] interface CIAztecCodeDescriptor { @@ -5704,9 +5955,9 @@ namespace CoreImage { CIAztecCodeDescriptor CreateDescriptor (NSData errorCorrectedPayload, bool isCompact, nint layerCount, nint dataCodewordCount); } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBarcodeDescriptor), Name = "CIPDF417CodeDescriptor")] interface CIPdf417CodeDescriptor { @@ -5731,9 +5982,9 @@ namespace CoreImage { CIPdf417CodeDescriptor CreateDescriptor (NSData errorCorrectedPayload, bool isCompact, nint rowCount, nint columnCount); } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIBarcodeDescriptor))] interface CIDataMatrixCodeDescriptor { @@ -5758,9 +6009,9 @@ namespace CoreImage { CIDataMatrixCodeDescriptor CreateDescriptor (NSData errorCorrectedPayload, nint rowCount, nint columnCount, CIDataMatrixCodeEccVersion eccVersion); } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (CIColorKernel))] [DisableDefaultCtor] // Handle is nil for `init` interface CIBlendKernel { @@ -5776,7 +6027,9 @@ namespace CoreImage { [return: NullAllowed] CIImage Apply (CIImage foreground, CIImage background); - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("applyWithForeground:background:colorSpace:")] [return: NullAllowed] CIImage Apply (CIImage foreground, CIImage background, CGColorSpace colorSpace); @@ -5948,9 +6201,9 @@ namespace CoreImage { CIBlendKernel LighterColor { get; } } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Handle is null if created thru `init` interface CIRenderDestination { @@ -6001,9 +6254,9 @@ namespace CoreImage { bool BlendsInDestinationColorSpace { get; set; } } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no docs, but only returned from CIRenderTask.WaitUntilCompleted. Handle is null if created thru `init` interface CIRenderInfo { @@ -6018,9 +6271,9 @@ namespace CoreImage { nint PixelsProcessed { get; } } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no docs, but only returned from CIContext.StartTaskToRender. Handle is null if created thru `init` interface CIRenderTask { @@ -6029,9 +6282,9 @@ namespace CoreImage { CIRenderInfo WaitUntilCompleted ([NullAllowed] out NSError error); } - [iOS (11,0)] - [Mac (10,13)] - [TV (11,0)] + [iOS (11, 0)] + [Mac (10, 13)] + [TV (11, 0)] [Category] [BaseType (typeof (CIContext))] interface CIContext_CIRenderDestination { @@ -6052,9 +6305,9 @@ namespace CoreImage { CIRenderTask StartTaskToClear (CIRenderDestination destination, [NullAllowed] out NSError error); } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Internal] partial interface CIImageRepresentationKeys { @@ -6079,36 +6332,46 @@ namespace CoreImage { [Field ("kCIImageRepresentationPortraitEffectsMatteImage")] NSString PortraitEffectsMatteImageKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageRepresentationAVSemanticSegmentationMattes")] NSString SemanticSegmentationMattesKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageRepresentationSemanticSegmentationSkinMatteImage")] NSString SemanticSegmentationSkinMatteImageKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageRepresentationSemanticSegmentationHairMatteImage")] NSString SemanticSegmentationHairMatteImageKey { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("kCIImageRepresentationSemanticSegmentationTeethMatteImage")] NSString SemanticSegmentationTeethMatteImageKey { get; } - [iOS (14,1)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCIImageRepresentationSemanticSegmentationGlassesMatteImage")] NSString SemanticSegmentationGlassesMatteImage { get; } - [iOS (14,3), TV (14,3), Mac (11,1)] - [MacCatalyst (14,3)] + [iOS (14, 3), TV (14, 3), Mac (11, 1)] + [MacCatalyst (14, 3)] [Field ("kCIImageRepresentationSemanticSegmentationSkyMatteImage")] NSString SemanticSegmentationSkyMatteImage { get; } } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [StrongDictionary ("CIImageRepresentationKeys")] interface CIImageRepresentationOptions { @@ -6124,56 +6387,64 @@ namespace CoreImage { CIImage PortraitEffectsMatteImage { get; set; } [TV (12, 0), iOS (12, 0), Mac (10, 14)] - AVPortraitEffectsMatte AVPortraitEffectsMatte { get; set; } + AVPortraitEffectsMatte AVPortraitEffectsMatte { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] - AVSemanticSegmentationMatte[] SemanticSegmentationMattes { get; set; } + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] + AVSemanticSegmentationMatte [] SemanticSegmentationMattes { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] CIImage SemanticSegmentationSkinMatteImage { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] CIImage SemanticSegmentationHairMatteImage { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] CIImage SemanticSegmentationTeethMatteImage { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIAreaMinMax")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIAreaMinMax")] interface CIAreaMinMaxProtocol : CIAreaReductionFilterProtocol { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIReductionFilter))] interface CIAreaMinMax : CIAreaReductionFilterProtocol { [CoreImageFilterProperty ("outputImageNonMPS")] CIImage OutputImageNonMps { get; } - [iOS (13,4)] + [iOS (13, 4)] [CoreImageFilterProperty ("outputImageMPS")] CIImage OutputImageMps { get; } } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CIDither : CIDitherProtocol { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CIGuidedFilter { @@ -6191,25 +6462,25 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CIMeshGenerator : CIMeshGeneratorProtocol { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CIMix : CIMixProtocol { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CISampleNearest { @@ -6218,9 +6489,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CICameraCalibrationLensCorrection { @@ -6235,9 +6506,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CICoreMLModelFilter { @@ -6255,25 +6526,25 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (12,0)] - [TV (12,0)] - [Mac (10,14)] + [iOS (12, 0)] + [TV (12, 0)] + [Mac (10, 14)] [BaseType (typeof (CIFilter))] interface CISaliencyMapFilter : CISaliencyMapProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIDocumentEnhancer : CIDocumentEnhancerProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Protocol (Name = "CIKMeans")] interface CIKMeansProtocol : CIAreaReductionFilterProtocol { @@ -6295,9 +6566,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIReductionFilter))] interface CIKMeans : CIKMeansProtocol { @@ -6313,9 +6584,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] [Abstract] interface CIMorphologyRectangle { @@ -6338,41 +6609,41 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIMorphologyRectangle))] interface CIMorphologyRectangleMaximum : CIMorphologyRectangleMaximumProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIMorphologyRectangle))] interface CIMorphologyRectangleMinimum : CIMorphologyRectangleMinimumProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIPaletteCentroid : CIPaletteCentroidProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIPalettize : CIPalettizeProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] [Abstract] interface CIKeystoneCorrection { @@ -6412,9 +6683,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIKeystoneCorrection))] interface CIKeystoneCorrectionCombined : CIKeystoneCorrectionCombinedProtocol { @@ -6423,9 +6694,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIKeystoneCorrection))] interface CIKeystoneCorrectionHorizontal : CIKeystoneCorrectionHorizontalProtocol { @@ -6439,9 +6710,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIKeystoneCorrection))] interface CIKeystoneCorrectionVertical : CIKeystoneCorrectionVerticalProtocol { @@ -6455,9 +6726,9 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIPerspectiveRotate : CIPerspectiveRotateProtocol { @@ -6466,17 +6737,17 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIGaborGradients : CIGaborGradientsProtocol { } [CoreImageFilter] - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (CIFilter))] interface CIRoundedRectangleGenerator : CIRoundedRectangleGeneratorProtocol { @@ -6487,11 +6758,11 @@ namespace CoreImage { #endif } -#region Protocols + #region Protocols - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFilter")] // CIFilter already exists so we're using the Swift name interface CIFilterProtocol { @@ -6506,9 +6777,9 @@ namespace CoreImage { NSDictionary CustomAttributes { get; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITransitionFilter")] interface CITransitionFilterProtocol : CIFilterProtocol { @@ -6525,9 +6796,9 @@ namespace CoreImage { float Time { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIAccordionFoldTransition")] interface CIAccordionFoldTransitionProtocol : CITransitionFilterProtocol { @@ -6545,9 +6816,9 @@ namespace CoreImage { float FoldShadowAmount { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIAffineClamp")] interface CIAffineClampProtocol : CIFilterProtocol { @@ -6560,9 +6831,9 @@ namespace CoreImage { CGAffineTransform Transform { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIAffineTile")] interface CIAffineTileProtocol : CIFilterProtocol { @@ -6575,9 +6846,9 @@ namespace CoreImage { CGAffineTransform Transform { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIAttributedTextImageGenerator")] interface CIAttributedTextImageGeneratorProtocol : CIFilterProtocol { @@ -6592,14 +6863,14 @@ namespace CoreImage { #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("padding")] float Padding { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIAztecCodeGenerator")] interface CIAztecCodeGeneratorProtocol : CIFilterProtocol { @@ -6620,9 +6891,9 @@ namespace CoreImage { float InputCompactStyle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBarcodeGenerator")] interface CIBarcodeGeneratorProtocol : CIFilterProtocol { @@ -6631,9 +6902,9 @@ namespace CoreImage { CIBarcodeDescriptor BarcodeDescriptor { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBarsSwipeTransition")] interface CIBarsSwipeTransitionProtocol : CITransitionFilterProtocol { @@ -6650,9 +6921,9 @@ namespace CoreImage { float BarOffset { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBicubicScaleTransform")] interface CIBicubicScaleTransformProtocol : CIFilterProtocol { @@ -6679,9 +6950,9 @@ namespace CoreImage { float ParameterC { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBlendWithMask")] interface CIBlendWithMaskProtocol : CIFilterProtocol { @@ -6698,9 +6969,9 @@ namespace CoreImage { CIImage MaskImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBloom")] interface CIBloomProtocol : CIFilterProtocol { @@ -6717,9 +6988,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBokehBlur")] interface CIBokehBlurProtocol : CIFilterProtocol { @@ -6744,9 +7015,9 @@ namespace CoreImage { float Softness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIBoxBlur")] interface CIBoxBlurProtocol : CIFilterProtocol { @@ -6759,9 +7030,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICheckerboardGenerator")] interface CICheckerboardGeneratorProtocol : CIFilterProtocol { @@ -6786,9 +7057,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICircularScreen")] interface CICircularScreenProtocol : CIFilterProtocol { @@ -6809,9 +7080,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICMYKHalftone")] interface CICmykHalftoneProtocol : CIFilterProtocol { @@ -6846,9 +7117,9 @@ namespace CoreImage { float UnderColorRemoval { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICode128BarcodeGenerator")] interface CICode128BarcodeGeneratorProtocol : CIFilterProtocol { @@ -6863,17 +7134,17 @@ namespace CoreImage { // The availability attributes here look redundant because they're already on the type, // but it makes a difference when this member is inlined into another type, in which case // these attributes are copied as well (while the type's attributes aren't). - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Abstract] [Export ("barcodeHeight")] float BarcodeHeight { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorClamp")] interface CIColorClampProtocol : CIFilterProtocol { @@ -6890,9 +7161,9 @@ namespace CoreImage { CIVector MaxComponents { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorControls")] interface CIColorControlsProtocol : CIFilterProtocol { @@ -6913,9 +7184,9 @@ namespace CoreImage { float Contrast { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorCrossPolynomial")] interface CIColorCrossPolynomialProtocol : CIFilterProtocol { @@ -6936,9 +7207,9 @@ namespace CoreImage { CIVector BlueCoefficients { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorCube")] interface CIColorCubeProtocol : CIFilterProtocol { @@ -6957,14 +7228,14 @@ namespace CoreImage { #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("extrapolate")] bool Extrapolate { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorCubesMixedWithMask")] interface CIColorCubesMixedWithMaskProtocol : CIFilterProtocol { @@ -6995,14 +7266,14 @@ namespace CoreImage { #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("extrapolate")] bool Extrapolate { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorCubeWithColorSpace")] interface CIColorCubeWithColorSpaceProtocol : CIFilterProtocol { @@ -7025,14 +7296,14 @@ namespace CoreImage { #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("extrapolate")] bool Extrapolate { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorCurves")] interface CIColorCurvesProtocol : CIFilterProtocol { @@ -7053,9 +7324,9 @@ namespace CoreImage { CGColorSpace ColorSpace { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorInvert")] interface CIColorInvertProtocol : CIFilterProtocol { @@ -7064,9 +7335,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorMap")] interface CIColorMapProtocol : CIFilterProtocol { @@ -7079,9 +7350,9 @@ namespace CoreImage { CIImage GradientImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorMatrix")] interface CIColorMatrixProtocol : CIFilterProtocol { @@ -7110,9 +7381,9 @@ namespace CoreImage { CIVector BiasVector { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorMonochrome")] interface CIColorMonochromeProtocol : CIFilterProtocol { @@ -7129,9 +7400,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorPolynomial")] interface CIColorPolynomialProtocol : CIFilterProtocol { @@ -7156,9 +7427,9 @@ namespace CoreImage { CIVector AlphaCoefficients { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIColorPosterize")] interface CIColorPosterizeProtocol : CIFilterProtocol { @@ -7171,9 +7442,9 @@ namespace CoreImage { float Levels { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIComicEffect")] interface CIComicEffectProtocol : CIFilterProtocol { @@ -7182,9 +7453,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICompositeOperation")] interface CICompositeOperationProtocol : CIFilterProtocol { @@ -7197,9 +7468,9 @@ namespace CoreImage { CIImage BackgroundImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIConvolution")] interface CIConvolutionProtocol : CIFilterProtocol { @@ -7216,9 +7487,9 @@ namespace CoreImage { float Bias { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICopyMachineTransition")] interface CICopyMachineTransitionProtocol : CIFilterProtocol { @@ -7243,9 +7514,9 @@ namespace CoreImage { float Opacity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICoreMLModel")] interface CICoreMLModelProtocol : CIFilterProtocol { @@ -7266,9 +7537,9 @@ namespace CoreImage { bool SoftmaxNormalization { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CICrystallize")] interface CICrystallizeProtocol : CIFilterProtocol { @@ -7285,9 +7556,9 @@ namespace CoreImage { CGPoint InputCenter { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDepthOfField")] interface CIDepthOfFieldProtocol : CIFilterProtocol { @@ -7320,9 +7591,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDepthToDisparity")] interface CIDepthToDisparityProtocol : CIFilterProtocol { @@ -7331,9 +7602,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDiscBlur")] interface CIDiscBlurProtocol : CIFilterProtocol { @@ -7346,9 +7617,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDisintegrateWithMaskTransition")] interface CIDisintegrateWithMaskTransitionProtocol : CIFilterProtocol { @@ -7369,9 +7640,9 @@ namespace CoreImage { CGPoint InputShadowOffset { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDisparityToDepth")] interface CIDisparityToDepthProtocol : CIFilterProtocol { @@ -7380,16 +7651,16 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDissolveTransition")] interface CIDissolveTransitionProtocol : CIFilterProtocol { } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDither")] interface CIDitherProtocol : CIFilterProtocol { @@ -7402,9 +7673,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDocumentEnhancer")] interface CIDocumentEnhancerProtocol : CIFilterProtocol { @@ -7417,9 +7688,9 @@ namespace CoreImage { float Amount { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIDotScreen")] interface CIDotScreenProtocol : CIFilterProtocol { @@ -7444,9 +7715,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIEdgePreserveUpsample")] interface CIEdgePreserveUpsampleProtocol : CIFilterProtocol { @@ -7467,9 +7738,9 @@ namespace CoreImage { float LumaSigma { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIEdges")] interface CIEdgesProtocol : CIFilterProtocol { @@ -7482,9 +7753,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIEdgeWork")] interface CIEdgeWorkProtocol : CIFilterProtocol { @@ -7497,9 +7768,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIEightfoldReflectedTile")] interface CIEightfoldReflectedTileProtocol : CIFilterProtocol { @@ -7520,9 +7791,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIExposureAdjust")] interface CIExposureAdjustProtocol : CIFilterProtocol { @@ -7535,9 +7806,9 @@ namespace CoreImage { float EV { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFalseColor")] interface CIFalseColorProtocol : CIFilterProtocol { @@ -7554,9 +7825,9 @@ namespace CoreImage { CIColor Color1 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFlashTransition")] interface CIFlashTransitionProtocol : CITransitionFilterProtocol { @@ -7589,9 +7860,9 @@ namespace CoreImage { float FadeThreshold { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFourCoordinateGeometryFilter")] interface CIFourCoordinateGeometryFilterProtocol : CIFilterProtocol { @@ -7616,9 +7887,9 @@ namespace CoreImage { CGPoint InputBottomLeft { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFourfoldReflectedTile")] interface CIFourfoldReflectedTileProtocol : CIFilterProtocol { @@ -7643,9 +7914,9 @@ namespace CoreImage { float AcuteAngle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFourfoldRotatedTile")] interface CIFourfoldRotatedTileProtocol : CIFilterProtocol { @@ -7666,9 +7937,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIFourfoldTranslatedTile")] interface CIFourfoldTranslatedTileProtocol : CIFilterProtocol { @@ -7693,9 +7964,9 @@ namespace CoreImage { float AcuteAngle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGaborGradients")] interface CIGaborGradientsProtocol : CIFilterProtocol { @@ -7704,9 +7975,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGammaAdjust")] interface CIGammaAdjustProtocol : CIFilterProtocol { @@ -7719,9 +7990,9 @@ namespace CoreImage { float Power { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGaussianBlur")] interface CIGaussianBlurProtocol : CIFilterProtocol { @@ -7734,9 +8005,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGaussianGradient")] interface CIGaussianGradientProtocol : CIFilterProtocol { @@ -7757,9 +8028,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGlideReflectedTile")] interface CIGlideReflectedTileProtocol : CIFilterProtocol { @@ -7780,9 +8051,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIGloom")] interface CIGloomProtocol : CIFilterProtocol { @@ -7799,9 +8070,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHatchedScreen")] interface CIHatchedScreenProtocol : CIFilterProtocol { @@ -7826,9 +8097,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHeightFieldFromMask")] interface CIHeightFieldFromMaskProtocol : CIFilterProtocol { @@ -7841,9 +8112,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHexagonalPixellate")] interface CIHexagonalPixellateProtocol : CIFilterProtocol { @@ -7860,9 +8131,9 @@ namespace CoreImage { float Scale { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHighlightShadowAdjust")] interface CIHighlightShadowAdjustProtocol : CIFilterProtocol { @@ -7883,9 +8154,9 @@ namespace CoreImage { float HighlightAmount { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHueAdjust")] interface CIHueAdjustProtocol : CIFilterProtocol { @@ -7898,9 +8169,9 @@ namespace CoreImage { float Angle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIHueSaturationValueGradient")] interface CIHueSaturationValueGradientProtocol : CIFilterProtocol { @@ -7925,9 +8196,9 @@ namespace CoreImage { CGColorSpace ColorSpace { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIKaleidoscope")] interface CIKaleidoscopeProtocol : CIFilterProtocol { @@ -7948,42 +8219,42 @@ namespace CoreImage { float Angle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIKeystoneCorrectionCombined")] interface CIKeystoneCorrectionCombinedProtocol : CIFourCoordinateGeometryFilterProtocol { - + [Abstract] [Export ("focalLength")] float FocalLength { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIKeystoneCorrectionHorizontal")] interface CIKeystoneCorrectionHorizontalProtocol : CIFourCoordinateGeometryFilterProtocol { - + [Abstract] [Export ("focalLength")] float FocalLength { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIKeystoneCorrectionVertical")] interface CIKeystoneCorrectionVerticalProtocol : CIFourCoordinateGeometryFilterProtocol { - + [Abstract] [Export ("focalLength")] float FocalLength { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILabDeltaE")] interface CILabDeltaEProtocol : CIFilterProtocol { @@ -7996,9 +8267,9 @@ namespace CoreImage { CIImage Image2 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILanczosScaleTransform")] interface CILanczosScaleTransformProtocol : CIFilterProtocol { @@ -8015,9 +8286,9 @@ namespace CoreImage { float AspectRatio { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILenticularHaloGenerator")] interface CILenticularHaloGeneratorProtocol : CIFilterProtocol { @@ -8054,9 +8325,9 @@ namespace CoreImage { float Time { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILinearGradient")] interface CILinearGradientProtocol : CIFilterProtocol { @@ -8077,9 +8348,9 @@ namespace CoreImage { CIColor Color1 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILinearToSRGBToneCurve")] interface CILinearToSrgbToneCurveProtocol : CIFilterProtocol { @@ -8088,9 +8359,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILineOverlay")] interface CILineOverlayProtocol : CIFilterProtocol { @@ -8119,9 +8390,9 @@ namespace CoreImage { float Contrast { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CILineScreen")] interface CILineScreenProtocol : CIFilterProtocol { @@ -8146,9 +8417,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMaskedVariableBlur")] interface CIMaskedVariableBlurProtocol : CIFilterProtocol { @@ -8165,9 +8436,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMaskToAlpha")] interface CIMaskToAlphaProtocol : CIFilterProtocol { @@ -8176,9 +8447,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMaximumComponent")] interface CIMaximumComponentProtocol : CIFilterProtocol { @@ -8187,9 +8458,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMedian")] interface CIMedianProtocol : CIFilterProtocol { @@ -8198,9 +8469,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMeshGenerator")] interface CIMeshGeneratorProtocol : CIFilterProtocol { @@ -8214,12 +8485,12 @@ namespace CoreImage { [Abstract] [Export ("mesh", ArgumentSemantic.Retain)] - CIVector[] Mesh { get; set; } + CIVector [] Mesh { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMinimumComponent")] interface CIMinimumComponentProtocol : CIFilterProtocol { @@ -8228,9 +8499,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMix")] interface CIMixProtocol : CIFilterProtocol { @@ -8247,9 +8518,9 @@ namespace CoreImage { float Amount { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIModTransition")] interface CIModTransitionProtocol : CITransitionFilterProtocol { @@ -8270,9 +8541,9 @@ namespace CoreImage { float Compression { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMorphologyGradient")] interface CIMorphologyGradientProtocol : CIFilterProtocol { @@ -8285,9 +8556,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMorphologyMaximum")] interface CIMorphologyMaximumProtocol : CIFilterProtocol { @@ -8300,9 +8571,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMorphologyMinimum")] interface CIMorphologyMinimumProtocol : CIFilterProtocol { @@ -8315,9 +8586,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMorphologyRectangleMaximum")] interface CIMorphologyRectangleMaximumProtocol : CIFilterProtocol { @@ -8334,9 +8605,9 @@ namespace CoreImage { float InputHeight { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMorphologyRectangleMinimum")] interface CIMorphologyRectangleMinimumProtocol : CIFilterProtocol { @@ -8353,9 +8624,9 @@ namespace CoreImage { float InputHeight { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIMotionBlur")] interface CIMotionBlurProtocol : CIFilterProtocol { @@ -8372,9 +8643,9 @@ namespace CoreImage { float Angle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CINoiseReduction")] interface CINoiseReductionProtocol : CIFilterProtocol { @@ -8391,9 +8662,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIOpTile")] interface CIOpTileProtocol : CIFilterProtocol { @@ -8418,9 +8689,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPageCurlTransition")] interface CIPageCurlTransitionProtocol : CITransitionFilterProtocol { @@ -8445,9 +8716,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPageCurlWithShadowTransition")] interface CIPageCurlWithShadowTransitionProtocol : CITransitionFilterProtocol { @@ -8480,9 +8751,9 @@ namespace CoreImage { CGRect InputShadowExtent { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPaletteCentroid")] interface CIPaletteCentroidProtocol : CIFilterProtocol { @@ -8499,9 +8770,9 @@ namespace CoreImage { bool Perceptual { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPalettize")] interface CIPalettizeProtocol : CIFilterProtocol { @@ -8518,9 +8789,9 @@ namespace CoreImage { bool Perceptual { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIParallelogramTile")] interface CIParallelogramTileProtocol : CIFilterProtocol { @@ -8545,9 +8816,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPDF417BarcodeGenerator")] interface CIPdf417BarcodeGeneratorProtocol : CIFilterProtocol { @@ -8600,21 +8871,23 @@ namespace CoreImage { float InputAlwaysSpecifyCompaction { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPerspectiveCorrection")] interface CIPerspectiveCorrectionProtocol : CIFourCoordinateGeometryFilterProtocol { [Abstract] [Export ("crop")] - [iOS (13,0)][TV (13,0)][Mac (10,15)] // repeated so it's inlined (new property in existing filter) + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] // repeated so it's inlined (new property in existing filter) bool Crop { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPerspectiveRotate")] interface CIPerspectiveRotateProtocol : CIFilterProtocol { @@ -8639,9 +8912,9 @@ namespace CoreImage { float Roll { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPerspectiveTile")] interface CIPerspectiveTileProtocol : CIFilterProtocol { @@ -8666,16 +8939,16 @@ namespace CoreImage { CGPoint InputBottomLeft { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPerspectiveTransform")] interface CIPerspectiveTransformProtocol : CIFourCoordinateGeometryFilterProtocol { } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPerspectiveTransformWithExtent")] interface CIPerspectiveTransformWithExtentProtocol : CIFourCoordinateGeometryFilterProtocol { @@ -8684,9 +8957,9 @@ namespace CoreImage { CGRect InputExtent { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPhotoEffect")] interface CIPhotoEffectProtocol : CIFilterProtocol { @@ -8695,9 +8968,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPixellate")] interface CIPixellateProtocol : CIFilterProtocol { @@ -8714,9 +8987,9 @@ namespace CoreImage { float Scale { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIPointillize")] interface CIPointillizeProtocol : CIFilterProtocol { @@ -8733,9 +9006,9 @@ namespace CoreImage { CGPoint InputCenter { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIQRCodeGenerator")] interface CIQRCodeGeneratorProtocol : CIFilterProtocol { @@ -8748,9 +9021,9 @@ namespace CoreImage { string CorrectionLevel { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIRadialGradient")] interface CIRadialGradientProtocol : CIFilterProtocol { @@ -8775,16 +9048,16 @@ namespace CoreImage { CIColor Color1 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIRandomGenerator")] interface CIRandomGeneratorProtocol : CIFilterProtocol { } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIRippleTransition")] interface CIRippleTransitionProtocol : CITransitionFilterProtocol { @@ -8809,9 +9082,9 @@ namespace CoreImage { float Scale { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIRoundedRectangleGenerator")] interface CIRoundedRectangleGeneratorProtocol : CIFilterProtocol { @@ -8828,9 +9101,9 @@ namespace CoreImage { CIColor Color { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISaliencyMap")] interface CISaliencyMapProtocol : CIFilterProtocol { @@ -8840,9 +9113,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISepiaTone")] interface CISepiaToneProtocol : CIFilterProtocol { @@ -8855,9 +9128,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIShadedMaterial")] interface CIShadedMaterialProtocol : CIFilterProtocol { @@ -8874,9 +9147,9 @@ namespace CoreImage { float Scale { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISharpenLuminance")] interface CISharpenLuminanceProtocol : CIFilterProtocol { @@ -8890,13 +9163,15 @@ namespace CoreImage { [Abstract] [Export ("radius")] - [iOS (13,0)][TV (13,0)][Mac (10,15)] // repeated so it's inlined (new property in existing filter) + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] // repeated so it's inlined (new property in existing filter) float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISixfoldReflectedTile")] interface CISixfoldReflectedTileProtocol : CIFilterProtocol { @@ -8917,9 +9192,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISixfoldRotatedTile")] interface CISixfoldRotatedTileProtocol : CIFilterProtocol { @@ -8940,9 +9215,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISmoothLinearGradient")] interface CISmoothLinearGradientProtocol : CIFilterProtocol { [Abstract] @@ -8962,9 +9237,9 @@ namespace CoreImage { CIColor Color1 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISpotColor")] interface CISpotColorProtocol : CIFilterProtocol { @@ -9021,9 +9296,9 @@ namespace CoreImage { float Contrast3 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISpotLight")] interface CISpotLightProtocol : CIFilterProtocol { @@ -9052,9 +9327,9 @@ namespace CoreImage { CIColor Color { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISRGBToneCurveToLinear")] interface CISrgbToneCurveToLinearProtocol : CIFilterProtocol { @@ -9063,9 +9338,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIStarShineGenerator")] interface CIStarShineGeneratorProtocol : CIFilterProtocol { @@ -9102,9 +9377,9 @@ namespace CoreImage { float Epsilon { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIStraighten")] interface CIStraightenProtocol : CIFilterProtocol { @@ -9117,9 +9392,9 @@ namespace CoreImage { float Angle { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIStripesGenerator")] interface CIStripesGeneratorProtocol : CIFilterProtocol { @@ -9144,9 +9419,9 @@ namespace CoreImage { float Sharpness { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISunbeamsGenerator")] interface CISunbeamsGeneratorProtocol : CIFilterProtocol { @@ -9179,9 +9454,9 @@ namespace CoreImage { float Time { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CISwipeTransition")] interface CISwipeTransitionProtocol : CITransitionFilterProtocol { @@ -9206,9 +9481,9 @@ namespace CoreImage { float Opacity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITemperatureAndTint")] interface CITemperatureAndTintProtocol : CIFilterProtocol { @@ -9225,9 +9500,9 @@ namespace CoreImage { CIVector TargetNeutral { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITextImageGenerator")] interface CITextImageGeneratorProtocol : CIFilterProtocol { @@ -9250,14 +9525,14 @@ namespace CoreImage { #if XAMCORE_5_0 [Abstract] #endif - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("padding")] float Padding { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIThermal")] interface CIThermalProtocol : CIFilterProtocol { @@ -9266,9 +9541,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIToneCurve")] interface CIToneCurveProtocol : CIFilterProtocol { @@ -9297,9 +9572,9 @@ namespace CoreImage { CGPoint InputPoint4 { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITriangleKaleidoscope")] interface CITriangleKaleidoscopeProtocol : CIFilterProtocol { @@ -9324,9 +9599,9 @@ namespace CoreImage { float Decay { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITriangleTile")] interface CITriangleTileProtocol : CIFilterProtocol { @@ -9347,9 +9622,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CITwelvefoldReflectedTile")] interface CITwelvefoldReflectedTileProtocol : CIFilterProtocol { @@ -9370,9 +9645,9 @@ namespace CoreImage { float Width { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIUnsharpMask")] interface CIUnsharpMaskProtocol : CIFilterProtocol { @@ -9389,9 +9664,9 @@ namespace CoreImage { float Intensity { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIVibrance")] interface CIVibranceProtocol : CIFilterProtocol { @@ -9404,9 +9679,9 @@ namespace CoreImage { float Amount { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIVignette")] interface CIVignetteProtocol : CIFilterProtocol { @@ -9423,9 +9698,9 @@ namespace CoreImage { float Radius { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIVignetteEffect")] interface CIVignetteEffectProtocol : CIFilterProtocol { @@ -9450,9 +9725,9 @@ namespace CoreImage { float Falloff { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIWhitePointAdjust")] interface CIWhitePointAdjustProtocol : CIFilterProtocol { @@ -9465,9 +9740,9 @@ namespace CoreImage { CIColor Color { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIXRay")] interface CIXRayProtocol : CIFilterProtocol { @@ -9476,9 +9751,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (13,0)] - [TV (13,0)] - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Protocol (Name = "CIZoomBlur")] interface CIZoomBlurProtocol : CIFilterProtocol { @@ -9495,11 +9770,11 @@ namespace CoreImage { float Amount { get; set; } } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIColorAbsoluteDifference")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIColorAbsoluteDifference")] interface CIColorAbsoluteDifferenceProtocol : CIFilterProtocol { [Abstract] @@ -9512,19 +9787,19 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (CIFilter))] interface CIColorAbsoluteDifference : CIColorAbsoluteDifferenceProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIColorThreshold")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIColorThreshold")] interface CIColorThresholdProtocol : CIFilterProtocol { [Abstract] @@ -9537,19 +9812,19 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (CIFilter))] interface CIColorThreshold : CIColorThresholdProtocol { } - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] - [Protocol (Name="CIColorThresholdOtsu")] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] + [Protocol (Name = "CIColorThresholdOtsu")] interface CIColorThresholdOtsuProtocol : CIFilterProtocol { [Abstract] @@ -9558,19 +9833,19 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (14,0)] - [TV (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (CIFilter))] interface CIColorThresholdOtsu : CIColorThresholdOtsuProtocol { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIConvolutionRGB3X3 : CIFilterProtocol { @@ -9585,10 +9860,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIConvolutionRGB5X5 : CIFilterProtocol { @@ -9603,10 +9878,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIConvolutionRGB7X7 : CIFilterProtocol { @@ -9621,10 +9896,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIConvolutionRGB9Horizontal : CIFilterProtocol { @@ -9639,10 +9914,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIConvolutionRGB9Vertical : CIFilterProtocol { @@ -9657,10 +9932,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CILinearLightBlendMode : CIFilterProtocol { @@ -9672,18 +9947,18 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIPersonSegmentation : CIPersonSegmentationProtocol { } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0)] - [Protocol (Name="CIPersonSegmentation")] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0)] + [Protocol (Name = "CIPersonSegmentation")] interface CIPersonSegmentationProtocol : CIFilterProtocol { - + [Abstract] [NullAllowed, Export ("inputImage", ArgumentSemantic.Retain)] CIImage InputImage { get; set; } @@ -9694,10 +9969,10 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (15,0)] - [TV (15,0)] - [Mac (12,0)] - [MacCatalyst (15,0)] + [iOS (15, 0)] + [TV (15, 0)] + [Mac (12, 0)] + [MacCatalyst (15, 0)] [BaseType (typeof (CIFilter))] interface CIVividLightBlendMode : CIFilterProtocol { @@ -9708,10 +9983,9 @@ namespace CoreImage { CIImage InputImage { get; set; } } - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] - [Protocol (Name="CIAreaLogarithmicHistogram")] - interface CIAreaLogarithmicHistogramProtocol : CIAreaReductionFilterProtocol - { + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] + [Protocol (Name = "CIAreaLogarithmicHistogram")] + interface CIAreaLogarithmicHistogramProtocol : CIAreaReductionFilterProtocol { [Abstract] [Export ("scale")] float Scale { get; set; } @@ -9730,15 +10004,14 @@ namespace CoreImage { } [CoreImageFilter] - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [BaseType (typeof (CIFilter))] interface CIAreaLogarithmicHistogram : CIAreaLogarithmicHistogramProtocol { } - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] - [Protocol (Name="CIConvertLab")] - interface CIConvertLabProtocol : CIFilterProtocol - { + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] + [Protocol (Name = "CIConvertLab")] + interface CIConvertLabProtocol : CIFilterProtocol { [Abstract] [NullAllowed, Export ("inputImage", ArgumentSemantic.Retain)] CIImage InputImage { get; set; } @@ -9747,11 +10020,11 @@ namespace CoreImage { [Export ("normalize")] bool Normalize { get; set; } } - -// LabToRGBFilter and RGBtoLabFilter are names for filter API but return the same type CIConvertLab -// Enabling these cause a large number of introspection errors -// https://github.com/xamarin/xamarin-macios/issues/15662 + + // LabToRGBFilter and RGBtoLabFilter are names for filter API but return the same type CIConvertLab + // Enabling these cause a large number of introspection errors + // https://github.com/xamarin/xamarin-macios/issues/15662 #if false [CoreImageFilter] [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] @@ -9770,6 +10043,6 @@ namespace CoreImage { } #endif -#endregion + #endregion } diff --git a/src/corelocation.cs b/src/corelocation.cs index bcf488d37b..2b3a18c5d3 100644 --- a/src/corelocation.cs +++ b/src/corelocation.cs @@ -32,8 +32,9 @@ using NativeHandle = System.IntPtr; namespace CoreLocation { - [NoTV][NoWatch] - [iOS (7,0)] + [NoTV] + [NoWatch] + [iOS (7, 0)] [Native] // NSInteger -> CLRegion.h public enum CLRegionState : long { Unknown, @@ -41,9 +42,10 @@ namespace CoreLocation { Outside } - [Mac (10,15)] - [NoTV][NoWatch] - [iOS (7,0)] + [Mac (10, 15)] + [NoTV] + [NoWatch] + [iOS (7, 0)] [Native] // NSInteger -> CLRegion.h public enum CLProximity : long { Unknown, @@ -56,7 +58,7 @@ namespace CoreLocation { #if NET // Apple fixed this in Xcode 13.1 [iOS (15,0), NoTV, NoMacCatalyst, NoMac, NoWatch] #else - [iOS (15,0), NoTV, MacCatalyst (15,0), NoMac, NoWatch] + [iOS (15, 0), NoTV, MacCatalyst (15, 0), NoMac, NoWatch] #endif [Native] public enum CLLocationPushServiceError : long { @@ -67,70 +69,70 @@ namespace CoreLocation { } [NoTV] - [Watch (6,0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // will crash, see CoreLocation.cs for compatibility stubs partial interface CLHeading : NSSecureCoding, NSCopying { [Export ("magneticHeading")] - double MagneticHeading { get; } - + double MagneticHeading { get; } + [Export ("trueHeading")] - double TrueHeading { get; } - + double TrueHeading { get; } + [Export ("headingAccuracy")] - double HeadingAccuracy { get; } - + double HeadingAccuracy { get; } + [Export ("x")] - double X { get; } - + double X { get; } + [Export ("y")] - double Y { get; } - + double Y { get; } + [Export ("z")] - double Z { get; } + double Z { get; } [Export ("timestamp", ArgumentSemantic.Copy)] - NSDate Timestamp { get; } + NSDate Timestamp { get; } } - + [BaseType (typeof (NSObject))] partial interface CLLocation : NSSecureCoding, NSCopying, CKRecordValue { [Export ("coordinate")] - CLLocationCoordinate2D Coordinate { get; } - - [Export ("altitude")] - double Altitude { get; } - - [Export ("horizontalAccuracy")] - double HorizontalAccuracy { get; } - - [Export ("verticalAccuracy")] - double VerticalAccuracy { get; } - - [TV (13,0)] // API_UNAVAILABLE(tvos) removed in Xcode 11 beta 1 - [Watch (3,0)] // __WATCHOS_PROHIBITED removed in Xcode 8 beta 3 - [Export ("course")] - double Course { get; } + CLLocationCoordinate2D Coordinate { get; } - [Watch (6,2), TV (13,4), Mac (10,15,4), iOS (13,4)] + [Export ("altitude")] + double Altitude { get; } + + [Export ("horizontalAccuracy")] + double HorizontalAccuracy { get; } + + [Export ("verticalAccuracy")] + double VerticalAccuracy { get; } + + [TV (13, 0)] // API_UNAVAILABLE(tvos) removed in Xcode 11 beta 1 + [Watch (3, 0)] // __WATCHOS_PROHIBITED removed in Xcode 8 beta 3 + [Export ("course")] + double Course { get; } + + [Watch (6, 2), TV (13, 4), Mac (10, 15, 4), iOS (13, 4)] [Export ("courseAccuracy")] double CourseAccuracy { get; } - [TV (13,0)] // API_UNAVAILABLE(tvos) removed in Xcode 11 beta 1 - [Watch (3,0)] // __WATCHOS_PROHIBITED removed in Xcode 8 beta 3 + [TV (13, 0)] // API_UNAVAILABLE(tvos) removed in Xcode 11 beta 1 + [Watch (3, 0)] // __WATCHOS_PROHIBITED removed in Xcode 8 beta 3 [Export ("speed")] - double Speed { get; } + double Speed { get; } - [Watch (6,2), TV (13,4), Mac (10,15,4), iOS (13,4)] + [Watch (6, 2), TV (13, 4), Mac (10, 15, 4), iOS (13, 4)] [Export ("speedAccuracy")] double SpeedAccuracy { get; } [Export ("timestamp", ArgumentSemantic.Copy)] - NSDate Timestamp { get; } - + NSDate Timestamp { get; } + [Export ("initWithLatitude:longitude:")] NativeHandle Constructor (double latitude, double longitude); - + [Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp); @@ -140,18 +142,19 @@ namespace CoreLocation { [Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp); - [Watch (6,2), TV (13,4), Mac (10,15,4), iOS (13,4)] + [Watch (6, 2), TV (13, 4), Mac (10, 15, 4), iOS (13, 4)] [Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, double altitude, double horizontalAccuracy, double verticalAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp, CLLocationSourceInformation sourceInfo); // Apple keep changing the 'introduction' of this field (5.0->8.0->5.0) but it was not available in 6.1 // nor in 7.0 - but it works on my iPad3 running iOS 7.1 - [NoTV][NoWatch] - [iOS (7,1)] + [NoTV] + [NoWatch] + [iOS (7, 1)] [Field ("kCLErrorUserInfoAlternateRegionKey")] NSString ErrorUserInfoAlternateRegionKey { get; } @@ -174,58 +177,59 @@ namespace CoreLocation { double AccuracyThreeKilometers { get; } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("kCLLocationAccuracyReduced")] double AccuracyReduced { get; } - [Mac (10,15)] - [iOS (8,0)] + [Mac (10, 15)] + [iOS (8, 0)] [NullAllowed, Export ("floor", ArgumentSemantic.Copy)] CLFloor Floor { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("ellipsoidalAltitude")] double EllipsoidalAltitude { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("sourceInformation")] CLLocationSourceInformation SourceInformation { get; } } - [Mac (10,15)] - [iOS (8,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15)] + [iOS (8, 0)] + [BaseType (typeof (NSObject))] partial interface CLFloor : NSSecureCoding, NSCopying { - [Export ("level")] - nint Level { get; } - } + [Export ("level")] + nint Level { get; } + } delegate void RequestHistoricalLocationsCompletionHandler (CLLocation [] locations, [NullAllowed] NSError error); - [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (CLLocationManagerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (CLLocationManagerDelegate) })] partial interface CLLocationManager { [Wrap ("WeakDelegate")] [Protocolize] - CLLocationManagerDelegate Delegate { get; set; } + CLLocationManagerDelegate Delegate { get; set; } + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] + NSObject WeakDelegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] - NSObject WeakDelegate { get; set; } - [Export ("distanceFilter", ArgumentSemantic.Assign)] - double DistanceFilter { get; set; } - + double DistanceFilter { get; set; } + [Export ("desiredAccuracy", ArgumentSemantic.Assign)] - double DesiredAccuracy { get; set; } - + double DesiredAccuracy { get; set; } + [NullAllowed, Export ("location", ArgumentSemantic.Copy)] - CLLocation Location { get; } - - // __WATCHOS_PROHIBITED removed in Xcode 8.0 beta 2, assuming it's valid for 3.0+ - [Watch (3,0)] + CLLocation Location { get; } + + // __WATCHOS_PROHIBITED removed in Xcode 8.0 beta 2, assuming it's valid for 3.0+ + [Watch (3, 0)] [NoTV] [Export ("startUpdatingLocation")] void StartUpdatingLocation (); - + [Export ("stopUpdatingLocation")] void StopUpdatingLocation (); @@ -233,91 +237,103 @@ namespace CoreLocation { bool LocationServicesEnabled { get; } [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("headingFilter", ArgumentSemantic.Assign)] - double HeadingFilter { get; set; } - + double HeadingFilter { get; set; } + [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("startUpdatingHeading")] void StartUpdatingHeading (); - + [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("stopUpdatingHeading")] void StopUpdatingHeading (); - + [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("dismissHeadingCalibrationDisplay")] void DismissHeadingCalibrationDisplay (); - - [NoWatch][NoTV] + + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 6, 0)] - [Deprecated (PlatformName.MacOSX, 11, 0, message : "Set the purpose using the NSLocationUsageDescription key in the Info.plist instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Set the purpose using the NSLocationUsageDescription key in the Info.plist instead.")] // Default property value is null but it cannot be set to that value // it crash when a null is provided [NullAllowed, Export ("purpose")] string Purpose { get; set; } - [NoTV][Mac (11,0)] - [Watch (6,0)] + [NoTV] + [Mac (11, 0)] + [Watch (6, 0)] [Export ("headingAvailable"), Static] bool HeadingAvailable { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("significantLocationChangeMonitoringAvailable"), Static] bool SignificantLocationChangeMonitoringAvailable { get; } - [NoWatch][NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'IsMonitoringAvailable' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'IsMonitoringAvailable' instead.")] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'IsMonitoringAvailable' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'IsMonitoringAvailable' instead.")] [Export ("regionMonitoringAvailable"), Static] bool RegionMonitoringAvailable { get; } - [NoWatch][NoTV] - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'IsMonitoringAvailable' and 'AuthorizationStatus' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'IsMonitoringAvailable' and 'AuthorizationStatus' instead.")] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'IsMonitoringAvailable' and 'AuthorizationStatus' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'IsMonitoringAvailable' and 'AuthorizationStatus' instead.")] [Export ("regionMonitoringEnabled"), Static] bool RegionMonitoringEnabled { get; } [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("headingOrientation", ArgumentSemantic.Assign)] CLDeviceOrientation HeadingOrientation { get; set; } [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [NullAllowed, Export ("heading", ArgumentSemantic.Copy)] CLHeading Heading { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("maximumRegionMonitoringDistance")] double MaximumRegionMonitoringDistance { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("monitoredRegions", ArgumentSemantic.Copy)] NSSet MonitoredRegions { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("startMonitoringSignificantLocationChanges")] void StartMonitoringSignificantLocationChanges (); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("stopMonitoringSignificantLocationChanges")] void StopMonitoringSignificantLocationChanges (); - [NoWatch][NoTV][NoMac] + [NoWatch] + [NoTV] + [NoMac] [Deprecated (PlatformName.iOS, 6, 0)] [Export ("startMonitoringForRegion:desiredAccuracy:")] void StartMonitoring (CLRegion region, double desiredAccuracy); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("stopMonitoringForRegion:")] void StopMonitoring (CLRegion region); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("authorizationStatus")] CLAuthorizationStatus AuthorizationStatus { get; } @@ -325,229 +341,259 @@ namespace CoreLocation { [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use the instance 'AuthorizationStatus' property instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use the instance property AuthorizationStatus' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use instance property 'AuthorizationStatus' instead.")] - [Export ("authorizationStatus")][Static] + [Export ("authorizationStatus")] + [Static] CLAuthorizationStatus Status { get; } - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("startMonitoringForRegion:")] void StartMonitoring (CLRegion region); [NoTV] - [Watch (4,0), Mac (11,0)] + [Watch (4, 0), Mac (11, 0)] [Export ("activityType", ArgumentSemantic.Assign)] - CLActivityType ActivityType { get; set; } + CLActivityType ActivityType { get; set; } - [NoWatch][NoTV][Mac (11,0)] + [NoWatch] + [NoTV] + [Mac (11, 0)] [Export ("pausesLocationUpdatesAutomatically", ArgumentSemantic.Assign)] bool PausesLocationUpdatesAutomatically { get; set; } - [NoWatch][NoTV][NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Not used anymore. Call will not have any effect.")] + [NoWatch] + [NoTV] + [NoMac] + [Deprecated (PlatformName.iOS, 13, 0, message: "Not used anymore. Call will not have any effect.")] [NoMacCatalyst] [Export ("allowDeferredLocationUpdatesUntilTraveled:timeout:")] void AllowDeferredLocationUpdatesUntil (double distance, double timeout); - [NoWatch][NoTV][NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Not used anymore. Call will not have any effect.")] + [NoWatch] + [NoTV] + [NoMac] + [Deprecated (PlatformName.iOS, 13, 0, message: "Not used anymore. Call will not have any effect.")] [NoMacCatalyst] [Export ("disallowDeferredLocationUpdates")] void DisallowDeferredLocationUpdates (); - [NoWatch][NoTV] - [Mac (10,9)] - [Deprecated (PlatformName.iOS, 13,0, message: "Not used anymore. It will always return 'false'.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Not used anymore. It will always return 'false'.")] + [NoWatch] + [NoTV] + [Mac (10, 9)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Not used anymore. It will always return 'false'.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Not used anymore. It will always return 'false'.")] [Static] [Export ("deferredLocationUpdatesAvailable")] bool DeferredLocationUpdatesAvailable { get; } - [Mac (10,14)] + [Mac (10, 14)] [Field ("CLTimeIntervalMax")] double MaxTimeInterval { get; } - [NoWatch][NoTV] - [Mac (10,10)] - [iOS (7,0), Static, Export ("isMonitoringAvailableForClass:")] + [NoWatch] + [NoTV] + [Mac (10, 10)] + [iOS (7, 0), Static, Export ("isMonitoringAvailableForClass:")] bool IsMonitoringAvailable (Class regionClass); - [NoWatch][NoTV][NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'RangedBeaconConstraints' instead.")] - [iOS (7,0), Export ("rangedRegions", ArgumentSemantic.Copy)] + [NoWatch] + [NoTV] + [NoMac] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'RangedBeaconConstraints' instead.")] + [iOS (7, 0), Export ("rangedRegions", ArgumentSemantic.Copy)] NSSet RangedRegions { get; } - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [Export ("rangedBeaconConstraints", ArgumentSemantic.Copy)] NSSet RangedBeaconConstraints { get; } - [Mac (10,10)] - [NoWatch][NoTV] - [iOS (7,0), Export ("requestStateForRegion:")] + [Mac (10, 10)] + [NoWatch] + [NoTV] + [iOS (7, 0), Export ("requestStateForRegion:")] void RequestState (CLRegion region); - [NoWatch][NoTV][NoMac] + [NoWatch] + [NoTV] + [NoMac] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'StartRangingBeacons(CLBeaconIdentityConstraint)' instead.")] - [iOS (7,0), Export ("startRangingBeaconsInRegion:")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'StartRangingBeacons(CLBeaconIdentityConstraint)' instead.")] + [iOS (7, 0), Export ("startRangingBeaconsInRegion:")] void StartRangingBeacons (CLBeaconRegion region); - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [Export ("startRangingBeaconsSatisfyingConstraint:")] void StartRangingBeacons (CLBeaconIdentityConstraint constraint); - [NoWatch][NoTV][NoMac] + [NoWatch] + [NoTV] + [NoMac] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'StopRangingBeacons(CLBeaconIdentityConstraint)' instead.")] - [iOS (7,0), Export ("stopRangingBeaconsInRegion:")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'StopRangingBeacons(CLBeaconIdentityConstraint)' instead.")] + [iOS (7, 0), Export ("stopRangingBeaconsInRegion:")] void StopRangingBeacons (CLBeaconRegion region); - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [Export ("stopRangingBeaconsSatisfyingConstraint:")] void StopRangingBeacons (CLBeaconIdentityConstraint constraint); - [NoWatch][NoTV] - [iOS (7,0), Mac (11,0)] + [NoWatch] + [NoTV] + [iOS (7, 0), Mac (11, 0)] [Static] [Export ("isRangingAvailable")] bool IsRangingAvailable { get; } - [iOS (8,0), Mac (11,0)] + [iOS (8, 0), Mac (11, 0)] [Export ("requestWhenInUseAuthorization")] void RequestWhenInUseAuthorization (); [NoTV] - [iOS (8,0)] - [Mac (10,15)] + [iOS (8, 0)] + [Mac (10, 15)] [Export ("requestAlwaysAuthorization")] void RequestAlwaysAuthorization (); - [NoWatch][NoTV] - [iOS (8,0), Mac (11,0)] + [NoWatch] + [NoTV] + [iOS (8, 0), Mac (11, 0)] [Export ("startMonitoringVisits")] void StartMonitoringVisits (); - [NoWatch][NoTV] - [iOS (8,0), Mac (11,0)] + [NoWatch] + [NoTV] + [iOS (8, 0), Mac (11, 0)] [Export ("stopMonitoringVisits")] void StopMonitoringVisits (); [NoTV] - [iOS (9,0), Watch (4,0), Mac (11,0)] + [iOS (9, 0), Watch (4, 0), Mac (11, 0)] [Export ("allowsBackgroundLocationUpdates")] bool AllowsBackgroundLocationUpdates { get; set; } - [NoWatch, NoTV, Mac (11,0), iOS (11,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 0)] [Export ("showsBackgroundLocationIndicator")] bool ShowsBackgroundLocationIndicator { get; set; } - [iOS (9,0)] - [Mac (10,14)] + [iOS (9, 0)] + [Mac (10, 14)] [Export ("requestLocation")] void RequestLocation (); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("accuracyAuthorization")] CLAccuracyAuthorization AccuracyAuthorization { get; } [Async] [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:completion:")] void RequestTemporaryFullAccuracyAuthorization (string purposeKey, [NullAllowed] Action completion); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:")] void RequestTemporaryFullAccuracyAuthorization (string purposeKey); [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("authorizedForWidgetUpdates")] bool IsAuthorizedForWidgetUpdates { [Bind ("isAuthorizedForWidgetUpdates")] get; } [Async] [NoWatch, NoTV, NoMac, NoMacCatalyst] - [iOS (15,0)] + [iOS (15, 0)] [Export ("startMonitoringLocationPushesWithCompletion:")] void StartMonitoringLocationPushes ([NullAllowed] Action completion); [NoWatch, NoTV, NoMac, NoMacCatalyst] - [iOS (15,0)] + [iOS (15, 0)] [Export ("stopMonitoringLocationPushes")] void StopMonitoringLocationPushes (); - [Watch (9,1), NoTV, NoMac, NoiOS, NoMacCatalyst] + [Watch (9, 1), NoTV, NoMac, NoiOS, NoMacCatalyst] [Export ("requestHistoricalLocationsWithPurposeKey:sampleCount:completionHandler:")] void RequestHistoricalLocations (string purposeKey, nint sampleCount, RequestHistoricalLocationsCompletionHandler handler); } - + [BaseType (typeof (NSObject))] [Model] [Protocol] - partial interface CLLocationManagerDelegate - { - [NoWatch][NoTV] + partial interface CLLocationManagerDelegate { + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 6, 0)] [Export ("locationManager:didUpdateToLocation:fromLocation:"), EventArgs ("CLLocationUpdated")] - void UpdatedLocation (CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation); - + void UpdatedLocation (CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation); + [NoTV] - [Watch (6,0), Mac (11,0)] + [Watch (6, 0), Mac (11, 0)] [Export ("locationManager:didUpdateHeading:"), EventArgs ("CLHeadingUpdated")] - void UpdatedHeading (CLLocationManager manager, CLHeading newHeading); - - [Mac (10,15)] + void UpdatedHeading (CLLocationManager manager, CLHeading newHeading); + + [Mac (10, 15)] [NoTV] - [Watch (6,0)] + [Watch (6, 0)] [Export ("locationManagerShouldDisplayHeadingCalibration:"), DelegateName ("CLLocationManagerEventArgs"), DefaultValue (true)] bool ShouldDisplayHeadingCalibration (CLLocationManager manager); - + [Export ("locationManager:didFailWithError:"), EventArgs ("NSError", true)] void Failed (CLLocationManager manager, NSError error); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("locationManager:didEnterRegion:"), EventArgs ("CLRegion")] void RegionEntered (CLLocationManager manager, CLRegion region); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("locationManager:didExitRegion:"), EventArgs ("CLRegion")] void RegionLeft (CLLocationManager manager, CLRegion region); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("locationManager:monitoringDidFailForRegion:withError:"), EventArgs ("CLRegionError")] void MonitoringFailed (CLLocationManager manager, [NullAllowed] CLRegion region, NSError error); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("locationManager:didStartMonitoringForRegion:"), EventArgs ("CLRegion")] void DidStartMonitoringForRegion (CLLocationManager manager, CLRegion region); - [NoWatch][NoTV] - [Mac (10,10)] - [iOS (7,0), Export ("locationManager:didDetermineState:forRegion:"), EventArgs ("CLRegionStateDetermined")] + [NoWatch] + [NoTV] + [Mac (10, 10)] + [iOS (7, 0), Export ("locationManager:didDetermineState:forRegion:"), EventArgs ("CLRegionStateDetermined")] void DidDetermineState (CLLocationManager manager, CLRegionState state, CLRegion region); - [NoWatch][NoTV][NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'DidRangeBeaconsSatisfyingConstraint' instead.")] - [iOS (7,0), Export ("locationManager:didRangeBeacons:inRegion:"), EventArgs ("CLRegionBeaconsRanged")] + [NoWatch] + [NoTV] + [NoMac] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'DidRangeBeaconsSatisfyingConstraint' instead.")] + [iOS (7, 0), Export ("locationManager:didRangeBeacons:inRegion:"), EventArgs ("CLRegionBeaconsRanged")] void DidRangeBeacons (CLLocationManager manager, CLBeacon [] beacons, CLBeaconRegion region); - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [Export ("locationManager:didRangeBeacons:satisfyingConstraint:")] [EventArgs ("CLRegionBeaconsConstraintRanged")] - void DidRangeBeaconsSatisfyingConstraint (CLLocationManager manager, CLBeacon[] beacons, CLBeaconIdentityConstraint beaconConstraint); + void DidRangeBeaconsSatisfyingConstraint (CLLocationManager manager, CLBeacon [] beacons, CLBeaconIdentityConstraint beaconConstraint); - [NoWatch][NoTV][NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'DidFailRangingBeacons' instead.")] - [iOS (7,0), Export ("locationManager:rangingBeaconsDidFailForRegion:withError:"), EventArgs ("CLRegionBeaconsFailed")] + [NoWatch] + [NoTV] + [NoMac] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'DidFailRangingBeacons' instead.")] + [iOS (7, 0), Export ("locationManager:rangingBeaconsDidFailForRegion:withError:"), EventArgs ("CLRegionBeaconsFailed")] void RangingBeaconsDidFailForRegion (CLLocationManager manager, CLBeaconRegion region, NSError error); - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [Export ("locationManager:didFailRangingBeaconsForConstraint:error:")] [EventArgs ("CLRegionBeaconsConstraintFailed")] void DidFailRangingBeacons (CLLocationManager manager, CLBeaconIdentityConstraint beaconConstraint, NSError error); - [NoWatch][NoTV] - [iOS (8,0), Mac (11,0)] + [NoWatch] + [NoTV] + [iOS (8, 0), Mac (11, 0)] [Export ("locationManager:didVisit:"), EventArgs ("CLVisited")] void DidVisit (CLLocationManager manager, CLVisit visit); @@ -559,19 +605,22 @@ namespace CoreLocation { void AuthorizationChanged (CLLocationManager manager, CLAuthorizationStatus status); [Export ("locationManager:didUpdateLocations:"), EventArgs ("CLLocationsUpdated")] - void LocationsUpdated (CLLocationManager manager, CLLocation[] locations); + void LocationsUpdated (CLLocationManager manager, CLLocation [] locations); - [Mac (10,15)] - [NoWatch][NoTV] + [Mac (10, 15)] + [NoWatch] + [NoTV] [Export ("locationManagerDidPauseLocationUpdates:"), EventArgs ("")] void LocationUpdatesPaused (CLLocationManager manager); - [Mac (10,15)] - [NoWatch][NoTV] + [Mac (10, 15)] + [NoWatch] + [NoTV] [Export ("locationManagerDidResumeLocationUpdates:"), EventArgs ("")] void LocationUpdatesResumed (CLLocationManager manager); - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("locationManager:didFinishDeferredUpdatesWithError:"), EventArgs ("NSError", true)] void DeferredUpdatesFinished (CLLocationManager manager, [NullAllowed] NSError error); @@ -584,50 +633,50 @@ namespace CoreLocation { [Static] partial interface CLLocationDistance { - [Mac (10,14)] + [Mac (10, 14)] [Field ("CLLocationDistanceMax")] double MaxDistance { get; } [Field ("kCLDistanceFilterNone")] double FilterNone { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // will crash, see CoreLocation.cs for compatibility stubs partial interface CLRegion : NSSecureCoding, NSCopying { [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'CLCircularRegion' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CLCircularRegion' instead.")] [Export ("center")] - CLLocationCoordinate2D Center { get; } + CLLocationCoordinate2D Center { get; } [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'CLCircularRegion' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CLCircularRegion' instead.")] [Export ("radius")] - double Radius { get; } + double Radius { get; } [Export ("identifier")] - string Identifier { get; } + string Identifier { get; } [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'CLCircularRegion' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CLCircularRegion' instead.")] [Export ("initCircularRegionWithCenter:radius:identifier:")] NativeHandle Constructor (CLLocationCoordinate2D center, double radius, string identifier); [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'CLCircularRegion' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'CLCircularRegion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CLCircularRegion' instead.")] [Export ("containsCoordinate:")] bool Contains (CLLocationCoordinate2D coordinate); - [iOS (7,0), Export ("notifyOnEntry", ArgumentSemantic.Assign)] - [Mac (10,10)] + [iOS (7, 0), Export ("notifyOnEntry", ArgumentSemantic.Assign)] + [Mac (10, 10)] bool NotifyOnEntry { get; set; } - [iOS (7,0), Export ("notifyOnExit", ArgumentSemantic.Assign)] - [Mac (10,10)] + [iOS (7, 0), Export ("notifyOnExit", ArgumentSemantic.Assign)] + [Mac (10, 10)] bool NotifyOnExit { get; set; } } @@ -637,69 +686,69 @@ namespace CoreLocation { [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CLPlacemark' properties to access data.")] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CLPlacemark' properties to access data.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'CLPlacemark' properties to access data.")] - [NullAllowed, Export("addressDictionary", ArgumentSemantic.Copy)] + [NullAllowed, Export ("addressDictionary", ArgumentSemantic.Copy)] NSDictionary AddressDictionary { get; } - [NullAllowed, Export("administrativeArea")] + [NullAllowed, Export ("administrativeArea")] string AdministrativeArea { get; } - [NullAllowed, Export("subAdministrativeArea")] + [NullAllowed, Export ("subAdministrativeArea")] string SubAdministrativeArea { get; } - [NullAllowed, Export("subLocality")] + [NullAllowed, Export ("subLocality")] string SubLocality { get; } - [NullAllowed, Export("locality")] + [NullAllowed, Export ("locality")] string Locality { get; } - [NullAllowed, Export("country")] + [NullAllowed, Export ("country")] string Country { get; } - - [NullAllowed, Export("postalCode")] + + [NullAllowed, Export ("postalCode")] string PostalCode { get; } - [NullAllowed, Export("thoroughfare")] + [NullAllowed, Export ("thoroughfare")] string Thoroughfare { get; } - [NullAllowed, Export("subThoroughfare")] + [NullAllowed, Export ("subThoroughfare")] string SubThoroughfare { get; } [NullAllowed, Export ("ISOcountryCode")] - string IsoCountryCode { get; } + string IsoCountryCode { get; } [NullAllowed, Export ("areasOfInterest")] - string [] AreasOfInterest { get; } + string [] AreasOfInterest { get; } [Export ("initWithPlacemark:")] NativeHandle Constructor (CLPlacemark placemark); [NullAllowed, Export ("inlandWater")] - string InlandWater { get; } + string InlandWater { get; } [NullAllowed, Export ("location", ArgumentSemantic.Copy)] CLLocation Location { get; } [NullAllowed, Export ("name")] - string Name { get; } + string Name { get; } [NullAllowed, Export ("ocean")] - string Ocean { get; } + string Ocean { get; } [NullAllowed, Export ("region", ArgumentSemantic.Copy)] CLRegion Region { get; } [NullAllowed, Export ("timeZone")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] NSTimeZone TimeZone { get; } // From CLPlacemark (ContactsAdditions) category. - [Watch (4,0), NoTV, Mac (10,13), iOS (11,0)] + [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("postalAddress")] CNPostalAddress PostalAddress { get; } } - [Mac (10,10)] - [iOS (7,0), BaseType (typeof (CLRegion))] + [Mac (10, 10)] + [iOS (7, 0), BaseType (typeof (CLRegion))] #if MONOMAC [DisableDefaultCtor] #endif @@ -718,43 +767,45 @@ namespace CoreLocation { bool ContainsCoordinate (CLLocationCoordinate2D coordinate); } - [NoWatch][Mac (11,0)][NoTV] - [iOS (7,0), BaseType (typeof (CLRegion))] + [NoWatch] + [Mac (11, 0)] + [NoTV] + [iOS (7, 0), BaseType (typeof (CLRegion))] [DisableDefaultCtor] // nil-Handle on iOS8 if 'init' is used partial interface CLBeaconRegion { [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] [Export ("initWithProximityUUID:identifier:")] NativeHandle Constructor (NSUuid proximityUuid, string identifier); [NoMac] - [iOS (13,0)] + [iOS (13, 0)] [Internal] // signature conflict with deprecated API [Export ("initWithUUID:identifier:")] IntPtr _Constructor (NSUuid uuid, string identifier); [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] [Export ("initWithProximityUUID:major:identifier:")] NativeHandle Constructor (NSUuid proximityUuid, ushort major, string identifier); - [iOS (13,0)] + [iOS (13, 0)] [Internal] // signature conflict with deprecated API [Export ("initWithUUID:major:identifier:")] IntPtr _Constructor (NSUuid uuid, ushort major, string identifier); [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the 'Create' method or the constructor using 'CLBeaconIdentityConstraint' instead.")] [Export ("initWithProximityUUID:major:minor:identifier:")] NativeHandle Constructor (NSUuid proximityUuid, ushort major, ushort minor, string identifier); - [iOS (13,0)] + [iOS (13, 0)] [Internal] // signature conflict with deprecated API [Export ("initWithUUID:major:minor:identifier:")] IntPtr _Constructor (NSUuid uuid, ushort major, ushort minor, string identifier); - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithBeaconIdentityConstraint:identifier:")] NativeHandle Constructor (CLBeaconIdentityConstraint beaconIdentityConstraint, string identifier); @@ -762,11 +813,11 @@ namespace CoreLocation { NSMutableDictionary GetPeripheralData ([NullAllowed] NSNumber measuredPower); [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Uuid' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Uuid' instead.")] [Export ("proximityUUID", ArgumentSemantic.Copy)] NSUuid ProximityUuid { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("UUID", ArgumentSemantic.Copy)] NSUuid Uuid { get; } @@ -779,21 +830,23 @@ namespace CoreLocation { [Export ("notifyEntryStateOnDisplay", ArgumentSemantic.Assign)] bool NotifyEntryStateOnDisplay { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("beaconIdentityConstraint", ArgumentSemantic.Copy)] CLBeaconIdentityConstraint BeaconIdentityConstraint { get; } } - [NoWatch][Mac (11,0)][NoTV] - [iOS (7,0), BaseType (typeof (NSObject))] + [NoWatch] + [Mac (11, 0)] + [NoTV] + [iOS (7, 0), BaseType (typeof (NSObject))] partial interface CLBeacon : NSCopying, NSSecureCoding { [NoMac] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Uuid' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Uuid' instead.")] [Export ("proximityUUID", ArgumentSemantic.Copy)] NSUuid ProximityUuid { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("UUID", ArgumentSemantic.Copy)] NSUuid Uuid { get; } @@ -812,7 +865,7 @@ namespace CoreLocation { [Export ("rssi")] nint Rssi { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("timestamp", ArgumentSemantic.Copy)] NSDate Timestamp { get; } } @@ -828,7 +881,7 @@ namespace CoreLocation { [Async] void ReverseGeocodeLocation (CLLocation location, CLGeocodeCompletionHandler completionHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("reverseGeocodeLocation:preferredLocale:completionHandler:")] [Async] void ReverseGeocodeLocation (CLLocation location, [NullAllowed] NSLocale locale, CLGeocodeCompletionHandler completionHandler); @@ -848,7 +901,7 @@ namespace CoreLocation { [Async] void GeocodeAddress (string addressString, [NullAllowed] CLRegion region, CLGeocodeCompletionHandler completionHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async] [Export ("geocodeAddressString:inRegion:preferredLocale:completionHandler:")] void GeocodeAddress (string addressString, [NullAllowed] CLRegion region, [NullAllowed] NSLocale locale, CLGeocodeCompletionHandler completionHandler); @@ -856,19 +909,20 @@ namespace CoreLocation { [Export ("cancelGeocode")] void CancelGeocode (); - [Watch (4,0), NoTV, Mac (10,13), iOS (11,0)] + [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [Export ("geocodePostalAddress:completionHandler:")] [Async] void GeocodePostalAddress (CNPostalAddress postalAddress, CLGeocodeCompletionHandler completionHandler); - [Watch (4,0), NoTV, Mac (10,13), iOS (11,0)] + [Watch (4, 0), NoTV, Mac (10, 13), iOS (11, 0)] [Export ("geocodePostalAddress:preferredLocale:completionHandler:")] [Async] void GeocodePostalAddress (CNPostalAddress postalAddress, [NullAllowed] NSLocale locale, CLGeocodeCompletionHandler completionHandler); } - [NoWatch][NoTV] - [iOS (8,0), Mac (11,0)] + [NoWatch] + [NoTV] + [iOS (8, 0), Mac (11, 0)] [BaseType (typeof (NSObject))] interface CLVisit : NSSecureCoding, NSCopying { @@ -885,7 +939,7 @@ namespace CoreLocation { double HorizontalAccuracy { get; } } - [NoWatch, NoTV, Mac (11,0), iOS (13,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[CLBeaconIdentityConstraint init]: unrecognized selector sent to instance 0x600001930300 interface CLBeaconIdentityConstraint : NSCopying, NSSecureCoding { @@ -914,11 +968,10 @@ namespace CoreLocation { #if NET // Apple fixed this in Xcode 13.1 [iOS (15,0), NoTV, NoMacCatalyst, NoMac, NoWatch] #else - [iOS (15,0), NoTV, MacCatalyst (15,0), NoMac, NoWatch] + [iOS (15, 0), NoTV, MacCatalyst (15, 0), NoMac, NoWatch] #endif [Protocol] - interface CLLocationPushServiceExtension - { + interface CLLocationPushServiceExtension { [Abstract] [Export ("didReceiveLocationPushPayload:completion:")] void DidReceiveLocationPushPayload (NSDictionary payload, Action completion); @@ -927,10 +980,9 @@ namespace CoreLocation { void ServiceExtensionWillTerminate (); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface CLLocationSourceInformation : NSCopying, NSSecureCoding - { + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface CLLocationSourceInformation : NSCopying, NSSecureCoding { [Export ("initWithSoftwareSimulationState:andExternalAccessoryState:")] NativeHandle Constructor (bool isSoftware, bool isAccessory); diff --git a/src/corelocationui.cs b/src/corelocationui.cs index dc7d06c205..458b97cd5e 100644 --- a/src/corelocationui.cs +++ b/src/corelocationui.cs @@ -11,7 +11,7 @@ using NativeHandle = System.IntPtr; namespace CoreLocationUI { - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum CLLocationButtonIcon : long { None = 0, @@ -19,7 +19,7 @@ namespace CoreLocationUI { ArrowOutline, } - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum CLLocationButtonLabel : long { None = 0, @@ -30,9 +30,9 @@ namespace CoreLocationUI { ShareMyCurrentLocation, } - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UIControl))] - interface CLLocationButton : NSSecureCoding { + interface CLLocationButton : NSSecureCoding { [Export ("initWithFrame:")] [DesignatedInitializer] diff --git a/src/coremedia.cs b/src/coremedia.cs index a2efaf96fa..efd316f5d9 100644 --- a/src/coremedia.cs +++ b/src/coremedia.cs @@ -10,45 +10,55 @@ using ObjCRuntime; namespace CoreMedia { - [Watch (6,0)] + [Watch (6, 0)] [Partial] interface CMMemoryPool { - [Internal][Field ("kCMMemoryPoolOption_AgeOutPeriod")] + [Internal] + [Field ("kCMMemoryPoolOption_AgeOutPeriod")] IntPtr AgeOutPeriodSelector { get; } } - [Static][Internal] - [Mac (10, 9), Watch (6,0)] + [Static] + [Internal] + [Mac (10, 9), Watch (6, 0)] interface CMTextMarkupAttributesKeys { - [Internal][Field ("kCMTextMarkupAttribute_ForegroundColorARGB")] + [Internal] + [Field ("kCMTextMarkupAttribute_ForegroundColorARGB")] NSString ForegroundColorARGB { get; } - [Internal][Field ("kCMTextMarkupAttribute_BackgroundColorARGB")] + [Internal] + [Field ("kCMTextMarkupAttribute_BackgroundColorARGB")] NSString BackgroundColorARGB { get; } - [Internal][Field ("kCMTextMarkupAttribute_BoldStyle")] + [Internal] + [Field ("kCMTextMarkupAttribute_BoldStyle")] NSString BoldStyle { get; } - [Internal][Field ("kCMTextMarkupAttribute_ItalicStyle")] + [Internal] + [Field ("kCMTextMarkupAttribute_ItalicStyle")] NSString ItalicStyle { get; } - [Internal][Field ("kCMTextMarkupAttribute_UnderlineStyle")] + [Internal] + [Field ("kCMTextMarkupAttribute_UnderlineStyle")] NSString UnderlineStyle { get; } - [Internal][Field ("kCMTextMarkupAttribute_FontFamilyName")] + [Internal] + [Field ("kCMTextMarkupAttribute_FontFamilyName")] NSString FontFamilyName { get; } - [Internal][Field ("kCMTextMarkupAttribute_RelativeFontSize")] + [Internal] + [Field ("kCMTextMarkupAttribute_RelativeFontSize")] NSString RelativeFontSize { get; } [Internal] - [Field("kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight")] + [Field ("kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight")] NSString BaseFontSizePercentageRelativeToVideoHeight { get; } } - [Static][Internal] - [Watch (6,0)] + [Static] + [Internal] + [Watch (6, 0)] interface CMSampleAttachmentKey { [Field ("kCMSampleAttachmentKey_NotSync")] NSString NotSync { get; } @@ -129,51 +139,56 @@ namespace CoreMedia { [Field ("kCMSampleBufferAttachmentKey_DroppedFrameReason")] NSString DroppedFrameReason { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo")] NSString StillImageLensStabilizationInfo { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("kCMSampleBufferLensStabilizationInfo_Active")] NSString BufferLensStabilizationInfo_Active { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("kCMSampleBufferLensStabilizationInfo_OutOfRange")] NSString BufferLensStabilizationInfo_OutOfRange { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("kCMSampleBufferLensStabilizationInfo_Unavailable")] NSString BufferLensStabilizationInfo_Unavailable { get; } - [iOS (9,0)][NoMac] + [iOS (9, 0)] + [NoMac] [Field ("kCMSampleBufferLensStabilizationInfo_Off")] NSString BufferLensStabilizationInfo_Off { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCMSampleAttachmentKey_HEVCTemporalLevelInfo")] NSString HevcTemporalLevelInfoKey { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCMSampleAttachmentKey_HEVCTemporalSubLayerAccess")] NSString HevcTemporalSubLayerAccessKey { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCMSampleAttachmentKey_HEVCStepwiseTemporalSubLayerAccess")] NSString HevcStepwiseTemporalSubLayerAccessKey { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCMSampleAttachmentKey_HEVCSyncSampleNALUnitType")] NSString HevcSyncSampleNalUnitTypeKey { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix")] NSString CameraIntrinsicMatrixKey { get; } - [iOS (13,0), Mac (10,15), TV (13,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0)] [Field ("kCMSampleAttachmentKey_AudioIndependentSampleDecoderRefreshCount")] NSString AudioIndependentSampleDecoderRefreshCountKey { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("kCMSampleBufferAttachmentKey_ForceKeyFrame")] NSString ForceKeyFrameKey { get; } @@ -182,7 +197,7 @@ namespace CoreMedia { NSString Hdr10PlusPerFrameDataKey { get; } } - [Watch (6,0)] + [Watch (6, 0)] [StrongDictionary ("CMSampleAttachmentKey")] interface CMSampleBufferAttachmentSettings { @@ -196,26 +211,26 @@ namespace CoreMedia { int SampleReferenceByteOffset { get; set; } NSNumber GradualDecoderRefresh { get; set; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [StrongDictionary] CMHevcTemporalLevelInfoSettings HevcTemporalLevelInfo { get; set; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] bool HevcTemporalSubLayerAccess { get; set; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] bool HevcStepwiseTemporalSubLayerAccess { get; set; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] int HevcSyncSampleNalUnitType { get; set; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] NSData CameraIntrinsicMatrix { get; set; } - [iOS (13,0), Mac (10,15), TV (13,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0)] nint AudioIndependentSampleDecoderRefreshCount { get; set; } - [Mac (10,10)] + [Mac (10, 10)] bool ForceKeyFrame { get; set; } [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] @@ -224,7 +239,7 @@ namespace CoreMedia { } [Internal] - [iOS (11,0), Mac (10,13), TV (11,0), Watch (6,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0), Watch (6, 0)] [Static] interface CMHevcTemporalLevelInfoKeys { @@ -250,7 +265,7 @@ namespace CoreMedia { NSString LevelIndexKey { get; } } - [iOS (11,0), Mac (10,13), TV (11,0), Watch (6,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0), Watch (6, 0)] [StrongDictionary ("CMHevcTemporalLevelInfoKeys")] interface CMHevcTemporalLevelInfoSettings { diff --git a/src/coremidi.cs b/src/coremidi.cs index a33517d4aa..2f0d1ba882 100644 --- a/src/coremidi.cs +++ b/src/coremidi.cs @@ -40,9 +40,9 @@ using NativeHandle = System.IntPtr; namespace CoreMidi { - [Mac (10,14)] - [Watch (8,0)] - [TV (15,0)] + [Mac (10, 14)] + [Watch (8, 0)] + [TV (15, 0)] // NSUInteger -> MIDINetworkSession.h [Native] public enum MidiNetworkConnectionPolicy : ulong { @@ -119,63 +119,60 @@ namespace CoreMidi { SystemReset = 255, } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [NativeName ("MIDINoteAttribute")] - public enum MidiNoteAttribute : byte - { + public enum MidiNoteAttribute : byte { None = 0, ManufacturerSpecific = 1, ProfileSpecific = 2, Pitch = 3, } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [NativeName ("MIDIPerNoteManagementOptions")] [Flags] - public enum MidiPerNoteManagementOptions : byte - { + public enum MidiPerNoteManagementOptions : byte { Reset = 1 << 0, Detach = 1 << 1, } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [NativeName ("MIDIProgramChangeOptions")] [Flags] - public enum MidiProgramChangeOptions : byte - { + public enum MidiProgramChangeOptions : byte { BankValid = 1 << 0, } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [NativeName ("MIDIUtilityStatus")] - public enum MidiUtilityStatus : uint - { + public enum MidiUtilityStatus : uint { Noop = 0, JitterReductionClock = 1, JitterReductionTimestamp = 2, } - [NoTV][NoWatch] - [Mac (10,15)] - [BaseType (typeof (NSObject), Name="MIDINetworkHost")] + [NoTV] + [NoWatch] + [Mac (10, 15)] + [BaseType (typeof (NSObject), Name = "MIDINetworkHost")] [DisableDefaultCtor] interface MidiNetworkHost { [Export ("name", ArgumentSemantic.Retain)] - string Name { get; } + string Name { get; } [Export ("address", ArgumentSemantic.Retain)] - string Address { get; } + string Address { get; } [Export ("port")] - nint Port { get; } + nint Port { get; } [NullAllowed] [Export ("netServiceName", ArgumentSemantic.Retain)] - string NetServiceName { get; } + string NetServiceName { get; } [NullAllowed] [Export ("netServiceDomain", ArgumentSemantic.Retain)] - string NetServiceDomain { get; } + string NetServiceDomain { get; } [Static] [Export ("hostWithName:netService:")] @@ -193,8 +190,9 @@ namespace CoreMidi { bool HasSameAddressAs (MidiNetworkHost other); } - [NoTV][NoWatch] - [Mac (10,15)] + [NoTV] + [NoWatch] + [Mac (10, 15)] [Static] interface Midi { [Field ("MIDINetworkNotificationContactsDidChange")] @@ -209,38 +207,40 @@ namespace CoreMidi { NSString NetworkBonjourServiceType { get; } } - [NoTV][NoWatch] - [Mac (10,15)] + [NoTV] + [NoWatch] + [Mac (10, 15)] [DisableDefaultCtor] - [BaseType (typeof (NSObject), Name="MIDINetworkConnection")] + [BaseType (typeof (NSObject), Name = "MIDINetworkConnection")] interface MidiNetworkConnection { [Export ("host", ArgumentSemantic.Retain)] - MidiNetworkHost Host { get; } + MidiNetworkHost Host { get; } [Static, Export ("connectionWithHost:")] MidiNetworkConnection FromHost (MidiNetworkHost host); } - [NoTV][NoWatch] - [Mac (10,15)] - [BaseType (typeof (NSObject), Name="MIDINetworkSession")] + [NoTV] + [NoWatch] + [Mac (10, 15)] + [BaseType (typeof (NSObject), Name = "MIDINetworkSession")] // default 'init' crash the application [DisableDefaultCtor] interface MidiNetworkSession { [Export ("enabled")] - bool Enabled { [Bind ("isEnabled")] get; set; } + bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("networkPort")] - nint NetworkPort { get; } + nint NetworkPort { get; } [Export ("networkName")] - string NetworkName { get; } + string NetworkName { get; } [Export ("localName")] - string LocalName { get; } + string LocalName { get; } [Export ("connectionPolicy")] - MidiNetworkConnectionPolicy ConnectionPolicy { get; set; } + MidiNetworkConnectionPolicy ConnectionPolicy { get; set; } [Static] [Export ("defaultSession")] @@ -264,7 +264,8 @@ namespace CoreMidi { [Export ("removeConnection:")] bool RemoveConnection (MidiNetworkConnection connection); - [Export ("sourceEndpoint")] [Internal] + [Export ("sourceEndpoint")] + [Internal] int /* MIDIObjectRef = UInt32 */ _SourceEndpoint { get; } #if NET @@ -275,7 +276,8 @@ namespace CoreMidi { MidiEndpoint SourceEndpoint { get; } #endif - [Export ("destinationEndpoint")] [Internal] + [Export ("destinationEndpoint")] + [Internal] int /* MIDIObjectRef = UInt32 */ _DestinationEndpoint { get; } #if NET @@ -288,11 +290,10 @@ namespace CoreMidi { } - [NoWatch, NoTV, Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject), Name="MIDICIProfile")] + [NoWatch, NoTV, Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject), Name = "MIDICIProfile")] [DisableDefaultCtor] - interface MidiCIProfile : NSSecureCoding - { + interface MidiCIProfile : NSSecureCoding { [Export ("name")] string Name { get; } @@ -302,35 +303,34 @@ namespace CoreMidi { [Export ("initWithData:name:")] NativeHandle Constructor (NSData data, string inName); - [Mac (11, 0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithData:")] NativeHandle Constructor (NSData data); } - [NoWatch, NoTV, Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject), Name="MIDICIProfileState")] + [NoWatch, NoTV, Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject), Name = "MIDICIProfileState")] [DisableDefaultCtor] - interface MidiCIProfileState : NSSecureCoding - { + interface MidiCIProfileState : NSSecureCoding { [Export ("enabledProfiles")] - MidiCIProfile[] EnabledProfiles { get; } + MidiCIProfile [] EnabledProfiles { get; } [Export ("disabledProfiles")] - MidiCIProfile[] DisabledProfiles { get; } + MidiCIProfile [] DisabledProfiles { get; } - [Deprecated (PlatformName.iOS, 14, 0, message : "Use the '(byte midiChannel, MidiCIProfile[] enabled, MidiCIProfile[] disabled)' constructor instead.")] - [Deprecated (PlatformName.MacOSX, 11, 0, message : "Use the '(byte midiChannel, MidiCIProfile[] enabled, MidiCIProfile[] disabled)' constructor instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use the '(byte midiChannel, MidiCIProfile[] enabled, MidiCIProfile[] disabled)' constructor instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use the '(byte midiChannel, MidiCIProfile[] enabled, MidiCIProfile[] disabled)' constructor instead.")] [Export ("initWithEnabledProfiles:disabledProfiles:")] - NativeHandle Constructor (MidiCIProfile[] enabled, MidiCIProfile[] disabled); + NativeHandle Constructor (MidiCIProfile [] enabled, MidiCIProfile [] disabled); [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("initWithChannel:enabledProfiles:disabledProfiles:")] - NativeHandle Constructor (byte midiChannelNumber, MidiCIProfile[] enabled, MidiCIProfile[] disabled); + NativeHandle Constructor (byte midiChannelNumber, MidiCIProfile [] enabled, MidiCIProfile [] disabled); [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("midiChannel")] byte MidiChannel { get; } } @@ -341,11 +341,10 @@ namespace CoreMidi { delegate void MidiCIProfileSpecificDataHandler (MidiCISession session, byte channel, MidiCIProfile profile, NSData data); delegate void MidiCISessionDisconnectHandler (MidiCISession session, NSError error); - [NoWatch, NoTV, Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject), Name="MIDICISession")] + [NoWatch, NoTV, Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject), Name = "MIDICISession")] [DisableDefaultCtor] - interface MidiCISession - { + interface MidiCISession { [Export ("entity")] uint Entity { get; } @@ -371,50 +370,49 @@ namespace CoreMidi { MidiCIProfileChangedHandler ProfileChangedCallback { get; set; } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("initWithDiscoveredNode:dataReadyHandler:disconnectHandler:")] NativeHandle Constructor (MidiCIDiscoveredNode discoveredNode, Action dataReadyHandler, MidiCISessionDisconnectHandler disconnectHandler); [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("sendProfile:onChannel:profileData:")] bool SendProfile (MidiCIProfile profile, byte channel, NSData profileSpecificData); [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("deviceInfo")] MidiCIDeviceInfo DeviceInfo { get; } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BindAs (typeof (ulong))] [Export ("maxSysExSize")] NSNumber MaxSysExSize { get; } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BindAs (typeof (int))] [Export ("maxPropertyRequests")] NSNumber MaxPropertyRequests { get; } [Internal] [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("midiDestination")] MidiObjectRef _MidiDestination { get; } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("profileSpecificDataHandler", ArgumentSemantic.Copy)] MidiCIProfileSpecificDataHandler ProfileSpecificDataHandler { get; set; } } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] - [BaseType (typeof (NSObject), Name="MIDICIDeviceInfo")] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject), Name = "MIDICIDeviceInfo")] [DisableDefaultCtor] - interface MidiCIDeviceInfo : NSSecureCoding - { + interface MidiCIDeviceInfo : NSSecureCoding { [Export ("manufacturerID")] NSData ManufacturerId { get; } @@ -443,17 +441,16 @@ namespace CoreMidi { } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] - [BaseType (typeof (NSObject), Name="MIDICIDiscoveredNode")] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject), Name = "MIDICIDiscoveredNode")] [DisableDefaultCtor] - interface MidiCIDiscoveredNode : NSSecureCoding - { + interface MidiCIDiscoveredNode : NSSecureCoding { [Internal] [Export ("destination")] MidiObjectRef _Destination { get; } [Wrap ("new MidiEndpoint (_Destination)")] - MidiEndpoint GetDestination (); + MidiEndpoint GetDestination (); [Export ("deviceInfo")] MidiCIDeviceInfo DeviceInfo { get; } @@ -469,14 +466,13 @@ namespace CoreMidi { NSNumber MaximumSysExSize { get; } } - delegate void MidiCIDiscoveryResponseDelegate (MidiCIDiscoveredNode[] discoveredNodes); + delegate void MidiCIDiscoveryResponseDelegate (MidiCIDiscoveredNode [] discoveredNodes); [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] - [BaseType (typeof (NSObject), Name="MIDICIDiscoveryManager")] - interface MidiCIDiscoveryManager - { + [BaseType (typeof (NSObject), Name = "MIDICIDiscoveryManager")] + interface MidiCIDiscoveryManager { [Static] [Export ("sharedInstance")] MidiCIDiscoveryManager SharedInstance { get; } @@ -485,18 +481,17 @@ namespace CoreMidi { void Discover (MidiCIDiscoveryResponseDelegate completedHandler); } - interface IMidiCIProfileResponderDelegate {} + interface IMidiCIProfileResponderDelegate { } - [Mac (11, 0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof (NSObject), Name="MIDICIProfileResponderDelegate")] - interface MidiCIProfileResponderDelegate - { + [BaseType (typeof (NSObject), Name = "MIDICIProfileResponderDelegate")] + interface MidiCIProfileResponderDelegate { [Abstract] [Export ("connectInitiator:withDeviceInfo:")] bool ConnectInitiator (NSNumber initiatorMuid, MidiCIDeviceInfo deviceInfo); @@ -513,14 +508,13 @@ namespace CoreMidi { } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] - [BaseType (typeof (NSObject), Name="MIDICIResponder")] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject), Name = "MIDICIResponder")] [DisableDefaultCtor] - interface MidiCIResponder - { - [BindAs (typeof (int[]))] + interface MidiCIResponder { + [BindAs (typeof (int []))] [Export ("initiators")] - NSNumber[] Initiators { get; } + NSNumber [] Initiators { get; } [Wrap ("WeakProfileDelegate")] IMidiCIProfileResponderDelegate ProfileDelegate { get; } @@ -532,7 +526,7 @@ namespace CoreMidi { MidiCIDeviceInfo DeviceInfo { get; } [Export ("initWithDeviceInfo:profileDelegate:profileStates:supportProperties:")] - NativeHandle Constructor (MidiCIDeviceInfo deviceInfo, IMidiCIProfileResponderDelegate @delegate, MidiCIProfileState[] profileList, bool propertiesSupported); + NativeHandle Constructor (MidiCIDeviceInfo deviceInfo, IMidiCIProfileResponderDelegate @delegate, MidiCIProfileState [] profileList, bool propertiesSupported); [Export ("notifyProfile:onChannel:isEnabled:")] bool NotifyProfile (MidiCIProfile profile, byte channel, bool enabledState); diff --git a/src/coreml.cs b/src/coreml.cs index a66562bdeb..9fc8bb880c 100644 --- a/src/coreml.cs +++ b/src/coreml.cs @@ -32,7 +32,7 @@ using NativeHandle = System.IntPtr; namespace CoreML { - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Native] public enum MLFeatureType : long { Invalid = 0, @@ -42,11 +42,11 @@ namespace CoreML { Image = 4, MultiArray = 5, Dictionary = 6, - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] Sequence = 7, } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [ErrorDomain ("MLModelErrorDomain")] [Native] public enum MLModelError : long { @@ -62,7 +62,7 @@ namespace CoreML { ModelCollection = 10, } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Native] public enum MLMultiArrayDataType : long { Double = 0x10000 | 64, @@ -78,7 +78,7 @@ namespace CoreML { Int32 = 0x20000 | 32, } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] public enum MLImageSizeConstraintType : long { Unspecified = 0, @@ -86,7 +86,7 @@ namespace CoreML { Range = 3, } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] public enum MLMultiArrayShapeConstraintType : long { Unspecified = 1, @@ -94,7 +94,7 @@ namespace CoreML { Range = 3, } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] public enum MLComputeUnits : long { CpuOnly = 0, @@ -103,7 +103,7 @@ namespace CoreML { CPUAndNeuralEngine = 3, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] public enum MLTaskState : long { Suspended = 1, @@ -113,7 +113,7 @@ namespace CoreML { Failed = 5, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Flags] [Native] public enum MLUpdateProgressEvent : ulong { @@ -122,7 +122,7 @@ namespace CoreML { MiniBatchEnd = 1L << 2, } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLDictionaryFeatureProvider : MLFeatureProvider, NSSecureCoding { @@ -133,7 +133,7 @@ namespace CoreML { NativeHandle Constructor (NSDictionary dictionary, out NSError error); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLFeatureDescription : NSCopying, NSSecureCoding { @@ -160,14 +160,14 @@ namespace CoreML { [NullAllowed, Export ("dictionaryConstraint", ArgumentSemantic.Assign)] MLDictionaryConstraint DictionaryConstraint { get; } - [Watch (5,0),TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [NullAllowed, Export ("sequenceConstraint")] MLSequenceConstraint SequenceConstraint { get; } } interface IMLFeatureProvider { } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MLFeatureProvider { @@ -181,7 +181,7 @@ namespace CoreML { MLFeatureValue GetFeatureValue (string featureName); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLFeatureValue : NSCopying, NSSecureCoding { @@ -209,7 +209,7 @@ namespace CoreML { [NullAllowed, Export ("imageBufferValue")] CVPixelBuffer ImageBufferValue { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [NullAllowed, Export ("sequenceValue")] MLSequence SequenceValue { get; } @@ -217,7 +217,7 @@ namespace CoreML { [Export ("featureValueWithPixelBuffer:")] MLFeatureValue Create (CVPixelBuffer value); - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("featureValueWithSequence:")] MLFeatureValue Create (MLSequence sequence); @@ -252,104 +252,104 @@ namespace CoreML { // From MLFeatureValue (MLImageConversion) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (url, pixelsWide, pixelsHigh, pixelFormatType, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithImageAtURL:constraint:options:error:")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, MLImageConstraint constraint, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (url, constraint, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, MLImageConstraint constraint, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:")] [return: NullAllowed] MLFeatureValue Create (CGImage image, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (image, pixelsWide, pixelsHigh, pixelFormatType, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (CGImage image, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithCGImage:constraint:options:error:")] [return: NullAllowed] MLFeatureValue Create (CGImage image, MLImageConstraint constraint, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (image, constraint, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (CGImage image, MLImageConstraint constraint, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, CGImagePropertyOrientation orientation, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (url, orientation, pixelsWide, pixelsHigh, pixelFormatType, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, CGImagePropertyOrientation orientation, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithImageAtURL:orientation:constraint:options:error:")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, CGImagePropertyOrientation orientation, MLImageConstraint constraint, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (url, orientation, constraint, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (NSUrl url, CGImagePropertyOrientation orientation, MLImageConstraint constraint, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:")] [return: NullAllowed] MLFeatureValue Create (CGImage image, CGImagePropertyOrientation orientation, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (image, orientation, pixelsWide, pixelsHigh, pixelFormatType, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (CGImage image, CGImagePropertyOrientation orientation, nint pixelsWide, nint pixelsHigh, CVPixelFormatType pixelFormatType, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("featureValueWithCGImage:orientation:constraint:options:error:")] [return: NullAllowed] MLFeatureValue Create (CGImage image, CGImagePropertyOrientation orientation, MLImageConstraint constraint, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Wrap ("Create (image, orientation, constraint, imageOptions.GetDictionary (), out error)")] [return: NullAllowed] MLFeatureValue Create (CGImage image, CGImagePropertyOrientation orientation, MLImageConstraint constraint, [NullAllowed] MLFeatureValueImageOption imageOptions, [NullAllowed] out NSError error); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Internal] [Static] interface MLFeatureValueImageOptionKeys { @@ -361,21 +361,21 @@ namespace CoreML { NSString CropAndScaleKey { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [StrongDictionary ("MLFeatureValueImageOptionKeys")] interface MLFeatureValueImageOption { CGRect CropRect { get; set; } VNImageCropAndScaleOption CropAndScale { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLModel { [Export ("modelDescription")] MLModelDescription ModelDescription { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("configuration")] MLModelConfiguration Configuration { get; } @@ -384,7 +384,7 @@ namespace CoreML { [return: NullAllowed] MLModel Create (NSUrl url, out NSError error); - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("modelWithContentsOfURL:configuration:error:")] [return: NullAllowed] @@ -398,29 +398,29 @@ namespace CoreML { [return: NullAllowed] IMLFeatureProvider GetPrediction (IMLFeatureProvider input, MLPredictionOptions options, out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("predictionsFromBatch:error:")] [return: NullAllowed] IMLBatchProvider GetPredictions (IMLBatchProvider inputBatch, [NullAllowed] out NSError error); - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("predictionsFromBatch:options:error:")] [return: NullAllowed] IMLBatchProvider GetPredictions (IMLBatchProvider inputBatch, MLPredictionOptions options, out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("parameterValueForKey:error:")] [return: NullAllowed] NSObject GetParameterValue (MLParameterKey key, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Async] [Export ("loadContentsOfURL:configuration:completionHandler:")] void LoadContents (NSUrl url, MLModelConfiguration configuration, Action handler); - [Async (ResultTypeName="MLModelCompilationLoadResult")] - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Async (ResultTypeName = "MLModelCompilationLoadResult")] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("loadModelAsset:configuration:completionHandler:")] void Load (MLModelAsset asset, MLModelConfiguration configuration, Action handler); @@ -436,14 +436,14 @@ namespace CoreML { [return: NullAllowed] NSUrl CompileModel (NSUrl modelUrl, out NSError error); - [Async (ResultTypeName="MLModelCompilationResult")] - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Async (ResultTypeName = "MLModelCompilationResult")] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("compileModelAtURL:completionHandler:")] void CompileModel (NSUrl modelUrl, Action handler); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLModelDescription : NSSecureCoding { @@ -466,29 +466,29 @@ namespace CoreML { [Wrap ("_Metadata")] MLModelMetadata Metadata { get; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("classLabels", ArgumentSemantic.Copy)] - NSObject[] ClassLabels { get; } + NSObject [] ClassLabels { get; } // From MLModelDescription (MLUpdateAdditions) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("isUpdatable")] bool IsUpdatable { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("trainingInputDescriptionsByName")] NSDictionary TrainingInputDescriptionsByName { get; } // From MLModelDescription (MLParameters) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("parameterDescriptionsByKey")] NSDictionary ParameterDescriptionsByKey { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] interface MLModelMetadataKeys { @@ -509,7 +509,7 @@ namespace CoreML { NSString CreatorDefinedKey { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [StrongDictionary ("MLModelMetadataKeys")] interface MLModelMetadata { string Description { get; } @@ -519,7 +519,7 @@ namespace CoreML { string CreatorDefined { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MLMultiArray : NSSecureCoding { @@ -547,7 +547,7 @@ namespace CoreML { nint Count { get; } [NullAllowed] - [Watch (9,0), TV (16,0), Mac (12,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (12, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("pixelBuffer")] CVPixelBuffer PixelBuffer { get; } @@ -559,7 +559,7 @@ namespace CoreML { [Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")] NativeHandle Constructor (IntPtr dataPointer, NSNumber [] shape, MLMultiArrayDataType dataType, NSNumber [] strides, [NullAllowed] Action deallocator, out NSError error); - [Watch (9,0), TV (16,0), Mac (12,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (12, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithPixelBuffer:shape:")] IntPtr Constructor (CVPixelBuffer pixelBuffer, NSNumber [] shape); @@ -591,23 +591,23 @@ namespace CoreML { // @interface Concatenating (MLMultiArray) - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("multiArrayByConcatenatingMultiArrays:alongAxis:dataType:")] - MLMultiArray Concat (MLMultiArray[] multiArrays, nint axis, MLMultiArrayDataType dataType); + MLMultiArray Concat (MLMultiArray [] multiArrays, nint axis, MLMultiArrayDataType dataType); - [Async (ResultTypeName="MLMultiArrayDataPointer")] - [Watch (8,5), TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Async (ResultTypeName = "MLMultiArrayDataPointer")] + [Watch (8, 5), TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("getBytesWithHandler:")] void GetBytes (Action handler); - [Async (ResultTypeName="MLMultiArrayMutableDataPointer")] - [Watch (8,5), TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Async (ResultTypeName = "MLMultiArrayMutableDataPointer")] + [Watch (8, 5), TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("getMutableBytesWithHandler:")] void GetMutableBytes (Action> handler); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MLDictionaryConstraint : NSSecureCoding { @@ -616,7 +616,7 @@ namespace CoreML { MLFeatureType KeyType { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MLImageConstraint : NSSecureCoding { @@ -630,12 +630,12 @@ namespace CoreML { [Export ("pixelFormatType")] uint PixelFormatType { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("sizeConstraint")] MLImageSizeConstraint SizeConstraint { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MLMultiArrayConstraint : NSSecureCoding { @@ -647,30 +647,30 @@ namespace CoreML { [Export ("dataType")] MLMultiArrayDataType DataType { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("shapeConstraint")] MLMultiArrayShapeConstraint ShapeConstraint { get; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] interface MLPredictionOptions { [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] - [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] - [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] - [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] - [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'MLModelConfiguration.ComputeUnits' instead.")] [Export ("usesCPUOnly")] bool UsesCpuOnly { get; set; } // Leaving it intentionally as NSDictionary to make it easier to use the lowlevel apis. - [Watch (9,0), TV (16,0), Mac (12,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (12, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("outputBackings", ArgumentSemantic.Copy)] NSDictionary OutputBackings { get; set; } } - [NoWatch, TV (11,2), Mac (10,13,2), iOS (11,2)] + [NoWatch, TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [Protocol] interface MLCustomLayer { @@ -681,39 +681,39 @@ namespace CoreML { [Abstract] [Export ("setWeightData:error:")] - bool SetWeightData (NSData[] weights, [NullAllowed] out NSError error); + bool SetWeightData (NSData [] weights, [NullAllowed] out NSError error); [Abstract] [Export ("outputShapesForInputShapes:error:")] [return: NullAllowed] - NSArray[] GetOutputShapes (NSArray[] inputShapes, [NullAllowed] out NSError error); + NSArray [] GetOutputShapes (NSArray [] inputShapes, [NullAllowed] out NSError error); [Abstract] [Export ("evaluateOnCPUWithInputs:outputs:error:")] - bool EvaluateOnCpu (MLMultiArray[] inputs, MLMultiArray[] outputs, [NullAllowed] out NSError error); + bool EvaluateOnCpu (MLMultiArray [] inputs, MLMultiArray [] outputs, [NullAllowed] out NSError error); [Export ("encodeToCommandBuffer:inputs:outputs:error:")] - bool Encode (IMTLCommandBuffer commandBuffer, IMTLTexture[] inputs, IMTLTexture[] outputs, [NullAllowed] out NSError error); + bool Encode (IMTLCommandBuffer commandBuffer, IMTLTexture [] inputs, IMTLTexture [] outputs, [NullAllowed] out NSError error); } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLArrayBatchProvider : MLBatchProvider { [Export ("array")] - IMLFeatureProvider[] Array { get; } + IMLFeatureProvider [] Array { get; } [Export ("initWithFeatureProviderArray:")] - NativeHandle Constructor (IMLFeatureProvider[] array); + NativeHandle Constructor (IMLFeatureProvider [] array); [Export ("initWithDictionary:error:")] NativeHandle Constructor (NSDictionary dictionary, out NSError error); } - interface IMLBatchProvider {} + interface IMLBatchProvider { } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Protocol] interface MLBatchProvider { @@ -726,8 +726,8 @@ namespace CoreML { IMLFeatureProvider GetFeatures (nint index); } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] #if NET [Protocol, Model] #else @@ -749,8 +749,8 @@ namespace CoreML { IMLBatchProvider GetPredictions (IMLBatchProvider inputBatch, MLPredictionOptions options, out NSError error); } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLImageSize : NSSecureCoding { @@ -761,8 +761,8 @@ namespace CoreML { nint PixelsHigh { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLImageSizeConstraint : NSSecureCoding { @@ -776,11 +776,11 @@ namespace CoreML { NSRange PixelsHighRange { get; } [Export ("enumeratedImageSizes")] - MLImageSize[] EnumeratedImageSizes { get; } + MLImageSize [] EnumeratedImageSizes { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLMultiArrayShapeConstraint : NSSecureCoding { @@ -788,14 +788,14 @@ namespace CoreML { MLMultiArrayShapeConstraintType Type { get; } [Export ("sizeRangeForDimension")] - NSValue[] SizeRangeForDimension { get; } + NSValue [] SizeRangeForDimension { get; } [Export ("enumeratedShapes")] - NSArray[] EnumeratedShapes { get; } + NSArray [] EnumeratedShapes { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLSequence : NSSecureCoding { @@ -808,21 +808,21 @@ namespace CoreML { [Static] [Export ("sequenceWithStringArray:")] - MLSequence Create (string[] stringValues); + MLSequence Create (string [] stringValues); [Export ("stringValues")] - string[] StringValues { get; } + string [] StringValues { get; } [Static] [Export ("sequenceWithInt64Array:")] - MLSequence Create (NSNumber[] int64Values); + MLSequence Create (NSNumber [] int64Values); [Export ("int64Values")] - NSNumber[] Int64Values { get; } + NSNumber [] Int64Values { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLSequenceConstraint : NSCopying, NSSecureCoding { @@ -833,35 +833,35 @@ namespace CoreML { NSRange CountRange { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSObject))] interface MLModelConfiguration : NSCopying, NSSecureCoding { [Export ("computeUnits", ArgumentSemantic.Assign)] MLComputeUnits ComputeUnits { get; set; } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("modelDisplayName")] string ModelDisplayName { get; set; } // From MLModelConfiguration (MLGPUConfigurationOptions) - [NoWatch, TV (13,0), Mac (10,15), iOS (13,0)] + [NoWatch, TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("allowLowPrecisionAccumulationOnGPU")] bool AllowLowPrecisionAccumulationOnGpu { get; set; } - [NoWatch, TV (13,0), Mac (10,15), iOS (13,0)] + [NoWatch, TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("preferredMetalDevice", ArgumentSemantic.Assign)] IMTLDevice PreferredMetalDevice { get; set; } // From MLModelConfiguration (MLModelParameterAdditions) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("parameters", ArgumentSemantic.Assign)] NSDictionary Parameters { get; set; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLKey : NSCopying, NSSecureCoding { @@ -873,7 +873,7 @@ namespace CoreML { string Scope { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (MLKey))] [DisableDefaultCtor] interface MLMetricKey { @@ -891,7 +891,7 @@ namespace CoreML { MLMetricKey MiniBatchIndex { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLNumericConstraint : NSSecureCoding { @@ -906,7 +906,7 @@ namespace CoreML { NSSet EnumeratedNumbers { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLParameterDescription : NSSecureCoding { @@ -921,7 +921,7 @@ namespace CoreML { MLNumericConstraint NumericConstraint { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (MLKey))] [DisableDefaultCtor] interface MLParameterKey { @@ -993,7 +993,7 @@ namespace CoreML { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLTask { @@ -1014,7 +1014,7 @@ namespace CoreML { void Cancel (); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLUpdateContext { @@ -1035,7 +1035,7 @@ namespace CoreML { NSDictionary Parameters { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLUpdateProgressHandlers { @@ -1044,7 +1044,7 @@ namespace CoreML { NativeHandle Constructor (MLUpdateProgressEvent interestedEvents, [NullAllowed] Action progressHandler, Action completionHandler); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (MLTask))] [DisableDefaultCtor] interface MLUpdateTask { @@ -1059,13 +1059,13 @@ namespace CoreML { [return: NullAllowed] MLUpdateTask Create (NSUrl modelUrl, IMLBatchProvider trainingData, [NullAllowed] MLModelConfiguration configuration, MLUpdateProgressHandlers progressHandlers, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("updateTaskForModelAtURL:trainingData:completionHandler:error:")] [return: NullAllowed] MLUpdateTask Create (NSUrl modelUrl, IMLBatchProvider trainingData, Action completionHandler, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("updateTaskForModelAtURL:trainingData:progressHandlers:error:")] [return: NullAllowed] @@ -1077,7 +1077,7 @@ namespace CoreML { interface IMLWritable { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface MLWritable { @@ -1086,9 +1086,10 @@ namespace CoreML { bool Write (NSUrl url, [NullAllowed] out NSError error); } - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] - [NoTV][NoWatch] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] + [NoTV] + [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLModelCollection { @@ -1117,9 +1118,10 @@ namespace CoreML { NSString DidChangeNotification { get; } } - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] - [NoTV][NoWatch] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] + [NoTV] + [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLModelCollectionEntry { @@ -1134,12 +1136,11 @@ namespace CoreML { bool IsEqual (MLModelCollectionEntry entry); } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MLModelAsset - { - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0)] + interface MLModelAsset { + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0)] [Static] [Export ("modelAssetWithSpecificationData:error:")] [return: NullAllowed] diff --git a/src/coremotion.cs b/src/coremotion.cs index 1922c72c20..87b24af1f2 100644 --- a/src/coremotion.cs +++ b/src/coremotion.cs @@ -17,14 +17,14 @@ using System; namespace CoreMotion { [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs - [Mac (10,15)] + [Mac (10, 15)] interface CMAccelerometerData : NSSecureCoding { [Export ("acceleration")] CMAcceleration Acceleration { get; } } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (CMAccelerometerData))] [DisableDefaultCtor] interface CMRecordedAccelerometerData { @@ -35,7 +35,7 @@ namespace CoreMotion { NSDate StartDate { get; } } - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs interface CMLogItem : NSSecureCoding, NSCopying { @@ -54,14 +54,14 @@ namespace CoreMotion { [BaseType (typeof (NSObject))] interface CMMotionManager { [Export ("accelerometerAvailable")] - bool AccelerometerAvailable { [Bind ("isAccelerometerAvailable")] get; } + bool AccelerometerAvailable { [Bind ("isAccelerometerAvailable")] get; } [Export ("accelerometerActive")] - bool AccelerometerActive { [Bind ("isAccelerometerActive")] get; } + bool AccelerometerActive { [Bind ("isAccelerometerActive")] get; } [NullAllowed] [Export ("accelerometerData")] - CMAccelerometerData AccelerometerData { get; } + CMAccelerometerData AccelerometerData { get; } [Export ("accelerometerUpdateInterval")] double AccelerometerUpdateInterval { get; set; } @@ -76,30 +76,30 @@ namespace CoreMotion { void StopAccelerometerUpdates (); [Export ("deviceMotionUpdateInterval")] - double DeviceMotionUpdateInterval { get; set; } + double DeviceMotionUpdateInterval { get; set; } [Export ("deviceMotionAvailable")] - bool DeviceMotionAvailable { [Bind ("isDeviceMotionAvailable")] get; } + bool DeviceMotionAvailable { [Bind ("isDeviceMotionAvailable")] get; } [Export ("deviceMotionActive")] - bool DeviceMotionActive { [Bind ("isDeviceMotionActive")] get; } + bool DeviceMotionActive { [Bind ("isDeviceMotionActive")] get; } [NullAllowed] [Export ("deviceMotion")] - CMDeviceMotion DeviceMotion { get; } + CMDeviceMotion DeviceMotion { get; } [Export ("gyroUpdateInterval")] - double GyroUpdateInterval { get; set; } + double GyroUpdateInterval { get; set; } [Export ("gyroAvailable")] - bool GyroAvailable { [Bind ("isGyroAvailable")] get; } + bool GyroAvailable { [Bind ("isGyroAvailable")] get; } [Export ("gyroActive")] - bool GyroActive { [Bind ("isGyroActive")] get; } + bool GyroActive { [Bind ("isGyroActive")] get; } [NullAllowed] [Export ("gyroData")] - CMGyroData GyroData { get; } + CMGyroData GyroData { get; } [Export ("startGyroUpdates")] void StartGyroUpdates (); @@ -157,22 +157,22 @@ namespace CoreMotion { bool ShowsDeviceMovementDisplay { get; set; } } - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] //You access CMAttitude objects through the attitude property of each CMDeviceMotion objects passed to an application. [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs interface CMAttitude : NSSecureCoding, NSCopying { [Export ("pitch")] - double Pitch { get; } + double Pitch { get; } [Export ("yaw")] - double Yaw { get; } + double Yaw { get; } [Export ("rotationMatrix")] - CMRotationMatrix RotationMatrix { get; } + CMRotationMatrix RotationMatrix { get; } [Export ("quaternion")] - CMQuaternion Quaternion { get; } + CMQuaternion Quaternion { get; } [Export ("roll")] double Roll { get; } @@ -181,18 +181,18 @@ namespace CoreMotion { void MultiplyByInverseOfAttitude (CMAttitude attitude); } - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs interface CMDeviceMotion : NSSecureCoding { [Export ("rotationRate")] - CMRotationRate RotationRate { get; } + CMRotationRate RotationRate { get; } [Export ("gravity")] - CMAcceleration Gravity { get; } + CMAcceleration Gravity { get; } [Export ("userAcceleration")] - CMAcceleration UserAcceleration { get; } + CMAcceleration UserAcceleration { get; } [Export ("attitude")] CMAttitude Attitude { get; } @@ -200,17 +200,19 @@ namespace CoreMotion { [Export ("magneticField")] CMCalibratedMagneticField MagneticField { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("heading")] double Heading { get; } - [iOS (14,0)][Watch (7,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Export ("sensorLocation")] CMDeviceMotionSensorLocation SensorLocation { get; } } - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs interface CMGyroData : NSSecureCoding { @@ -218,7 +220,7 @@ namespace CoreMotion { CMRotationRate RotationRate { get; } } - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // will crash, see Extra.cs for compatibility stubs interface CMMagnetometerData : NSSecureCoding { @@ -229,16 +231,16 @@ namespace CoreMotion { delegate void CMMagnetometerHandler (CMMagnetometerData magnetometerData, NSError error); [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] delegate void CMStepQueryHandler (nint numberOfSteps, NSError error); [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] delegate void CMStepUpdateHandler (nint numberOfSteps, NSDate timestamp, NSError error); [NoMac] [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'CMPedometer' instead.")] interface CMStepCounter { @@ -258,8 +260,8 @@ namespace CoreMotion { void StopStepCountingUpdates (); } - [Mac (10,15)] - [iOS (8,0)] + [Mac (10, 15)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface CMPedometerData : NSSecureCoding, NSCopying { @@ -284,22 +286,22 @@ namespace CoreMotion { [Export ("floorsDescended")] NSNumber FloorsDescended { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("currentPace")] NSNumber CurrentPace { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed] [Export ("currentCadence")] NSNumber CurrentCadence { get; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("averageActivePace")] NSNumber AverageActivePace { get; } } - [Mac (10,15)] - [iOS (8,0)] + [Mac (10, 15)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface CMPedometer { @@ -317,55 +319,58 @@ namespace CoreMotion { [Export ("queryPedometerDataFromDate:toDate:withHandler:")] [Async] - void QueryPedometerData (NSDate start, NSDate end, Action handler); + void QueryPedometerData (NSDate start, NSDate end, Action handler); [Export ("startPedometerUpdatesFromDate:withHandler:")] [Async] - void StartPedometerUpdates (NSDate start, Action handler); + void StartPedometerUpdates (NSDate start, Action handler); [Export ("stopPedometerUpdates")] void StopPedometerUpdates (); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("isPaceAvailable")] bool IsPaceAvailable { get; } - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("isCadenceAvailable")] bool IsCadenceAvailable { get; } - [Watch (3,0)][iOS (10,0)] + [Watch (3, 0)] + [iOS (10, 0)] [Static] [Export ("isPedometerEventTrackingAvailable")] bool IsPedometerEventTrackingAvailable { get; } - [Watch (3,0)][iOS (10,0)] + [Watch (3, 0)] + [iOS (10, 0)] [Async] [Export ("startPedometerEventUpdatesWithHandler:")] - void StartPedometerEventUpdates (Action handler); + void StartPedometerEventUpdates (Action handler); - [Watch (3,0)][iOS (10,0)] + [Watch (3, 0)] + [iOS (10, 0)] [Export ("stopPedometerEventUpdates")] void StopPedometerEventUpdates (); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Static] [Export ("authorizationStatus")] CMAuthorizationStatus AuthorizationStatus { get; } } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] delegate void CMMotionActivityHandler (CMMotionActivity activity); [NoMac] - [iOS (7,0)] - delegate void CMMotionActivityQueryHandler (CMMotionActivity[] activities, NSError error); + [iOS (7, 0)] + delegate void CMMotionActivityQueryHandler (CMMotionActivity [] activities, NSError error); [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] interface CMMotionActivityManager { @@ -383,45 +388,45 @@ namespace CoreMotion { [Export ("stopActivityUpdates")] void StopActivityUpdates (); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Static] [Export ("authorizationStatus")] CMAuthorizationStatus AuthorizationStatus { get; } } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // You do not create instances of this class yourself. interface CMMotionActivity : NSCopying, NSSecureCoding { [Export ("confidence")] CMMotionActivityConfidence Confidence { get; } - + [Export ("startDate", ArgumentSemantic.Copy)] NSDate StartDate { get; } - + [Export ("unknown")] bool Unknown { get; } - + [Export ("stationary")] bool Stationary { get; } - + [Export ("walking")] bool Walking { get; } - + [Export ("running")] bool Running { get; } - + [Export ("automotive")] bool Automotive { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("cycling")] bool Cycling { get; } } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] // this does not look to be meant to be user created (and crash when description is called) interface CMAltitudeData { @@ -433,7 +438,7 @@ namespace CoreMotion { } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface CMAltimeter { [Static] @@ -442,35 +447,35 @@ namespace CoreMotion { [Export ("startRelativeAltitudeUpdatesToQueue:withHandler:")] [Async] - void StartRelativeAltitudeUpdates (NSOperationQueue queue, Action handler); + void StartRelativeAltitudeUpdates (NSOperationQueue queue, Action handler); [Export ("stopRelativeAltitudeUpdates")] void StopRelativeAltitudeUpdates (); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Static] [Export ("authorizationStatus")] CMAuthorizationStatus AuthorizationStatus { get; } - [Watch (8,0), NoTV, NoMac, iOS (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0)] [NoMacCatalyst] [Static] [Export ("isAbsoluteAltitudeAvailable")] bool IsAbsoluteAltitudeAvailable { get; } - [Watch (8,0), NoTV, NoMac, iOS (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0)] [NoMacCatalyst] [Export ("startAbsoluteAltitudeUpdatesToQueue:withHandler:")] void StartAbsoluteAltitudeUpdates (NSOperationQueue queue, Action handler); - [Watch (8,0), NoTV, NoMac, iOS (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0)] [NoMacCatalyst] [Export ("stopAbsoluteAltitudeUpdates")] void StopAbsoluteAltitudeUpdates (); } - [Mac (10,15)] - [Watch (4,0), iOS (11,0)] + [Mac (10, 15)] + [Watch (4, 0), iOS (11, 0)] [Native] public enum CMAuthorizationStatus : long { NotDetermined = 0, @@ -480,19 +485,18 @@ namespace CoreMotion { } [NoMac] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] interface CMSensorDataList /* NSFastEnumeration */ { } - + [NoMac] - [iOS (9,0)] - [BaseType (typeof(NSObject))] - interface CMSensorRecorder - { + [iOS (9, 0)] + [BaseType (typeof (NSObject))] + interface CMSensorRecorder { [Static] - [iOS (9,3)] // Apple changed the selector in 9.3 and removed the old one + [iOS (9, 3)] // Apple changed the selector in 9.3 and removed the old one [Export ("isAccelerometerRecordingAvailable")] bool IsAccelerometerRecordingAvailable { get; } @@ -502,12 +506,12 @@ namespace CoreMotion { [Export ("isAuthorizedForRecording")] bool IsAuthorizedForRecording { get; } - [iOS (9,3)] // Apple changed the selector in 9.3 and removed the old one + [iOS (9, 3)] // Apple changed the selector in 9.3 and removed the old one [Export ("accelerometerDataFromDate:toDate:")] [return: NullAllowed] CMSensorDataList GetAccelerometerData (NSDate fromDate, NSDate toDate); - [iOS (9,3)] // Apple changed the selector in 9.3 and removed the old one + [iOS (9, 3)] // Apple changed the selector in 9.3 and removed the old one [Export ("recordAccelerometerForDuration:")] void RecordAccelerometer (double duration); @@ -517,16 +521,20 @@ namespace CoreMotion { CMAuthorizationStatus AuthorizationStatus { get; } } - [Mac (10,15)] - [Watch (3,0)][NoTV][iOS (10,0)] + [Mac (10, 15)] + [Watch (3, 0)] + [NoTV] + [iOS (10, 0)] [Native] public enum CMPedometerEventType : long { Pause, Resume } - [Mac (10,15)] - [Watch (3,0)][NoTV][iOS (10,0)] + [Mac (10, 15)] + [Watch (3, 0)] + [NoTV] + [iOS (10, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // instances exposed from delegate interface CMPedometerEvent : NSSecureCoding, NSCopying { @@ -537,7 +545,7 @@ namespace CoreMotion { CMPedometerEventType Type { get; } } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CMDyskineticSymptomResult : NSCopying, NSSecureCoding { @@ -555,7 +563,7 @@ namespace CoreMotion { float PercentLikely { get; } } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CMTremorResult : NSCopying, NSSecureCoding { @@ -586,15 +594,15 @@ namespace CoreMotion { } [NoMac] - [Watch (5,0), NoTV, NoMac, NoiOS] + [Watch (5, 0), NoTV, NoMac, NoiOS] delegate void CMDyskineticSymptomResultHandler (CMDyskineticSymptomResult [] dyskineticSymptomResult, NSError error); [NoMac] - [Watch (5,0), NoTV, NoMac, NoiOS] + [Watch (5, 0), NoTV, NoMac, NoiOS] delegate void CMTremorResultHandler (CMTremorResult [] tremorResults, NSError error); [NoMac] - [Watch (5,0), NoTV, NoMac, NoiOS] + [Watch (5, 0), NoTV, NoMac, NoiOS] [BaseType (typeof (NSObject))] interface CMMovementDisorderManager { @@ -624,7 +632,7 @@ namespace CoreMotion { NSDate MonitorKinesiasExpirationDate { get; } } - [Mac (10,15)] + [Mac (10, 15)] [ErrorDomain ("CMErrorDomain")] // untyped enum -> CMError.h public enum CMError { @@ -665,8 +673,10 @@ namespace CoreMotion { High, } - [iOS (14,0)][Watch (7,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Native] public enum CMDeviceMotionSensorLocation : long { Default, @@ -674,15 +684,17 @@ namespace CoreMotion { HeadphoneRight, } - [iOS (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [NoMac] delegate void CMHeadphoneDeviceMotionHandler ([NullAllowed] CMDeviceMotion motion, [NullAllowed] NSError error); - [iOS (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface CMHeadphoneMotionManager { [Static] @@ -715,10 +727,11 @@ namespace CoreMotion { void StopDeviceMotionUpdates (); } - interface ICMHeadphoneMotionManagerDelegate {} - - [iOS (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + interface ICMHeadphoneMotionManagerDelegate { } + + [iOS (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [NoMac] #if NET [Protocol, Model] @@ -735,8 +748,8 @@ namespace CoreMotion { void DidDisconnect (CMHeadphoneMotionManager manager); } - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] interface CMRotationRateData { @@ -745,8 +758,8 @@ namespace CoreMotion { CMRotationRate RotationRate { get; } } - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (CMRotationRateData))] [DisableDefaultCtor] interface CMRecordedRotationRateData { @@ -755,7 +768,7 @@ namespace CoreMotion { NSDate StartDate { get; } } - [Watch (7,2), NoTV, NoMac, NoiOS] + [Watch (7, 2), NoTV, NoMac, NoiOS] [Native] enum CMFallDetectionEventUserResolution : long { Confirmed, @@ -764,7 +777,7 @@ namespace CoreMotion { Unresponsive, } - [Watch (7,2), NoTV, NoMac, NoiOS] + [Watch (7, 2), NoTV, NoMac, NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CMFallDetectionEvent { @@ -776,7 +789,7 @@ namespace CoreMotion { CMFallDetectionEventUserResolution Resolution { get; } } - [Watch (7,2), NoTV, NoMac, NoiOS] + [Watch (7, 2), NoTV, NoMac, NoiOS] [BaseType (typeof (NSObject))] interface CMFallDetectionManager { @@ -798,9 +811,9 @@ namespace CoreMotion { void RequestAuthorization (Action handler); } - interface ICMFallDetectionDelegate {} + interface ICMFallDetectionDelegate { } - [Watch (7,2), NoTV, NoMac, NoiOS] + [Watch (7, 2), NoTV, NoMac, NoiOS] #if NET [Protocol, Model] #else @@ -817,10 +830,9 @@ namespace CoreMotion { } [DisableDefaultCtor] // will crash - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(CMLogItem))] - interface CMAbsoluteAltitudeData - { + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (CMLogItem))] + interface CMAbsoluteAltitudeData { [Export ("altitude")] double Altitude { get; } @@ -836,7 +848,7 @@ namespace CoreMotion { interface NSUnitTemperature : NSUnit { } interface NSUnitLength : NSUnit { } - [Watch (8,5), NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [Watch (8, 5), NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [BaseType (typeof (CMLogItem))] [DisableDefaultCtor] interface CMAmbientPressureData { @@ -848,11 +860,11 @@ namespace CoreMotion { NSMeasurement Temperature { get; } } - [Watch (8,5), NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [Watch (8, 5), NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [BaseType (typeof (CMAmbientPressureData))] [DisableDefaultCtor] interface CMRecordedPressureData { - + [Export ("identifier")] ulong Identifier { get; } @@ -860,19 +872,17 @@ namespace CoreMotion { NSDate StartDate { get; } } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [Native] - public enum CMWaterSubmersionState : long - { + public enum CMWaterSubmersionState : long { Unknown = 0, NotSubmerged, Submerged, } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [Native] - public enum CMWaterSubmersionDepthState : long - { + public enum CMWaterSubmersionDepthState : long { Unknown = 0, NotSubmerged = 100, SubmergedShallow = 200, @@ -882,10 +892,9 @@ namespace CoreMotion { SensorDepthError = 600, } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [BaseType (typeof (NSObject))] - interface CMWaterSubmersionEvent : NSSecureCoding, NSCopying - { + interface CMWaterSubmersionEvent : NSSecureCoding, NSCopying { [Export ("date")] NSDate Date { get; } @@ -893,10 +902,9 @@ namespace CoreMotion { CMWaterSubmersionState State { get; } } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [BaseType (typeof (NSObject))] - interface CMWaterSubmersionMeasurement : NSSecureCoding, NSCopying - { + interface CMWaterSubmersionMeasurement : NSSecureCoding, NSCopying { [Export ("date")] NSDate Date { get; } @@ -913,10 +921,9 @@ namespace CoreMotion { CMWaterSubmersionDepthState SubmersionState { get; } } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [BaseType (typeof (NSObject))] - interface CMWaterTemperature : NSSecureCoding, NSCopying - { + interface CMWaterTemperature : NSSecureCoding, NSCopying { [Export ("date")] NSDate Date { get; } @@ -929,15 +936,14 @@ namespace CoreMotion { interface ICMWaterSubmersionManagerDelegate { } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface CMWaterSubmersionManagerDelegate - { + interface CMWaterSubmersionManagerDelegate { [Abstract] [Export ("manager:didUpdateEvent:")] void DidUpdateEvent (CMWaterSubmersionManager manager, CMWaterSubmersionEvent @event); @@ -955,10 +961,9 @@ namespace CoreMotion { void ErrorOccurred (CMWaterSubmersionManager manager, NSError error); } - [NoMac, NoiOS, NoMacCatalyst, Watch (9,0), NoTV] + [NoMac, NoiOS, NoMacCatalyst, Watch (9, 0), NoTV] [BaseType (typeof (NSObject))] - interface CMWaterSubmersionManager - { + interface CMWaterSubmersionManager { [Wrap ("WeakDelegate")] [NullAllowed] ICMWaterSubmersionManagerDelegate Delegate { get; set; } diff --git a/src/corenfc.cs b/src/corenfc.cs index ece1286430..35a10bd0dd 100644 --- a/src/corenfc.cs +++ b/src/corenfc.cs @@ -25,7 +25,7 @@ using NativeHandle = System.IntPtr; namespace CoreNFC { - [iOS (11,0)] + [iOS (11, 0)] [ErrorDomain ("NFCErrorDomain")] [Native] public enum NFCReaderError : long { @@ -58,20 +58,20 @@ namespace CoreNFC { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [Native] public enum NFCTagType : ulong { Iso15693 = 1, - [iOS (13,0)] + [iOS (13, 0)] FeliCa = 2, - [iOS (13,0)] + [iOS (13, 0)] Iso7816Compatible = 3, - [iOS (13,0)] + [iOS (13, 0)] MiFare = 4, } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] public enum NFCTypeNameFormat : byte { // uint8_t Empty = 0x00, NFCWellKnown = 0x01, @@ -83,7 +83,7 @@ namespace CoreNFC { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NFCReaderSession), Name = "NFCISO15693ReaderSession")] [DisableDefaultCtor] interface NFCIso15693ReaderSession { @@ -104,7 +104,7 @@ namespace CoreNFC { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NFCTagCommandConfiguration), Name = "NFCISO15693CustomCommandConfiguration")] interface NFCIso15693CustomCommandConfiguration { @@ -125,7 +125,7 @@ namespace CoreNFC { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NFCTagCommandConfiguration), Name = "NFCISO15693ReadMultipleBlocksConfiguration")] interface NFCIso15693ReadMultipleBlocksConfiguration { @@ -146,13 +146,13 @@ namespace CoreNFC { interface INFCIso15693Tag { } - delegate void NFCIso15693TagReadMultipleBlocksCallback (NSData[] dataBlocks, NSError error); - delegate void NFCIso15693TagResponseCallback (NFCIso15693ResponseFlag responseFlag, NSData response, NSError error); + delegate void NFCIso15693TagReadMultipleBlocksCallback (NSData [] dataBlocks, NSError error); + delegate void NFCIso15693TagResponseCallback (NFCIso15693ResponseFlag responseFlag, NSData response, NSError error); delegate void NFCIso15693TagGetMultipleBlockSecurityStatusCallback (NSNumber [] securityStatus, NSError error); delegate void NFCIso15693TagGetSystemInfoAndUidCallback (NSData uid, nint dsfid, nint afi, nint blockSize, nint blockCount, nint icReference, NSError error); //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [Protocol (Name = "NFCISO15693Tag")] interface NFCIso15693Tag : NFCTag, NFCNdefTag { @@ -176,133 +176,133 @@ namespace CoreNFC { [Export ("readMultipleBlocksWithConfiguration:completionHandler:")] void ReadMultipleBlocks (NFCIso15693ReadMultipleBlocksConfiguration readConfiguration, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("stayQuietWithCompletionHandler:")] void StayQuiet (Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("readSingleBlockWithRequestFlags:blockNumber:completionHandler:")] void ReadSingleBlock (NFCIso15693RequestFlag flags, byte blockNumber, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("writeSingleBlockWithRequestFlags:blockNumber:dataBlock:completionHandler:")] void WriteSingleBlock (NFCIso15693RequestFlag flags, byte blockNumber, NSData dataBlock, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("lockBlockWithRequestFlags:blockNumber:completionHandler:")] void LockBlock (NFCIso15693RequestFlag flags, byte blockNumber, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("readMultipleBlocksWithRequestFlags:blockRange:completionHandler:")] void ReadMultipleBlocks (NFCIso15693RequestFlag flags, NSRange blockRange, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("writeMultipleBlocksWithRequestFlags:blockRange:dataBlocks:completionHandler:")] - void WriteMultipleBlocks (NFCIso15693RequestFlag flags, NSRange blockRange, NSData[] dataBlocks, Action completionHandler); + void WriteMultipleBlocks (NFCIso15693RequestFlag flags, NSRange blockRange, NSData [] dataBlocks, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("selectWithRequestFlags:completionHandler:")] void Select (NFCIso15693RequestFlag flags, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("resetToReadyWithRequestFlags:completionHandler:")] void ResetToReady (NFCIso15693RequestFlag flags, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("writeAFIWithRequestFlag:afi:completionHandler:")] void WriteAfi (NFCIso15693RequestFlag flags, byte afi, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("lockAFIWithRequestFlag:completionHandler:")] void LockAfi (NFCIso15693RequestFlag flags, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("writeDSFIDWithRequestFlag:dsfid:completionHandler:")] void WriteDsfi (NFCIso15693RequestFlag flags, byte dsfid, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("lockDFSIDWithRequestFlag:completionHandler:")] void LockDfsi (NFCIso15693RequestFlag flags, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("getSystemInfoWithRequestFlag:completionHandler:")] void GetSystemInfo (NFCIso15693RequestFlag flags, NFCGetSystemInfoCompletionHandler completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("getMultipleBlockSecurityStatusWithRequestFlag:blockRange:completionHandler:")] - void GetMultipleBlockSecurityStatus (NFCIso15693RequestFlag flags, NSRange blockRange, Action completionHandler); + void GetMultipleBlockSecurityStatus (NFCIso15693RequestFlag flags, NSRange blockRange, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("customCommandWithRequestFlag:customCommandCode:customRequestParameters:completionHandler:")] void CustomCommand (NFCIso15693RequestFlag flags, nint customCommandCode, NSData customRequestParameters, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("extendedReadSingleBlockWithRequestFlags:blockNumber:completionHandler:")] void ExtendedReadSingleBlock (NFCIso15693RequestFlag flags, nint blockNumber, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("extendedWriteSingleBlockWithRequestFlags:blockNumber:dataBlock:completionHandler:")] void ExtendedWriteSingleBlock (NFCIso15693RequestFlag flags, nint blockNumber, NSData dataBlock, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif [Export ("extendedLockBlockWithRequestFlags:blockNumber:completionHandler:")] void ExtendedLockBlock (NFCIso15693RequestFlag flags, nint blockNumber, Action completionHandler); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif @@ -314,7 +314,7 @@ namespace CoreNFC { [Abstract] #endif [Export ("extendedWriteMultipleBlocksWithRequestFlags:blockRange:dataBlocks:completionHandler:")] - void ExtendedWriteMultipleBlocks (NFCIso15693RequestFlag flags, NSRange blockRange, NSData[] dataBlocks, Action completionHandler); + void ExtendedWriteMultipleBlocks (NFCIso15693RequestFlag flags, NSRange blockRange, NSData [] dataBlocks, Action completionHandler); [iOS (14, 0)] #if NET @@ -388,7 +388,7 @@ namespace CoreNFC { } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "NFCNDEFPayload")] [DisableDefaultCtor] interface NFCNdefPayload : NSSecureCoding { @@ -405,43 +405,43 @@ namespace CoreNFC { [Export ("payload", ArgumentSemantic.Copy)] NSData Payload { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("wellKnownTypeURIPayloadWithString:")] [return: NullAllowed] NFCNdefPayload CreateWellKnownTypePayload (string uri); - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("wellKnownTypeURIPayloadWithURL:")] [return: NullAllowed] NFCNdefPayload CreateWellKnownTypePayload (NSUrl url); - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("wellKnownTypeTextPayloadWithString:locale:")] [return: NullAllowed] NFCNdefPayload CreateWellKnownTypePayload (string text, NSLocale locale); - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("wellKnownTypeURIPayload")] NSUrl WellKnownTypeUriPayload { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("wellKnownTypeTextPayloadWithLocale:")] [return: NullAllowed] string GetWellKnownTypeTextPayload (out NSLocale locale); - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithFormat:type:identifier:payload:")] NativeHandle Constructor (NFCTypeNameFormat format, NSData type, NSData identifier, NSData payload); - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithFormat:type:identifier:payload:chunkSize:")] NativeHandle Constructor (NFCTypeNameFormat format, NSData type, NSData identifier, NSData payload, nuint chunkSize); } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "NFCNDEFMessage")] [DisableDefaultCtor] interface NFCNdefMessage : NSSecureCoding { @@ -449,24 +449,24 @@ namespace CoreNFC { [Export ("records", ArgumentSemantic.Copy)] NFCNdefPayload [] Records { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("ndefMessageWithData:")] [return: NullAllowed] NFCNdefMessage Create (NSData data); - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithNDEFRecords:")] - NativeHandle Constructor (NFCNdefPayload[] records); + NativeHandle Constructor (NFCNdefPayload [] records); - [iOS (13,0)] + [iOS (13, 0)] [Export ("length")] nuint Length { get; } } interface INFCNdefReaderSessionDelegate { } - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject), Name = "NFCNDEFReaderSessionDelegate")] interface NFCNdefReaderSessionDelegate { @@ -479,16 +479,16 @@ namespace CoreNFC { [Export ("readerSession:didDetectNDEFs:")] void DidDetect (NFCNdefReaderSession session, NFCNdefMessage [] messages); - [iOS (13,0)] + [iOS (13, 0)] [Export ("readerSession:didDetectTags:")] - void DidDetectTags (NFCNdefReaderSession session, INFCNdefTag[] tags); + void DidDetectTags (NFCNdefReaderSession session, INFCNdefTag [] tags); - [iOS (13,0)] + [iOS (13, 0)] [Export ("readerSessionDidBecomeActive:")] void DidBecomeActive (NFCNdefReaderSession session); } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NFCReaderSession), Name = "NFCNDEFReaderSession")] [DisableDefaultCtor] interface NFCNdefReaderSession { @@ -501,17 +501,17 @@ namespace CoreNFC { [Export ("readingAvailable")] bool ReadingAvailable { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("restartPolling")] void RestartPolling (); - [iOS (13,0)] + [iOS (13, 0)] [Export ("connectToTag:completionHandler:")] [Async] void ConnectToTag (INFCNdefTag tag, Action completionHandler); } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NFCReaderSession : NFCReaderSessionContract { @@ -522,7 +522,7 @@ namespace CoreNFC { [Export ("sessionQueue")] DispatchQueue SessionQueue { get; } - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("readingAvailable")] bool ReadingAvailable { get; } @@ -530,7 +530,7 @@ namespace CoreNFC { interface INFCReaderSessionContract { } - [iOS (11,0)] + [iOS (11, 0)] [Protocol (Name = "NFCReaderSession")] interface NFCReaderSessionContract { @@ -550,7 +550,7 @@ namespace CoreNFC { [Export ("invalidateSession")] void InvalidateSession (); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] #endif @@ -561,7 +561,7 @@ namespace CoreNFC { interface INFCReaderSessionDelegate { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface NFCReaderSessionDelegate { @@ -583,7 +583,7 @@ namespace CoreNFC { interface INFCTag { } - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface NFCTag : NSSecureCoding, NSCopying { @@ -599,7 +599,7 @@ namespace CoreNFC { [Export ("available")] bool Available { [Bind ("isAvailable")] get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("asNFCISO15693Tag")] #if NET [Abstract] @@ -610,7 +610,7 @@ namespace CoreNFC { INFCIso15693Tag GetNFCIso15693Tag (); #endif - [iOS (13,0)] + [iOS (13, 0)] [Export ("asNFCISO7816Tag")] #if NET [Abstract] @@ -621,7 +621,7 @@ namespace CoreNFC { INFCIso7816Tag GetNFCIso7816Tag (); #endif - [iOS (13,0)] + [iOS (13, 0)] [Export ("asNFCFeliCaTag")] #if NET [Abstract] @@ -632,7 +632,7 @@ namespace CoreNFC { INFCFeliCaTag GetNFCFeliCaTag (); #endif - [iOS (13,0)] + [iOS (13, 0)] [Export ("asNFCMiFareTag")] #if NET [Abstract] @@ -645,7 +645,7 @@ namespace CoreNFC { } //[iOS (11,0), NoTV, NoWatch, NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] interface NFCTagCommandConfiguration : NSCopying { @@ -656,7 +656,7 @@ namespace CoreNFC { double RetryInterval { get; set; } } - [iOS (12,0)] + [iOS (12, 0)] [Category] [BaseType (typeof (NSUserActivity))] interface NSUserActivity_CoreNFC { @@ -665,7 +665,7 @@ namespace CoreNFC { NFCNdefMessage GetNdefMessagePayload (); } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Native] enum NFCFeliCaEncryptionId @@ -678,7 +678,7 @@ namespace CoreNFC { Des = 65, } - [iOS (13,0)] + [iOS (13, 0)] [Native] enum NFCMiFareFamily : long { Unknown = 1, @@ -687,7 +687,7 @@ namespace CoreNFC { DesFire = 4, } - [iOS (13,0)] + [iOS (13, 0)] [Native] enum NFCNdefStatus : ulong { NotSupported = 1, @@ -695,7 +695,7 @@ namespace CoreNFC { ReadOnly = 3, } - [iOS (13,0)] + [iOS (13, 0)] [Flags] [Native] enum NFCPollingOption : ulong { @@ -705,7 +705,7 @@ namespace CoreNFC { Pace = 0x8, } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Native] enum NFCFeliCaPollingRequestCode @@ -719,7 +719,7 @@ namespace CoreNFC { CommunicationPerformance = 2, } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Native] enum NFCFeliCaPollingTimeSlot @@ -735,7 +735,7 @@ namespace CoreNFC { Max16 = 15, } - [iOS (13,0)] + [iOS (13, 0)] [Flags] [NativeName ("NFCISO15693RequestFlag")] #if NET @@ -750,13 +750,12 @@ namespace CoreNFC { Select = (1 << 4), Address = (1 << 5), Option = (1 << 6), - [iOS (14,0)] + [iOS (14, 0)] CommandSpecificBit8 = (1 << 7), } [Flags, iOS (14, 0)] - public enum NFCIso15693ResponseFlag : byte - { + public enum NFCIso15693ResponseFlag : byte { Error = (1 << 0), ResponseBufferValid = (1 << 1), FinalResponse = (1 << 2), @@ -766,7 +765,7 @@ namespace CoreNFC { WaitTimeExtension = (1 << 6), } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Native] enum NFCVasErrorCode @@ -785,25 +784,25 @@ namespace CoreNFC { UnsupportedApplicationVersion = 25408, } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Native] enum NFCVasMode #else [Native ("NFCVASMode")] - enum VasMode + enum VasMode #endif : long { UrlOnly = 0, Normal = 1, } - interface INFCNdefTag {} + interface INFCNdefTag { } delegate void NFCQueryNdefStatusCompletionHandler (NFCNdefStatus status, nuint capacity, NSError error); - [iOS (13,0)] - [Protocol (Name="NFCNDEFTag")] + [iOS (13, 0)] + [Protocol (Name = "NFCNDEFTag")] interface NFCNdefTag : NSSecureCoding, NSCopying { [Abstract] @@ -827,7 +826,7 @@ namespace CoreNFC { void WriteLock (Action completionHandler); } - interface INFCFeliCaTag {} + interface INFCFeliCaTag { } delegate void NFCFeliCaPollingCompletionHandler (NSData pmm, NSData requestData, NSError error); delegate void NFCFeliCaReadWithoutEncryptionCompletionHandler (nint statusFlag1, nint statusFlag2, NSData [] blockData, NSError error); @@ -835,7 +834,7 @@ namespace CoreNFC { delegate void NFCFeliCaRequestServiceV2CompletionHandler (nint statusFlag1, nint statusFlag2, NFCFeliCaEncryptionId encryptionIdentifier, NSData [] nodeKeyVersionListAes, NSData [] nodeKeyVersionListDes, NSError error); delegate void NFCFeliCaRequestSpecificationVersionCompletionHandler (nint statusFlag1, nint statusFlag2, NSData basicVersion, NSData optionVersion, NSError error); - [iOS (13,0)] + [iOS (13, 0)] [Protocol] interface NFCFeliCaTag : NFCTag, NFCNdefTag { @@ -853,7 +852,7 @@ namespace CoreNFC { [Abstract] [Export ("requestServiceWithNodeCodeList:completionHandler:")] - void RequestService (NSData[] nodeCodeList, Action completionHandler); + void RequestService (NSData [] nodeCodeList, Action completionHandler); [Abstract] [Export ("requestResponseWithCompletionHandler:")] @@ -861,11 +860,11 @@ namespace CoreNFC { [Abstract] [Export ("readWithoutEncryptionWithServiceCodeList:blockList:completionHandler:")] - void ReadWithoutEncryption (NSData[] serviceCodeList, NSData[] blockList, NFCFeliCaReadWithoutEncryptionCompletionHandler completionHandler); + void ReadWithoutEncryption (NSData [] serviceCodeList, NSData [] blockList, NFCFeliCaReadWithoutEncryptionCompletionHandler completionHandler); [Abstract] [Export ("writeWithoutEncryptionWithServiceCodeList:blockList:blockData:completionHandler:")] - void WriteWithoutEncryption (NSData[] serviceCodeList, NSData[] blockList, NSData[] blockData, NFCFeliCaStatus1Status2CompletionHandler completionHandler); + void WriteWithoutEncryption (NSData [] serviceCodeList, NSData [] blockList, NSData [] blockData, NFCFeliCaStatus1Status2CompletionHandler completionHandler); [Abstract] [Export ("requestSystemCodeWithCompletionHandler:")] @@ -873,7 +872,7 @@ namespace CoreNFC { [Abstract] [Export ("requestServiceV2WithNodeCodeList:completionHandler:")] - void RequestServiceV2 (NSData[] nodeCodeList, NFCFeliCaRequestServiceV2CompletionHandler completionHandler); + void RequestServiceV2 (NSData [] nodeCodeList, NFCFeliCaRequestServiceV2CompletionHandler completionHandler); [Abstract] [Export ("requestSpecificationVersionWithCompletionHandler:")] @@ -888,9 +887,9 @@ namespace CoreNFC { void Send (NSData commandPacket, Action completionHandler); } - interface INFCIso7816Tag {} + interface INFCIso7816Tag { } - [iOS (13,0)] + [iOS (13, 0)] [Protocol (Name = "NFCISO7816Tag")] interface NFCIso7816Tag : NFCTag, NFCNdefTag { @@ -919,7 +918,7 @@ namespace CoreNFC { void SendCommand (NFCIso7816Apdu apdu, NFCIso7816SendCompletionHandler completionHandler); } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NSObject), Name = "NFCISO7816APDU")] [DisableDefaultCtor] interface NFCIso7816Apdu : NSCopying { @@ -949,11 +948,11 @@ namespace CoreNFC { nint ExpectedResponseLength { get; } } - interface INFCMiFareTag {} + interface INFCMiFareTag { } delegate void NFCIso7816SendCompletionHandler (NSData responseData, byte sw1, byte sw2, NSError error); - [iOS (13,0)] + [iOS (13, 0)] [Protocol] interface NFCMiFareTag : NFCTag, NFCNdefTag { #if NET @@ -979,13 +978,14 @@ namespace CoreNFC { void SendMiFareIso7816Command (NFCIso7816Apdu apdu, NFCIso7816SendCompletionHandler completionHandler); } - interface INFCTagReaderSessionDelegate {} + interface INFCTagReaderSessionDelegate { } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface NFCTagReaderSessionDelegate { @@ -998,10 +998,10 @@ namespace CoreNFC { void DidBecomeActive (NFCTagReaderSession session); [Export ("tagReaderSession:didDetectTags:")] - void DidDetectTags (NFCTagReaderSession session, INFCTag[] tags); + void DidDetectTags (NFCTagReaderSession session, INFCTag [] tags); } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NFCReaderSession))] [DisableDefaultCtor] [Advice ("Not available for application extensions.")] @@ -1024,13 +1024,14 @@ namespace CoreNFC { NSString UnexpectedLengthErrorKey { get; } } - interface INFCVasReaderSessionDelegate {} + interface INFCVasReaderSessionDelegate { } - [iOS (13,0)] + [iOS (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject), Name = "NFCVASReaderSessionDelegate")] interface NFCVasReaderSessionDelegate { @@ -1044,10 +1045,10 @@ namespace CoreNFC { [Abstract] [Export ("readerSession:didReceiveVASResponses:")] - void DidReceiveVasResponses (NFCVasReaderSession session, NFCVasResponse[] responses); + void DidReceiveVasResponses (NFCVasReaderSession session, NFCVasResponse [] responses); } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NSObject), Name = "NFCVASResponse")] [DisableDefaultCtor] // implied interface NFCVasResponse : NSCopying { @@ -1062,7 +1063,7 @@ namespace CoreNFC { NSData MobileToken { get; } } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NSObject), Name = "NFCVASCommandConfiguration")] [DisableDefaultCtor] // implied (designated initializer) interface NFCVasCommandConfiguration : NSCopying { @@ -1081,7 +1082,7 @@ namespace CoreNFC { NSUrl Url { get; set; } } - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NFCReaderSession), Name = "NFCVASReaderSession")] [DisableDefaultCtor] [Advice ("Not available for application extensions.")] @@ -1089,6 +1090,6 @@ namespace CoreNFC { [Export ("initWithVASCommandConfigurations:delegate:queue:")] [DesignatedInitializer] - NativeHandle Constructor (NFCVasCommandConfiguration[] commandConfigurations, INFCVasReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); + NativeHandle Constructor (NFCVasCommandConfiguration [] commandConfigurations, INFCVasReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); } } diff --git a/src/corespotlight.cs b/src/corespotlight.cs index 4167f5a758..24177ef70e 100644 --- a/src/corespotlight.cs +++ b/src/corespotlight.cs @@ -20,16 +20,16 @@ using NativeHandle = System.IntPtr; namespace CoreSpotlight { [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CSIndexExtensionRequestHandler : NSExtensionRequestHandling, CSSearchableIndexDelegate { } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CSPerson : NSSecureCoding, NSCopying { @@ -52,12 +52,13 @@ namespace CoreSpotlight { } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CSSearchableIndex { - [Export ("indexDelegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("indexDelegate", ArgumentSemantic.Weak)] + [NullAllowed] ICSSearchableIndexDelegate IndexDelegate { get; set; } [Static] @@ -93,13 +94,13 @@ namespace CoreSpotlight { // from interface CSExternalProvider (CSSearchableIndex) - [Async (ResultTypeName="CSSearchableIndexBundleDataResult")] - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [Async (ResultTypeName = "CSSearchableIndexBundleDataResult")] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("provideDataForBundle:identifier:type:completionHandler:")] void ProvideData (string bundle, string identifier, string type, Action completionHandler); - [Async (ResultTypeName="CSSearchableIndexBundleDataResult")] - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [Async (ResultTypeName = "CSSearchableIndexBundleDataResult")] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("fetchDataForBundleIdentifier:itemIdentifier:contentType:completionHandler:")] void FetchData (string bundleIdentifier, string itemIdentifier, UTType contentType, Action completionHandler); } @@ -107,8 +108,8 @@ namespace CoreSpotlight { delegate void CSSearchableIndexFetchHandler (NSData clientState, NSError error); [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [Category] [BaseType (typeof (CSSearchableIndex))] interface CSSearchableIndex_CSOptionalBatchingExtension { @@ -123,11 +124,11 @@ namespace CoreSpotlight { void FetchLastClientState (CSSearchableIndexFetchHandler completionHandler); } - interface ICSSearchableIndexDelegate {} + interface ICSSearchableIndexDelegate { } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [Protocol, Model] [BaseType (typeof (NSObject))] interface CSSearchableIndexDelegate { @@ -146,20 +147,20 @@ namespace CoreSpotlight { [Export ("searchableIndexDidFinishThrottle:")] void DidFinishThrottle (CSSearchableIndex searchableIndex); - [iOS (11,0), NoTV, Mac (10,13)] + [iOS (11, 0), NoTV, Mac (10, 13)] [Export ("dataForSearchableIndex:itemIdentifier:typeIdentifier:error:")] [return: NullAllowed] NSData GetData (CSSearchableIndex searchableIndex, string itemIdentifier, string typeIdentifier, out NSError outError); - [iOS (11,0), NoTV, Mac (10,13)] + [iOS (11, 0), NoTV, Mac (10, 13)] [Export ("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:")] [return: NullAllowed] NSUrl GetFileUrl (CSSearchableIndex searchableIndex, string itemIdentifier, string typeIdentifier, bool inPlace, out NSError outError); } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CSSearchableItem : NSSecureCoding, NSCopying { @@ -169,11 +170,11 @@ namespace CoreSpotlight { [Field ("CSSearchableItemActivityIdentifier")] NSString ActivityIdentifier { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("CSQueryContinuationActionType")] NSString ContinuationActionType { get; } - [iOS (10,0)] + [iOS (10, 0)] [Field ("CSSearchQueryString")] NSString QueryString { get; } @@ -194,14 +195,14 @@ namespace CoreSpotlight { [Export ("attributeSet", ArgumentSemantic.Strong)] CSSearchableItemAttributeSet AttributeSet { get; set; } - [NoTV, iOS (16,0), MacCatalyst (16,0), Mac (13,0), NoWatch] + [NoTV, iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0), NoWatch] [Export ("compareByRank:")] NSComparisonResult CompareByRank (CSSearchableItem other); } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSString))] // hack: it seems that generator.cs can't track NSCoding correctly ? maybe because the type is named NSString2 at that time interface CSLocalizedString : NSCoding { @@ -214,8 +215,8 @@ namespace CoreSpotlight { } [NoTV] // CS_TVOS_UNAVAILABLE - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You must call -[CSCustomAttributeKey initWithKeyName...] interface CSCustomAttributeKey : NSCopying, NSSecureCoding { @@ -243,9 +244,9 @@ namespace CoreSpotlight { bool MultiValued { [Bind ("isMultiValued")] get; } } - [TV (9,0)] // Headers don't say, documentation says no, however everything works just fine in Xcode (and no warnings). - [iOS (9,0)] - [Mac (10,13)] + [TV (9, 0)] // Headers don't say, documentation says no, however everything works just fine in Xcode (and no warnings). + [iOS (9, 0)] + [Mac (10, 13)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] interface CSMailboxKey { @@ -270,18 +271,19 @@ namespace CoreSpotlight { } [NoTV] - [iOS (9,0)] - [Mac (10,13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface CSSearchableItemAttributeSet : NSCopying, NSSecureCoding { - [Deprecated (PlatformName.iOS, 14,0, message: "Use '.ctor(UTType)' instead.")] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use '.ctor(UTType)' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor(UTType)' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use '.ctor(UTType)' instead.")] [Export ("initWithItemContentType:")] NativeHandle Constructor (string itemContentType); - [iOS (14,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Export ("initWithContentType:")] NativeHandle Constructor (UTType contentType); @@ -428,11 +430,11 @@ namespace CoreSpotlight { [Export ("version")] string Version { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("weakRelatedUniqueIdentifier", ArgumentSemantic.Copy)] string WeakRelatedUniqueIdentifier { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("domainIdentifier")] string DomainIdentifier { get; set; } @@ -681,7 +683,7 @@ namespace CoreSpotlight { [NullAllowed] [Export ("ratingDescription")] NSNumber RatingDescription { get; set; } - + [NullAllowed] [Export ("playCount", ArgumentSemantic.Strong)] NSNumber PlayCount { get; set; } @@ -978,19 +980,19 @@ namespace CoreSpotlight { [Export ("GPSDifferental", ArgumentSemantic.Strong)] NSNumber GpsDifferental { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("fullyFormattedAddress")] string FullyFormattedAddress { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("postalCode")] string PostalCode { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("subThoroughfare")] string SubThoroughfare { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("thoroughfare")] string Thoroughfare { get; set; } @@ -1002,17 +1004,17 @@ namespace CoreSpotlight { [NullAllowed, Export ("supportsNavigation", ArgumentSemantic.Strong)] NSNumber SupportsNavigation { get; set; } - [NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Field ("CSActionIdentifier")] NSString ActionIdentifier { get; } - [NoTV, NoMac, iOS (15,0)] + [NoTV, NoMac, iOS (15, 0)] [NoMacCatalyst] [Export ("actionIdentifiers", ArgumentSemantic.Copy)] - string[] ActionIdentifiers { get; set; } + string [] ActionIdentifiers { get; set; } [NullAllowed] - [NoTV, NoMac, iOS (15,0)] + [NoTV, NoMac, iOS (15, 0)] [NoMacCatalyst] [Export ("sharedItemContentType", ArgumentSemantic.Copy)] UTType SharedItemContentType { get; set; } @@ -1044,7 +1046,7 @@ namespace CoreSpotlight { // CSSearchableItemAttributeSet_CSGeneral - [iOS (11,0), NoTV] + [iOS (11, 0), NoTV] [NullAllowed, Export ("userCreated", ArgumentSemantic.Strong)] [Internal] // We would like to use [BindAs (typeof (bool?))] NSNumber _IsUserCreated { [Bind ("isUserCreated")] get; set; } @@ -1062,8 +1064,8 @@ namespace CoreSpotlight { [iOS (11, 0), NoTV] [NullAllowed, Export ("rankingHint", ArgumentSemantic.Strong)] NSNumber RankingHint { get; set; } - - [NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("darkThumbnailURL", ArgumentSemantic.Strong)] NSUrl DarkThumbnailUrl { get; set; } @@ -1071,26 +1073,27 @@ namespace CoreSpotlight { [iOS (11, 0), NoTV] [NullAllowed, Export ("providerDataTypeIdentifiers", ArgumentSemantic.Copy)] - string[] ProviderDataTypeIdentifiers { get; set; } + string [] ProviderDataTypeIdentifiers { get; set; } [iOS (11, 0), NoTV] [NullAllowed, Export ("providerFileTypeIdentifiers", ArgumentSemantic.Copy)] - string[] ProviderFileTypeIdentifiers { get; set; } + string [] ProviderFileTypeIdentifiers { get; set; } [iOS (11, 0), NoTV] [NullAllowed, Export ("providerInPlaceFileTypeIdentifiers", ArgumentSemantic.Copy)] - string[] ProviderInPlaceFileTypeIdentifiers { get; set; } + string [] ProviderInPlaceFileTypeIdentifiers { get; set; } } - [NoTV][iOS (10,0)] - [Mac (10,13)] + [NoTV] + [iOS (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface CSSearchQuery { [Export ("initWithQueryString:attributes:")] - NativeHandle Constructor (string queryString, [NullAllowed] string[] attributes); + NativeHandle Constructor (string queryString, [NullAllowed] string [] attributes); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithQueryString:queryContext:")] [DesignatedInitializer] NativeHandle Constructor (string queryString, [NullAllowed] CSSearchQueryContext queryContext); @@ -1102,13 +1105,13 @@ namespace CoreSpotlight { nuint FoundItemCount { get; } [NullAllowed, Export ("foundItemsHandler", ArgumentSemantic.Copy)] - Action FoundItemsHandler { get; set; } + Action FoundItemsHandler { get; set; } [NullAllowed, Export ("completionHandler", ArgumentSemantic.Copy)] Action CompletionHandler { get; set; } [Export ("protectionClasses", ArgumentSemantic.Copy)] - string[] ProtectionClasses { get; set; } + string [] ProtectionClasses { get; set; } [Export ("start")] void Start (); @@ -1118,19 +1121,17 @@ namespace CoreSpotlight { } [Abstract] - [NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface CSImportExtension : NSExtensionRequestHandling - { + interface CSImportExtension : NSExtensionRequestHandling { [Export ("updateAttributes:forFileAtURL:error:")] bool Update (CSSearchableItemAttributeSet attributes, NSUrl contentUrl, [NullAllowed] out NSError error); } - [NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (CSSearchQuery))] [DisableDefaultCtor] - interface CSUserQuery - { + interface CSUserQuery { [Export ("initWithUserQueryString:userQueryContext:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] string userQueryString, [NullAllowed] CSUserQueryContext userQueryContext); @@ -1148,11 +1149,10 @@ namespace CoreSpotlight { void Cancel (); } - [NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (CSSearchQueryContext))] [DisableDefaultCtor] - interface CSUserQueryContext - { + interface CSUserQueryContext { [Static] [Export ("userQueryContext")] CSUserQueryContext UserQueryContext { get; } @@ -1172,11 +1172,10 @@ namespace CoreSpotlight { } - [NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface CSSuggestion : NSSecureCoding, NSCopying - { + interface CSSuggestion : NSSecureCoding, NSCopying { [Field ("CSSuggestionHighlightAttributeName")] NSString HighlightAttributeName { get; } @@ -1194,15 +1193,14 @@ namespace CoreSpotlight { NSComparisonResult CompareByRank (CSSuggestion other); } - [NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface CSSearchQueryContext : NSSecureCoding, NSCopying - { + interface CSSearchQueryContext : NSSecureCoding, NSCopying { [Export ("fetchAttributes", ArgumentSemantic.Strong)] - string[] FetchAttributes { get; set; } + string [] FetchAttributes { get; set; } [Export ("filterQueries", ArgumentSemantic.Copy)] - string[] FilterQueries { get; set; } + string [] FilterQueries { get; set; } [NullAllowed, Export ("keyboardLanguage", ArgumentSemantic.Strong)] string KeyboardLanguage { get; set; } @@ -1211,18 +1209,16 @@ namespace CoreSpotlight { CSSearchQuerySourceOptions SourceOptions { get; set; } } - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] - public enum CSSearchQuerySourceOptions : long - { + public enum CSSearchQuerySourceOptions : long { Default = 0, AllowMail = 1L << 0, } - [NoTV, Mac (10,13), iOS (16,0), MacCatalyst (16,0)] + [NoTV, Mac (10, 13), iOS (16, 0), MacCatalyst (16, 0)] [Native] - public enum CSSuggestionKind : long - { + public enum CSSuggestionKind : long { None, Custom, Default, diff --git a/src/coretelephony.cs b/src/coretelephony.cs index dc4cfa3235..8731096550 100644 --- a/src/coretelephony.cs +++ b/src/coretelephony.cs @@ -3,13 +3,13 @@ using ObjCRuntime; using System; namespace CoreTelephony { - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0, message: Constants.UseCallKitInstead)] - [Deprecated (PlatformName.iOS, 10,0, message: Constants.UseCallKitInstead)] + [Deprecated (PlatformName.iOS, 10, 0, message: Constants.UseCallKitInstead)] [BaseType (typeof (NSObject))] interface CTCall { [Export ("callID")] - string CallID { get; } + string CallID { get; } [Export ("callState")] string CallState { get; } @@ -17,19 +17,19 @@ namespace CoreTelephony { } [NoMacCatalyst] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface CTCellularData { [NullAllowed, Export ("cellularDataRestrictionDidUpdateNotifier", ArgumentSemantic.Copy)] Action RestrictionDidUpdateNotifier { get; set; } - + [Export ("restrictedState")] CTCellularDataRestrictedState RestrictedState { get; } } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Static] - [iOS (7,0)] + [iOS (7, 0)] interface CTRadioAccessTechnology { [Field ("CTRadioAccessTechnologyGPRS")] NSString GPRS { get; } @@ -64,19 +64,19 @@ namespace CoreTelephony { [Field ("CTRadioAccessTechnologyLTE")] NSString LTE { get; } - [iOS (14,1)] + [iOS (14, 1)] [Field ("CTRadioAccessTechnologyNRNSA")] NSString NRNsa { get; } - [iOS (14,1)] + [iOS (14, 1)] [Field ("CTRadioAccessTechnologyNR")] NSString NR { get; } } - interface ICTTelephonyNetworkInfoDelegate {} + interface ICTTelephonyNetworkInfoDelegate { } - [MacCatalyst (14,0)] - [iOS (13,0)] + [MacCatalyst (14, 0)] + [iOS (13, 0)] #if NET [Protocol, Model] #else @@ -89,59 +89,59 @@ namespace CoreTelephony { void DataServiceIdentifierDidChange (string identifier); } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface CTTelephonyNetworkInfo { - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'ServiceSubscriberCellularProviders' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'ServiceSubscriberCellularProviders' instead.")] [Export ("subscriberCellularProvider", ArgumentSemantic.Retain)] [NullAllowed] CTCarrier SubscriberCellularProvider { get; } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'ServiceSubscriberCellularProvidersDidUpdateNotifier' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'ServiceSubscriberCellularProvidersDidUpdateNotifier' instead.")] [NullAllowed] // by default this property is null [Export ("subscriberCellularProviderDidUpdateNotifier")] Action CellularProviderUpdatedEventHandler { get; set; } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'ServiceCurrentRadioAccessTechnology' instead.")] - [iOS (7,0), Export ("currentRadioAccessTechnology")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'ServiceCurrentRadioAccessTechnology' instead.")] + [iOS (7, 0), Export ("currentRadioAccessTechnology")] [NullAllowed] NSString CurrentRadioAccessTechnology { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed] [Export ("serviceSubscriberCellularProviders", ArgumentSemantic.Retain)] NSDictionary ServiceSubscriberCellularProviders { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed] [Export ("serviceCurrentRadioAccessTechnology", ArgumentSemantic.Retain)] NSDictionary ServiceCurrentRadioAccessTechnology { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed] [Export ("serviceSubscriberCellularProvidersDidUpdateNotifier", ArgumentSemantic.Copy)] Action ServiceSubscriberCellularProvidersDidUpdateNotifier { get; set; } - [iOS (12,0)] + [iOS (12, 0)] [Notification] [Field ("CTServiceRadioAccessTechnologyDidChangeNotification")] NSString ServiceRadioAccessTechnologyDidChangeNotification { get; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("dataServiceIdentifier")] string DataServiceIdentifier { get; } - [iOS (13,0)] + [iOS (13, 0)] [Wrap ("WeakDelegate")] [NullAllowed] ICTTelephonyNetworkInfoDelegate Delegate { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Deprecated (PlatformName.MacCatalyst, 14, 0, message: Constants.UseCallKitInstead)] [Deprecated (PlatformName.iOS, 10, 0, message: Constants.UseCallKitInstead)] [BaseType (typeof (NSObject))] @@ -158,34 +158,34 @@ namespace CoreTelephony { [Deprecated (PlatformName.MacCatalyst, 16, 0, message: Constants.UseCallKitInstead)] [Deprecated (PlatformName.iOS, 16, 0, message: Constants.UseCallKitInstead)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface CTCarrier { [NullAllowed] [Export ("mobileCountryCode")] - string MobileCountryCode { get; } + string MobileCountryCode { get; } [NullAllowed] [Export ("mobileNetworkCode")] - string MobileNetworkCode { get; } + string MobileNetworkCode { get; } [NullAllowed] [Export ("isoCountryCode")] - string IsoCountryCode { get; } + string IsoCountryCode { get; } [Export ("allowsVOIP")] - bool AllowsVoip { get; } + bool AllowsVoip { get; } [NullAllowed] [Export ("carrierName")] string CarrierName { get; } } - interface ICTSubscriberDelegate {} + interface ICTSubscriberDelegate { } [NoMacCatalyst] [Protocol] - [iOS (12,1)] + [iOS (12, 1)] interface CTSubscriberDelegate { [Abstract] [Export ("subscriberTokenRefreshed:")] @@ -194,22 +194,22 @@ namespace CoreTelephony { [NoMacCatalyst] [BaseType (typeof (NSObject))] - [iOS (7,0)] + [iOS (7, 0)] partial interface CTSubscriber { [Export ("carrierToken")] [NullAllowed] [Deprecated (PlatformName.iOS, 11, 0)] NSData CarrierToken { get; } - [iOS (12,1)] + [iOS (12, 1)] [Export ("identifier")] string Identifier { get; } - [iOS (12,1)] + [iOS (12, 1)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [iOS (12,1)] + [iOS (12, 1)] [Wrap ("WeakDelegate")] [NullAllowed] ICTSubscriberDelegate Delegate { get; set; } @@ -218,19 +218,19 @@ namespace CoreTelephony { [NoMacCatalyst] [BaseType (typeof (NSObject))] partial interface CTSubscriberInfo { - [Deprecated (PlatformName.iOS, 12, 1, message : "Use 'Subscribers' instead.")] + [Deprecated (PlatformName.iOS, 12, 1, message: "Use 'Subscribers' instead.")] [Static] [Export ("subscriber")] CTSubscriber Subscriber { get; } - [iOS (12,1)] + [iOS (12, 1)] [Static] [Export ("subscribers")] - CTSubscriber[] Subscribers { get; } + CTSubscriber [] Subscribers { get; } } [NoMacCatalyst] - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (NSObject))] interface CTCellularPlanProvisioningRequest : NSSecureCoding { [Export ("address")] @@ -253,7 +253,7 @@ namespace CoreTelephony { } [NoMacCatalyst] - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (NSObject))] interface CTCellularPlanProvisioning { [Export ("supportsCellularPlan")] diff --git a/src/coretext.cs b/src/coretext.cs index dbb661cc12..5ca3abb960 100644 --- a/src/coretext.cs +++ b/src/coretext.cs @@ -42,11 +42,11 @@ namespace CoreText { [Field ("kCTFontFeatureSelectorSettingKey")] NSString Setting { get; } - [iOS (13,0), Mac (10,15), TV (13,0), Watch (6,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0), Watch (6, 0)] [Field ("kCTFontFeatureSampleTextKey")] NSString SampleText { get; } - [iOS (13,0), Mac (10,15), TV (13,0), Watch (6,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0), Watch (6, 0)] [Field ("kCTFontFeatureTooltipTextKey")] NSString TooltipText { get; } } @@ -69,7 +69,7 @@ namespace CoreText { [Field ("kCTFontVariationAxisNameKey")] NSString Name { get; } - [iOS (11,0), Mac (10,13), Watch (4,0), TV (11,0)] + [iOS (11, 0), Mac (10, 13), Watch (4, 0), TV (11, 0)] [Field ("kCTFontVariationAxisHiddenKey")] NSString Hidden { get; } } @@ -94,7 +94,7 @@ namespace CoreText { NSString ForceEmbeddingLevel { get; } #endif - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCTTypesetterOptionAllowUnboundedLayout")] NSString AllowUnboundedLayout { get; } } @@ -319,7 +319,8 @@ namespace CoreText { } #endif - [Static][Partial] + [Static] + [Partial] interface CTStringAttributeKey { #if NET [Field ("kCTFontAttributeName")] @@ -389,7 +390,7 @@ namespace CoreText { NSString WritingDirection { get; } #endif - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("kCTTrackingAttributeName")] NSString TrackingAttributeName { get; } } diff --git a/src/corevideo.cs b/src/corevideo.cs index 48d5c061fc..44b7b06172 100644 --- a/src/corevideo.cs +++ b/src/corevideo.cs @@ -17,7 +17,8 @@ namespace CoreVideo { [Partial] interface CVPixelBufferPoolAllocationSettings { - [Internal][Field ("kCVPixelBufferPoolAllocationThresholdKey")] + [Internal] + [Field ("kCVPixelBufferPoolAllocationThresholdKey")] NSString ThresholdKey { get; } } @@ -44,7 +45,7 @@ namespace CoreVideo { interface CVImageBuffer : CVBuffer { [Field ("kCVImageBufferCGColorSpaceKey")] - NSString CGColorSpaceKey { get; } + NSString CGColorSpaceKey { get; } [Field ("kCVImageBufferGammaLevelKey")] NSString GammaLevelKey { get; } @@ -120,32 +121,35 @@ namespace CoreVideo { [Static] [Wrap ("CVImageBufferYCbCrMatrix.DciP3.GetConstant ()")] - [iOS (9,0), Mac (10,12)] + [iOS (9, 0), Mac (10, 12)] NSString YCbCrMatrix_DCI_P3 { get; } [Static] [Wrap ("CVImageBufferYCbCrMatrix.P3D65.GetConstant ()")] - [iOS (9,0), Mac (10,12)] + [iOS (9, 0), Mac (10, 12)] NSString YCbCrMatrix_P3_D65 { get; } [Static] [Wrap ("CVImageBufferYCbCrMatrix.ItuR2020.GetConstant ()")] - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] NSString YCbCrMatrix_ITU_R_2020 { get; } [Static] [Wrap ("CVImageBufferColorPrimaries.DciP3.GetConstant ()")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] NSString ColorPrimaries_DCI_P3 { get; } [Static] [Wrap ("CVImageBufferColorPrimaries.ItuR2020.GetConstant ()")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] NSString ColorPrimaries_ITU_R_2020 { get; } [Static] [Wrap ("CVImageBufferColorPrimaries.P3D65.GetConstant ()")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] NSString ColorPrimaries_P3_D65 { get; } [Field ("kCVImageBufferChromaSubsamplingKey")] @@ -175,27 +179,27 @@ namespace CoreVideo { [Wrap ("CVImageBufferTransferFunction.UseGamma.GetConstant ()")] NSString TransferFunction_UseGamma { get; } - [iOS (9,0), Mac (10,11), TV (10,0)] + [iOS (9, 0), Mac (10, 11), TV (10, 0)] [Static] [Wrap ("CVImageBufferTransferFunction.ItuR2020.GetConstant ()")] NSString TransferFunction_ITU_R_2020 { get; } - [iOS (10,0), Mac (10,12), TV (10,0)] + [iOS (10, 0), Mac (10, 12), TV (10, 0)] [Static] [Wrap ("CVImageBufferTransferFunction.SmpteST428_1.GetConstant ()")] NSString TransferFunction_SMPTE_ST_428_1 { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Static] [Wrap ("CVImageBufferTransferFunction.SRgb.GetConstant ()")] NSString TransferFunction_sRGB { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Static] [Wrap ("CVImageBufferTransferFunction.SmpteST2084PQ.GetConstant ()")] NSString TransferFunction_SMPTE_ST_2084_PQ { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Static] [Wrap ("CVImageBufferTransferFunction.ItuR2100Hlg.GetConstant ()")] NSString TransferFunction_ITU_R_2100_HLG { get; } @@ -246,15 +250,15 @@ namespace CoreVideo { [Wrap ("CVImageBufferColorPrimaries.P22.GetConstant ()")] NSString ColorPrimaries_P22 { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("kCVImageBufferAlphaChannelIsOpaque")] NSString AlphaChannelIsOpaque { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCVImageBufferMasteringDisplayColorVolumeKey")] NSString MasteringDisplayColorVolumeKey { get; } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCVImageBufferContentLightLevelInfoKey")] NSString ContentLightLevelInfoKey { get; } @@ -262,16 +266,16 @@ namespace CoreVideo { [Field ("kCVImageBufferAlphaChannelModeKey")] NSString AlphaChannelModeKey { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kCVImageBufferRegionOfInterestKey")] NSString RegionOfInterestKey { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kCVImageBufferAmbientViewingEnvironmentKey")] NSString AmbientViewingEnvironmentKey { get; } } - [Watch (4,0)] + [Watch (4, 0)] enum CVImageBufferTransferFunction { [Field (null)] @@ -286,47 +290,53 @@ namespace CoreVideo { [Field ("kCVImageBufferTransferFunction_UseGamma")] UseGamma, - [iOS (9,0), Mac (10,11), TV (10,0)] + [iOS (9, 0), Mac (10, 11), TV (10, 0)] [Field ("kCVImageBufferTransferFunction_ITU_R_2020")] ItuR2020, - [iOS (10,0), Mac (10,12), TV (10,0)] + [iOS (10, 0), Mac (10, 12), TV (10, 0)] [Field ("kCVImageBufferTransferFunction_SMPTE_ST_428_1")] SmpteST428_1, - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCVImageBufferTransferFunction_sRGB")] SRgb, - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ")] SmpteST2084PQ, - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Field ("kCVImageBufferTransferFunction_ITU_R_2100_HLG")] ItuR2100Hlg, - [iOS (12,0)][Mac (10,14)][TV (12,0)][Watch (5,0)] + [iOS (12, 0)] + [Mac (10, 14)] + [TV (12, 0)] + [Watch (5, 0)] [Field ("kCVImageBufferTransferFunction_Linear")] Linear, } - [Watch (4,0)] + [Watch (4, 0)] enum CVImageBufferColorPrimaries { [Field (null)] Unknown = 2, // 2 (the code point for "unknown") [Field ("kCVImageBufferColorPrimaries_DCI_P3")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] DciP3, [Field ("kCVImageBufferColorPrimaries_ITU_R_2020")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] ItuR2020, [Field ("kCVImageBufferColorPrimaries_P3_D65")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] P3D65, [Field ("kCVImageBufferColorPrimaries_ITU_R_709_2")] @@ -342,7 +352,7 @@ namespace CoreVideo { P22, } - [Watch (4,0)] + [Watch (4, 0)] enum CVImageBufferYCbCrMatrix { [Field (null)] @@ -360,17 +370,17 @@ namespace CoreVideo { [Deprecated (PlatformName.iOS, 14, 0, message: "This API is no longer supported.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "This API is no longer supported.")] [Field ("kCVImageBufferYCbCrMatrix_DCI_P3")] - [iOS (9,0), Mac (10,12)] + [iOS (9, 0), Mac (10, 12)] DciP3, [Deprecated (PlatformName.iOS, 14, 0, message: "This API is no longer supported.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "This API is no longer supported.")] [Field ("kCVImageBufferYCbCrMatrix_P3_D65")] - [iOS (9,0), Mac (10,12)] + [iOS (9, 0), Mac (10, 12)] P3D65, [Field ("kCVImageBufferYCbCrMatrix_ITU_R_2020")] - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] ItuR2020, } @@ -378,7 +388,7 @@ namespace CoreVideo { interface CVPixelBuffer { [Field ("kCVPixelBufferPixelFormatTypeKey")] - NSString PixelFormatTypeKey{ get; } + NSString PixelFormatTypeKey { get; } [Field ("kCVPixelBufferMemoryAllocatorKey")] NSString MemoryAllocatorKey { get; } @@ -428,59 +438,60 @@ namespace CoreVideo { [NoMac] [NoWatch] [NoMacCatalyst] - [iOS (9,0)] + [iOS (9, 0)] [Field ("kCVPixelBufferOpenGLESTextureCacheCompatibilityKey")] NSString OpenGLESTextureCacheCompatibilityKey { get; } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Field ("kCVPixelBufferMetalCompatibilityKey")] NSString MetalCompatibilityKey { get; } - [NoiOS, NoTV, NoWatch, Mac (10,11), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (10, 11), NoMacCatalyst] [Field ("kCVPixelBufferOpenGLTextureCacheCompatibilityKey")] NSString OpenGLTextureCacheCompatibilityKey { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_BlackLevel")] NSString ProResRawKey_BlackLevel { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_ColorMatrix")] NSString ProResRawKey_ColorMatrix { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_GainFactor")] NSString ProResRawKey_GainFactor { get; } - [NoWatch, NoTV, Mac(12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_RecommendedCrop")] NSString ProResRawKey_RecommendedCrop { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_SenselSitingOffsets")] NSString ProResRawKey_SenselSitingOffsets { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor")] NSString ProResRawKey_WhiteBalanceBlueFactor { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_WhiteBalanceCCT")] NSString ProResRawKey_WhiteBalanceCct { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor")] NSString ProResRawKey_WhiteBalanceRedFactor { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_WhiteLevel")] NSString ProResRawKey_WhiteLevel { get; } - [NoWatch, NoTV, Mac (12,0), iOS (14, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (14, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferVersatileBayerKey_BayerPattern")] NSString VersatileBayerKey_BayerPattern { get; } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kCVPixelBufferProResRAWKey_MetadataExtension")] NSString MetadataExtension { get; } } @@ -501,12 +512,12 @@ namespace CoreVideo { [NoWatch] [Partial] interface CVMetalTextureCache { - [Mac (12,0)] + [Mac (12, 0)] [Internal] [Field ("kCVMetalTextureCacheMaximumTextureAgeKey")] IntPtr MaxTextureAge { get; } - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Field ("kCVMetalTextureStorageMode")] NSString StorageMode { get; } } @@ -519,7 +530,7 @@ namespace CoreVideo { // IntPtr MaxTextureAge { get; } // } - [iOS (11,0), Mac (10,13), TV (11,0), NoWatch] + [iOS (11, 0), Mac (10, 13), TV (11, 0), NoWatch] [Static, Internal] interface CVMetalTextureAttributesKeys { @@ -527,15 +538,14 @@ namespace CoreVideo { NSString UsageKey { get; } } - [iOS (11,0), Mac (10,13), TV (11,0), NoWatch] + [iOS (11, 0), Mac (10, 13), TV (11, 0), NoWatch] [StrongDictionary ("CVMetalTextureAttributesKeys")] interface CVMetalTextureAttributes { // Create stub DictionaryContainer class } [NoWatch, NoTV, NoMac, iOS (14, 0)] - public enum CVVersatileBayerPattern : uint - { + public enum CVVersatileBayerPattern : uint { Rggb = 0, Grbg = 1, Gbrg = 2, diff --git a/src/corewlan.cs b/src/corewlan.cs index 1a7b29d7af..87a4f9caaf 100644 --- a/src/corewlan.cs +++ b/src/corewlan.cs @@ -39,13 +39,13 @@ namespace CoreWlan { interface CWChannel : NSCoding, NSSecureCoding, NSCopying { [Export ("channelNumber")] nint ChannelNumber { get; } - + [Export ("channelWidth")] CWChannelWidth ChannelWidth { get; } - + [Export ("channelBand")] CWChannelBand ChannelBand { get; } - + [Export ("isEqualToChannel:")] bool IsEqualToChannel (CWChannel channel); } @@ -73,7 +73,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7)] [Export ("alwaysPromptForPassword")] - bool AlwaysPromptForPassword{ get; set; } + bool AlwaysPromptForPassword { get; set; } [Static] [Export ("profile")] @@ -87,7 +87,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 10)] [Static] [Export ("allUser8021XProfiles")] - CW8021XProfile[] AllUser8021XProfiles { get; } + CW8021XProfile [] AllUser8021XProfiles { get; } } #endif @@ -101,7 +101,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("preferredNetworks")] - CWWirelessProfile[] PreferredNetworks { get; set; } + CWWirelessProfile [] PreferredNetworks { get; set; } [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("alwaysRememberNetworks")] @@ -127,19 +127,19 @@ namespace CoreWlan { [Export ("networkProfiles", ArgumentSemantic.Copy)] [Internal] NSOrderedSet _NetworkProfiles { get; } - + [Export ("requireAdministratorForAssociation", ArgumentSemantic.Assign)] bool RequireAdministratorForAssociation { get; } - + [Export ("requireAdministratorForPower", ArgumentSemantic.Assign)] bool RequireAdministratorForPower { get; } - + [Export ("requireAdministratorForIBSSMode", ArgumentSemantic.Assign)] bool RequireAdministratorForIbssMode { get; } - + [Export ("rememberJoinedNetworks", ArgumentSemantic.Assign)] bool RememberJoinedNetworks { get; } - + [Export ("initWithConfiguration:")] NativeHandle Constructor (CWConfiguration configuration); @@ -168,7 +168,7 @@ namespace CoreWlan { [Export ("requireAdministratorForPower", ArgumentSemantic.Assign)] bool RequireAdministratorForPower { get; set; } - [Deprecated (PlatformName.MacOSX, 11,0)] + [Deprecated (PlatformName.MacOSX, 11, 0)] [Export ("requireAdministratorForIBSSMode", ArgumentSemantic.Assign)] bool RequireAdministratorForIbssMode { get; set; } @@ -250,11 +250,11 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("supportedChannels")] - NSNumber[] SupportedChannels { get; } + NSNumber [] SupportedChannels { get; } [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("supportedPHYModes")] - NSNumber[] SupportedPhyModes { get; } + NSNumber [] SupportedPhyModes { get; } [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("channel")] @@ -299,7 +299,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Static] [Export ("supportedInterfaces")] - string[] SupportedInterfaces { get; } + string [] SupportedInterfaces { get; } [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Static] @@ -309,7 +309,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Static] [Export ("interfaceWithName:")] - CWInterface FromName ([NullAllowed]string name); + CWInterface FromName ([NullAllowed] string name); [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("isEqualToInterface:")] @@ -321,7 +321,7 @@ namespace CoreWlan { [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("scanForNetworksWithParameters:error:")] - CWNetwork[] ScanForNetworksWithParameters ([NullAllowed] NSDictionary parameters, out NSError error); + CWNetwork [] ScanForNetworksWithParameters ([NullAllowed] NSDictionary parameters, out NSError error); [Deprecated (PlatformName.MacOSX, 10, 7), Obsoleted (PlatformName.MacOSX, 10, 9)] [Export ("associateToNetwork:parameters:error:")] @@ -338,11 +338,11 @@ namespace CoreWlan { [Export ("powerOn", ArgumentSemantic.Assign)] bool PowerOn { get; } - + [NullAllowed] [Export ("interfaceName", ArgumentSemantic.Copy)] string InterfaceName { get; } - + [NullAllowed] [Export ("supportedWLANChannels")] [Internal] @@ -351,118 +351,118 @@ namespace CoreWlan { [NullAllowed] [Export ("wlanChannel")] CWChannel WlanChannel { get; } - + [Export ("activePHYMode")] CWPhyMode ActivePHYMode { get; } - + [NullAllowed] [Export ("ssid")] string Ssid { get; } - + [NullAllowed] [Export ("ssidData")] NSData SsidData { get; } - + [NullAllowed] [Export ("bssid")] string Bssid { get; } - + [Export ("rssiValue")] nint RssiValue { get; } - + [Export ("noiseMeasurement")] nint NoiseMeasurement { get; } - + [Export ("security")] CWSecurity Security { get; } - + [Export ("transmitRate")] double TransmitRate { get; } - + [NullAllowed] [Export ("countryCode")] string CountryCode { get; } - + [Export ("interfaceMode")] CWInterfaceMode InterfaceMode { get; } - + [Export ("transmitPower")] nint TransmitPower { get; } - + [NullAllowed] [Export ("hardwareAddress")] string HardwareAddress { get; } - + [Export ("deviceAttached", ArgumentSemantic.Assign)] bool DeviceAttached { get; } - + [Export ("serviceActive")] bool ServiceActive { get; } - + [NullAllowed] [Export ("cachedScanResults")] [Internal] NSSet _CachedScanResults { get; } - + [NullAllowed] [Export ("configuration")] CWConfiguration Configuration { get; } - + [NullAllowed] [Static] [Export ("interfaceNames")] [Internal] NSSet _InterfaceNames { get; } - + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CWWiFiClient.FromName' instead.")] [Export ("initWithInterfaceName:")] - NativeHandle Constructor ([NullAllowed]string name); - + NativeHandle Constructor ([NullAllowed] string name); + [Export ("setPower:error:")] bool SetPower (bool power, out NSError error); - + [Export ("setWLANChannel:error:")] bool SetWlanChannel (CWChannel channel, out NSError error); - + [Export ("setPairwiseMasterKey:error:")] bool SetPairwiseMasterKey ([NullAllowed] NSData key, out NSError error); - + [Export ("setWEPKey:flags:index:error:")] bool SetWEPKey ([NullAllowed] NSData key, CWCipherKeyFlags flags, nint index, out NSError error); - + [return: NullAllowed] [Export ("scanForNetworksWithSSID:error:")] [Internal] NSSet _ScanForNetworksWithSsid ([NullAllowed] NSData ssid, out NSError error); - + [return: NullAllowed] [Export ("scanForNetworksWithName:error:")] [Internal] NSSet _ScanForNetworksWithName ([NullAllowed] string networkName, out NSError error); - + [Export ("associateToNetwork:password:error:")] bool AssociateToNetwork (CWNetwork network, [NullAllowed] string password, out NSError error); - + [Export ("associateToEnterpriseNetwork:identity:username:password:error:")] - bool AssociateToEnterpriseNetwork (CWNetwork network, [NullAllowed] SecIdentity identity, [NullAllowed] string username, [NullAllowed]string password, out NSError error); - - [Deprecated (PlatformName.MacOSX, 11,0)] + bool AssociateToEnterpriseNetwork (CWNetwork network, [NullAllowed] SecIdentity identity, [NullAllowed] string username, [NullAllowed] string password, out NSError error); + + [Deprecated (PlatformName.MacOSX, 11, 0)] [Export ("startIBSSModeWithSSID:security:channel:password:error:")] bool StartIbssModeWithSsid (NSData ssidData, CWIbssModeSecurity security, nuint channel, [NullAllowed] string password, out NSError error); - + [Export ("disassociate")] void Disassociate (); - + [Export ("commitConfiguration:authorization:error:")] bool CommitConfiguration (CWConfiguration configuration, [NullAllowed] NSObject authorization, out NSError error); - [Mac (10,13)] + [Mac (10, 13)] [Export ("scanForNetworksWithSSID:includeHidden:error:")] [return: NullAllowed] [Internal] NSSet _ScanForNetworksWithSsid ([NullAllowed] NSData ssid, bool includeHidden, [NullAllowed] out NSError error); - [Mac (10,13)] + [Mac (10, 13)] [Export ("scanForNetworksWithName:includeHidden:error:")] [return: NullAllowed] [Internal] @@ -541,11 +541,11 @@ namespace CoreWlan { [NullAllowed] [Export ("ssid")] string Ssid { get; } - + [NullAllowed] [Export ("ssidData")] NSData SsidData { get; } - + [NullAllowed] [Export ("bssid")] string Bssid { get; } @@ -553,41 +553,40 @@ namespace CoreWlan { [NullAllowed] [Export ("wlanChannel")] CWChannel WlanChannel { get; } - + [Export ("rssiValue")] nint RssiValue { get; } - + [Export ("noiseMeasurement")] nint NoiseMeasurement { get; } - + [NullAllowed] [Export ("informationElementData")] NSData InformationElementData { get; } - + [NullAllowed] [Export ("countryCode")] string CountryCode { get; } - + [Export ("beaconInterval")] nint BeaconInterval { get; } - + [Export ("ibss")] bool Ibss { get; } - + [Export ("isEqualToNetwork:")] bool IsEqualToNetwork (CWNetwork network); - + [Export ("supportsSecurity:")] bool SupportsSecurity (CWSecurity security); - + [Export ("supportsPHYMode:")] bool SupportsPhyMode (CWPhyMode phyMode); } [NoMacCatalyst] [BaseType (typeof (NSObject))] - interface CWNetworkProfile : NSCoding, NSSecureCoding, NSCopying, NSMutableCopying - { + interface CWNetworkProfile : NSCoding, NSSecureCoding, NSCopying, NSMutableCopying { [NullAllowed] [Export ("ssid", ArgumentSemantic.Copy)] string Ssid { get; } @@ -616,8 +615,7 @@ namespace CoreWlan { [NoMacCatalyst] [BaseType (typeof (CWNetworkProfile))] - interface CWMutableNetworkProfile : NSCoding, NSSecureCoding, NSCopying, NSMutableCopying - { + interface CWMutableNetworkProfile : NSCoding, NSSecureCoding, NSCopying, NSMutableCopying { [NullAllowed] [Export ("ssidData", ArgumentSemantic.Copy)] NSData SsidData { get; set; } @@ -626,14 +624,13 @@ namespace CoreWlan { CWSecurity Security { get; set; } } - [Mac (10,10), NoMacCatalyst] + [Mac (10, 10), NoMacCatalyst] [BaseType (typeof (NSObject))] - interface CWWiFiClient - { + interface CWWiFiClient { [Export ("delegate", ArgumentSemantic.Weak)] [NullAllowed] ICWEventDelegate Delegate { get; set; } - + [Export ("interface")] [NullAllowed] CWInterface MainInterface { get; } @@ -644,12 +641,12 @@ namespace CoreWlan { [Export ("interfaces")] [NullAllowed] - CWInterface[] Interfaces { get; } + CWInterface [] Interfaces { get; } [NullAllowed] [Export ("interfaceNames")] [Static] - string[] InterfaceNames { get; } + string [] InterfaceNames { get; } [Export ("sharedWiFiClient")] [Static] @@ -664,41 +661,40 @@ namespace CoreWlan { [Export ("stopMonitoringEventWithType:error:")] bool StopMonitoringEvent (CWEventType type, out NSError error); } - + interface ICWEventDelegate { } - + [BaseType (typeof (NSObject))] [Model] [Protocol] - interface CWEventDelegate - { + interface CWEventDelegate { [Export ("clientConnectionInterrupted")] void ClientConnectionInterrupted (); - + [Export ("clientConnectionInvalidated")] void ClientConnectionInvalidated (); - + [Export ("powerStateDidChangeForWiFiInterfaceWithName:")] void PowerStateDidChangeForWiFi (string interfaceName); - + [Export ("ssidDidChangeForWiFiInterfaceWithName:")] void SsidDidChangeForWiFi (string interfaceName); - + [Export ("bssidDidChangeForWiFiInterfaceWithName:")] void BssidDidChangeForWiFi (string interfaceName); - + [Export ("countryCodeDidChangeForWiFiInterfaceWithName:")] void CountryCodeDidChangeForWiFi (string interfaceName); - + [Export ("linkDidChangeForWiFiInterfaceWithName:")] void LinkDidChangeForWiFi (string interfaceName); - + [Export ("linkQualityDidChangeForWiFiInterfaceWithName:rssi:transmitRate:")] void LinkQualityDidChangeForWiFi (string interfaceName, int rssi, double transmitRate); - + [Export ("modeDidChangeForWiFiInterfaceWithName:")] void ModeDidChangeForWiFi (string interfaceName); - + [Export ("scanCacheUpdatedForWiFiInterfaceWithName:")] void ScanCacheUpdatedForWiFi (string interfaceName); } diff --git a/src/devicecheck.cs b/src/devicecheck.cs index a486909c08..2ea8277413 100644 --- a/src/devicecheck.cs +++ b/src/devicecheck.cs @@ -14,8 +14,8 @@ using Foundation; namespace DeviceCheck { - [TV (11,0), Watch (9,0), iOS (11,0)] - [Mac (10,15)] + [TV (11, 0), Watch (9, 0), iOS (11, 0)] + [Mac (10, 15)] [ErrorDomain ("DCErrorDomain")] [Native] public enum DCError : long { @@ -26,12 +26,12 @@ namespace DeviceCheck { ServerUnavailable, } - [TV (11,0), Watch (9,0), iOS (11,0)] - [Mac (10,15)] + [TV (11, 0), Watch (9, 0), iOS (11, 0)] + [Mac (10, 15)] delegate void DCDeviceGenerateTokenCompletionHandler ([NullAllowed] NSData token, [NullAllowed] NSError error); - [TV (11,0), Watch (9,0), iOS (11,0)] - [Mac (10,15)] + [TV (11, 0), Watch (9, 0), iOS (11, 0)] + [Mac (10, 15)] [DisableDefaultCtor] // From the documentation it seems the only way to create a usable instance is to use the static CurrentDevice property. [BaseType (typeof (NSObject))] interface DCDevice { @@ -48,11 +48,11 @@ namespace DeviceCheck { void GenerateToken (DCDeviceGenerateTokenCompletionHandler completion); } - [Watch (9,0)] - [iOS (14,0)] - [Mac (11,3)] - [TV (15,0)] - [MacCatalyst (14,5)] + [Watch (9, 0)] + [iOS (14, 0)] + [Mac (11, 3)] + [TV (15, 0)] + [MacCatalyst (14, 5)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface DCAppAttestService { diff --git a/src/eventkit.cs b/src/eventkit.cs index 00bcc81f4f..59c7a1fe38 100644 --- a/src/eventkit.cs +++ b/src/eventkit.cs @@ -40,7 +40,7 @@ using NativeHandle = System.IntPtr; namespace EventKit { - [Mac (10,8), iOS (13,0), MacCatalyst (13,1), Watch (6,0), NoTV] + [Mac (10, 8), iOS (13, 0), MacCatalyst (13, 1), Watch (6, 0), NoTV] [BaseType (typeof (NSObject))] [Abstract] interface EKObject { @@ -69,62 +69,62 @@ namespace EventKit { [Export ("UUID")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'CalendarItemIdentifier' instead.")] [NoMac] - string UUID { get; } + string UUID { get; } [NullAllowed] // by default this property is null [Export ("calendar", ArgumentSemantic.Retain)] - EKCalendar Calendar { get; set; } + EKCalendar Calendar { get; set; } [NullAllowed] // by default this property is null [Export ("title", ArgumentSemantic.Copy)] - string Title { get; set; } + string Title { get; set; } [NullAllowed] // it's null by default on iOS 6.1 [Export ("location", ArgumentSemantic.Copy)] - string Location { get; set; } + string Location { get; set; } [Export ("notes", ArgumentSemantic.Copy)] [NullAllowed] - string Notes { get; set; } + string Notes { get; set; } [NullAllowed] // by default this property is null [Export ("URL", ArgumentSemantic.Copy)] - NSUrl Url { get; set; } + NSUrl Url { get; set; } [NullAllowed] [Export ("lastModifiedDate")] - NSDate LastModifiedDate { get; } + NSDate LastModifiedDate { get; } [NullAllowed, Export ("creationDate", ArgumentSemantic.Strong)] - NSDate CreationDate { get; } + NSDate CreationDate { get; } [NullAllowed] // by default this property is null [Export ("timeZone", ArgumentSemantic.Copy)] - NSTimeZone TimeZone { get; set; } + NSTimeZone TimeZone { get; set; } [Export ("hasAlarms")] - bool HasAlarms { get; } + bool HasAlarms { get; } [Export ("hasRecurrenceRules")] - bool HasRecurrenceRules { get; } + bool HasRecurrenceRules { get; } [Export ("hasAttendees")] - bool HasAttendees { get; } + bool HasAttendees { get; } [Export ("hasNotes")] - bool HasNotes { get; } + bool HasNotes { get; } [NullAllowed] [Export ("attendees")] - EKParticipant [] Attendees { get; } + EKParticipant [] Attendees { get; } [NullAllowed] // by default this property is null [Export ("alarms", ArgumentSemantic.Copy)] - EKAlarm [] Alarms { get; set; } + EKAlarm [] Alarms { get; set; } [NullAllowed] [Export ("recurrenceRules", ArgumentSemantic.Copy)] - EKRecurrenceRule [] RecurrenceRules { get; set; } + EKRecurrenceRule [] RecurrenceRules { get; set; } [Export ("addAlarm:")] void AddAlarm (EKAlarm alarm); @@ -139,24 +139,24 @@ namespace EventKit { void RemoveRecurrenceRule (EKRecurrenceRule rule); [Export ("calendarItemIdentifier")] - string CalendarItemIdentifier { get; } + string CalendarItemIdentifier { get; } [Export ("calendarItemExternalIdentifier")] - string CalendarItemExternalIdentifier { get; } + string CalendarItemExternalIdentifier { get; } } - + [BaseType (typeof (EKObject))] interface EKSource { [Export ("sourceType")] - EKSourceType SourceType { get; } + EKSourceType SourceType { get; } [Export ("title")] - string Title { get; } + string Title { get; } [Export ("calendars")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'GetCalendars (EKEntityType)' instead.")] [NoMac] - NSSet Calendars { get; } + NSSet Calendars { get; } [Export ("sourceIdentifier")] string SourceIdentifier { get; } @@ -164,7 +164,7 @@ namespace EventKit { [Export ("calendarsForEntityType:")] NSSet GetCalendars (EKEntityType entityType); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), NoTV] [Export ("isDelegate", ArgumentSemantic.Assign)] bool IsDelegate { get; } } @@ -173,19 +173,19 @@ namespace EventKit { interface EKStructuredLocation : NSCopying { [NullAllowed] // by default this property is null [Export ("title", ArgumentSemantic.Strong)] - string Title { get; set; } + string Title { get; set; } [NullAllowed] // by default this property is null [Export ("geoLocation", ArgumentSemantic.Strong)] - CLLocation GeoLocation { get; set; } + CLLocation GeoLocation { get; set; } [Export ("radius")] - double Radius { get; set; } + double Radius { get; set; } [Export ("locationWithTitle:"), Static] EKStructuredLocation FromTitle (string title); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("locationWithMapItem:")] EKStructuredLocation FromMapItem (MKMapItem mapItem); @@ -195,11 +195,11 @@ namespace EventKit { [DisableDefaultCtor] // Documentation says to use the static methods FromDate/FromTimeInterval to create instances interface EKAlarm : NSCopying { [Export ("relativeOffset")] - double RelativeOffset { get; set; } + double RelativeOffset { get; set; } [Export ("absoluteDate", ArgumentSemantic.Copy)] [NullAllowed] - NSDate AbsoluteDate { get; set; } + NSDate AbsoluteDate { get; set; } [Static] [Export ("alarmWithAbsoluteDate:")] @@ -211,26 +211,38 @@ namespace EventKit { [Export ("structuredLocation", ArgumentSemantic.Copy)] [NullAllowed] - EKStructuredLocation StructuredLocation { get; set; } + EKStructuredLocation StructuredLocation { get; set; } [Export ("proximity")] - EKAlarmProximity Proximity { get; set; } + EKAlarmProximity Proximity { get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("type")] EKAlarmType Type { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [NullAllowed] [Export ("emailAddress")] string EmailAddress { get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [NullAllowed] [Export ("soundName")] string SoundName { get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 9)] [NullAllowed] [Export ("url", ArgumentSemantic.Copy)] @@ -244,30 +256,33 @@ namespace EventKit { string Title { get; set; } [Export ("type")] - EKCalendarType Type { get; } + EKCalendarType Type { get; } [Export ("allowsContentModifications")] - bool AllowsContentModifications { get; } + bool AllowsContentModifications { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("color", ArgumentSemantic.Copy)] NSColor Color { get; set; } [Mac (10, 15)] [Export ("CGColor")] CGColor CGColor { get; set; } - + [Export ("supportedEventAvailabilities")] EKCalendarEventAvailability SupportedEventAvailabilities { get; } [Export ("calendarIdentifier")] - string CalendarIdentifier { get; } + string CalendarIdentifier { get; } [Export ("subscribed")] - bool Subscribed { [Bind ("isSubscribed")] get; } + bool Subscribed { [Bind ("isSubscribed")] get; } [Export ("immutable")] - bool Immutable { [Bind ("isImmutable")] get; } + bool Immutable { [Bind ("isImmutable")] get; } [NoMac] [NoMacCatalyst] // It's in the documentation and headers, but throws a "+[EKCalendar calendarWithEventStore:]: unrecognized selector" exception at runtime @@ -279,7 +294,7 @@ namespace EventKit { EKSource Source { get; set; } [Export ("allowedEntityTypes")] - EKEntityMask AllowedEntityTypes { get; } + EKEntityMask AllowedEntityTypes { get; } [Static] [Export ("calendarForEntityType:eventStore:")] @@ -294,20 +309,20 @@ namespace EventKit { EKEvent FromStore (EKEventStore eventStore); [Export ("allDay")] - bool AllDay { [Bind ("isAllDay")] get; set; } + bool AllDay { [Bind ("isAllDay")] get; set; } [Export ("startDate", ArgumentSemantic.Copy)] - NSDate StartDate { get; set; } + NSDate StartDate { get; set; } [Export ("endDate", ArgumentSemantic.Copy)] - NSDate EndDate { get; set; } + NSDate EndDate { get; set; } [NullAllowed] [Export ("organizer")] - EKParticipant Organizer { get; } + EKParticipant Organizer { get; } [Export ("isDetached")] - bool IsDetached { get; } + bool IsDetached { get; } [Export ("eventIdentifier")] string EventIdentifier { get; } @@ -318,21 +333,24 @@ namespace EventKit { [Export ("refresh")] bool Refresh (); - [Export ("availability")] + [Export ("availability")] EKEventAvailability Availability { get; set; } [Export ("status")] EKEventStatus Status { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed, Export ("structuredLocation", ArgumentSemantic.Copy)] EKStructuredLocation StructuredLocation { get; set; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("occurrenceDate")] NSDate OccurrenceDate { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Replaced by 'BirthdayContactIdentifier'.")] [NullAllowed] [Export ("birthdayPersonUniqueID")] @@ -341,9 +359,10 @@ namespace EventKit { [NoMac] [Deprecated (PlatformName.iOS, 9, 0, message: "Replaced by 'BirthdayContactIdentifier'.")] [Export ("birthdayPersonID")] - nint BirthdayPersonID { get; } + nint BirthdayPersonID { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("birthdayContactIdentifier")] string BirthdayContactIdentifier { get; } } @@ -354,33 +373,35 @@ namespace EventKit { #endif interface EKParticipant : NSCopying { [Export ("URL")] - NSUrl Url { get; } + NSUrl Url { get; } [NullAllowed] [Export ("name")] - string Name { get; } + string Name { get; } [Export ("participantStatus")] - EKParticipantStatus ParticipantStatus { get; } + EKParticipantStatus ParticipantStatus { get; } [Export ("participantRole")] - EKParticipantRole ParticipantRole { get; } + EKParticipantRole ParticipantRole { get; } [Export ("participantType")] - EKParticipantType ParticipantType { get; } + EKParticipantType ParticipantType { get; } - [NoMac][NoWatch] + [NoMac] + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Replaced by 'ContactPredicate'.")] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [return: NullAllowed] [Export ("ABRecordWithAddressBook:")] ABRecord GetRecord (ABAddressBook addressBook); - [Mac (10,9)] + [Mac (10, 9)] [Export ("isCurrentUser")] bool IsCurrentUser { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("contactPredicate")] NSPredicate ContactPredicate { get; } } @@ -389,10 +410,10 @@ namespace EventKit { interface EKRecurrenceEnd : NSCopying, NSSecureCoding { [NullAllowed] [Export ("endDate")] - NSDate EndDate { get; } + NSDate EndDate { get; } [Export ("occurrenceCount")] - nint OccurrenceCount { get; } + nint OccurrenceCount { get; } [Static] [Export ("recurrenceEndWithEndDate:")] @@ -409,11 +430,11 @@ namespace EventKit { #if NET EKWeekday DayOfTheWeek { get; } #else - nint DayOfTheWeek { get; } + nint DayOfTheWeek { get; } #endif [Export ("weekNumber")] - nint WeekNumber { get; } + nint WeekNumber { get; } [Static] [Export ("dayOfWeek:")] @@ -444,17 +465,17 @@ namespace EventKit { [BaseType (typeof (EKObject))] interface EKRecurrenceRule : NSCopying { [Export ("calendarIdentifier")] - string CalendarIdentifier { get; } + string CalendarIdentifier { get; } [NullAllowed] // by default this property is null [Export ("recurrenceEnd", ArgumentSemantic.Copy)] - EKRecurrenceEnd RecurrenceEnd { get; set; } + EKRecurrenceEnd RecurrenceEnd { get; set; } [Export ("frequency")] - EKRecurrenceFrequency Frequency { get; } + EKRecurrenceFrequency Frequency { get; } [Export ("interval")] - nint Interval { get; } + nint Interval { get; } [Export ("firstDayOfTheWeek")] #if NET @@ -466,30 +487,30 @@ namespace EventKit { [NullAllowed] [Export ("daysOfTheWeek")] - EKRecurrenceDayOfWeek [] DaysOfTheWeek { get; } + EKRecurrenceDayOfWeek [] DaysOfTheWeek { get; } [NullAllowed] [Export ("daysOfTheMonth")] - NSNumber [] DaysOfTheMonth { get; } + NSNumber [] DaysOfTheMonth { get; } [NullAllowed] [Export ("daysOfTheYear")] - NSNumber [] DaysOfTheYear { get; } + NSNumber [] DaysOfTheYear { get; } [NullAllowed] [Export ("weeksOfTheYear")] - NSNumber [] WeeksOfTheYear { get; } + NSNumber [] WeeksOfTheYear { get; } [NullAllowed] [Export ("monthsOfTheYear")] - NSNumber [] MonthsOfTheYear { get; } + NSNumber [] MonthsOfTheYear { get; } [NullAllowed] [Export ("setPositions")] #if NET NSNumber [] SetPositions { get; } #else - NSObject [] SetPositions { get; } + NSObject [] SetPositions { get; } #endif [Export ("initRecurrenceWithFrequency:interval:end:")] @@ -497,32 +518,32 @@ namespace EventKit { [Export ("initRecurrenceWithFrequency:interval:daysOfTheWeek:daysOfTheMonth:monthsOfTheYear:weeksOfTheYear:daysOfTheYear:setPositions:end:")] NativeHandle Constructor (EKRecurrenceFrequency type, nint interval, [NullAllowed] EKRecurrenceDayOfWeek [] days, [NullAllowed] NSNumber [] monthDays, [NullAllowed] NSNumber [] months, - [NullAllowed] NSNumber [] weeksOfTheYear, [NullAllowed] NSNumber [] daysOfTheYear, [NullAllowed] NSNumber [] setPositions, [NullAllowed] EKRecurrenceEnd end); + [NullAllowed] NSNumber [] weeksOfTheYear, [NullAllowed] NSNumber [] daysOfTheYear, [NullAllowed] NSNumber [] setPositions, [NullAllowed] EKRecurrenceEnd end); } [BaseType (typeof (NSObject))] interface EKEventStore { - [Mac (10,11), iOS (16,0), MacCatalyst (16,0), Watch (9,0), NoTV] + [Mac (10, 11), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), NoTV] [Export ("initWithSources:")] - NativeHandle Constructor (EKSource[] sources); + NativeHandle Constructor (EKSource [] sources); [Export ("eventStoreIdentifier")] - string EventStoreIdentifier { get; } + string EventStoreIdentifier { get; } [NoMac] [Export ("calendars")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'GetCalendars' instead.")] - EKCalendar [] Calendars { get; } + EKCalendar [] Calendars { get; } [Export ("defaultCalendarForNewEvents"), NullAllowed] - EKCalendar DefaultCalendarForNewEvents { get; } - - [NoWatch, Mac (10,15)] + EKCalendar DefaultCalendarForNewEvents { get; } + + [NoWatch, Mac (10, 15)] [Export ("saveEvent:span:error:")] bool SaveEvent (EKEvent theEvent, EKSpan span, out NSError error); - [NoWatch, Mac (10,15)] + [NoWatch, Mac (10, 15)] [Export ("removeEvent:span:error:")] bool RemoveEvents (EKEvent theEvent, EKSpan span, out NSError error); @@ -586,10 +607,10 @@ namespace EventKit { EKCalendarItem GetCalendarItem (string identifier); [Export ("calendarItemsWithExternalIdentifier:")] - EKCalendarItem[] GetCalendarItems(string externalIdentifier); + EKCalendarItem [] GetCalendarItems (string externalIdentifier); [Export ("calendarsForEntityType:")] - EKCalendar[] GetCalendars (EKEntityType entityType); + EKCalendar [] GetCalendars (EKEntityType entityType); [NullAllowed] [Export ("defaultCalendarForNewReminders")] @@ -597,19 +618,19 @@ namespace EventKit { [Export ("fetchRemindersMatchingPredicate:completion:")] [Async] - IntPtr FetchReminders (NSPredicate predicate, Action completion); + IntPtr FetchReminders (NSPredicate predicate, Action completion); [Export ("cancelFetchRequest:")] void CancelFetchRequest (IntPtr fetchIdentifier); [Export ("predicateForIncompleteRemindersWithDueDateStarting:ending:calendars:")] - NSPredicate PredicateForIncompleteReminders ([NullAllowed] NSDate startDate, [NullAllowed] NSDate endDate, [NullAllowed] EKCalendar[] calendars); + NSPredicate PredicateForIncompleteReminders ([NullAllowed] NSDate startDate, [NullAllowed] NSDate endDate, [NullAllowed] EKCalendar [] calendars); [Export ("predicateForCompletedRemindersWithCompletionDateStarting:ending:calendars:")] - NSPredicate PredicateForCompleteReminders ([NullAllowed] NSDate startDate, [NullAllowed] NSDate endDate, [NullAllowed] EKCalendar[] calendars); + NSPredicate PredicateForCompleteReminders ([NullAllowed] NSDate startDate, [NullAllowed] NSDate endDate, [NullAllowed] EKCalendar [] calendars); [Export ("predicateForRemindersInCalendars:")] - NSPredicate PredicateForReminders ([NullAllowed] EKCalendar[] calendars); + NSPredicate PredicateForReminders ([NullAllowed] EKCalendar [] calendars); [NoWatch] [Export ("removeReminder:commit:error:")] @@ -619,21 +640,24 @@ namespace EventKit { [Export ("saveReminder:commit:error:")] bool SaveReminder (EKReminder reminder, bool commit, out NSError error); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 9)] [Export ("initWithAccessToEntityTypes:")] NativeHandle Constructor (EKEntityMask accessToEntityTypes); - [Mac (10,11), Watch (5,0), iOS (12,0)] + [Mac (10, 11), Watch (5, 0), iOS (12, 0)] [Export ("delegateSources")] - EKSource[] DelegateSources { get; } + EKSource [] DelegateSources { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("requestAccessToEntityType:completion:")] [Async] void RequestAccess (EKEntityType entityType, Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Static] [Export ("authorizationStatusForEntityType:")] EKAuthorizationStatus GetAuthorizationStatus (EKEntityType entityType); @@ -660,29 +684,28 @@ namespace EventKit { NSDate CompletionDate { get; set; } [Export ("priority")] - [Mac (10,9)] + [Mac (10, 9)] nint Priority { get; set; } // note: changed to NUInteger in Xcode 7 SDK [Export ("reminderWithEventStore:")] [Static] - EKReminder Create (EKEventStore eventStore); + EKReminder Create (EKEventStore eventStore); } - [Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), Watch (8, 0), MacCatalyst (15, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface EKVirtualConferenceDescriptor - { + interface EKVirtualConferenceDescriptor { [Export ("initWithTitle:URLDescriptors:conferenceDetails:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string title, EKVirtualConferenceUrlDescriptor[] urlDescriptors, [NullAllowed] string conferenceDetails); + NativeHandle Constructor ([NullAllowed] string title, EKVirtualConferenceUrlDescriptor [] urlDescriptors, [NullAllowed] string conferenceDetails); [NullAllowed, Export ("title")] string Title { get; } [Export ("URLDescriptors", ArgumentSemantic.Copy)] - EKVirtualConferenceUrlDescriptor[] UrlDescriptors { get; } + EKVirtualConferenceUrlDescriptor [] UrlDescriptors { get; } [NullAllowed, Export ("conferenceDetails")] string ConferenceDetails { get; } @@ -691,10 +714,9 @@ namespace EventKit { delegate void VirtualConferenceRoomTypeHandler (NSArray virtualConferenceRoomTypeDescriptor, NSError error); delegate void VirtualConferenceHandler (EKVirtualConferenceDescriptor virtualConferenceDescriptor, NSError error); - [Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), Watch (8, 0), MacCatalyst (15, 0), NoTV] [BaseType (typeof (NSObject))] - interface EKVirtualConferenceProvider : NSExtensionRequestHandling - { + interface EKVirtualConferenceProvider : NSExtensionRequestHandling { [Async] [Export ("fetchAvailableRoomTypesWithCompletionHandler:")] void FetchAvailableRoomTypes (VirtualConferenceRoomTypeHandler handler); @@ -704,11 +726,10 @@ namespace EventKit { void FetchVirtualConference (string identifier, VirtualConferenceHandler handler); } - [Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), Watch (8, 0), MacCatalyst (15, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface EKVirtualConferenceRoomTypeDescriptor - { + interface EKVirtualConferenceRoomTypeDescriptor { [Export ("initWithTitle:identifier:")] [DesignatedInitializer] NativeHandle Constructor (string title, string identifier); @@ -720,11 +741,10 @@ namespace EventKit { string Identifier { get; } } - [Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), Watch (8, 0), MacCatalyst (15, 0), NoTV] [BaseType (typeof (NSObject), Name = "EKVirtualConferenceURLDescriptor")] [DisableDefaultCtor] - interface EKVirtualConferenceUrlDescriptor - { + interface EKVirtualConferenceUrlDescriptor { [Export ("initWithTitle:URL:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] string title, NSUrl url); diff --git a/src/eventkitui.cs b/src/eventkitui.cs index 56bf77c3f4..f40bfe3d5c 100644 --- a/src/eventkitui.cs +++ b/src/eventkitui.cs @@ -20,7 +20,7 @@ using NativeHandle = System.IntPtr; #endif namespace EventKitUI { - [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate"}, Events=new Type [] {typeof (EKEventViewDelegate)})] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (EKEventViewDelegate) })] interface EKEventViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -28,20 +28,20 @@ namespace EventKitUI { [NullAllowed] // by default this property is null [Export ("event")] - EKEvent Event { get; set; } + EKEvent Event { get; set; } [Export ("allowsEditing")] - bool AllowsEditing { get; set; } + bool AllowsEditing { get; set; } [Export ("allowsCalendarPreview")] - bool AllowsCalendarPreview { get; set; } + bool AllowsCalendarPreview { get; set; } [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } - + [Wrap ("WeakDelegate")] [Protocolize] - EKEventViewDelegate Delegate { get; set; } + EKEventViewDelegate Delegate { get; set; } } [BaseType (typeof (NSObject))] @@ -53,7 +53,7 @@ namespace EventKitUI { void Completed (EKEventViewController controller, EKEventViewAction action); } - [BaseType (typeof (UINavigationController), Delegates=new string [] { "WeakEditViewDelegate" }, Events=new Type [] {typeof(EKEventEditViewDelegate)})] + [BaseType (typeof (UINavigationController), Delegates = new string [] { "WeakEditViewDelegate" }, Events = new Type [] { typeof (EKEventEditViewDelegate) })] interface EKEventEditViewController : UIAppearance { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -65,17 +65,17 @@ namespace EventKitUI { [Export ("editViewDelegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakEditViewDelegate { get; set; } - + [Wrap ("WeakEditViewDelegate")] [Protocolize] - EKEventEditViewDelegate EditViewDelegate { get; set; } + EKEventEditViewDelegate EditViewDelegate { get; set; } [Export ("eventStore")] - EKEventStore EventStore { get; set; } + EKEventStore EventStore { get; set; } [NullAllowed] [Export ("event")] - EKEvent Event { get; set; } + EKEvent Event { get; set; } [Export ("cancelEditing")] void CancelEditing (); @@ -95,7 +95,7 @@ namespace EventKitUI { [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, - Events=new Type [] {typeof (EKCalendarChooserDelegate)})] + Events = new Type [] { typeof (EKCalendarChooserDelegate) })] interface EKCalendarChooser { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -108,28 +108,30 @@ namespace EventKitUI { NativeHandle Constructor (EKCalendarChooserSelectionStyle selectionStyle, EKCalendarChooserDisplayStyle displayStyle, EKEntityType entityType, EKEventStore eventStore); [Export ("selectionStyle")] - EKCalendarChooserSelectionStyle SelectionStyle { get; + EKCalendarChooserSelectionStyle SelectionStyle { + get; #if !XAMCORE_3_0 - [NotImplemented] set; + [NotImplemented] + set; #endif } [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] - NSObject WeakDelegate { get; set;} - + NSObject WeakDelegate { get; set; } + [Wrap ("WeakDelegate")] [Protocolize] - EKCalendarChooserDelegate Delegate { get; set; } + EKCalendarChooserDelegate Delegate { get; set; } [Export ("showsDoneButton")] - bool ShowsDoneButton { get; set; } + bool ShowsDoneButton { get; set; } [Export ("showsCancelButton")] - bool ShowsCancelButton { get; set; } + bool ShowsCancelButton { get; set; } [NullAllowed] // by default this property is null [Export ("selectedCalendars", ArgumentSemantic.Copy)] - NSSet SelectedCalendars { get; set; } + NSSet SelectedCalendars { get; set; } } [BaseType (typeof (NSObject))] @@ -145,5 +147,5 @@ namespace EventKitUI { [Export ("calendarChooserDidCancel:")] void Cancelled (EKCalendarChooser calendarChooser); } - + } diff --git a/src/executionpolicy.cs b/src/executionpolicy.cs index 8c9e389521..7fbd44b914 100644 --- a/src/executionpolicy.cs +++ b/src/executionpolicy.cs @@ -8,7 +8,7 @@ using ObjCRuntime; namespace ExecutionPolicy { - [Mac (10,15), MacCatalyst (16,0)] + [Mac (10, 15), MacCatalyst (16, 0)] [Native] public enum EPDeveloperToolStatus : long { NotDetermined = 0, @@ -17,7 +17,7 @@ namespace ExecutionPolicy { Authorized, } - [Mac (10,15), MacCatalyst (16,0)] + [Mac (10, 15), MacCatalyst (16, 0)] [Native] [ErrorDomain ("EPErrorDomain")] public enum EPError : long { @@ -25,7 +25,7 @@ namespace ExecutionPolicy { NotADeveloperTool, } - [Mac (10,15), MacCatalyst (16,0)] + [Mac (10, 15), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] interface EPDeveloperTool { @@ -36,7 +36,7 @@ namespace ExecutionPolicy { void RequestDeveloperToolAccess (Action handler); } - [Mac (10,15), MacCatalyst (16,0)] + [Mac (10, 15), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] interface EPExecutionPolicy { diff --git a/src/extensionkit.cs b/src/extensionkit.cs index 53f8b9cc61..d5d70cc2e8 100644 --- a/src/extensionkit.cs +++ b/src/extensionkit.cs @@ -20,7 +20,7 @@ using NativeHandle = System.IntPtr; #endif namespace ExtensionKit { - [Mac (13,0), NoiOS, NoMacCatalyst, NoWatch, NoTV] + [Mac (13, 0), NoiOS, NoMacCatalyst, NoWatch, NoTV] [BaseType (typeof (UIViewController))] interface EXAppExtensionBrowserViewController { [DesignatedInitializer] @@ -30,7 +30,7 @@ namespace ExtensionKit { interface IEXHostViewControllerDelegate { } - [Mac (13,0), NoiOS, NoMacCatalyst, NoWatch, NoTV] + [Mac (13, 0), NoiOS, NoMacCatalyst, NoWatch, NoTV] #if NET [Protocol, Model] #else @@ -49,10 +49,9 @@ namespace ExtensionKit { } // @interface EXHostViewController : NSViewController - [Mac (13,0), NoiOS, NoMacCatalyst, NoWatch, NoTV] - [BaseType (typeof(UIViewController))] - interface EXHostViewController - { + [Mac (13, 0), NoiOS, NoMacCatalyst, NoWatch, NoTV] + [BaseType (typeof (UIViewController))] + interface EXHostViewController { [DesignatedInitializer] [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); diff --git a/src/externalaccessory.cs b/src/externalaccessory.cs index 14323186db..aad7d8763d 100644 --- a/src/externalaccessory.cs +++ b/src/externalaccessory.cs @@ -18,8 +18,9 @@ using NativeHandle = System.IntPtr; namespace ExternalAccessory { - [Mac (10, 13)][TV (10,0)] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(EAAccessoryDelegate)})] + [Mac (10, 13)] + [TV (10, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (EAAccessoryDelegate) })] // Objective-C exception thrown. Name: EAAccessoryInitException Reason: -init not supported. EAAccessoryManager is responsible for creating all objects. [DisableDefaultCtor] interface EAAccessory { @@ -48,24 +49,27 @@ namespace ExternalAccessory { string HardwareRevision { get; } [Export ("protocolStrings")] - string[] ProtocolStrings { get; } + string [] ProtocolStrings { get; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][NullAllowed] + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] EAAccessoryDelegate Delegate { get; set; } - [iOS (9,0)] - [Deprecated (PlatformName.iOS, 13,0)] - [Deprecated (PlatformName.TvOS, 13,0)] - [Deprecated (PlatformName.MacOSX, 10,14)] + [iOS (9, 0)] + [Deprecated (PlatformName.iOS, 13, 0)] + [Deprecated (PlatformName.TvOS, 13, 0)] + [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("dockType")] string DockType { get; } } - [Mac (10, 13)][TV (10,0)] + [Mac (10, 13)] + [TV (10, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -74,7 +78,8 @@ namespace ExternalAccessory { void Disconnected (EAAccessory accessory); } - [Mac (10, 13)][TV (10,0)] + [Mac (10, 13)] + [TV (10, 0)] interface EAAccessoryEventArgs { [Export ("EAAccessoryKey")] EAAccessory Accessory { get; } @@ -82,14 +87,16 @@ namespace ExternalAccessory { [Export ("EAAccessorySelectedKey")] EAAccessory Selected { get; } } - - [Mac (10, 13)][TV (10,0)] + + [Mac (10, 13)] + [TV (10, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: EAAccessoryManagerInitException Reason: -init is not supported. Use +sharedAccessoryManager. [DisableDefaultCtor] interface EAAccessoryManager { - [Static][Export ("sharedAccessoryManager")] - EAAccessoryManager SharedAccessoryManager { get ; } + [Static] + [Export ("sharedAccessoryManager")] + EAAccessoryManager SharedAccessoryManager { get; } [Export ("registerForLocalNotifications")] void RegisterForLocalNotifications (); @@ -98,7 +105,7 @@ namespace ExternalAccessory { void UnregisterForLocalNotifications (); [Export ("connectedAccessories")] - EAAccessory [] ConnectedAccessories { get ; } + EAAccessory [] ConnectedAccessories { get; } [Field ("EAAccessoryDidConnectNotification")] [Notification (typeof (EAAccessoryEventArgs))] @@ -122,7 +129,8 @@ namespace ExternalAccessory { void ShowBluetoothAccessoryPicker ([NullAllowed] NSPredicate predicate, [NullAllowed] Action completion); } - [Mac (10, 13)][TV (10,0)] + [Mac (10, 13)] + [TV (10, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: EASessionInitException Reason: -init not supported. use -initWithAccessory:forProtocol. [DisableDefaultCtor] @@ -148,8 +156,8 @@ namespace ExternalAccessory { } [NoMac] - [TV (10,0)] - [iOS (8,0)] + [TV (10, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface EAWiFiUnconfiguredAccessory { [Export ("name")] @@ -168,21 +176,21 @@ namespace ExternalAccessory { string MacAddress { get; } [Export ("properties")] - EAWiFiUnconfiguredAccessoryProperties Properties { get; } + EAWiFiUnconfiguredAccessoryProperties Properties { get; } } - interface IEAWiFiUnconfiguredAccessoryBrowserDelegate {} - + interface IEAWiFiUnconfiguredAccessoryBrowserDelegate { } + // This class is exposed for tvOS in the headers, but there's no available initializer (so it can't be constructed) // The API is also clearly unusable (you can list the unconfigured accessories, but you can't search for them first...) [NoTV] // [TV (10,0)] [NoMac] - [iOS (8,0)] + [iOS (8, 0)] #if TVOS [BaseType (typeof (NSObject))] #else - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(EAWiFiUnconfiguredAccessoryBrowserDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (EAWiFiUnconfiguredAccessoryBrowserDelegate) })] #endif #if NET // There's a designated initializer, which leads to think that the default ctor @@ -191,36 +199,38 @@ namespace ExternalAccessory { #endif interface EAWiFiUnconfiguredAccessoryBrowser { - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV] [Export ("initWithDelegate:queue:")] [DesignatedInitializer] // according to header comment (but not in attributes) NativeHandle Constructor ([NullAllowed] IEAWiFiUnconfiguredAccessoryBrowserDelegate accessoryBrowserDelegate, [NullAllowed] DispatchQueue queue); [NoTV] // no member is available - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [NoTV] // no member is available - [Wrap ("WeakDelegate")][NullAllowed] + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] EAWiFiUnconfiguredAccessoryBrowserDelegate Delegate { get; set; } [Export ("unconfiguredAccessories", ArgumentSemantic.Copy)] NSSet UnconfiguredAccessories { get; } - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV] [Export ("startSearchingForUnconfiguredAccessoriesMatchingPredicate:")] void StartSearchingForUnconfiguredAccessories ([NullAllowed] NSPredicate predicate); - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV] [Export ("stopSearchingForUnconfiguredAccessories")] void StopSearchingForUnconfiguredAccessories (); #if !MONOMAC - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV] [Export ("configureAccessory:withConfigurationUIOnViewController:")] void ConfigureAccessory (EAWiFiUnconfiguredAccessory accessory, UIViewController viewController); @@ -229,14 +239,14 @@ namespace ExternalAccessory { [NoMac] [NoTV] // no member is available - [iOS (8,0)] + [iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface EAWiFiUnconfiguredAccessoryBrowserDelegate { [Abstract] [Export ("accessoryBrowser:didUpdateState:"), EventArgs ("EAWiFiUnconfiguredAccessory")] - void DidUpdateState(EAWiFiUnconfiguredAccessoryBrowser browser, EAWiFiUnconfiguredAccessoryBrowserState state); + void DidUpdateState (EAWiFiUnconfiguredAccessoryBrowser browser, EAWiFiUnconfiguredAccessoryBrowserState state); [Abstract] [Export ("accessoryBrowser:didFindUnconfiguredAccessories:"), EventArgs ("EAWiFiUnconfiguredAccessoryBrowser")] diff --git a/src/fileprovider.cs b/src/fileprovider.cs index ab535bf41c..df814b4c50 100644 --- a/src/fileprovider.cs +++ b/src/fileprovider.cs @@ -33,9 +33,10 @@ namespace FileProvider { [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [NoMac] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [ThreadSafe] [BaseType (typeof (NSObject))] partial interface NSFileProviderExtension { @@ -78,87 +79,87 @@ namespace FileProvider { [Export ("stopProvidingItemAtURL:")] void StopProvidingItemAtUrl (NSUrl url); - [iOS (11,0)] + [iOS (11, 0)] [Export ("itemForIdentifier:error:")] [return: NullAllowed] INSFileProviderItem GetItem (NSString identifier, out NSError error); // Inlining NSFileProviderExtension (NSFileProviderActions) so we get asyncs - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("importDocumentAtURL:toParentItemIdentifier:completionHandler:")] void ImportDocument (NSUrl fileUrl, string parentItemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("createDirectoryWithName:inParentItemIdentifier:completionHandler:")] void CreateDirectory (string directoryName, string parentItemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("renameItemWithIdentifier:toName:completionHandler:")] void RenameItem (string itemIdentifier, string itemName, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("reparentItemWithIdentifier:toParentItemWithIdentifier:newName:completionHandler:")] void ReparentItem (string itemIdentifier, string parentItemIdentifier, [NullAllowed] string newName, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("trashItemWithIdentifier:completionHandler:")] void TrashItem (string itemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("untrashItemWithIdentifier:toParentItemIdentifier:completionHandler:")] void UntrashItem (string itemIdentifier, [NullAllowed] string parentItemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("deleteItemWithIdentifier:completionHandler:")] void DeleteItem (string itemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("setLastUsedDate:forItemIdentifier:completionHandler:")] void SetLastUsedDate ([NullAllowed] NSDate lastUsedDate, string itemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("setTagData:forItemIdentifier:completionHandler:")] void SetTagData ([NullAllowed] NSData tagData, string itemIdentifier, Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("setFavoriteRank:forItemIdentifier:completionHandler:")] void SetFavoriteRank ([NullAllowed] NSNumber favoriteRank, string itemIdentifier, Action completionHandler); -#region NSFileProviderEnumeration (NSFileProviderExtension) - [iOS (11,0)] + #region NSFileProviderEnumeration (NSFileProviderExtension) + [iOS (11, 0)] [Export ("enumeratorForContainerItemIdentifier:error:")] [return: NullAllowed] INSFileProviderEnumerator GetEnumerator (string containerItemIdentifier, out NSError error); -#endregion + #endregion // From NSFileProviderExtension (NSFileProviderThumbnailing) - [iOS (11,0)] + [iOS (11, 0)] [Export ("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:")] [Async] NSProgress FetchThumbnails (NSString [] itemIdentifiers, CGSize size, NSFileProviderExtensionFetchThumbnailsHandler perThumbnailCompletionHandler, Action completionHandler); // From NSFileProviderExtension (NSFileProviderService) - [iOS (11,0)] + [iOS (11, 0)] [Export ("supportedServiceSourcesForItemIdentifier:error:")] [return: NullAllowed] INSFileProviderServiceSource [] GetSupportedServiceSources (string itemIdentifier, out NSError error); // From NSFileProviderExtension (NSFileProviderDomain) - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("domain")] NSFileProviderDomain Domain { get; } } @@ -166,9 +167,10 @@ namespace FileProvider { namespace FileProvider { - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [ErrorDomain ("NSFileProviderErrorDomain")] [Native ("NSFileProviderErrorCode")] enum NSFileProviderError : long { @@ -194,7 +196,7 @@ namespace FileProvider { DomainDisabled = -2011, } - [iOS (16,0), Mac (12,0), NoMacCatalyst] + [iOS (16, 0), Mac (12, 0), NoMacCatalyst] [Native] public enum NSFileProviderDomainRemovalMode : long { RemoveAll = 0, @@ -204,9 +206,10 @@ namespace FileProvider { PreserveDownloadedUserData = 2, } - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [Static] interface NSFileProviderErrorKeys { @@ -218,14 +221,15 @@ namespace FileProvider { [Field ("NSFileProviderErrorNonExistentItemIdentifierKey")] NSString NonExistentItemIdentifierKey { get; } - [iOS (15,0)] + [iOS (15, 0)] [Field ("NSFileProviderErrorItemKey")] NSString ItemKey { get; } } - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [Static] interface NSFileProviderFavoriteRank { @@ -233,8 +237,8 @@ namespace FileProvider { ulong Unranked { get; } } - [iOS (11,0)] - [Mac (11,0)] + [iOS (11, 0)] + [Mac (11, 0)] [NoMacCatalyst] [Static] interface NSFileProviderItemIdentifier { @@ -245,13 +249,13 @@ namespace FileProvider { [Field ("NSFileProviderWorkingSetContainerItemIdentifier")] NSString WorkingSetContainer { get; } - [iOS (16,0)] + [iOS (16, 0)] [Field ("NSFileProviderTrashContainerItemIdentifier")] NSString TrashContainer { get; } } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [Native] [Flags] enum NSFileProviderItemCapabilities : ulong { @@ -261,38 +265,42 @@ namespace FileProvider { Renaming = 1 << 3, Trashing = 1 << 4, Deleting = 1 << 5, - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] Evicting = 1 << 6, - [NoiOS][NoTV][NoWatch][Mac (11,3)] + [NoiOS] + [NoTV] + [NoWatch] + [Mac (11, 3)] ExcludingFromSync = 1 << 7, AddingSubItems = Writing, ContentEnumerating = Reading, #if !NET [Obsolete ("This enum value is not constant across OS and versions.")] - #if MONOMAC +#if MONOMAC All = Reading | Writing | Reparenting | Renaming | Trashing | Deleting | Evicting, - #else +#else All = Reading | Writing | Reparenting | Renaming | Trashing | Deleting, - #endif +#endif #endif } - [Flags, NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,3)] + [Flags, NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 3)] [Native] public enum NSFileProviderMaterializationFlags : ulong { KnownSparseRanges = 1uL << 0, } - [Flags, NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,3)] + [Flags, NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 3)] [Native] public enum NSFileProviderFetchContentsOptions : ulong { StrictVersioning = 1uL << 0, } [Native] - [iOS (16,0), Mac (13,0), NoWatch, NoTV, NoMacCatalyst] - public enum NSFileProviderContentPolicy : long - { + [iOS (16, 0), Mac (13, 0), NoWatch, NoTV, NoMacCatalyst] + public enum NSFileProviderContentPolicy : long { Inherited, [NoiOS, NoMacCatalyst] DownloadLazily, @@ -301,8 +309,8 @@ namespace FileProvider { DownloadEagerlyAndKeepDownloaded, } - [iOS (11,0)] - [Mac (11,0)] + [iOS (11, 0)] + [Mac (11, 0)] [NoMacCatalyst] [Static] interface NSFileProviderPage { @@ -324,9 +332,10 @@ namespace FileProvider { NSData InitialPageSortedByDate { get; } } - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface NSFileProviderDomain { @@ -335,7 +344,7 @@ namespace FileProvider { [Export ("initWithIdentifier:displayName:pathRelativeToDocumentStorage:")] NativeHandle Constructor (string identifier, string displayName, string pathRelativeToDocumentStorage); - [iOS (16,0)] + [iOS (16, 0)] [Export ("initWithIdentifier:displayName:")] NativeHandle Constructor (string identifier, string displayName); @@ -353,7 +362,7 @@ namespace FileProvider { [Export ("disconnected")] bool Disconnected { [Bind ("isDisconnected")] get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("userEnabled")] bool UserEnabled { get; } @@ -362,16 +371,16 @@ namespace FileProvider { bool Hidden { [Bind ("isHidden")] get; set; } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Export ("testingModes", ArgumentSemantic.Assign)] NSFileProviderDomainTestingModes TestingModes { get; set; } - [iOS (16,0)] + [iOS (16, 0)] [Notification] [Field ("NSFileProviderDomainDidChange")] NSString DidChange { get; } - [NoWatch, NoTV, iOS (16,0), Mac (12, 0), NoMacCatalyst] + [NoWatch, NoTV, iOS (16, 0), Mac (12, 0), NoMacCatalyst] [NullAllowed, Export ("backingStoreIdentity")] NSData BackingStoreIdentity { get; } @@ -386,8 +395,8 @@ namespace FileProvider { interface INSFileProviderEnumerationObserver { } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [NoMacCatalyst] [Protocol] interface NSFileProviderEnumerationObserver { @@ -404,16 +413,16 @@ namespace FileProvider { [Export ("finishEnumeratingWithError:")] void FinishEnumerating (NSError error); - [Mac (11,0)] - [iOS (16,0)] + [Mac (11, 0)] + [iOS (16, 0)] [Export ("suggestedPageSize")] nint GetSuggestedPageSize (); } interface INSFileProviderChangeObserver { } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [NoMacCatalyst] [Protocol] interface NSFileProviderChangeObserver { @@ -434,16 +443,16 @@ namespace FileProvider { [Export ("finishEnumeratingWithError:")] void FinishEnumerating (NSError error); - [Mac (11,0)] - [iOS (16,0)] + [Mac (11, 0)] + [iOS (16, 0)] [Export ("suggestedBatchSize")] nint GetSuggestedBatchSize (); } interface INSFileProviderEnumerator { } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [NoMacCatalyst] [Protocol] interface NSFileProviderEnumerator { @@ -465,8 +474,8 @@ namespace FileProvider { interface INSFileProviderItem { } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [NoMacCatalyst] [Protocol] interface NSFileProviderItem { @@ -487,13 +496,13 @@ namespace FileProvider { // became optional when deprecated [Abstract] #endif - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'GetContentType' instead.")] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'GetContentType' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'GetContentType' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'GetContentType' instead.")] [Export ("typeIdentifier")] string TypeIdentifier { get; } - [iOS (14,0)] - [Mac (11,0)] + [iOS (14, 0)] + [Mac (11, 0)] [Export ("contentType", ArgumentSemantic.Copy)] UTType GetContentType (); @@ -583,23 +592,23 @@ namespace FileProvider { [Export ("userInfo")] NSDictionary GetUserInfo (); - [iOS (16,0), NoMacCatalyst] + [iOS (16, 0), NoMacCatalyst] [Export ("fileSystemFlags")] NSFileProviderFileSystemFlags FileSystemFlags { get; } - [iOS (16,0)] + [iOS (16, 0)] [Export ("extendedAttributes", ArgumentSemantic.Strong)] NSDictionary ExtendedAttributes { get; } - [iOS (16,0)] + [iOS (16, 0)] [NullAllowed, Export ("itemVersion", ArgumentSemantic.Strong)] NSFileProviderItemVersion ItemVersion { get; } - [iOS (16,0)] + [iOS (16, 0)] [NullAllowed, Export ("symlinkTargetPath")] string SymlinkTargetPath { get; } - [iOS (16,0), Mac (12, 0), NoMacCatalyst] + [iOS (16, 0), Mac (12, 0), NoMacCatalyst] [Export ("typeAndCreator")] NSFileProviderTypeAndCreator TypeAndCreator { get; } @@ -608,9 +617,10 @@ namespace FileProvider { NSFileProviderContentPolicy ContentPolicy { get; } } - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSFileProviderManager { @@ -671,71 +681,71 @@ namespace FileProvider { [return: NullAllowed] NSFileProviderManager FromDomain (NSFileProviderDomain domain); - [iOS (16,0)] + [iOS (16, 0)] [Static] [Async (ResultTypeName = "NSFileProviderGetIdentifierResult")] [Export ("getIdentifierForUserVisibleFileAtURL:completionHandler:")] void GetIdentifierForUserVisibleFile (NSUrl url, NSFileProviderGetIdentifierHandler completionHandler); - [iOS (16,0)] + [iOS (16, 0)] [Async] [Export ("getUserVisibleURLForItemIdentifier:completionHandler:")] void GetUserVisibleUrl (NSString itemIdentifier, Action completionHandler); - [iOS (16,0)] + [iOS (16, 0)] [Export ("temporaryDirectoryURLWithError:")] [return: NullAllowed] NSUrl GetTemporaryDirectoryUrl ([NullAllowed] out NSError error); - [iOS (16,0)] + [iOS (16, 0)] [Async] [Export ("signalErrorResolved:completionHandler:")] void SignalErrorResolved (NSError error, Action completionHandler); [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Export ("globalProgressForKind:")] NSProgress GetGlobalProgress (NSString kind); // NSString intended. [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Field ("NSFileProviderMaterializedSetDidChange")] [Notification] NSString MaterializedSetDidChange { get; } [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Field ("NSFileProviderPendingSetDidChange")] [Notification] NSString PendingSetDidChange { get; } -#region Import (NSFileProviderManager) - [iOS (16,0)] + #region Import (NSFileProviderManager) + [iOS (16, 0)] [Static] [Async] [Export ("importDomain:fromDirectoryAtURL:completionHandler:")] void Import (NSFileProviderDomain domain, NSUrl url, Action completionHandler); - [iOS (16,0)] + [iOS (16, 0)] [Async] [Export ("reimportItemsBelowItemWithIdentifier:completionHandler:")] void ReimportItemsBelowItem (NSString itemIdentifier, Action completionHandler); -#endregion + #endregion -#region MaterializedSet (NSFileProviderManager) - [iOS (16,0)] + #region MaterializedSet (NSFileProviderManager) + [iOS (16, 0)] [Export ("enumeratorForMaterializedItems")] INSFileProviderEnumerator GetMaterializedItemsEnumerator (); -#endregion + #endregion -#region Eviction (NSFileProviderManager) - [iOS (16,0)] + #region Eviction (NSFileProviderManager) + [iOS (16, 0)] [Export ("evictItemWithIdentifier:completionHandler:")] [Async] void EvictItem (NSString itemIdentifier, Action completionHandler); -#endregion + #endregion -#region Disconnection (NSFileProviderManager) + #region Disconnection (NSFileProviderManager) [NoiOS] [Async] [Export ("disconnectWithReason:options:completionHandler:")] @@ -745,59 +755,59 @@ namespace FileProvider { [Async] [Export ("reconnectWithCompletionHandler:")] void Reconnect (Action completionHandler); -#endregion + #endregion -#region Barrier (NSFileProviderManager) - [iOS (16,0)] + #region Barrier (NSFileProviderManager) + [iOS (16, 0)] [Async] [Export ("waitForChangesOnItemsBelowItemWithIdentifier:completionHandler:")] void WaitForChangesOnItemsBelowItem (string itemIdentifier, Action completionHandler); -#endregion + #endregion -#region Stabilization (NSFileProviderManager) + #region Stabilization (NSFileProviderManager) [NoiOS] [Async] [Export ("waitForStabilizationWithCompletionHandler:")] void WaitForStabilization (Action completionHandler); -#endregion + #endregion [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Export ("enumeratorForPendingItems")] INSFileProviderPendingSetEnumerator GetEnumeratorForPendingItems (); // From NSFileProviderManager (TestingModeInteractive) Category [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Export ("listAvailableTestingOperationsWithError:")] [return: NullAllowed] - INSFileProviderTestingOperation[] ListAvailableTestingOperations ([NullAllowed] out NSError error); + INSFileProviderTestingOperation [] ListAvailableTestingOperations ([NullAllowed] out NSError error); [Unavailable (PlatformName.MacCatalyst)] - [NoWatch, NoTV, Mac (11,3), iOS (16,0)] + [NoWatch, NoTV, Mac (11, 3), iOS (16, 0)] [Export ("runTestingOperations:error:")] [return: NullAllowed] - NSDictionary GetRunTestingOperations (INSFileProviderTestingOperation[] operations, [NullAllowed] out NSError error); + NSDictionary GetRunTestingOperations (INSFileProviderTestingOperation [] operations, [NullAllowed] out NSError error); - [iOS (16,0), Mac (12,0), NoMacCatalyst] + [iOS (16, 0), Mac (12, 0), NoMacCatalyst] [Async (ResultTypeName = "NSFileProviderRemoveDomainResult")] [Static] [Export ("removeDomain:mode:completionHandler:")] void RemoveDomain (NSFileProviderDomain domain, NSFileProviderDomainRemovalMode mode, Action completionHandler); [Async] - [iOS (16,0), Mac (13,0), NoWatch, NoTV, NoMacCatalyst] + [iOS (16, 0), Mac (13, 0), NoWatch, NoTV, NoMacCatalyst] [Export ("getServiceWithName:itemIdentifier:completionHandler:")] void GetService (string serviceName, string itemIdentifier, Action completionHandler); [Async] - [NoWatch, NoTV, NoMacCatalyst, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, NoMacCatalyst, Mac (13, 0), iOS (16, 0)] [Export ("requestModificationOfFields:forItemWithIdentifier:options:completionHandler:")] void RequestModification (NSFileProviderItemFields fields, string itemIdentifier, NSFileProviderModifyItemOptions options, Action completionHandler); [Async] - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (13, 0)] [Export ("requestDownloadForItemWithIdentifier:requestedRange:completionHandler:")] void RequestDownload (string itemIdentifier, NSRange rangeToMaterialize, Action completionHandler); } @@ -805,7 +815,7 @@ namespace FileProvider { interface INSFileProviderPendingSetEnumerator { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderPendingSetEnumerator : NSFileProviderEnumerator { @@ -828,11 +838,12 @@ namespace FileProvider { // typedef NSString *NSFileProviderDomainIdentifier NS_EXTENSIBLE_STRING_ENUM delegate void NSFileProviderGetIdentifierHandler (/* /NSFileProviderItemIdentifier */ NSString itemIdentifier, /* NSFileProviderDomainIdentifier */ NSString domainIdentifier, NSError error); - interface INSFileProviderServiceSource {} + interface INSFileProviderServiceSource { } - [iOS (11,0)] - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (11, 0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [Protocol] interface NSFileProviderServiceSource { @@ -850,9 +861,10 @@ namespace FileProvider { bool Restricted { [Bind ("isRestricted")] get; } } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [BaseType (typeof(NSObject))] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [BaseType (typeof (NSObject))] interface NSFileProviderItemVersion { [Export ("initWithContentVersion:metadataVersion:")] @@ -864,40 +876,48 @@ namespace FileProvider { [Export ("metadataVersion")] NSData MetadataVersion { get; } - [NoWatch, NoTV, NoMacCatalyst, iOS (16,0), Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, iOS (16, 0), Mac (12, 0)] [Static] [Export ("beforeFirstSyncComponent")] NSData BeforeFirstSyncComponent { get; } } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [Native][Flags] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [Native] + [Flags] enum NSFileProviderCreateItemOptions : ulong { None = 0, MayAlreadyExist = 1, DeletionConflicted = 2, } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [Native][Flags] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [Native] + [Flags] enum NSFileProviderDeleteItemOptions : ulong { None = 0, Recursive = 1, } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [Native][Flags] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [Native] + [Flags] enum NSFileProviderModifyItemOptions : ulong { None = 0, MayAlreadyExist = 1, } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [Native][Flags] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [Native] + [Flags] enum NSFileProviderItemFields : ulong { Contents = 1uL << 0, Filename = 1uL << 1, @@ -909,24 +929,27 @@ namespace FileProvider { ContentModificationDate = 1uL << 7, FileSystemFlags = 1uL << 8, ExtendedAttributes = 1uL << 9, - [Mac (12,0)] + [Mac (12, 0)] TypeAndCreator = 1uL << 10, } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [NoiOS] - [Native][Flags] + [Native] + [Flags] enum NSFileProviderManagerDisconnectionOptions : ulong { None = 0, Temporary = 1, } - [iOS (15,0), Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [Native][Flags] - enum NSFileProviderFileSystemFlags : ulong - { + [iOS (15, 0), Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [Native] + [Flags] + enum NSFileProviderFileSystemFlags : ulong { UserExecutable = 1uL << 0, UserReadable = 1uL << 1, UserWritable = 1uL << 2, @@ -934,8 +957,9 @@ namespace FileProvider { PathExtensionHidden = 1uL << 4, } - [Mac (11,0), iOS (16,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Mac (11, 0), iOS (16, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [BaseType (typeof (NSObject))] interface NSFileProviderRequest { @@ -949,28 +973,30 @@ namespace FileProvider { [Export ("requestingExecutable", ArgumentSemantic.Copy)] NSUrl RequestingExecutable { get; } - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [NoMacCatalyst] [NullAllowed, Export ("domainVersion")] NSFileProviderDomainVersion DomainVersion { get; } } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [iOS (16,0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (16, 0)] [Protocol] interface NSFileProviderCustomAction { [Abstract] [Export ("performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:")] - NSProgress PerformAction (string actionIdentifier, string[] itemIdentifiers, Action completionHandler); + NSProgress PerformAction (string actionIdentifier, string [] itemIdentifiers, Action completionHandler); } - interface INSFileProviderEnumerating {} + interface INSFileProviderEnumerating { } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [iOS (16,0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (16, 0)] [Protocol] interface NSFileProviderEnumerating { @@ -980,9 +1006,10 @@ namespace FileProvider { INSFileProviderEnumerator GetEnumerator (string containerItemIdentifier, NSFileProviderRequest request, [NullAllowed] out NSError error); } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [iOS (16,0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (16, 0)] [Protocol] interface NSFileProviderIncrementalContentFetching { @@ -991,46 +1018,51 @@ namespace FileProvider { NSProgress FetchContents (string itemIdentifier, [NullAllowed] NSFileProviderItemVersion requestedVersion, NSUrl existingContents, NSFileProviderItemVersion existingVersion, NSFileProviderRequest request, NSFileProviderFetchContentsCompletionHandler completionHandler); } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [iOS (16,0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (16, 0)] [Protocol] interface NSFileProviderServicing { [Abstract] [Export ("supportedServiceSourcesForItemIdentifier:completionHandler:")] - NSProgress GetSupportedServiceSources (string itemIdentifier, Action completionHandler); + NSProgress GetSupportedServiceSources (string itemIdentifier, Action completionHandler); } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] - [iOS (16,0)] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] + [iOS (16, 0)] [Protocol] interface NSFileProviderThumbnailing { [Abstract] [Export ("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:")] - NSProgress FetchThumbnails (string[] itemIdentifiers, CGSize size, NSFileProviderPerThumbnailCompletionHandler perThumbnailCompletionHandler, Action completionHandler); + NSProgress FetchThumbnails (string [] itemIdentifiers, CGSize size, NSFileProviderPerThumbnailCompletionHandler perThumbnailCompletionHandler, Action completionHandler); } - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [NoiOS] delegate void NSFileProviderPerThumbnailCompletionHandler (NSString identifier, [NullAllowed] NSData imageData, [NullAllowed] NSError error); - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [NoiOS] delegate void NSFileProviderFetchContentsCompletionHandler ([NullAllowed] NSUrl fileContents, [NullAllowed] INSFileProviderItem item, [NullAllowed] NSError error); - [Mac (11,0)] - [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")] + [Mac (11, 0)] + [Unavailable (PlatformName.MacCatalyst)] + [Advice ("This API is not available when using Catalyst on macOS.")] [NoiOS] delegate void NSFileProviderCreateOrModifyItemCompletionHandler ([NullAllowed] INSFileProviderItem item, NSFileProviderItemFields stillPendingFields, bool shouldFetchContent, [NullAllowed] NSError error); - [Mac (11,0)] + [Mac (11, 0)] [Unavailable (PlatformName.MacCatalyst)] - [iOS (16,0)] + [iOS (16, 0)] [Protocol] [Advice ("Implementation must expose selector 'initWithDomain:' with '.ctor (NSFileProviderDomain)'.")] interface NSFileProviderReplicatedExtension : NSFileProviderEnumerating { @@ -1072,7 +1104,7 @@ namespace FileProvider { void MaterializedItemsDidChange (Action completionHandler); [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Export ("pendingItemsDidChangeWithCompletionHandler:")] void PendingItemsDidChange (Action completionHandler); } @@ -1080,7 +1112,7 @@ namespace FileProvider { interface INSFileProviderDomainState { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderDomainState { @@ -1093,7 +1125,7 @@ namespace FileProvider { NSDictionary UserInfo { get; } } - [NoWatch, NoTV, iOS (15,0), Mac (12,0), NoMacCatalyst] + [NoWatch, NoTV, iOS (15, 0), Mac (12, 0), NoMacCatalyst] [Flags] [Native] public enum NSFileProviderDomainTestingModes : ulong { @@ -1102,7 +1134,7 @@ namespace FileProvider { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSFileProviderDomainVersion : NSSecureCoding { @@ -1115,7 +1147,7 @@ namespace FileProvider { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Native] public enum NSFileProviderTestingOperationType : long { Ingestion = 0, @@ -1131,7 +1163,7 @@ namespace FileProvider { interface INSFileProviderTestingOperation : global::ObjCRuntime.INativeObject { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingOperation { @@ -1181,7 +1213,7 @@ namespace FileProvider { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Native] public enum NSFileProviderTestingOperationSide : ulong { Disk = 0, @@ -1191,7 +1223,7 @@ namespace FileProvider { interface INSFileProviderTestingIngestion { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingIngestion : NSFileProviderTestingOperation { @@ -1210,7 +1242,7 @@ namespace FileProvider { interface INSFileProviderTestingLookup { } - [NoWatch, NoTV, iOS (16,0), NoMacCatalyst, Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), NoMacCatalyst, Mac (11, 3)] [Protocol] interface NSFileProviderTestingLookup : NSFileProviderTestingOperation { @@ -1225,7 +1257,7 @@ namespace FileProvider { interface INSFileProviderTestingCreation { } - [NoWatch, NoTV, iOS (16,0), NoMacCatalyst, Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), NoMacCatalyst, Mac (11, 3)] [Protocol] interface NSFileProviderTestingCreation : NSFileProviderTestingOperation { @@ -1245,7 +1277,7 @@ namespace FileProvider { interface INSFileProviderTestingModification { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingModification : NSFileProviderTestingOperation { @@ -1277,7 +1309,7 @@ namespace FileProvider { interface INSFileProviderTestingDeletion { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingDeletion : NSFileProviderTestingOperation { @@ -1305,7 +1337,7 @@ namespace FileProvider { interface INSFileProviderTestingContentFetch { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingContentFetch : NSFileProviderTestingOperation { @@ -1321,7 +1353,7 @@ namespace FileProvider { interface INSFileProviderTestingChildrenEnumeration { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingChildrenEnumeration : NSFileProviderTestingOperation { @@ -1337,7 +1369,7 @@ namespace FileProvider { interface INSFileProviderTestingCollisionResolution { } [NoMacCatalyst] - [NoWatch, NoTV, iOS (16,0), Mac (11,3)] + [NoWatch, NoTV, iOS (16, 0), Mac (11, 3)] [Protocol] interface NSFileProviderTestingCollisionResolution : NSFileProviderTestingOperation { @@ -1350,10 +1382,9 @@ namespace FileProvider { INSFileProviderItem RenamedItem { get; } } - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] [Protocol] - interface NSFileProviderUserInteractionSuppressing - { + interface NSFileProviderUserInteractionSuppressing { [Abstract] [Export ("setInteractionSuppressed:forIdentifier:")] void SetInteractionSuppressed (bool suppression, string suppressionIdentifier); @@ -1366,7 +1397,7 @@ namespace FileProvider { interface INSFileProviderPartialContentFetching { } delegate void NSFileProviderPartialContentFetchingCompletionHandler (NSUrl fileContents, INSFileProviderItem item, NSRange retrievedRange, NSFileProviderMaterializationFlags flags, NSError error); - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,3)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 3)] [Protocol] interface NSFileProviderPartialContentFetching { diff --git a/src/fileproviderui.cs b/src/fileproviderui.cs index 15facd1ae5..e92d8be71d 100644 --- a/src/fileproviderui.cs +++ b/src/fileproviderui.cs @@ -23,8 +23,8 @@ using NativeHandle = System.IntPtr; namespace FileProviderUI { - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [ErrorDomain ("FPUIErrorDomain")] [Native] enum FPUIExtensionErrorCode : ulong { @@ -32,8 +32,8 @@ namespace FileProviderUI { Failed } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [DisableDefaultCtor] [BaseType (typeof (NSExtensionContext))] interface FPUIActionExtensionContext { @@ -48,8 +48,8 @@ namespace FileProviderUI { void CancelRequest (NSError error); } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] #if IOS [BaseType (typeof (UIViewController))] #else diff --git a/src/findersync.cs b/src/findersync.cs index 1c81c7693b..6a69162b49 100644 --- a/src/findersync.cs +++ b/src/findersync.cs @@ -7,11 +7,10 @@ namespace FinderSync { delegate void GetValuesCompletionHandler (NSDictionary values, NSError error); [Mac (10, 10)] - [BaseType (typeof(NSExtensionContext))] - interface FIFinderSyncController : NSSecureCoding, NSCopying - { + [BaseType (typeof (NSExtensionContext))] + interface FIFinderSyncController : NSSecureCoding, NSCopying { [Static] - [Export("defaultController")] + [Export ("defaultController")] FIFinderSyncController DefaultController { get; } [NullAllowed] // null_resettable @@ -28,23 +27,23 @@ namespace FinderSync { NSUrl TargetedURL { get; } [NullAllowed, Export ("selectedItemURLs")] - NSUrl[] SelectedItemURLs { get; } + NSUrl [] SelectedItemURLs { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("lastUsedDateForItemWithURL:")] [return: NullAllowed] NSDate GetLastUsedDate (NSUrl itemUrl); - [Mac (10,13)] + [Mac (10, 13)] [Async, Export ("setLastUsedDate:forItemWithURL:completion:")] void SetLastUsedDate (NSDate lastUsedDate, NSUrl itemUrl, Action completion); - [Mac (10,13)] + [Mac (10, 13)] [Export ("tagDataForItemWithURL:")] [return: NullAllowed] NSData GetTagData (NSUrl itemUrl); - [Async, Mac (10,13)] + [Async, Mac (10, 13)] [Export ("setTagData:forItemWithURL:completion:")] void SetTagData ([NullAllowed] NSData tagData, NSUrl itemUrl, Action completion); @@ -53,7 +52,7 @@ namespace FinderSync { [Export ("extensionEnabled")] bool ExtensionEnabled { [Bind ("isExtensionEnabled")] get; } - [Mac (10,14)] + [Mac (10, 14)] [Static] [Export ("showExtensionManagementInterface")] void ShowExtensionManagementInterface (); @@ -61,8 +60,7 @@ namespace FinderSync { [Mac (10, 10)] [Protocol (Name = "FIFinderSync")] - interface FIFinderSyncProtocol - { + interface FIFinderSyncProtocol { [Export ("menuForMenuKind:")] [return: NullAllowed] NSMenu GetMenu (FIMenuKind menuKind); @@ -85,9 +83,9 @@ namespace FinderSync { [Export ("toolbarItemToolTip")] string ToolbarItemToolTip { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("supportedServiceNamesForItemWithURL:")] - string[] SupportedServiceNames (NSUrl itemUrl); + string [] SupportedServiceNames (NSUrl itemUrl); #if FALSE // TODO: Activate after 10.13 foundation APIs have been merged. Bug 57800 [Mac (10,13)] @@ -95,14 +93,13 @@ namespace FinderSync { [return: NullAllowed] NSXpcListenerEndpoint MakeListenerEndpoint (string serviceName, [NullAllowed] out NSError error); #endif - [Mac (10,13)] + [Mac (10, 13)] [Async, Export ("valuesForAttributes:forItemWithURL:completion:")] - void GetValues (string[] attributes, NSUrl itemUrl, GetValuesCompletionHandler completion); + void GetValues (string [] attributes, NSUrl itemUrl, GetValuesCompletionHandler completion); } [Mac (10, 10)] - [BaseType (typeof(NSObject))] - interface FIFinderSync : NSExtensionRequestHandling, FIFinderSyncProtocol - { + [BaseType (typeof (NSObject))] + interface FIFinderSync : NSExtensionRequestHandling, FIFinderSyncProtocol { } } diff --git a/src/foundation.cs b/src/foundation.cs index 52f95491ff..b5eec6ce1a 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -143,8 +143,7 @@ namespace Foundation { delegate void NSFilePresenterReacquirer ([BlockCallback] Action reacquirer); } -namespace Foundation -{ +namespace Foundation { delegate NSComparisonResult NSComparator (NSObject obj1, NSObject obj2); delegate void NSAttributedRangeCallback (NSDictionary attrs, NSRange range, ref bool stop); delegate void NSAttributedStringCallback (NSObject value, NSRange range, ref bool stop); @@ -168,7 +167,7 @@ namespace Foundation } #endif - interface NSArray : NSArray {} + interface NSArray : NSArray { } [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] @@ -191,23 +190,24 @@ namespace Foundation [Export ("setValue:forKey:")] void SetValueForKey (NSObject value, NSString key); - [Deprecated (PlatformName.MacOSX, 10, 15, message : "Use 'Write (NSUrl, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13, 0, message : "Use 'Write (NSUrl, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message : "Use 'Write (NSUrl, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13, 0, message : "Use 'Write (NSUrl, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Write (NSUrl, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Write (NSUrl, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Write (NSUrl, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Write (NSUrl, out NSError)' instead.")] [Export ("writeToFile:atomically:")] bool WriteToFile (string path, bool useAuxiliaryFile); - [Deprecated (PlatformName.MacOSX, 10, 15, message : "Use 'NSMutableArray.FromFile' instead.")] - [Deprecated (PlatformName.iOS, 13, 0, message : "Use 'NSMutableArray.FromFile' instead.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message : "Use 'NSMutableArray.FromFile' instead.")] - [Deprecated (PlatformName.TvOS, 13, 0, message : "Use 'NSMutableArray.FromFile' instead.")] - [Export ("arrayWithContentsOfFile:")][Static] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSMutableArray.FromFile' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSMutableArray.FromFile' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSMutableArray.FromFile' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSMutableArray.FromFile' instead.")] + [Export ("arrayWithContentsOfFile:")] + [Static] NSArray FromFile (string path); - + [Export ("sortedArrayUsingComparator:")] NSArray Sort (NSComparator cmptr); - + [Export ("filteredArrayUsingPredicate:")] NSArray Filter (NSPredicate predicate); @@ -236,11 +236,11 @@ namespace Foundation [Export ("removeObserver:fromObjectsAtIndexes:forKeyPath:")] void RemoveObserver (NSObject observer, NSIndexSet indexes, string keyPath); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("writeToURL:error:")] bool Write (NSUrl url, out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("arrayWithContentsOfURL:error:")] [return: NullAllowed] @@ -290,12 +290,12 @@ namespace Foundation [BaseType (typeof (NSObject))] partial interface NSAttributedString : NSCoding, NSMutableCopying, NSSecureCoding - #if MONOMAC +#if MONOMAC , NSPasteboardReading, NSPasteboardWriting - #endif - #if IOS +#endif +#if IOS , NSItemProviderReading, NSItemProviderWriting - #endif +#endif { #if !WATCH [Static, Export ("attributedStringWithAttachment:")] @@ -379,98 +379,167 @@ namespace Foundation NativeHandle Constructor (NSData data, NSAttributedStringDocumentAttributes options, out NSDictionary resultDocumentAttributes, ref NSError error); #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithDocFormat:documentAttributes:")] - NativeHandle Constructor(NSData wordDocFormat, out NSDictionary docAttributes); + NativeHandle Constructor (NSData wordDocFormat, out NSDictionary docAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithHTML:baseURL:documentAttributes:")] NativeHandle Constructor (NSData htmlData, NSUrl baseUrl, out NSDictionary docAttributes); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Export ("drawWithRect:options:")] - void DrawString (CGRect rect, NSStringDrawingOptions options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Export ("drawWithRect:options:")] + void DrawString (CGRect rect, NSStringDrawingOptions options); + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSAttributedString (NSUrl, NSDictionary, out NSDictionary, ref NSError)' instead.")] [Export ("initWithPath:documentAttributes:")] NativeHandle Constructor (string path, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSAttributedString (NSUrl, NSDictionary, out NSDictionary, ref NSError)' instead.")] [Export ("initWithURL:documentAttributes:")] NativeHandle Constructor (NSUrl url, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Internal, Export ("initWithRTF:documentAttributes:")] IntPtr InitWithRtf (NSData data, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Internal, Export ("initWithRTFD:documentAttributes:")] IntPtr InitWithRtfd (NSData data, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Internal, Export ("initWithHTML:documentAttributes:")] IntPtr InitWithHTML (NSData data, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithHTML:options:documentAttributes:")] - NativeHandle Constructor (NSData data, [NullAllowed] NSDictionary options, out NSDictionary resultDocumentAttributes); + NativeHandle Constructor (NSData data, [NullAllowed] NSDictionary options, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this (data, options.GetDictionary (), out resultDocumentAttributes)")] NativeHandle Constructor (NSData data, NSAttributedStringDocumentAttributes options, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithRTFDFileWrapper:documentAttributes:")] NativeHandle Constructor (NSFileWrapper wrapper, out NSDictionary resultDocumentAttributes); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("containsAttachments")] bool ContainsAttachments { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("fontAttributesInRange:")] NSDictionary GetFontAttributes (NSRange range); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("rulerAttributesInRange:")] NSDictionary GetRulerAttributes (NSRange range); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("lineBreakBeforeIndex:withinRange:")] nuint GetLineBreak (nuint beforeIndex, NSRange aRange); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("lineBreakByHyphenatingBeforeIndex:withinRange:")] nuint GetLineBreakByHyphenating (nuint beforeIndex, NSRange aRange); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("doubleClickAtIndex:")] NSRange DoubleClick (nuint index); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("nextWordFromIndex:forward:")] nuint GetNextWord (nuint fromIndex, bool isForward); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSDataDetector' instead.")] [Export ("URLAtIndex:effectiveRange:")] NSUrl GetUrl (nuint index, out NSRange effectiveRange); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("rangeOfTextBlock:atIndex:")] NSRange GetRange (NSTextBlock textBlock, nuint index); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("rangeOfTextTable:atIndex:")] NSRange GetRange (NSTextTable textTable, nuint index); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("rangeOfTextList:atIndex:")] NSRange GetRange (NSTextList textList, nuint index); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("itemNumberInTextList:atIndex:")] nint GetItemNumber (NSTextList textList, nuint index); @@ -524,35 +593,59 @@ namespace Foundation NSFileWrapper GetFileWrapperFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error); #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("RTFFromRange:documentAttributes:")] NSData GetRtf (NSRange range, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this.GetRtf (range, options.GetDictionary ())")] NSData GetRtf (NSRange range, NSAttributedStringDocumentAttributes options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("RTFDFromRange:documentAttributes:")] NSData GetRtfd (NSRange range, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this.GetRtfd (range, options.GetDictionary ())")] NSData GetRtfd (NSRange range, NSAttributedStringDocumentAttributes options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("RTFDFileWrapperFromRange:documentAttributes:")] NSFileWrapper GetRtfdFileWrapper (NSRange range, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this.GetRtfdFileWrapper (range, options.GetDictionary ())")] NSFileWrapper GetRtfdFileWrapper (NSRange range, NSAttributedStringDocumentAttributes options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("docFormatFromRange:documentAttributes:")] NSData GetDocFormat (NSRange range, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("this.GetDocFormat (range, options.GetDictionary ())")] NSData GetDocFormat (NSRange range, NSAttributedStringDocumentAttributes options); @@ -564,25 +657,30 @@ namespace Foundation [Export ("boundingRectWithSize:options:context:")] CGRect GetBoundingRect (CGSize size, NSStringDrawingOptions options, [NullAllowed] NSStringDrawingContext context); - [MacCatalyst (13, 1)][TV (9, 0)][Mac (10, 0)][iOS (6, 0)] + [MacCatalyst (13, 1)] + [TV (9, 0)] + [Mac (10, 0)] + [iOS (6, 0)] [Export ("size")] CGSize Size { get; } [Export ("drawAtPoint:")] void DrawString (CGPoint point); - + [Export ("drawInRect:")] void DrawString (CGRect rect); // -(BOOL)containsAttachmentsInRange:(NSRange)range __attribute__((availability(macosx, introduced=10.11))); - [Mac (10,11)][iOS (9,0)] + [Mac (10, 11)] + [iOS (9, 0)] [Export ("containsAttachmentsInRange:")] bool ContainsAttachmentsInRange (NSRange range); // inlined from NSAttributedStringWebKitAdditions category (since they are all static members) - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Export ("loadFromHTMLWithRequest:options:completionHandler:")] [PreSnippet ("GC.KeepAlive (WebKit.WKContentMode.Recommended); // no-op to ensure WebKit.framework is loaded into memory", Optimizable = true)] @@ -590,15 +688,17 @@ namespace Foundation [EditorBrowsable (EditorBrowsableState.Advanced)] void LoadFromHtml (NSUrlRequest request, NSDictionary options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Async (ResultTypeName = "NSLoadFromHtmlResult")] [Wrap ("LoadFromHtml (request, options.GetDictionary ()!, completionHandler)")] void LoadFromHtml (NSUrlRequest request, NSAttributedStringDocumentAttributes options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Export ("loadFromHTMLWithFileURL:options:completionHandler:")] [PreSnippet ("GC.KeepAlive (WebKit.WKContentMode.Recommended); // no-op to ensure WebKit.framework is loaded into memory", Optimizable = true)] @@ -606,15 +706,17 @@ namespace Foundation [EditorBrowsable (EditorBrowsableState.Advanced)] void LoadFromHtml (NSUrl fileUrl, NSDictionary options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Async (ResultTypeName = "NSLoadFromHtmlResult")] [Wrap ("LoadFromHtml (fileUrl, options.GetDictionary ()!, completionHandler)")] void LoadFromHtml (NSUrl fileUrl, NSAttributedStringDocumentAttributes options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Export ("loadFromHTMLWithString:options:completionHandler:")] [PreSnippet ("GC.KeepAlive (WebKit.WKContentMode.Recommended); // no-op to ensure WebKit.framework is loaded into memory", Optimizable = true)] @@ -622,15 +724,17 @@ namespace Foundation [EditorBrowsable (EditorBrowsableState.Advanced)] void LoadFromHtml (string @string, NSDictionary options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Async (ResultTypeName = "NSLoadFromHtmlResult")] [Wrap ("LoadFromHtml (@string, options.GetDictionary ()!, completionHandler)")] void LoadFromHtml (string @string, NSAttributedStringDocumentAttributes options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Export ("loadFromHTMLWithData:options:completionHandler:")] [PreSnippet ("GC.KeepAlive (WebKit.WKContentMode.Recommended); // no-op to ensure WebKit.framework is loaded into memory", Optimizable = true)] @@ -638,30 +742,34 @@ namespace Foundation [EditorBrowsable (EditorBrowsableState.Advanced)] void LoadFromHtml (NSData data, NSDictionary options, NSAttributedStringCompletionHandler completionHandler); - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] [Static] [Async (ResultTypeName = "NSLoadFromHtmlResult")] [Wrap ("LoadFromHtml (data, options.GetDictionary ()!, completionHandler)")] void LoadFromHtml (NSData data, NSAttributedStringDocumentAttributes options, NSAttributedStringCompletionHandler completionHandler); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:")] NativeHandle Constructor (NSUrl markdownFile, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithMarkdown:options:baseURL:error:")] NativeHandle Constructor (NSData markdown, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithMarkdownString:options:baseURL:error:")] NativeHandle Constructor (string markdownString, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("attributedStringByInflectingString")] NSAttributedString AttributedStringByInflectingString { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("boundingRectWithSize:options:")] CGRect BoundingRectWithSize (CGSize size, NSStringDrawingOptions options); @@ -670,7 +778,7 @@ namespace Foundation #else [Field ("NSTextLayoutSectionOrientation", "UIKit")] #endif - [iOS (7,0)] + [iOS (7, 0)] NSString TextLayoutSectionOrientation { get; } #if MONOMAC @@ -678,7 +786,7 @@ namespace Foundation #else [Field ("NSTextLayoutSectionRange", "UIKit")] #endif - [iOS (7,0)] + [iOS (7, 0)] NSString TextLayoutSectionRange { get; } #if MONOMAC @@ -686,7 +794,7 @@ namespace Foundation #else [Field ("NSTextLayoutSectionsAttribute", "UIKit")] #endif - [iOS (7,0)] + [iOS (7, 0)] NSString TextLayoutSectionsAttribute { get; } [NoiOS, NoWatch, NoTV] @@ -699,8 +807,8 @@ namespace Foundation #else [Field ("NSTextScalingDocumentAttribute", "UIKit")] #endif - [Mac (10,15)] - [iOS (13,0), TV (13,0), Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] NSString TextScalingDocumentAttribute { get; } #if MONOMAC @@ -708,8 +816,8 @@ namespace Foundation #else [Field ("NSSourceTextScalingDocumentAttribute", "UIKit")] #endif - [Mac (10,15)] - [iOS (13,0), TV (13,0), Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] NSString SourceTextScalingDocumentAttribute { get; } #if MONOMAC @@ -717,13 +825,13 @@ namespace Foundation #else [Field ("NSCocoaVersionDocumentAttribute", "UIKit")] #endif - [Mac (10,15)] - [iOS (13,0), TV (13,0), Watch (6,0)] + [Mac (10, 15)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] NSString CocoaVersionDocumentAttribute { get; } } // we follow the API found in swift - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] public enum NSAttributedStringNameKey { [Field ("NSAlternateDescriptionAttributeName")] @@ -733,7 +841,7 @@ namespace Foundation ImageUrl, [Field ("NSInflectionRuleAttributeName")] - InflectionRule, + InflectionRule, [Field ("NSInflectionAlternativeAttributeName")] InflectionAlternative, @@ -758,21 +866,24 @@ namespace Foundation ReplacementIndex, } - [NoWatch][NoTV] // really inside WKWebKit - [Mac (10,15), iOS (13,0)] + [NoWatch] + [NoTV] // really inside WKWebKit + [Mac (10, 15), iOS (13, 0)] delegate void NSAttributedStringCompletionHandler ([NullAllowed] NSAttributedString attributedString, [NullAllowed] NSDictionary attributes, [NullAllowed] NSError error); - [NoWatch][NoTV] // really inside WKWebKit + [NoWatch] + [NoTV] // really inside WKWebKit [Mac (10, 15), iOS (13, 0)] - [Static][Internal] + [Static] + [Internal] interface NSAttributedStringDocumentReadingOptionKeys { [Field ("NSReadAccessURLDocumentOption", "WebKit")] NSString ReadAccessUrlKey { get; } } [BaseType (typeof (NSObject), - Delegates=new string [] { "WeakDelegate" }, - Events=new Type [] { typeof (NSCacheDelegate)} )] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSCacheDelegate) })] interface NSCache { [Export ("objectForKey:")] NSObject ObjectForKey (NSObject key); @@ -793,7 +904,8 @@ namespace Foundation [Export ("name")] string Name { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -818,7 +930,7 @@ namespace Foundation void WillEvictObject (NSCache cache, NSObject obj); } - [BaseType (typeof (NSObject), Name="NSCachedURLResponse")] + [BaseType (typeof (NSObject), Name = "NSCachedURLResponse")] // instance created with 'init' will crash when Dispose is called [DisableDefaultCtor] interface NSCachedUrlResponse : NSCoding, NSSecureCoding, NSCopying { @@ -827,7 +939,7 @@ namespace Foundation [Export ("initWithResponse:data:")] NativeHandle Constructor (NSUrlResponse response, NSData data); - + [Export ("response")] NSUrlResponse Response { get; } @@ -840,7 +952,7 @@ namespace Foundation [Export ("storagePolicy")] NSUrlCacheStoragePolicy StoragePolicy { get; } } - + [BaseType (typeof (NSObject))] // 'init' returns NIL - `init` now marked as NS_UNAVAILABLE [DisableDefaultCtor] @@ -852,17 +964,18 @@ namespace Foundation [Export ("calendarIdentifier")] string Identifier { get; } - [Export ("currentCalendar")] [Static] + [Export ("currentCalendar")] + [Static] NSCalendar CurrentCalendar { get; } [Export ("locale", ArgumentSemantic.Copy)] NSLocale Locale { get; set; } [Export ("timeZone", ArgumentSemantic.Copy)] - NSTimeZone TimeZone { get; set; } + NSTimeZone TimeZone { get; set; } [Export ("firstWeekday")] - nuint FirstWeekDay { get; set; } + nuint FirstWeekDay { get; set; } [Export ("minimumDaysInFirstWeek")] nuint MinimumDaysInFirstWeek { get; set; } @@ -893,34 +1006,34 @@ namespace Foundation [Field ("NSCalendarIdentifierGregorian"), Internal] NSString NSGregorianCalendar { get; } - + [Field ("NSCalendarIdentifierBuddhist"), Internal] NSString NSBuddhistCalendar { get; } - + [Field ("NSCalendarIdentifierChinese"), Internal] NSString NSChineseCalendar { get; } - + [Field ("NSCalendarIdentifierHebrew"), Internal] NSString NSHebrewCalendar { get; } - + [Field ("NSIslamicCalendar"), Internal] NSString NSIslamicCalendar { get; } - + [Field ("NSCalendarIdentifierIslamicCivil"), Internal] NSString NSIslamicCivilCalendar { get; } - + [Field ("NSCalendarIdentifierJapanese"), Internal] NSString NSJapaneseCalendar { get; } - + [Field ("NSCalendarIdentifierRepublicOfChina"), Internal] NSString NSRepublicOfChinaCalendar { get; } - + [Field ("NSCalendarIdentifierPersian"), Internal] NSString NSPersianCalendar { get; } - + [Field ("NSCalendarIdentifierIndian"), Internal] NSString NSIndianCalendar { get; } - + [Field ("NSCalendarIdentifierISO8601"), Internal] NSString NSISO8601Calendar { get; } @@ -933,11 +1046,13 @@ namespace Foundation [Field ("NSCalendarIdentifierEthiopicAmeteMihret"), Internal] NSString EthiopicAmeteMihretCalendar { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Field ("NSCalendarIdentifierIslamicTabular"), Internal] NSString IslamicTabularCalendar { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Field ("NSCalendarIdentifierIslamicUmmAlQura"), Internal] NSString IslamicUmmAlQuraCalendar { get; } @@ -1002,108 +1117,133 @@ namespace Foundation string PMSymbol { get; } [Export ("compareDate:toDate:toUnitGranularity:")] - [Mac(10,9)][iOS(8,0)] - NSComparisonResult CompareDate(NSDate date1, NSDate date2, NSCalendarUnit granularity); + [Mac (10, 9)] + [iOS (8, 0)] + NSComparisonResult CompareDate (NSDate date1, NSDate date2, NSCalendarUnit granularity); [Export ("component:fromDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] nint GetComponentFromDate (NSCalendarUnit unit, NSDate date); [Export ("components:fromDateComponents:toDateComponents:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDateComponents ComponentsFromDateToDate (NSCalendarUnit unitFlags, NSDateComponents startingDate, NSDateComponents resultDate, NSCalendarOptions options); [Export ("componentsInTimeZone:fromDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDateComponents ComponentsInTimeZone (NSTimeZone timezone, NSDate date); [Export ("date:matchesComponents:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool Matches (NSDate date, NSDateComponents components); [Export ("dateByAddingUnit:value:toDate:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate DateByAddingUnit (NSCalendarUnit unit, nint value, NSDate date, NSCalendarOptions options); [Export ("dateBySettingHour:minute:second:ofDate:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate DateBySettingsHour (nint hour, nint minute, nint second, NSDate date, NSCalendarOptions options); [Export ("dateBySettingUnit:value:ofDate:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate DateBySettingUnit (NSCalendarUnit unit, nint value, NSDate date, NSCalendarOptions options); [Export ("dateWithEra:year:month:day:hour:minute:second:nanosecond:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate Date (nint era, nint year, nint month, nint date, nint hour, nint minute, nint second, nint nanosecond); [Export ("dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate DateForWeekOfYear (nint era, nint year, nint week, nint weekday, nint hour, nint minute, nint second, nint nanosecond); [Export ("enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] void EnumerateDatesStartingAfterDate (NSDate start, NSDateComponents matchingComponents, NSCalendarOptions options, [BlockCallback] EnumerateDatesCallback callback); [Export ("getEra:year:month:day:fromDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] void GetComponentsFromDate (out nint era, out nint year, out nint month, out nint day, NSDate date); [Export ("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] void GetComponentsFromDateForWeekOfYear (out nint era, out nint year, out nint weekOfYear, out nint weekday, NSDate date); [Export ("getHour:minute:second:nanosecond:fromDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] void GetHourComponentsFromDate (out nint hour, out nint minute, out nint second, out nint nanosecond, NSDate date); [Export ("isDate:equalToDate:toUnitGranularity:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsEqualToUnitGranularity (NSDate date1, NSDate date2, NSCalendarUnit unit); [Export ("isDate:inSameDayAsDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsInSameDay (NSDate date1, NSDate date2); [Export ("isDateInToday:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsDateInToday (NSDate date); [Export ("isDateInTomorrow:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsDateInTomorrow (NSDate date); [Export ("isDateInWeekend:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsDateInWeekend (NSDate date); [Export ("isDateInYesterday:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsDateInYesterday (NSDate date); [Export ("nextDateAfterDate:matchingComponents:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [MarshalNativeExceptions] NSDate FindNextDateAfterDateMatching (NSDate date, NSDateComponents components, NSCalendarOptions options); [Export ("nextDateAfterDate:matchingHour:minute:second:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [MarshalNativeExceptions] NSDate FindNextDateAfterDateMatching (NSDate date, nint hour, nint minute, nint second, NSCalendarOptions options); [Export ("nextDateAfterDate:matchingUnit:value:options:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [MarshalNativeExceptions] NSDate FindNextDateAfterDateMatching (NSDate date, NSCalendarUnit unit, nint value, NSCalendarOptions options); [Export ("nextWeekendStartDate:interval:options:afterDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool FindNextWeekend (out NSDate date, out double /* NSTimeInterval */ interval, NSCalendarOptions options, NSDate afterDate); [Export ("rangeOfWeekendStartDate:interval:containingDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool RangeOfWeekendContainingDate (out NSDate weekendStartDate, out double /* NSTimeInterval */ interval, NSDate date); - + // although the ideal would be to use GetRange, we already have the method // RangeOfWeekendContainingDate and for the sake of consistency we are // going to use the same name pattern. @@ -1123,10 +1263,12 @@ namespace Foundation bool Range (NSCalendarUnit unit, [NullAllowed] out NSDate datep, out double /* NSTimeInterval */ interval, NSDate date); [Export ("startOfDayForDate:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] NSDate StartOfDayForDate (NSDate date); - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [Notification] [Field ("NSCalendarDayChangedNotification")] NSString DayChangedNotification { get; } @@ -1134,7 +1276,10 @@ namespace Foundation // Obsolete, but the only API surfaced by WebKit.WebHistory. [Deprecated (PlatformName.MacOSX, 10, 1, message: "Use NSCalendar and NSDateComponents.")] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [BaseType (typeof (NSDate))] interface NSCalendarDate { [Export ("initWithString:calendarFormat:locale:")] @@ -1219,10 +1364,10 @@ namespace Foundation [BaseType (typeof (NSObject))] interface NSCharacterSet : NSSecureCoding, NSMutableCopying { [Static, Export ("alphanumericCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Alphanumerics {get;} + NSCharacterSet Alphanumerics { get; } [Static, Export ("capitalizedLetterCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Capitalized {get;} + NSCharacterSet Capitalized { get; } // TODO/FIXME: constructor? [Static, Export ("characterSetWithBitmapRepresentation:")] @@ -1239,43 +1384,43 @@ namespace Foundation NSCharacterSet FromRange (NSRange aRange); [Static, Export ("controlCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Controls {get;} + NSCharacterSet Controls { get; } [Static, Export ("decimalDigitCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet DecimalDigits {get;} + NSCharacterSet DecimalDigits { get; } [Static, Export ("decomposableCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Decomposables {get;} + NSCharacterSet Decomposables { get; } [Static, Export ("illegalCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Illegals {get;} + NSCharacterSet Illegals { get; } [Static, Export ("letterCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Letters {get;} + NSCharacterSet Letters { get; } [Static, Export ("lowercaseLetterCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet LowercaseLetters {get;} + NSCharacterSet LowercaseLetters { get; } [Static, Export ("newlineCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Newlines {get;} + NSCharacterSet Newlines { get; } [Static, Export ("nonBaseCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Marks {get;} + NSCharacterSet Marks { get; } [Static, Export ("punctuationCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Punctuation {get;} + NSCharacterSet Punctuation { get; } [Static, Export ("symbolCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Symbols {get;} + NSCharacterSet Symbols { get; } [Static, Export ("uppercaseLetterCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet UppercaseLetters {get;} + NSCharacterSet UppercaseLetters { get; } [Static, Export ("whitespaceAndNewlineCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet WhitespaceAndNewlines {get;} + NSCharacterSet WhitespaceAndNewlines { get; } [Static, Export ("whitespaceCharacterSet", ArgumentSemantic.Copy)] - NSCharacterSet Whitespaces {get;} + NSCharacterSet Whitespaces { get; } [Export ("bitmapRepresentation")] NSData GetBitmapRepresentation (); @@ -1287,7 +1432,7 @@ namespace Foundation bool HasMemberInPlane (byte thePlane); [Export ("invertedSet")] - NSCharacterSet InvertedSet {get;} + NSCharacterSet InvertedSet { get; } [Export ("isSupersetOfSet:")] bool IsSupersetOf (NSCharacterSet theOtherSet); @@ -1296,7 +1441,7 @@ namespace Foundation bool Contains (uint /* UTF32Char = UInt32 */ theLongChar); } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSFormatter))] interface NSMassFormatter { [Export ("numberFormatter", ArgumentSemantic.Copy)] @@ -1328,111 +1473,130 @@ namespace Foundation interface NSMutableCharacterSet { [Export ("addCharactersInRange:")] void AddCharacters (NSRange aRange); - + [Export ("removeCharactersInRange:")] void RemoveCharacters (NSRange aRange); - + [Export ("addCharactersInString:")] #if MONOMAC && !NET void AddCharacters (string str); #else void AddCharacters (NSString str); #endif - + [Export ("removeCharactersInString:")] #if MONOMAC && !NET void RemoveCharacters (string str); #else void RemoveCharacters (NSString str); #endif - + [Export ("formUnionWithCharacterSet:")] void UnionWith (NSCharacterSet otherSet); - + [Export ("formIntersectionWithCharacterSet:")] void IntersectWith (NSCharacterSet otherSet); - + [Export ("invert")] void Invert (); - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("alphanumericCharacterSet")] - NSCharacterSet Alphanumerics {get;} + NSCharacterSet Alphanumerics { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("capitalizedLetterCharacterSet")] - NSCharacterSet Capitalized {get;} + NSCharacterSet Capitalized { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("characterSetWithBitmapRepresentation:")] NSCharacterSet FromBitmapRepresentation (NSData data); - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("characterSetWithCharactersInString:")] NSCharacterSet FromString (string aString); [return: NullAllowed] - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("characterSetWithContentsOfFile:")] NSCharacterSet FromFile (string path); - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("characterSetWithRange:")] NSCharacterSet FromRange (NSRange aRange); - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("controlCharacterSet")] - NSCharacterSet Controls {get;} + NSCharacterSet Controls { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("decimalDigitCharacterSet")] - NSCharacterSet DecimalDigits {get;} + NSCharacterSet DecimalDigits { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("decomposableCharacterSet")] - NSCharacterSet Decomposables {get;} + NSCharacterSet Decomposables { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("illegalCharacterSet")] - NSCharacterSet Illegals {get;} + NSCharacterSet Illegals { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("letterCharacterSet")] - NSCharacterSet Letters {get;} + NSCharacterSet Letters { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("lowercaseLetterCharacterSet")] - NSCharacterSet LowercaseLetters {get;} + NSCharacterSet LowercaseLetters { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("newlineCharacterSet")] - NSCharacterSet Newlines {get;} + NSCharacterSet Newlines { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("nonBaseCharacterSet")] - NSCharacterSet Marks {get;} + NSCharacterSet Marks { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("punctuationCharacterSet")] - NSCharacterSet Punctuation {get;} + NSCharacterSet Punctuation { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("symbolCharacterSet")] - NSCharacterSet Symbols {get;} + NSCharacterSet Symbols { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("uppercaseLetterCharacterSet")] - NSCharacterSet UppercaseLetters {get;} + NSCharacterSet UppercaseLetters { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("whitespaceAndNewlineCharacterSet")] - NSCharacterSet WhitespaceAndNewlines {get;} + NSCharacterSet WhitespaceAndNewlines { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static, Export ("whitespaceCharacterSet")] - NSCharacterSet Whitespaces {get;} + NSCharacterSet Whitespaces { get; } } - + [BaseType (typeof (NSObject))] interface NSCoder { @@ -1441,7 +1605,7 @@ namespace Foundation // [Export ("encodeObject:")] void Encode ([NullAllowed] NSObject obj); - + [Export ("encodeRootObject:")] void EncodeRoot ([NullAllowed] NSObject obj); @@ -1453,22 +1617,22 @@ namespace Foundation // [Export ("encodeConditionalObject:forKey:")] void EncodeConditionalObject ([NullAllowed] NSObject val, string key); - + [Export ("encodeObject:forKey:")] void Encode ([NullAllowed] NSObject val, string key); - + [Export ("encodeBool:forKey:")] void Encode (bool val, string key); - + [Export ("encodeDouble:forKey:")] void Encode (double val, string key); - + [Export ("encodeFloat:forKey:")] void Encode (float /* float, not CGFloat */ val, string key); - + [Export ("encodeInt32:forKey:")] void Encode (int /* int32 */ val, string key); - + [Export ("encodeInt64:forKey:")] void Encode (long val, string key); @@ -1480,7 +1644,7 @@ namespace Foundation [Export ("containsValueForKey:")] bool ContainsKey (string key); - + [Export ("decodeBoolForKey:")] bool DecodeBool (string key); @@ -1488,7 +1652,7 @@ namespace Foundation double DecodeDouble (string key); [Export ("decodeFloatForKey:")] - float DecodeFloat (string key); /* float, not CGFloat */ + float DecodeFloat (string key); /* float, not CGFloat */ [Export ("decodeInt32ForKey:")] int DecodeInt (string key); /* int, not NSInteger */ @@ -1514,58 +1678,60 @@ namespace Foundation [Export ("requiresSecureCoding")] bool RequiresSecureCoding (); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("decodeTopLevelObjectAndReturnError:")] NSObject DecodeTopLevelObject (out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("decodeTopLevelObjectForKey:error:")] NSObject DecodeTopLevelObject (string key, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("decodeTopLevelObjectOfClass:forKey:error:")] NSObject DecodeTopLevelObject (Class klass, string key, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("decodeTopLevelObjectOfClasses:forKey:error:")] NSObject DecodeTopLevelObject ([NullAllowed] NSSet setOfClasses, string key, out NSError error); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("failWithError:")] void Fail (NSError error); [Export ("systemVersion")] uint SystemVersion { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("decodingFailurePolicy")] NSDecodingFailurePolicy DecodingFailurePolicy { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("error", ArgumentSemantic.Copy)] NSError Error { get; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("decodeArrayOfObjectsOfClass:forKey:")] [return: NullAllowed] - NSObject[] DecodeArrayOfObjects (Class @class, string key); + NSObject [] DecodeArrayOfObjects (Class @class, string key); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("decodeArrayOfObjectsOfClasses:forKey:")] [return: NullAllowed] - NSObject[] DecodeArrayOfObjects (NSSet classes, string key); + NSObject [] DecodeArrayOfObjects (NSSet classes, string key); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:")] [return: NullAllowed] NSDictionary DecodeDictionary (Class keyClass, Class objectClass, string key); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:")] [return: NullAllowed] NSDictionary DecodeDictionary (NSSet keyClasses, NSSet objectClasses, string key); } - + [BaseType (typeof (NSPredicate))] interface NSComparisonPredicate : NSSecureCoding { [Static, Export ("predicateWithLeftExpression:rightExpression:modifier:type:options:")] @@ -1577,7 +1743,7 @@ namespace Foundation [DesignatedInitializer] [Export ("initWithLeftExpression:rightExpression:modifier:type:options:")] NativeHandle Constructor (NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier comparisonModifier, NSPredicateOperatorType operatorType, NSComparisonPredicateOptions comparisonOptions); - + [DesignatedInitializer] [Export ("initWithLeftExpression:rightExpression:customSelector:")] NativeHandle Constructor (NSExpression leftExpression, NSExpression rightExpression, Selector selector); @@ -1607,17 +1773,17 @@ namespace Foundation interface NSCompoundPredicate : NSCoding { [DesignatedInitializer] [Export ("initWithType:subpredicates:")] - NativeHandle Constructor (NSCompoundPredicateType type, NSPredicate[] subpredicates); + NativeHandle Constructor (NSCompoundPredicateType type, NSPredicate [] subpredicates); [Export ("compoundPredicateType")] NSCompoundPredicateType Type { get; } [Export ("subpredicates")] - NSPredicate[] Subpredicates { get; } + NSPredicate [] Subpredicates { get; } [Static] [Export ("andPredicateWithSubpredicates:")] - NSCompoundPredicate CreateAndPredicate (NSPredicate[] subpredicates); + NSCompoundPredicate CreateAndPredicate (NSPredicate [] subpredicates); [Static] [Export ("orPredicateWithSubpredicates:")] @@ -1630,7 +1796,7 @@ namespace Foundation } delegate void NSDataByteRangeEnumerator (IntPtr bytes, NSRange range, ref bool stop); - + [BaseType (typeof (NSObject))] interface NSData : NSSecureCoding, NSMutableCopying, CKRecordValue { [Export ("dataWithContentsOfURL:")] @@ -1641,9 +1807,10 @@ namespace Foundation [Static] NSData FromUrl (NSUrl url, NSDataReadingOptions mask, out NSError error); - [Export ("dataWithContentsOfFile:")][Static] + [Export ("dataWithContentsOfFile:")] + [Static] NSData FromFile (string path); - + [Export ("dataWithContentsOfFile:options:error:")] [Static] NSData FromFile (string path, NSDataReadingOptions mask, out NSError error); @@ -1670,15 +1837,15 @@ namespace Foundation [Export ("writeToFile:options:error:")] [Internal] bool _Save (string file, nint options, IntPtr addr); - + [Export ("writeToURL:options:error:")] [Internal] bool _Save (NSUrl url, nint options, IntPtr addr); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Save (NSUrl,bool)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Save (NSUrl,bool)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Save (NSUrl,bool)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Save (NSUrl,bool)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Save (NSUrl,bool)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Save (NSUrl,bool)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Save (NSUrl,bool)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Save (NSUrl,bool)' instead.")] [Export ("writeToFile:atomically:")] bool Save (string path, bool atomically); @@ -1697,38 +1864,38 @@ namespace Foundation [Export ("rangeOfData:options:range:")] NSRange Find (NSData dataToFind, NSDataSearchOptions searchOptions, NSRange searchRange); - [iOS (7,0), Mac (10, 9)] // 10.9 + [iOS (7, 0), Mac (10, 9)] // 10.9 [Export ("initWithBase64EncodedString:options:")] NativeHandle Constructor (string base64String, NSDataBase64DecodingOptions options); - [iOS (7,0), Mac (10, 9)] // 10.9 + [iOS (7, 0), Mac (10, 9)] // 10.9 [Export ("initWithBase64EncodedData:options:")] NativeHandle Constructor (NSData base64Data, NSDataBase64DecodingOptions options); - [iOS (7,0), Mac (10, 9)] // 10.9 + [iOS (7, 0), Mac (10, 9)] // 10.9 [Export ("base64EncodedDataWithOptions:")] NSData GetBase64EncodedData (NSDataBase64EncodingOptions options); - [iOS (7,0), Mac (10, 9)] // 10.9 + [iOS (7, 0), Mac (10, 9)] // 10.9 [Export ("base64EncodedStringWithOptions:")] string GetBase64EncodedString (NSDataBase64EncodingOptions options); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("enumerateByteRangesUsingBlock:")] void EnumerateByteRange (NSDataByteRangeEnumerator enumerator); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("initWithBytesNoCopy:length:deallocator:")] - NativeHandle Constructor (IntPtr bytes, nuint length, [NullAllowed] Action deallocator); + NativeHandle Constructor (IntPtr bytes, nuint length, [NullAllowed] Action deallocator); // NSDataCompression (NSData) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("decompressedDataUsingAlgorithm:error:")] [return: NullAllowed] NSData Decompress (NSDataCompressionAlgorithm algorithm, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("compressedDataUsingAlgorithm:error:")] [return: NullAllowed] NSData Compress (NSDataCompressionAlgorithm algorithm, [NullAllowed] out NSError error); @@ -1796,8 +1963,8 @@ namespace Foundation nint Nanosecond { get; set; } [Export ("week")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] nint Week { get; set; } [Export ("weekday")] @@ -1811,7 +1978,7 @@ namespace Foundation [Export ("weekOfYear")] nint WeekOfYear { get; set; } - + [Export ("yearForWeekOfYear")] nint YearForWeekOfYear { get; set; } @@ -1819,22 +1986,26 @@ namespace Foundation bool IsLeapMonth { [Bind ("isLeapMonth")] get; set; } [Export ("isValidDate")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsValidDate { get; } [Export ("isValidDateInCalendar:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] bool IsValidDateInCalendar (NSCalendar calendar); [Export ("setValue:forComponent:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] void SetValueForComponent (nint value, NSCalendarUnit unit); [Export ("valueForComponent:")] - [Mac(10,9)][iOS(8,0)] + [Mac (10, 9)] + [iOS (8, 0)] nint GetValueForComponent (NSCalendarUnit unit); } - + [BaseType (typeof (NSFormatter))] interface NSByteCountFormatter { [Export ("allowsNonnumericFormatting")] @@ -1848,12 +2019,12 @@ namespace Foundation [Export ("includesActualByteCount")] bool IncludesActualByteCount { get; set; } - + [Export ("adaptive")] - bool Adaptive { [Bind ("isAdaptive")] get; set; } + bool Adaptive { [Bind ("isAdaptive")] get; set; } [Export ("zeroPadsFractionDigits")] - bool ZeroPadsFractionDigits { get; set; } + bool ZeroPadsFractionDigits { get; set; } [Static] [Export ("stringFromByteCount:countStyle:")] @@ -1868,21 +2039,21 @@ namespace Foundation [Export ("countStyle")] NSByteCountFormatterCountStyle CountStyle { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("formattingContext")] NSFormattingContext FormattingContext { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("stringForObjectValue:")] [return: NullAllowed] string GetString ([NullAllowed] NSObject obj); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("stringFromMeasurement:countStyle:")] string Create (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("stringFromMeasurement:")] string Create (NSUnitInformationStorage measurement); } @@ -1924,7 +2095,7 @@ namespace Foundation // not exposed as a property in documentation [Export ("isLenient")] - bool IsLenient { get; [Bind ("setLenient:")] set; } + bool IsLenient { get; [Bind ("setLenient:")] set; } [Export ("twoDigitStartDate", ArgumentSemantic.Copy)] NSDate TwoDigitStartDate { get; set; } @@ -1946,7 +2117,7 @@ namespace Foundation string [] WeekdaySymbols { get; set; } [Export ("shortWeekdaySymbols")] - string [] ShortWeekdaySymbols { get; set; } + string [] ShortWeekdaySymbols { get; set; } [Export ("AMSymbol")] string AMSymbol { get; set; } @@ -1959,7 +2130,7 @@ namespace Foundation [Export ("veryShortMonthSymbols")] string [] VeryShortMonthSymbols { get; set; } - + [Export ("standaloneMonthSymbols")] string [] StandaloneMonthSymbols { get; set; } @@ -1968,7 +2139,7 @@ namespace Foundation [Export ("veryShortStandaloneMonthSymbols")] string [] VeryShortStandaloneMonthSymbols { get; set; } - + [Export ("veryShortWeekdaySymbols")] string [] VeryShortWeekdaySymbols { get; set; } @@ -1977,16 +2148,16 @@ namespace Foundation [Export ("shortStandaloneWeekdaySymbols")] string [] ShortStandaloneWeekdaySymbols { get; set; } - + [Export ("veryShortStandaloneWeekdaySymbols")] string [] VeryShortStandaloneWeekdaySymbols { get; set; } - + [Export ("quarterSymbols")] string [] QuarterSymbols { get; set; } [Export ("shortQuarterSymbols")] string [] ShortQuarterSymbols { get; set; } - + [Export ("standaloneQuarterSymbols")] string [] StandaloneQuarterSymbols { get; set; } @@ -2007,7 +2178,7 @@ namespace Foundation [Export ("doesRelativeDateFormatting")] bool DoesRelativeDateFormatting { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("setLocalizedDateFormatFromTemplate:")] void SetLocalizedDateFormatFromTemplate (string dateFormatTemplate); @@ -2016,7 +2187,8 @@ namespace Foundation NSFormattingContext FormattingContext { get; set; } } - [iOS (8,0)][Mac(10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSFormatter))] interface NSDateComponentsFormatter { [Export ("unitsStyle")] @@ -2072,7 +2244,8 @@ namespace Foundation NSDate ReferenceDate { get; set; } } - [iOS (8,0)][Mac(10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSFormatter))] interface NSDateIntervalFormatter { @@ -2097,13 +2270,17 @@ namespace Foundation [Export ("stringFromDate:toDate:")] string StringFromDate (NSDate fromDate, NSDate toDate); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("stringFromDateInterval:")] [return: NullAllowed] string ToString (NSDateInterval dateInterval); } - [iOS (8,0)][Mac(10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSFormatter))] interface NSEnergyFormatter { [Export ("numberFormatter", ArgumentSemantic.Copy)] @@ -2142,122 +2319,122 @@ namespace Foundation interface NSFileHandleConnectionAcceptedEventArgs { [Export ("NSFileHandleNotificationFileHandleItem")] NSFileHandle NearSocketConnection { get; } - + [Export ("NSFileHandleError", ArgumentSemantic.Assign)] nint UnixErrorCode { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // return invalid handle interface NSFileHandle : NSSecureCoding { [Export ("availableData")] NSData AvailableData (); - - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'ReadToEnd (out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'ReadToEnd (out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'ReadToEnd (out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'ReadToEnd (out NSError)' instead.")] + + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'ReadToEnd (out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'ReadToEnd (out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'ReadToEnd (out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'ReadToEnd (out NSError)' instead.")] [Export ("readDataToEndOfFile")] NSData ReadDataToEndOfFile (); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("readDataToEndOfFileAndReturnError:")] [return: NullAllowed] NSData ReadToEnd ([NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Read (nuint, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Read (nuint, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Read (nuint, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Read (nuint, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Read (nuint, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Read (nuint, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Read (nuint, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Read (nuint, out NSError)' instead.")] [Export ("readDataOfLength:")] NSData ReadDataOfLength (nuint length); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("readDataUpToLength:error:")] [return: NullAllowed] NSData Read (nuint length, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Write (out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Write (out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Write (out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Write (out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Write (out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Write (out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Write (out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Write (out NSError)' instead.")] [Export ("writeData:")] void WriteData (NSData data); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("writeData:error:")] bool Write (NSData data, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'GetOffset (out ulong, out NSError)' instead.")] [Export ("offsetInFile")] ulong OffsetInFile (); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("getOffset:error:")] bool GetOffset (out ulong offsetInFile, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'SeekToEnd (out ulong, out NSError)' instead.")] [Export ("seekToEndOfFile")] ulong SeekToEndOfFile (); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("seekToEndReturningOffset:error:")] bool SeekToEnd ([NullAllowed] out ulong offsetInFile, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Seek (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Seek (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Seek (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Seek (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Seek (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Seek (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Seek (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Seek (ulong, out NSError)' instead.")] [Export ("seekToFileOffset:")] void SeekToFileOffset (ulong offset); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("seekToOffset:error:")] bool Seek (ulong offset, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Truncate (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Truncate (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Truncate (ulong, out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Truncate (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Truncate (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Truncate (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Truncate (ulong, out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Truncate (ulong, out NSError)' instead.")] [Export ("truncateFileAtOffset:")] void TruncateFileAtOffset (ulong offset); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("truncateAtOffset:error:")] bool Truncate (ulong offset, [NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Synchronize (out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Synchronize (out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Synchronize (out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Synchronize (out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Synchronize (out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Synchronize (out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Synchronize (out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Synchronize (out NSError)' instead.")] [Export ("synchronizeFile")] void SynchronizeFile (); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("synchronizeAndReturnError:")] bool Synchronize ([NullAllowed] out NSError error); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'Close (out NSError)' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'Close (out NSError)' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'Close (out NSError)' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'Close (out NSError)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'Close (out NSError)' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'Close (out NSError)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'Close (out NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'Close (out NSError)' instead.")] [Export ("closeFile")] void CloseFile (); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("closeAndReturnError:")] bool Close ([NullAllowed] out NSError error); - + [Static] [Export ("fileHandleWithStandardInput")] NSFileHandle FromStandardInput (); - + [Static] [Export ("fileHandleWithStandardOutput")] NSFileHandle FromStandardOutput (); @@ -2293,7 +2470,7 @@ namespace Foundation [Static] [Export ("fileHandleForUpdatingURL:error:")] NSFileHandle OpenUpdateUrl (NSUrl url, out NSError error); - + [Export ("readInBackgroundAndNotifyForModes:")] void ReadInBackground (NSString [] notifyRunLoopModes); @@ -2329,11 +2506,11 @@ namespace Foundation [Export ("waitForDataInBackgroundAndNotify")] void WaitForDataInBackground (); - + [DesignatedInitializer] [Export ("initWithFileDescriptor:closeOnDealloc:")] NativeHandle Constructor (int /* int, not NSInteger */ fd, bool closeOnDealloc); - + [Export ("initWithFileDescriptor:")] NativeHandle Constructor (int /* int, not NSInteger */ fd); @@ -2352,11 +2529,11 @@ namespace Foundation [Field ("NSFileHandleReadCompletionNotification")] [Notification (typeof (NSFileHandleReadEventArgs))] NSString ReadCompletionNotification { get; } - + [Field ("NSFileHandleReadToEndOfFileCompletionNotification")] [Notification (typeof (NSFileHandleReadEventArgs))] NSString ReadToEndOfFileCompletionNotification { get; } - + [Field ("NSFileHandleConnectionAcceptedNotification")] [Notification (typeof (NSFileHandleConnectionAcceptedEventArgs))] NSString ConnectionAcceptedNotification { get; } @@ -2366,37 +2543,37 @@ namespace Foundation NSString DataAvailableNotification { get; } } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] interface NSPersonNameComponent { [Field ("NSPersonNameComponentKey")] NSString ComponentKey { get; } - + [Field ("NSPersonNameComponentGivenName")] NSString GivenName { get; } - + [Field ("NSPersonNameComponentFamilyName")] NSString FamilyName { get; } - + [Field ("NSPersonNameComponentMiddleName")] NSString MiddleName { get; } - + [Field ("NSPersonNameComponentPrefix")] NSString Prefix { get; } - + [Field ("NSPersonNameComponentSuffix")] NSString Suffix { get; } - + [Field ("NSPersonNameComponentNickname")] NSString Nickname { get; } - + [Field ("NSPersonNameComponentDelimiter")] NSString Delimiter { get; } } - - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] interface NSPersonNameComponents : NSCopying, NSSecureCoding { [NullAllowed, Export ("namePrefix")] @@ -2410,57 +2587,59 @@ namespace Foundation [NullAllowed, Export ("familyName")] string FamilyName { get; set; } - + [NullAllowed, Export ("nameSuffix")] string NameSuffix { get; set; } - + [NullAllowed, Export ("nickname")] string Nickname { get; set; } - + [NullAllowed, Export ("phoneticRepresentation", ArgumentSemantic.Copy)] NSPersonNameComponents PhoneticRepresentation { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSFormatter))] - interface NSPersonNameComponentsFormatter - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSFormatter))] + interface NSPersonNameComponentsFormatter { [Export ("style", ArgumentSemantic.Assign)] NSPersonNameComponentsFormatterStyle Style { get; set; } - + [Export ("phonetic")] bool Phonetic { [Bind ("isPhonetic")] get; set; } - + [Static] [Export ("localizedStringFromPersonNameComponents:style:options:")] string GetLocalizedString (NSPersonNameComponents components, NSPersonNameComponentsFormatterStyle nameFormatStyle, NSPersonNameComponentsFormatterOptions nameOptions); - + [Export ("stringFromPersonNameComponents:")] string GetString (NSPersonNameComponents components); - + [Export ("annotatedStringFromPersonNameComponents:")] NSAttributedString GetAnnotatedString (NSPersonNameComponents components); - + [Export ("getObjectValue:forString:errorDescription:")] bool GetObjectValue (out NSObject result, string str, out string errorDescription); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("personNameComponentsFromString:")] [return: NullAllowed] NSPersonNameComponents GetComponents (string @string); - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("locale", ArgumentSemantic.Copy)] NSLocale Locale { get; set; } } - - + + [BaseType (typeof (NSObject))] interface NSPipe { - + [Export ("fileHandleForReading")] NSFileHandle ReadHandle { get; } - + [Export ("fileHandleForWriting")] NSFileHandle WriteHandle { get; } @@ -2499,10 +2678,10 @@ namespace Foundation bool GetObjectValue (out NSObject obj, string str, out NSString error); [Export ("isPartialStringValid:newEditingString:errorDescription:")] - bool IsPartialStringValid (string partialString, out string newString, out NSString error); + bool IsPartialStringValid (string partialString, [NullAllowed] out string newString, [NullAllowed] out NSString error); [Export ("isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:")] - bool IsPartialStringValid (ref string partialString, out NSRange proposedSelRange, string origString, NSRange origSelRange, out string error); + bool IsPartialStringValid (ref string partialString, out NSRange proposedSelRange, string origString, NSRange origSelRange, [NullAllowed] out string error); } [BaseType (typeof (NSObject))] @@ -2543,7 +2722,7 @@ namespace Foundation NSObject MutableCopy ([NullAllowed] NSZone zone); } - interface INSMutableCopying {} + interface INSMutableCopying { } [BaseType (typeof (NSObject))] [Model] @@ -2551,16 +2730,16 @@ namespace Foundation interface NSKeyedArchiverDelegate { [Export ("archiver:didEncodeObject:"), EventArgs ("NSObject")] void EncodedObject (NSKeyedArchiver archiver, NSObject obj); - + [Export ("archiverDidFinish:")] void Finished (NSKeyedArchiver archiver); - + [Export ("archiver:willEncodeObject:"), DelegateName ("NSEncodeHook"), DefaultValue (null)] NSObject WillEncode (NSKeyedArchiver archiver, NSObject obj); - + [Export ("archiverWillFinish:")] void Finishing (NSKeyedArchiver archiver); - + [Export ("archiver:willReplaceObject:withObject:"), EventArgs ("NSArchiveReplace")] void ReplacingObject (NSKeyedArchiver archiver, NSObject oldObject, NSObject newObject); } @@ -2571,28 +2750,28 @@ namespace Foundation interface NSKeyedUnarchiverDelegate { [Export ("unarchiver:didDecodeObject:"), DelegateName ("NSDecoderCallback"), DefaultValue (null)] NSObject DecodedObject (NSKeyedUnarchiver unarchiver, NSObject obj); - + [Export ("unarchiverDidFinish:")] void Finished (NSKeyedUnarchiver unarchiver); - + [Export ("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"), DelegateName ("NSDecoderHandler"), DefaultValue (null)] Class CannotDecodeClass (NSKeyedUnarchiver unarchiver, string klass, string [] classes); - + [Export ("unarchiverWillFinish:")] void Finishing (NSKeyedUnarchiver unarchiver); - + [Export ("unarchiver:willReplaceObject:withObject:"), EventArgs ("NSArchiveReplace")] void ReplacingObject (NSKeyedUnarchiver unarchiver, NSObject oldObject, NSObject newObject); } [BaseType (typeof (NSCoder), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (NSKeyedArchiverDelegate) })] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSKeyedArchiverDelegate) })] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[NSKeyedArchiver init]: cannot use -init for initialization [DisableDefaultCtor] interface NSKeyedArchiver { - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("initRequiringSecureCoding:")] NativeHandle Constructor (bool requiresSecureCoding); @@ -2601,7 +2780,10 @@ namespace Foundation [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'NSKeyedArchiver (bool)' instead.")] [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'NSKeyedArchiver (bool)' instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSKeyedArchiver (bool)' instead.")] - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [Export ("init")] NativeHandle Constructor (); @@ -2611,8 +2793,8 @@ namespace Foundation [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSKeyedArchiver (bool)' instead.")] [Export ("initForWritingWithMutableData:")] NativeHandle Constructor (NSMutableData data); - - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("archivedDataWithRootObject:requiringSecureCoding:error:")] [return: NullAllowed] @@ -2633,7 +2815,7 @@ namespace Foundation #else NSData ArchivedDataWithRootObject (NSObject root); #endif - + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")] [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'ArchivedDataWithRootObject (NSObject, bool, out NSError)' instead.")] @@ -2652,7 +2834,8 @@ namespace Foundation [Protocolize] NSKeyedArchiverDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("setClassName:forClass:")] @@ -2661,7 +2844,7 @@ namespace Foundation [Export ("classNameForClass:")] string GetClassName (Class kls); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSKeyedArchiveRootObjectKey")] NSString RootObjectKey { get; } @@ -2676,40 +2859,43 @@ namespace Foundation bool GetRequiresSecureCoding (); #endif - [Watch (3,0)][TV (10,0)][Mac (10, 12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("encodedData", ArgumentSemantic.Strong)] NSData EncodedData { get; } } - + [BaseType (typeof (NSCoder), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (NSKeyedUnarchiverDelegate) })] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSKeyedUnarchiverDelegate) })] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[NSKeyedUnarchiver init]: cannot use -init for initialization [DisableDefaultCtor] interface NSKeyedUnarchiver { - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("initForReadingFromData:error:")] NativeHandle Constructor (NSData data, [NullAllowed] out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("unarchivedObjectOfClass:fromData:error:")] [return: NullAllowed] NSObject GetUnarchivedObject (Class cls, NSData data, [NullAllowed] out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Wrap ("GetUnarchivedObject (new Class (type), data, out error)")] [return: NullAllowed] NSObject GetUnarchivedObject (Type type, NSData data, [NullAllowed] out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("unarchivedObjectOfClasses:fromData:error:")] [return: NullAllowed] NSObject GetUnarchivedObject (NSSet classes, NSData data, [NullAllowed] out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Wrap ("GetUnarchivedObject (new NSSet (Array.ConvertAll (types, t => new Class (t))), data, out error)")] [return: NullAllowed] @@ -2722,7 +2908,7 @@ namespace Foundation [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSKeyedUnarchiver (NSData, out NSError)' instead.")] [MarshalNativeExceptions] NativeHandle Constructor (NSData data); - + [Static, Export ("unarchiveObjectWithData:")] [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GetUnarchivedObject ()' instead.")] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'GetUnarchivedObject ()' instead.")] @@ -2736,10 +2922,10 @@ namespace Foundation [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GetUnarchivedObject ()' instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GetUnarchivedObject ()' instead.")] [Static, Export ("unarchiveTopLevelObjectWithData:error:")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] // FIXME: [MarshalNativeExceptions] NSObject UnarchiveTopLevelObject (NSData data, out NSError error); - + [Static, Export ("unarchiveObjectWithFile:")] [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GetUnarchivedObject ()' instead.")] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'GetUnarchivedObject ()' instead.")] @@ -2755,7 +2941,8 @@ namespace Foundation [Protocolize] NSKeyedUnarchiverDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("setClass:forClassName:")] @@ -2776,32 +2963,32 @@ namespace Foundation bool GetRequiresSecureCoding (); #endif - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("unarchivedArrayOfObjectsOfClass:fromData:error:")] [return: NullAllowed] - NSObject[] GetUnarchivedArray (Class @class, NSData data, [NullAllowed] out NSError error); + NSObject [] GetUnarchivedArray (Class @class, NSData data, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("unarchivedArrayOfObjectsOfClasses:fromData:error:")] [return: NullAllowed] - NSObject[] GetUnarchivedArray (NSSet classes, NSData data, [NullAllowed] out NSError error); + NSObject [] GetUnarchivedArray (NSSet classes, NSData data, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("unarchivedDictionaryWithKeysOfClass:objectsOfClass:fromData:error:")] [return: NullAllowed] NSDictionary GetUnarchivedDictionary (Class keyClass, Class valueClass, NSData data, [NullAllowed] out NSError error); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("unarchivedDictionaryWithKeysOfClasses:objectsOfClasses:fromData:error:")] [return: NullAllowed] NSDictionary GetUnarchivedDictionary (NSSet keyClasses, NSSet valueClasses, NSData data, [NullAllowed] out NSError error); } - [BaseType (typeof (NSObject), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSMetadataQueryDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSMetadataQueryDelegate) })] interface NSMetadataQuery { [Export ("startQuery")] bool StartQuery (); @@ -2831,7 +3018,7 @@ namespace Foundation NSObject ResultAtIndex (nint idx); [Export ("results")] - NSMetadataItem[] Results { get; } + NSMetadataItem [] Results { get; } [Export ("indexOfResult:")] nint IndexOfResult (NSObject result); @@ -2851,16 +3038,16 @@ namespace Foundation [Wrap ("WeakDelegate")] [Protocolize] NSMetadataQueryDelegate Delegate { get; set; } - + [Export ("predicate", ArgumentSemantic.Copy)] [NullAllowed] // by default this property is null NSPredicate Predicate { get; set; } [Export ("sortDescriptors", ArgumentSemantic.Copy)] - NSSortDescriptor[] SortDescriptors { get; set; } + NSSortDescriptor [] SortDescriptors { get; set; } [Export ("valueListAttributes", ArgumentSemantic.Copy)] - NSObject[] ValueListAttributes { get; set; } + NSObject [] ValueListAttributes { get; set; } [Export ("groupingAttributes", ArgumentSemantic.Copy)] NSArray GroupingAttributes { get; set; } @@ -2870,41 +3057,53 @@ namespace Foundation [Export ("searchScopes", ArgumentSemantic.Copy)] NSObject [] SearchScopes { get; set; } - + // There is no info associated with these notifications [Field ("NSMetadataQueryDidStartGatheringNotification")] [Notification] NSString DidStartGatheringNotification { get; } - + [Field ("NSMetadataQueryGatheringProgressNotification")] [Notification] NSString GatheringProgressNotification { get; } - + [Field ("NSMetadataQueryDidFinishGatheringNotification")] [Notification] NSString DidFinishGatheringNotification { get; } - + [Field ("NSMetadataQueryDidUpdateNotification")] [Notification] NSString DidUpdateNotification { get; } - + [Field ("NSMetadataQueryResultContentRelevanceAttribute")] NSString ResultContentRelevanceAttribute { get; } - + // Scope constants for defined search locations - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSMetadataQueryUserHomeScope")] NSString UserHomeScope { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSMetadataQueryLocalComputerScope")] NSString LocalComputerScope { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSMetadataQueryLocalDocumentsScope")] NSString LocalDocumentsScope { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSMetadataQueryNetworkScope")] NSString NetworkScope { get; } @@ -2915,7 +3114,7 @@ namespace Foundation NSString UbiquitousDataScope { get; } - [iOS(8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope")] NSString AccessibleUbiquitousExternalDocumentsScope { get; } @@ -2940,14 +3139,14 @@ namespace Foundation [Field ("NSMetadataItemFSContentChangeDateKey")] NSString ItemFSContentChangeDateKey { get; } - [iOS(8,0),Mac(10,9)] + [iOS (8, 0), Mac (10, 9)] [Field ("NSMetadataItemContentTypeKey")] NSString ContentTypeKey { get; } - [iOS(8,0),Mac(10,9)] + [iOS (8, 0), Mac (10, 9)] [Field ("NSMetadataItemContentTypeTreeKey")] NSString ContentTypeTreeKey { get; } - + [Field ("NSMetadataItemIsUbiquitousKey")] NSString ItemIsUbiquitousKey { get; } @@ -2955,8 +3154,8 @@ namespace Foundation [Field ("NSMetadataUbiquitousItemHasUnresolvedConflictsKey")] NSString UbiquitousItemHasUnresolvedConflictsKey { get; } - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'UbiquitousItemDownloadingStatusKey' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'UbiquitousItemDownloadingStatusKey' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'UbiquitousItemDownloadingStatusKey' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'UbiquitousItemDownloadingStatusKey' instead.")] [Field ("NSMetadataUbiquitousItemIsDownloadedKey")] NSString UbiquitousItemIsDownloadedKey { get; } @@ -2969,18 +3168,18 @@ namespace Foundation [Field ("NSMetadataUbiquitousItemIsUploadingKey")] NSString UbiquitousItemIsUploadingKey { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("NSMetadataUbiquitousItemDownloadingStatusKey")] NSString UbiquitousItemDownloadingStatusKey { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("NSMetadataUbiquitousItemDownloadingErrorKey")] NSString UbiquitousItemDownloadingErrorKey { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("NSMetadataUbiquitousItemUploadingErrorKey")] NSString UbiquitousItemUploadingErrorKey { get; } @@ -2990,19 +3189,19 @@ namespace Foundation [Field ("NSMetadataUbiquitousItemPercentUploadedKey")] NSString UbiquitousItemPercentUploadedKey { get; } - [iOS(8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("NSMetadataUbiquitousItemDownloadRequestedKey")] NSString UbiquitousItemDownloadRequestedKey { get; } - [iOS(8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("NSMetadataUbiquitousItemIsExternalDocumentKey")] NSString UbiquitousItemIsExternalDocumentKey { get; } - - [iOS(8,0),Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Field ("NSMetadataUbiquitousItemContainerDisplayNameKey")] NSString UbiquitousItemContainerDisplayNameKey { get; } - - [iOS(8,0),Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Field ("NSMetadataUbiquitousItemURLInLocalContainerKey")] NSString UbiquitousItemURLInLocalContainerKey { get; } @@ -3617,37 +3816,40 @@ namespace Foundation [NoWatch, NoTV, Mac (10, 12), iOS (10, 0)] [Field ("NSMetadataUbiquitousSharedItemPermissionsReadWrite")] NSString UbiquitousSharedItemPermissionsReadWrite { get; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [NullAllowed] // by default this property is null [Export ("searchItems", ArgumentSemantic.Copy)] // DOC: object is a mixture of NSString, NSMetadataItem, NSUrl NSObject [] SearchItems { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [NullAllowed] // by default this property is null [Export ("operationQueue", ArgumentSemantic.Retain)] NSOperationQueue OperationQueue { get; set; } - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("enumerateResultsUsingBlock:")] void EnumerateResultsUsingBlock (NSMetadataQueryEnumerationCallback callback); - [iOS (7,0), Mac (10, 9), Export ("enumerateResultsWithOptions:usingBlock:")] + [iOS (7, 0), Mac (10, 9), Export ("enumerateResultsWithOptions:usingBlock:")] void EnumerateResultsWithOptions (NSEnumerationOptions opts, NSMetadataQueryEnumerationCallback block); // // These are for NSMetadataQueryDidUpdateNotification // - [Mac (10,9)][iOS (8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [Field ("NSMetadataQueryUpdateAddedItemsKey")] NSString QueryUpdateAddedItemsKey { get; } - [Mac (10,9)][iOS (8,0)] + [Mac (10, 9)] + [iOS (8, 0)] [Field ("NSMetadataQueryUpdateChangedItemsKey")] NSString QueryUpdateChangedItemsKey { get; } - - [Mac (10,9)][iOS (8,0)] + + [Mac (10, 9)] + [iOS (8, 0)] [Field ("NSMetadataQueryUpdateRemovedItemsKey")] NSString QueryUpdateRemovedItemsKey { get; } } @@ -3656,10 +3858,10 @@ namespace Foundation [Model] [Protocol] interface NSMetadataQueryDelegate { - [Export ("metadataQuery:replacementObjectForResultObject:"), DelegateName ("NSMetadataQueryObject"), DefaultValue(null)] + [Export ("metadataQuery:replacementObjectForResultObject:"), DelegateName ("NSMetadataQueryObject"), DefaultValue (null)] NSObject ReplacementObjectForResultObject (NSMetadataQuery query, NSMetadataItem result); - [Export ("metadataQuery:replacementValueForAttribute:value:"), DelegateName ("NSMetadataQueryValue"), DefaultValue(null)] + [Export ("metadataQuery:replacementValueForAttribute:value:"), DelegateName ("NSMetadataQueryValue"), DefaultValue (null)] NSObject ReplacementValueForAttributevalue (NSMetadataQuery query, string attributeName, NSObject value); } @@ -3669,8 +3871,10 @@ namespace Foundation #endif interface NSMetadataItem { - [NoiOS][NoTV][NoWatch] - [Mac (10,9)] + [NoiOS] + [NoTV] + [NoWatch] + [Mac (10, 9)] [DesignatedInitializer] [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); @@ -3780,11 +3984,11 @@ namespace Foundation [Export ("removeObjectsAtIndexes:")] void RemoveObjectsAtIndexes (NSIndexSet indexSet); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("arrayWithContentsOfFile:")] NSMutableArray FromFile (string path); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("arrayWithContentsOfURL:")] NSMutableArray FromUrl (NSUrl url); @@ -3794,14 +3998,14 @@ namespace Foundation void ApplyDifference (NSOrderedCollectionDifference difference); #endif } - - interface NSMutableArray : NSMutableArray {} + + interface NSMutableArray : NSMutableArray { } [BaseType (typeof (NSAttributedString))] interface NSMutableAttributedString { [Export ("initWithString:")] NativeHandle Constructor (string str); - + [Export ("initWithString:attributes:")] NativeHandle Constructor (string str, [NullAllowed] NSDictionary attributes); @@ -3823,16 +4027,19 @@ namespace Foundation [Export ("addAttributes:range:")] void AddAttributes (NSDictionary attrs, NSRange range); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("AddAttributes (attributes.GetDictionary ()!, range)")] void AddAttributes (NSStringAttributes attributes, NSRange range); [Export ("removeAttribute:range:")] void RemoveAttribute (string name, NSRange range); - + [Export ("replaceCharactersInRange:withAttributedString:")] void Replace (NSRange range, NSAttributedString value); - + [Export ("insertAttributedString:atIndex:")] void Insert (NSAttributedString attrString, nint location); @@ -3853,7 +4060,7 @@ namespace Foundation [NoMac] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'ReadFromUrl' instead.")] [Export ("readFromFileURL:options:documentAttributes:error:")] bool ReadFromFile (NSUrl url, NSDictionary options, ref NSDictionary returnOptions, ref NSError error); @@ -3865,40 +4072,43 @@ namespace Foundation bool ReadFromFile (NSUrl url, NSAttributedStringDocumentAttributes options, ref NSDictionary returnOptions, ref NSError error); [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Export ("readFromData:options:documentAttributes:error:")] bool ReadFromData (NSData data, NSDictionary options, ref NSDictionary returnOptions, ref NSError error); - + [NoMac] [Wrap ("ReadFromData (data, options.GetDictionary ()!, ref returnOptions, ref error)")] bool ReadFromData (NSData data, NSAttributedStringDocumentAttributes options, ref NSDictionary returnOptions, ref NSError error); [Internal] [Sealed] - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("readFromURL:options:documentAttributes:error:")] bool ReadFromUrl (NSUrl url, NSDictionary options, ref NSDictionary returnOptions, ref NSError error); - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("readFromURL:options:documentAttributes:error:")] bool ReadFromUrl (NSUrl url, NSDictionary options, ref NSDictionary returnOptions, ref NSError error); - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Wrap ("ReadFromUrl (url, options.GetDictionary ()!, ref returnOptions, ref error)")] bool ReadFromUrl (NSUrl url, NSAttributedStringDocumentAttributes options, ref NSDictionary returnOptions, ref NSError error); } [BaseType (typeof (NSData))] interface NSMutableData { - [Static, Export ("dataWithCapacity:")] [Autorelease] + [Static, Export ("dataWithCapacity:")] + [Autorelease] [PreSnippet ("if (capacity < 0 || capacity > nint.MaxValue) throw new ArgumentOutOfRangeException ();", Optimizable = true)] NSMutableData FromCapacity (nint capacity); - [Static, Export ("dataWithLength:")] [Autorelease] + [Static, Export ("dataWithLength:")] + [Autorelease] [PreSnippet ("if (length < 0 || length > nint.MaxValue) throw new ArgumentOutOfRangeException ();", Optimizable = true)] NSMutableData FromLength (nint length); - - [Static, Export ("data")] [Autorelease] + + [Static, Export ("data")] + [Autorelease] NSMutableData Create (); [Export ("mutableBytes")] @@ -3929,19 +4139,19 @@ namespace Foundation [Export ("replaceBytesInRange:withBytes:length:")] void ReplaceBytes (NSRange range, IntPtr buffer, nuint length); - + // NSMutableDataCompression (NSMutableData) - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("decompressUsingAlgorithm:error:")] bool Decompress (NSDataCompressionAlgorithm algorithm, [NullAllowed] out NSError error); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("compressUsingAlgorithm:error:")] bool Compress (NSDataCompressionAlgorithm algorithm, [NullAllowed] out NSError error); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSDataCompressionAlgorithm : long { Lzfse = 0, @@ -3960,10 +4170,10 @@ namespace Foundation double GetSecondsSince (NSDate anotherDate); [Export ("timeIntervalSinceNow")] - double SecondsSinceNow { get; } + double SecondsSinceNow { get; } [Export ("timeIntervalSince1970")] - double SecondsSince1970 { get; } + double SecondsSince1970 { get; } [Export ("dateWithTimeIntervalSinceReferenceDate:")] [Static] @@ -3975,11 +4185,11 @@ namespace Foundation [Export ("date")] [Static] NSDate Now { get; } - + [Export ("distantPast")] [Static] NSDate DistantPast { get; } - + [Export ("distantFuture")] [Static] NSDate DistantFuture { get; } @@ -4009,37 +4219,37 @@ namespace Foundation // NSDate_SensorKit [NoWatch, NoTV, NoMac] - [iOS (14,0)] + [iOS (14, 0)] [Static] [Export ("dateWithSRAbsoluteTime:")] NSDate CreateFromSRAbsoluteTime (double time); [NoWatch, NoTV, NoMac] - [iOS (14,0)] + [iOS (14, 0)] [Export ("initWithSRAbsoluteTime:")] NativeHandle Constructor (double srAbsoluteTime); [NoWatch, NoTV, NoMac] - [iOS (14,0)] + [iOS (14, 0)] [Export ("srAbsoluteTime")] double SrAbsoluteTime { get; } } - + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface NSDictionary : NSSecureCoding, NSMutableCopying, NSFetchRequestResult, INSFastEnumeration { - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'NSMutableDictionary.FromFile' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'NSMutableDictionary.FromFile' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'NSMutableDictionary.FromFile' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'NSMutableDictionary.FromFile' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSMutableDictionary.FromFile' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSMutableDictionary.FromFile' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSMutableDictionary.FromFile' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSMutableDictionary.FromFile' instead.")] [Export ("dictionaryWithContentsOfFile:")] [Static] NSDictionary FromFile (string path); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'NSMutableDictionary.FromUrl' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSMutableDictionary.FromUrl' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSMutableDictionary.FromUrl' instead.")] [Export ("dictionaryWithContentsOfURL:")] [Static] NSDictionary FromUrl (NSUrl url); @@ -4074,33 +4284,33 @@ namespace Foundation [Export ("initWithDictionary:copyItems:")] NativeHandle Constructor (NSDictionary other, bool copyItems); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'NSMutableDictionary(string)' constructor instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSMutableDictionary(string)' constructor instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSMutableDictionary(string)' constructor instead.")] [Export ("initWithContentsOfFile:")] NativeHandle Constructor (string fileName); [Export ("initWithObjects:forKeys:"), Internal] NativeHandle Constructor (NSArray objects, NSArray keys); - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSMutableDictionary(NSUrl)' constructor instead.")] [Export ("initWithContentsOfURL:")] NativeHandle Constructor (NSUrl url); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("initWithContentsOfURL:error:")] NativeHandle Constructor (NSUrl url, out NSError error); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("dictionaryWithContentsOfURL:error:")] [return: NullAllowed] NSDictionary FromUrl (NSUrl url, out NSError error); - + [Export ("count")] nuint Count { get; } @@ -4117,7 +4327,8 @@ namespace Foundation [Export ("allKeys")] IntPtr _AllKeys (); - [Export ("allKeys")][Autorelease] + [Export ("allKeys")] + [Autorelease] NSObject [] Keys { get; } [Internal] @@ -4125,7 +4336,8 @@ namespace Foundation [Export ("allKeysForObject:")] IntPtr _AllKeysForObject (IntPtr obj); - [Export ("allKeysForObject:")][Autorelease] + [Export ("allKeysForObject:")] + [Autorelease] NSObject [] KeysForObject (NSObject obj); [Internal] @@ -4133,7 +4345,8 @@ namespace Foundation [Export ("allValues")] IntPtr _AllValues (); - [Export ("allValues")][Autorelease] + [Export ("allValues")] + [Autorelease] NSObject [] Values { get; } [Export ("descriptionInStringsFileFormat")] @@ -4141,7 +4354,7 @@ namespace Foundation [Export ("isEqualToDictionary:")] bool IsEqualToDictionary (NSDictionary other); - + [Export ("objectEnumerator")] NSEnumerator ObjectEnumerator { get; } @@ -4150,20 +4363,21 @@ namespace Foundation [Export ("objectsForKeys:notFoundMarker:")] IntPtr _ObjectsForKeys (IntPtr keys, IntPtr marker); - [Export ("objectsForKeys:notFoundMarker:")][Autorelease] + [Export ("objectsForKeys:notFoundMarker:")] + [Autorelease] NSObject [] ObjectsForKeys (NSArray keys, NSObject marker); - - [Deprecated (PlatformName.MacOSX, 10,15)] - [Deprecated (PlatformName.iOS, 13,0)] - [Deprecated (PlatformName.WatchOS, 6,0)] - [Deprecated (PlatformName.TvOS, 13,0)] + + [Deprecated (PlatformName.MacOSX, 10, 15)] + [Deprecated (PlatformName.iOS, 13, 0)] + [Deprecated (PlatformName.WatchOS, 6, 0)] + [Deprecated (PlatformName.TvOS, 13, 0)] [Export ("writeToFile:atomically:")] bool WriteToFile (string path, bool useAuxiliaryFile); - [Deprecated (PlatformName.MacOSX, 10,15)] - [Deprecated (PlatformName.iOS, 13,0)] - [Deprecated (PlatformName.WatchOS, 6,0)] - [Deprecated (PlatformName.TvOS, 13,0)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [Deprecated (PlatformName.iOS, 13, 0)] + [Deprecated (PlatformName.WatchOS, 6, 0)] + [Deprecated (PlatformName.TvOS, 13, 0)] [Export ("writeToURL:atomically:")] bool WriteToUrl (NSUrl url, bool atomically); @@ -4173,15 +4387,15 @@ namespace Foundation } - interface NSDictionary : NSDictionary {} + interface NSDictionary : NSDictionary { } [BaseType (typeof (NSObject))] interface NSEnumerator { [Export ("nextObject")] - NSObject NextObject (); + NSObject NextObject (); } - interface NSEnumerator : NSEnumerator {} + interface NSEnumerator : NSEnumerator { } [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -4192,7 +4406,7 @@ namespace Foundation [DesignatedInitializer] [Export ("initWithDomain:code:userInfo:")] NativeHandle Constructor (NSString domain, nint code, [NullAllowed] NSDictionary userInfo); - + [Export ("domain")] string Domain { get; } @@ -4217,13 +4431,13 @@ namespace Foundation [Export ("helpAnchor")] string HelpAnchor { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("underlyingErrors", ArgumentSemantic.Copy)] NSError [] UnderlyingErrors { get; } [Field ("NSCocoaErrorDomain")] - NSString CocoaErrorDomain { get;} + NSString CocoaErrorDomain { get; } [Field ("NSPOSIXErrorDomain")] NSString PosixErrorDomain { get; } @@ -4240,7 +4454,7 @@ namespace Foundation #if NET [NoWatch] #else - [Obsoleted (PlatformName.WatchOS, 7,0)] + [Obsoleted (PlatformName.WatchOS, 7, 0)] #endif [Field ("NSNetServicesErrorDomain")] NSString NSNetServicesErrorDomain { get; } @@ -4270,24 +4484,25 @@ namespace Foundation NSString EABluetoothAccessoryPickerErrorDomain { get; } // now exposed with the corresponding MKErrorCode enum - [TV (9,2)] - [NoMac][NoWatch] + [TV (9, 2)] + [NoMac] + [NoWatch] [Field ("MKErrorDomain", "MapKit")] NSString MapKitErrorDomain { get; } // now exposed with the corresponding WKErrorCode enum [NoMac, NoTV] - [iOS (8,2)] + [iOS (8, 2)] [Unavailable (PlatformName.iOS)] [Field ("WatchKitErrorDomain", "WatchKit")] NSString WatchKitErrorDomain { get; } #endif - + [Field ("NSUnderlyingErrorKey")] NSString UnderlyingErrorKey { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("NSMultipleUnderlyingErrorsKey")] NSString MultipleUnderlyingErrorsKey { get; } @@ -4318,20 +4533,23 @@ namespace Foundation [Field ("NSFilePathErrorKey")] NSString FilePathErrorKey { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("NSDebugDescriptionErrorKey")] NSString DebugDescriptionErrorKey { get; } - [iOS (11,0), Mac (10,13), Watch (4,0), TV (11,0)] + [iOS (11, 0), Mac (10, 13), Watch (4, 0), TV (11, 0)] [Field ("NSLocalizedFailureErrorKey")] NSString LocalizedFailureErrorKey { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("setUserInfoValueProviderForDomain:provider:")] void SetUserInfoValueProvider (string errorDomain, [NullAllowed] NSErrorUserInfoValueProvider provider); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("userInfoValueProviderForDomain:")] [return: NullAllowed] @@ -4339,27 +4557,33 @@ namespace Foundation // From NSError (NSFileProviderError) Category to avoid static category uglyness - [iOS (11,0)] - [Mac (10,15)] - [NoMacCatalyst][NoTV][NoWatch] + [iOS (11, 0)] + [Mac (10, 15)] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Static] [Export ("fileProviderErrorForCollisionWithItem:")] NSError GetFileProviderError (INSFileProviderItem existingItem); - [iOS (11,0)] - [Mac (10,15)] - [NoMacCatalyst][NoTV][NoWatch] + [iOS (11, 0)] + [Mac (10, 15)] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Static] [Export ("fileProviderErrorForNonExistentItemWithIdentifier:")] NSError GetFileProviderError (string nonExistentItemIdentifier); - [iOS (16,0)] - [Mac (11,0)] - [NoMacCatalyst][NoTV][NoWatch] + [iOS (16, 0)] + [Mac (11, 0)] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Static] [Export ("fileProviderErrorForRejectedDeletionOfItem:")] NSError GetFileProviderErrorForRejectedDeletion (INSFileProviderItem updatedVersion); - + #if false // FIXME that value is present in the header (7.0 DP 6) files but returns NULL (i.e. unusable) // we're also missing other NSURLError* fields (which we should add) @@ -4369,7 +4593,7 @@ namespace Foundation #endif } - delegate NSObject NSErrorUserInfoValueProvider (NSError error, NSString userInfoKey); + delegate NSObject NSErrorUserInfoValueProvider (NSError error, NSString userInfoKey); [BaseType (typeof (NSObject))] // 'init' returns NIL @@ -4381,22 +4605,22 @@ namespace Foundation [Export ("name")] string Name { get; } - + [Export ("reason")] string Reason { get; } - + [Export ("userInfo")] NSObject UserInfo { get; } [Export ("callStackReturnAddresses")] - NSNumber[] CallStackReturnAddresses { get; } + NSNumber [] CallStackReturnAddresses { get; } [Export ("callStackSymbols")] - string[] CallStackSymbols { get; } + string [] CallStackSymbols { get; } } #if !NET && !WATCH - [Obsolete("NSExpressionHandler is deprecated, please use FromFormat (string, NSObject[]) instead.")] + [Obsolete ("NSExpressionHandler is deprecated, please use FromFormat (string, NSObject[]) instead.")] delegate void NSExpressionHandler (NSObject evaluatedObject, NSExpression [] expressions, NSMutableDictionary context); #endif delegate NSObject NSExpressionCallbackHandler (NSObject evaluatedObject, NSExpression [] expressions, NSMutableDictionary context); @@ -4417,13 +4641,13 @@ namespace Foundation NSExpression FromKeyPath (string keyPath); [Static, Export ("expressionForFunction:arguments:")] - NSExpression FromFunction (string name, NSExpression[] parameters); + NSExpression FromFunction (string name, NSExpression [] parameters); [Static, Export ("expressionWithFormat:")] NSExpression FromFormat (string expressionFormat); #if !NET && !WATCH - [Obsolete("Use 'FromFormat (string, NSObject[])' instead.")] + [Obsolete ("Use 'FromFormat (string, NSObject[])' instead.")] [Static, Export ("expressionWithFormat:argumentArray:")] NSExpression FromFormat (string format, NSExpression [] parameters); #endif @@ -4449,31 +4673,31 @@ namespace Foundation NSExpression FromSubquery (NSExpression expression, string variable, NSObject predicate); [Static, Export ("expressionForFunction:selectorName:arguments:")] - NSExpression FromFunction (NSExpression target, string name, NSExpression[] parameters); + NSExpression FromFunction (NSExpression target, string name, NSExpression [] parameters); #if !NET && !WATCH - [Obsolete("Use 'FromFunction (NSExpressionCallbackHandler, NSExpression[])' instead.")] + [Obsolete ("Use 'FromFunction (NSExpressionCallbackHandler, NSExpression[])' instead.")] [Static, Export ("expressionForBlock:arguments:")] - NSExpression FromFunction (NSExpressionHandler target, [NullAllowed] NSExpression[] parameters); + NSExpression FromFunction (NSExpressionHandler target, [NullAllowed] NSExpression [] parameters); #endif [Static, Export ("expressionForBlock:arguments:")] - NSExpression FromFunction (NSExpressionCallbackHandler target, NSExpression[] parameters); + NSExpression FromFunction (NSExpressionCallbackHandler target, NSExpression [] parameters); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Static] [Export ("expressionForAnyKey")] NSExpression FromAnyKey (); - [iOS(9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("expressionForConditional:trueExpression:falseExpression:")] NSExpression FromConditional (NSPredicate predicate, NSExpression trueExpression, NSExpression falseExpression); - - [iOS (7,0), Mac (10, 9)] + + [iOS (7, 0), Mac (10, 9)] [Export ("allowEvaluation")] void AllowEvaluation (); - + [DesignatedInitializer] [Export ("initWithExpressionType:")] NativeHandle Constructor (NSExpressionType type); @@ -4500,7 +4724,7 @@ namespace Foundation NSExpression _Operand { get; } [Sealed, Internal, Export ("arguments")] - NSExpression[] _Arguments { get; } + NSExpression [] _Arguments { get; } [Sealed, Internal, Export ("collection")] NSObject _Collection { get; } @@ -4514,20 +4738,21 @@ namespace Foundation [Sealed, Internal, Export ("rightExpression")] NSExpression _RightExpression { get; } - [Mac(10,11),iOS(9,0)] + [Mac (10, 11), iOS (9, 0)] [Sealed, Internal, Export ("trueExpression")] NSExpression _TrueExpression { get; } - [Mac(10,11),iOS(9,0)] + [Mac (10, 11), iOS (9, 0)] [Sealed, Internal, Export ("falseExpression")] NSExpression _FalseExpression { get; } - + [Export ("expressionValueWithObject:context:")] [return: NullAllowed] NSObject EvaluateWith ([NullAllowed] NSObject obj, [NullAllowed] NSMutableDictionary context); } - [iOS (8,0)][Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0)] + [Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] partial interface NSExtensionContext { @@ -4549,31 +4774,32 @@ namespace Foundation NSString ItemsAndErrorsKey { get; } [NoMac] - [iOS (8,2)] + [iOS (8, 2)] [Notification] [Field ("NSExtensionHostWillEnterForegroundNotification")] NSString HostWillEnterForegroundNotification { get; } [NoMac] - [iOS (8,2)] + [iOS (8, 2)] [Notification] [Field ("NSExtensionHostDidEnterBackgroundNotification")] NSString HostDidEnterBackgroundNotification { get; } [NoMac] - [iOS (8,2)] + [iOS (8, 2)] [Notification] [Field ("NSExtensionHostWillResignActiveNotification")] NSString HostWillResignActiveNotification { get; } [NoMac] - [iOS (8,2)] + [iOS (8, 2)] [Notification] [Field ("NSExtensionHostDidBecomeActiveNotification")] NSString HostDidBecomeActiveNotification { get; } } - [iOS (8,0)][Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0)] + [Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] partial interface NSExtensionItem : NSCopying, NSSecureCoding { @@ -4613,8 +4839,8 @@ namespace Foundation NSNull _Null { get; } } - [iOS (8,0)] - [Mac(10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSFormatter))] interface NSLengthFormatter { [Export ("numberFormatter", ArgumentSemantic.Copy)] @@ -4644,10 +4870,10 @@ namespace Foundation delegate void NSLingusticEnumerator (NSString tag, NSRange tokenRange, NSRange sentenceRange, ref bool stop); - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'NaturalLanguage.*' API instead.")] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'NaturalLanguage.*' API instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'NaturalLanguage.*' API instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'NaturalLanguage.*' API instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'NaturalLanguage.*' API instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'NaturalLanguage.*' API instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'NaturalLanguage.*' API instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'NaturalLanguage.*' API instead.")] [BaseType (typeof (NSObject))] interface NSLinguisticTagger { [DesignatedInitializer] @@ -4690,50 +4916,50 @@ namespace Foundation [Export ("string", ArgumentSemantic.Retain)] string AnalysisString { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("tagsInRange:unit:scheme:options:tokenRanges:")] - string[] GetTags (NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, [NullAllowed] out NSValue[] tokenRanges); + string [] GetTags (NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, [NullAllowed] out NSValue [] tokenRanges); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("enumerateTagsInRange:unit:scheme:options:usingBlock:")] void EnumerateTags (NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, LinguisticTagEnumerator enumerator); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("tagAtIndex:unit:scheme:tokenRange:")] [return: NullAllowed] string GetTag (nuint charIndex, NSLinguisticTaggerUnit unit, string scheme, [NullAllowed] ref NSRange tokenRange); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("tokenRangeAtIndex:unit:")] NSRange GetTokenRange (nuint charIndex, NSLinguisticTaggerUnit unit); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("availableTagSchemesForUnit:language:")] - string[] GetAvailableTagSchemes (NSLinguisticTaggerUnit unit, string language); + string [] GetAvailableTagSchemes (NSLinguisticTaggerUnit unit, string language); [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("dominantLanguage")] string DominantLanguage { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("dominantLanguageForString:")] [return: NullAllowed] string GetDominantLanguage (string str); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("tagForString:atIndex:unit:scheme:orthography:tokenRange:")] [return: NullAllowed] string GetTag (string str, nuint charIndex, NSLinguisticTaggerUnit unit, string scheme, [NullAllowed] NSOrthography orthography, [NullAllowed] ref NSRange tokenRange); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("tagsForString:range:unit:scheme:options:orthography:tokenRanges:")] - string[] GetTags (string str, NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue[] tokenRanges); + string [] GetTags (string str, NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue [] tokenRanges); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("enumerateTagsForString:range:unit:scheme:options:orthography:usingBlock:")] void EnumerateTags (string str, NSRange range, NSLinguisticTaggerUnit unit, string scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, LinguisticTagEnumerator enumerator); @@ -4877,7 +5103,7 @@ namespace Foundation [Static] [Export ("autoupdatingCurrentLocale", ArgumentSemantic.Strong)] NSLocale AutoUpdatingCurrentLocale { get; } - + [DesignatedInitializer] [Export ("initWithLocaleIdentifier:")] NativeHandle Constructor (string identifier); @@ -4885,43 +5111,55 @@ namespace Foundation [Export ("localeIdentifier")] string LocaleIdentifier { get; } - [Export ("availableLocaleIdentifiers", ArgumentSemantic.Copy)][Static] + [Export ("availableLocaleIdentifiers", ArgumentSemantic.Copy)] + [Static] string [] AvailableLocaleIdentifiers { get; } - [Export ("ISOLanguageCodes", ArgumentSemantic.Copy)][Static] + [Export ("ISOLanguageCodes", ArgumentSemantic.Copy)] + [Static] string [] ISOLanguageCodes { get; } - [Export ("ISOCurrencyCodes", ArgumentSemantic.Copy)][Static] + [Export ("ISOCurrencyCodes", ArgumentSemantic.Copy)] + [Static] string [] ISOCurrencyCodes { get; } - [Export ("ISOCountryCodes", ArgumentSemantic.Copy)][Static] + [Export ("ISOCountryCodes", ArgumentSemantic.Copy)] + [Static] string [] ISOCountryCodes { get; } - [Export ("commonISOCurrencyCodes", ArgumentSemantic.Copy)][Static] + [Export ("commonISOCurrencyCodes", ArgumentSemantic.Copy)] + [Static] string [] CommonISOCurrencyCodes { get; } - [Export ("preferredLanguages", ArgumentSemantic.Copy)][Static] + [Export ("preferredLanguages", ArgumentSemantic.Copy)] + [Static] string [] PreferredLanguages { get; } - [Export ("componentsFromLocaleIdentifier:")][Static] + [Export ("componentsFromLocaleIdentifier:")] + [Static] NSDictionary ComponentsFromLocaleIdentifier (string identifier); - [Export ("localeIdentifierFromComponents:")][Static] + [Export ("localeIdentifierFromComponents:")] + [Static] string LocaleIdentifierFromComponents (NSDictionary dict); - [Export ("canonicalLanguageIdentifierFromString:")][Static] + [Export ("canonicalLanguageIdentifierFromString:")] + [Static] string CanonicalLanguageIdentifierFromString (string str); - [Export ("canonicalLocaleIdentifierFromString:")][Static] + [Export ("canonicalLocaleIdentifierFromString:")] + [Static] string CanonicalLocaleIdentifierFromString (string str); - [Export ("characterDirectionForLanguage:")][Static] + [Export ("characterDirectionForLanguage:")] + [Static] NSLocaleLanguageDirection GetCharacterDirection (string isoLanguageCode); - [Export ("lineDirectionForLanguage:")][Static] + [Export ("lineDirectionForLanguage:")] + [Static] NSLocaleLanguageDirection GetLineDirection (string isoLanguageCode); - [iOS (7,0)] // already in OSX 10.6 + [iOS (7, 0)] // already in OSX 10.6 [Static] [Export ("localeWithLocaleIdentifier:")] NSLocale FromLocaleIdentifier (string ident); @@ -4938,58 +5176,58 @@ namespace Foundation [Internal, Field ("NSLocaleIdentifier")] NSString _Identifier { get; } - + [Internal, Field ("NSLocaleLanguageCode")] NSString _LanguageCode { get; } - + [Internal, Field ("NSLocaleCountryCode")] NSString _CountryCode { get; } - + [Internal, Field ("NSLocaleScriptCode")] NSString _ScriptCode { get; } - + [Internal, Field ("NSLocaleVariantCode")] NSString _VariantCode { get; } - + [Internal, Field ("NSLocaleExemplarCharacterSet")] NSString _ExemplarCharacterSet { get; } - + [Internal, Field ("NSLocaleCalendar")] NSString _Calendar { get; } - + [Internal, Field ("NSLocaleCollationIdentifier")] NSString _CollationIdentifier { get; } - + [Internal, Field ("NSLocaleUsesMetricSystem")] NSString _UsesMetricSystem { get; } - + [Internal, Field ("NSLocaleMeasurementSystem")] NSString _MeasurementSystem { get; } - + [Internal, Field ("NSLocaleDecimalSeparator")] NSString _DecimalSeparator { get; } - + [Internal, Field ("NSLocaleGroupingSeparator")] NSString _GroupingSeparator { get; } - + [Internal, Field ("NSLocaleCurrencySymbol")] NSString _CurrencySymbol { get; } - + [Internal, Field ("NSLocaleCurrencyCode")] NSString _CurrencyCode { get; } - + [Internal, Field ("NSLocaleCollatorIdentifier")] NSString _CollatorIdentifier { get; } - + [Internal, Field ("NSLocaleQuotationBeginDelimiterKey")] NSString _QuotationBeginDelimiterKey { get; } - + [Internal, Field ("NSLocaleQuotationEndDelimiterKey")] NSString _QuotationEndDelimiterKey { get; } - + [Internal, Field ("NSLocaleAlternateQuotationBeginDelimiterKey")] NSString _AlternateQuotationBeginDelimiterKey { get; } - + [Internal, Field ("NSLocaleAlternateQuotationEndDelimiterKey")] NSString _AlternateQuotationEndDelimiterKey { get; } @@ -4999,7 +5237,7 @@ namespace Foundation [Export ("calendarIdentifier")] string CalendarIdentifier { get; } - [Watch (3,0), TV (10,0), Mac (10,12), iOS (10,0)] + [Watch (3, 0), TV (10, 0), Mac (10, 12), iOS (10, 0)] [Export ("localizedStringForCalendarIdentifier:")] [return: NullAllowed] string GetLocalizedCalendarIdentifier (string calendarIdentifier); @@ -5054,38 +5292,41 @@ namespace Foundation [Export ("numberOfMatchesInString:options:range:")] nuint GetNumberOfMatches (NSString str, NSMatchingOptions options, NSRange range); - + [Export ("firstMatchInString:options:range:")] [return: NullAllowed] NSTextCheckingResult FindFirstMatch (string str, NSMatchingOptions options, NSRange range); - + [Export ("rangeOfFirstMatchInString:options:range:")] NSRange GetRangeOfFirstMatch (string str, NSMatchingOptions options, NSRange range); - + /* From the NSReplacement category */ [Export ("stringByReplacingMatchesInString:options:range:withTemplate:")] string ReplaceMatches (string sourceString, NSMatchingOptions options, NSRange range, string template); - + [Export ("replaceMatchesInString:options:range:withTemplate:")] - nuint ReplaceMatches (NSMutableString mutableString, NSMatchingOptions options, NSRange range, NSString template); + nuint ReplaceMatches (NSMutableString mutableString, NSMatchingOptions options, NSRange range, NSString template); [Export ("replacementStringForResult:inString:offset:template:")] NSString GetReplacementString (NSTextCheckingResult result, NSString str, nint offset, NSString template); [Static, Export ("escapedTemplateForString:")] NSString GetEscapedTemplate (NSString str); - + } - + [BaseType (typeof (NSObject))] // init returns NIL [DisableDefaultCtor] interface NSRunLoop { - [Export ("currentRunLoop", ArgumentSemantic.Strong)][Static][IsThreadStatic] + [Export ("currentRunLoop", ArgumentSemantic.Strong)] + [Static] + [IsThreadStatic] NSRunLoop Current { get; } - [Export ("mainRunLoop", ArgumentSemantic.Strong)][Static] + [Export ("mainRunLoop", ArgumentSemantic.Strong)] + [Static] NSRunLoop Main { get; } [Export ("currentMode")] @@ -5127,17 +5368,26 @@ namespace Foundation [Wrap ("RunUntil (runLoopMode.GetConstant ()!, limitDate)")] bool RunUntil (NSRunLoopMode runLoopMode, NSDate limitDate); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("performBlock:")] void Perform (Action block); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("performInModes:block:")] - void Perform (NSString[] modes, Action block); + void Perform (NSString [] modes, Action block); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Wrap ("Perform (modes.GetConstants ()!, block)")] - void Perform (NSRunLoopMode[] modes, Action block); + void Perform (NSRunLoopMode [] modes, Action block); #if !NET [Obsolete ("Use the 'NSRunLoopMode' enum instead.")] @@ -5149,8 +5399,8 @@ namespace Foundation NSString NSRunLoopCommonModes { get; } [Obsolete ("Use the 'NSRunLoopMode' enum instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] - [NoiOS, NoWatch, NoTV, MacCatalyst (15,0)] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] + [NoiOS, NoWatch, NoTV, MacCatalyst (15, 0)] [Field ("NSConnectionReplyMode")] NSString NSRunLoopConnectionReplyMode { get; } @@ -5165,7 +5415,8 @@ namespace Foundation NSString NSRunLoopEventTracking { get; } [Obsolete ("Use the 'NSRunLoopMode' enum instead.")] - [NoMac][NoWatch] + [NoMac] + [NoWatch] [Field ("UITrackingRunLoopMode", "UIKit")] NSString UITrackingRunLoopMode { get; } #endif @@ -5174,15 +5425,16 @@ namespace Foundation [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface NSSet : NSSecureCoding, NSMutableCopying { - [Export ("set")][Static] + [Export ("set")] + [Static] NSSet CreateSet (); [Export ("initWithSet:")] NativeHandle Constructor (NSSet other); - + [Export ("initWithArray:")] NativeHandle Constructor (NSArray other); - + [Export ("count")] nuint Count { get; } @@ -5210,7 +5462,8 @@ namespace Foundation [Export ("containsObject:")] bool Contains (NSObject id); - [Export ("allObjects")][Internal] + [Export ("allObjects")] + [Internal] IntPtr _AllObjects (); [Export ("isEqualToSet:")] @@ -5218,10 +5471,10 @@ namespace Foundation [Export ("objectEnumerator"), Internal] NSEnumerator _GetEnumerator (); - + [Export ("isSubsetOfSet:")] bool IsSubsetOf (NSSet other); - + [Export ("enumerateObjectsUsingBlock:")] void Enumerate (NSSetEnumerator enumerator); @@ -5242,7 +5495,7 @@ namespace Foundation NativeHandle _SetWithArray (NativeHandle array); } - interface NSSet : NSSet {} + interface NSSet : NSSet { } [BaseType (typeof (NSObject))] interface NSSortDescriptor : NSSecureCoding, NSCopying { @@ -5271,17 +5524,17 @@ namespace Foundation [Export ("reversedSortDescriptor")] NSObject ReversedSortDescriptor { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("allowEvaluation")] void AllowEvaluation (); } - + [Category, BaseType (typeof (NSOrderedSet))] partial interface NSKeyValueSorting_NSOrderedSet { [Export ("sortedArrayUsingDescriptors:")] NSObject [] GetSortedArray (NSSortDescriptor [] sortDescriptors); } - + #pragma warning disable 618 [Category, BaseType (typeof (NSMutableArray))] #pragma warning restore 618 @@ -5295,8 +5548,8 @@ namespace Foundation [Export ("sortUsingDescriptors:")] void SortUsingDescriptors (NSSortDescriptor [] sortDescriptors); } - - [BaseType (typeof(NSObject))] + + [BaseType (typeof (NSObject))] [Dispose ("if (disposing) { Invalidate (); } ", Optimizable = true)] // init returns NIL [DisableDefaultCtor] @@ -5305,7 +5558,10 @@ namespace Foundation [Static, Export ("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:")] NSTimer CreateScheduledTimer (double seconds, NSObject target, Selector selector, [NullAllowed] NSObject userInfo, bool repeats); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Static] [Export ("scheduledTimerWithTimeInterval:repeats:block:")] NSTimer CreateScheduledTimer (double interval, bool repeats, Action block); @@ -5313,7 +5569,10 @@ namespace Foundation [Static, Export ("timerWithTimeInterval:target:selector:userInfo:repeats:")] NSTimer CreateTimer (double seconds, NSObject target, Selector selector, [NullAllowed] NSObject userInfo, bool repeats); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Static] [Export ("timerWithTimeInterval:repeats:block:")] NSTimer CreateTimer (double interval, bool repeats, Action block); @@ -5322,7 +5581,10 @@ namespace Foundation [Export ("initWithFireDate:interval:target:selector:userInfo:repeats:")] NativeHandle Constructor (NSDate date, double seconds, NSObject target, Selector selector, [NullAllowed] NSObject userInfo, bool repeats); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("initWithFireDate:interval:repeats:block:")] NativeHandle Constructor (NSDate date, double seconds, bool repeats, Action block); @@ -5347,24 +5609,24 @@ namespace Foundation [Export ("userInfo")] NSObject UserInfo { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("tolerance")] double Tolerance { get; set; } } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] // NSTimeZone is an abstract class that defines the behavior of time zone objects. -> http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSTimeZone_Class/Reference/Reference.html // calling 'init' returns a NIL pointer, i.e. an unusable instance [DisableDefaultCtor] interface NSTimeZone : NSSecureCoding, NSCopying { [Export ("initWithName:")] NativeHandle Constructor (string name); - + [Export ("initWithName:data:")] NativeHandle Constructor (string name, NSData data); [Export ("name")] - string Name { get; } + string Name { get; } [Export ("data")] NSData Data { get; } @@ -5396,7 +5658,7 @@ namespace Foundation [Static, Export ("timeZoneWithName:data:")] NSTimeZone FromName (string tzName, NSData data); - + [Static] [Export ("timeZoneForSecondsFromGMT:")] NSTimeZone FromGMT (nint seconds); @@ -5415,12 +5677,12 @@ namespace Foundation [Export ("systemTimeZone", ArgumentSemantic.Copy), Static] NSTimeZone SystemTimeZone { get; } - + [Export ("timeZoneWithAbbreviation:"), Static] NSTimeZone FromAbbreviation (string abbreviation); [Export ("knownTimeZoneNames"), Static, Internal] - string[] _KnownTimeZoneNames { get; } + string [] _KnownTimeZoneNames { get; } [Export ("timeZoneDataVersion"), Static] string DataVersion { get; } @@ -5432,7 +5694,7 @@ namespace Foundation interface NSUbiquitousKeyValueStoreChangeEventArgs { [Export ("NSUbiquitousKeyValueStoreChangedKeysKey")] string [] ChangedKeys { get; } - + [Export ("NSUbiquitousKeyValueStoreChangeReasonKey")] NSUbiquitousKeyValueStoreChangeReason ChangeReason { get; } } @@ -5520,7 +5782,7 @@ namespace Foundation NSString ChangedKeysKey { get; } } - [BaseType (typeof (NSObject), Name="NSUUID")] + [BaseType (typeof (NSObject), Name = "NSUUID")] [DesignatedDefaultCtor] interface NSUuid : NSSecureCoding, NSCopying { [Export ("initWithUUIDString:")] @@ -5535,13 +5797,14 @@ namespace Foundation [Export ("UUIDString")] string AsString (); - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("compare:")] NSComparisonResult Compare (NSUuid otherUuid); } - [iOS (8,0)][Mac (10,10), Watch (2,0), TV (9,0)] // .objc_class_name_NSUserActivity", referenced from '' not found + [iOS (8, 0)] + [Mac (10, 10), Watch (2, 0), TV (9, 0)] // .objc_class_name_NSUserActivity", referenced from '' not found [BaseType (typeof (NSObject))] [DisableDefaultCtor] // xcode 8 beta 4 marks it as API_DEPRECATED partial interface NSUserActivity @@ -5555,75 +5818,76 @@ namespace Foundation [Export ("activityType")] string ActivityType { get; } - + [NullAllowed] // by default this property is null [Export ("title")] string Title { get; set; } - + [Export ("userInfo", ArgumentSemantic.Copy), NullAllowed] NSDictionary UserInfo { get; set; } - + [Export ("needsSave")] bool NeedsSave { get; set; } - + [NullAllowed] // by default this property is null [Export ("webpageURL", ArgumentSemantic.Copy)] NSUrl WebPageUrl { get; set; } - + [Export ("supportsContinuationStreams")] bool SupportsContinuationStreams { get; set; } - + [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] NSUserActivityDelegate Delegate { get; set; } - + [Export ("addUserInfoEntriesFromDictionary:")] void AddUserInfoEntries (NSDictionary otherDictionary); - + [Export ("becomeCurrent")] void BecomeCurrent (); - + [Export ("invalidate")] void Invalidate (); - - [Export ("getContinuationStreamsWithCompletionHandler:")] - [Async (ResultTypeName="NSUserActivityContinuation")] - void GetContinuationStreams (Action completionHandler); - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Export ("getContinuationStreamsWithCompletionHandler:")] + [Async (ResultTypeName = "NSUserActivityContinuation")] + void GetContinuationStreams (Action completionHandler); + + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("requiredUserInfoKeys", ArgumentSemantic.Copy)] NSSet RequiredUserInfoKeys { get; set; } - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("expirationDate", ArgumentSemantic.Copy)] NSDate ExpirationDate { get; set; } - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("keywords", ArgumentSemantic.Copy)] NSSet Keywords { get; set; } - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("resignCurrent")] void ResignCurrent (); - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("eligibleForHandoff")] bool EligibleForHandoff { [Bind ("isEligibleForHandoff")] get; set; } - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("eligibleForSearch")] bool EligibleForSearch { [Bind ("isEligibleForSearch")] get; set; } - [Mac(10,11), iOS (9,0), Watch (3,0), TV (10,0)] + [Mac (10, 11), iOS (9, 0), Watch (3, 0), TV (10, 0)] [Export ("eligibleForPublicIndexing")] bool EligibleForPublicIndexing { [Bind ("isEligibleForPublicIndexing")] get; set; } - - [iOS (9,0)] - [Mac (10,13)] - [NoWatch][NoTV] + + [iOS (9, 0)] + [Mac (10, 13)] + [NoWatch] + [NoTV] [NullAllowed] [Export ("contentAttributeSet", ArgumentSemantic.Copy)] // From CSSearchableItemAttributeSet.h CSSearchableItemAttributeSet ContentAttributeSet { get; set; } @@ -5634,25 +5898,25 @@ namespace Foundation // From NSUserActivity (CIBarcodeDescriptor) - [TV (11,3), Mac (10,13,4), iOS (11,3), NoWatch] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3), NoWatch] [NullAllowed, Export ("detectedBarcodeDescriptor", ArgumentSemantic.Copy)] CIBarcodeDescriptor DetectedBarcodeDescriptor { get; } // From NSUserActivity (CLSDeepLinks) [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11, 0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [Export ("isClassKitDeepLink")] bool IsClassKitDeepLink { get; } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, Mac (11, 0), iOS (11,4)] + [NoWatch, NoTV, Mac (11, 0), iOS (11, 4)] [NullAllowed, Export ("contextIdentifierPath", ArgumentSemantic.Strong)] - string[] ContextIdentifierPath { get; } + string [] ContextIdentifierPath { get; } // From NSUserActivity (IntentsAdditions) - [Watch (5,0), NoTV, Mac (12,0), iOS (12,0)] + [Watch (5, 0), NoTV, Mac (12, 0), iOS (12, 0)] [NullAllowed, Export ("suggestedInvocationPhrase")] string SuggestedInvocationPhrase { // This _simply_ ensure that the Intents namespace (via the enum) will be present which, @@ -5670,19 +5934,19 @@ namespace Foundation bool EligibleForPrediction { [Bind ("isEligibleForPrediction")] get; set; } [Watch (5, 0), NoTV, iOS (12, 0)] - [Mac (10,15)] + [Mac (10, 15)] [NullAllowed, Export ("persistentIdentifier")] string PersistentIdentifier { get; set; } - [Watch (5,0), NoTV, iOS (12,0)] - [Mac (10,15)] + [Watch (5, 0), NoTV, iOS (12, 0)] + [Mac (10, 15)] [Static] [Async] [Export ("deleteSavedUserActivitiesWithPersistentIdentifiers:completionHandler:")] - void DeleteSavedUserActivities (string[] persistentIdentifiers, Action handler); + void DeleteSavedUserActivities (string [] persistentIdentifiers, Action handler); - [Watch (5,0), NoTV, iOS (12,0)] - [Mac (10,15)] + [Watch (5, 0), NoTV, iOS (12, 0)] + [Mac (10, 15)] [Static] [Async] [Export ("deleteAllSavedUserActivitiesWithCompletionHandler:")] @@ -5690,7 +5954,7 @@ namespace Foundation // Inlined from NSUserActivity (UISceneActivationConditions) - [iOS (13,0), TV (13,0), Mac (10,15), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Mac (10, 15), Watch (6, 0)] [NullAllowed, Export ("targetContentIdentifier")] string TargetContentIdentifier { get; set; } @@ -5703,27 +5967,29 @@ namespace Foundation #endif } - [iOS (8,0)][Mac (10,10)] // same as NSUserActivity + [iOS (8, 0)] + [Mac (10, 10)] // same as NSUserActivity [Static] partial interface NSUserActivityType { [Field ("NSUserActivityTypeBrowsingWeb")] NSString BrowsingWeb { get; } } - [iOS (8,0)][Mac (10,10), Watch (3,0), TV (9,0)] // same as NSUserActivity + [iOS (8, 0)] + [Mac (10, 10), Watch (3, 0), TV (9, 0)] // same as NSUserActivity [Protocol, Model] [BaseType (typeof (NSObject))] partial interface NSUserActivityDelegate { [Export ("userActivityWillSave:")] void UserActivityWillSave (NSUserActivity userActivity); - + [Export ("userActivityWasContinued:")] void UserActivityWasContinued (NSUserActivity userActivity); - + [Export ("userActivity:didReceiveInputStream:outputStream:")] void UserActivityReceivedData (NSUserActivity userActivity, NSInputStream inputStream, NSOutputStream outputStream); } - + [BaseType (typeof (NSObject))] interface NSUserDefaults { [Export ("URLForKey:")] @@ -5736,116 +6002,118 @@ namespace Foundation [Static] [Export ("standardUserDefaults", ArgumentSemantic.Strong)] NSUserDefaults StandardUserDefaults { get; } - + [Static] [Export ("resetStandardUserDefaults")] void ResetStandardUserDefaults (); - + [Internal] [Export ("initWithUser:")] IntPtr InitWithUserName (string username); [Internal] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("initWithSuiteName:")] IntPtr InitWithSuiteName (string suiteName); - [Export ("objectForKey:")][Internal] + [Export ("objectForKey:")] + [Internal] NSObject ObjectForKey (string defaultName); - - [Export ("setObject:forKey:")][Internal] + + [Export ("setObject:forKey:")] + [Internal] void SetObjectForKey (NSObject value, string defaultName); - + [Export ("removeObjectForKey:")] void RemoveObject (string defaultName); - + [Export ("stringForKey:")] string StringForKey (string defaultName); - + [Export ("arrayForKey:")] NSObject [] ArrayForKey (string defaultName); - + [Export ("dictionaryForKey:")] NSDictionary DictionaryForKey (string defaultName); - + [Export ("dataForKey:")] NSData DataForKey (string defaultName); - + [Export ("stringArrayForKey:")] string [] StringArrayForKey (string defaultName); - + [Export ("integerForKey:")] nint IntForKey (string defaultName); - + [Export ("floatForKey:")] float FloatForKey (string defaultName); // this is defined as float, not CGFloat. - + [Export ("doubleForKey:")] double DoubleForKey (string defaultName); - + [Export ("boolForKey:")] bool BoolForKey (string defaultName); - + [Export ("setInteger:forKey:")] void SetInt (nint value, string defaultName); - + [Export ("setFloat:forKey:")] void SetFloat (float value /* this is defined as float, not CGFloat */, string defaultName); - + [Export ("setDouble:forKey:")] void SetDouble (double value, string defaultName); - + [Export ("setBool:forKey:")] - void SetBool (bool value, string defaultName); - + void SetBool (bool value, string defaultName); + [Export ("registerDefaults:")] void RegisterDefaults (NSDictionary registrationDictionary); - + [Export ("addSuiteNamed:")] void AddSuite (string suiteName); - + [Export ("removeSuiteNamed:")] void RemoveSuite (string suiteName); - + [Export ("dictionaryRepresentation")] NSDictionary ToDictionary (); - + [Export ("volatileDomainNames")] #if XAMCORE_5_0 string [] VolatileDomainNames { get; } #else string [] VolatileDomainNames (); #endif - + [Export ("volatileDomainForName:")] NSDictionary GetVolatileDomain (string domainName); - + [Export ("setVolatileDomain:forName:")] void SetVolatileDomain (NSDictionary domain, string domainName); - + [Export ("removeVolatileDomainForName:")] void RemoveVolatileDomain (string domainName); - + [Deprecated (PlatformName.iOS, 7, 0)] [Deprecated (PlatformName.MacOSX, 10, 9)] [Export ("persistentDomainNames")] string [] PersistentDomainNames (); - + [Export ("persistentDomainForName:")] NSDictionary PersistentDomainForName (string domainName); - + [Export ("setPersistentDomain:forName:")] void SetPersistentDomain (NSDictionary domain, string domainName); - + [Export ("removePersistentDomainForName:")] void RemovePersistentDomain (string domainName); - + [Export ("synchronize")] bool Synchronize (); - + [Export ("objectIsForcedForKey:")] bool ObjectIsForced (string key); - + [Export ("objectIsForcedForKey:inDomain:")] bool ObjectIsForced (string key, string domain); @@ -5858,28 +6126,34 @@ namespace Foundation [Field ("NSRegistrationDomain")] NSString RegistrationDomain { get; } - [iOS (9,3)] - [Watch (2,2)] // Headers say watchOS 2.0, but they're lying. - [NoMac][NoTV] + [iOS (9, 3)] + [Watch (2, 2)] // Headers say watchOS 2.0, but they're lying. + [NoMac] + [NoTV] [Notification] [Field ("NSUserDefaultsSizeLimitExceededNotification")] NSString SizeLimitExceededNotification { get; } - [iOS (10,0)][TV (10,0)][Watch (3,0)][NoMac] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [NoMac] [Notification] [Field ("NSUbiquitousUserDefaultsNoCloudAccountNotification")] NSString NoCloudAccountNotification { get; } - [iOS (9,3)] - [Watch (2,2)] // Headers say watchOS 2.0, but they're lying. - [NoMac][NoTV] + [iOS (9, 3)] + [Watch (2, 2)] // Headers say watchOS 2.0, but they're lying. + [NoMac] + [NoTV] [Notification] [Field ("NSUbiquitousUserDefaultsDidChangeAccountsNotification")] NSString DidChangeAccountsNotification { get; } - [iOS (9,3)] - [Watch (2,2)] // Headers say watchOS 2.0, but they're lying. - [NoMac][NoTV] + [iOS (9, 3)] + [Watch (2, 2)] // Headers say watchOS 2.0, but they're lying. + [NoMac] + [NoTV] [Notification] [Field ("NSUbiquitousUserDefaultsCompletedInitialSyncNotification")] NSString CompletedInitialSyncNotification { get; } @@ -5888,8 +6162,8 @@ namespace Foundation [Field ("NSUserDefaultsDidChangeNotification")] NSString DidChangeNotification { get; } } - - [BaseType (typeof (NSObject), Name="NSURL")] + + [BaseType (typeof (NSObject), Name = "NSURL")] // init returns NIL [DisableDefaultCtor] partial interface NSUrl : NSSecureCoding, NSCopying @@ -5901,10 +6175,10 @@ namespace Foundation , QLPreviewItem #endif { - [Deprecated (PlatformName.iOS, 9, 0, message : "Use 'NSUrlComponents' instead.")] - [Deprecated (PlatformName.WatchOS, 2, 0, message : "Use 'NSUrlComponents' instead.")] - [Deprecated (PlatformName.TvOS, 9, 0, message : "Use 'NSUrlComponents' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'NSUrlComponents' instead.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'NSUrlComponents' instead.")] + [Deprecated (PlatformName.WatchOS, 2, 0, message: "Use 'NSUrlComponents' instead.")] + [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'NSUrlComponents' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSUrlComponents' instead.")] [Export ("initWithScheme:host:path:")] NativeHandle Constructor (string scheme, string host, string path); @@ -5920,12 +6194,15 @@ namespace Foundation NativeHandle Constructor (string urlString, NSUrl relativeToUrl); [return: NullAllowed] - [Export ("URLWithString:")][Static] + [Export ("URLWithString:")] + [Static] NSUrl FromString ([NullAllowed] string s); - [Export ("URLWithString:relativeToURL:")][Internal][Static] + [Export ("URLWithString:relativeToURL:")] + [Internal] + [Static] NSUrl _FromStringRelative (string url, NSUrl relative); - + [Export ("absoluteString")] [NullAllowed] string AbsoluteString { get; } @@ -5952,33 +6229,33 @@ namespace Foundation [Export ("isFileURL")] bool IsFileUrl { get; } - + [Export ("isFileReferenceURL")] bool IsFileReferenceUrl { get; } - [Deprecated (PlatformName.MacOSX, 10,15, message: "Always return 'null'. Use and parse 'Path' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Always return 'null'. Use and parse 'Path' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Always return 'null'. Use and parse 'Path' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Always return 'null'. Use and parse 'Path' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Always return 'null'. Use and parse 'Path' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Always return 'null'. Use and parse 'Path' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Always return 'null'. Use and parse 'Path' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Always return 'null'. Use and parse 'Path' instead.")] [Export ("parameterString")] [NullAllowed] - string ParameterString { get;} + string ParameterString { get; } [Export ("password")] [NullAllowed] - string Password { get;} + string Password { get; } [Export ("path")] [NullAllowed] - string Path { get;} + string Path { get; } [Export ("query")] [NullAllowed] - string Query { get;} + string Query { get; } [Export ("relativePath")] [NullAllowed] - string RelativePath { get;} + string RelativePath { get; } [Export ("pathComponents")] [NullAllowed] @@ -5993,19 +6270,19 @@ namespace Foundation string PathExtension { get; } [Export ("relativeString")] - string RelativeString { get;} + string RelativeString { get; } [Export ("resourceSpecifier")] [NullAllowed] - string ResourceSpecifier { get;} + string ResourceSpecifier { get; } [Export ("scheme")] [NullAllowed] - string Scheme { get;} + string Scheme { get; } [Export ("user")] [NullAllowed] - string User { get;} + string User { get; } [Export ("standardizedURL")] [NullAllowed] @@ -6023,64 +6300,70 @@ namespace Foundation [Export ("URLByDeletingPathExtension")] NSUrl RemovePathExtension (); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("getFileSystemRepresentation:maxLength:")] bool GetFileSystemRepresentation (IntPtr buffer, nint maxBufferLength); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("fileSystemRepresentation")] IntPtr GetFileSystemRepresentationAsUtf8Ptr { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("removeCachedResourceValueForKey:")] void RemoveCachedResourceValueForKey (NSString key); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("removeAllCachedResourceValues")] void RemoveAllCachedResourceValues (); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("setTemporaryResourceValue:forKey:")] void SetTemporaryResourceValue (NSObject value, NSString key); [DesignatedInitializer] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:")] NativeHandle Constructor (IntPtr ptrUtf8path, bool isDir, [NullAllowed] NSUrl baseURL); - [iOS (7,0), Mac (10, 9), Static, Export ("fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:")] + [iOS (7, 0), Mac (10, 9), Static, Export ("fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:")] NSUrl FromUTF8Pointer (IntPtr ptrUtf8path, bool isDir, [NullAllowed] NSUrl baseURL); /* These methods come from NURL_AppKitAdditions */ - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("URLFromPasteboard:")] [Static] [return: NullAllowed] NSUrl FromPasteboard (NSPasteboard pasteboard); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("writeToPasteboard:")] void WriteToPasteboard (NSPasteboard pasteboard); - [Export("bookmarkDataWithContentsOfURL:error:")] + [Export ("bookmarkDataWithContentsOfURL:error:")] [Static] NSData GetBookmarkData (NSUrl bookmarkFileUrl, out NSError error); - [Export("URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")] + [Export ("URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:")] [Static] NSUrl FromBookmarkData (NSData data, NSUrlBookmarkResolutionOptions options, [NullAllowed] NSUrl relativeToUrl, out bool isStale, out NSError error); - [Export("writeBookmarkData:toURL:options:error:")] + [Export ("writeBookmarkData:toURL:options:error:")] [Static] bool WriteBookmarkData (NSData data, NSUrl bookmarkFileUrl, NSUrlBookmarkCreationOptions options, out NSError error); - [Export("filePathURL")] + [Export ("filePathURL")] [NullAllowed] NSUrl FilePathUrl { get; } - [Export("fileReferenceURL")] + [Export ("fileReferenceURL")] [NullAllowed] - NSUrl FileReferenceUrl { get; } + NSUrl FileReferenceUrl { get; } [Export ("getResourceValue:forKey:error:"), Internal] bool GetResourceValue (out NSObject value, NSString key, out NSError error); @@ -6090,7 +6373,7 @@ namespace Foundation [Export ("setResourceValue:forKey:error:"), Internal] bool SetResourceValue (NSObject value, NSString key, out NSError error); - + [Export ("port"), Internal] [NullAllowed] NSNumber PortNumber { get; } @@ -6149,10 +6432,10 @@ namespace Foundation [Field ("NSURLVolumeURLKey")] NSString VolumeURLKey { get; } - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'ContentTypeKey' instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'ContentTypeKey' instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'ContentTypeKey' instead.")] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'ContentTypeKey' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'ContentTypeKey' instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'ContentTypeKey' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'ContentTypeKey' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'ContentTypeKey' instead.")] [Field ("NSURLTypeIdentifierKey")] NSString TypeIdentifierKey { get; } @@ -6181,7 +6464,7 @@ namespace Foundation NSString FileAllocatedSizeKey { get; } [Field ("NSURLIsAliasFileKey")] - NSString IsAliasFileKey { get; } + NSString IsAliasFileKey { get; } [Field ("NSURLVolumeLocalizedFormatDescriptionKey")] NSString VolumeLocalizedFormatDescriptionKey { get; } @@ -6369,8 +6652,8 @@ namespace Foundation [Field ("NSURLVolumeSupportsAccessPermissionsKey")] NSString VolumeSupportsAccessPermissionsKey { get; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLVolumeSupportsFileProtectionKey")] NSString VolumeSupportsFileProtectionKey { get; } @@ -6402,12 +6685,12 @@ namespace Foundation NSString UbiquitousItemIsUploadingKey { get; } [Field ("NSURLUbiquitousItemPercentDownloadedKey")] - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'NSMetadataQuery.UbiquitousItemPercentDownloadedKey' on 'NSMetadataItem' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'NSMetadataQuery.UbiquitousItemPercentDownloadedKey' on 'NSMetadataItem' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'NSMetadataQuery.UbiquitousItemPercentDownloadedKey' on 'NSMetadataItem' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'NSMetadataQuery.UbiquitousItemPercentDownloadedKey' on 'NSMetadataItem' instead.")] NSString UbiquitousItemPercentDownloadedKey { get; } - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'NSMetadataQuery.UbiquitousItemPercentUploadedKey' on 'NSMetadataItem' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'NSMetadataQuery.UbiquitousItemPercentUploadedKey' on 'NSMetadataItem' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'NSMetadataQuery.UbiquitousItemPercentUploadedKey' on 'NSMetadataItem' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'NSMetadataQuery.UbiquitousItemPercentUploadedKey' on 'NSMetadataItem' instead.")] [Field ("NSURLUbiquitousItemPercentUploadedKey")] NSString UbiquitousItemPercentUploadedKey { get; } @@ -6459,71 +6742,71 @@ namespace Foundation [Field ("NSURLPathKey")] NSString PathKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemDownloadingStatusKey")] NSString UbiquitousItemDownloadingStatusKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemDownloadingErrorKey")] NSString UbiquitousItemDownloadingErrorKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemUploadingErrorKey")] NSString UbiquitousItemUploadingErrorKey { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemDownloadingStatusNotDownloaded")] NSString UbiquitousItemDownloadingStatusNotDownloaded { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemDownloadingStatusDownloaded")] NSString UbiquitousItemDownloadingStatusDownloaded { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLUbiquitousItemDownloadingStatusCurrent")] NSString UbiquitousItemDownloadingStatusCurrent { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("startAccessingSecurityScopedResource")] bool StartAccessingSecurityScopedResource (); - [iOS (8,0)] + [iOS (8, 0)] [Export ("stopAccessingSecurityScopedResource")] void StopAccessingSecurityScopedResource (); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Static, Export ("URLByResolvingAliasFileAtURL:options:error:")] - NSUrl ResolveAlias (NSUrl aliasFileUrl, NSUrlBookmarkResolutionOptions options, out NSError error); + NSUrl ResolveAlias (NSUrl aliasFileUrl, NSUrlBookmarkResolutionOptions options, out NSError error); [Static, Export ("fileURLWithPathComponents:")] NSUrl CreateFileUrl (string [] pathComponents); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLAddedToDirectoryDateKey")] NSString AddedToDirectoryDateKey { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLDocumentIdentifierKey")] NSString DocumentIdentifierKey { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLGenerationIdentifierKey")] NSString GenerationIdentifierKey { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLThumbnailDictionaryKey")] NSString ThumbnailDictionaryKey { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLUbiquitousItemContainerDisplayNameKey")] NSString UbiquitousItemContainerDisplayNameKey { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("NSURLUbiquitousItemIsExcludedFromSyncKey")] NSString UbiquitousItemIsExcludedFromSyncKey { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("NSURLUbiquitousItemDownloadRequestedKey")] NSString UbiquitousItemDownloadRequestedKey { get; } @@ -6531,135 +6814,153 @@ namespace Foundation // iOS 9.0/osx 10.11 additions // [DesignatedInitializer] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("initFileURLWithPath:isDirectory:relativeToURL:")] NativeHandle Constructor (string path, bool isDir, [NullAllowed] NSUrl relativeToUrl); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("fileURLWithPath:isDirectory:relativeToURL:")] NSUrl CreateFileUrl (string path, bool isDir, [NullAllowed] NSUrl relativeToUrl); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("fileURLWithPath:relativeToURL:")] NSUrl CreateFileUrl (string path, [NullAllowed] NSUrl relativeToUrl); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("URLWithDataRepresentation:relativeToURL:")] NSUrl CreateWithDataRepresentation (NSData data, [NullAllowed] NSUrl relativeToUrl); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("absoluteURLWithDataRepresentation:relativeToURL:")] NSUrl CreateAbsoluteUrlWithDataRepresentation (NSData data, [NullAllowed] NSUrl relativeToUrl); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("dataRepresentation", ArgumentSemantic.Copy)] NSData DataRepresentation { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("hasDirectoryPath")] bool HasDirectoryPath { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("NSURLIsApplicationKey")] NSString IsApplicationKey { get; } - [iOS (9,0), Mac(11,0)] + [iOS (9, 0), Mac (11, 0)] [Field ("NSURLFileProtectionKey")] NSString FileProtectionKey { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("NSURLFileProtectionNone")] NSString FileProtectionNone { get; } - - [iOS (9,0), Mac(10,11)] + + [iOS (9, 0), Mac (10, 11)] [Field ("NSURLFileProtectionComplete")] NSString FileProtectionComplete { get; } - - [iOS (9,0), Mac(10,11)] + + [iOS (9, 0), Mac (10, 11)] [Field ("NSURLFileProtectionCompleteUnlessOpen")] NSString FileProtectionCompleteUnlessOpen { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Field ("NSURLFileProtectionCompleteUntilFirstUserAuthentication")] NSString FileProtectionCompleteUntilFirstUserAuthentication { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLContentTypeKey")] NSString ContentTypeKey { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLFileContentIdentifierKey")] NSString FileContentIdentifierKey { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLIsPurgeableKey")] NSString IsPurgeableKey { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLIsSparseKey")] NSString IsSparseKey { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLMayHaveExtendedAttributesKey")] NSString MayHaveExtendedAttributesKey { get; } - [Watch (7,0)][TV (14,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSURLMayShareFileContentKey")] NSString MayShareFileContentKey { get; } // From the NSItemProviderReading protocol - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - new string[] ReadableTypeIdentifiers { get; } + new string [] ReadableTypeIdentifiers { get; } // From the NSItemProviderReading protocol - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("objectWithItemProviderData:typeIdentifier:error:")] [return: NullAllowed] new NSUrl GetObject (NSData data, string typeIdentifier, [NullAllowed] out NSError outError); // From the NSItemProviderWriting protocol - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - new string[] WritableTypeIdentifiers { get; } + new string [] WritableTypeIdentifiers { get; } } - + // // Just a category so we can document the three methods together // [Category, BaseType (typeof (NSUrl))] partial interface NSUrl_PromisedItems { - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("checkPromisedItemIsReachableAndReturnError:")] bool CheckPromisedItemIsReachable (out NSError error); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("getPromisedItemResourceValue:forKey:error:")] bool GetPromisedItemResourceValue (out NSObject value, NSString key, out NSError error); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("promisedItemResourceValuesForKeys:error:")] [return: NullAllowed] NSDictionary GetPromisedItemResourceValues (NSString [] keys, out NSError error); - + } - [iOS (8,0), Mac (10,10)] - [BaseType (typeof (NSObject), Name="NSURLQueryItem")] + [iOS (8, 0), Mac (10, 10)] + [BaseType (typeof (NSObject), Name = "NSURLQueryItem")] interface NSUrlQueryItem : NSSecureCoding, NSCopying { [DesignatedInitializer] [Export ("initWithName:value:")] @@ -6674,38 +6975,38 @@ namespace Foundation [Category, BaseType (typeof (NSCharacterSet))] partial interface NSUrlUtilities_NSCharacterSet { - [iOS (7,0), Static, Export ("URLUserAllowedCharacterSet", ArgumentSemantic.Copy)] + [iOS (7, 0), Static, Export ("URLUserAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlUserAllowedCharacterSet { get; } - - [iOS (7,0), Static, Export ("URLPasswordAllowedCharacterSet", ArgumentSemantic.Copy)] + + [iOS (7, 0), Static, Export ("URLPasswordAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlPasswordAllowedCharacterSet { get; } - - [iOS (7,0), Static, Export ("URLHostAllowedCharacterSet", ArgumentSemantic.Copy)] + + [iOS (7, 0), Static, Export ("URLHostAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlHostAllowedCharacterSet { get; } - - [iOS (7,0), Static, Export ("URLPathAllowedCharacterSet", ArgumentSemantic.Copy)] + + [iOS (7, 0), Static, Export ("URLPathAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlPathAllowedCharacterSet { get; } - - [iOS (7,0), Static, Export ("URLQueryAllowedCharacterSet", ArgumentSemantic.Copy)] + + [iOS (7, 0), Static, Export ("URLQueryAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlQueryAllowedCharacterSet { get; } - - [iOS (7,0), Static, Export ("URLFragmentAllowedCharacterSet", ArgumentSemantic.Copy)] + + [iOS (7, 0), Static, Export ("URLFragmentAllowedCharacterSet", ArgumentSemantic.Copy)] NSCharacterSet UrlFragmentAllowedCharacterSet { get; } } - - [BaseType (typeof (NSObject), Name="NSURLCache")] + + [BaseType (typeof (NSObject), Name = "NSURLCache")] interface NSUrlCache { [Export ("sharedURLCache", ArgumentSemantic.Strong), Static] NSUrlCache SharedCache { get; set; } - [Deprecated (PlatformName.MacOSX, 10,15, message : "Use the overload that accepts an 'NSUrl' parameter instead.")] - [Deprecated (PlatformName.iOS, 13,0, message : "Use the overload that accepts an 'NSUrl' parameter instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message : "Use the overload that accepts an 'NSUrl' parameter instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message : "Use the overload that accepts an 'NSUrl' parameter instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the overload that accepts an 'NSUrl' parameter instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the overload that accepts an 'NSUrl' parameter instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use the overload that accepts an 'NSUrl' parameter instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use the overload that accepts an 'NSUrl' parameter instead.")] [Export ("initWithMemoryCapacity:diskCapacity:diskPath:")] NativeHandle Constructor (nuint memoryCapacity, nuint diskCapacity, [NullAllowed] string diskPath); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("initWithMemoryCapacity:diskCapacity:directoryURL:")] NativeHandle Constructor (nuint memoryCapacity, nuint diskCapacity, [NullAllowed] NSUrl directoryUrl); @@ -6733,177 +7034,178 @@ namespace Foundation [Export ("currentDiskUsage")] nuint CurrentDiskUsage { get; } - [Mac(10,10)][iOS(8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("removeCachedResponsesSinceDate:")] void RemoveCachedResponsesSinceDate (NSDate date); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("storeCachedResponse:forDataTask:")] void StoreCachedResponse (NSCachedUrlResponse cachedResponse, NSUrlSessionDataTask dataTask); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("getCachedResponseForDataTask:completionHandler:")] [Async] void GetCachedResponse (NSUrlSessionDataTask dataTask, Action completionHandler); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("removeCachedResponseForDataTask:")] void RemoveCachedResponse (NSUrlSessionDataTask dataTask); } - - [iOS (7,0), Mac (10, 9)] - [BaseType (typeof (NSObject), Name="NSURLComponents")] + + [iOS (7, 0), Mac (10, 9)] + [BaseType (typeof (NSObject), Name = "NSURLComponents")] partial interface NSUrlComponents : NSCopying { [Export ("initWithURL:resolvingAgainstBaseURL:")] NativeHandle Constructor (NSUrl url, bool resolveAgainstBaseUrl); - + [Static, Export ("componentsWithURL:resolvingAgainstBaseURL:")] NSUrlComponents FromUrl (NSUrl url, bool resolvingAgainstBaseUrl); - + [Export ("initWithString:")] NativeHandle Constructor (string urlString); - + [Static, Export ("componentsWithString:")] NSUrlComponents FromString (string urlString); - + [Export ("URL")] NSUrl Url { get; } - + [Export ("URLRelativeToURL:")] NSUrl GetRelativeUrl (NSUrl baseUrl); - + [NullAllowed] // by default this property is null [Export ("scheme", ArgumentSemantic.Copy)] string Scheme { get; set; } - + [NullAllowed] // by default this property is null [Export ("user", ArgumentSemantic.Copy)] string User { get; set; } - + [NullAllowed] // by default this property is null [Export ("password", ArgumentSemantic.Copy)] string Password { get; set; } - + [NullAllowed] // by default this property is null [Export ("host", ArgumentSemantic.Copy)] string Host { get; set; } - + [NullAllowed] // by default this property is null [Export ("port", ArgumentSemantic.Copy)] NSNumber Port { get; set; } - + [NullAllowed] // by default this property is null [Export ("path", ArgumentSemantic.Copy)] string Path { get; set; } - + [NullAllowed] // by default this property is null [Export ("query", ArgumentSemantic.Copy)] string Query { get; set; } - + [NullAllowed] // by default this property is null [Export ("fragment", ArgumentSemantic.Copy)] string Fragment { get; set; } - + [NullAllowed] // by default this property is null [Export ("percentEncodedUser", ArgumentSemantic.Copy)] string PercentEncodedUser { get; set; } - + [NullAllowed] // by default this property is null [Export ("percentEncodedPassword", ArgumentSemantic.Copy)] string PercentEncodedPassword { get; set; } - + [NullAllowed] // by default this property is null - [Advice ("Use 'EncodedHost' instead.")] + [Advice ("Use 'EncodedHost' instead.")] [Export ("percentEncodedHost", ArgumentSemantic.Copy)] string PercentEncodedHost { get; set; } [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] [NullAllowed, Export ("encodedHost")] string EncodedHost { get; set; } - + [NullAllowed] // by default this property is null [Export ("percentEncodedPath", ArgumentSemantic.Copy)] string PercentEncodedPath { get; set; } - + [NullAllowed] // by default this property is null [Export ("percentEncodedQuery", ArgumentSemantic.Copy)] string PercentEncodedQuery { get; set; } - + [NullAllowed] // by default this property is null [Export ("percentEncodedFragment", ArgumentSemantic.Copy)] string PercentEncodedFragment { get; set; } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("queryItems")] NSUrlQueryItem [] QueryItems { get; set; } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("string")] string AsString (); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfScheme")] NSRange RangeOfScheme { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfUser")] NSRange RangeOfUser { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfPassword")] NSRange RangeOfPassword { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfHost")] NSRange RangeOfHost { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfPort")] NSRange RangeOfPort { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfPath")] NSRange RangeOfPath { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfQuery")] NSRange RangeOfQuery { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("rangeOfFragment")] NSRange RangeOfFragment { get; } [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("percentEncodedQueryItems", ArgumentSemantic.Copy)] - NSUrlQueryItem[] PercentEncodedQueryItems { get; set; } + NSUrlQueryItem [] PercentEncodedQueryItems { get; set; } } - - [BaseType (typeof (NSObject), Name="NSURLAuthenticationChallenge")] + + [BaseType (typeof (NSObject), Name = "NSURLAuthenticationChallenge")] // 'init' returns NIL [DisableDefaultCtor] interface NSUrlAuthenticationChallenge : NSSecureCoding { [Export ("initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error:sender:")] NativeHandle Constructor (NSUrlProtectionSpace space, NSUrlCredential credential, nint previousFailureCount, [NullAllowed] NSUrlResponse response, [NullAllowed] NSError error, NSUrlConnection sender); - + [Export ("initWithAuthenticationChallenge:sender:")] - NativeHandle Constructor (NSUrlAuthenticationChallenge challenge, NSUrlConnection sender); - + NativeHandle Constructor (NSUrlAuthenticationChallenge challenge, NSUrlConnection sender); + [Export ("protectionSpace")] NSUrlProtectionSpace ProtectionSpace { get; } - + [Export ("proposedCredential")] NSUrlCredential ProposedCredential { get; } - + [Export ("previousFailureCount")] nint PreviousFailureCount { get; } - + [Export ("failureResponse")] NSUrlResponse FailureResponse { get; } - + [Export ("error")] NSError Error { get; } - + [Export ("sender")] NSUrlConnection Sender { get; } } @@ -6937,47 +7239,49 @@ namespace Foundation delegate void NSUrlConnectionDataResponse (NSUrlResponse response, NSData data, NSError error); - - [BaseType (typeof (NSObject), Name="NSURLConnection")] - interface NSUrlConnection : + + [BaseType (typeof (NSObject), Name = "NSURLConnection")] + interface NSUrlConnection : #if NET NSUrlAuthenticationChallengeSender #else NSURLAuthenticationChallengeSender #endif { - [Export ("canHandleRequest:")][Static] + [Export ("canHandleRequest:")] + [Static] bool CanHandleRequest (NSUrlRequest request); - + [return: NullAllowed] [NoWatch] - [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] - [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] - [Export ("connectionWithRequest:delegate:")][Static] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'NSUrlSession' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSUrlSession' instead.")] + [Export ("connectionWithRequest:delegate:")] + [Static] NSUrlConnection FromRequest (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate); - - [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] - [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] + + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'NSUrlSession' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSUrlSession' instead.")] [Export ("initWithRequest:delegate:")] NativeHandle Constructor (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate); - - [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] - [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] + + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'NSUrlSession' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSUrlSession' instead.")] [Export ("initWithRequest:delegate:startImmediately:")] NativeHandle Constructor (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate, bool startImmediately); - + [Export ("start")] void Start (); - + [Export ("cancel")] void Cancel (); - + [Export ("scheduleInRunLoop:forMode:")] void Schedule (NSRunLoop aRunLoop, NSString forMode); [Wrap ("Schedule (aRunLoop, forMode.GetConstant ()!)")] void Schedule (NSRunLoop aRunLoop, NSRunLoopMode forMode); - + [Export ("unscheduleFromRunLoop:forMode:")] void Unschedule (NSRunLoop aRunLoop, NSString forMode); @@ -6995,15 +7299,15 @@ namespace Foundation [Export ("setDelegateQueue:")] void SetDelegateQueue (NSOperationQueue queue); - [Deprecated (PlatformName.iOS, 9, 0, message : "Use 'NSUrlSession.CreateDataTask' instead.")] - [Deprecated (PlatformName.TvOS, 9, 0, message : "Use 'NSUrlSession.CreateDataTask' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'NSUrlSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'NSUrlSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'NSUrlSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSUrlSession.CreateDataTask' instead.")] [NoWatch] [Static] [Export ("sendAsynchronousRequest:queue:completionHandler:")] - [Async (ResultTypeName = "NSUrlAsyncResult", MethodName="SendRequestAsync")] + [Async (ResultTypeName = "NSUrlAsyncResult", MethodName = "SendRequestAsync")] void SendAsynchronousRequest (NSUrlRequest request, NSOperationQueue queue, NSUrlConnectionDataResponse completionHandler); - + #if HAS_NEWSSTANDKIT // Extension from iOS5, NewsstandKit [Deprecated (PlatformName.iOS, 13,0, message: "Use Background Remote Notifications instead.")] @@ -7014,7 +7318,7 @@ namespace Foundation #endif } - [BaseType (typeof (NSObject), Name="NSURLConnectionDelegate")] + [BaseType (typeof (NSObject), Name = "NSURLConnectionDelegate")] [Model] [Protocol] interface NSUrlConnectionDelegate { @@ -7043,7 +7347,7 @@ namespace Foundation void WillSendRequestForAuthenticationChallenge (NSUrlConnection connection, NSUrlAuthenticationChallenge challenge); } - [BaseType (typeof (NSUrlConnectionDelegate), Name="NSURLConnectionDataDelegate")] + [BaseType (typeof (NSUrlConnectionDelegate), Name = "NSURLConnectionDataDelegate")] [Protocol, Model] interface NSUrlConnectionDataDelegate { @@ -7069,22 +7373,22 @@ namespace Foundation void FinishedLoading (NSUrlConnection connection); } - [BaseType (typeof (NSUrlConnectionDelegate), Name="NSURLConnectionDownloadDelegate")] + [BaseType (typeof (NSUrlConnectionDelegate), Name = "NSURLConnectionDownloadDelegate")] [Model] [Protocol] interface NSUrlConnectionDownloadDelegate { [Export ("connection:didWriteData:totalBytesWritten:expectedTotalBytes:")] void WroteData (NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes); - + [Export ("connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:")] void ResumedDownloading (NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes); - + [Abstract] [Export ("connectionDidFinishDownloading:destinationURL:")] void FinishedDownloading (NSUrlConnection connection, NSUrl destinationUrl); } - - [BaseType (typeof (NSObject), Name="NSURLCredential")] + + [BaseType (typeof (NSObject), Name = "NSURLCredential")] // crash when calling NSObjecg.get_Description (and likely other selectors) [DisableDefaultCtor] interface NSUrlCredential : NSSecureCoding, NSCopying { @@ -7097,47 +7401,47 @@ namespace Foundation [Export ("initWithUser:password:persistence:")] NativeHandle Constructor (string user, string password, NSUrlCredentialPersistence persistence); - + [Static] [Export ("credentialWithUser:password:persistence:")] NSUrlCredential FromUserPasswordPersistance (string user, string password, NSUrlCredentialPersistence persistence); [Export ("user")] string User { get; } - + [Export ("password")] string Password { get; } - + [Export ("hasPassword")] - bool HasPassword {get; } - + bool HasPassword { get; } + [Export ("initWithIdentity:certificates:persistence:")] [Internal] NativeHandle Constructor (IntPtr identity, IntPtr certificates, NSUrlCredentialPersistence persistance); - + [Static] [Internal] [Export ("credentialWithIdentity:certificates:persistence:")] NSUrlCredential FromIdentityCertificatesPersistanceInternal (IntPtr identity, IntPtr certificates, NSUrlCredentialPersistence persistence); - + [Internal] [Export ("identity")] IntPtr Identity { get; } - + [Export ("certificates")] SecCertificate [] Certificates { get; } - + // bound manually to keep the managed/native signatures identical //[Export ("initWithTrust:")] //NativeHandle Constructor (IntPtr SecTrustRef_trust, bool ignored); - + [Internal] [Static] [Export ("credentialForTrust:")] NSUrlCredential FromTrust (IntPtr trust); } - [BaseType (typeof (NSObject), Name="NSURLCredentialStorage")] + [BaseType (typeof (NSObject), Name = "NSURLCredentialStorage")] // init returns NIL -> SharedCredentialStorage [DisableDefaultCtor] interface NSUrlCredentialStorage { @@ -7163,11 +7467,11 @@ namespace Foundation [Export ("setDefaultCredential:forProtectionSpace:")] void SetDefaultCredential (NSUrlCredential credential, NSUrlProtectionSpace forProtectionSpace); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("removeCredential:forProtectionSpace:options:")] void RemoveCredential (NSUrlCredential credential, NSUrlProtectionSpace forProtectionSpace, NSDictionary options); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("NSURLCredentialStorageRemoveSynchronizableCredentials")] NSString RemoveSynchronizableCredentials { get; } @@ -7175,28 +7479,28 @@ namespace Foundation [Notification] NSString ChangedNotification { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Async] [Export ("getCredentialsForProtectionSpace:task:completionHandler:")] void GetCredentials (NSUrlProtectionSpace protectionSpace, NSUrlSessionTask task, [NullAllowed] Action completionHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("setCredential:forProtectionSpace:task:")] void SetCredential (NSUrlCredential credential, NSUrlProtectionSpace protectionSpace, NSUrlSessionTask task); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("removeCredential:forProtectionSpace:options:task:")] void RemoveCredential (NSUrlCredential credential, NSUrlProtectionSpace protectionSpace, NSDictionary options, NSUrlSessionTask task); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Async] [Export ("getDefaultCredentialForProtectionSpace:task:completionHandler:")] void GetDefaultCredential (NSUrlProtectionSpace space, NSUrlSessionTask task, [NullAllowed] Action completionHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("setDefaultCredential:forProtectionSpace:task:")] void SetDefaultCredential (NSUrlCredential credential, NSUrlProtectionSpace protectionSpace, NSUrlSessionTask task); - + } #if NET @@ -7204,8 +7508,8 @@ namespace Foundation #elif XAMCORE_3_0 delegate void NSUrlSessionPendingTasks2 (NSUrlSessionTask [] dataTasks, NSUrlSessionTask [] uploadTasks, NSUrlSessionTask[] downloadTasks); #else - delegate void NSUrlSessionPendingTasks (NSUrlSessionDataTask [] dataTasks, NSUrlSessionUploadTask [] uploadTasks, NSUrlSessionDownloadTask[] downloadTasks); - delegate void NSUrlSessionPendingTasks2 (NSUrlSessionTask [] dataTasks, NSUrlSessionTask [] uploadTasks, NSUrlSessionTask[] downloadTasks); + delegate void NSUrlSessionPendingTasks (NSUrlSessionDataTask [] dataTasks, NSUrlSessionUploadTask [] uploadTasks, NSUrlSessionDownloadTask [] downloadTasks); + delegate void NSUrlSessionPendingTasks2 (NSUrlSessionTask [] dataTasks, NSUrlSessionTask [] uploadTasks, NSUrlSessionTask [] downloadTasks); #endif delegate void NSUrlSessionAllPendingTasks (NSUrlSessionTask [] tasks); delegate void NSUrlSessionResponse (NSData data, NSUrlResponse response, NSError error); @@ -7213,7 +7517,7 @@ namespace Foundation delegate void NSUrlDownloadSessionResponse (NSUrl location, NSUrlResponse response, NSError error); - interface INSUrlSessionDelegate {} + interface INSUrlSessionDelegate { } // // Some of the XxxTaskWith methods that take a completion were flagged as allowing a null in @@ -7227,21 +7531,21 @@ namespace Foundation // but Apple has flagged these as not allowing null. // // Leaving the null allowed for now. - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSObject), Name="NSURLSession")] + [BaseType (typeof (NSObject), Name = "NSURLSession")] [DisableDefaultCtorAttribute] partial interface NSUrlSession { - + [Static, Export ("sharedSession", ArgumentSemantic.Strong)] NSUrlSession SharedSession { get; } - + [Static, Export ("sessionWithConfiguration:")] NSUrlSession FromConfiguration (NSUrlSessionConfiguration configuration); - + [Static, Export ("sessionWithConfiguration:delegate:delegateQueue:")] NSUrlSession FromWeakConfiguration (NSUrlSessionConfiguration configuration, [NullAllowed] NSObject weakDelegate, [NullAllowed] NSOperationQueue delegateQueue); - + #if !NET [Obsolete ("Use the overload with a 'INSUrlSessionDelegate' parameter.")] [Static, Wrap ("FromWeakConfiguration (configuration, sessionDelegate, delegateQueue);")] @@ -7252,41 +7556,41 @@ namespace Foundation [Export ("delegateQueue", ArgumentSemantic.Retain)] NSOperationQueue DelegateQueue { get; } - + [Export ("delegate", ArgumentSemantic.Retain), NullAllowed] NSObject WeakDelegate { get; } - + [Wrap ("WeakDelegate")] [Protocolize] NSUrlSessionDelegate Delegate { get; } - + [Export ("configuration", ArgumentSemantic.Copy)] NSUrlSessionConfiguration Configuration { get; } [NullAllowed] [Export ("sessionDescription", ArgumentSemantic.Copy)] string SessionDescription { get; set; } - + [Export ("finishTasksAndInvalidate")] void FinishTasksAndInvalidate (); - + [Export ("invalidateAndCancel")] void InvalidateAndCancel (); - + [Export ("resetWithCompletionHandler:")] [Async] void Reset (Action completionHandler); - + [Export ("flushWithCompletionHandler:")] [Async] void Flush (Action completionHandler); - + #if !XAMCORE_3_0 // broken version that we must keep for XAMCORE_3_0 binary compatibility // but that we do not have to expose on tvOS and watchOS, forcing people to use the correct API [Obsolete ("Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.")] [Export ("getTasksWithCompletionHandler:")] - [Async (ResultTypeName="NSUrlSessionActiveTasks")] + [Async (ResultTypeName = "NSUrlSessionActiveTasks")] void GetTasks (NSUrlSessionPendingTasks completionHandler); #elif NET // Fixed version (breaking change) only for NET @@ -7299,84 +7603,84 @@ namespace Foundation // Workaround, not needed for NET+ [Sealed] [Export ("getTasksWithCompletionHandler:")] - [Async (ResultTypeName="NSUrlSessionActiveTasks2")] + [Async (ResultTypeName = "NSUrlSessionActiveTasks2")] void GetTasks2 (NSUrlSessionPendingTasks2 completionHandler); #endif [Export ("dataTaskWithRequest:")] [return: ForcedType] NSUrlSessionDataTask CreateDataTask (NSUrlRequest request); - + [Export ("dataTaskWithURL:")] [return: ForcedType] NSUrlSessionDataTask CreateDataTask (NSUrl url); - + [Export ("uploadTaskWithRequest:fromFile:")] [return: ForcedType] NSUrlSessionUploadTask CreateUploadTask (NSUrlRequest request, NSUrl fileURL); - + [Export ("uploadTaskWithRequest:fromData:")] [return: ForcedType] NSUrlSessionUploadTask CreateUploadTask (NSUrlRequest request, NSData bodyData); - + [Export ("uploadTaskWithStreamedRequest:")] [return: ForcedType] NSUrlSessionUploadTask CreateUploadTask (NSUrlRequest request); - + [Export ("downloadTaskWithRequest:")] [return: ForcedType] NSUrlSessionDownloadTask CreateDownloadTask (NSUrlRequest request); - + [Export ("downloadTaskWithURL:")] [return: ForcedType] NSUrlSessionDownloadTask CreateDownloadTask (NSUrl url); - + [Export ("downloadTaskWithResumeData:")] [return: ForcedType] NSUrlSessionDownloadTask CreateDownloadTask (NSData resumeData); [Export ("dataTaskWithRequest:completionHandler:")] [return: ForcedType] - [Async (ResultTypeName="NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionDataTask CreateDataTask (NSUrlRequest request, [NullAllowed] NSUrlSessionResponse completionHandler); - + [Export ("dataTaskWithURL:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionDataTask CreateDataTask (NSUrl url, [NullAllowed] NSUrlSessionResponse completionHandler); - + [Export ("uploadTaskWithRequest:fromFile:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionUploadTask CreateUploadTask (NSUrlRequest request, NSUrl fileURL, NSUrlSessionResponse completionHandler); - + [Export ("uploadTaskWithRequest:fromData:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDataTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionUploadTask CreateUploadTask (NSUrlRequest request, NSData bodyData, NSUrlSessionResponse completionHandler); - + [Export ("downloadTaskWithRequest:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionDownloadTask CreateDownloadTask (NSUrlRequest request, [NullAllowed] NSUrlDownloadSessionResponse completionHandler); - + [Export ("downloadTaskWithURL:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionDownloadTask CreateDownloadTask (NSUrl url, [NullAllowed] NSUrlDownloadSessionResponse completionHandler); [Export ("downloadTaskWithResumeData:completionHandler:")] [return: ForcedType] - [Async(ResultTypeName="NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] + [Async (ResultTypeName = "NSUrlSessionDownloadTaskRequest", PostNonResultSnippet = "result.Resume ();")] NSUrlSessionDownloadTask CreateDownloadTaskFromResumeData (NSData resumeData, [NullAllowed] NSUrlDownloadSessionResponse completionHandler); - - [iOS (9,0), Mac(10,11)] + + [iOS (9, 0), Mac (10, 11)] [Export ("getAllTasksWithCompletionHandler:")] - [Async (ResultTypeName="NSUrlSessionCombinedTasks")] + [Async (ResultTypeName = "NSUrlSessionCombinedTasks")] void GetAllTasks (NSUrlSessionAllPendingTasks completionHandler); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("streamTaskWithHostName:port:")] NSUrlSessionStreamTask CreateBidirectionalStream (string hostname, nint port); @@ -7384,37 +7688,36 @@ namespace Foundation [Deprecated (PlatformName.iOS, 15, 0, message: "Use the Network.framework instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("streamTaskWithNetService:")] NSUrlSessionStreamTask CreateBidirectionalStream (NSNetService service); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("webSocketTaskWithURL:")] NSUrlSessionWebSocketTask CreateWebSocketTask (NSUrl url); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("webSocketTaskWithURL:protocols:")] - NSUrlSessionWebSocketTask CreateWebSocketTask (NSUrl url, string[] protocols); + NSUrlSessionWebSocketTask CreateWebSocketTask (NSUrl url, string [] protocols); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("webSocketTaskWithRequest:")] NSUrlSessionWebSocketTask CreateWebSocketTask (NSUrlRequest request); } - [iOS (9,0)] + [iOS (9, 0)] [Protocol, Model] - [BaseType (typeof (NSUrlSessionTaskDelegate), Name="NSURLSessionStreamDelegate")] - interface NSUrlSessionStreamDelegate - { + [BaseType (typeof (NSUrlSessionTaskDelegate), Name = "NSURLSessionStreamDelegate")] + interface NSUrlSessionStreamDelegate { [Export ("URLSession:readClosedForStreamTask:")] void ReadClosed (NSUrlSession session, NSUrlSessionStreamTask streamTask); - + [Export ("URLSession:writeClosedForStreamTask:")] void WriteClosed (NSUrlSession session, NSUrlSessionStreamTask streamTask); - + [Export ("URLSession:betterRouteDiscoveredForStreamTask:")] void BetterRouteDiscovered (NSUrlSession session, NSUrlSessionStreamTask streamTask); - + // // Note: the names of this methods do not exactly match the Objective-C name // because it was a bad name, and does not describe what this does, so the name @@ -7423,105 +7726,103 @@ namespace Foundation [Export ("URLSession:streamTask:didBecomeInputStream:outputStream:")] void CompletedTaskCaptureStreams (NSUrlSession session, NSUrlSessionStreamTask streamTask, NSInputStream inputStream, NSOutputStream outputStream); } - + delegate void NSUrlSessionDataRead (NSData data, bool atEof, NSError error); - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSUrlSessionTask), Name="NSURLSessionStreamTask")] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSUrlSessionTask), Name = "NSURLSessionStreamTask")] [DisableDefaultCtor] // now (xcode11) marked as deprecated - interface NSUrlSessionStreamTask - { + interface NSUrlSessionStreamTask { [Export ("readDataOfMinLength:maxLength:timeout:completionHandler:")] - [Async (ResultTypeName="NSUrlSessionStreamDataRead")] + [Async (ResultTypeName = "NSUrlSessionStreamDataRead")] void ReadData (nuint minBytes, nuint maxBytes, double timeout, NSUrlSessionDataRead completionHandler); - + [Export ("writeData:timeout:completionHandler:")] [Async] void WriteData (NSData data, double timeout, Action completionHandler); - + [Export ("captureStreams")] void CaptureStreams (); - + [Export ("closeWrite")] void CloseWrite (); - + [Export ("closeRead")] void CloseRead (); - + [Export ("startSecureConnection")] void StartSecureConnection (); - - [Deprecated (PlatformName.MacOSX, 10,15, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] - [Deprecated (PlatformName.iOS, 13,0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] - [Deprecated (PlatformName.TvOS, 13,0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] + + [Deprecated (PlatformName.MacOSX, 10, 15, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] + [Deprecated (PlatformName.iOS, 13, 0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "A secure (TLS) connection cannot become drop back to insecure (non-TLS).")] [Export ("stopSecureConnection")] void StopSecureConnection (); } - - [iOS (7,0)] + + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSObject), Name="NSURLSessionTask")] + [BaseType (typeof (NSObject), Name = "NSURLSessionTask")] [DisableDefaultCtor] - partial interface NSUrlSessionTask : NSCopying, NSProgressReporting - { + partial interface NSUrlSessionTask : NSCopying, NSProgressReporting { [Deprecated (PlatformName.MacOSX, 10, 15, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] [Export ("init")] NativeHandle Constructor (); [Export ("taskIdentifier")] nuint TaskIdentifier { get; } - + [Export ("originalRequest", ArgumentSemantic.Copy), NullAllowed] NSUrlRequest OriginalRequest { get; } - + [Export ("currentRequest", ArgumentSemantic.Copy), NullAllowed] NSUrlRequest CurrentRequest { get; } - + [Export ("response", ArgumentSemantic.Copy), NullAllowed] NSUrlResponse Response { get; } - + [Export ("countOfBytesReceived")] long BytesReceived { get; } - + [Export ("countOfBytesSent")] long BytesSent { get; } - + [Export ("countOfBytesExpectedToSend")] long BytesExpectedToSend { get; } - + [Export ("countOfBytesExpectedToReceive")] long BytesExpectedToReceive { get; } - + [NullAllowed] // by default this property is null [Export ("taskDescription", ArgumentSemantic.Copy)] string TaskDescription { get; set; } - + [Export ("cancel")] void Cancel (); - + [Export ("state")] NSUrlSessionTaskState State { get; } - + [Export ("error", ArgumentSemantic.Copy), NullAllowed] NSError Error { get; } - + [Export ("suspend")] void Suspend (); - + [Export ("resume")] void Resume (); [Field ("NSURLSessionTransferSizeUnknown")] long TransferSizeUnknown { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("priority")] float Priority { get; set; } /* float, not CGFloat */ - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] [Export ("prefersIncrementalDelivery")] bool PrefersIncrementalDelivery { get; set; } @@ -7537,75 +7838,75 @@ namespace Foundation [Export ("countOfBytesClientExpectsToReceive")] long CountOfBytesClientExpectsToReceive { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Retain)] NSObject WeakDelegate { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Wrap ("WeakDelegate")] [NullAllowed] INSUrlSessionTaskDelegate Delegate { get; set; } } [Static] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] interface NSUrlSessionTaskPriority { [Field ("NSURLSessionTaskPriorityDefault")] float Default { get; } /* float, not CGFloat */ - + [Field ("NSURLSessionTaskPriorityLow")] float Low { get; } /* float, not CGFloat */ - + [Field ("NSURLSessionTaskPriorityHigh")] float High { get; } /* float, not CGFloat */ } - + // All of the NSUrlSession APIs are either 10.10, or 10.9 and 64-bit only // "NSURLSession is not available for i386 targets before Mac OS X 10.10." - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSUrlSessionTask), Name="NSURLSessionDataTask")] + [BaseType (typeof (NSUrlSessionTask), Name = "NSURLSessionDataTask")] [DisableDefaultCtor] partial interface NSUrlSessionDataTask { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSURLSession.CreateDataTask' instead.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateDataTask' instead.")] [Export ("init")] NativeHandle Constructor (); } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSUrlSessionDataTask), Name="NSURLSessionUploadTask")] + [BaseType (typeof (NSUrlSessionDataTask), Name = "NSURLSessionUploadTask")] [DisableDefaultCtor] partial interface NSUrlSessionUploadTask { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSURLSession.CreateUploadTask' instead.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateUploadTask' instead.")] [Export ("init")] NativeHandle Constructor (); } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSUrlSessionTask), Name="NSURLSessionDownloadTask")] + [BaseType (typeof (NSUrlSessionTask), Name = "NSURLSessionDownloadTask")] [DisableDefaultCtor] partial interface NSUrlSessionDownloadTask { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'NSURLSession.CreateDownloadTask' instead.")] [Export ("init")] NativeHandle Constructor (); [Export ("cancelByProducingResumeData:")] void Cancel (Action resumeCallback); } - + [Internal] [Static] [NoWatch] @@ -7635,19 +7936,19 @@ namespace Foundation interface ProxyConfigurationDictionary { bool HttpEnable { get; set; } string HttpProxyHost { get; set; } - int HttpProxyPort { get; set;} + int HttpProxyPort { get; set; } [NoiOS, NoTV] bool HttpsEnable { get; set; } - string HttpsProxyHost { get; set;} + string HttpsProxyHost { get; set; } int HttpsProxyPort { get; set; } } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [BaseType (typeof (NSObject), Name="NSURLSessionConfiguration")] + [BaseType (typeof (NSObject), Name = "NSURLSessionConfiguration")] [DisableDefaultCtorAttribute] partial interface NSUrlSessionConfiguration : NSCopying { - + [Internal] [Static, Export ("defaultSessionConfiguration", ArgumentSemantic.Strong)] NSUrlSessionConfiguration _DefaultSessionConfiguration { get; } @@ -7655,33 +7956,33 @@ namespace Foundation [Internal] [Static, Export ("ephemeralSessionConfiguration", ArgumentSemantic.Strong)] NSUrlSessionConfiguration _EphemeralSessionConfiguration { get; } - + [Internal] [Static, Export ("backgroundSessionConfiguration:")] NSUrlSessionConfiguration _BackgroundSessionConfiguration (string identifier); - + [Export ("identifier", ArgumentSemantic.Copy), NullAllowed] string Identifier { get; } - + [Export ("requestCachePolicy")] NSUrlRequestCachePolicy RequestCachePolicy { get; set; } - + [Export ("timeoutIntervalForRequest")] double TimeoutIntervalForRequest { get; set; } - + [Export ("timeoutIntervalForResource")] double TimeoutIntervalForResource { get; set; } - + [Export ("networkServiceType")] NSUrlRequestNetworkServiceType NetworkServiceType { get; set; } - + [Export ("allowsCellularAccess")] bool AllowsCellularAccess { get; set; } - + [Export ("discretionary")] bool Discretionary { [Bind ("isDiscretionary")] get; set; } - - [Mac (11,0)] + + [Mac (11, 0)] [Export ("sessionSendsLaunchEvents")] bool SessionSendsLaunchEvents { get; set; } @@ -7696,49 +7997,49 @@ namespace Foundation [Wrap ("ConnectionProxyDictionary = value.GetDictionary ()")] set; } - - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] + + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'TlsMinimumSupportedProtocolVersion' instead.")] [Export ("TLSMinimumSupportedProtocol")] SslProtocol TLSMinimumSupportedProtocol { get; set; } - - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("TLSMinimumSupportedProtocolVersion", ArgumentSemantic.Assign)] TlsProtocolVersion TlsMinimumSupportedProtocolVersion { get; set; } - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'TlsMaximumSupportedProtocolVersion' instead.")] [Export ("TLSMaximumSupportedProtocol")] SslProtocol TLSMaximumSupportedProtocol { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("TLSMaximumSupportedProtocolVersion", ArgumentSemantic.Assign)] TlsProtocolVersion TlsMaximumSupportedProtocolVersion { get; set; } [Export ("HTTPShouldUsePipelining")] bool HttpShouldUsePipelining { get; set; } - + [Export ("HTTPShouldSetCookies")] bool HttpShouldSetCookies { get; set; } - + [Export ("HTTPCookieAcceptPolicy")] NSHttpCookieAcceptPolicy HttpCookieAcceptPolicy { get; set; } - + [NullAllowed] [Export ("HTTPAdditionalHeaders", ArgumentSemantic.Copy)] NSDictionary HttpAdditionalHeaders { get; set; } - + [Export ("HTTPMaximumConnectionsPerHost")] nint HttpMaximumConnectionsPerHost { get; set; } - + [NullAllowed] [Export ("HTTPCookieStorage", ArgumentSemantic.Retain)] NSHttpCookieStorage HttpCookieStorage { get; set; } - + [NullAllowed] [Export ("URLCredentialStorage", ArgumentSemantic.Retain)] NSUrlCredentialStorage URLCredentialStorage { get; set; } @@ -7746,22 +8047,22 @@ namespace Foundation [NullAllowed] [Export ("URLCache", ArgumentSemantic.Retain)] NSUrlCache URLCache { get; set; } - + [NullAllowed] [Export ("protocolClasses", ArgumentSemantic.Copy)] NSArray WeakProtocolClasses { get; set; } [NullAllowed] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("sharedContainerIdentifier")] string SharedContainerIdentifier { get; set; } [Internal] - [iOS (8,0)] + [iOS (8, 0)] [Static, Export ("backgroundSessionConfigurationWithIdentifier:")] NSUrlSessionConfiguration _CreateBackgroundSessionConfiguration (string identifier); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("shouldUseExtendedBackgroundIdleMode")] bool ShouldUseExtendedBackgroundIdleMode { get; set; } @@ -7786,103 +8087,106 @@ namespace Foundation bool RequiresDnsSecValidation { get; set; } } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] - [Model, BaseType (typeof (NSObject), Name="NSURLSessionDelegate")] + [Model, BaseType (typeof (NSObject), Name = "NSURLSessionDelegate")] [Protocol] partial interface NSUrlSessionDelegate { [Export ("URLSession:didBecomeInvalidWithError:")] void DidBecomeInvalid (NSUrlSession session, NSError error); - + [Export ("URLSession:didReceiveChallenge:completionHandler:")] - void DidReceiveChallenge (NSUrlSession session, NSUrlAuthenticationChallenge challenge, Action completionHandler); - - [Mac (11,0)] + void DidReceiveChallenge (NSUrlSession session, NSUrlAuthenticationChallenge challenge, Action completionHandler); + + [Mac (11, 0)] [Export ("URLSessionDidFinishEventsForBackgroundURLSession:")] void DidFinishEventsForBackgroundSession (NSUrlSession session); } - public interface INSUrlSessionTaskDelegate {} + public interface INSUrlSessionTaskDelegate { } - [iOS (7,0)] + [iOS (7, 0)] [Mac (10, 9)] [Model] - [BaseType (typeof (NSUrlSessionDelegate), Name="NSURLSessionTaskDelegate")] + [BaseType (typeof (NSUrlSessionDelegate), Name = "NSURLSessionTaskDelegate")] [Protocol] partial interface NSUrlSessionTaskDelegate { - + [Export ("URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:")] void WillPerformHttpRedirection (NSUrlSession session, NSUrlSessionTask task, NSHttpUrlResponse response, NSUrlRequest newRequest, Action completionHandler); - + [Export ("URLSession:task:didReceiveChallenge:completionHandler:")] - void DidReceiveChallenge (NSUrlSession session, NSUrlSessionTask task, NSUrlAuthenticationChallenge challenge, Action completionHandler); - + void DidReceiveChallenge (NSUrlSession session, NSUrlSessionTask task, NSUrlAuthenticationChallenge challenge, Action completionHandler); + [Export ("URLSession:task:needNewBodyStream:")] void NeedNewBodyStream (NSUrlSession session, NSUrlSessionTask task, Action completionHandler); - + [Export ("URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:")] void DidSendBodyData (NSUrlSession session, NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend); - + [Export ("URLSession:task:didCompleteWithError:")] void DidCompleteWithError (NSUrlSession session, NSUrlSessionTask task, [NullAllowed] NSError error); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("URLSession:task:didFinishCollectingMetrics:")] void DidFinishCollectingMetrics (NSUrlSession session, NSUrlSessionTask task, NSUrlSessionTaskMetrics metrics); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("URLSession:task:willBeginDelayedRequest:completionHandler:")] void WillBeginDelayedRequest (NSUrlSession session, NSUrlSessionTask task, NSUrlRequest request, Action completionHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("URLSession:taskIsWaitingForConnectivity:")] void TaskIsWaitingForConnectivity (NSUrlSession session, NSUrlSessionTask task); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] [Export ("URLSession:didCreateTask:")] void DidCreateTask (NSUrlSession session, NSUrlSessionTask task); } - - [iOS (7,0)] + + [iOS (7, 0)] [Mac (10, 9)] [Model] - [BaseType (typeof (NSUrlSessionTaskDelegate), Name="NSURLSessionDataDelegate")] + [BaseType (typeof (NSUrlSessionTaskDelegate), Name = "NSURLSessionDataDelegate")] [Protocol] partial interface NSUrlSessionDataDelegate { [Export ("URLSession:dataTask:didReceiveResponse:completionHandler:")] void DidReceiveResponse (NSUrlSession session, NSUrlSessionDataTask dataTask, NSUrlResponse response, Action completionHandler); - + [Export ("URLSession:dataTask:didBecomeDownloadTask:")] void DidBecomeDownloadTask (NSUrlSession session, NSUrlSessionDataTask dataTask, NSUrlSessionDownloadTask downloadTask); - + [Export ("URLSession:dataTask:didReceiveData:")] void DidReceiveData (NSUrlSession session, NSUrlSessionDataTask dataTask, NSData data); - + [Export ("URLSession:dataTask:willCacheResponse:completionHandler:")] void WillCacheResponse (NSUrlSession session, NSUrlSessionDataTask dataTask, NSCachedUrlResponse proposedResponse, Action completionHandler); - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("URLSession:dataTask:didBecomeStreamTask:")] void DidBecomeStreamTask (NSUrlSession session, NSUrlSessionDataTask dataTask, NSUrlSessionStreamTask streamTask); } - - [iOS (7,0)] + + [iOS (7, 0)] [Mac (10, 9)] [Model] - [BaseType (typeof (NSUrlSessionTaskDelegate), Name="NSURLSessionDownloadDelegate")] + [BaseType (typeof (NSUrlSessionTaskDelegate), Name = "NSURLSessionDownloadDelegate")] [Protocol] partial interface NSUrlSessionDownloadDelegate { - + [Abstract] [Export ("URLSession:downloadTask:didFinishDownloadingToURL:")] void DidFinishDownloading (NSUrlSession session, NSUrlSessionDownloadTask downloadTask, NSUrl location); - + [Export ("URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:")] void DidWriteData (NSUrlSession session, NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite); - + [Export ("URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:")] void DidResume (NSUrlSession session, NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes); - + [Field ("NSURLSessionDownloadTaskResumeData")] NSString TaskResumeDataKey { get; } } @@ -7893,18 +8197,18 @@ namespace Foundation [NullAllowed] bool Discardable { get; } } - + [BaseType (typeof (NSObject))] interface NSUndoManager { [Export ("beginUndoGrouping")] void BeginUndoGrouping (); - + [Export ("endUndoGrouping")] void EndUndoGrouping (); - + [Export ("groupingLevel")] nint GroupingLevel { get; } - + [Export ("disableUndoRegistration")] void DisableUndoRegistration (); @@ -7913,33 +8217,33 @@ namespace Foundation [Export ("isUndoRegistrationEnabled")] bool IsUndoRegistrationEnabled { get; } - + [Export ("groupsByEvent")] bool GroupsByEvent { get; set; } - + [Export ("levelsOfUndo")] nint LevelsOfUndo { get; set; } - + #if NET [Export ("runLoopModes", ArgumentSemantic.Copy)] NSString [] WeakRunLoopModes { get; set; } #else [Export ("runLoopModes")] - string [] RunLoopModes { get; set; } + string [] RunLoopModes { get; set; } #endif - + [Export ("undo")] void Undo (); - + [Export ("redo")] void Redo (); - + [Export ("undoNestedGroup")] void UndoNestedGroup (); - + [Export ("canUndo")] bool CanUndo { get; } - + [Export ("canRedo")] bool CanRedo { get; } @@ -7973,7 +8277,7 @@ namespace Foundation #else [Advice ("Use the correctly named method: 'SetActionName'.")] [Export ("setActionName:")] - void SetActionname (string actionName); + void SetActionname (string actionName); #endif [Export ("undoMenuItemTitle")] @@ -8032,46 +8336,46 @@ namespace Foundation [Notification (typeof (NSUndoManagerCloseUndoGroupEventArgs))] NSString DidCloseUndoGroupNotification { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("registerUndoWithTarget:handler:")] void RegisterUndo (NSObject target, Action undoHandler); } - - [BaseType (typeof (NSObject), Name="NSURLProtectionSpace")] + + [BaseType (typeof (NSObject), Name = "NSURLProtectionSpace")] // 'init' returns NIL [DisableDefaultCtor] interface NSUrlProtectionSpace : NSSecureCoding, NSCopying { - + [Internal] [Export ("initWithHost:port:protocol:realm:authenticationMethod:")] IntPtr Init (string host, nint port, [NullAllowed] string protocol, [NullAllowed] string realm, [NullAllowed] string authenticationMethod); - + [Internal] [Export ("initWithProxyHost:port:type:realm:authenticationMethod:")] IntPtr InitWithProxy (string host, nint port, [NullAllowed] string type, [NullAllowed] string realm, [NullAllowed] string authenticationMethod); - + [Export ("realm")] string Realm { get; } - + [Export ("receivesCredentialSecurely")] bool ReceivesCredentialSecurely { get; } - + [Export ("isProxy")] bool IsProxy { get; } - + [Export ("host")] string Host { get; } - + [Export ("port")] - nint Port { get; } - + nint Port { get; } + [Export ("proxyType")] string ProxyType { get; } - + [Export ("protocol")] string Protocol { get; } - + [Export ("authenticationMethod")] string AuthenticationMethod { get; } @@ -8079,11 +8383,11 @@ namespace Foundation [Export ("distinguishedNames")] NSData [] DistinguishedNames { get; } - + // NSURLProtectionSpace(NSServerTrustValidationSpace) [Internal] [Export ("serverTrust")] - IntPtr ServerTrust { get ; } + IntPtr ServerTrust { get; } [Field ("NSURLProtectionSpaceHTTP")] NSString HTTP { get; } @@ -8130,8 +8434,8 @@ namespace Foundation [Field ("NSURLAuthenticationMethodServerTrust")] NSString AuthenticationMethodServerTrust { get; } } - - [BaseType (typeof (NSObject), Name="NSURLRequest")] + + [BaseType (typeof (NSObject), Name = "NSURLRequest")] interface NSUrlRequest : NSSecureCoding, NSMutableCopying { [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); @@ -8140,7 +8444,8 @@ namespace Foundation [Export ("initWithURL:cachePolicy:timeoutInterval:")] NativeHandle Constructor (NSUrl url, NSUrlRequestCachePolicy cachePolicy, double timeoutInterval); - [Export ("requestWithURL:")][Static] + [Export ("requestWithURL:")] + [Static] NSUrlRequest FromUrl (NSUrl url); [Export ("URL")] @@ -8168,14 +8473,15 @@ namespace Foundation [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("allowsConstrainedNetworkAccess")] bool AllowsConstrainedNetworkAccess { get; [NotImplemented] set; } - + [Export ("HTTPMethod")] string HttpMethod { get; } [Export ("allHTTPHeaderFields")] NSDictionary Headers { get; } - [Internal][Export ("valueForHTTPHeaderField:")] + [Internal] + [Export ("valueForHTTPHeaderField:")] string Header (string field); [Export ("HTTPBody")] @@ -8187,12 +8493,12 @@ namespace Foundation [Export ("HTTPShouldHandleCookies")] bool ShouldHandleCookies { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("assumesHTTP3Capable")] bool AssumesHttp3Capable { get; [NotImplemented] set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("attribution")] NSURLRequestAttribution Attribution { get; } @@ -8218,7 +8524,7 @@ namespace Foundation NSMutableDictionary FromObjectAndKey (NSObject obj, NSObject key); [Export ("dictionaryWithDictionary:")] - [Static,New] + [Static, New] NSMutableDictionary FromDictionary (NSDictionary source); [Export ("dictionaryWithObjects:forKeys:count:")] @@ -8228,7 +8534,7 @@ namespace Foundation [Export ("dictionaryWithObjects:forKeys:")] [Static, Internal, New] NSMutableDictionary FromObjectsAndKeysInternal (NSArray objects, NSArray Keys); - + [Export ("initWithDictionary:")] NativeHandle Constructor (NSDictionary other); @@ -8272,7 +8578,7 @@ namespace Foundation void AddEntries (NSDictionary other); } - interface NSMutableDictionary : NSDictionary {} + interface NSMutableDictionary : NSDictionary { } [BaseType (typeof (NSSet))] [DesignatedDefaultCtor] @@ -8282,7 +8588,7 @@ namespace Foundation [Export ("initWithSet:")] NativeHandle Constructor (NSSet other); - + [DesignatedInitializer] [Export ("initWithCapacity:")] NativeHandle Constructor (nint capacity); @@ -8320,8 +8626,8 @@ namespace Foundation [Internal, Export ("unionSet:")] void UnionSet (NSSet other); } - - [BaseType (typeof (NSUrlRequest), Name="NSMutableURLRequest")] + + [BaseType (typeof (NSUrlRequest), Name = "NSMutableURLRequest")] interface NSMutableUrlRequest { [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); @@ -8330,44 +8636,55 @@ namespace Foundation NativeHandle Constructor (NSUrl url, NSUrlRequestCachePolicy cachePolicy, double timeoutInterval); [NullAllowed] // by default this property is null - [New][Export ("URL")] + [New] + [Export ("URL")] NSUrl Url { get; set; } - [New][Export ("cachePolicy")] + [New] + [Export ("cachePolicy")] NSUrlRequestCachePolicy CachePolicy { get; set; } - [New][Export ("timeoutInterval")] + [New] + [Export ("timeoutInterval")] double TimeoutInterval { set; get; } [NullAllowed] // by default this property is null - [New][Export ("mainDocumentURL")] + [New] + [Export ("mainDocumentURL")] NSUrl MainDocumentURL { get; set; } - [New][Export ("HTTPMethod")] + [New] + [Export ("HTTPMethod")] string HttpMethod { get; set; } [NullAllowed] // by default this property is null - [New][Export ("allHTTPHeaderFields")] + [New] + [Export ("allHTTPHeaderFields")] NSDictionary Headers { get; set; } - [Internal][Export ("setValue:forHTTPHeaderField:")] + [Internal] + [Export ("setValue:forHTTPHeaderField:")] void _SetValue (string value, string field); [NullAllowed] // by default this property is null - [New][Export ("HTTPBody")] + [New] + [Export ("HTTPBody")] NSData Body { get; set; } [NullAllowed] // by default this property is null - [New][Export ("HTTPBodyStream")] + [New] + [Export ("HTTPBodyStream")] NSInputStream BodyStream { get; set; } - [New][Export ("HTTPShouldHandleCookies")] + [New] + [Export ("HTTPShouldHandleCookies")] bool ShouldHandleCookies { get; set; } [Export ("networkServiceType")] NSUrlRequestNetworkServiceType NetworkServiceType { set; get; } - [New] [Export ("allowsCellularAccess")] + [New] + [Export ("allowsCellularAccess")] bool AllowsCellularAccess { get; set; } [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] @@ -8378,12 +8695,12 @@ namespace Foundation [Export ("allowsConstrainedNetworkAccess")] bool AllowsConstrainedNetworkAccess { get; set; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("assumesHTTP3Capable")] bool AssumesHttp3Capable { get; set; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("attribution", ArgumentSemantic.Assign)] NSURLRequestAttribution Attribution { get; set; } @@ -8392,8 +8709,8 @@ namespace Foundation [Export ("requiresDNSSECValidation")] bool RequiresDnsSecValidation { get; set; } } - - [BaseType (typeof (NSObject), Name="NSURLResponse")] + + [BaseType (typeof (NSObject), Name = "NSURLResponse")] interface NSUrlResponse : NSSecureCoding, NSCopying { [DesignatedInitializer] [Export ("initWithURL:MIMEType:expectedContentLength:textEncodingName:")] @@ -8415,14 +8732,14 @@ namespace Foundation string SuggestedFilename { get; } } - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSStreamDelegate)} )] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSStreamDelegate) })] interface NSStream { [Export ("open")] void Open (); [Export ("close")] void Close (); - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -8437,14 +8754,14 @@ namespace Foundation [Protected] [Export ("propertyForKey:")] NSObject GetProperty (NSString key); - + #if NET [Abstract] #endif [Protected] [Export ("setProperty:forKey:")] bool SetProperty ([NullAllowed] NSObject property, NSString key); - + #if NET [Export ("scheduleInRunLoop:forMode:")] void Schedule (NSRunLoop aRunLoop, NSString mode); @@ -8454,7 +8771,7 @@ namespace Foundation #else [Export ("scheduleInRunLoop:forMode:")] void Schedule (NSRunLoop aRunLoop, string mode); - + [Export ("removeFromRunLoop:forMode:")] void Unschedule (NSRunLoop aRunLoop, string mode); #endif @@ -8466,7 +8783,7 @@ namespace Foundation [Export ("streamStatus")] NSStreamStatus Status { get; } - + [Export ("streamError")] NSError Error { get; } @@ -8540,18 +8857,21 @@ namespace Foundation NSString NetworkServiceTypeVoice { get; } [Advanced] - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Field ("NSStreamNetworkServiceTypeCallSignaling")] NSString NetworkServiceTypeCallSignaling { get; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("getBoundStreamsWithBufferSize:inputStream:outputStream:")] void GetBoundStreams (nuint bufferSize, out NSInputStream inputStream, out NSOutputStream outputStream); [NoWatch] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("getStreamsToHostWithName:port:inputStream:outputStream:")] - void GetStreamsToHost (string hostname, nint port, out NSInputStream inputStream, out NSOutputStream outputStream); + void GetStreamsToHost (string hostname, nint port, out NSInputStream inputStream, out NSOutputStream outputStream); } [BaseType (typeof (NSObject))] @@ -8565,31 +8885,45 @@ namespace Foundation [BaseType (typeof (NSObject)), Bind ("NSString")] [DesignatedDefaultCtor] interface NSString2 : NSSecureCoding, NSMutableCopying, CKRecordValue - #if MONOMAC +#if MONOMAC , NSPasteboardReading, NSPasteboardWriting // Documented that it implements NSPasteboard protocols even if header doesn't show it - #endif - , NSItemProviderReading, NSItemProviderWriting - { +#endif + , NSItemProviderReading, NSItemProviderWriting { [Export ("initWithData:encoding:")] NativeHandle Constructor (NSData data, NSStringEncoding encoding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Bind ("sizeWithAttributes:")] CGSize StringSize ([NullAllowed] NSDictionary attributedStringAttributes); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Bind ("boundingRectWithSize:options:attributes:")] CGRect BoundingRectWithSize (CGSize size, NSStringDrawingOptions options, NSDictionary attributes); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Bind ("drawAtPoint:withAttributes:")] void DrawString (CGPoint point, NSDictionary attributes); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Bind ("drawInRect:withAttributes:")] void DrawString (CGRect rect, NSDictionary attributes); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Bind ("drawWithRect:options:attributes:")] void DrawString (CGRect rect, NSStringDrawingOptions options, NSDictionary attributes); @@ -8598,12 +8932,12 @@ namespace Foundation char _characterAtIndex (nint index); [Export ("length")] - nint Length {get;} + nint Length { get; } [Sealed] [Export ("isEqualToString:")] bool IsEqualTo (IntPtr handle); - + [Export ("compare:")] NSComparisonResult Compare (NSString aString); @@ -8615,111 +8949,111 @@ namespace Foundation [Export ("compare:options:range:locale:")] NSComparisonResult Compare (NSString aString, NSStringCompareOptions mask, NSRange range, [NullAllowed] NSLocale locale); - + [Export ("stringByReplacingCharactersInRange:withString:")] NSString Replace (NSRange range, NSString replacement); [Export ("commonPrefixWithString:options:")] NSString CommonPrefix (NSString aString, NSStringCompareOptions options); - + // start methods from NSStringPathExtensions category [Static] - [Export("pathWithComponents:")] - string[] PathWithComponents( string[] components ); + [Export ("pathWithComponents:")] + string [] PathWithComponents (string [] components); - [Export("pathComponents")] - string[] PathComponents { get; } + [Export ("pathComponents")] + string [] PathComponents { get; } - [Export("isAbsolutePath")] + [Export ("isAbsolutePath")] bool IsAbsolutePath { get; } - [Export("lastPathComponent")] + [Export ("lastPathComponent")] NSString LastPathComponent { get; } - [Export("stringByDeletingLastPathComponent")] - NSString DeleteLastPathComponent(); - - [Export("stringByAppendingPathComponent:")] - NSString AppendPathComponent( NSString str ); + [Export ("stringByDeletingLastPathComponent")] + NSString DeleteLastPathComponent (); - [Export("pathExtension")] - NSString PathExtension { get; } + [Export ("stringByAppendingPathComponent:")] + NSString AppendPathComponent (NSString str); - [Export("stringByDeletingPathExtension")] - NSString DeletePathExtension(); + [Export ("pathExtension")] + NSString PathExtension { get; } - [Export("stringByAppendingPathExtension:")] - NSString AppendPathExtension( NSString str ); - - [Export("stringByAbbreviatingWithTildeInPath")] - NSString AbbreviateTildeInPath(); + [Export ("stringByDeletingPathExtension")] + NSString DeletePathExtension (); - [Export("stringByExpandingTildeInPath")] - NSString ExpandTildeInPath(); - - [Export("stringByStandardizingPath")] - NSString StandarizePath(); + [Export ("stringByAppendingPathExtension:")] + NSString AppendPathExtension (NSString str); - [Export("stringByResolvingSymlinksInPath")] - NSString ResolveSymlinksInPath(); + [Export ("stringByAbbreviatingWithTildeInPath")] + NSString AbbreviateTildeInPath (); - [Export("stringsByAppendingPaths:")] - string[] AppendPaths( string[] paths ); + [Export ("stringByExpandingTildeInPath")] + NSString ExpandTildeInPath (); + + [Export ("stringByStandardizingPath")] + NSString StandarizePath (); + + [Export ("stringByResolvingSymlinksInPath")] + NSString ResolveSymlinksInPath (); + + [Export ("stringsByAppendingPaths:")] + string [] AppendPaths (string [] paths); // end methods from NSStringPathExtensions category [Export ("capitalizedStringWithLocale:")] string Capitalize ([NullAllowed] NSLocale locale); - + [Export ("lowercaseStringWithLocale:")] string ToLower (NSLocale locale); - + [Export ("uppercaseStringWithLocale:")] string ToUpper (NSLocale locale); - [iOS (8,0)] + [iOS (8, 0)] [Export ("containsString:")] bool Contains (NSString str); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("localizedCaseInsensitiveContainsString:")] bool LocalizedCaseInsensitiveContains (NSString str); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Static, Export ("stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:")] nuint DetectStringEncoding (NSData rawData, NSDictionary options, out string convertedString, out bool usedLossyConversion); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Wrap ("DetectStringEncoding(rawData,options.GetDictionary ()!, out convertedString, out usedLossyConversion)")] nuint DetectStringEncoding (NSData rawData, EncodingDetectionOptions options, out string convertedString, out bool usedLossyConversion); - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionSuggestedEncodingsKey")] NSString EncodingDetectionSuggestedEncodingsKey { get; } - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionDisallowedEncodingsKey")] NSString EncodingDetectionDisallowedEncodingsKey { get; } - - [iOS (8,0),Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionUseOnlySuggestedEncodingsKey")] NSString EncodingDetectionUseOnlySuggestedEncodingsKey { get; } - - [iOS (8,0),Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionAllowLossyKey")] NSString EncodingDetectionAllowLossyKey { get; } - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionFromWindowsKey")] NSString EncodingDetectionFromWindowsKey { get; } - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionLossySubstitutionKey")] NSString EncodingDetectionLossySubstitutionKey { get; } - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Internal, Field ("NSStringEncodingDetectionLikelyLanguageKey")] NSString EncodingDetectionLikelyLanguageKey { get; } @@ -8729,31 +9063,31 @@ namespace Foundation [Export ("getLineStart:end:contentsEnd:forRange:")] void GetLineStart (out nuint startPtr, out nuint lineEndPtr, out nuint contentsEndPtr, NSRange range); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("variantFittingPresentationWidth:")] NSString GetVariantFittingPresentationWidth (nint width); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("localizedStandardContainsString:")] bool LocalizedStandardContainsString (NSString str); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("localizedStandardRangeOfString:")] NSRange LocalizedStandardRangeOfString (NSString str); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("localizedUppercaseString")] NSString LocalizedUppercaseString { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("localizedLowercaseString")] NSString LocalizedLowercaseString { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("localizedCapitalizedString")] NSString LocalizedCapitalizedString { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("stringByApplyingTransform:reverse:")] [return: NullAllowed] NSString TransliterateString (NSString transform, bool reverse); @@ -8765,10 +9099,10 @@ namespace Foundation bool HasSuffix (NSString suffix); // UNUserNotificationCenterSupport category - [iOS (10,0), Watch (3,0), NoTV, Mac (10,14)] + [iOS (10, 0), Watch (3, 0), NoTV, Mac (10, 14)] [Static] [Export ("localizedUserNotificationStringForKey:arguments:")] - NSString GetLocalizedUserNotificationString (NSString key, [Params] [NullAllowed] NSObject [] arguments); + NSString GetLocalizedUserNotificationString (NSString key, [Params][NullAllowed] NSObject [] arguments); [Export ("getParagraphStart:end:contentsEnd:forRange:")] void GetParagraphPositions (out nuint paragraphStartPosition, out nuint paragraphEndPosition, out nuint contentsEndPosition, NSRange range); @@ -8777,29 +9111,29 @@ namespace Foundation NSRange GetParagraphRange (NSRange range); [Export ("componentsSeparatedByString:")] - NSString[] SeparateComponents (NSString separator); + NSString [] SeparateComponents (NSString separator); [Export ("componentsSeparatedByCharactersInSet:")] - NSString[] SeparateComponents (NSCharacterSet separator); + NSString [] SeparateComponents (NSCharacterSet separator); // From the NSItemProviderReading protocol - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - new string[] ReadableTypeIdentifiers { get; } + new string [] ReadableTypeIdentifiers { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("objectWithItemProviderData:typeIdentifier:error:")] [return: NullAllowed] new NSString GetObject (NSData data, string typeIdentifier, [NullAllowed] out NSError outError); // From the NSItemProviderWriting protocol - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - new string[] WritableTypeIdentifiers { get; } + new string [] WritableTypeIdentifiers { get; } } [StrongDictionary ("NSString")] @@ -8837,32 +9171,33 @@ namespace Foundation [Export ("replaceOccurrencesOfString:withString:options:range:")] nuint ReplaceOcurrences (NSString target, NSString replacement, NSStringCompareOptions options, NSRange range); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("applyTransform:reverse:range:updatedRange:")] bool ApplyTransform (NSString transform, bool reverse, NSRange range, out NSRange resultingRange); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Wrap ("ApplyTransform (transform.GetConstant ()!, reverse, range, out resultingRange)")] bool ApplyTransform (NSStringTransform transform, bool reverse, NSRange range, out NSRange resultingRange); [Export ("replaceCharactersInRange:withString:")] void ReplaceCharactersInRange (NSRange range, NSString aString); } - + [Category, BaseType (typeof (NSString))] partial interface NSUrlUtilities_NSString { - [iOS (7,0)] + [iOS (7, 0)] [Export ("stringByAddingPercentEncodingWithAllowedCharacters:")] NSString CreateStringByAddingPercentEncoding (NSCharacterSet allowedCharacters); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("stringByRemovingPercentEncoding")] NSString CreateStringByRemovingPercentEncoding (); - + [Export ("stringByAddingPercentEscapesUsingEncoding:")] NSString CreateStringByAddingPercentEscapes (NSStringEncoding enc); - + [Export ("stringByReplacingPercentEscapesUsingEncoding:")] NSString CreateStringByReplacingPercentEscapes (NSStringEncoding enc); } @@ -8872,24 +9207,24 @@ namespace Foundation [BaseType (typeof (NSObject))] interface NSStringDrawingContext { [Export ("minimumScaleFactor")] - nfloat MinimumScaleFactor { get; set; } + nfloat MinimumScaleFactor { get; set; } [NoTV] [Deprecated (PlatformName.iOS, 7, 0)] [NoMacCatalyst] [Export ("minimumTrackingAdjustment")] - nfloat MinimumTrackingAdjustment { get; set; } + nfloat MinimumTrackingAdjustment { get; set; } [Export ("actualScaleFactor")] - nfloat ActualScaleFactor { get; } + nfloat ActualScaleFactor { get; } [NoTV] [Deprecated (PlatformName.iOS, 7, 0)] [Export ("actualTrackingAdjustment")] - nfloat ActualTrackingAdjustment { get; } + nfloat ActualTrackingAdjustment { get; } [Export ("totalBounds")] - CGRect TotalBounds { get; } + CGRect TotalBounds { get; } } [BaseType (typeof (NSStream))] @@ -8897,7 +9232,7 @@ namespace Foundation interface NSInputStream { [Export ("hasBytesAvailable")] bool HasBytesAvailable (); - + [Export ("initWithFileAtPath:")] NativeHandle Constructor (string path); @@ -8912,10 +9247,10 @@ namespace Foundation [Static] [Export ("inputStreamWithData:")] NSInputStream FromData (NSData data); - + [Static] [Export ("inputStreamWithFileAtPath:")] - NSInputStream FromFile (string path); + NSInputStream FromFile (string path); [Static] [Export ("inputStreamWithURL:")] @@ -8938,7 +9273,7 @@ namespace Foundation delegate bool NSEnumerateLinguisticTagsEnumerator (NSString tag, NSRange tokenRange, NSRange sentenceRange, ref bool stop); [Category] - [BaseType (typeof(NSString))] + [BaseType (typeof (NSString))] interface NSLinguisticAnalysis { #if NET [return: BindAs (typeof (NSLinguisticTag []))] @@ -8947,13 +9282,13 @@ namespace Foundation #endif [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("linguisticTagsInRange:scheme:options:orthography:tokenRanges:")] - NSString[] GetLinguisticTags (NSRange range, NSString scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue[] tokenRanges); + NSString [] GetLinguisticTags (NSRange range, NSString scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue [] tokenRanges); [Wrap ("GetLinguisticTags (This, range, scheme.GetConstant ()!, options, orthography, out tokenRanges)")] #if NET NSLinguisticTag[] GetLinguisticTags (NSRange range, NSLinguisticTagScheme scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue[] tokenRanges); #else - NSLinguisticTagUnit[] GetLinguisticTags (NSRange range, NSLinguisticTagScheme scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue[] tokenRanges); + NSLinguisticTagUnit [] GetLinguisticTags (NSRange range, NSLinguisticTagScheme scheme, NSLinguisticTaggerOptions options, [NullAllowed] NSOrthography orthography, [NullAllowed] out NSValue [] tokenRanges); #endif [EditorBrowsable (EditorBrowsableState.Advanced)] @@ -9004,13 +9339,13 @@ namespace Foundation [Wrap ("AddObserver (observer, (NSString) keyPath, options, context)")] void AddObserver (NSObject observer, string keyPath, NSKeyValueObservingOptions options, IntPtr context); - + [Export ("removeObserver:forKeyPath:context:")] void RemoveObserver (NSObject observer, NSString keyPath, IntPtr context); [Wrap ("RemoveObserver (observer, (NSString) keyPath, context)")] void RemoveObserver (NSObject observer, string keyPath, IntPtr context); - + [Export ("removeObserver:forKeyPath:")] void RemoveObserver (NSObject observer, NSString keyPath); @@ -9068,7 +9403,7 @@ namespace Foundation [Export ("setValuesForKeysWithDictionary:")] void SetValuesForKeysWithDictionary (NSDictionary keyedValues); - + [Field ("NSKeyValueChangeKindKey")] NSString ChangeKindKey { get; } @@ -9088,50 +9423,77 @@ namespace Foundation #if !NET [Sealed] #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("valueClassForBinding:")] Class GetBindingValueClass (NSString binding); #if !NET - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'Bind (NSString binding, NSObject observable, string keyPath, [NullAllowed] NSDictionary options)' instead.")] [Export ("bind:toObject:withKeyPath:options:")] void Bind (string binding, NSObject observable, string keyPath, [NullAllowed] NSDictionary options); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'Unbind (NSString binding)' instead.")] [Export ("unbind:")] void Unbind (string binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'GetBindingValueClass (NSString binding)' instead.")] [Export ("valueClassForBinding:")] Class BindingValueClass (string binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'GetBindingInfo (NSString binding)' instead.")] [Export ("infoForBinding:")] NSDictionary BindingInfo (string binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'GetBindingOptionDescriptions (NSString aBinding)' instead.")] [Export ("optionDescriptionsForBinding:")] - NSObject[] BindingOptionDescriptions (string aBinding); + NSObject [] BindingOptionDescriptions (string aBinding); [Static] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Wrap ("GetDefaultPlaceholder (marker, (NSString) binding)")] NSObject GetDefaultPlaceholder (NSObject marker, string binding); [Static] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Obsolete ("Use 'SetDefaultPlaceholder (NSObject placeholder, NSObject marker, NSString binding)' instead.")] [Wrap ("SetDefaultPlaceholder (placeholder, marker, (NSString) binding)")] void SetDefaultPlaceholder (NSObject placeholder, NSObject marker, string binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("exposedBindings")] - NSString[] ExposedBindings (); + NSString [] ExposedBindings (); #else [NoiOS][NoMacCatalyst][NoWatch][NoTV] [Export ("exposedBindings")] @@ -9141,55 +9503,82 @@ namespace Foundation #if !NET [Sealed] #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("bind:toObject:withKeyPath:options:")] void Bind (NSString binding, NSObject observable, string keyPath, [NullAllowed] NSDictionary options); #if !NET [Sealed] #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("unbind:")] void Unbind (NSString binding); #if !NET [Sealed] #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("infoForBinding:")] NSDictionary GetBindingInfo (NSString binding); #if !NET [Sealed] #endif - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("optionDescriptionsForBinding:")] - NSObject[] GetBindingOptionDescriptions (NSString aBinding); + NSObject [] GetBindingOptionDescriptions (NSString aBinding); // NSPlaceholders (informal) protocol - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Deprecated (PlatformName.MacOSX, 10,15)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Static] [Export ("defaultPlaceholderForMarker:withBinding:")] NSObject GetDefaultPlaceholder (NSObject marker, NSString binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Deprecated (PlatformName.MacOSX, 10,15)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Static] [Export ("setDefaultPlaceholder:forMarker:withBinding:")] void SetDefaultPlaceholder (NSObject placeholder, NSObject marker, NSString binding); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, message: "Now on 'NSEditor' protocol.")] [Export ("objectDidEndEditing:")] void ObjectDidEndEditing (NSObject editor); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, message: "Now on 'NSEditor' protocol.")] [Export ("commitEditing")] bool CommitEditing (); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Deprecated (PlatformName.MacOSX, message: "Now on 'NSEditor' protocol.")] [Export ("commitEditingWithDelegate:didCommitSelector:contextInfo:")] void CommitEditing (NSObject objDelegate, Selector didCommitSelector, IntPtr contextInfo); @@ -9215,20 +9604,20 @@ namespace Foundation [Export ("performSelector:withObject:afterDelay:")] void PerformSelector (Selector selector, [NullAllowed] NSObject withObject, double delay); - + [Export ("performSelector:onThread:withObject:waitUntilDone:")] void PerformSelector (Selector selector, NSThread onThread, [NullAllowed] NSObject withObject, bool waitUntilDone); - + [Export ("performSelector:onThread:withObject:waitUntilDone:modes:")] void PerformSelector (Selector selector, NSThread onThread, [NullAllowed] NSObject withObject, bool waitUntilDone, [NullAllowed] NSString [] nsRunLoopModes); - + [Static, Export ("cancelPreviousPerformRequestsWithTarget:")] void CancelPreviousPerformRequest (NSObject aTarget); [Static, Export ("cancelPreviousPerformRequestsWithTarget:selector:object:")] void CancelPreviousPerformRequest (NSObject aTarget, Selector selector, [NullAllowed] NSObject argument); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NoWatch] [Export ("prepareForInterfaceBuilder")] void PrepareForInterfaceBuilder (); @@ -9242,26 +9631,29 @@ namespace Foundation [Export ("awakeFromNib")] void AwakeFromNib (); - [NoWatch, TV (13,0), iOS (13,0), NoMac] + [NoWatch, TV (13, 0), iOS (13, 0), NoMac] [Export ("accessibilityRespondsToUserInteraction")] bool AccessibilityRespondsToUserInteraction { get; set; } - [NoWatch, TV (13,0), iOS (13,0), NoMac] + [NoWatch, TV (13, 0), iOS (13, 0), NoMac] [Export ("accessibilityUserInputLabels", ArgumentSemantic.Strong)] string [] AccessibilityUserInputLabels { get; set; } - [NoWatch, TV (13,0), iOS (13,0), NoMac] + [NoWatch, TV (13, 0), iOS (13, 0), NoMac] [Export ("accessibilityAttributedUserInputLabels", ArgumentSemantic.Copy)] - NSAttributedString[] AccessibilityAttributedUserInputLabels { get; set; } + NSAttributedString [] AccessibilityAttributedUserInputLabels { get; set; } - [NoWatch, TV (13,0), iOS (13,0), NoMac] + [NoWatch, TV (13, 0), iOS (13, 0), NoMac] [NullAllowed, Export ("accessibilityTextualContext", ArgumentSemantic.Strong)] string AccessibilityTextualContext { get; set; } } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - [Mac (10, 14)][NoWatch][NoTV][NoiOS] + [Mac (10, 14)] + [NoWatch] + [NoTV] + [NoiOS] interface NSBindingSelectionMarker : NSCopying { [Static] [Export ("multipleValuesSelectionMarker", ArgumentSemantic.Strong)] @@ -9275,12 +9667,12 @@ namespace Foundation [Export ("notApplicableSelectionMarker", ArgumentSemantic.Strong)] NSBindingSelectionMarker NotApplicableSelectionMarker { get; } - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("setDefaultPlaceholder:forMarker:onClass:withBinding:")] void SetDefaultPlaceholder ([NullAllowed] NSObject placeholder, [NullAllowed] NSBindingSelectionMarker marker, Class objectClass, string binding); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("defaultPlaceholderForMarker:onClass:withBinding:")] [return: NullAllowed] @@ -9321,7 +9713,8 @@ namespace Foundation [Abstract] [EditorBrowsable (EditorBrowsableState.Never)] - [Export ("self")][Transient] + [Export ("self")] + [Transient] NSObject Self { get; } [Abstract] @@ -9412,10 +9805,12 @@ namespace Foundation [Export ("isReady")] bool IsReady { get; } - [Export ("addDependency:")][PostGet ("Dependencies")] + [Export ("addDependency:")] + [PostGet ("Dependencies")] void AddDependency (NSOperation op); - [Export ("removeDependency:")][PostGet ("Dependencies")] + [Export ("removeDependency:")] + [PostGet ("Dependencies")] void RemoveDependency (NSOperation op); [Export ("dependencies")] @@ -9439,15 +9834,17 @@ namespace Foundation [Export ("queuePriority")] NSOperationQueuePriority QueuePriority { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("asynchronous")] bool Asynchronous { [Bind ("isAsynchronous")] get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("qualityOfService")] NSQualityOfService QualityOfService { get; set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("name")] string Name { get; set; } @@ -9468,37 +9865,41 @@ namespace Foundation [BaseType (typeof (NSObject))] interface NSOperationQueue : NSProgressReporting { - [Export ("addOperation:")][PostGet ("Operations")] + [Export ("addOperation:")] + [PostGet ("Operations")] void AddOperation ([NullAllowed] NSOperation op); - [Export ("addOperations:waitUntilFinished:")][PostGet ("Operations")] + [Export ("addOperations:waitUntilFinished:")] + [PostGet ("Operations")] void AddOperations ([NullAllowed] NSOperation [] operations, bool waitUntilFinished); - [Export ("addOperationWithBlock:")][PostGet ("Operations")] + [Export ("addOperationWithBlock:")] + [PostGet ("Operations")] void AddOperation (/* non null */ Action operation); - [Deprecated (PlatformName.MacOSX, 10,15, 0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] - [Deprecated (PlatformName.iOS, 13,0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] - [Deprecated (PlatformName.WatchOS, 6,0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, 0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "This API should not be used as it is subject to race conditions. If synchronization is needed use 'AddBarrier' instead.")] [Export ("operations")] NSOperation [] Operations { get; } - [Deprecated (PlatformName.MacOSX, 10,15)] - [Deprecated (PlatformName.iOS, 13,0)] - [Deprecated (PlatformName.WatchOS, 6,0)] - [Deprecated (PlatformName.TvOS, 13,0)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [Deprecated (PlatformName.iOS, 13, 0)] + [Deprecated (PlatformName.WatchOS, 6, 0)] + [Deprecated (PlatformName.TvOS, 13, 0)] [Export ("operationCount")] nint OperationCount { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("addBarrierBlock:")] void AddBarrier (Action barrier); [Export ("name")] string Name { get; set; } - [Export ("cancelAllOperations")][PostGet ("Operations")] + [Export ("cancelAllOperations")] + [PostGet ("Operations")] void CancelAllOperations (); [Export ("waitUntilAllOperationsAreFinished")] @@ -9517,20 +9918,22 @@ namespace Foundation nint MaxConcurrentOperationCount { get; set; } [Export ("suspended")] - bool Suspended { [Bind ("isSuspended")]get; set; } + bool Suspended { [Bind ("isSuspended")] get; set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("qualityOfService")] NSQualityOfService QualityOfService { get; set; } [NullAllowed] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("underlyingQueue", ArgumentSemantic.UnsafeUnretained)] DispatchQueue UnderlyingQueue { get; set; } - + } - interface NSOrderedSet : NSOrderedSet {} + interface NSOrderedSet : NSOrderedSet { } [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] @@ -9663,7 +10066,7 @@ namespace Foundation #endif } - interface NSMutableOrderedSet : NSMutableOrderedSet {} + interface NSMutableOrderedSet : NSMutableOrderedSet { } [BaseType (typeof (NSOrderedSet))] [DesignatedDefaultCtor] @@ -9813,25 +10216,25 @@ namespace Foundation void ApplyDifference (NSOrderedCollectionDifference difference); #endif } - + [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil [DisableDefaultCtor] interface NSOrthography : NSSecureCoding, NSCopying { [Export ("dominantScript")] - string DominantScript { get; } + string DominantScript { get; } [Export ("languageMap")] - NSDictionary LanguageMap { get; } + NSDictionary LanguageMap { get; } [Export ("dominantLanguage")] - string DominantLanguage { get; } + string DominantLanguage { get; } [Export ("allScripts")] - string [] AllScripts { get; } + string [] AllScripts { get; } [Export ("allLanguages")] - string [] AllLanguages { get; } + string [] AllLanguages { get; } [Export ("languagesForScript:")] string [] LanguagesForScript (string script); @@ -9843,7 +10246,7 @@ namespace Foundation [Export ("initWithDominantScript:languageMap:")] NativeHandle Constructor (string dominantScript, [NullAllowed] NSDictionary languageMap); } - + [BaseType (typeof (NSStream))] [DisableDefaultCtor] // crash when used interface NSOutputStream { @@ -9853,7 +10256,7 @@ namespace Foundation [Export ("hasSpaceAvailable")] bool HasSpaceAvailable (); - + //[Export ("initToBuffer:capacity:")] //NativeHandle Constructor (uint8_t buffer, NSUInteger capacity); @@ -9885,7 +10288,7 @@ namespace Foundation #endif } - [BaseType (typeof (NSObject), Name="NSHTTPCookie")] + [BaseType (typeof (NSObject), Name = "NSHTTPCookie")] // default 'init' crash both simulator and devices [DisableDefaultCtor] interface NSHttpCookie { @@ -9996,7 +10399,7 @@ namespace Foundation NSString SameSitePolicy { get; } } - [BaseType (typeof (NSObject), Name="NSHTTPCookieStorage")] + [BaseType (typeof (NSObject), Name = "NSHTTPCookieStorage")] // NSHTTPCookieStorage implements a singleton object -> use SharedStorage since 'init' returns NIL [DisableDefaultCtor] interface NSHttpCookieStorage { @@ -10025,21 +10428,24 @@ namespace Foundation NSHttpCookie [] GetSortedCookies (NSSortDescriptor [] sortDescriptors); // @required - (void)removeCookiesSinceDate:(NSDate *)date; - [Mac (10,10)][iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("removeCookiesSinceDate:")] void RemoveCookiesSinceDate (NSDate date); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("sharedCookieStorageForGroupContainerIdentifier:")] NSHttpCookieStorage GetSharedCookieStorage (string groupContainerIdentifier); - - [Mac (10,10)][iOS (8,0)] + + [Mac (10, 10)] + [iOS (8, 0)] [Async] [Export ("getCookiesForTask:completionHandler:")] void GetCookiesForTask (NSUrlSessionTask task, Action completionHandler); - [Mac (10,10)][iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("storeCookies:forTask:")] void StoreCookies (NSHttpCookie [] cookies, NSUrlSessionTask task); @@ -10051,68 +10457,77 @@ namespace Foundation [Field ("NSHTTPCookieManagerCookiesChangedNotification")] NSString AcceptPolicyChangedNotification { get; } } - - [BaseType (typeof (NSUrlResponse), Name="NSHTTPURLResponse")] + + [BaseType (typeof (NSUrlResponse), Name = "NSHTTPURLResponse")] interface NSHttpUrlResponse { [Export ("initWithURL:MIMEType:expectedContentLength:textEncodingName:")] NativeHandle Constructor (NSUrl url, string mimetype, nint expectedContentLength, [NullAllowed] string textEncodingName); [Export ("initWithURL:statusCode:HTTPVersion:headerFields:")] NativeHandle Constructor (NSUrl url, nint statusCode, [NullAllowed] string httpVersion, [NullAllowed] NSDictionary headerFields); - + [Export ("statusCode")] nint StatusCode { get; } [Export ("allHeaderFields")] NSDictionary AllHeaderFields { get; } - [Export ("localizedStringForStatusCode:")][Static] + [Export ("localizedStringForStatusCode:")] + [Static] string LocalizedStringForStatusCode (nint statusCode); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("valueForHTTPHeaderField:")] [return: NullAllowed] string GetHttpHeaderValue (string headerField); } - + [BaseType (typeof (NSObject))] #if MONOMAC [DisableDefaultCtor] // An uncaught exception was raised: -[__NSCFDictionary removeObjectForKey:]: attempt to remove nil key #endif partial interface NSBundle { - [Export ("mainBundle")][Static] + [Export ("mainBundle")] + [Static] NSBundle MainBundle { get; } - [Export ("bundleWithPath:")][Static] + [Export ("bundleWithPath:")] + [Static] NSBundle FromPath (string path); [DesignatedInitializer] [Export ("initWithPath:")] NativeHandle Constructor (string path); - [Export ("bundleForClass:")][Static] + [Export ("bundleForClass:")] + [Static] NSBundle FromClass (Class c); - [Export ("bundleWithIdentifier:")][Static] + [Export ("bundleWithIdentifier:")] + [Static] NSBundle FromIdentifier (string str); #if !XAMCORE_5_0 [Internal] - [Export ("allBundles")][Static] + [Export ("allBundles")] + [Static] NSArray _InternalAllBundles { get; } [Obsolete ("Use the 'AllBundles' property instead.")] - [Wrap ("_InternalAllBundles")][Static] + [Wrap ("_InternalAllBundles")] + [Static] NSBundle [] _AllBundles { get; } - [Wrap ("_InternalAllBundles")][Static] + [Wrap ("_InternalAllBundles")] + [Static] NSBundle [] AllBundles { get; } #else [Export ("allBundles")][Static] NSBundle [] AllBundles { get; } #endif - [Export ("allFrameworks")][Static] + [Export ("allFrameworks")] + [Static] NSBundle [] AllFrameworks { get; } [Export ("load")] @@ -10126,47 +10541,48 @@ namespace Foundation [Export ("bundlePath")] string BundlePath { get; } - + [Export ("resourcePath")] - string ResourcePath { get; } - + string ResourcePath { get; } + [Export ("executablePath")] string ExecutablePath { get; } - + [Export ("pathForAuxiliaryExecutable:")] string PathForAuxiliaryExecutable (string s); - + [Export ("privateFrameworksPath")] string PrivateFrameworksPath { get; } - + [Export ("sharedFrameworksPath")] string SharedFrameworksPath { get; } - + [Export ("sharedSupportPath")] string SharedSupportPath { get; } - + [Export ("builtInPlugInsPath")] string BuiltinPluginsPath { get; } - + [Export ("bundleIdentifier")] string BundleIdentifier { get; } [Export ("classNamed:")] Class ClassNamed (string className); - + [Export ("principalClass")] Class PrincipalClass { get; } - [Export ("pathForResource:ofType:inDirectory:")][Static] + [Export ("pathForResource:ofType:inDirectory:")] + [Static] string PathForResourceAbsolute (string name, [NullAllowed] string ofType, string bundleDirectory); - + [Export ("pathForResource:ofType:")] string PathForResource (string name, [NullAllowed] string ofType); [Export ("pathForResource:ofType:inDirectory:")] string PathForResource (string name, [NullAllowed] string ofType, [NullAllowed] string subpath); - + [Export ("pathForResource:ofType:inDirectory:forLocalization:")] string PathForResource (string name, [NullAllowed] string ofType, string subpath, string localizationName); @@ -10178,35 +10594,53 @@ namespace Foundation [Export ("developmentLocalization")] string DevelopmentLocalization { get; } - + [Export ("infoDictionary")] - NSDictionary InfoDictionary{ get; } + NSDictionary InfoDictionary { get; } // Additions from AppKit - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("loadNibNamed:owner:topLevelObjects:")] bool LoadNibNamed (string nibName, [NullAllowed] NSObject owner, out NSArray topLevelObjects); // https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSBundle_AppKitAdditions/Reference/Reference.html - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Static] [Deprecated (PlatformName.MacOSX, 10, 8)] [Export ("loadNibNamed:owner:")] bool LoadNib (string nibName, NSObject owner); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("pathForImageResource:")] string PathForImageResource (string resource); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("pathForSoundResource:")] string PathForSoundResource (string resource); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("URLForImageResource:")] NSUrl GetUrlForImageResource (string resource); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("contextHelpForKey:")] NSAttributedString GetContextHelp (string key); @@ -10218,7 +10652,7 @@ namespace Foundation [Export ("bundleURL")] NSUrl BundleUrl { get; } - + [Export ("resourceURL")] NSUrl ResourceUrl { get; } @@ -10242,7 +10676,7 @@ namespace Foundation [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); - + [Static, Export ("bundleWithURL:")] NSBundle FromUrl (NSUrl url); @@ -10252,7 +10686,7 @@ namespace Foundation [Export ("localizations")] string [] Localizations { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("appStoreReceiptURL")] NSUrl AppStoreReceiptUrl { get; } @@ -10284,75 +10718,77 @@ namespace Foundation NSUrl [] GetUrlsForResourcesWithExtension (string fileExtension, [NullAllowed] string subdirectory); [Export ("URLsForResourcesWithExtension:subdirectory:localization:")] - NSUrl [] GetUrlsForResourcesWithExtension (string fileExtension, [NullAllowed] string subdirectory, [NullAllowed] string localizationName); + NSUrl [] GetUrlsForResourcesWithExtension (string fileExtension, [NullAllowed] string subdirectory, [NullAllowed] string localizationName); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("preservationPriorityForTag:")] double GetPreservationPriority (NSString tag); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Export ("setPreservationPriority:forTags:")] void SetPreservationPriority (double priority, NSSet tags); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("localizedAttributedStringForKey:value:table:")] NSAttributedString GetLocalizedAttributedString (string key, [NullAllowed] string value, [NullAllowed] string tableName); } [NoMac] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSBundleResourceRequest : NSProgressReporting - { + interface NSBundleResourceRequest : NSProgressReporting { [Export ("initWithTags:")] NativeHandle Constructor (NSSet tags); - + [Export ("initWithTags:bundle:")] [DesignatedInitializer] NativeHandle Constructor (NSSet tags, NSBundle bundle); - + [Export ("loadingPriority")] double LoadingPriority { get; set; } - + [Export ("tags", ArgumentSemantic.Copy)] NSSet Tags { get; } - + [Export ("bundle", ArgumentSemantic.Strong)] NSBundle Bundle { get; } - + [Export ("beginAccessingResourcesWithCompletionHandler:")] [Async] void BeginAccessingResources (Action completionHandler); - + [Export ("conditionallyBeginAccessingResourcesWithCompletionHandler:")] [Async] void ConditionallyBeginAccessingResources (Action completionHandler); - + [Export ("endAccessingResources")] void EndAccessingResources (); - + [Field ("NSBundleResourceRequestLowDiskSpaceNotification")] [Notification] NSString LowDiskSpaceNotification { get; } - + [Field ("NSBundleResourceRequestLoadingPriorityUrgent")] double LoadingPriorityUrgent { get; } } - + [BaseType (typeof (NSObject))] interface NSIndexPath : NSCoding, NSSecureCoding, NSCopying { - [Export ("indexPathWithIndex:")][Static] + [Export ("indexPathWithIndex:")] + [Static] NSIndexPath FromIndex (nuint index); - [Export ("indexPathWithIndexes:length:")][Internal][Static] + [Export ("indexPathWithIndexes:length:")] + [Internal] + [Static] NSIndexPath _FromIndex (IntPtr indexes, nint len); [Export ("indexPathByAddingIndex:")] NSIndexPath IndexPathByAddingIndex (nuint index); - + [Export ("indexPathByRemovingLastIndex")] NSIndexPath IndexPathByRemovingLastIndex (); @@ -10360,13 +10796,16 @@ namespace Foundation nuint IndexAtPosition (nint position); [Export ("length")] - nint Length { get; } + nint Length { get; } - [Export ("getIndexes:")][Internal] + [Export ("getIndexes:")] + [Internal] void _GetIndexes (IntPtr target); - [Mac (10,9)][iOS (7,0)] - [Export ("getIndexes:range:")][Internal] + [Mac (10, 9)] + [iOS (7, 0)] + [Export ("getIndexes:range:")] + [Internal] void _GetIndexes (IntPtr target, NSRange positionRange); [Export ("compare:")] @@ -10392,25 +10831,28 @@ namespace Foundation [Export ("indexPathForRow:inSection:")] NSIndexPath FromRowSection (nint row, nint section); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Mac (10,11)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Mac (10, 11)] [Export ("section")] nint Section { get; } [NoWatch] [Static] - [Mac (10,11)] + [Mac (10, 11)] [Export ("indexPathForItem:inSection:")] NSIndexPath FromItemSection (nint item, nint section); [NoWatch] [Export ("item")] - [Mac (10,11)] + [Mac (10, 11)] nint Item { get; } } delegate void NSRangeIterator (NSRange range, ref bool stop); - + [BaseType (typeof (NSObject))] interface NSIndexSet : NSCoding, NSSecureCoding, NSMutableCopying { [Static, Export ("indexSetWithIndex:")] @@ -10418,7 +10860,7 @@ namespace Foundation [Static, Export ("indexSetWithIndexesInRange:")] NSIndexSet FromNSRange (NSRange indexRange); - + [Export ("initWithIndex:")] NativeHandle Constructor (nuint index); @@ -10509,7 +10951,8 @@ namespace Foundation } - [iOS (8,0)][Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0)] + [Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] partial interface NSItemProvider : NSCopying { @@ -10531,17 +10974,17 @@ namespace Foundation [Async] [Export ("loadItemForTypeIdentifier:options:completionHandler:")] - void LoadItem (string typeIdentifier, [NullAllowed] NSDictionary options, [NullAllowed] Action completionHandler); + void LoadItem (string typeIdentifier, [NullAllowed] NSDictionary options, [NullAllowed] Action completionHandler); [Field ("NSItemProviderPreferredImageSizeKey")] - NSString PreferredImageSizeKey { get; } + NSString PreferredImageSizeKey { get; } [Export ("setPreviewImageHandler:")] void SetPreviewImageHandler (NSItemProviderLoadHandler handler); [Async] [Export ("loadPreviewImageWithOptions:completionHandler:")] - void LoadPreviewImage (NSDictionary options, Action completionHandler); + void LoadPreviewImage (NSDictionary options, Action completionHandler); [Field ("NSItemProviderErrorDomain")] NSString ErrorDomain { get; } @@ -10555,7 +10998,7 @@ namespace Foundation CGRect ContainerFrame { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [MacCatalyst (13, 0)] [Export ("preferredPresentationSize")] CGSize PreferredPresentationSize { @@ -10567,73 +11010,73 @@ namespace Foundation } [NoiOS, NoTV, NoWatch, NoMacCatalyst] - [Mac (10,12)] // [Async] handled by NSItemProvider.cs for backwards compat reasons + [Mac (10, 12)] // [Async] handled by NSItemProvider.cs for backwards compat reasons [Export ("registerCloudKitShareWithPreparationHandler:")] void RegisterCloudKitShare (CloudKitRegistrationPreparationAction preparationHandler); [NoiOS, NoTV, NoWatch, NoMacCatalyst] - [Mac (10,12)] + [Mac (10, 12)] [Export ("registerCloudKitShare:container:")] void RegisterCloudKitShare (CKShare share, CKContainer container); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("registerDataRepresentationForTypeIdentifier:visibility:loadHandler:")] void RegisterDataRepresentation (string typeIdentifier, NSItemProviderRepresentationVisibility visibility, RegisterDataRepresentationLoadHandler loadHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:")] void RegisterFileRepresentation (string typeIdentifier, NSItemProviderFileOptions fileOptions, NSItemProviderRepresentationVisibility visibility, RegisterFileRepresentationLoadHandler loadHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("registeredTypeIdentifiersWithFileOptions:")] - string[] GetRegisteredTypeIdentifiers (NSItemProviderFileOptions fileOptions); + string [] GetRegisteredTypeIdentifiers (NSItemProviderFileOptions fileOptions); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("hasRepresentationConformingToTypeIdentifier:fileOptions:")] bool HasConformingRepresentation (string typeIdentifier, NSItemProviderFileOptions fileOptions); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async, Export ("loadDataRepresentationForTypeIdentifier:completionHandler:")] - NSProgress LoadDataRepresentation (string typeIdentifier, Action completionHandler); + NSProgress LoadDataRepresentation (string typeIdentifier, Action completionHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async, Export ("loadFileRepresentationForTypeIdentifier:completionHandler:")] - NSProgress LoadFileRepresentation (string typeIdentifier, Action completionHandler); + NSProgress LoadFileRepresentation (string typeIdentifier, Action completionHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async (ResultTypeName = "LoadInPlaceResult"), Export ("loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:")] NSProgress LoadInPlaceFileRepresentation (string typeIdentifier, LoadInPlaceFileRepresentationHandler completionHandler); - [NoWatch, NoTV, iOS (11,0)] - [Mac (10,14)] + [NoWatch, NoTV, iOS (11, 0)] + [Mac (10, 14)] [NullAllowed, Export ("suggestedName")] string SuggestedName { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("initWithObject:")] NativeHandle Constructor (INSItemProviderWriting @object); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("registerObject:visibility:")] void RegisterObject (INSItemProviderWriting @object, NSItemProviderRepresentationVisibility visibility); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("registerObjectOfClass:visibility:loadHandler:")] void RegisterObject (Class aClass, NSItemProviderRepresentationVisibility visibility, RegisterObjectRepresentationLoadHandler loadHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Wrap ("RegisterObject (new Class (type), visibility, loadHandler)")] void RegisterObject (Type type, NSItemProviderRepresentationVisibility visibility, RegisterObjectRepresentationLoadHandler loadHandler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("canLoadObjectOfClass:")] bool CanLoadObject (Class aClass); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Wrap ("CanLoadObject (new Class (type))")] bool CanLoadObject (Type type); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async, Export ("loadObjectOfClass:completionHandler:")] NSProgress LoadObject (Class aClass, Action completionHandler); @@ -10641,66 +11084,66 @@ namespace Foundation [NoWatch, NoTV] [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [MacCatalyst (13, 0)] [NullAllowed, Export ("teamData", ArgumentSemantic.Copy)] NSData TeamData { get; set; } [NoWatch, NoTV] [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [MacCatalyst (13, 0)] [Export ("preferredPresentationStyle", ArgumentSemantic.Assign)] UIPreferredPresentationStyle PreferredPresentationStyle { get; set; } // extension methods from CloudKit - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registerCKShareWithContainer:allowedSharingOptions:preparationHandler:")] void RegisterCKShare (CKContainer container, CKAllowedSharingOptions allowedOptions, Action preparationHandler); - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registerCKShare:container:allowedSharingOptions:")] void RegisterCKShare (CKShare share, CKContainer container, CKAllowedSharingOptions allowedOptions); // from interface UTType (NSItemProvider) - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithContentsOfURL:contentType:openInPlace:coordinated:visibility:")] NativeHandle Constructor (NSUrl fileUrl, [NullAllowed] UTType contentType, bool openInPlace, bool coordinated, NSItemProviderRepresentationVisibility visibility); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registerDataRepresentationForContentType:visibility:loadHandler:")] void RegisterDataRepresentation (UTType contentType, NSItemProviderRepresentationVisibility visibility, NSItemProviderUTTypeLoadDelegate loadHandler); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registerFileRepresentationForContentType:visibility:openInPlace:loadHandler:")] void RegisterFileRepresentation (UTType contentType, NSItemProviderRepresentationVisibility visibility, bool openInPlace, NSItemProviderUTTypeLoadDelegate loadHandler); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registeredContentTypes", ArgumentSemantic.Copy)] - UTType[] RegisteredContentTypes { get; } + UTType [] RegisteredContentTypes { get; } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registeredContentTypesForOpenInPlace", ArgumentSemantic.Copy)] - UTType[] RegisteredContentTypesForOpenInPlace { get; } + UTType [] RegisteredContentTypesForOpenInPlace { get; } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("registeredContentTypesConformingToContentType:")] - UTType[] RegisteredContentTypesConforming (UTType contentType); + UTType [] RegisteredContentTypesConforming (UTType contentType); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("loadDataRepresentationForContentType:completionHandler:")] NSProgress LoadDataRepresentation (UTType contentType, ItemProviderDataCompletionHandler completionHandler); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("loadFileRepresentationForContentType:openInPlace:completionHandler:")] NSProgress LoadFileRepresentation (UTType contentType, bool openInPlace, LoadFileRepresentationHandler completionHandler); } - - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] delegate NSProgress NSItemProviderUTTypeLoadDelegate ([BlockCallback] ItemProviderDataCompletionHandler completionHandler); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] delegate void LoadFileRepresentationHandler (NSUrl fileUrl, bool openInPlace, NSError error); delegate NSProgress RegisterFileRepresentationLoadHandler ([BlockCallback] RegisterFileRepresentationCompletionHandler completionHandler); delegate void RegisterFileRepresentationCompletionHandler (NSUrl fileUrl, bool coordinated, NSError error); @@ -10710,12 +11153,11 @@ namespace Foundation delegate NSProgress RegisterObjectRepresentationLoadHandler ([BlockCallback] RegisterObjectRepresentationCompletionHandler completionHandler); delegate void RegisterObjectRepresentationCompletionHandler (INSItemProviderWriting @object, NSError error); - interface INSItemProviderReading {} - - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + interface INSItemProviderReading { } + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] - interface NSItemProviderReading - { + interface NSItemProviderReading { // This static method has to be implemented on each class that implements // this, this is not a capability that exists in C#. // We are inlining these on each class that implements NSItemProviderReading @@ -10725,7 +11167,7 @@ namespace Foundation // [Static, Abstract] [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - string[] ReadableTypeIdentifiers { get; } + string [] ReadableTypeIdentifiers { get; } [Static, Abstract] [Export ("objectWithItemProviderData:typeIdentifier:error:")] @@ -10733,12 +11175,11 @@ namespace Foundation INSItemProviderReading GetObject (NSData data, string typeIdentifier, [NullAllowed] out NSError outError); } - interface INSItemProviderWriting {} + interface INSItemProviderWriting { } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] - interface NSItemProviderWriting - { + interface NSItemProviderWriting { // // This static method has to be implemented on each class that implements // this, this is not a capability that exists in C#. @@ -10749,7 +11190,7 @@ namespace Foundation // [Static, Abstract] [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] - string[] WritableTypeIdentifiers { get; } + string [] WritableTypeIdentifiers { get; } // This is an optional method, which means the generator will inline it in any classes // that implements this interface. Unfortunately none of the native classes that implements @@ -10763,7 +11204,7 @@ namespace Foundation [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] // 'WritableTypeIdentifiers' is a nicer name, but there's a static property with that name. - string[] WritableTypeIdentifiersForItemProvider { get; } + string [] WritableTypeIdentifiersForItemProvider { get; } [Export ("itemProviderVisibilityForRepresentationWithTypeIdentifier:")] // 'GetItemProviderVisibility' is a nicer name, but there's a static method with that name. @@ -10776,7 +11217,7 @@ namespace Foundation } [Static] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] partial interface NSJavaScriptExtension { [Field ("NSExtensionJavaScriptPreprocessingResultsKey")] NSString PreprocessingResultsKey { get; } @@ -10785,7 +11226,7 @@ namespace Foundation NSString FinalizeArgumentKey { get; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] interface NSTypeIdentifier { [Field ("NSTypeIdentifierDateText")] NSString DateText { get; } @@ -10799,14 +11240,14 @@ namespace Foundation [Field ("NSTypeIdentifierTransitInformationText")] NSString TransitInformationText { get; } } - + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // `init` returns a null handle interface NSMethodSignature { [Static] [Export ("signatureWithObjCTypes:")] NSMethodSignature FromObjcTypes (IntPtr utf8objctypes); - + [Export ("numberOfArguments")] nuint NumberOfArguments { get; } @@ -10826,7 +11267,7 @@ namespace Foundation IntPtr MethodReturnType { get; } } - [BaseType (typeof (NSObject), Name="NSJSONSerialization")] + [BaseType (typeof (NSObject), Name = "NSJSONSerialization")] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** +[NSJSONSerialization allocWithZone:]: Do not create instances of NSJSONSerialization in this release [DisableDefaultCtor] interface NSJsonSerialization { @@ -10851,7 +11292,7 @@ namespace Foundation NSObject Deserialize (NSInputStream stream, NSJsonReadingOptions opt, out NSError error); } - + [BaseType (typeof (NSIndexSet))] interface NSMutableIndexSet : NSSecureCoding { [Export ("initWithIndex:")] @@ -10890,7 +11331,7 @@ namespace Foundation [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] [DisableDefaultCtor] // the instance just crash when trying to call selectors - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSNetServiceDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (NSNetServiceDelegate) })] interface NSNetService { [DesignatedInitializer] [Export ("initWithDomain:type:name:port:")] @@ -10898,10 +11339,10 @@ namespace Foundation [Export ("initWithDomain:type:name:")] NativeHandle Constructor (string domain, string type, string name); - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } - + [Wrap ("WeakDelegate")] [Protocolize] NSNetServiceDelegate Delegate { get; set; } @@ -10950,8 +11391,8 @@ namespace Foundation void Publish (NSNetServiceOptions options); [Export ("resolve")] - [Deprecated (PlatformName.iOS, 2, 0, message : "Use 'Resolve (double)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 4, message : "Use 'Resolve (double)' instead.")] + [Deprecated (PlatformName.iOS, 2, 0, message: "Use 'Resolve (double)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 4, message: "Use 'Resolve (double)' instead.")] [NoWatch] void Resolve (); @@ -10963,17 +11404,17 @@ namespace Foundation [Static, Export ("dictionaryFromTXTRecordData:")] NSDictionary DictionaryFromTxtRecord (NSData data); - + [Static, Export ("dataFromTXTRecordDictionary:")] NSData DataFromTxtRecord (NSDictionary dictionary); - + [NullAllowed] [Export ("hostName", ArgumentSemantic.Copy)] string HostName { get; } [Export ("getInputStream:outputStream:")] bool GetStreams (out NSInputStream inputStream, out NSOutputStream outputStream); - + [return: NullAllowed] [Export ("TXTRecordData")] NSData GetTxtRecordData (); @@ -10989,7 +11430,7 @@ namespace Foundation [Export ("stopMonitoring")] void StopMonitoring (); - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("includesPeerToPeer")] bool IncludesPeerToPeer { get; set; } } @@ -11022,7 +11463,7 @@ namespace Foundation [Export ("netService:didUpdateTXTRecordData:"), EventArgs ("NSNetServiceData")] void UpdatedTxtRecordData (NSNetService sender, NSData data); - [iOS (7,0)] + [iOS (7, 0)] [Export ("netService:didAcceptConnectionWithInputStream:outputStream:"), EventArgs ("NSNetServiceConnection")] void DidAcceptConnection (NSNetService sender, NSInputStream inputStream, NSOutputStream outputStream); } @@ -11032,8 +11473,8 @@ namespace Foundation [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] [BaseType (typeof (NSObject), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] {typeof (NSNetServiceBrowserDelegate)})] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSNetServiceBrowserDelegate) })] interface NSNetServiceBrowser { [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -11076,7 +11517,7 @@ namespace Foundation [Export ("stop")] void Stop (); - [iOS (7,0), Mac(10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("includesPeerToPeer")] bool IncludesPeerToPeer { get; set; } } @@ -11087,22 +11528,22 @@ namespace Foundation interface NSNetServiceBrowserDelegate { [Export ("netServiceBrowserWillSearch:")] void SearchStarted (NSNetServiceBrowser sender); - + [Export ("netServiceBrowserDidStopSearch:")] void SearchStopped (NSNetServiceBrowser sender); - + [Export ("netServiceBrowser:didNotSearch:"), EventArgs ("NSNetServiceError")] void NotSearched (NSNetServiceBrowser sender, NSDictionary errors); - + [Export ("netServiceBrowser:didFindDomain:moreComing:"), EventArgs ("NSNetDomain")] void FoundDomain (NSNetServiceBrowser sender, string domain, bool moreComing); - + [Export ("netServiceBrowser:didFindService:moreComing:"), EventArgs ("NSNetService")] void FoundService (NSNetServiceBrowser sender, NSNetService service, bool moreComing); - + [Export ("netServiceBrowser:didRemoveDomain:moreComing:"), EventArgs ("NSNetDomain")] void DomainRemoved (NSNetServiceBrowser sender, string domain, bool moreComing); - + [Export ("netServiceBrowser:didRemoveService:moreComing:"), EventArgs ("NSNetService")] void ServiceRemoved (NSNetServiceBrowser sender, NSNetService service, bool moreComing); } @@ -11123,36 +11564,39 @@ namespace Foundation [NullAllowed] NSDictionary UserInfo { get; } - [Export ("notificationWithName:object:")][Static] + [Export ("notificationWithName:object:")] + [Static] NSNotification FromName (string name, [NullAllowed] NSObject obj); - [Export ("notificationWithName:object:userInfo:")][Static] - NSNotification FromName (string name,[NullAllowed] NSObject obj, [NullAllowed] NSDictionary userInfo); - + [Export ("notificationWithName:object:userInfo:")] + [Static] + NSNotification FromName (string name, [NullAllowed] NSObject obj, [NullAllowed] NSDictionary userInfo); + } [BaseType (typeof (NSObject))] interface NSNotificationCenter { - [Static][Export ("defaultCenter", ArgumentSemantic.Strong)] + [Static] + [Export ("defaultCenter", ArgumentSemantic.Strong)] NSNotificationCenter DefaultCenter { get; } - + [Export ("addObserver:selector:name:object:")] [PostSnippet ("AddObserverToList (observer, aName, anObject);", Optimizable = true)] void AddObserver (NSObject observer, Selector aSelector, [NullAllowed] NSString aName, [NullAllowed] NSObject anObject); - + [Export ("postNotification:")] void PostNotification (NSNotification notification); - + [Export ("postNotificationName:object:")] void PostNotificationName (string aName, [NullAllowed] NSObject anObject); - + [Export ("postNotificationName:object:userInfo:")] void PostNotificationName (string aName, [NullAllowed] NSObject anObject, [NullAllowed] NSDictionary aUserInfo); - + [Export ("removeObserver:")] [PostSnippet ("RemoveObserversFromList (observer, null, null);", Optimizable = true)] void RemoveObserver (NSObject observer); - + [Export ("removeObserver:name:object:")] [PostSnippet ("RemoveObserversFromList (observer, aName, anObject);", Optimizable = true)] void RemoveObserver (NSObject observer, [NullAllowed] string aName, [NullAllowed] NSObject anObject); @@ -11161,12 +11605,14 @@ namespace Foundation NSObject AddObserver ([NullAllowed] string name, [NullAllowed] NSObject obj, [NullAllowed] NSOperationQueue queue, Action handler); } - [NoiOS][NoTV][NoWatch] - [Mac (10, 10)][MacCatalyst(15, 0)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [Mac (10, 10)] + [MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSDistributedLock - { + interface NSDistributedLock { [Static] [Export ("lockWithPath:")] [return: NullAllowed] @@ -11189,8 +11635,10 @@ namespace Foundation NSDate LockDate { get; } } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15, 0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [BaseType (typeof (NSNotificationCenter))] interface NSDistributedNotificationCenter { [Static] @@ -11211,7 +11659,7 @@ namespace Foundation [Export ("postNotificationName:object:userInfo:deliverImmediately:")] void PostNotificationName (string name, [NullAllowed] string anObject, [NullAllowed] NSDictionary userInfo, bool deliverImmediately); - + [Export ("postNotificationName:object:userInfo:options:")] void PostNotificationName (string name, [NullAllowed] string anObjecb, [NullAllowed] NSDictionary userInfo, NSNotificationFlags options); @@ -11230,14 +11678,15 @@ namespace Foundation //Detected properties [Export ("suspended")] bool Suspended { get; set; } - + [Field ("NSLocalNotificationCenterType")] - NSString NSLocalNotificationCenterType {get;} + NSString NSLocalNotificationCenterType { get; } } - + [BaseType (typeof (NSObject))] interface NSNotificationQueue { - [Static][IsThreadStatic] + [Static] + [IsThreadStatic] [Export ("defaultQueue", ArgumentSemantic.Strong)] NSNotificationQueue DefaultQueue { get; } @@ -11266,71 +11715,74 @@ namespace Foundation // init returns NIL [DisableDefaultCtor] partial interface NSValue : NSSecureCoding, NSCopying { - [Deprecated (PlatformName.MacOSX, 10, 13, message:"Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message:"Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message:"Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message:"Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Potential for buffer overruns. Use 'StoreValueAtAddress (IntPtr, nuint)' instead.")] [Export ("getValue:")] void StoreValueAtAddress (IntPtr value); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("getValue:size:")] void StoreValueAtAddress (IntPtr value, nuint size); - [Export ("objCType")][Internal] + [Export ("objCType")] + [Internal] IntPtr ObjCTypePtr (); - + //[Export ("initWithBytes:objCType:")][Internal] //NSValue InitFromBytes (IntPtr byte_ptr, IntPtr char_ptr_type); - [Static][Internal] + [Static] + [Internal] [Export ("valueWithBytes:objCType:")] NSValue Create (IntPtr bytes, IntPtr objCType); [Static] [Export ("valueWithNonretainedObject:")] NSValue ValueFromNonretainedObject (NSObject anObject); - + [Export ("nonretainedObjectValue")] NSObject NonretainedObjectValue { get; } - + [Static] [Export ("valueWithPointer:")] NSValue ValueFromPointer (IntPtr pointer); - + [Export ("pointerValue")] IntPtr PointerValue { get; } - + [Export ("isEqualToValue:")] bool IsEqualTo (NSValue value); - - [Export ("valueWithRange:")][Static] - NSValue FromRange(NSRange range); + + [Export ("valueWithRange:")] + [Static] + NSValue FromRange (NSRange range); [Export ("rangeValue")] NSRange RangeValue { get; } - [Watch (6,0)] + [Watch (6, 0)] [Static, Export ("valueWithCMTime:")] NSValue FromCMTime (CMTime time); - [Watch (6,0)] + [Watch (6, 0)] [Export ("CMTimeValue")] CMTime CMTimeValue { get; } - [Watch (6,0)] + [Watch (6, 0)] [Static, Export ("valueWithCMTimeMapping:")] NSValue FromCMTimeMapping (CMTimeMapping timeMapping); - [Watch (6,0)] + [Watch (6, 0)] [Export ("CMTimeMappingValue")] CMTimeMapping CMTimeMappingValue { get; } - [Watch (6,0)] + [Watch (6, 0)] [Static, Export ("valueWithCMTimeRange:")] NSValue FromCMTimeRange (CMTimeRange timeRange); - [Watch (6,0)] + [Watch (6, 0)] [Export ("CMTimeRangeValue")] CMTimeRange CMTimeRangeValue { get; } @@ -11362,7 +11814,7 @@ namespace Foundation [Mac (10,0)] [Export ("rectValue")] #else - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("CGRectValue")] #endif CGRect CGRectValue { get; } @@ -11371,7 +11823,7 @@ namespace Foundation [Mac (10,0)] [Export ("sizeValue")] #else - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("CGSizeValue")] #endif CGSize CGSizeValue { get; } @@ -11380,7 +11832,7 @@ namespace Foundation [Mac (10,0)] [Export ("pointValue")] #else - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("CGPointValue")] #endif CGPoint CGPointValue { get; } @@ -11388,31 +11840,34 @@ namespace Foundation [NoMac] [Export ("CGAffineTransformValue")] CoreGraphics.CGAffineTransform CGAffineTransformValue { get; } - + [NoMac] [Export ("UIEdgeInsetsValue")] UIEdgeInsets UIEdgeInsetsValue { get; } [NoMac] - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("directionalEdgeInsetsValue")] NSDirectionalEdgeInsets DirectionalEdgeInsetsValue { get; } [NoMac] - [Export ("valueWithCGAffineTransform:")][Static] + [Export ("valueWithCGAffineTransform:")] + [Static] NSValue FromCGAffineTransform (CoreGraphics.CGAffineTransform tran); [NoMac] - [Export ("valueWithUIEdgeInsets:")][Static] + [Export ("valueWithUIEdgeInsets:")] + [Static] NSValue FromUIEdgeInsets (UIEdgeInsets insets); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [NoMac] [Static] [Export ("valueWithDirectionalEdgeInsets:")] NSValue FromDirectionalEdgeInsets (NSDirectionalEdgeInsets insets); - [Export ("valueWithUIOffset:")][Static] + [Export ("valueWithUIOffset:")] + [Static] [NoMac] NSValue FromUIOffset (UIOffset insets); @@ -11422,39 +11877,40 @@ namespace Foundation // from UIGeometry.h - those are in iOS8 only (even if the header is silent about them) // and not in OSX 10.10 - [iOS (8,0)] + [iOS (8, 0)] [Export ("CGVectorValue")] [NoMac] CGVector CGVectorValue { get; } - [iOS (8,0)] + [iOS (8, 0)] [Static, Export ("valueWithCGVector:")] [NoMac] NSValue FromCGVector (CGVector vector); // Maybe we should include this inside mapkit.cs instead (it's a partial interface, so that's trivial)? - [TV (9,2)] - [Mac (10,9)] // The header doesn't say, but the rest of the API from the same file (MKGeometry.h) was introduced in 10.9 + [TV (9, 2)] + [Mac (10, 9)] // The header doesn't say, but the rest of the API from the same file (MKGeometry.h) was introduced in 10.9 [Static, Export ("valueWithMKCoordinate:")] NSValue FromMKCoordinate (CoreLocation.CLLocationCoordinate2D coordinate); - [TV (9,2)] - [Mac (10,9)] // The header doesn't say, but the rest of the API from the same file (MKGeometry.h) was introduced in 10.9 + [TV (9, 2)] + [Mac (10, 9)] // The header doesn't say, but the rest of the API from the same file (MKGeometry.h) was introduced in 10.9 [Static, Export ("valueWithMKCoordinateSpan:")] NSValue FromMKCoordinateSpan (MapKit.MKCoordinateSpan coordinateSpan); - [TV (9,2)] + [TV (9, 2)] [Mac (10, 9)] [Export ("MKCoordinateValue")] CoreLocation.CLLocationCoordinate2D CoordinateValue { get; } - [TV (9,2)] + [TV (9, 2)] [Mac (10, 9)] [Export ("MKCoordinateSpanValue")] MapKit.MKCoordinateSpan CoordinateSpanValue { get; } #if !WATCH - [Export ("valueWithCATransform3D:")][Static] + [Export ("valueWithCATransform3D:")] + [Static] NSValue FromCATransform3D (CoreAnimation.CATransform3D transform); [Export ("CATransform3DValue")] @@ -11463,27 +11919,33 @@ namespace Foundation #region SceneKit Additions - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Static, Export ("valueWithSCNVector3:")] NSValue FromVector (SCNVector3 vector); - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Export ("SCNVector3Value")] SCNVector3 Vector3Value { get; } - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Static, Export ("valueWithSCNVector4:")] NSValue FromVector (SCNVector4 vector); - [iOS (8,0)][Mac (10,9)] + [iOS (8, 0)] + [Mac (10, 9)] [Export ("SCNVector4Value")] SCNVector4 Vector4Value { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Static, Export ("valueWithSCNMatrix4:")] NSValue FromSCNMatrix4 (SCNMatrix4 matrix); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("SCNMatrix4Value")] SCNMatrix4 SCNMatrix4Value { get; } @@ -11504,7 +11966,7 @@ namespace Foundation [Static] [Export ("valueTransformerNames")] - string[] ValueTransformerNames { get; } + string [] ValueTransformerNames { get; } [Static] [Export ("transformedValueClass")] @@ -11578,8 +12040,8 @@ namespace Foundation NSString SecureUnarchiveFromDataTransformerName { get; } } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] - [BaseType (typeof(NSValueTransformer))] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] + [BaseType (typeof (NSValueTransformer))] interface NSSecureUnarchiveFromDataTransformer { [Static] [Export ("allowedTopLevelClasses", ArgumentSemantic.Copy)] @@ -11589,50 +12051,50 @@ namespace Foundation [Wrap ("Array.ConvertAll (AllowedTopLevelClasses, c => Class.Lookup (c))")] Type [] AllowedTopLevelTypes { get; } } - + [BaseType (typeof (NSValue))] // init returns NIL [DisableDefaultCtor] interface NSNumber : CKRecordValue, NSFetchRequestResult { [Export ("charValue")] sbyte SByteValue { get; } - + [Export ("unsignedCharValue")] byte ByteValue { get; } - + [Export ("shortValue")] short Int16Value { get; } - + [Export ("unsignedShortValue")] ushort UInt16Value { get; } - + [Export ("intValue")] int Int32Value { get; } - + [Export ("unsignedIntValue")] - uint UInt32Value { get; } - + uint UInt32Value { get; } + [Export ("longValue")] nint LongValue { get; } - + [Export ("unsignedLongValue")] nuint UnsignedLongValue { get; } - + [Export ("longLongValue")] long Int64Value { get; } - + [Export ("unsignedLongLongValue")] ulong UInt64Value { get; } - + [Export ("floatValue")] float FloatValue { get; } /* float, not CGFloat */ - + [Export ("doubleValue")] double DoubleValue { get; } [Export ("decimalValue")] NSDecimal NSDecimalValue { get; } - + [Export ("boolValue")] bool BoolValue { get; } @@ -11647,60 +12109,60 @@ namespace Foundation [Export ("compare:")] nint Compare (NSNumber otherNumber); - + [Internal] // Equals(object) or IEquatable's Equals(NSNumber) [Export ("isEqualToNumber:")] bool IsEqualToNumber (NSNumber number); - + [Export ("descriptionWithLocale:")] string DescriptionWithLocale (NSLocale locale); [DesignatedInitializer] [Export ("initWithChar:")] NativeHandle Constructor (sbyte value); - + [DesignatedInitializer] [Export ("initWithUnsignedChar:")] NativeHandle Constructor (byte value); - + [DesignatedInitializer] [Export ("initWithShort:")] NativeHandle Constructor (short value); - + [DesignatedInitializer] [Export ("initWithUnsignedShort:")] NativeHandle Constructor (ushort value); - + [DesignatedInitializer] [Export ("initWithInt:")] NativeHandle Constructor (int /* int, not NSInteger */ value); - + [DesignatedInitializer] [Export ("initWithUnsignedInt:")] NativeHandle Constructor (uint /* unsigned int, not NSUInteger */value); - + //[Export ("initWithLong:")] //NativeHandle Constructor (long value); // //[Export ("initWithUnsignedLong:")] //NativeHandle Constructor (ulong value); - + [DesignatedInitializer] [Export ("initWithLongLong:")] NativeHandle Constructor (long value); - + [DesignatedInitializer] [Export ("initWithUnsignedLongLong:")] NativeHandle Constructor (ulong value); - + [DesignatedInitializer] [Export ("initWithFloat:")] NativeHandle Constructor (float /* float, not CGFloat */ value); - + [DesignatedInitializer] [Export ("initWithDouble:")] NativeHandle Constructor (double value); - + [DesignatedInitializer] [Export ("initWithBool:")] NativeHandle Constructor (bool value); @@ -11712,26 +12174,27 @@ namespace Foundation [DesignatedInitializer] [Export ("initWithUnsignedInteger:")] NativeHandle Constructor (nuint value); - - [Export ("numberWithChar:")][Static] + + [Export ("numberWithChar:")] + [Static] NSNumber FromSByte (sbyte value); - + [Static] [Export ("numberWithUnsignedChar:")] NSNumber FromByte (byte value); - + [Static] [Export ("numberWithShort:")] NSNumber FromInt16 (short value); - + [Static] [Export ("numberWithUnsignedShort:")] NSNumber FromUInt16 (ushort value); - + [Static] [Export ("numberWithInt:")] NSNumber FromInt32 (int /* int, not NSInteger */ value); - + [Static] [Export ("numberWithUnsignedInt:")] NSNumber FromUInt32 (uint /* unsigned int, not NSUInteger */ value); @@ -11743,23 +12206,23 @@ namespace Foundation [Static] [Export ("numberWithUnsignedLong:")] NSNumber FromUnsignedLong (nuint value); - + [Static] [Export ("numberWithLongLong:")] NSNumber FromInt64 (long value); - + [Static] [Export ("numberWithUnsignedLongLong:")] NSNumber FromUInt64 (ulong value); - + [Static] [Export ("numberWithFloat:")] NSNumber FromFloat (float /* float, not CGFloat */ value); - + [Static] [Export ("numberWithDouble:")] NSNumber FromDouble (double value); - + [Static] [Export ("numberWithBool:")] NSNumber FromBoolean (bool value); @@ -11956,7 +12419,7 @@ namespace Foundation string CurrencyGroupingSeparator { get; set; } [Export ("lenient")] - bool Lenient { [Bind ("isLenient")]get; set; } + bool Lenient { [Bind ("isLenient")] get; set; } [Export ("usesSignificantDigits")] bool UsesSignificantDigits { get; set; } @@ -11968,14 +12431,14 @@ namespace Foundation nuint MaximumSignificantDigits { get; set; } [Export ("partialStringValidationEnabled")] - bool PartialStringValidationEnabled { [Bind ("isPartialStringValidationEnabled")]get; set; } + bool PartialStringValidationEnabled { [Bind ("isPartialStringValidationEnabled")] get; set; } } [BaseType (typeof (NSNumber))] interface NSDecimalNumber : NSSecureCoding { [Export ("initWithMantissa:exponent:isNegative:")] NativeHandle Constructor (long mantissa, short exponent, bool isNegative); - + [DesignatedInitializer] [Export ("initWithDecimal:")] NativeHandle Constructor (NSDecimal dec); @@ -11993,19 +12456,24 @@ namespace Foundation [Export ("decimalValue")] NSDecimal NSDecimalValue { get; } - [Export ("zero", ArgumentSemantic.Copy)][Static] + [Export ("zero", ArgumentSemantic.Copy)] + [Static] NSDecimalNumber Zero { get; } - [Export ("one", ArgumentSemantic.Copy)][Static] + [Export ("one", ArgumentSemantic.Copy)] + [Static] NSDecimalNumber One { get; } - - [Export ("minimumDecimalNumber", ArgumentSemantic.Copy)][Static] + + [Export ("minimumDecimalNumber", ArgumentSemantic.Copy)] + [Static] NSDecimalNumber MinValue { get; } - - [Export ("maximumDecimalNumber", ArgumentSemantic.Copy)][Static] + + [Export ("maximumDecimalNumber", ArgumentSemantic.Copy)] + [Static] NSDecimalNumber MaxValue { get; } - [Export ("notANumber", ArgumentSemantic.Copy)][Static] + [Export ("notANumber", ArgumentSemantic.Copy)] + [Static] NSDecimalNumber NaN { get; } // @@ -12023,13 +12491,13 @@ namespace Foundation [Export ("decimalNumberBySubtracting:withBehavior:")] NSDecimalNumber Subtract (NSDecimalNumber d, NSObject Behavior); - + [Export ("decimalNumberByMultiplyingBy:")] NSDecimalNumber Multiply (NSDecimalNumber d); [Export ("decimalNumberByMultiplyingBy:withBehavior:")] NSDecimalNumber Multiply (NSDecimalNumber d, NSObject Behavior); - + [Export ("decimalNumberByDividingBy:")] NSDecimalNumber Divide (NSDecimalNumber d); @@ -12041,7 +12509,7 @@ namespace Foundation [Export ("decimalNumberByRaisingToPower:withBehavior:")] NSDecimalNumber RaiseTo (nuint power, [NullAllowed] NSObject Behavior); - + [Export ("decimalNumberByMultiplyingByPowerOf10:")] NSDecimalNumber MultiplyPowerOf10 (short power); @@ -12055,7 +12523,8 @@ namespace Foundation [Override] nint Compare (NSNumber other); - [Export ("defaultBehavior", ArgumentSemantic.Strong)][Static] + [Export ("defaultBehavior", ArgumentSemantic.Strong)] + [Static] NSObject DefaultBehavior { get; set; } [Export ("doubleValue")] @@ -12081,7 +12550,7 @@ namespace Foundation [Static, Export ("sleepUntilDate:")] void SleepUntil (NSDate date); - + [Static, Export ("sleepForTimeInterval:")] void SleepFor (double timeInterval); @@ -12133,10 +12602,10 @@ namespace Foundation [Export ("main")] void Main (); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("qualityOfService")] NSQualityOfService QualityOfService { get; set; } - + } [BaseType (typeof (NSObject))] @@ -12189,15 +12658,21 @@ namespace Foundation } [BaseType (typeof (NSObject))] - [MacCatalyst(15, 0)] + [MacCatalyst (15, 0)] interface NSPortMessage { - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [DesignatedInitializer] [Export ("initWithSendPort:receivePort:components:")] NativeHandle Constructor ([NullAllowed] NSPort sendPort, [NullAllowed] NSPort recvPort, [NullAllowed] NSArray components); [NullAllowed] - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [Export ("components")] NSArray Components { get; } @@ -12205,21 +12680,33 @@ namespace Foundation // The situation is a bit confusing since NSPortMessage.h is not part of iOS SDK - // but the type is used (from NSPort[Delegate]) but not _itself_ documented // The selectors Apple *currently* dislike are removed from the iOS build - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [Export ("sendBeforeDate:")] bool SendBefore (NSDate date); [NullAllowed] - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [Export ("receivePort")] NSPort ReceivePort { get; } [NullAllowed] - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [Export ("sendPort")] NSPort SendPort { get; } - [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (15, 0)] [Export ("msgid")] uint MsgId { get; set; } /* uint32_t */ } @@ -12233,7 +12720,7 @@ namespace Foundation [DesignatedInitializer] [Export ("initWithMachPort:options:")] NativeHandle Constructor (uint /* uint32_t */ machPort, NSMachPortRights options); - + [Static, Export ("portWithMachPort:")] NSPort FromMachPort (uint /* uint32_t */ port); @@ -12273,7 +12760,8 @@ namespace Foundation [BaseType (typeof (NSObject))] interface NSProcessInfo { - [Export ("processInfo", ArgumentSemantic.Strong)][Static] + [Export ("processInfo", ArgumentSemantic.Strong)] + [Static] NSProcessInfo ProcessInfo { get; } [Export ("arguments")] @@ -12294,13 +12782,13 @@ namespace Foundation [Export ("hostName")] string HostName { get; } - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'OperatingSystemVersion' or 'IsOperatingSystemAtLeastVersion' instead.")] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'OperatingSystemVersion' or 'IsOperatingSystemAtLeastVersion' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'OperatingSystemVersion' or 'IsOperatingSystemAtLeastVersion' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'OperatingSystemVersion' or 'IsOperatingSystemAtLeastVersion' instead.")] [Export ("operatingSystem")] nint OperatingSystem { get; } - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'OperatingSystemVersionString' instead.")] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'OperatingSystemVersionString' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'OperatingSystemVersionString' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'OperatingSystemVersionString' instead.")] [Export ("operatingSystemName")] string OperatingSystemName { get; } @@ -12309,100 +12797,120 @@ namespace Foundation [Export ("physicalMemory")] ulong PhysicalMemory { get; } - + [Export ("processorCount")] nint ProcessorCount { get; } - + [Export ("activeProcessorCount")] nint ActiveProcessorCount { get; } [Export ("systemUptime")] double SystemUptime { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("beginActivityWithOptions:reason:")] NSObject BeginActivity (NSActivityOptions options, string reason); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("endActivity:")] void EndActivity (NSObject activity); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("performActivityWithOptions:reason:usingBlock:")] void PerformActivity (NSActivityOptions options, string reason, Action runCode); - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("isOperatingSystemAtLeastVersion:")] bool IsOperatingSystemAtLeastVersion (NSOperatingSystemVersion version); - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("operatingSystemVersion")] NSOperatingSystemVersion OperatingSystemVersion { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Export ("enableSuddenTermination")] - void EnableSuddenTermination (); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Export ("enableSuddenTermination")] + void EnableSuddenTermination (); + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("disableSuddenTermination")] void DisableSuddenTermination (); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("enableAutomaticTermination:")] void EnableAutomaticTermination (string reason); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("disableAutomaticTermination:")] void DisableAutomaticTermination (string reason); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("automaticTerminationSupportEnabled")] bool AutomaticTerminationSupportEnabled { get; set; } [NoMac] - [iOS (8,2)] + [iOS (8, 2)] [Export ("performExpiringActivityWithReason:usingBlock:")] void PerformExpiringActivity (string reason, Action block); - [iOS (9,0)][TV (15,0)][Mac (10,12)][MacCatalyst (13,1)] + [iOS (9, 0)] + [TV (15, 0)] + [Mac (10, 12)] + [MacCatalyst (13, 1)] [Export ("lowPowerModeEnabled")] bool LowPowerModeEnabled { [Bind ("isLowPowerModeEnabled")] get; } - [iOS (9,0), Mac (12,0)] + [iOS (9, 0), Mac (12, 0)] [Notification] [Field ("NSProcessInfoPowerStateDidChangeNotification")] NSString PowerStateDidChangeNotification { get; } - [Mac (10,10,3)] - [Watch (4,0)] + [Mac (10, 10, 3)] + [Watch (4, 0)] [TV (11, 0)] - [iOS (11,0)] + [iOS (11, 0)] [Export ("thermalState")] NSProcessInfoThermalState ThermalState { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("NSProcessInfoThermalStateDidChangeNotification")] - [Watch (4,0)] + [Watch (4, 0)] [TV (11, 0)] - [iOS (11,0)] + [iOS (11, 0)] [Notification] NSString ThermalStateDidChangeNotification { get; } -#region NSProcessInfoPlatform (NSProcessInfo) + #region NSProcessInfoPlatform (NSProcessInfo) [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("macCatalystApp")] bool IsMacCatalystApplication { [Bind ("isMacCatalystApp")] get; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("iOSAppOnMac")] bool IsiOSApplicationOnMac { [Bind ("isiOSAppOnMac")] get; } -#endregion + #endregion } - [NoWatch][NoTV][NoiOS] - [Mac (10,12)] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 12)] [Category] [BaseType (typeof (NSProcessInfo))] interface NSProcessInfo_NSUserInformation { @@ -12413,180 +12921,210 @@ namespace Foundation string GetFullUserName (); } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [BaseType (typeof (NSObject))] partial interface NSProgress { - + [Static, Export ("currentProgress")] NSProgress CurrentProgress { get; } - + [Static, Export ("progressWithTotalUnitCount:")] NSProgress FromTotalUnitCount (long unitCount); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static, Export ("discreteProgressWithTotalUnitCount:")] NSProgress GetDiscreteProgress (long unitCount); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Static, Export ("progressWithTotalUnitCount:parent:pendingUnitCount:")] NSProgress FromTotalUnitCount (long unitCount, NSProgress parent, long portionOfParentTotalUnitCount); - + [DesignatedInitializer] [Export ("initWithParent:userInfo:")] NativeHandle Constructor ([NullAllowed] NSProgress parentProgress, [NullAllowed] NSDictionary userInfo); - + [Export ("becomeCurrentWithPendingUnitCount:")] void BecomeCurrent (long pendingUnitCount); - + [Export ("resignCurrent")] void ResignCurrent (); - - [iOS (9,0), Mac (10,11)] + + [iOS (9, 0), Mac (10, 11)] [Export ("addChild:withPendingUnitCount:")] void AddChild (NSProgress child, long pendingUnitCount); [Export ("totalUnitCount")] long TotalUnitCount { get; set; } - + [Export ("completedUnitCount")] long CompletedUnitCount { get; set; } - + [Export ("localizedDescription", ArgumentSemantic.Copy), NullAllowed] string LocalizedDescription { get; set; } - + [Export ("localizedAdditionalDescription", ArgumentSemantic.Copy), NullAllowed] string LocalizedAdditionalDescription { get; set; } - + [Export ("cancellable")] bool Cancellable { [Bind ("isCancellable")] get; set; } - + [Export ("pausable")] bool Pausable { [Bind ("isPausable")] get; set; } - + [Export ("cancelled")] bool Cancelled { [Bind ("isCancelled")] get; } - + [Export ("paused")] bool Paused { [Bind ("isPaused")] get; } - + [Export ("setCancellationHandler:")] void SetCancellationHandler (Action handler); - + [Export ("setPausingHandler:")] void SetPauseHandler (Action handler); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setResumingHandler:")] void SetResumingHandler (Action handler); - + [Export ("setUserInfoObject:forKey:")] void SetUserInfo ([NullAllowed] NSObject obj, NSString key); - + [Export ("indeterminate")] bool Indeterminate { [Bind ("isIndeterminate")] get; } - + [Export ("fractionCompleted")] double FractionCompleted { get; } - + [Export ("cancel")] void Cancel (); - + [Export ("pause")] void Pause (); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("resume")] void Resume (); - + [Export ("userInfo")] NSDictionary UserInfo { get; } - + [NullAllowed] // by default this property is null [Export ("kind", ArgumentSemantic.Copy)] NSString Kind { get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("publish")] void Publish (); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("unpublish")] void Unpublish (); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("setAcknowledgementHandler:forAppBundleIdentifier:")] void SetAcknowledgementHandler (Action acknowledgementHandler, string appBundleIdentifier); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Static, Export ("addSubscriberForFileURL:withPublishingHandler:")] NSObject AddSubscriberForFile (NSUrl url, Action publishingHandler); - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Static, Export ("removeSubscriber:")] void RemoveSubscriber (NSObject subscriber); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("acknowledgeWithSuccess:")] void AcknowledgeWithSuccess (bool success); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("old")] bool Old { [Bind ("isOld")] get; } [Field ("NSProgressKindFile")] NSString KindFile { get; } - + [Field ("NSProgressEstimatedTimeRemainingKey")] NSString EstimatedTimeRemainingKey { get; } - + [Field ("NSProgressThroughputKey")] NSString ThroughputKey { get; } - + [Field ("NSProgressFileOperationKindKey")] NSString FileOperationKindKey { get; } - + [Field ("NSProgressFileOperationKindDownloading")] NSString FileOperationKindDownloading { get; } - + [Field ("NSProgressFileOperationKindDecompressingAfterDownloading")] NSString FileOperationKindDecompressingAfterDownloading { get; } - + [Field ("NSProgressFileOperationKindReceiving")] NSString FileOperationKindReceiving { get; } - + [Field ("NSProgressFileOperationKindCopying")] NSString FileOperationKindCopying { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] [Field ("NSProgressFileOperationKindUploading")] NSString FileOperationKindUploading { get; } - + [Field ("NSProgressFileURLKey")] NSString FileURLKey { get; } - + [Field ("NSProgressFileTotalCountKey")] NSString FileTotalCountKey { get; } - + [Field ("NSProgressFileCompletedCountKey")] NSString FileCompletedCountKey { get; } - [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("NSProgressFileOperationKindDuplicating")] NSString FileOperationKindDuplicatingKey { get; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSProgressFileAnimationImageKey")] NSString FileAnimationImageKey { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSProgressFileAnimationImageOriginalRectKey")] NSString FileAnimationImageOriginalRectKey { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("NSProgressFileIconKey")] NSString FileIconKey { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Async, Export ("performAsCurrentWithPendingUnitCount:usingBlock:")] void PerformAsCurrent (long unitCount, Action work); @@ -12626,9 +13164,10 @@ namespace Foundation NSNumber _FileCompletedCount { get; set; } } - interface INSProgressReporting {} + interface INSProgressReporting { } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Protocol] interface NSProgressReporting { #if NET @@ -12637,7 +13176,7 @@ namespace Foundation [Export ("progress")] NSProgress Progress { get; } } - + [BaseType (typeof (NSMutableData))] interface NSPurgeableData : NSSecureCoding, NSMutableCopying, NSDiscardableContent { } @@ -12663,15 +13202,17 @@ namespace Foundation delegate void NSFileCoordinatorWorkerRW (NSUrl newReadingUrl, NSUrl newWritingUrl); - interface INSFilePresenter {} + interface INSFilePresenter { } [BaseType (typeof (NSObject))] interface NSFileCoordinator { - [Static, Export ("addFilePresenter:")][PostGet ("FilePresenters")] + [Static, Export ("addFilePresenter:")] + [PostGet ("FilePresenters")] void AddFilePresenter ([Protocolize] NSFilePresenter filePresenter); [Static] - [Export ("removeFilePresenter:")][PostGet ("FilePresenters")] + [Export ("removeFilePresenter:")] + [PostGet ("FilePresenters")] void RemoveFilePresenter ([Protocolize] NSFilePresenter filePresenter); [Static] @@ -12697,7 +13238,7 @@ namespace Foundation [Export ("coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")] void CoordinateReadWrite (NSUrl readingURL, NSFileCoordinatorReadingOptions readingOptions, NSUrl writingURL, NSFileCoordinatorWritingOptions writingOptions, out NSError error, /* non null */ NSFileCoordinatorWorkerRW readWriteWorker); - + [Export ("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")] void CoordinateWriteWrite (NSUrl writingURL, NSFileCoordinatorWritingOptions writingOptions, NSUrl writingURL2, NSFileCoordinatorWritingOptions writingOptions2, out NSError error, /* non null */ NSFileCoordinatorWorkerRW writeWriteWorker); @@ -12710,7 +13251,8 @@ namespace Foundation [Export ("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:")] void CoordinateBatch (NSUrl [] readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSUrl [] writingURLs, NSFileCoordinatorWritingOptions writingOptions, out NSError error, /* non null */ Action batchHandler); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("coordinateAccessWithIntents:queue:byAccessor:")] void CoordinateAccess (NSFileAccessIntent [] intents, NSOperationQueue executionQueue, Action accessor); @@ -12726,12 +13268,13 @@ namespace Foundation [Export ("purposeIdentifier")] string PurposeIdentifier { get; set; } - [NoWatch, NoTV, Mac (10,13), iOS (11,0)] + [NoWatch, NoTV, Mac (10, 13), iOS (11, 0)] [Export ("itemAtURL:didChangeUbiquityAttributes:")] void ItemUbiquityAttributesChanged (NSUrl url, NSSet attributes); } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSFileAccessIntent { @@ -12744,123 +13287,124 @@ namespace Foundation [Static, Export ("writingIntentWithURL:options:")] NSFileAccessIntent CreateWritingIntent (NSUrl url, NSFileCoordinatorWritingOptions options); } - + [BaseType (typeof (NSObject))] partial interface NSFileManager { - [Field("NSFileType")] + [Field ("NSFileType")] NSString NSFileType { get; } - [Field("NSFileTypeDirectory")] + [Field ("NSFileTypeDirectory")] NSString TypeDirectory { get; } - [Field("NSFileTypeRegular")] + [Field ("NSFileTypeRegular")] NSString TypeRegular { get; } - [Field("NSFileTypeSymbolicLink")] + [Field ("NSFileTypeSymbolicLink")] NSString TypeSymbolicLink { get; } - [Field("NSFileTypeSocket")] + [Field ("NSFileTypeSocket")] NSString TypeSocket { get; } - [Field("NSFileTypeCharacterSpecial")] + [Field ("NSFileTypeCharacterSpecial")] NSString TypeCharacterSpecial { get; } - [Field("NSFileTypeBlockSpecial")] + [Field ("NSFileTypeBlockSpecial")] NSString TypeBlockSpecial { get; } - [Field("NSFileTypeUnknown")] + [Field ("NSFileTypeUnknown")] NSString TypeUnknown { get; } - [Field("NSFileSize")] + [Field ("NSFileSize")] NSString Size { get; } - [Field("NSFileModificationDate")] + [Field ("NSFileModificationDate")] NSString ModificationDate { get; } - [Field("NSFileReferenceCount")] + [Field ("NSFileReferenceCount")] NSString ReferenceCount { get; } - [Field("NSFileDeviceIdentifier")] + [Field ("NSFileDeviceIdentifier")] NSString DeviceIdentifier { get; } - [Field("NSFileOwnerAccountName")] + [Field ("NSFileOwnerAccountName")] NSString OwnerAccountName { get; } - [Field("NSFileGroupOwnerAccountName")] + [Field ("NSFileGroupOwnerAccountName")] NSString GroupOwnerAccountName { get; } - [Field("NSFilePosixPermissions")] + [Field ("NSFilePosixPermissions")] NSString PosixPermissions { get; } - [Field("NSFileSystemNumber")] + [Field ("NSFileSystemNumber")] NSString SystemNumber { get; } - [Field("NSFileSystemFileNumber")] + [Field ("NSFileSystemFileNumber")] NSString SystemFileNumber { get; } - [Field("NSFileExtensionHidden")] + [Field ("NSFileExtensionHidden")] NSString ExtensionHidden { get; } - [Field("NSFileHFSCreatorCode")] + [Field ("NSFileHFSCreatorCode")] NSString HfsCreatorCode { get; } - [Field("NSFileHFSTypeCode")] + [Field ("NSFileHFSTypeCode")] NSString HfsTypeCode { get; } - [Field("NSFileImmutable")] + [Field ("NSFileImmutable")] NSString Immutable { get; } - [Field("NSFileAppendOnly")] + [Field ("NSFileAppendOnly")] NSString AppendOnly { get; } - [Field("NSFileCreationDate")] + [Field ("NSFileCreationDate")] NSString CreationDate { get; } - [Field("NSFileOwnerAccountID")] + [Field ("NSFileOwnerAccountID")] NSString OwnerAccountID { get; } - [Field("NSFileGroupOwnerAccountID")] + [Field ("NSFileGroupOwnerAccountID")] NSString GroupOwnerAccountID { get; } - [Field("NSFileBusy")] + [Field ("NSFileBusy")] NSString Busy { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSFileProtectionKey")] NSString FileProtectionKey { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSFileProtectionNone")] NSString FileProtectionNone { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSFileProtectionComplete")] NSString FileProtectionComplete { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSFileProtectionCompleteUnlessOpen")] NSString FileProtectionCompleteUnlessOpen { get; } - [Mac (11,0)] + [Mac (11, 0)] [Field ("NSFileProtectionCompleteUntilFirstUserAuthentication")] - NSString FileProtectionCompleteUntilFirstUserAuthentication { get; } + NSString FileProtectionCompleteUntilFirstUserAuthentication { get; } - [Field("NSFileSystemSize")] + [Field ("NSFileSystemSize")] NSString SystemSize { get; } - [Field("NSFileSystemFreeSize")] + [Field ("NSFileSystemFreeSize")] NSString SystemFreeSize { get; } - [Field("NSFileSystemNodes")] + [Field ("NSFileSystemNodes")] NSString SystemNodes { get; } - [Field("NSFileSystemFreeNodes")] + [Field ("NSFileSystemFreeNodes")] NSString SystemFreeNodes { get; } [Static, Export ("defaultManager", ArgumentSemantic.Strong)] NSFileManager DefaultManager { get; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -12875,15 +13419,17 @@ namespace Foundation bool CreateDirectory (string path, bool createIntermediates, [NullAllowed] NSDictionary attributes, out NSError error); [Export ("contentsOfDirectoryAtPath:error:")] - string[] GetDirectoryContent (string path, out NSError error); + string [] GetDirectoryContent (string path, out NSError error); [Export ("subpathsOfDirectoryAtPath:error:")] - string[] GetDirectoryContentRecursive (string path, out NSError error); + string [] GetDirectoryContentRecursive (string path, out NSError error); - [Export ("attributesOfItemAtPath:error:")][Internal] + [Export ("attributesOfItemAtPath:error:")] + [Internal] NSDictionary _GetAttributes (string path, out NSError error); - [Export ("attributesOfFileSystemForPath:error:")][Internal] + [Export ("attributesOfFileSystemForPath:error:")] + [Internal] NSDictionary _GetFileSystemAttributes (String path, out NSError error); [Export ("createSymbolicLinkAtPath:withDestinationPath:error:")] @@ -12949,13 +13495,13 @@ namespace Foundation string DisplayName (string path); [Export ("componentsToDisplayForPath:")] - string[] ComponentsToDisplay (string path); + string [] ComponentsToDisplay (string path); [Export ("enumeratorAtPath:")] NSDirectoryEnumerator GetEnumerator (string path); [Export ("subpathsAtPath:")] - string[] Subpaths (string path); + string [] Subpaths (string path); [Export ("contentsAtPath:")] NSData Contents (string path); @@ -12964,7 +13510,7 @@ namespace Foundation bool CreateFile (string path, NSData data, [NullAllowed] NSDictionary attr); [Export ("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:")] - NSUrl[] GetDirectoryContent (NSUrl url, [NullAllowed] NSArray properties, NSDirectoryEnumerationOptions options, out NSError error); + NSUrl [] GetDirectoryContent (NSUrl url, [NullAllowed] NSArray properties, NSDirectoryEnumerationOptions options, out NSError error); [Export ("copyItemAtURL:toURL:error:")] bool Copy (NSUrl srcUrl, NSUrl dstUrl, out NSError error); @@ -12979,19 +13525,19 @@ namespace Foundation bool Remove ([NullAllowed] NSUrl url, out NSError error); [Export ("enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:")] - NSDirectoryEnumerator GetEnumerator (NSUrl url, [NullAllowed] NSString[] keys, NSDirectoryEnumerationOptions options, [NullAllowed] NSEnumerateErrorHandler handler); + NSDirectoryEnumerator GetEnumerator (NSUrl url, [NullAllowed] NSString [] keys, NSDirectoryEnumerationOptions options, [NullAllowed] NSEnumerateErrorHandler handler); [Export ("URLForDirectory:inDomain:appropriateForURL:create:error:")] NSUrl GetUrl (NSSearchPathDirectory directory, NSSearchPathDomain domain, [NullAllowed] NSUrl url, bool shouldCreate, out NSError error); [Export ("URLsForDirectory:inDomains:")] - NSUrl[] GetUrls (NSSearchPathDirectory directory, NSSearchPathDomain domains); + NSUrl [] GetUrls (NSSearchPathDirectory directory, NSSearchPathDomain domains); [Export ("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:")] bool Replace (NSUrl originalItem, NSUrl newItem, [NullAllowed] string backupItemName, NSFileManagerItemReplacementOptions options, out NSUrl resultingURL, out NSError error); [Export ("mountedVolumeURLsIncludingResourceValuesForKeys:options:")] - NSUrl[] GetMountedVolumes ([NullAllowed] NSArray properties, NSVolumeEnumerationOptions options); + NSUrl [] GetMountedVolumes ([NullAllowed] NSArray properties, NSVolumeEnumerationOptions options); // Methods to convert paths to/from C strings for passing to system calls - Not implemented ////- (const char *)fileSystemRepresentationWithPath:(NSString *)path; @@ -13005,26 +13551,26 @@ namespace Foundation [Export ("createDirectoryAtURL:withIntermediateDirectories:attributes:error:")] bool CreateDirectory (NSUrl url, bool createIntermediates, [NullAllowed] NSDictionary attributes, out NSError error); - [Export ("createSymbolicLinkAtURL:withDestinationURL:error:")] - bool CreateSymbolicLink (NSUrl url, NSUrl destURL, out NSError error); + [Export ("createSymbolicLinkAtURL:withDestinationURL:error:")] + bool CreateSymbolicLink (NSUrl url, NSUrl destURL, out NSError error); - [Export ("setUbiquitous:itemAtURL:destinationURL:error:")] - bool SetUbiquitous (bool flag, NSUrl url, NSUrl destinationUrl, out NSError error); + [Export ("setUbiquitous:itemAtURL:destinationURL:error:")] + bool SetUbiquitous (bool flag, NSUrl url, NSUrl destinationUrl, out NSError error); - [Export ("isUbiquitousItemAtURL:")] - bool IsUbiquitous (NSUrl url); + [Export ("isUbiquitousItemAtURL:")] + bool IsUbiquitous (NSUrl url); - [Export ("startDownloadingUbiquitousItemAtURL:error:")] - bool StartDownloadingUbiquitous (NSUrl url, out NSError error); + [Export ("startDownloadingUbiquitousItemAtURL:error:")] + bool StartDownloadingUbiquitous (NSUrl url, out NSError error); - [Export ("evictUbiquitousItemAtURL:error:")] - bool EvictUbiquitous (NSUrl url, out NSError error); + [Export ("evictUbiquitousItemAtURL:error:")] + bool EvictUbiquitous (NSUrl url, out NSError error); - [Export ("URLForUbiquityContainerIdentifier:")] - NSUrl GetUrlForUbiquityContainer ([NullAllowed] string containerIdentifier); + [Export ("URLForUbiquityContainerIdentifier:")] + NSUrl GetUrlForUbiquityContainer ([NullAllowed] string containerIdentifier); - [Export ("URLForPublishingUbiquitousItemAtURL:expirationDate:error:")] - NSUrl GetUrlForPublishingUbiquitousItem (NSUrl url, out NSDate expirationDate, out NSError error); + [Export ("URLForPublishingUbiquitousItemAtURL:expirationDate:error:")] + NSUrl GetUrlForPublishingUbiquitousItem (NSUrl url, out NSDate expirationDate, out NSError error); [Export ("ubiquityIdentityToken")] NSObject UbiquityIdentityToken { get; } @@ -13033,39 +13579,43 @@ namespace Foundation [Notification] NSString UbiquityIdentityDidChangeNotification { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("containerURLForSecurityApplicationGroupIdentifier:")] NSUrl GetContainerUrl (string securityApplicationGroupIdentifier); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("getRelationship:ofDirectory:inDomain:toItemAtURL:error:")] bool GetRelationship (out NSUrlRelationship outRelationship, NSSearchPathDirectory directory, NSSearchPathDomain domain, NSUrl toItemAtUrl, out NSError error); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("getRelationship:ofDirectoryAtURL:toItemAtURL:error:")] bool GetRelationship (out NSUrlRelationship outRelationship, NSUrl directoryURL, NSUrl otherURL, out NSError error); - [NoWatch][NoTV][NoiOS][Mac (10, 11)][NoMacCatalyst] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 11)] + [NoMacCatalyst] [Async] [Export ("unmountVolumeAtURL:options:completionHandler:")] void UnmountVolume (NSUrl url, NSFileManagerUnmountOptions mask, Action completionHandler); - [NoWatch, NoTV, Mac (10,13), iOS (11,0)] + [NoWatch, NoTV, Mac (10, 13), iOS (11, 0)] [Async, Export ("getFileProviderServicesForItemAtURL:completionHandler:")] void GetFileProviderServices (NSUrl url, Action, NSError> completionHandler); } - [BaseType(typeof(NSObject))] + [BaseType (typeof (NSObject))] [Model] [Protocol] interface NSFileManagerDelegate { - [Export("fileManager:shouldCopyItemAtPath:toPath:")] - bool ShouldCopyItemAtPath(NSFileManager fm, NSString srcPath, NSString dstPath); + [Export ("fileManager:shouldCopyItemAtPath:toPath:")] + bool ShouldCopyItemAtPath (NSFileManager fm, NSString srcPath, NSString dstPath); [NoMac] - [Export("fileManager:shouldCopyItemAtURL:toURL:")] - bool ShouldCopyItemAtUrl(NSFileManager fm, NSUrl srcUrl, NSUrl dstUrl); - + [Export ("fileManager:shouldCopyItemAtURL:toURL:")] + bool ShouldCopyItemAtUrl (NSFileManager fm, NSUrl srcUrl, NSUrl dstUrl); + [NoMac] [Export ("fileManager:shouldLinkItemAtURL:toURL:")] bool ShouldLinkItemAtUrl (NSFileManager fileManager, NSUrl srcUrl, NSUrl dstUrl); @@ -13120,15 +13670,24 @@ namespace Foundation [BaseType (typeof (NSFileManager))] interface NSFileManager_NSUserInformation { - [NoWatch][NoTV][NoiOS][Mac (10, 12)] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 12)] [Export ("homeDirectoryForCurrentUser")] NSUrl GetHomeDirectoryForCurrentUser (); - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [Export ("temporaryDirectory")] NSUrl GetTemporaryDirectory (); - [NoWatch][NoTV][NoiOS][Mac (10, 12)] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 12)] [Export ("homeDirectoryForUser:")] [return: NullAllowed] NSUrl GetHomeDirectory (string userName); @@ -13205,7 +13764,7 @@ namespace Foundation [Export ("presentedSubitemAtURL:didResolveConflictVersion:")] void PresentedSubitemResolvedConflictVersion (NSUrl url, NSFileVersion version); - [NoWatch, NoTV, Mac (10,13), iOS (11,0)] + [NoWatch, NoTV, Mac (10, 13), iOS (11, 0)] [Export ("presentedItemDidChangeUbiquityAttributes:")] void PresentedItemChangedUbiquityAttributes (NSSet attributes); @@ -13214,44 +13773,47 @@ namespace Foundation NSSet PresentedItemObservedUbiquityAttributes { get; } } - delegate void NSFileVersionNonlocalVersionsCompletionHandler ([NullAllowed] NSFileVersion[] nonlocalFileVersions, [NullAllowed] NSError error); + delegate void NSFileVersionNonlocalVersionsCompletionHandler ([NullAllowed] NSFileVersion [] nonlocalFileVersions, [NullAllowed] NSError error); [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSGenericException Reason: -[NSFileVersion init]: You have to use one of the factory methods to instantiate NSFileVersion. [DisableDefaultCtor] interface NSFileVersion { [Export ("URL", ArgumentSemantic.Copy)] - NSUrl Url { get; } + NSUrl Url { get; } [Export ("localizedName", ArgumentSemantic.Copy)] - string LocalizedName { get; } + string LocalizedName { get; } [Export ("localizedNameOfSavingComputer", ArgumentSemantic.Copy)] - string LocalizedNameOfSavingComputer { get; } + string LocalizedNameOfSavingComputer { get; } [Export ("modificationDate", ArgumentSemantic.Copy)] - NSDate ModificationDate { get; } + NSDate ModificationDate { get; } [Export ("persistentIdentifier", ArgumentSemantic.Retain)] - NSObject PersistentIdentifier { get; } + NSObject PersistentIdentifier { get; } [Export ("conflict")] - bool IsConflict { [Bind ("isConflict")] get; } + bool IsConflict { [Bind ("isConflict")] get; } [Export ("resolved")] - bool Resolved { [Bind ("isResolved")] get; set; } + bool Resolved { [Bind ("isResolved")] get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("discardable")] - bool Discardable { [Bind ("isDiscardable")] get; set; } + bool Discardable { [Bind ("isDiscardable")] get; set; } - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("hasLocalContents")] bool HasLocalContents { get; } - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Export ("hasThumbnail")] bool HasThumbnail { get; } @@ -13259,8 +13821,8 @@ namespace Foundation [Export ("currentVersionOfItemAtURL:")] NSFileVersion GetCurrentVersion (NSUrl url); - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Static] [Async] [Export ("getNonlocalVersionsOfItemAtURL:completionHandler:")] @@ -13278,13 +13840,19 @@ namespace Foundation [Export ("versionOfItemAtURL:forPersistentIdentifier:")] NSFileVersion GetSpecificVersion (NSUrl url, NSObject persistentIdentifier); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [return: NullAllowed] [Static] [Export ("addVersionOfItemAtURL:withContentsOfURL:options:error:")] NSFileVersion AddVersion (NSUrl url, NSUrl contentsURL, NSFileVersionAddingOptions options, out NSError outError); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Static] [Export ("temporaryDirectoryURLForNewVersionOfItemAtURL:")] NSUrl TemporaryDirectoryForItem (NSUrl url); @@ -13381,7 +13949,10 @@ namespace Foundation [Export ("fileAttributes", ArgumentSemantic.Copy)] NSDictionary FileAttributes { get; set; } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("icon", ArgumentSemantic.Retain)] NSImage Icon { get; set; } } @@ -13407,7 +13978,7 @@ namespace Foundation } delegate bool NSPredicateEvaluator (NSObject evaluatedObject, NSDictionary bindings); - + [BaseType (typeof (NSObject))] // 'init' returns NIL [DisableDefaultCtor] @@ -13415,7 +13986,7 @@ namespace Foundation [Static] [Internal] [Export ("predicateWithFormat:argumentArray:")] - NSPredicate _FromFormat (string predicateFormat, [NullAllowed] NSObject[] arguments); + NSPredicate _FromFormat (string predicateFormat, [NullAllowed] NSObject [] arguments); [Static, Export ("predicateWithValue:")] NSPredicate FromValue (bool value); @@ -13438,11 +14009,14 @@ namespace Foundation [return: NullAllowed] [Static] [Mac (10, 9)] - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("predicateFromMetadataQueryString:")] NSPredicate FromMetadataQueryString (string query); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("allowEvaluation")] void AllowEvaluation (); } @@ -13452,7 +14026,7 @@ namespace Foundation [Export ("filteredOrderedSetUsingPredicate:")] NSOrderedSet FilterUsingPredicate (NSPredicate p); } - + [Category, BaseType (typeof (NSMutableOrderedSet))] partial interface NSPredicateSupport_NSMutableOrderedSet { [Export ("filterUsingPredicate:")] @@ -13472,7 +14046,7 @@ namespace Foundation [Export ("filterUsingPredicate:")] void FilterUsingPredicate (NSPredicate predicate); } - + [Category, BaseType (typeof (NSSet))] partial interface NSPredicateSupport_NSSet { [Export ("filteredSetUsingPredicate:")] @@ -13484,9 +14058,12 @@ namespace Foundation [Export ("filterUsingPredicate:")] void FilterUsingPredicate (NSPredicate predicate); } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [BaseType (typeof (NSObject), Name="NSURLDownload")] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [BaseType (typeof (NSObject), Name = "NSURLDownload")] interface NSUrlDownload { [Static, Export ("canResumeDownloadDecodedWithEncodingMIMEType:")] bool CanResumeDownloadDecodedWithEncodingMimeType (string mimeType); @@ -13516,7 +14093,10 @@ namespace Foundation bool DeletesFileUponFailure { get; set; } } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [Model] [Protocol (Name = "NSURLDownloadDelegate")] @@ -13557,7 +14137,7 @@ namespace Foundation void Finished (NSUrlDownload download); [Export ("download:didFailWithError:")] - void FailedWithError(NSUrlDownload download, NSError error); + void FailedWithError (NSUrlDownload download, NSError error); } // Users are not supposed to implement the NSUrlProtocolClient protocol, they're @@ -13597,11 +14177,11 @@ namespace Foundation void CancelledAuthenticationChallenge (NSUrlProtocol protocol, NSUrlAuthenticationChallenge challenge); } - interface INSUrlProtocolClient {} + interface INSUrlProtocolClient { } [BaseType (typeof (NSObject), - Name="NSURLProtocol", - Delegates=new string [] {"WeakClient"})] + Name = "NSURLProtocol", + Delegates = new string [] { "WeakClient" })] interface NSUrlProtocol { [DesignatedInitializer] [Export ("initWithRequest:cachedResponse:client:")] @@ -13664,20 +14244,20 @@ namespace Foundation // being abstract (which is true) // -canInitWithRequest: cannot be sent to an abstract object of class NSURLProtocol: Create a concrete instance! -// [iOS (8,0)] -// [Export ("initWithTask:cachedResponse:client:")] -// NativeHandle Constructor (NSUrlSessionTask task, [NullAllowed] NSCachedUrlResponse cachedResponse, INSUrlProtocolClient client); -// -// [iOS (8,0)] -// [Export ("task", ArgumentSemantic.Copy)] -// NSUrlSessionTask Task { get; } -// -// [iOS (8,0)] -// [Static, Export ("canInitWithTask:")] -// bool CanInitWithTask (NSUrlSessionTask task); + // [iOS (8,0)] + // [Export ("initWithTask:cachedResponse:client:")] + // NativeHandle Constructor (NSUrlSessionTask task, [NullAllowed] NSCachedUrlResponse cachedResponse, INSUrlProtocolClient client); + // + // [iOS (8,0)] + // [Export ("task", ArgumentSemantic.Copy)] + // NSUrlSessionTask Task { get; } + // + // [iOS (8,0)] + // [Static, Export ("canInitWithTask:")] + // bool CanInitWithTask (NSUrlSessionTask task); } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSPropertyListSerialization { [Static, Export ("dataWithPropertyList:format:options:error:")] @@ -13702,7 +14282,8 @@ namespace Foundation interface INSExtensionRequestHandling { } - [iOS (8,0)][Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0)] + [Mac (10, 10)] // Not defined in 32-bit [Protocol, Model] [BaseType (typeof (NSObject))] interface NSExtensionRequestHandling { @@ -13728,17 +14309,17 @@ namespace Foundation [DisableDefaultCtor] // An uncaught exception was raised: *** -range cannot be sent to an abstract object of class NSTextCheckingResult: Create a concrete instance! interface NSTextCheckingResult : NSSecureCoding, NSCopying { [Export ("resultType")] - NSTextCheckingType ResultType { get; } + NSTextCheckingType ResultType { get; } [Export ("range")] - NSRange Range { get; } + NSRange Range { get; } // From the NSTextCheckingResultOptional category on NSTextCheckingResult [Export ("orthography")] NSOrthography Orthography { get; } [Export ("grammarDetails")] - string[] GrammarDetails { get; } + string [] GrammarDetails { get; } [Export ("date")] NSDate Date { get; } @@ -13767,9 +14348,9 @@ namespace Foundation [Mac (10, 9)] string [] AlternativeStrings { get; } -// NSRegularExpression isn't bound -// [Export ("regularExpression")] -// NSRegularExpression RegularExpression { get; } + // NSRegularExpression isn't bound + // [Export ("regularExpression")] + // NSRegularExpression RegularExpression { get; } [Export ("phoneNumber")] string PhoneNumber { get; } @@ -13802,7 +14383,7 @@ namespace Foundation [Static] [Export ("grammarCheckingResultWithRange:details:")] - NSTextCheckingResult GrammarCheckingResult (NSRange range, string[] details); + NSTextCheckingResult GrammarCheckingResult (NSRange range, string [] details); [Static] [Export ("dateCheckingResultWithRange:date:")] @@ -13845,12 +14426,12 @@ namespace Foundation [Export ("correctionCheckingResultWithRange:replacementString:alternativeStrings:")] [iOS (7, 0)] [Mac (10, 9)] - NSTextCheckingResult CorrectionCheckingResult (NSRange range, string replacementString, string[] alternativeStrings); + NSTextCheckingResult CorrectionCheckingResult (NSRange range, string replacementString, string [] alternativeStrings); -// NSRegularExpression isn't bound -// [Export ("regularExpressionCheckingResultWithRanges:count:regularExpression:")] -// [Internal] // FIXME -// NSTextCheckingResult RegularExpressionCheckingResult (ref NSRange ranges, nuint count, NSRegularExpression regularExpression); + // NSRegularExpression isn't bound + // [Export ("regularExpressionCheckingResultWithRanges:count:regularExpression:")] + // [Internal] // FIXME + // NSTextCheckingResult RegularExpressionCheckingResult (ref NSRange ranges, nuint count, NSRegularExpression regularExpression); [Static] [Export ("phoneNumberCheckingResultWithRange:phoneNumber:")] @@ -13865,7 +14446,7 @@ namespace Foundation [Wrap ("TransitInformationCheckingResult (range, components.GetDictionary ()!)")] NSTextCheckingResult TransitInformationCheckingResult (NSRange range, NSTextCheckingTransitComponents components); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("rangeWithName:")] NSRange GetRange (string name); @@ -13936,11 +14517,10 @@ namespace Foundation NSString FlightKey { get; } } - [BaseType (typeof(NSObject))] - interface NSLock : NSLocking - { + [BaseType (typeof (NSObject))] + interface NSLock : NSLocking { [Export ("tryLock")] - bool TryLock (); + bool TryLock (); [Export ("lockBeforeDate:")] bool LockBeforeDate (NSDate limit); @@ -13950,7 +14530,7 @@ namespace Foundation string Name { get; set; } } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface NSConditionLock : NSLocking { [DesignatedInitializer] @@ -13964,7 +14544,7 @@ namespace Foundation void LockWhenCondition (nint condition); [Export ("tryLock")] - bool TryLock (); + bool TryLock (); [Export ("tryLockWhenCondition:")] bool TryLockWhenCondition (nint condition); @@ -13983,11 +14563,10 @@ namespace Foundation string Name { get; set; } } - [BaseType (typeof(NSObject))] - interface NSRecursiveLock : NSLocking - { + [BaseType (typeof (NSObject))] + interface NSRecursiveLock : NSLocking { [Export ("tryLock")] - bool TryLock (); + bool TryLock (); [Export ("lockBeforeDate:")] bool LockBeforeDate (NSDate limit); @@ -13997,9 +14576,8 @@ namespace Foundation string Name { get; set; } } - [BaseType (typeof(NSObject))] - interface NSCondition : NSLocking - { + [BaseType (typeof (NSObject))] + interface NSCondition : NSLocking { [Export ("wait")] void Wait (); @@ -14017,25 +14595,31 @@ namespace Foundation string Name { get; set; } } -// Not yet, the IntPtr[] argument isn't handled correctly by the generator (it tries to convert to NSArray, while the native method expects a C array). -// [Protocol] -// interface NSFastEnumeration { -// [Abstract] -// [Export ("countByEnumeratingWithState:objects:count:")] -// nuint Enumerate (ref NSFastEnumerationState state, IntPtr[] objects, nuint count); -// } + // Not yet, the IntPtr[] argument isn't handled correctly by the generator (it tries to convert to NSArray, while the native method expects a C array). + // [Protocol] + // interface NSFastEnumeration { + // [Abstract] + // [Export ("countByEnumeratingWithState:objects:count:")] + // nuint Enumerate (ref NSFastEnumerationState state, IntPtr[] objects, nuint count); + // } // Placeholer, just so we can start flagging things - interface INSFastEnumeration {} - + interface INSFastEnumeration { } + partial interface NSBundle { // - (NSImage *)imageForResource:(NSString *)name NS_AVAILABLE_MAC(10_7); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("imageForResource:")] NSImage ImageForResource (string name); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] interface NSDateInterval : NSCopying, NSSecureCoding { [Export ("startDate", ArgumentSemantic.Copy)] @@ -14072,7 +14656,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] interface NSUnit : NSCopying, NSSecureCoding { [Export ("symbol")] @@ -14083,7 +14670,10 @@ namespace Foundation NativeHandle Constructor (string symbol); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] interface NSUnitConverter { [Export ("baseUnitValueFromValue:")] @@ -14093,7 +14683,10 @@ namespace Foundation double GetValue (double baseUnitValue); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSUnitConverter))] interface NSUnitConverterLinear : NSSecureCoding { @@ -14111,7 +14704,10 @@ namespace Foundation NativeHandle Constructor (double coefficient, double constant); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSUnit))] [Abstract] // abstract subclass of NSUnit [DisableDefaultCtor] // there's a designated initializer @@ -14136,7 +14732,10 @@ namespace Foundation //NSDimension BaseUnit { get; } } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] [DisableDefaultCtor] // base type has a designated initializer interface NSUnitTemperature : NSSecureCoding { @@ -14169,18 +14768,20 @@ namespace Foundation [Export ("trashItemAtURL:resultingItemURL:error:")] bool TrashItem (NSUrl url, out NSUrl resultingItemUrl, out NSError error); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] - [Mac (10,14)] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] + [Mac (10, 14)] [Static] [Export ("fileManagerWithAuthorization:")] NSFileManager FromAuthorization (NSWorkspaceAuthorization authorization); } - [NoWatch, NoTV, Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSFileProviderService - { + interface NSFileProviderService { [Export ("name")] string Name { get; } } @@ -14251,8 +14852,10 @@ namespace Foundation [DisableDefaultCtor] [BaseType (typeof (NSObject))] - [MacCatalyst(15,0)] - [NoiOS][NoTV][NoWatch] + [MacCatalyst (15, 0)] + [NoiOS] + [NoTV] + [NoWatch] partial interface NSScriptCommand : NSCoding { [Internal] @@ -14271,35 +14874,41 @@ namespace Foundation [Export ("executeCommand")] IntPtr Execute (); - + [NullAllowed] [Export ("evaluatedReceivers")] NSObject EvaluatedReceivers { get; } } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [StrongDictionary ("NSScriptCommandArgumentDescriptionKeys")] partial interface NSScriptCommandArgumentDescription { string AppleEventCode { get; set; } - string Type { get; set;} + string Type { get; set; } string Optional { get; set; } } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [StrongDictionary ("NSScriptCommandDescriptionDictionaryKeys")] partial interface NSScriptCommandDescriptionDictionary { - string CommandClass { get; set; } - string AppleEventCode { get; set; } + string CommandClass { get; set; } + string AppleEventCode { get; set; } string AppleEventClassCode { get; set; } - string Type { get; set;} + string Type { get; set; } string ResultAppleEventCode { get; set; } NSMutableDictionary Arguments { get; set; } } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] partial interface NSScriptCommandDescription : NSCoding { @@ -14392,7 +15001,7 @@ namespace Foundation [Export ("transformSize:")] CGSize TransformSize (CGSize aSize); - + [NoMacCatalyst] [Export ("transformBezierPath:")] NSBezierPath TransformBezierPath (NSBezierPath path); @@ -14407,7 +15016,7 @@ namespace Foundation CGAffineTransform TransformStruct { get; set; } } - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSXpcConnection' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] [NoMacCatalyst] [NoiOS, NoTV, NoWatch] [BaseType (typeof (NSObject))] @@ -14520,7 +15129,7 @@ namespace Foundation NSConnectionDelegate Delegate { get; set; } } - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSXpcConnection' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] [NoMacCatalyst] [NoiOS, NoTV, NoWatch] [BaseType (typeof (NSObject))] @@ -14546,7 +15155,7 @@ namespace Foundation bool AllowNewConnection (NSConnection newConnection, NSConnection parentConnection); } - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'NSXpcConnection' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] [NoMacCatalyst] [NoiOS, NoTV, NoWatch] [BaseType (typeof (NSObject))] @@ -14757,32 +15366,32 @@ namespace Foundation [Export ("currentProcessDescriptor")] NSAppleEventDescriptor CurrentProcessDescriptor { get; } - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithDouble:")] NSAppleEventDescriptor FromDouble (double doubleValue); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithDate:")] NSAppleEventDescriptor FromDate (NSDate date); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithFileURL:")] NSAppleEventDescriptor FromFileURL (NSUrl fileURL); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithProcessIdentifier:")] NSAppleEventDescriptor FromProcessIdentifier (int processIdentifier); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithBundleIdentifier:")] NSAppleEventDescriptor FromBundleIdentifier (string bundleIdentifier); - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("descriptorWithApplicationURL:")] NSAppleEventDescriptor FromApplicationURL (NSUrl applicationURL); @@ -14791,7 +15400,7 @@ namespace Foundation [Export ("doubleValue")] double DoubleValue { get; } - [Mac (10,11)] + [Mac (10, 11)] [NoMacCatalyst] [Export ("sendEventWithOptions:timeout:error:")] [return: NullAllowed] @@ -14855,7 +15464,7 @@ namespace Foundation [DesignatedDefaultCtor] interface NSTask { [NoMacCatalyst] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Export ("launch")] void Launch (); @@ -14879,19 +15488,19 @@ namespace Foundation void WaitUntilExit (); [Static] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Export ("launchedTaskWithLaunchPath:arguments:")] - NSTask LaunchFromPath (string path, string[] arguments); + NSTask LaunchFromPath (string path, string [] arguments); [Static] [NoMacCatalyst] [Export ("launchedTaskWithExecutableURL:arguments:error:terminationHandler:")] [return: NullAllowed] - NSTask LaunchFromUrl (NSUrl url, string[] arguments, [NullAllowed] out NSError error, [NullAllowed] Action terminationHandler); + NSTask LaunchFromUrl (NSUrl url, string [] arguments, [NullAllowed] out NSError error, [NullAllowed] Action terminationHandler); //Detected properties [NullAllowed] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [NoMacCatalyst] [Export ("launchPath")] string LaunchPath { get; set; } @@ -14910,7 +15519,7 @@ namespace Foundation NSDictionary Environment { get; set; } [NoMacCatalyst] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Export ("currentDirectoryPath")] string CurrentDirectoryPath { get; set; } @@ -14970,54 +15579,54 @@ namespace Foundation [NullAllowed] [Export ("title", ArgumentSemantic.Copy)] string Title { get; set; } - + [NullAllowed] [Export ("subtitle", ArgumentSemantic.Copy)] string Subtitle { get; set; } - + [NullAllowed] [Export ("informativeText", ArgumentSemantic.Copy)] string InformativeText { get; set; } - + [Export ("actionButtonTitle", ArgumentSemantic.Copy)] string ActionButtonTitle { get; set; } - + [NullAllowed] [Export ("userInfo", ArgumentSemantic.Copy)] NSDictionary UserInfo { get; set; } - + [NullAllowed] [Export ("deliveryDate", ArgumentSemantic.Copy)] NSDate DeliveryDate { get; set; } - + [NullAllowed] [Export ("deliveryTimeZone", ArgumentSemantic.Copy)] NSTimeZone DeliveryTimeZone { get; set; } - + [NullAllowed] [Export ("deliveryRepeatInterval", ArgumentSemantic.Copy)] NSDateComponents DeliveryRepeatInterval { get; set; } - + [NullAllowed] [Export ("actualDeliveryDate")] NSDate ActualDeliveryDate { get; } - + [Export ("presented")] - bool Presented { [Bind("isPresented")] get; } - + bool Presented { [Bind ("isPresented")] get; } + [Export ("remote")] - bool Remote { [Bind("isRemote")] get; } - + bool Remote { [Bind ("isRemote")] get; } + [NullAllowed] [Export ("soundName", ArgumentSemantic.Copy)] string SoundName { get; set; } - + [Export ("hasActionButton")] bool HasActionButton { get; set; } - + [Export ("activationType")] NSUserNotificationActivationType ActivationType { get; } - + [Export ("otherButtonTitle", ArgumentSemantic.Copy)] string OtherButtonTitle { get; set; } @@ -15046,7 +15655,7 @@ namespace Foundation [Mac (10, 10)] [NullAllowed, Export ("additionalActions", ArgumentSemantic.Copy)] - NSUserNotificationAction[] AdditionalActions { get; set; } + NSUserNotificationAction [] AdditionalActions { get; set; } [Mac (10, 10)] [NullAllowed, Export ("additionalActivationAction", ArgumentSemantic.Copy)] @@ -15054,11 +15663,10 @@ namespace Foundation } [NoiOS, NoTV, NoWatch, NoMacCatalyst] - [Mac (10,10)] - [BaseType (typeof(NSObject))] + [Mac (10, 10)] + [BaseType (typeof (NSObject))] [Advice ("'NSUserNotification' usages should be replaced with 'UserNotifications' framework.")] - interface NSUserNotificationAction : NSCopying - { + interface NSUserNotificationAction : NSCopying { [Static] [Export ("actionWithIdentifier:title:")] NSUserNotificationAction GetAction ([NullAllowed] string identifier, [NullAllowed] string title); @@ -15069,60 +15677,66 @@ namespace Foundation [NullAllowed, Export ("title")] string Title { get; } } - + [NoiOS, NoTV, NoWatch, NoMacCatalyst] [BaseType (typeof (NSObject), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (NSUserNotificationCenterDelegate) })] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (NSUserNotificationCenterDelegate) })] [DisableDefaultCtor] // crash with: NSUserNotificationCenter designitated initializer is _centerForBundleIdentifier [Advice ("'NSUserNotification' usages should be replaced with 'UserNotifications' framework.")] - interface NSUserNotificationCenter - { - [Export ("defaultUserNotificationCenter")][Static] + interface NSUserNotificationCenter { + [Export ("defaultUserNotificationCenter")] + [Static] NSUserNotificationCenter DefaultUserNotificationCenter { get; } - - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - - [Wrap ("WeakDelegate")][NullAllowed] + + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] NSUserNotificationCenterDelegate Delegate { get; set; } - + [Export ("scheduledNotifications", ArgumentSemantic.Copy)] NSUserNotification [] ScheduledNotifications { get; set; } - - [Export ("scheduleNotification:")][PostGet ("ScheduledNotifications")] + + [Export ("scheduleNotification:")] + [PostGet ("ScheduledNotifications")] void ScheduleNotification (NSUserNotification notification); - - [Export ("removeScheduledNotification:")][PostGet ("ScheduledNotifications")] + + [Export ("removeScheduledNotification:")] + [PostGet ("ScheduledNotifications")] void RemoveScheduledNotification (NSUserNotification notification); - + [Export ("deliveredNotifications")] NSUserNotification [] DeliveredNotifications { get; } - - [Export ("deliverNotification:")][PostGet ("DeliveredNotifications")] + + [Export ("deliverNotification:")] + [PostGet ("DeliveredNotifications")] void DeliverNotification (NSUserNotification notification); - - [Export ("removeDeliveredNotification:")][PostGet ("DeliveredNotifications")] + + [Export ("removeDeliveredNotification:")] + [PostGet ("DeliveredNotifications")] void RemoveDeliveredNotification (NSUserNotification notification); - - [Export ("removeAllDeliveredNotifications")][PostGet ("DeliveredNotifications")] + + [Export ("removeAllDeliveredNotifications")] + [PostGet ("DeliveredNotifications")] void RemoveAllDeliveredNotifications (); } - + [NoiOS, NoTV, NoWatch, NoMacCatalyst] [BaseType (typeof (NSObject))] [Model] [Protocol] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'UserNotifications.*' API instead.")] - interface NSUserNotificationCenterDelegate - { + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'UserNotifications.*' API instead.")] + interface NSUserNotificationCenterDelegate { [Export ("userNotificationCenter:didDeliverNotification:"), EventArgs ("UNCDidDeliverNotification")] void DidDeliverNotification (NSUserNotificationCenter center, NSUserNotification notification); - + [Export ("userNotificationCenter:didActivateNotification:"), EventArgs ("UNCDidActivateNotification")] void DidActivateNotification (NSUserNotificationCenter center, NSUserNotification notification); - + [Export ("userNotificationCenter:shouldPresentNotification:"), DelegateName ("UNCShouldPresentNotification"), DefaultValue (false)] bool ShouldPresentNotification (NSUserNotificationCenter center, NSUserNotification notification); } @@ -15169,7 +15783,10 @@ namespace Foundation NSAttributedString RichTextSource { get; } } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [BaseType (typeof (NSFormatter), Name = "NSISO8601DateFormatter")] [DesignatedDefaultCtor] interface NSIso8601DateFormatter : NSSecureCoding { @@ -15191,16 +15808,19 @@ namespace Foundation [Export ("stringFromDate:timeZone:formatOptions:")] string Format (NSDate date, NSTimeZone timeZone, NSIso8601DateFormatOptions formatOptions); } - - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject), Name = "NSURLSessionTaskTransactionMetrics")] [DisableDefaultCtor] interface NSUrlSessionTaskTransactionMetrics { [Deprecated (PlatformName.MacOSX, 10, 15, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] [Export ("init")] NativeHandle Constructor (); @@ -15336,20 +15956,23 @@ namespace Foundation NSUrlSessionTaskMetricsDomainResolutionProtocol DomainResolutionProtocol { get; } } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject), Name = "NSURLSessionTaskMetrics")] [DisableDefaultCtor] interface NSUrlSessionTaskMetrics { [Deprecated (PlatformName.MacOSX, 10, 15, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] - [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "This type is not meant to be user created.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "This type is not meant to be user created.")] [Export ("init")] NativeHandle Constructor (); [Export ("transactionMetrics", ArgumentSemantic.Copy)] - NSUrlSessionTaskTransactionMetrics[] TransactionMetrics { get; } + NSUrlSessionTaskTransactionMetrics [] TransactionMetrics { get; } [Export ("taskInterval", ArgumentSemantic.Copy)] NSDateInterval TaskInterval { get; } @@ -15359,7 +15982,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitAcceleration : NSSecureCoding { // inline from base type @@ -15382,7 +16008,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitAngle : NSSecureCoding { // inline from base type @@ -15421,7 +16050,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitArea : NSSecureCoding { // inline from base type @@ -15492,7 +16124,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitConcentrationMass : NSSecureCoding { // inline from base type @@ -15519,7 +16154,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitDispersion : NSSecureCoding { // inline from base type @@ -15538,7 +16176,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitDuration : NSSecureCoding { // inline from base type @@ -15585,7 +16226,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitElectricCharge : NSSecureCoding { // inline from base type @@ -15624,7 +16268,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitElectricCurrent : NSSecureCoding { // inline from base type @@ -15659,14 +16306,17 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitElectricPotentialDifference : NSSecureCoding { // inline from base type [Export ("initWithSymbol:converter:")] [DesignatedInitializer] NativeHandle Constructor (string symbol, NSUnitConverter converter); - + [Static] [Export ("megavolts", ArgumentSemantic.Copy)] NSUnitElectricPotentialDifference Megavolts { get; } @@ -15694,7 +16344,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitElectricResistance : NSSecureCoding { // inline from base type @@ -15729,7 +16382,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitEnergy : NSSecureCoding { // inline from base type @@ -15764,7 +16420,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitFrequency : NSSecureCoding { // inline from base type @@ -15816,7 +16475,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitFuelEfficiency : NSSecureCoding { // inline from base type @@ -15843,7 +16505,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitLength : NSSecureCoding { // inline from base type @@ -15946,7 +16611,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitIlluminance : NSSecureCoding { // inline from base type @@ -15965,7 +16633,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitMass : NSSecureCoding { // inline from base type @@ -16044,7 +16715,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitPower : NSSecureCoding { // inline from base type @@ -16103,7 +16777,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitPressure : NSSecureCoding { // inline from base type @@ -16158,7 +16835,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitSpeed : NSSecureCoding { // inline from base type @@ -16189,7 +16869,10 @@ namespace Foundation } [DisableDefaultCtor] // -init should never be called on NSUnit! - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSDimension))] interface NSUnitVolume : NSSecureCoding { // inline from base type @@ -16327,7 +17010,7 @@ namespace Foundation NSDimension BaseUnit { get; } } - [iOS (10,0)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSMeasurement : NSCopying, NSSecureCoding @@ -16355,7 +17038,10 @@ namespace Foundation NSMeasurement GetMeasurementBySubtracting (NSMeasurement measurement); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSFormatter))] interface NSMeasurementFormatter : NSSecureCoding { @@ -16380,17 +17066,20 @@ namespace Foundation [BaseType (typeof (NSObject), Name = "NSXPCConnection")] [DisableDefaultCtor] - interface NSXpcConnection - { + interface NSXpcConnection { [Export ("initWithServiceName:")] - [NoiOS][NoWatch][NoTV] + [NoiOS] + [NoWatch] + [NoTV] NativeHandle Constructor (string xpcServiceName); [Export ("serviceName")] string ServiceName { get; } [Export ("initWithMachServiceName:options:")] - [NoiOS][NoWatch][NoTV] + [NoiOS] + [NoWatch] + [NoTV] NativeHandle Constructor (string machServiceName, NSXpcConnectionOptions options); [Export ("initWithListenerEndpoint:")] @@ -16444,7 +17133,10 @@ namespace Foundation NSXpcConnection CurrentConnection { [return: NullAllowed] get; } [Export ("scheduleSendBarrierBlock:")] - [Mac (10, 15)][iOS (13, 0)][Watch (6, 0)][TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] + [Watch (6, 0)] + [TV (13, 0)] void ScheduleSendBarrier (Action block); [Export ("remoteObjectProxy"), Internal] @@ -16453,25 +17145,27 @@ namespace Foundation [Export ("remoteObjectProxyWithErrorHandler:"), Internal] IntPtr _CreateRemoteObjectProxy ([BlockCallback] Action errorHandler); - [Mac (10, 11)][iOS (9, 0)][Watch (2, 0)][TV (9, 0)] + [Mac (10, 11)] + [iOS (9, 0)] + [Watch (2, 0)] + [TV (9, 0)] [Export ("synchronousRemoteObjectProxyWithErrorHandler:"), Internal] IntPtr _CreateSynchronousRemoteObjectProxy ([BlockCallback] Action errorHandler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("activate")] void Activate (); - [NoWatch, NoTV, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoiOS, Mac (13, 0)] [Export ("setCodeSigningRequirement:")] void SetCodeSigningRequirement (string requirement); } - interface INSXpcListenerDelegate {} + interface INSXpcListenerDelegate { } - [BaseType (typeof (NSObject), Name = "NSXPCListener", Delegates = new string[] { "WeakDelegate" })] + [BaseType (typeof (NSObject), Name = "NSXPCListener", Delegates = new string [] { "WeakDelegate" })] [DisableDefaultCtor] - interface NSXpcListener - { + interface NSXpcListener { [Export ("serviceListener")] [Static] NSXpcListener ServiceListener { get; } @@ -16482,7 +17176,9 @@ namespace Foundation [Export ("initWithMachServiceName:")] [DesignatedInitializer] - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] NativeHandle Constructor (string machServiceName); [Export ("delegate", ArgumentSemantic.Assign)] @@ -16505,11 +17201,11 @@ namespace Foundation [Export ("invalidate")] void Invalidate (); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("activate")] void Activate (); - [NoWatch, NoTV, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoiOS, Mac (13, 0)] [Export ("setConnectionCodeSigningRequirement:")] void SetConnectionCodeSigningRequirement (string requirement); } @@ -16520,16 +17216,14 @@ namespace Foundation #else [Model (AutoGeneratedName = true), Protocol] #endif - interface NSXpcListenerDelegate - { + interface NSXpcListenerDelegate { [Export ("listener:shouldAcceptNewConnection:")] bool ShouldAcceptConnection (NSXpcListener listener, NSXpcConnection newConnection); } [BaseType (typeof (NSObject), Name = "NSXPCInterface")] [DisableDefaultCtor] - interface NSXpcInterface - { + interface NSXpcInterface { [Export ("interfaceWithProtocol:")] [Static] NSXpcInterface Create (Protocol protocol); @@ -16548,11 +17242,10 @@ namespace Foundation [BaseType (typeof (NSObject), Name = "NSXPCListenerEndpoint")] [DisableDefaultCtor] - interface NSXpcListenerEndpoint : NSSecureCoding - { + interface NSXpcListenerEndpoint : NSSecureCoding { } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSFormatter))] interface NSListFormatter { @@ -16565,25 +17258,25 @@ namespace Foundation [Static] [Export ("localizedStringByJoiningStrings:")] // using `NSString[]` since they might be one (or many) `NSString` subclass(es) that handle localization - string GetLocalizedString (NSString[] joinedStrings); + string GetLocalizedString (NSString [] joinedStrings); [Export ("stringFromItems:")] [return: NullAllowed] - string GetString (NSObject[] items); + string GetString (NSObject [] items); [Export ("stringForObjectValue:")] [return: NullAllowed] string GetString ([NullAllowed] NSObject obj); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSRelativeDateTimeFormatterStyle : long { Numeric = 0, Named, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSRelativeDateTimeFormatterUnitsStyle : long { Full = 0, @@ -16592,7 +17285,7 @@ namespace Foundation Abbreviated, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSFormatter))] interface NSRelativeDateTimeFormatter { @@ -16625,14 +17318,14 @@ namespace Foundation string GetString ([NullAllowed] NSObject obj); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSCollectionChangeType : long { Insert, Remove, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSOrderedCollectionDifferenceCalculationOptions : ulong { OmitInsertedObjects = (1uL << 0), @@ -16640,7 +17333,7 @@ namespace Foundation InferMoves = (1uL << 2), } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSDimension))] [DisableDefaultCtor] // NSGenericException Reason: -init should never be called on NSUnit! interface NSUnitInformationStorage : NSSecureCoding { @@ -16796,14 +17489,14 @@ namespace Foundation NSUnitInformationStorage Kibibits { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSUrlSessionWebSocketMessageType : long { Data = 0, String = 1, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject), Name = "NSURLSessionWebSocketMessage")] [DisableDefaultCtor] interface NSUrlSessionWebSocketMessage { @@ -16826,7 +17519,7 @@ namespace Foundation string String { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSUrlSessionWebSocketCloseCode : long { Invalid = 0, @@ -16844,7 +17537,7 @@ namespace Foundation TlsHandshakeFailure = 1015, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSUrlSessionTask), Name = "NSURLSessionWebSocketTask")] [DisableDefaultCtor] interface NSUrlSessionWebSocketTask { @@ -16874,11 +17567,12 @@ namespace Foundation NSData CloseReason { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSUrlSessionTaskDelegate), Name = "NSURLSessionWebSocketDelegate")] interface NSUrlSessionWebSocketDelegate { @@ -16890,7 +17584,7 @@ namespace Foundation void DidClose (NSUrlSession session, NSUrlSessionWebSocketTask webSocketTask, NSUrlSessionWebSocketCloseCode closeCode, [NullAllowed] NSData reason); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NSUrlErrorNetworkUnavailableReason : long { Cellular = 0, @@ -16898,10 +17592,9 @@ namespace Foundation Constrained = 2, } - [NoWatch, NoTV, NoiOS, Mac (10,10)] + [NoWatch, NoTV, NoiOS, Mac (10, 10)] [Native] - public enum NSBackgroundActivityResult : long - { + public enum NSBackgroundActivityResult : long { Finished = 1, Deferred = 2, } @@ -16910,11 +17603,10 @@ namespace Foundation delegate void NSBackgroundActivityCompletionAction ([BlockCallback] NSBackgroundActivityCompletionHandler handler); - [NoWatch, NoTV, NoiOS, Mac (10,10)] + [NoWatch, NoTV, NoiOS, Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSBackgroundActivityScheduler - { + interface NSBackgroundActivityScheduler { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -16944,7 +17636,7 @@ namespace Foundation bool ShouldDefer { get; } } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Native] public enum NSUrlSessionTaskMetricsDomainResolutionProtocol : long { Unknown, @@ -16954,8 +17646,10 @@ namespace Foundation Https, } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15, 0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [Native] public enum NSNotificationSuspensionBehavior : ulong { Drop = 1, @@ -16964,8 +17658,10 @@ namespace Foundation DeliverImmediately = 4, } - [NoiOS][NoTV][NoWatch] - [MacCatalyst(15, 0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (15, 0)] [Flags] [Native] public enum NSNotificationFlags : ulong { @@ -16973,20 +17669,22 @@ namespace Foundation PostToAllSessions = (1 << 1), } - [Mac (10,11)][NoWatch][NoTV][NoiOS][NoMacCatalyst] + [Mac (10, 11)] + [NoWatch] + [NoTV] + [NoiOS] + [NoMacCatalyst] [Native] [Flags] - public enum NSFileManagerUnmountOptions : ulong - { + public enum NSFileManagerUnmountOptions : ulong { AllPartitionsAndEjectDisk = 1 << 0, WithoutUI = 1 << 1, } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSPresentationIntent : NSCopying, NSSecureCoding - { + interface NSPresentationIntent : NSCopying, NSSecureCoding { [Export ("intentKind")] NSPresentationIntentKind IntentKind { get; } @@ -17027,7 +17725,7 @@ namespace Foundation [Static] [Export ("tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:")] - NSPresentationIntent CreateTableIntent (nint identity, nint columnCount, NSNumber[] alignments, [NullAllowed] NSPresentationIntent parent); + NSPresentationIntent CreateTableIntent (nint identity, nint columnCount, NSNumber [] alignments, [NullAllowed] NSPresentationIntent parent); [Static] [Export ("tableHeaderRowIntentWithIdentity:nestedInsideIntent:")] @@ -17048,7 +17746,7 @@ namespace Foundation nint Ordinal { get; } [NullAllowed, Export ("columnAlignments")] - NSNumber[] ColumnAlignments { get; } + NSNumber [] ColumnAlignments { get; } [Export ("columnCount")] nint ColumnCount { get; } @@ -17071,11 +17769,10 @@ namespace Foundation [Export ("isEquivalentToPresentationIntent:")] bool IsEquivalent (NSPresentationIntent other); } - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface NSAttributedStringMarkdownParsingOptions : NSCopying - { + interface NSAttributedStringMarkdownParsingOptions : NSCopying { [Export ("allowsExtendedAttributes")] bool AllowsExtendedAttributes { get; set; } @@ -17092,17 +17789,16 @@ namespace Foundation [Export ("appliesSourcePositionAttributes")] bool AppliesSourcePositionAttributes { get; set; } } - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSInflectionRule : NSCopying, NSSecureCoding - { + interface NSInflectionRule : NSCopying, NSSecureCoding { [Static] [Export ("automaticRule")] NSInflectionRule AutomaticRule { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0)] [Static] [Export ("canInflectLanguage:")] bool CanInflectLanguage (string language); @@ -17112,11 +17808,10 @@ namespace Foundation [Export ("canInflectPreferredLocalization")] bool CanInflectPreferredLocalization { get; } } - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSInflectionRule))] - interface NSInflectionRuleExplicit - { + interface NSInflectionRuleExplicit { [Export ("initWithMorphology:")] [DesignatedInitializer] NativeHandle Constructor (NSMorphology morphology); @@ -17124,11 +17819,10 @@ namespace Foundation [Export ("morphology", ArgumentSemantic.Copy)] NSMorphology Morphology { get; } } - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface NSMorphology : NSCopying, NSSecureCoding - { + interface NSMorphology : NSCopying, NSSecureCoding { [Export ("grammaticalGender", ArgumentSemantic.Assign)] NSGrammaticalGender GrammaticalGender { get; set; } @@ -17137,7 +17831,7 @@ namespace Foundation [Export ("number", ArgumentSemantic.Assign)] NSGrammaticalNumber Number { get; set; } - + [Export ("customPronounForLanguage:")] [return: NullAllowed] NSMorphologyCustomPronoun GetCustomPronoun (string language); @@ -17152,18 +17846,17 @@ namespace Foundation [Export ("userMorphology")] NSMorphology UserMorphology { get; } } - - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15, 0)] + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface NSMorphologyCustomPronoun : NSCopying, NSSecureCoding - { + interface NSMorphologyCustomPronoun : NSCopying, NSSecureCoding { [Static] [Export ("isSupportedForLanguage:")] bool IsSupported (string language); [Static] [Export ("requiredKeysForLanguage:")] - string[] GetRequiredKeysForLanguage (string language); + string [] GetRequiredKeysForLanguage (string language); [NullAllowed, Export ("subjectForm")] string SubjectForm { get; set; } @@ -17275,10 +17968,9 @@ namespace Foundation } #endif - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0)] - [BaseType (typeof(NSObject))] - interface NSAttributedStringMarkdownSourcePosition : NSCopying, NSSecureCoding - { + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [BaseType (typeof (NSObject))] + interface NSAttributedStringMarkdownSourcePosition : NSCopying, NSSecureCoding { [Export ("startLine")] nint StartLine { get; } diff --git a/src/gamecontroller.cs b/src/gamecontroller.cs index 0d1ac23480..64bfa395a0 100644 --- a/src/gamecontroller.cs +++ b/src/gamecontroller.cs @@ -34,9 +34,9 @@ using NativeHandle = System.IntPtr; namespace GameController { - [iOS (7,0)] - [Mac (10,9)] - [TV (9,0)] + [iOS (7, 0)] + [Mac (10, 9)] + [TV (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // The GCControllerElement class is never instantiated directly. partial interface GCControllerElement { @@ -51,45 +51,45 @@ namespace GameController { bool IsAnalog { [Bind ("isAnalog")] get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("sfSymbolsName", ArgumentSemantic.Strong)] string SfSymbolsName { get; set; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("localizedName", ArgumentSemantic.Strong)] string LocalizedName { get; set; } [TV (14, 2), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("unmappedSfSymbolsName", ArgumentSemantic.Strong)] string UnmappedSfSymbolsName { get; set; } [TV (14, 2), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("unmappedLocalizedName", ArgumentSemantic.Strong)] string UnmappedLocalizedName { get; set; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("aliases")] NSSet Aliases { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("boundToSystemGesture")] bool IsBoundToSystemGesture { [Bind ("isBoundToSystemGesture")] get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("preferredSystemGestureState", ArgumentSemantic.Assign)] GCSystemGestureState PreferredSystemGestureState { get; set; } } delegate void GCControllerAxisValueChangedHandler (GCControllerAxisInput axis, float /* float, not CGFloat */ value); - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (GCControllerElement))] [DisableDefaultCtor] // return nil handle -> only exposed as getter partial interface GCControllerAxisInput { @@ -101,7 +101,9 @@ namespace GameController { [Export ("value")] float Value { /* float, not CGFloat */ get; - [Mac (10,15)][iOS (13,0)][TV (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] set; } } @@ -109,7 +111,7 @@ namespace GameController { delegate void GCControllerButtonValueChanged (GCControllerButtonInput button, float /* float, not CGFloat */ buttonValue, bool pressed); delegate void GCControllerButtonTouchedChanged (GCControllerButtonInput button, float value, bool pressed, bool touched); - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [BaseType (typeof (GCControllerElement))] [DisableDefaultCtor] // return nil handle -> only exposed as getter partial interface GCControllerButtonInput { @@ -127,7 +129,9 @@ namespace GameController { [Export ("value")] float Value { /* float, not CGFloat */ get; - [Mac (10,15)][iOS (13,0)][TV (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] set; } @@ -135,32 +139,32 @@ namespace GameController { bool IsPressed { [Bind ("isPressed")] get; } #if !NET - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Obsolete ("Use the 'PressedChangedHandler' property.")] [Wrap ("PressedChangedHandler = handler;", IsVirtual = true)] void SetPressedChangedHandler (GCControllerButtonValueChanged handler); #endif - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] [Export ("pressedChangedHandler", ArgumentSemantic.Copy)] GCControllerButtonValueChanged PressedChangedHandler { get; set; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("touchedChangedHandler", ArgumentSemantic.Copy)] GCControllerButtonTouchedChanged TouchedChangedHandler { get; set; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("touched")] bool Touched { [Bind ("isTouched")] get; } } delegate void GCControllerDirectionPadValueChangedHandler (GCControllerDirectionPad dpad, float /* float, not CGFloat */ xValue, float /* float, not CGFloat */ yValue); - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (GCControllerElement))] [DisableDefaultCtor] // return nil handle -> only exposed as getter partial interface GCControllerDirectionPad { @@ -187,8 +191,8 @@ namespace GameController { [Export ("right")] GCControllerButtonInput Right { get; } - [Mac (10,15), iOS (13,0)] - [TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Export ("setValueForXAxis:yAxis:")] void SetValue (float xAxis, float yAxis); } @@ -198,8 +202,8 @@ namespace GameController { [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'GCExtendedGamepad' instead.")] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'GCExtendedGamepad' instead.")] [Deprecated (PlatformName.TvOS, 10, 0, message: "Use 'GCExtendedGamepad' instead.")] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (GCPhysicalInputProfile))] [DisableDefaultCtor] // return nil handle -> only exposed as getter partial interface GCGamepad { @@ -239,8 +243,8 @@ namespace GameController { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'GCExtendedGamepad' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GCExtendedGamepad' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'GCExtendedGamepad' instead.")] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (GCGamepad))] [DisableDefaultCtor] partial interface GCGamepadSnapshot { @@ -257,8 +261,8 @@ namespace GameController { delegate void GCExtendedGamepadValueChangedHandler (GCExtendedGamepad gamepad, GCControllerElement element); - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (GCPhysicalInputProfile))] [DisableDefaultCtor] // return nil handle -> only exposed as getter partial interface GCExtendedGamepad { @@ -325,18 +329,18 @@ namespace GameController { [NullAllowed, Export ("buttonOptions")] GCControllerButtonInput ButtonOptions { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setStateFromExtendedGamepad:")] void SetState (GCExtendedGamepad extendedGamepad); [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("buttonHome")] GCControllerButtonInput ButtonHome { get; } } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'GCController.GetExtendedGamepadController()' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GCController.GetExtendedGamepadController()' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'GCController.GetExtendedGamepadController()' instead.")] @@ -361,7 +365,7 @@ namespace GameController { GCExtendedGamepadSnapshotDataVersion DataVersion { get; } } - [iOS (7,0), Mac (10,9)] + [iOS (7, 0), Mac (10, 9)] [BaseType (typeof (NSObject))] partial interface GCController : GCDevice { @@ -398,8 +402,8 @@ namespace GameController { [Export ("extendedGamepad", ArgumentSemantic.Retain)] GCExtendedGamepad ExtendedGamepad { get; } - [Mac (10,12)] - [iOS (10,0)] + [Mac (10, 12)] + [iOS (10, 0)] [NullAllowed, Export ("microGamepad", ArgumentSemantic.Retain)] GCMicroGamepad MicroGamepad { get; } @@ -419,12 +423,13 @@ namespace GameController { [Notification, Field ("GCControllerDidDisconnectNotification")] NSString DidDisconnectNotification { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] [Export ("motion", ArgumentSemantic.Retain)] GCMotion Motion { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("handlerQueue", ArgumentSemantic.Retain)] new DispatchQueue HandlerQueue { get; set; } @@ -451,44 +456,46 @@ namespace GameController { GCController GetExtendedGamepadController (); [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Static] [NullAllowed, Export ("current", ArgumentSemantic.Strong)] GCController Current { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("light", ArgumentSemantic.Retain)] GCDeviceLight Light { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("haptics", ArgumentSemantic.Retain)] GCDeviceHaptics Haptics { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("battery", ArgumentSemantic.Copy)] GCDeviceBattery Battery { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Notification, Field ("GCControllerDidBecomeCurrentNotification")] NSString DidBecomeCurrentNotification { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Notification, Field ("GCControllerDidStopBeingCurrentNotification")] NSString DidStopBeingCurrentNotification { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Static] [Export ("shouldMonitorBackgroundEvents")] bool ShouldMonitorBackgroundEvents { get; set; } } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // access thru GCController.Motion - returns a nil Handle partial interface GCMotion { @@ -521,7 +528,7 @@ namespace GameController { Vector3d UserAcceleration { get; } #endif - [TV (11,0)] + [TV (11, 0)] [Export ("attitude", ArgumentSemantic.Assign)] #if NET GCQuaternion Attitude { get; } @@ -529,7 +536,7 @@ namespace GameController { Quaterniond Attitude { get; } #endif - [TV (11,0), iOS (11,0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [Export ("rotationRate", ArgumentSemantic.Assign)] #if NET GCRotationRate RotationRate { get; } @@ -540,71 +547,71 @@ namespace GameController { [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'HasAttitude' and 'HasRotationRate' instead.")] [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'HasAttitude' and 'HasRotationRate' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'HasAttitude' and 'HasRotationRate' instead.")] - [TV (11,0)] - [iOS (11,0)] - [Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("hasAttitudeAndRotationRate")] bool HasAttitudeAndRotationRate { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setGravity:")] void SetGravity (GCAcceleration gravity); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setUserAcceleration:")] void SetUserAcceleration (GCAcceleration userAcceleration); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setAttitude:")] void SetAttitude (GCQuaternion attitude); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setRotationRate:")] void SetRotationRate (GCRotationRate rotationRate); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setStateFromMotion:")] void SetState (GCMotion motion); [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("hasAttitude")] bool HasAttitude { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("hasRotationRate")] bool HasRotationRate { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("sensorsRequireManualActivation")] bool SensorsRequireManualActivation { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("sensorsActive")] bool SensorsActive { get; set; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("hasGravityAndUserAcceleration")] bool HasGravityAndUserAcceleration { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("acceleration")] GCAcceleration Acceleration { get; set; } } - [Mac (10,11)] - [iOS (10,0)] - [TV (9,0)] + [Mac (10, 11)] + [iOS (10, 0)] + [TV (9, 0)] delegate void GCMicroGamepadValueChangedHandler (GCMicroGamepad gamepad, GCControllerElement element); - [Mac (10,11)] - [iOS (10,0)] - [TV (9,0)] + [Mac (10, 11)] + [iOS (10, 0)] + [TV (9, 0)] [BaseType (typeof (GCPhysicalInputProfile))] [DisableDefaultCtor] interface GCMicroGamepad { @@ -639,7 +646,7 @@ namespace GameController { [Export ("buttonMenu")] GCControllerButtonInput ButtonMenu { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("setStateFromMicroGamepad:")] void SetState (GCMicroGamepad microGamepad); } @@ -647,9 +654,9 @@ namespace GameController { [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'GCController.Capture()' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GCController.Capture()' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'GCController.Capture()' instead.")] - [Mac (10,12)] - [iOS (10,0)] - [TV (9,0)] + [Mac (10, 12)] + [iOS (10, 0)] + [TV (9, 0)] [BaseType (typeof (GCMicroGamepad))] interface GCMicroGamepadSnapshot { [Export ("snapshotData", ArgumentSemantic.Copy)] @@ -669,9 +676,9 @@ namespace GameController { GCMicroGamepadSnapshotDataVersion DataVersion { get; } } - [Mac (10,12)] - [iOS (10,0)] - [TV (9,0)] + [Mac (10, 12)] + [iOS (10, 0)] + [TV (9, 0)] [BaseType (typeof (UIViewController))] interface GCEventViewController { @@ -684,12 +691,11 @@ namespace GameController { bool ControllerUserInteractionEnabled { get; set; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCColor : NSCopying, NSSecureCoding - { + interface GCColor : NSCopying, NSSecureCoding { [Export ("initWithRed:green:blue:")] NativeHandle Constructor (float red, float green, float blue); @@ -705,11 +711,10 @@ namespace GameController { delegate void GCControllerTouchpadHandler (GCControllerTouchpad touchpad, float xValue, float yValue, float buttonValue, bool buttonPressed); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCControllerElement))] - interface GCControllerTouchpad - { + interface GCControllerTouchpad { [Export ("button")] GCControllerButtonInput Button { get; } @@ -735,12 +740,11 @@ namespace GameController { void SetValue (float xAxis, float yAxis, bool touchDown, float buttonValue); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCDeviceBattery : NSSecureCoding, NSCoding - { + interface GCDeviceBattery : NSSecureCoding, NSCoding { [Export ("batteryLevel")] float BatteryLevel { get; } @@ -748,12 +752,11 @@ namespace GameController { GCDeviceBatteryState BatteryState { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCDeviceHaptics - { + interface GCDeviceHaptics { [Export ("supportedLocalities", ArgumentSemantic.Strong)] NSSet SupportedLocalities { get; } @@ -766,8 +769,8 @@ namespace GameController { float HapticDurationInfinite { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] interface GCHapticsLocality { @@ -796,21 +799,19 @@ namespace GameController { NSString RightTrigger { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCDeviceLight: NSSecureCoding, NSCoding - { + interface GCDeviceLight : NSSecureCoding, NSCoding { [Export ("color", ArgumentSemantic.Copy)] GCColor Color { get; set; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCExtendedGamepad))] - interface GCDualShockGamepad: NSSecureCoding, NSCoding - { + interface GCDualShockGamepad : NSSecureCoding, NSCoding { [Export ("touchpadButton")] GCControllerButtonInput TouchpadButton { get; } @@ -822,10 +823,9 @@ namespace GameController { } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface GCKeyboard : GCDevice, NSSecureCoding, NSCoding - { + interface GCKeyboard : GCDevice, NSSecureCoding, NSCoding { [NullAllowed, Export ("keyboardInput", ArgumentSemantic.Strong)] GCKeyboardInput KeyboardInput { get; } @@ -842,11 +842,10 @@ namespace GameController { delegate void GCKeyboardValueChangedHandler (GCKeyboardInput keyboard, GCControllerButtonInput key, nint keyCode, bool pressed); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCPhysicalInputProfile))] - interface GCKeyboardInput - { + interface GCKeyboardInput { [NullAllowed, Export ("keyChangedHandler", ArgumentSemantic.Copy)] GCKeyboardValueChangedHandler KeyChangedHandler { get; set; } @@ -859,10 +858,9 @@ namespace GameController { } [Mac (11, 0), iOS (14, 0), TV (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface GCMouse : GCDevice, NSSecureCoding, NSCoding - { + interface GCMouse : GCDevice, NSSecureCoding, NSCoding { [NullAllowed, Export ("mouseInput", ArgumentSemantic.Strong)] GCMouseInput MouseInput { get; } @@ -872,7 +870,7 @@ namespace GameController { [Static] [Export ("mice")] - GCMouse[] Mice { get; } + GCMouse [] Mice { get; } [Notification, Field ("GCMouseDidConnectNotification")] NSString DidConnectNotification { get; } @@ -889,16 +887,15 @@ namespace GameController { delegate void GCMouseMoved (GCMouseInput mouse, float deltaX, float deltaY); - [Mac (11, 0), iOS (14, 0), TV(14, 0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCControllerDirectionPad))] - interface GCDeviceCursor {} + interface GCDeviceCursor { } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCPhysicalInputProfile))] - interface GCMouseInput - { + interface GCMouseInput { [NullAllowed, Export ("mouseMovedHandler", ArgumentSemantic.Copy)] GCMouseMoved MouseMovedHandler { get; set; } @@ -915,16 +912,15 @@ namespace GameController { GCControllerButtonInput MiddleButton { get; } [NullAllowed, Export ("auxiliaryButtons")] - GCControllerButtonInput[] AuxiliaryButtons { get; } + GCControllerButtonInput [] AuxiliaryButtons { get; } } - interface IGCDevice {} + interface IGCDevice { } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] - interface GCDevice - { + interface GCDevice { [Abstract] [Export ("handlerQueue", ArgumentSemantic.Strong)] DispatchQueue HandlerQueue { get; set; } @@ -942,12 +938,11 @@ namespace GameController { GCPhysicalInputProfile PhysicalInputProfile { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCPhysicalInputProfile - { + interface GCPhysicalInputProfile { [NullAllowed, Export ("device", ArgumentSemantic.Weak)] IGCDevice Device { get; } @@ -988,33 +983,33 @@ namespace GameController { [Export ("setStateFromPhysicalInput:")] void SetState (GCPhysicalInputProfile physicalInput); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allTouchpads", ArgumentSemantic.Strong)] NSSet AllTouchpads { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("touchpads", ArgumentSemantic.Strong)] NSDictionary Touchpads { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("hasRemappedElements")] bool HasRemappedElements { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("mappedElementAliasForPhysicalInputName:")] string GetMappedElementAlias (string physicalInputName); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("mappedPhysicalInputNamesForElementAlias:")] NSSet GetMappedPhysicalInputNames (string elementAlias); - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch] [NullAllowed, Export ("valueDidChangeHandler", ArgumentSemantic.Copy)] Action ValueDidChangeHandler { get; set; } } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Static] interface GCInputXbox { @@ -1032,7 +1027,7 @@ namespace GameController { } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Static] interface GCInput { @@ -1093,44 +1088,43 @@ namespace GameController { [Field ("GCInputDualShockTouchpadButton")] NSString DualShockTouchpadButton { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCInputButtonShare")] NSString ButtonShare { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputLeftPaddle")] NSString /* IGCButtonElementName */ LeftPaddle { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputPedalAccelerator")] NSString /* IGCButtonElementName */ PedalAccelerator { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputPedalBrake")] NSString /* IGCButtonElementName */ PedalBrake { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputPedalClutch")] NSString /* IGCButtonElementName */ PedalClutch { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputRightPaddle")] NSString /* IGCButtonElementName */ RightPaddle { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputShifter")] NSString /* IGCPhysicalInputElementName */ Shifter { get; } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [Field ("GCInputSteeringWheel")] NSString /* IGCAxisElementName */ SteeringWheel { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (GCExtendedGamepad))] - interface GCXboxGamepad: NSSecureCoding, NSCoding - { + interface GCXboxGamepad : NSSecureCoding, NSCoding { [NullAllowed, Export ("paddleButton1")] GCControllerButtonInput PaddleButton1 { get; } @@ -1143,16 +1137,15 @@ namespace GameController { [NullAllowed, Export ("paddleButton4")] GCControllerButtonInput PaddleButton4 { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("buttonShare")] GCControllerButtonInput ButtonShare { get; } } [Static] [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] - partial interface GCKey - { + [MacCatalyst (14, 0)] + partial interface GCKey { [Field ("GCKeyA")] NSString A { get; } @@ -1351,35 +1344,35 @@ namespace GameController { [Field ("GCKeyF12")] NSString F12 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF13")] NSString F13 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF14")] NSString F14 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF15")] NSString F15 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF16")] NSString F16 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF17")] NSString F17 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF18")] NSString F18 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF19")] NSString F19 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyF20")] NSString F20 { get; } @@ -1565,10 +1558,9 @@ namespace GameController { } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Static] - interface GCKeyCode - { + interface GCKeyCode { [Field ("GCKeyCodeKeyA")] nint KeyA { get; } @@ -1767,35 +1759,35 @@ namespace GameController { [Field ("GCKeyCodeF12")] nint F12 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF13")] nint F13 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF14")] nint F14 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF15")] nint F15 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF16")] nint F16 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF17")] nint F17 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF18")] nint F18 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF19")] nint F19 { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCKeyCodeF20")] nint F20 { get; } @@ -1980,27 +1972,33 @@ namespace GameController { nint RightGui { get; } } - [iOS (14,3)][TV (14,3)][Mac (11,1)] - [MacCatalyst (14,3)] + [iOS (14, 3)] + [TV (14, 3)] + [Mac (11, 1)] + [MacCatalyst (14, 3)] [BaseType (typeof (GCMicroGamepad))] [DisableDefaultCtor] interface GCDirectionalGamepad { } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Native] enum GCDualSenseAdaptiveTriggerMode : long { Off = 0, Feedback = 1, Weapon = 2, Vibration = 3, - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] SlopeFeedback = 4, } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Native] enum GCDualSenseAdaptiveTriggerStatus : long { Unknown = -1, @@ -2011,16 +2009,18 @@ namespace GameController { WeaponFired, VibrationNotVibrating, VibrationIsVibrating, - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] SlopeFeedbackReady, - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] SlopeFeedbackApplyingLoad, - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] SlopeFeedbackFinished, } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (GCControllerButtonInput))] [DisableDefaultCtor] interface GCDualSenseAdaptiveTrigger { @@ -2034,14 +2034,14 @@ namespace GameController { [Export ("armPosition")] float ArmPosition { get; } - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("setModeSlopeFeedbackWithStartPosition:endPosition:startStrength:endStrength:")] void SetModeSlopeFeedback (float startPosition, float endPosition, float startStrength, float endStrength); [Export ("setModeFeedbackWithStartPosition:resistiveStrength:")] void SetModeFeedback (float startPosition, float resistiveStrength); - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("setModeFeedbackWithResistiveStrengths:")] void SetModeFeedback (GCDualSenseAdaptiveTriggerPositionalResistiveStrengths positionalResistiveStrengths); @@ -2051,7 +2051,7 @@ namespace GameController { [Export ("setModeVibrationWithStartPosition:amplitude:frequency:")] void SetModeVibration (float startPosition, float amplitude, float frequency); - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("setModeVibrationWithAmplitudes:frequency:")] void SetModeVibration (GCDualSenseAdaptiveTriggerPositionalAmplitudes positionalAmplitudes, float frequency); @@ -2059,8 +2059,10 @@ namespace GameController { void SetModeOff (); } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (GCExtendedGamepad))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[GCControllerButtonInput setIndex:]: unrecognized selector sent to instance 0x60000147eac0 interface GCDualSenseGamepad { @@ -2081,8 +2083,10 @@ namespace GameController { GCDualSenseAdaptiveTrigger RightTrigger { get; } } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] enum GCInputDirectional { [Field ("GCInputDirectionalDpad")] Dpad, @@ -2090,16 +2094,16 @@ namespace GameController { [Field ("GCInputDirectionalCardinalDpad")] CardinalDpad, - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCInputDirectionalCenterButton")] CenterButton, - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("GCInputDirectionalTouchSurfaceButton")] TouchSurfaceButton, } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] enum GCInputMicroGamepad { [Field ("GCInputMicroGamepadDpad")] Dpad, @@ -2116,11 +2120,10 @@ namespace GameController { delegate GCVirtualControllerElementConfiguration GCVirtualControllerElementUpdateBlock (GCVirtualControllerElementConfiguration configuration); - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GCVirtualController - { + interface GCVirtualController { [Static] [Export ("virtualControllerWithConfiguration:")] GCVirtualController Create (GCVirtualControllerConfiguration configuration); @@ -2143,18 +2146,16 @@ namespace GameController { void UpdateConfiguration (string element, GCVirtualControllerElementUpdateBlock configuration); } - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface GCVirtualControllerConfiguration - { + interface GCVirtualControllerConfiguration { [Export ("elements", ArgumentSemantic.Strong)] NSSet Elements { get; set; } } - [NoTV, NoMac, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoMac, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface GCVirtualControllerElementConfiguration - { + interface GCVirtualControllerElementConfiguration { [Export ("hidden")] bool Hidden { [Bind ("isHidden")] get; set; } @@ -2166,10 +2167,9 @@ namespace GameController { } // Deliberate decision on not enum'ifying these - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] - interface GCProductCategory - { + interface GCProductCategory { [Field ("GCProductCategoryDualSense")] NSString DualSense { get; } @@ -2203,12 +2203,12 @@ namespace GameController { [Field ("GCProductCategoryKeyboard")] NSString Keyboard { get; } - [iOS (16,0), Mac (13,0), NoWatch, TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), NoWatch, TV (16, 0), MacCatalyst (16, 0)] [Field ("GCProductCategoryHID")] NSString GCProductCategoryHid { get; } } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface GCRacingWheel : GCDevice { @@ -2241,7 +2241,7 @@ namespace GameController { NSString DidDisconnectNotification { get; } } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [BaseType (typeof (GCRacingWheelInputState))] interface GCRacingWheelInput : GCDevicePhysicalInput { // Sealed since GCDevicePhysicalInput.Capture returns IGCDevicePhysicalInputState @@ -2253,7 +2253,7 @@ namespace GameController { IGCDevicePhysicalInputStateDiff WheelInputNextInputState { get; } } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] interface GCRacingWheelInputState : GCDevicePhysicalInputState { [Export ("wheel")] @@ -2272,7 +2272,7 @@ namespace GameController { GCGearShifterElement Shifter { get; } } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface GCSteeringWheelElement : GCAxisElement { @@ -2303,9 +2303,9 @@ namespace GameController { // NSEnumerator ElementEnumerator { get; } // } - interface IGCDevicePhysicalInputState {} + interface IGCDevicePhysicalInputState { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCDevicePhysicalInputState { [Abstract] @@ -2351,9 +2351,9 @@ namespace GameController { IGCPhysicalInputElement GetObject (string key); } - interface IGCAxisInput {} + interface IGCAxisInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCAxisInput { [Abstract] @@ -2381,9 +2381,9 @@ namespace GameController { double LastValueLatency { get; } } - interface IGCAxisElement {} + interface IGCAxisElement { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCAxisElement : GCPhysicalInputElement { [Abstract] @@ -2395,9 +2395,9 @@ namespace GameController { IGCRelativeInput RelativeInput { get; } } - interface IGCButtonElement {} + interface IGCButtonElement { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCButtonElement : GCPhysicalInputElement { [Abstract] @@ -2412,9 +2412,9 @@ namespace GameController { delegate void ElementValueDidChangeHandler (IGCDevicePhysicalInput physicalInput, IGCPhysicalInputElement element); delegate void InputStateAvailableHandler (IGCDevicePhysicalInput physicalInput); - interface IGCDevicePhysicalInput {} + interface IGCDevicePhysicalInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCDevicePhysicalInput : GCDevicePhysicalInputState { #if !XAMCORE_5_0 @@ -2446,9 +2446,9 @@ namespace GameController { NSObject NextInputState { get; } } - interface IGCDevicePhysicalInputStateDiff {} + interface IGCDevicePhysicalInputStateDiff { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCDevicePhysicalInputStateDiff { [Abstract] @@ -2460,9 +2460,9 @@ namespace GameController { NSEnumerator ChangedElements { get; } } - interface IGCDirectionPadElement {} + interface IGCDirectionPadElement { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCDirectionPadElement : GCPhysicalInputElement { [Abstract] @@ -2490,9 +2490,9 @@ namespace GameController { NSObject Right { get; } } - interface IGCLinearInput {} + interface IGCLinearInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCLinearInput { [Abstract] @@ -2520,9 +2520,9 @@ namespace GameController { double LastValueLatency { get; } } - interface IGCPhysicalInputElement {} + interface IGCPhysicalInputElement { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCPhysicalInputElement { [Abstract] @@ -2538,9 +2538,9 @@ namespace GameController { NSSet Aliases { get; } } - interface IGCPressedStateInput {} + interface IGCPressedStateInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCPressedStateInput { [Abstract] @@ -2560,9 +2560,9 @@ namespace GameController { double LastPressedStateLatency { get; } } - interface IGCRelativeInput {} + interface IGCRelativeInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCRelativeInput { [Abstract] @@ -2586,9 +2586,9 @@ namespace GameController { double LastDeltaLatency { get; } } - interface IGCSwitchElement {} + interface IGCSwitchElement { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCSwitchElement : GCPhysicalInputElement { [Abstract] @@ -2596,9 +2596,9 @@ namespace GameController { IGCSwitchPositionInput PositionInput { get; } } - interface IGCSwitchPositionInput {} + interface IGCSwitchPositionInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCSwitchPositionInput { [Abstract] @@ -2630,9 +2630,9 @@ namespace GameController { double LastPositionLatency { get; } } - interface IGCTouchedStateInput {} + interface IGCTouchedStateInput { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Protocol] interface GCTouchedStateInput { [Abstract] @@ -2652,7 +2652,7 @@ namespace GameController { double LastTouchedStateLatency { get; } } - [NoiOS, Mac (13,0), NoWatch, NoTV, MacCatalyst (16,0)] + [NoiOS, Mac (13, 0), NoWatch, NoTV, MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface GCGearShifterElement : GCPhysicalInputElement { @@ -2664,7 +2664,7 @@ namespace GameController { } [Static] - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch] interface GCControllerUserCustomizations { [Notification, Field ("GCControllerUserCustomizationsDidChangeNotification")] NSString DidChangeNotification { get; } diff --git a/src/gamekit.cs b/src/gamekit.cs index d431fbcd6e..7674815c44 100644 --- a/src/gamekit.cs +++ b/src/gamekit.cs @@ -37,16 +37,16 @@ using NativeHandle = System.IntPtr; namespace GameKit { - delegate void GKFriendsHandler (string [] friends, NSError error); - delegate void GKPlayersHandler (GKPlayer [] players, NSError error); + delegate void GKFriendsHandler (string [] friends, NSError error); + delegate void GKPlayersHandler (GKPlayer [] players, NSError error); delegate void GKLeaderboardsHandler (GKLeaderboard [] leaderboards, NSError error); delegate void GKScoresLoadedHandler (GKScore [] scoreArray, NSError error); - delegate void GKNotificationMatch (GKMatch match, NSError error); - delegate void GKInviteHandler (GKInvite invite, string [] playerIDs); - delegate void GKQueryHandler (nint activity, NSError error); - delegate void GKCompletionHandler (GKAchievement [] achivements, NSError error); + delegate void GKNotificationMatch (GKMatch match, NSError error); + delegate void GKInviteHandler (GKInvite invite, string [] playerIDs); + delegate void GKQueryHandler (nint activity, NSError error); + delegate void GKCompletionHandler (GKAchievement [] achivements, NSError error); delegate void GKAchievementDescriptionHandler (GKAchievementDescription [] descriptions, NSError error); - delegate void GKCategoryHandler (string [] categories, string [] titles, NSError error); + delegate void GKCategoryHandler (string [] categories, string [] titles, NSError error); delegate void GKPlayerStateUpdateHandler (string playerId, GKVoiceChatPlayerState state); delegate void GKIdentityVerificationSignatureHandler (NSUrl publicKeyUrl, NSData signature, NSData salt, ulong timestamp, NSError error); delegate void GKLeaderboardSetsHandler (GKLeaderboardSet [] leaderboardSets, NSError error); @@ -58,7 +58,7 @@ namespace GameKit { delegate void GKPlayerPhotoLoaded (NSImage photo, NSError error); delegate void GKChallengeComposeHandler (NSViewController composeController, bool issuedChallenge, string [] sentPlayerIDs); #else - delegate void GKImageLoadedHandler (UIImage image, NSError error); + delegate void GKImageLoadedHandler (UIImage image, NSError error); delegate void GKPlayerPhotoLoaded (UIImage photo, NSError error); delegate void GKChallengeComposeHandler (UIViewController composeController, bool issuedChallenge, string [] sentPlayerIDs); #endif @@ -74,7 +74,7 @@ namespace GameKit { [NoMac] [NoWatch] // only exposed thru GKVoiceChatService (not in 3.0) [NoTV] - [Deprecated (PlatformName.iOS, 7,0, message: "Use 'GKVoiceChat' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKVoiceChat' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -83,12 +83,13 @@ namespace GameKit { [Export ("voiceChatService:sendData:toParticipantID:")] void SendData (GKVoiceChatService voiceChatService, NSData data, string toParticipant); - [Export ("participantID")][Abstract] + [Export ("participantID")] + [Abstract] string ParticipantID (); [Export ("voiceChatService:sendRealTimeData:toParticipantID:")] void SendRealTimeData (GKVoiceChatService voiceChatService, NSData data, string participantID); - + [Export ("voiceChatService:didStartWithParticipantID:")] void Started (GKVoiceChatService voiceChatService, string participantID); @@ -105,12 +106,13 @@ namespace GameKit { [NoMac] [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) [NoTV] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKVoiceChat' instead.")] interface GKVoiceChatService { - [Export ("defaultVoiceChatService")][Static] + [Export ("defaultVoiceChatService")] + [Static] GKVoiceChatService Default { get; } [NullAllowed] // by default this property is null @@ -120,7 +122,7 @@ namespace GameKit { [Export ("startVoiceChatWithParticipantID:error:")] bool StartVoiceChat (string participantID, out NSError error); - + [Export ("stopVoiceChatWithParticipantID:")] void StopVoiceChat (string participantID); @@ -144,7 +146,7 @@ namespace GameKit { [Export ("outputMeteringEnabled")] bool OutputMeteringEnabled { [Bind ("isOutputMeteringEnabled")] get; set; } - + [Export ("inputMeteringEnabled")] bool InputMeteringEnabled { [Bind ("isInputMeteringEnabled")] get; set; } @@ -162,15 +164,16 @@ namespace GameKit { [NoTV] [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) [BaseType (typeof (NSObject))] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'MultipeerConnectivity.MCSession' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'MultipeerConnectivity.MCSession' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MultipeerConnectivity.MCSession' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'MultipeerConnectivity.MCSession' instead.")] interface GKSession { [Export ("initWithSessionID:displayName:sessionMode:")] [Deprecated (PlatformName.iOS, 7, 0)] [Deprecated (PlatformName.MacOSX, 10, 10)] NativeHandle Constructor ([NullAllowed] string sessionID, [NullAllowed] string displayName, GKSessionMode mode); - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -187,13 +190,13 @@ namespace GameKit { [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("sessionMode")] GKSessionMode SessionMode { get; } - + [Export ("peerID")] string PeerID { get; } [Export ("available")] bool Available { [Bind ("isAvailable")] get; set; } - + [Export ("disconnectTimeout", ArgumentSemantic.Assign)] double DisconnectTimeout { get; set; } @@ -211,18 +214,19 @@ namespace GameKit { bool SendDataToAllPeers (NSData data, GKSendDataMode mode, out NSError error); // // SEL = -receiveData:fromPeer:inSession:context: - [Export ("setDataReceiveHandler:withContext:")][Internal] + [Export ("setDataReceiveHandler:withContext:")] + [Internal] void _SetDataReceiveHandler (NSObject obj, IntPtr context); [Export ("connectToPeer:withTimeout:")] void Connect (string peerID, double timeout); - + [Export ("cancelConnectToPeer:")] void CancelConnect (string peerID); [Export ("acceptConnectionFromPeer:error:")] bool AcceptConnection (string peerID, out NSError error); - + [Export ("denyConnectionFromPeer:")] void DenyConnection (string peerID); @@ -238,7 +242,7 @@ namespace GameKit { string [] PeersWithConnectionState (GKPeerConnectionState state); } - [Watch (3,0)] + [Watch (3, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKLeaderboard { @@ -247,14 +251,14 @@ namespace GameKit { [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] [Export ("timeScope", ArgumentSemantic.Assign)] - GKLeaderboardTimeScope TimeScope { get; set; } + GKLeaderboardTimeScope TimeScope { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] [Export ("playerScope", ArgumentSemantic.Assign)] - GKLeaderboardPlayerScope PlayerScope { get; set; } + GKLeaderboardPlayerScope PlayerScope { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] @@ -265,22 +269,22 @@ namespace GameKit { [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'Identifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'Identifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'Identifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Identifier' instead.")] [NullAllowed] // by default this property is null [Export ("category", ArgumentSemantic.Copy)] - string Category { get; set; } + string Category { get; set; } [Export ("title", ArgumentSemantic.Copy)] [NullAllowed] - string Title { get; } + string Title { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] [Export ("range", ArgumentSemantic.Assign)] - NSRange Range { get; set; } + NSRange Range { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] @@ -288,7 +292,7 @@ namespace GameKit { [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] [Export ("scores", ArgumentSemantic.Retain)] [NullAllowed] - GKScore [] Scores { get; } + GKScore [] Scores { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] @@ -296,7 +300,7 @@ namespace GameKit { [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] [Export ("localPlayerScore", ArgumentSemantic.Retain)] [NullAllowed] - GKScore LocalPlayerScore { get; } + GKScore LocalPlayerScore { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadLeaderboards' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadLeaderboards' instead.")] @@ -306,8 +310,8 @@ namespace GameKit { NativeHandle Constructor (); [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) - [Deprecated (PlatformName.iOS, 8, 0, message : "Use '.ctor (GKPlayer [] players)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use '.ctor (GKPlayer [] players)' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use '.ctor (GKPlayer [] players)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use '.ctor (GKPlayer [] players)' instead.")] [Export ("initWithPlayerIDs:")] NativeHandle Constructor ([NullAllowed] string [] players); @@ -321,8 +325,8 @@ namespace GameKit { [NoTV] [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'LoadLeaderboards' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'LoadLeaderboards' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'LoadLeaderboards' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'LoadLeaderboards' instead.")] [Static] [Export ("loadCategoriesWithCompletionHandler:")] [Async (ResultTypeName = "GKCategoryResult")] @@ -331,8 +335,8 @@ namespace GameKit { [NoTV] [NoWatch] // deprecated in 2.0 (but framework not added before 3.0) [Static] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SetDefaultLeaderboard' on 'GKLocalPlayer' instead.")] [Export ("setDefaultLeaderboard:withCompletionHandler:")] [Async] void SetDefaultLeaderboard ([NullAllowed] string leaderboardIdentifier, [NullAllowed] Action notificationHandler); @@ -347,20 +351,22 @@ namespace GameKit { [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadLeaderBoards(string[] leaderboardIDs, GKLeaderboardsHandler completionHandler)' instead.")] [Export ("loadLeaderboardsWithCompletionHandler:")] [Async] - void LoadLeaderboards ([NullAllowed] Action completionHandler); + void LoadLeaderboards ([NullAllowed] Action completionHandler); [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [NullAllowed] [Export ("identifier", ArgumentSemantic.Copy)] string Identifier { get; set; } [NoTV] [NoWatch] - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("loadImageWithCompletionHandler:")] [Async] void LoadImage ([NullAllowed] GKImageLoadedHandler completionHandler); @@ -369,7 +375,7 @@ namespace GameKit { [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("initWithPlayers:")] NativeHandle Constructor (GKPlayer [] players); @@ -377,21 +383,21 @@ namespace GameKit { [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LoadEntries' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LoadEntries' instead.")] - [Mac (10,10)] // should be 10,8 but tests fails before Yosemite + [Mac (10, 10)] // should be 10,8 but tests fails before Yosemite [Export ("loading")] bool IsLoading { [Bind ("isLoading")] get; } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Async] [Export ("loadLeaderboardsWithIDs:completionHandler:")] - void LoadLeaderboards ([NullAllowed] string[] leaderboardIds, GKLeaderboardsHandler completionHandler); + void LoadLeaderboards ([NullAllowed] string [] leaderboardIds, GKLeaderboardsHandler completionHandler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("submitScore:context:player:leaderboardIDs:completionHandler:")] [Async] - void SubmitScore (nint score, nuint context, GKPlayer player, string[] leaderboardIds, Action completionHandler); + void SubmitScore (nint score, nuint context, GKPlayer player, string [] leaderboardIds, Action completionHandler); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("baseLeaderboardID", ArgumentSemantic.Strong)] @@ -409,7 +415,7 @@ namespace GameKit { [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Async (ResultTypeName = "GKEntriesForPlayersResult")] [Export ("loadEntriesForPlayers:timeScope:completionHandler:")] - void LoadEntries (GKPlayer[] players, GKLeaderboardTimeScope timeScope, GKEntriesForPlayersHandler completionHandler); + void LoadEntries (GKPlayer [] players, GKLeaderboardTimeScope timeScope, GKEntriesForPlayersHandler completionHandler); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("loadPreviousOccurrenceWithCompletionHandler:")] @@ -434,8 +440,9 @@ namespace GameKit { GKLeaderboardType Type { get; } } - [Watch (3,0)] - [iOS (7,0)][Mac (10,10)] + [Watch (3, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface GKLeaderboardSet : NSCoding, NSSecureCoding { @@ -462,7 +469,7 @@ namespace GameKit { [Async] void LoadLeaderboards ([NullAllowed] GKLeaderboardsHandler completionHandler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("loadLeaderboardsWithHandler:")] [Async] void LoadLeaderboardsWithCompletionHandler (GKLeaderboardsHandler handler); @@ -476,12 +483,12 @@ namespace GameKit { void LoadImage ([NullAllowed] GKImageLoadedHandler completionHandler); } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] - interface GKBasePlayer - { + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] + interface GKBasePlayer { [Deprecated (PlatformName.iOS, 16, 0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")] [Deprecated (PlatformName.TvOS, 16, 0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")] [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use the GKPlayer.TeamPlayerId property to identify a player instead.")] @@ -494,40 +501,40 @@ namespace GameKit { } [NoWatch] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'GKPlayer' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKPlayer' instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'GKPlayer' instead.")] - [BaseType (typeof(GKBasePlayer))] - interface GKCloudPlayer - { + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GKPlayer' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKPlayer' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GKPlayer' instead.")] + [BaseType (typeof (GKBasePlayer))] + interface GKCloudPlayer { [Static] [Export ("getCurrentSignedInPlayerForContainer:completionHandler:")] void GetCurrentSignedInPlayer ([NullAllowed] string containerName, Action handler); } - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (GKBasePlayer))] // note: NSSecureCoding conformity is undocumented - but since it's a runtime check (on ObjC) we still need it interface GKPlayer : NSSecureCoding { - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'TeamPlayerId' instead.")] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'TeamPlayerId' instead.")] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'TeamPlayerId' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'TeamPlayerId' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'TeamPlayerId' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'TeamPlayerId' instead.")] [Export ("playerID", ArgumentSemantic.Retain)] - string PlayerID { get; } + string PlayerID { get; } [Export ("alias", ArgumentSemantic.Copy)] - string Alias { get; } + string Alias { get; } [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'GKLocalPlayer.LoadFriendPlayers' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKLocalPlayer.LoadFriendPlayers' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'GKLocalPlayer.LoadFriendPlayers' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKLocalPlayer.LoadFriendPlayers' instead.")] [Export ("isFriend")] - bool IsFriend { get; } - + bool IsFriend { get; } + [Static, Export ("loadPlayersForIdentifiers:withCompletionHandler:")] [Async] void LoadPlayersForIdentifiers (string [] identifiers, [NullAllowed] GKPlayersHandler completionHandler); @@ -560,27 +567,33 @@ namespace GameKit { string GuestIdentifier { get; } [NoWatch] - [TV (12,4)][Mac (10,14,6)][iOS (12,4)] + [TV (12, 4)] + [Mac (10, 14, 6)] + [iOS (12, 4)] [Export ("gamePlayerID", ArgumentSemantic.Retain)] string GamePlayerId { get; } [NoWatch] - [TV (12,4)][Mac (10,14,6)][iOS (12,4)] + [TV (12, 4)] + [Mac (10, 14, 6)] + [iOS (12, 4)] [Export ("teamPlayerID", ArgumentSemantic.Retain)] string TeamPlayerId { get; } [NoWatch] - [TV (13,0)][Mac (10,15)][iOS (13,0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("scopedIDsArePersistent")] bool ScopedIdsArePersistent { get; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("GKPlayerIDNoLongerAvailable")] NSString IdNoLongerAvailable { get; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("isInvitable")] bool IsInvitable { get; } } @@ -589,61 +602,65 @@ namespace GameKit { [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'GKLeaderboardEntry' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'GKLeaderboardEntry' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'GKLeaderboardEntry' instead.")] - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface GKScore : NSSecureCoding { [NoWatch] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'InitWithLeaderboardIdentifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'InitWithLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'InitWithLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'InitWithLeaderboardIdentifier' instead.")] [Internal] [Export ("initWithCategory:")] IntPtr InitWithCategory ([NullAllowed] string category); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("initWithLeaderboardIdentifier:player:")] NativeHandle Constructor (string identifier, GKPlayer player); [NoWatch] - [iOS (7,0)][Mac (10,10)] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use the overload that takes a 'GKPlayer' instead.")] + [iOS (7, 0)] + [Mac (10, 10)] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use the overload that takes a 'GKPlayer' instead.")] [Export ("initWithLeaderboardIdentifier:forPlayer:")] NativeHandle Constructor (string identifier, string playerID); - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Internal] [Export ("initWithLeaderboardIdentifier:")] IntPtr InitWithLeaderboardIdentifier (string identifier); [NullAllowed] - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("player", ArgumentSemantic.Retain)] GKPlayer Player { get; } [Export ("rank", ArgumentSemantic.Assign)] - nint Rank { get; } + nint Rank { get; } [Export ("date", ArgumentSemantic.Retain)] NSDate Date { get; } [Export ("value", ArgumentSemantic.Assign)] - long Value { get; set; } + long Value { get; set; } [Export ("formattedValue", ArgumentSemantic.Copy)] [NullAllowed] - string FormattedValue { get; } + string FormattedValue { get; } [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'LeaderboardIdentifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'LeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'LeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'LeaderboardIdentifier' instead.")] [NullAllowed] // by default this property is null [Export ("category", ArgumentSemantic.Copy)] - string Category { get; set; } + string Category { get; set; } [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'ReportScores' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'ReportScores' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'ReportScores' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'ReportScores' instead.")] [Export ("reportScoreWithCompletionHandler:")] [Async] void ReportScore ([NullAllowed] Action errorHandler); @@ -656,44 +673,49 @@ namespace GameKit { [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 7, 0, message : "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ... )' and present the view controller instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ... )' and present the view controller instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ... )' and present the view controller instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ... )' and present the view controller instead.")] [Export ("issueChallengeToPlayers:message:")] - void IssueChallengeToPlayers ([NullAllowed] string[] playerIDs, [NullAllowed] string message); + void IssueChallengeToPlayers ([NullAllowed] string [] playerIDs, [NullAllowed] string message); [Export ("reportScores:withCompletionHandler:"), Static] [Async] - void ReportScores (GKScore[] scores, [NullAllowed] Action completionHandler); + void ReportScores (GKScore [] scores, [NullAllowed] Action completionHandler); - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("leaderboardIdentifier", ArgumentSemantic.Copy)] string LeaderboardIdentifier { get; set; } [NoWatch] - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("reportScores:withEligibleChallenges:withCompletionHandler:"), Static] [Async] - void ReportScores (GKScore[] scores, GKChallenge[] challenges, [NullAllowed] Action completionHandler); + void ReportScores (GKScore [] scores, GKChallenge [] challenges, [NullAllowed] Action completionHandler); [NoWatch] - [iOS (14,0)][Mac (11,0)][TV (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [TV (14, 0)] [Static] [Async] [Export ("reportLeaderboardScores:withEligibleChallenges:withCompletionHandler:")] - void ReportLeaderboardScores (GKLeaderboardScore[] scores, GKChallenge[] eligibleChallenges, [NullAllowed] Action completionHandler); + void ReportLeaderboardScores (GKLeaderboardScore [] scores, GKChallenge [] eligibleChallenges, [NullAllowed] Action completionHandler); [NoMac] - [NoTV][NoWatch] + [NoTV] + [NoWatch] [Deprecated (PlatformName.iOS, 8, 0, message: "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ...)' instead.")] - [iOS (7,0)] + [iOS (7, 0)] [Export ("challengeComposeControllerWithPlayers:message:completionHandler:")] [return: NullAllowed] - UIViewController ChallengeComposeController ([NullAllowed] string[] playerIDs, [NullAllowed] string message, [NullAllowed] GKChallengeComposeHandler completionHandler); + UIViewController ChallengeComposeController ([NullAllowed] string [] playerIDs, [NullAllowed] string message, [NullAllowed] GKChallengeComposeHandler completionHandler); [NoWatch] - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [Async (ResultTypeName = "GKChallengeComposeResult")] [Export ("challengeComposeControllerWithMessage:players:completionHandler:")] UIViewController ChallengeComposeController ([NullAllowed] string message, [NullAllowed] GKPlayer [] players, [NullAllowed] GKChallengeComposeHandler completionHandler); @@ -702,8 +724,8 @@ namespace GameKit { [NoWatch] [NoTV] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKGameCenterViewController' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKGameCenterViewController' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -713,16 +735,17 @@ namespace GameKit { void DidFinish (GKLeaderboardViewController viewController); } - [NoTV][NoWatch] + [NoTV] + [NoWatch] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKGameCenterViewController' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKGameCenterViewController' instead.")] #if MONOMAC [BaseType (typeof (GKGameCenterViewController), Events=new Type [] { typeof (GKLeaderboardViewControllerDelegate)}, Delegates=new string [] {"WeakDelegate"})] interface GKLeaderboardViewController #else - [BaseType (typeof (GKGameCenterViewController), Events=new Type [] { typeof (GKLeaderboardViewControllerDelegate)}, Delegates=new string [] {"WeakDelegate"})] - interface GKLeaderboardViewController : UIAppearance + [BaseType (typeof (GKGameCenterViewController), Events = new Type [] { typeof (GKLeaderboardViewControllerDelegate) }, Delegates = new string [] { "WeakDelegate" })] + interface GKLeaderboardViewController : UIAppearance #endif { [Export ("leaderboardDelegate", ArgumentSemantic.Weak), NullAllowed] @@ -734,7 +757,7 @@ namespace GameKit { [NullAllowed] // by default this property is null [Export ("category", - // Way to go, Apple + // Way to go, Apple #if MONOMAC ArgumentSemantic.Copy #else @@ -747,10 +770,10 @@ namespace GameKit { GKLeaderboardTimeScope TimeScope { get; set; } } - [Watch (6,2), TV (13,4), Mac (10,15,4), iOS (13,4)] + [Watch (6, 2), TV (13, 4), Mac (10, 15, 4), iOS (13, 4)] delegate void GKFetchItemsForIdentityVerificationSignatureCompletionHandler (NSUrl publicKeyUrl, NSData signature, NSData salt, ulong timestamp, NSError error); - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (GKPlayer))] interface GKLocalPlayer #if !TVOS && !WATCH // from GKSavedGame category @@ -758,15 +781,15 @@ namespace GameKit { #endif { [Export ("authenticated")] - bool Authenticated { [Bind ("isAuthenticated")] get; } + bool Authenticated { [Bind ("isAuthenticated")] get; } [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'LoadFriendPlayers' instead and collect the friends from the invoked callback.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'LoadFriendPlayers' instead and collect the friends from the invoked callback.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'LoadFriendPlayers' instead and collect the friends from the invoked callback.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'LoadFriendPlayers' instead and collect the friends from the invoked callback.")] [Export ("friends", ArgumentSemantic.Retain)] [NullAllowed] - string [] Friends { get; } + string [] Friends { get; } [Static, Export ("localPlayer")] GKLocalPlayer LocalPlayer { get; } @@ -776,21 +799,22 @@ namespace GameKit { [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 6, 0, message : "Set the 'AuthenticationHandler' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Set the 'AuthenticationHandler' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Set the 'AuthenticationHandler' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Set the 'AuthenticationHandler' instead.")] [Export ("authenticateWithCompletionHandler:")] [Async] void Authenticate ([NullAllowed] Action handler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Async] [Export ("loadRecentPlayersWithCompletionHandler:")] - void LoadRecentPlayers ([NullAllowed] Action completionHandler); + void LoadRecentPlayers ([NullAllowed] Action completionHandler); [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'LoadRecentPlayers' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'LoadRecentPlayers' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'LoadRecentPlayers' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'LoadRecentPlayers' instead.")] [Export ("loadFriendsWithCompletionHandler:")] [Async] void LoadFriends ([NullAllowed] GKFriendsHandler handler); @@ -810,54 +834,56 @@ namespace GameKit { Action AuthenticateHandler { get; set; } #endif - [NoWatch, NoTV, Mac (12,0), iOS (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0)] [NoMacCatalyst] [Export ("isPresentingFriendRequestViewController")] bool IsPresentingFriendRequestViewController { get; } - [NoWatch, NoTV, NoMac, iOS (15,0), NoMacCatalyst] + [NoWatch, NoTV, NoMac, iOS (15, 0), NoMacCatalyst] [Export ("presentFriendRequestCreatorFromViewController:error:")] bool PresentFriendRequestCreator (UIViewController viewController, [NullAllowed] out NSError error); - [NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (12, 0), NoMacCatalyst] [Export ("presentFriendRequestCreatorFromWindow:error:")] bool PresentFriendRequestCreator ([NullAllowed] NSWindow window, [NullAllowed] out NSError error); - [iOS (7,0)][Mac (10,10)] // Mismarked in header, 17613142 + [iOS (7, 0)] + [Mac (10, 10)] // Mismarked in header, 17613142 [Export ("loadDefaultLeaderboardIdentifierWithCompletionHandler:")] [Async] void LoadDefaultLeaderboardIdentifier ([NullAllowed] Action completionHandler); - [iOS (7,0)][Mac (10,10)] // Mismarked in header, 17613142 + [iOS (7, 0)] + [Mac (10, 10)] // Mismarked in header, 17613142 [Export ("setDefaultLeaderboardIdentifier:completionHandler:")] [Async] void SetDefaultLeaderboardIdentifier (string leaderboardIdentifier, [NullAllowed] Action completionHandler); [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'LoadDefaultLeaderboardIdentifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'LoadDefaultLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'LoadDefaultLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'LoadDefaultLeaderboardIdentifier' instead.")] [Export ("loadDefaultLeaderboardCategoryIDWithCompletionHandler:")] [Async] void LoadDefaultLeaderboardCategoryID ([NullAllowed] Action completionHandler); [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'SetDefaultLeaderboardIdentifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SetDefaultLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'SetDefaultLeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SetDefaultLeaderboardIdentifier' instead.")] [Export ("setDefaultLeaderboardCategoryID:completionHandler:")] [Async] void SetDefaultLeaderboardCategoryID ([NullAllowed] string categoryID, [NullAllowed] Action completionHandler); - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("registerListener:")] void RegisterListener ([Protocolize] GKLocalPlayerListener listener); - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("unregisterListener:")] void UnregisterListener ([Protocolize] GKLocalPlayerListener listener); - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("unregisterAllListeners")] void UnregisterAllListeners (); @@ -865,17 +891,17 @@ namespace GameKit { [Deprecated (PlatformName.TvOS, 13, 4, message: "Use 'FetchItemsForIdentityVerificationSignature' instead.")] [Deprecated (PlatformName.MacOSX, 10, 15, 4, message: "Use 'FetchItemsForIdentityVerificationSignature' instead.")] [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'FetchItemsForIdentityVerificationSignature' instead.")] - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Async (ResultTypeName = "GKIdentityVerificationSignatureResult")] [Export ("generateIdentityVerificationSignatureWithCompletionHandler:")] void GenerateIdentityVerificationSignature ([NullAllowed] GKIdentityVerificationSignatureHandler completionHandler); - [Watch (6,2), TV (13,4), Mac (10,15,4), iOS (13,4)] + [Watch (6, 2), TV (13, 4), Mac (10, 15, 4), iOS (13, 4)] [Async (ResultTypeName = "GKFetchItemsForIdentityVerificationSignature")] [Export ("fetchItemsForIdentityVerificationSignature:")] void FetchItemsForIdentityVerificationSignature ([NullAllowed] GKFetchItemsForIdentityVerificationSignatureCompletionHandler completionHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Deprecated (PlatformName.iOS, 10, 0)] [Deprecated (PlatformName.MacOSX, 10, 11)] [Deprecated (PlatformName.TvOS, 10, 0)] @@ -885,78 +911,85 @@ namespace GameKit { [NoWatch] [NoTV] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("fetchSavedGamesWithCompletionHandler:")] - void FetchSavedGames ([NullAllowed] Action handler); + void FetchSavedGames ([NullAllowed] Action handler); [NoWatch] [NoTV] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("saveGameData:withName:completionHandler:")] void SaveGameData (NSData data, string name, [NullAllowed] Action handler); [NoWatch] [NoTV] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("deleteSavedGamesWithName:completionHandler:")] void DeleteSavedGames (string name, [NullAllowed] Action handler); [NoWatch] [NoTV] - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("resolveConflictingSavedGames:withData:completionHandler:")] - void ResolveConflictingSavedGames (GKSavedGame [] conflictingSavedGames, NSData data, [NullAllowed] Action handler); + void ResolveConflictingSavedGames (GKSavedGame [] conflictingSavedGames, NSData data, [NullAllowed] Action handler); [NoWatch] - [TV (13,0)][Mac (10,15)][iOS (13,0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("multiplayerGamingRestricted")] bool MultiplayerGamingRestricted { [Bind ("isMultiplayerGamingRestricted")] get; } - [TV (13,0)][Mac (10,15)][iOS (13,0)][Watch (6,0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] + [Watch (6, 0)] [Export ("loadChallengableFriendsWithCompletionHandler:")] [Async] void LoadChallengeableFriends ([NullAllowed] Action completionHandler); [NoWatch] - [TV (13,0)][Mac (10,15)][iOS (13,0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Static] [Export ("local")] GKLocalPlayer Local { get; } [NoWatch] - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("personalizedCommunicationRestricted")] bool PersonalizedCommunicationRestricted { [Bind ("isPersonalizedCommunicationRestricted")] get; } // FriendsList Category - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Async] [Export ("loadFriendsAuthorizationStatus:")] void LoadFriendsAuthorizationStatus (Action completionHandler); - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Async] [Export ("loadFriends:")] - void LoadFriendsList (Action completionHandler); + void LoadFriendsList (Action completionHandler); - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [Async] [Export ("loadFriendsWithIdentifiers:completionHandler:")] - void LoadFriendsList (string[] identifiers, Action completionHandler); + void LoadFriendsList (string [] identifiers, Action completionHandler); } [NoWatch] [NoTV] - [iOS (8,0)] - [Mac (10,10)] // dyld: Symbol not found: _OBJC_CLASS_$_GKSavedGame in 10.9 + [iOS (8, 0)] + [Mac (10, 10)] // dyld: Symbol not found: _OBJC_CLASS_$_GKSavedGame in 10.9 [BaseType (typeof (NSObject))] interface GKSavedGame : NSCopying { [Export ("name")] @@ -989,30 +1022,30 @@ namespace GameKit { } [NoWatch] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(GKMatchDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (GKMatchDelegate) })] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: 1500388194) // Your application never directly allocates GKMatch objects. http://developer.apple.com/library/ios/#documentation/GameKit/Reference/GKMatch_Ref/Reference/Reference.html [DisableDefaultCtor] interface GKMatch { [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'Players' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'Players' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Players' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Players' instead.")] [NullAllowed, Export ("playerIDs")] - string [] PlayersIDs { get; } + string [] PlayersIDs { get; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - GKMatchDelegate Delegate { get; set; } - + GKMatchDelegate Delegate { get; set; } + [Export ("expectedPlayerCount")] - nint ExpectedPlayerCount { get; } + nint ExpectedPlayerCount { get; } [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SendDataToAllPlayers (NSData, GKPlayer[] players, GKMatchSendDataMode mode, NSError error)' instead.")] [Export ("sendData:toPlayers:withDataMode:error:")] // OOPS: bug we shipped with and can not realistically fix, but good news: this is deprecated (the NSError should have been an out) bool SendData (NSData data, string [] players, GKMatchSendDataMode mode, out NSError error); @@ -1028,28 +1061,28 @@ namespace GameKit { GKVoiceChat VoiceChatWithName (string name); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'ChooseBestHostingPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'ChooseBestHostingPlayer' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'ChooseBestHostingPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'ChooseBestHostingPlayer' instead.")] + [Mac (10, 9)] [Export ("chooseBestHostPlayerWithCompletionHandler:")] [Async] void ChooseBestHostPlayer (Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("rematchWithCompletionHandler:")] [Async] void Rematch ([NullAllowed] Action completionHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("players")] GKPlayer [] Players { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("chooseBestHostingPlayerWithCompletionHandler:")] [Async] void ChooseBestHostingPlayer (Action completionHandler); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("sendData:toPlayers:dataMode:error:")] bool SendData (NSData data, GKPlayer [] players, GKMatchSendDataMode mode, out NSError error); } @@ -1061,14 +1094,14 @@ namespace GameKit { interface GKMatchDelegate { [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'DataReceivedFromPlayer (GKMatch,NSData,GKPlayer)' instead.")] [Export ("match:didReceiveData:fromPlayer:"), EventArgs ("GKData")] void DataReceived (GKMatch match, NSData data, string playerId); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'StateChangedForPlayer (GKMatch,GKPlayer,GKPlayerConnectionState)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'StateChangedForPlayer (GKMatch,GKPlayer,GKPlayerConnectionState)' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'StateChangedForPlayer (GKMatch,GKPlayer,GKPlayerConnectionState)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'StateChangedForPlayer (GKMatch,GKPlayer,GKPlayerConnectionState)' instead.")] [Export ("match:player:didChangeState:"), EventArgs ("GKState")] void StateChanged (GKMatch match, string playerId, GKPlayerConnectionState state); @@ -1085,19 +1118,19 @@ namespace GameKit { void Failed (GKMatch match, [NullAllowed] NSError error); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'ShouldReinviteDisconnectedPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'ShouldReinviteDisconnectedPlayer' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'ShouldReinviteDisconnectedPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'ShouldReinviteDisconnectedPlayer' instead.")] [Export ("match:shouldReinvitePlayer:"), DelegateName ("GKMatchReinvitation"), DefaultValue (true)] bool ShouldReinvitePlayer (GKMatch match, string playerId); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("match:didReceiveData:fromRemotePlayer:"), EventArgs ("GKMatchReceivedDataFromRemotePlayer")] void DataReceivedFromPlayer (GKMatch match, NSData data, GKPlayer player); [Export ("match:player:didChangeConnectionState:"), EventArgs ("GKMatchConnectionChanged")] void StateChangedForPlayer (GKMatch match, GKPlayer player, GKPlayerConnectionState state); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("match:shouldReinviteDisconnectedPlayer:")] [DelegateName ("GKMatchReinvitationForDisconnectedPlayer"), DefaultValue (true)] bool ShouldReinviteDisconnectedPlayer (GKMatch match, GKPlayer player); @@ -1112,13 +1145,13 @@ namespace GameKit { [BaseType (typeof (NSObject))] interface GKVoiceChat { [Export ("name", ArgumentSemantic.Copy)] - string Name { get; } + string Name { get; } [Export ("active", ArgumentSemantic.Assign)] - bool Active { [Bind ("isActive")] get; set; } + bool Active { [Bind ("isActive")] get; set; } [Export ("volume", ArgumentSemantic.Assign)] - float Volume { get; set; } /* float, not CGFloat */ + float Volume { get; set; } /* float, not CGFloat */ [Export ("start")] void Start (); @@ -1128,8 +1161,8 @@ namespace GameKit { [NoTV] // the API was removed in iOS8 - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'SetMuteStatus' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SetMuteStatus' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'SetMuteStatus' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SetMuteStatus' instead.")] [Export ("setMute:forPlayer:")] void SetMute (bool isMuted, string playerID); @@ -1138,46 +1171,49 @@ namespace GameKit { bool IsVoIPAllowed (); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'SetPlayerVoiceChatStateChangeHandler' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SetPlayerVoiceChatStateChangeHandler' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'SetPlayerVoiceChatStateChangeHandler' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SetPlayerVoiceChatStateChangeHandler' instead.")] [NullAllowed] // by default this property is null [Export ("playerStateUpdateHandler", ArgumentSemantic.Copy)] GKPlayerStateUpdateHandler PlayerStateUpdateHandler { get; set; } //void SetPlayerStateUpdateHandler (GKPlayerStateUpdateHandler handler); - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("setPlayerVoiceChatStateDidChangeHandler:", ArgumentSemantic.Copy)] - void SetPlayerVoiceChatStateChangeHandler (Action handler); + void SetPlayerVoiceChatStateChangeHandler (Action handler); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'Players' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'Players' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Players' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Players' instead.")] [NullAllowed, Export ("playerIDs")] string [] PlayerIDs { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("players")] GKPlayer [] Players { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("setPlayer:muted:")] void SetMuteStatus (GKPlayer player, bool isMuted); } - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface GKMatchRequest { [Export ("minPlayers", ArgumentSemantic.Assign)] - nint MinPlayers { get; set; } + nint MinPlayers { get; set; } [Export ("maxPlayers", ArgumentSemantic.Assign)] - nint MaxPlayers { get; set; } + nint MaxPlayers { get; set; } [Export ("playerGroup", ArgumentSemantic.Assign)] - nint PlayerGroup { get; set; } + nint PlayerGroup { get; set; } [Export ("playerAttributes", ArgumentSemantic.Assign)] - uint PlayerAttributes { get; set; } /* uint32_t */ + uint PlayerAttributes { get; set; } /* uint32_t */ [NoTV] [NoWatch] @@ -1185,7 +1221,7 @@ namespace GameKit { [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Recipients' instead.")] [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Recipients' instead.")] [Export ("playersToInvite", ArgumentSemantic.Retain)] - string [] PlayersToInvite { get; set; } + string [] PlayersToInvite { get; set; } [NullAllowed] // by default this property is null [Export ("inviteMessage", ArgumentSemantic.Copy)] @@ -1196,21 +1232,22 @@ namespace GameKit { [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'RecipientResponseHandler' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'RecipientResponseHandler' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'RecipientResponseHandler' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'RecipientResponseHandler' instead.")] [NullAllowed] // by default this property is null [Export ("inviteeResponseHandler", ArgumentSemantic.Copy)] Action InviteeResponseHandler { get; set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [NullAllowed, Export ("recipientResponseHandler", ArgumentSemantic.Copy)] Action RecipientResponseHandler { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("maxPlayersAllowedForMatchOfType:"), Static] nint GetMaxPlayersAllowed (GKMatchType matchType); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("recipients", ArgumentSemantic.Retain)] GKPlayer [] Recipients { get; set; } @@ -1219,7 +1256,9 @@ namespace GameKit { [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'GKMatchmakerViewController.MatchmakingMode' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'GKMatchmakerViewController.MatchmakingMode' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'GKMatchmakerViewController.MatchmakingMode' instead.")] - [TV (13,0)][Mac (10,15)][iOS (13,0)] + [TV (13, 0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("restrictToAutomatch")] bool RestrictToAutomatch { get; set; } } @@ -1229,23 +1268,23 @@ namespace GameKit { interface GKInvite { [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'Sender' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'Sender' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Sender' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Sender' instead.")] [Export ("inviter", ArgumentSemantic.Retain)] - string Inviter { get; } + string Inviter { get; } [Export ("hosted", ArgumentSemantic.Assign)] - bool Hosted { [Bind ("isHosted")] get; } + bool Hosted { [Bind ("isHosted")] get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("playerGroup")] nint PlayerGroup { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("playerAttributes")] uint PlayerAttributes { get; } /* uint32_t */ - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("sender", ArgumentSemantic.Retain)] GKPlayer Sender { get; } } @@ -1258,7 +1297,7 @@ namespace GameKit { GKMatchmaker SharedMatchmaker { get; } [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKInviteEventListenerProtocol'.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKInviteEventListenerProtocol'.")] [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKInviteEventListenerProtocol'.")] [NullAllowed, Export ("inviteHandler", ArgumentSemantic.Copy)] GKInviteHandler InviteHandler { get; set; } @@ -1268,8 +1307,8 @@ namespace GameKit { void FindMatch (GKMatchRequest request, [NullAllowed] GKNotificationMatch matchHandler); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'FindPlayersForHostedRequest' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'FindPlayersForHostedRequest' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'FindPlayersForHostedRequest' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'FindPlayersForHostedRequest' instead.")] [Export ("findPlayersForHostedMatchRequest:withCompletionHandler:")] [Async] void FindPlayers (GKMatchRequest request, [NullAllowed] GKFriendsHandler playerHandler); @@ -1290,44 +1329,44 @@ namespace GameKit { void QueryActivity ([NullAllowed] GKQueryHandler completionHandler); [NoWatch] - [Mac (10,9)] + [Mac (10, 9)] [Export ("matchForInvite:completionHandler:")] [Async] void Match (GKInvite invite, [NullAllowed] Action completionHandler); [NoTV] [Mac (10, 9)] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'CancelPendingInvite' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'CancelPendingInvite' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'CancelPendingInvite' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'CancelPendingInvite' instead.")] [Export ("cancelInviteToPlayer:")] void CancelInvite (string playerID); - [Mac (10,9)] + [Mac (10, 9)] [Export ("finishMatchmakingForMatch:")] void FinishMatchmaking (GKMatch match); [NoTV] - [Mac (10,9)] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'StartBrowsingForNearbyPlayers(Action handler)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'StartBrowsingForNearbyPlayers(Action handler)' instead.")] + [Mac (10, 9)] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'StartBrowsingForNearbyPlayers(Action handler)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'StartBrowsingForNearbyPlayers(Action handler)' instead.")] [Export ("startBrowsingForNearbyPlayersWithReachableHandler:")] void StartBrowsingForNearbyPlayers ([NullAllowed] Action reachableHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("stopBrowsingForNearbyPlayers")] void StopBrowsingForNearbyPlayers (); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("cancelPendingInviteToPlayer:")] void CancelPendingInvite (GKPlayer player); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("findPlayersForHostedRequest:withCompletionHandler:")] [Async] - void FindPlayersForHostedRequest (GKMatchRequest request, [NullAllowed] Action completionHandler); + void FindPlayersForHostedRequest (GKMatchRequest request, [NullAllowed] Action completionHandler); // Not truly an [Async] method since the handler can be called multiple times, for each player found - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("startBrowsingForNearbyPlayersWithHandler:")] void StartBrowsingForNearbyPlayers ([NullAllowed] Action handler); } @@ -1336,7 +1375,7 @@ namespace GameKit { #if MONOMAC [BaseType (typeof (NSViewController), Delegates=new string [] { "WeakMatchmakerDelegate" }, Events=new Type [] {typeof(GKMatchmakerViewControllerDelegate)})] #else - [BaseType (typeof (UINavigationController), Delegates=new string [] { "WeakMatchmakerDelegate" }, Events=new Type [] {typeof(GKMatchmakerViewControllerDelegate)})] + [BaseType (typeof (UINavigationController), Delegates = new string [] { "WeakMatchmakerDelegate" }, Events = new Type [] { typeof (GKMatchmakerViewControllerDelegate) })] #endif // iOS 6 -> Objective-C exception thrown. Name: NSInvalidArgumentException Reason: : must use one of the designated initializers [DisableDefaultCtor] @@ -1348,21 +1387,21 @@ namespace GameKit { [NoiOS] [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); - + [NullAllowed] [Export ("matchmakerDelegate", ArgumentSemantic.Assign)] NSObject WeakMatchmakerDelegate { get; set; } - + [NullAllowed] [Wrap ("WeakMatchmakerDelegate")] [Protocolize] - GKMatchmakerViewControllerDelegate MatchmakerDelegate { get; set; } + GKMatchmakerViewControllerDelegate MatchmakerDelegate { get; set; } [Export ("matchRequest", ArgumentSemantic.Strong)] - GKMatchRequest MatchRequest { get; } + GKMatchRequest MatchRequest { get; } [Export ("hosted", ArgumentSemantic.Assign)] - bool Hosted { [Bind ("isHosted")] get; set; } + bool Hosted { [Bind ("isHosted")] get; set; } [Export ("initWithMatchRequest:")] NativeHandle Constructor (GKMatchRequest request); @@ -1381,26 +1420,26 @@ namespace GameKit { [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("defaultInvitationMessage", ArgumentSemantic.Copy)] [NullAllowed] - string DefaultInvitationMessage { get; set; } + string DefaultInvitationMessage { get; set; } [Export ("addPlayersToMatch:")] void AddPlayersToMatch (GKMatch match); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'SetHostedPlayerConnected (GKPlayer,bool)' instead.")] [Export ("setHostedPlayer:connected:")] void SetHostedPlayerConnected (string playerID, bool connected); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("setHostedPlayer:didConnect:")] void SetHostedPlayerConnected (GKPlayer playerID, bool connected); - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("matchmakingMode", ArgumentSemantic.Assign)] GKMatchmakingMode MatchmakingMode { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("canStartWithMinimumPlayers")] bool CanStartWithMinimumPlayers { get; set; } } @@ -1428,45 +1467,45 @@ namespace GameKit { [Abstract] #endif [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'DidFindHostedPlayers' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'DidFindHostedPlayers' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'DidFindHostedPlayers' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'DidFindHostedPlayers' instead.")] [Export ("matchmakerViewController:didFindPlayers:"), EventArgs ("GKPlayers")] void DidFindPlayers (GKMatchmakerViewController viewController, string [] playerIDs); #if !NET [Abstract] #endif - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("matchmakerViewController:didFindHostedPlayers:"), EventArgs ("GKMatchmakingPlayers")] void DidFindHostedPlayers (GKMatchmakerViewController viewController, GKPlayer [] playerIDs); [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'HostedPlayerDidAccept' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'HostedPlayerDidAccept' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'HostedPlayerDidAccept' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'HostedPlayerDidAccept' instead.")] [Export ("matchmakerViewController:didReceiveAcceptFromHostedPlayer:"), EventArgs ("GKPlayer")] void ReceivedAcceptFromHostedPlayer (GKMatchmakerViewController viewController, string playerID); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("matchmakerViewController:hostedPlayerDidAccept:"), EventArgs ("GKMatchmakingPlayer")] void HostedPlayerDidAccept (GKMatchmakerViewController viewController, GKPlayer playerID); } [BaseType (typeof (NSObject))] - [Watch (3,0)] + [Watch (3, 0)] [DisableDefaultCtor] interface GKAchievement : NSSecureCoding { [NoTV] - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'IsHidden' on the 'GKAchievementDescription' class instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'IsHidden' on the 'GKAchievementDescription' class instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'IsHidden' on the 'GKAchievementDescription' class instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'IsHidden' on the 'GKAchievementDescription' class instead.")] [Export ("hidden", ArgumentSemantic.Assign)] bool Hidden { [Bind ("isHidden")] get; } [NullAllowed] // by default this property is null [Export ("identifier", ArgumentSemantic.Copy)] - string Identifier { get; set; } + string Identifier { get; set; } [Export ("percentComplete", ArgumentSemantic.Assign)] - double PercentComplete { get; set; } + double PercentComplete { get; set; } [Export ("completed")] bool Completed { [Bind ("isCompleted")] get; } @@ -1491,7 +1530,7 @@ namespace GameKit { NativeHandle Constructor ([NullAllowed] string identifier); [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'ctor (string identifier, GKPlayer player)' instead.")] [Export ("initWithIdentifier:forPlayer:")] NativeHandle Constructor ([NullAllowed] string identifier, string playerId); @@ -1500,36 +1539,36 @@ namespace GameKit { [Async] [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use ReportAchievements '(GKAchievement[] achievements, Action completionHandler)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use ReportAchievements '(GKAchievement[] achievements, Action completionHandler)' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use ReportAchievements '(GKAchievement[] achievements, Action completionHandler)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use ReportAchievements '(GKAchievement[] achievements, Action completionHandler)' instead.")] void ReportAchievement ([NullAllowed] Action completionHandler); [Export ("showsCompletionBanner", ArgumentSemantic.Assign)] - bool ShowsCompletionBanner { get; set; } + bool ShowsCompletionBanner { get; set; } [Static] [Export ("reportAchievements:withCompletionHandler:")] [Async] - void ReportAchievements (GKAchievement[] achievements, [NullAllowed] Action completionHandler); + void ReportAchievements (GKAchievement [] achievements, [NullAllowed] Action completionHandler); [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 7, 0, message : "Pass 'GKPlayers' to 'ChallengeComposeController(GKPlayer[] players, string message, ...)' and present the view controller instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Pass 'GKPlayers' to 'ChallengeComposeController(GKPlayer[] players, string message, ...)' and present the view controller instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Pass 'GKPlayers' to 'ChallengeComposeController(GKPlayer[] players, string message, ...)' and present the view controller instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Pass 'GKPlayers' to 'ChallengeComposeController(GKPlayer[] players, string message, ...)' and present the view controller instead.")] [Export ("issueChallengeToPlayers:message:")] - void IssueChallengeToPlayers ([NullAllowed] string[] playerIDs, [NullAllowed] string message); + void IssueChallengeToPlayers ([NullAllowed] string [] playerIDs, [NullAllowed] string message); [NoTV] [NoWatch] - [Deprecated (PlatformName.iOS, 8, 0, message : "Pass 'GKPlayers' to 'SelectChallengeablePlayers' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Pass 'GKPlayers' to 'SelectChallengeablePlayers' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Pass 'GKPlayers' to 'SelectChallengeablePlayers' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Pass 'GKPlayers' to 'SelectChallengeablePlayers' instead.")] [Export ("selectChallengeablePlayerIDs:withCompletionHandler:")] [Async] - void SelectChallengeablePlayerIDs ([NullAllowed] string[] playerIDs, [NullAllowed] Action completionHandler); + void SelectChallengeablePlayerIDs ([NullAllowed] string [] playerIDs, [NullAllowed] Action completionHandler); [NoMac] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Player' instead.")] [NullAllowed, Export ("playerID", ArgumentSemantic.Copy)] string PlayerID { @@ -1537,35 +1576,37 @@ namespace GameKit { } [NoWatch] - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Export ("reportAchievements:withEligibleChallenges:withCompletionHandler:"), Static] [Async] - void ReportAchievements (GKAchievement[] achievements, GKChallenge[] challenges, [NullAllowed] Action completionHandler); + void ReportAchievements (GKAchievement [] achievements, GKChallenge [] challenges, [NullAllowed] Action completionHandler); [NullAllowed] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("player", ArgumentSemantic.Retain)] GKPlayer Player { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("initWithIdentifier:player:")] NativeHandle Constructor ([NullAllowed] string identifier, GKPlayer player); - [Mac (10,10)] + [Mac (10, 10)] [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Async (ResultTypeName = "GKChallengeComposeResult")] [Export ("challengeComposeControllerWithMessage:players:completionHandler:")] UIViewController ChallengeComposeController ([NullAllowed] string message, GKPlayer [] players, [NullAllowed] GKChallengeComposeHandler completionHandler); - + [NoWatch] - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Async] [Export ("selectChallengeablePlayers:withCompletionHandler:")] void SelectChallengeablePlayers (GKPlayer [] players, [NullAllowed] Action completionHandler); - [NoMac][NoTV][NoWatch] - [iOS (7,0)] + [NoMac] + [NoTV] + [NoWatch] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 8, 0)] [Export ("challengeComposeControllerWithPlayers:message:completionHandler:")] [return: NullAllowed] @@ -1573,7 +1614,7 @@ namespace GameKit { } [BaseType (typeof (NSObject))] - [Watch (3,0)] + [Watch (3, 0)] interface GKAchievementDescription : NSSecureCoding { [Export ("identifier", ArgumentSemantic.Copy)] [NullAllowed] @@ -1602,7 +1643,7 @@ namespace GameKit { [Async] void LoadAchievementDescriptions ([NullAllowed] GKAchievementDescriptionHandler handler); - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoWatch] [Export ("loadImageWithCompletionHandler:")] [Async] @@ -1614,24 +1655,24 @@ namespace GameKit { [Export ("replayable", ArgumentSemantic.Assign)] bool Replayable { [Bind ("isReplayable")] get; } - + #if MONOMAC [Export ("image", ArgumentSemantic.Retain)] #else [Export ("image")] #endif - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'LoadImage' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 8, message : "Use 'LoadImage' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'LoadImage' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 8, message: "Use 'LoadImage' instead.")] [NullAllowed] UIImage Image { get; } - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoWatch] [Static] [Export ("incompleteAchievementImage")] UIImage IncompleteAchievementImage { get; } - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoWatch] [Static] [Export ("placeholderCompletedAchievementImage")] @@ -1641,8 +1682,8 @@ namespace GameKit { [NoWatch] [NoTV] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKGameCenterViewController' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKGameCenterViewController' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -1652,16 +1693,17 @@ namespace GameKit { void DidFinish (GKAchievementViewController viewController); } - [NoTV][NoWatch] + [NoTV] + [NoWatch] [NoMacCatalyst] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKGameCenterViewController' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKGameCenterViewController' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKGameCenterViewController' instead.")] #if MONOMAC [BaseType (typeof (GKGameCenterViewController), Events=new Type [] { typeof (GKAchievementViewControllerDelegate)}, Delegates=new string [] {"WeakDelegate"})] interface GKAchievementViewController #else - [BaseType (typeof (GKGameCenterViewController), Events=new Type [] { typeof (GKAchievementViewControllerDelegate)}, Delegates=new string [] {"WeakDelegate"})] - interface GKAchievementViewController : UIAppearance + [BaseType (typeof (GKGameCenterViewController), Events = new Type [] { typeof (GKAchievementViewControllerDelegate) }, Delegates = new string [] { "WeakDelegate" })] + interface GKAchievementViewController : UIAppearance #endif { [Export ("achievementDelegate", ArgumentSemantic.Weak), NullAllowed] @@ -1675,7 +1717,10 @@ namespace GameKit { GKAchievementViewControllerDelegate Delegate { get; set; } } - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [BaseType (typeof (NSResponder))] interface GKDialogController { [Export ("parentWindow", ArgumentSemantic.Weak)] @@ -1696,7 +1741,8 @@ namespace GameKit { [Deprecated (PlatformName.MacOSX, 10, 12)] [Deprecated (PlatformName.iOS, 10, 0)] [NoMacCatalyst] - [NoTV][NoWatch] + [NoTV] + [NoWatch] #if MONOMAC [BaseType (typeof (NSViewController), Events=new Type [] { typeof (GKFriendRequestComposeViewControllerDelegate)}, Delegates=new string[] {"WeakComposeViewDelegate"})] interface GKFriendRequestComposeViewController : GKViewController { @@ -1704,29 +1750,30 @@ namespace GameKit { [NoiOS] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); #else - [BaseType (typeof (UINavigationController), Events=new Type [] { typeof (GKFriendRequestComposeViewControllerDelegate)}, Delegates=new string[] {"WeakComposeViewDelegate"})] + [BaseType (typeof (UINavigationController), Events = new Type [] { typeof (GKFriendRequestComposeViewControllerDelegate) }, Delegates = new string [] { "WeakComposeViewDelegate" })] interface GKFriendRequestComposeViewController : UIAppearance { #endif - [Deprecated (PlatformName.iOS, 10,0)] - [Deprecated (PlatformName.MacOSX, 10,12)] + [Deprecated (PlatformName.iOS, 10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 12)] [Export ("composeViewDelegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakComposeViewDelegate { get; set; } - [Deprecated (PlatformName.iOS, 10,0)] - [Deprecated (PlatformName.MacOSX, 10,12)] + [Deprecated (PlatformName.iOS, 10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 12)] [Wrap ("WeakComposeViewDelegate")] [Protocolize] GKFriendRequestComposeViewControllerDelegate ComposeViewDelegate { get; set; } - [Export ("maxNumberOfRecipients")][Static] + [Export ("maxNumberOfRecipients")] + [Static] nint MaxNumberOfRecipients { get; } - - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'AddRecipientPlayers' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'AddRecipientPlayers' instead.")] + + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'AddRecipientPlayers' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'AddRecipientPlayers' instead.")] [Export ("addRecipientsWithEmailAddresses:")] void AddRecipientsFromEmails (string [] emailAddresses); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("addRecipientPlayers:")] void AddRecipientPlayers (GKPlayer [] players); @@ -1740,8 +1787,8 @@ namespace GameKit { [NoWatch] [NoTV] [BaseType (typeof (NSObject))] - [Deprecated (PlatformName.iOS, 10,0)] - [Deprecated (PlatformName.MacOSX, 10,12)] + [Deprecated (PlatformName.iOS, 10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 12)] [NoMacCatalyst] [Model] [Protocol] @@ -1752,7 +1799,7 @@ namespace GameKit { } [NoWatch] - [BaseType(typeof(NSObject))] + [BaseType (typeof (NSObject))] partial interface GKNotificationBanner { [Static, Export ("showBannerWithTitle:message:completionHandler:")] [Async] @@ -1763,30 +1810,31 @@ namespace GameKit { void Show ([NullAllowed] string title, [NullAllowed] string message, double durationSeconds, [NullAllowed] Action completionHandler); } - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface GKTurnBasedParticipant { - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("player", ArgumentSemantic.Retain)] [NullAllowed] GKPlayer Player { get; } [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'Player' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'Player' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'Player' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'Player' instead.")] [Export ("playerID", ArgumentSemantic.Copy)] [NullAllowed] - string PlayerID { get; } + string PlayerID { get; } [Export ("lastTurnDate", ArgumentSemantic.Copy)] [NullAllowed] - NSDate LastTurnDate { get; } + NSDate LastTurnDate { get; } [Export ("status")] - GKTurnBasedParticipantStatus Status { get; } + GKTurnBasedParticipantStatus Status { get; } [Export ("matchOutcome", ArgumentSemantic.Assign)] - GKTurnBasedMatchOutcome MatchOutcome { get; set; } + GKTurnBasedMatchOutcome MatchOutcome { get; set; } [Export ("timeoutDate", ArgumentSemantic.Copy)] [NullAllowed] @@ -1797,9 +1845,9 @@ namespace GameKit { [BaseType (typeof (NSObject))] [Model] [Protocol] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKTurnBasedEventListener'.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKTurnBasedEventListener'.")] - [Watch (3,0)] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKTurnBasedEventListener'.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'GKLocalPlayer.RegisterListener' with an object that implements 'IGKTurnBasedEventListener'.")] + [Watch (3, 0)] interface GKTurnBasedEventHandlerDelegate { [Abstract] [Export ("handleInviteFromGameCenter:")] @@ -1807,8 +1855,8 @@ namespace GameKit { [Deprecated (PlatformName.MacOSX, 10, 10)] void HandleInviteFromGameCenter (NSString [] playersToInvite); - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'HandleTurnEvent' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'HandleTurnEvent' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'HandleTurnEvent' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'HandleTurnEvent' instead.")] [Export ("handleTurnEventForMatch:")] void HandleTurnEventForMatch (GKTurnBasedMatch match); @@ -1827,10 +1875,10 @@ namespace GameKit { } [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use GKLocalPlayer.RegisterListener with an object that implements IGKTurnBasedEventListener.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use GKLocalPlayer.RegisterListener with an object that implements IGKTurnBasedEventListener.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use GKLocalPlayer.RegisterListener with an object that implements IGKTurnBasedEventListener.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use GKLocalPlayer.RegisterListener with an object that implements IGKTurnBasedEventListener.")] [BaseType (typeof (NSObject))] - [Watch (3,0)] + [Watch (3, 0)] interface GKTurnBasedEventHandler { [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] @@ -1838,7 +1886,7 @@ namespace GameKit { [Wrap ("WeakDelegate")] [Protocolize] - GKTurnBasedEventHandlerDelegate Delegate { get; set; } + GKTurnBasedEventHandlerDelegate Delegate { get; set; } [Export ("sharedTurnBasedEventHandler"), Static] GKTurnBasedEventHandler SharedTurnBasedEventHandler { get; } @@ -1850,35 +1898,35 @@ namespace GameKit { delegate void GKTurnBasedMatchData (NSData matchData, NSError error); - [Watch (3,0)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] interface GKTurnBasedMatch { [Export ("matchID")] [NullAllowed] - string MatchID { get; } + string MatchID { get; } [Export ("creationDate")] [NullAllowed] - NSDate CreationDate { get; } + NSDate CreationDate { get; } [Export ("participants", ArgumentSemantic.Retain)] [NullAllowed] - GKTurnBasedParticipant [] Participants { get; } + GKTurnBasedParticipant [] Participants { get; } [Export ("status")] - GKTurnBasedMatchStatus Status { get; } + GKTurnBasedMatchStatus Status { get; } [Export ("currentParticipant", ArgumentSemantic.Retain)] [NullAllowed] - GKTurnBasedParticipant CurrentParticipant { get; } + GKTurnBasedParticipant CurrentParticipant { get; } [Export ("matchData", ArgumentSemantic.Retain)] [NullAllowed] - NSData MatchData { get; } + NSData MatchData { get; } [NullAllowed] // by default this property is null [Export ("message", ArgumentSemantic.Copy)] - string Message { get; set; } + string Message { get; set; } [Static] [Export ("findMatchForRequest:withCompletionHandler:")] @@ -1899,15 +1947,15 @@ namespace GameKit { void LoadMatchData ([NullAllowed] GKTurnBasedMatchData onCompletion); [NoTV] - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'EndTurn' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'EndTurn' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'EndTurn' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'EndTurn' instead.")] [Export ("endTurnWithNextParticipant:matchData:completionHandler:")] [Async] void EndTurnWithNextParticipant (GKTurnBasedParticipant nextParticipant, NSData matchData, [NullAllowed] Action noCompletion); [NoTV] - [Deprecated (PlatformName.iOS, 6, 0, message : "Use 'ParticipantQuitInTurn (GKTurnBasedMatchOutcome, GKTurnBasedParticipant[], double, NSData, Action)' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 9, message : "Use 'ParticipantQuitInTurn (GKTurnBasedMatchOutcome, GKTurnBasedParticipant[], double, NSData, Action)' instead.")] + [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'ParticipantQuitInTurn (GKTurnBasedMatchOutcome, GKTurnBasedParticipant[], double, NSData, Action)' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 9, message: "Use 'ParticipantQuitInTurn (GKTurnBasedMatchOutcome, GKTurnBasedParticipant[], double, NSData, Action)' instead.")] [Export ("participantQuitInTurnWithOutcome:nextParticipant:matchData:completionHandler:")] [Async] void ParticipantQuitInTurn (GKTurnBasedMatchOutcome matchOutcome, GKTurnBasedParticipant nextParticipant, NSData matchData, [NullAllowed] Action onCompletion); @@ -1936,87 +1984,100 @@ namespace GameKit { [Export ("matchDataMaximumSize")] nint MatchDataMaximumSize { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("rematchWithCompletionHandler:")] [Async] void Rematch ([NullAllowed] Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("endTurnWithNextParticipants:turnTimeout:matchData:completionHandler:")] [Async] - void EndTurn (GKTurnBasedParticipant[] nextParticipants, double timeoutSeconds, NSData matchData, [NullAllowed] Action completionHandler); + void EndTurn (GKTurnBasedParticipant [] nextParticipants, double timeoutSeconds, NSData matchData, [NullAllowed] Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Export ("participantQuitInTurnWithOutcome:nextParticipants:turnTimeout:matchData:completionHandler:")] [Async] - void ParticipantQuitInTurn (GKTurnBasedMatchOutcome matchOutcome, GKTurnBasedParticipant[] nextParticipants, double timeoutSeconds, NSData matchData, [NullAllowed] Action completionHandler); + void ParticipantQuitInTurn (GKTurnBasedMatchOutcome matchOutcome, GKTurnBasedParticipant [] nextParticipants, double timeoutSeconds, NSData matchData, [NullAllowed] Action completionHandler); [Export ("saveCurrentTurnWithMatchData:completionHandler:")] [Async] void SaveCurrentTurn (NSData matchData, [NullAllowed] Action completionHandler); - [Mac (10,9)] + [Mac (10, 9)] [Field ("GKTurnTimeoutDefault"), Static] double DefaultTimeout { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("GKTurnTimeoutNone"), Static] double NoTimeout { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("exchanges", ArgumentSemantic.Retain)] [NullAllowed] GKTurnBasedExchange [] Exchanges { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("activeExchanges", ArgumentSemantic.Retain)] [NullAllowed] GKTurnBasedExchange [] ActiveExchanges { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("completedExchanges", ArgumentSemantic.Retain)] [NullAllowed] GKTurnBasedExchange [] CompletedExchanges { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("exchangeDataMaximumSize")] nuint ExhangeDataMaximumSize { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("exchangeMaxInitiatedExchangesPerPlayer")] nuint ExchangeMaxInitiatedExchangesPerPlayer { get; } - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("setLocalizableMessageWithKey:arguments:")] void SetMessage (string localizableMessage, [NullAllowed] params NSObject [] arguments); [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'EndMatchInTurn (NSData, GKLeaderboardScore[], NSObject[], Action)' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'EndMatchInTurn (NSData, GKLeaderboardScore[], NSObject[], Action)' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'EndMatchInTurn (NSData, GKLeaderboardScore[], NSObject[], Action)' instead.")] - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("endMatchInTurnWithMatchData:scores:achievements:completionHandler:")] [Async] void EndMatchInTurn (NSData matchData, [NullAllowed] GKScore [] scores, [NullAllowed] GKAchievement [] achievements, [NullAllowed] Action completionHandler); - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("saveMergedMatchData:withResolvedExchanges:completionHandler:")] [Async] void SaveMergedMatchData (NSData matchData, GKTurnBasedExchange [] exchanges, [NullAllowed] Action completionHandler); - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("sendExchangeToParticipants:data:localizableMessageKey:arguments:timeout:completionHandler:")] [Async] void SendExchange (GKTurnBasedParticipant [] participants, NSData data, string localizableMessage, NSObject [] arguments, double timeout, [NullAllowed] Action completionHandler); - [iOS (7,0)][Mac (10,10)] + [iOS (7, 0)] + [Mac (10, 10)] [Export ("sendReminderToParticipants:localizableMessageKey:arguments:completionHandler:")] [Async] void SendReminder (GKTurnBasedParticipant [] participants, string localizableMessage, NSObject [] arguments, [NullAllowed] Action completionHandler); - [iOS (14,0)][Mac (11,0)][Watch (7,0)][TV (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [Watch (7, 0)] + [TV (14, 0)] [Export ("endMatchInTurnWithMatchData:leaderboardScores:achievements:completionHandler:")] [Async] - void EndMatchInTurn (NSData matchData, GKLeaderboardScore[] scores, NSObject[] achievements, Action completionHandler); + void EndMatchInTurn (NSData matchData, GKLeaderboardScore [] scores, NSObject [] achievements, Action completionHandler); } [NoWatch] @@ -2035,9 +2096,9 @@ namespace GameKit { NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); [Export ("showExistingMatches", ArgumentSemantic.Assign)] - bool ShowExistingMatches { get; set; } + bool ShowExistingMatches { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("matchmakingMode", ArgumentSemantic.Assign)] GKMatchmakingMode MatchmakingMode { get; set; } @@ -2069,8 +2130,8 @@ namespace GameKit { [Abstract] #endif [NoTV] - [Deprecated (PlatformName.iOS, 9, 0, message : "Use 'GKTurnBasedEventListener.ReceivedTurnEvent' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'GKTurnBasedEventListener.ReceivedTurnEvent' instead.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'GKTurnBasedEventListener.ReceivedTurnEvent' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'GKTurnBasedEventListener.ReceivedTurnEvent' instead.")] [Export ("turnBasedMatchmakerViewController:didFindMatch:")] void FoundMatch (GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match); @@ -2078,8 +2139,8 @@ namespace GameKit { [Abstract] #endif [NoTV] - [Deprecated (PlatformName.iOS, 9, 0, message : "Use 'GKTurnBasedEventListener.WantsToQuitMatch' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'GKTurnBasedEventListener.WantsToQuitMatch' instead.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'GKTurnBasedEventListener.WantsToQuitMatch' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'GKTurnBasedEventListener.WantsToQuitMatch' instead.")] [Export ("turnBasedMatchmakerViewController:playerQuitForMatch:")] void PlayerQuitForMatch (GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match); } @@ -2089,15 +2150,15 @@ namespace GameKit { [BaseType (typeof (NSObject))] interface GKChallenge : NSSecureCoding { [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'IssuingPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'IssuingPlayer' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'IssuingPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'IssuingPlayer' instead.")] [Export ("issuingPlayerID", ArgumentSemantic.Copy)] [NullAllowed] string IssuingPlayerID { get; } [NoTV] - [Deprecated (PlatformName.iOS, 8, 0, message : "Use 'ReceivingPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'ReceivingPlayer' instead.")] + [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'ReceivingPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'ReceivingPlayer' instead.")] [Export ("receivingPlayerID", ArgumentSemantic.Copy)] [NullAllowed] string ReceivingPlayerID { get; } @@ -2121,14 +2182,14 @@ namespace GameKit { [Export ("loadReceivedChallengesWithCompletionHandler:"), Static] [Async] - void LoadReceivedChallenges ([NullAllowed] Action completionHandler); + void LoadReceivedChallenges ([NullAllowed] Action completionHandler); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("issuingPlayer", ArgumentSemantic.Copy)] [NullAllowed] GKPlayer IssuingPlayer { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("receivingPlayer", ArgumentSemantic.Copy)] [NullAllowed] GKPlayer ReceivingPlayer { get; } @@ -2158,7 +2219,7 @@ namespace GameKit { [DisableDefaultCtor] // the native 'init' method returned nil. #endif [NoWatch] - [Mac (10,9)] + [Mac (10, 9)] [BaseType ( #if MONOMAC typeof (NSViewController), @@ -2177,19 +2238,19 @@ namespace GameKit { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("initWithLeaderboardID:playerScope:timeScope:")] NativeHandle Constructor (string leaderboardId, GKLeaderboardPlayerScope playerScope, GKLeaderboardTimeScope timeScope); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("initWithLeaderboard:playerScope:")] NativeHandle Constructor (GKLeaderboard leaderboard, GKLeaderboardPlayerScope playerScope); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("initWithAchievementID:")] NativeHandle Constructor (string achievementId); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [Export ("initWithState:")] NativeHandle Constructor (GKGameCenterViewControllerState state); @@ -2198,32 +2259,34 @@ namespace GameKit { [Wrap ("WeakDelegate")] [Protocolize] - GKGameCenterControllerDelegate Delegate { get; set; } + GKGameCenterControllerDelegate Delegate { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor (GKGameCenterViewControllerState)' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use '.ctor (GKGameCenterViewControllerState)' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use '.ctor (GKGameCenterViewControllerState)' instead.")] - [TV (9,0)] + [TV (9, 0)] [Export ("viewState", ArgumentSemantic.Assign)] GKGameCenterViewControllerState ViewState { get; set; } [NoTV] [Export ("leaderboardTimeScope", ArgumentSemantic.Assign)] - [Deprecated (PlatformName.iOS, 7, 0, message : "This class no longer support 'LeaderboardTimeScope', will always default to 'AllTime'.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "This class no longer support 'LeaderboardTimeScope', will always default to 'AllTime'.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "This class no longer support 'LeaderboardTimeScope', will always default to 'AllTime'.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "This class no longer support 'LeaderboardTimeScope', will always default to 'AllTime'.")] GKLeaderboardTimeScope LeaderboardTimeScope { get; set; } [NoTV] [NullAllowed] // by default this property is null [Export ("leaderboardCategory", ArgumentSemantic.Strong)] - [Deprecated (PlatformName.iOS, 7, 0, message : "Use 'LeaderboardIdentifier' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Use 'LeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'LeaderboardIdentifier' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'LeaderboardIdentifier' instead.")] string LeaderboardCategory { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor (GKLeaderboard, GKLeaderboardPlayerScope)' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use '.ctor (GKLeaderboard, GKLeaderboardPlayerScope)' instead.")] [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use '.ctor (GKLeaderboard, GKLeaderboardPlayerScope)' instead.")] - [TV (9,0)][iOS (7,0)][Mac (10,10)] // Marked 10.9 in header, apple 17612948 + [TV (9, 0)] + [iOS (7, 0)] + [Mac (10, 10)] // Marked 10.9 in header, apple 17612948 [NullAllowed] // by default this property is null [Export ("leaderboardIdentifier", ArgumentSemantic.Strong)] string LeaderboardIdentifier { get; set; } @@ -2233,8 +2296,7 @@ namespace GameKit { [Model] [BaseType (typeof (NSObject))] [Protocol] - interface GKGameCenterControllerDelegate - { + interface GKGameCenterControllerDelegate { [Abstract] [Export ("gameCenterViewControllerDidFinish:")] void Finished (GKGameCenterViewController controller); @@ -2242,18 +2304,17 @@ namespace GameKit { [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] - [BaseType (typeof (NSObject), Events=new[] { typeof (GKChallengeEventHandlerDelegate) }, Delegates=new[] { "WeakDelegate"})] + [Deprecated (PlatformName.iOS, 7, 0, message: "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] + [BaseType (typeof (NSObject), Events = new [] { typeof (GKChallengeEventHandlerDelegate) }, Delegates = new [] { "WeakDelegate" })] [DisableDefaultCtor] - interface GKChallengeEventHandler - { + interface GKChallengeEventHandler { [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - GKChallengeEventHandlerDelegate Delegate { get; set; } + GKChallengeEventHandlerDelegate Delegate { get; set; } [Export ("challengeEventHandler"), Static] GKChallengeEventHandler Instance { get; } @@ -2261,20 +2322,19 @@ namespace GameKit { [NoWatch] [NoTV] - [Deprecated (PlatformName.iOS, 7, 0, message : "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] - [Deprecated (PlatformName.MacOSX, 10, 10, message : "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Implement the 'IGKChallengeListener' interface and register a listener with 'GKLocalPlayer'.")] [Model] [BaseType (typeof (NSObject))] [Protocol] - interface GKChallengeEventHandlerDelegate - { + interface GKChallengeEventHandlerDelegate { [Export ("localPlayerDidSelectChallenge:")] void LocalPlayerSelectedChallenge (GKChallenge challenge); [Export ("shouldShowBannerForLocallyReceivedChallenge:")] [DelegateName ("GKChallengePredicate"), DefaultValue (true)] bool ShouldShowBannerForLocallyReceivedChallenge (GKChallenge challenge); - + [Export ("localPlayerDidReceiveChallenge:")] void LocalPlayerReceivedChallenge (GKChallenge challenge); @@ -2293,11 +2353,10 @@ namespace GameKit { void RemotePlayerCompletedChallenge (GKChallenge challenge); } - [iOS (7,0), Mac (10,10)] - [Watch (3,0)] + [iOS (7, 0), Mac (10, 10)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] - interface GKTurnBasedExchange - { + interface GKTurnBasedExchange { [Export ("exchangeID")] [NullAllowed] string ExchangeID { get; } @@ -2352,11 +2411,10 @@ namespace GameKit { double TimeoutNone { get; } } - [iOS (7,0), Mac (10,10)] - [Watch (3,0)] + [iOS (7, 0), Mac (10, 10)] + [Watch (3, 0)] [BaseType (typeof (NSObject))] - interface GKTurnBasedExchangeReply - { + interface GKTurnBasedExchangeReply { [Export ("recipient")] [NullAllowed] GKTurnBasedParticipant Recipient { get; } @@ -2369,14 +2427,14 @@ namespace GameKit { [NullAllowed] NSData Data { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("replyDate")] [NullAllowed] NSDate ReplyDate { get; } } - [iOS (7,0), Mac (10,10)] - [Watch (3,0)] + [iOS (7, 0), Mac (10, 10)] + [Watch (3, 0)] [Model, Protocol, BaseType (typeof (NSObject))] interface GKLocalPlayerListener : GKTurnBasedEventListener #if !TVOS && !WATCH @@ -2389,10 +2447,9 @@ namespace GameKit { } [NoWatch] - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Model, Protocol, BaseType (typeof (NSObject))] - interface GKChallengeListener - { + interface GKChallengeListener { [Export ("player:wantsToPlayChallenge:")] void WantsToPlayChallenge (GKPlayer player, GKChallenge challenge); @@ -2407,11 +2464,11 @@ namespace GameKit { } [NoWatch] - [iOS (7,0), Mac (10,10)] + [iOS (7, 0), Mac (10, 10)] [Protocol, Model, BaseType (typeof (NSObject))] - interface GKInviteEventListener - { - [Mac (10,10)][iOS (7,0)] + interface GKInviteEventListener { + [Mac (10, 10)] + [iOS (7, 0)] [Export ("player:didAcceptInvite:")] void DidAcceptInvite (GKPlayer player, GKInvite invite); @@ -2419,18 +2476,17 @@ namespace GameKit { [NoTV] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'DidRequestMatch (GKPlayer player, GKPlayer[] recipientPlayers)' instead.")] [Export ("player:didRequestMatchWithPlayers:")] - void DidRequestMatch (GKPlayer player, string[] playerIDs); + void DidRequestMatch (GKPlayer player, string [] playerIDs); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("player:didRequestMatchWithRecipients:")] void DidRequestMatch (GKPlayer player, GKPlayer [] recipientPlayers); } - [iOS (7,0), Mac (10,10)] - [Watch (3,0)] + [iOS (7, 0), Mac (10, 10)] + [Watch (3, 0)] [Model, Protocol, BaseType (typeof (NSObject))] - interface GKTurnBasedEventListener - { + interface GKTurnBasedEventListener { #if NET [NoMac] #endif @@ -2438,7 +2494,7 @@ namespace GameKit { [NoTV] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'DidRequestMatchWithOtherPlayers' instead.")] [Export ("player:didRequestMatchWithPlayers:")] - void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite); + void DidRequestMatchWithPlayers (GKPlayer player, string [] playerIDsToInvite); [Export ("player:receivedTurnEventForMatch:didBecomeActive:")] void ReceivedTurnEvent (GKPlayer player, GKTurnBasedMatch match, bool becameActive); @@ -2453,10 +2509,10 @@ namespace GameKit { void ReceivedExchangeCancellation (GKPlayer player, GKTurnBasedExchange exchange, GKTurnBasedMatch match); [Export ("player:receivedExchangeReplies:forCompletedExchange:forMatch:")] - void ReceivedExchangeReplies (GKPlayer player, GKTurnBasedExchangeReply[] replies, GKTurnBasedExchange exchange, GKTurnBasedMatch match); + void ReceivedExchangeReplies (GKPlayer player, GKTurnBasedExchangeReply [] replies, GKTurnBasedExchange exchange, GKTurnBasedMatch match); [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Export ("player:didRequestMatchWithOtherPlayers:")] void DidRequestMatchWithOtherPlayers (GKPlayer player, GKPlayer [] playersToInvite); @@ -2467,13 +2523,14 @@ namespace GameKit { } [NoWatch] - [iOS (10,0)][Mac (10,12)][TV (10,0)] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] - [BaseType (typeof(NSObject))] - interface GKGameSession - { + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] + [BaseType (typeof (NSObject))] + interface GKGameSession { [Export ("identifier")] string Identifier { get; } @@ -2484,7 +2541,7 @@ namespace GameKit { GKCloudPlayer Owner { get; } [Export ("players")] - GKCloudPlayer[] Players { get; } + GKCloudPlayer [] Players { get; } [Export ("lastModifiedDate")] NSDate LastModifiedDate { get; } @@ -2496,7 +2553,7 @@ namespace GameKit { nint MaxNumberOfConnectedPlayers { get; } [Export ("badgedPlayers")] - GKCloudPlayer[] BadgedPlayers { get; } + GKCloudPlayer [] BadgedPlayers { get; } [Async] [Static] @@ -2506,7 +2563,7 @@ namespace GameKit { [Async] [Static] [Export ("loadSessionsInContainer:completionHandler:")] - void LoadSessions ([NullAllowed] string containerName, Action completionHandler); + void LoadSessions ([NullAllowed] string containerName, Action completionHandler); [Async] [Static] @@ -2535,7 +2592,7 @@ namespace GameKit { void SetConnectionState (GKConnectionState state, Action completionHandler); [Export ("playersWithConnectionState:")] - GKCloudPlayer[] GetPlayers (GKConnectionState state); + GKCloudPlayer [] GetPlayers (GKConnectionState state); [Async] [Export ("sendData:withTransportType:completionHandler:")] @@ -2543,37 +2600,38 @@ namespace GameKit { [Async] [Export ("sendMessageWithLocalizedFormatKey:arguments:data:toPlayers:badgePlayers:completionHandler:")] - void SendMessage (string key, string[] arguments, [NullAllowed] NSData data, GKCloudPlayer[] players, bool badgePlayers, Action completionHandler); + void SendMessage (string key, string [] arguments, [NullAllowed] NSData data, GKCloudPlayer [] players, bool badgePlayers, Action completionHandler); [Async] [Export ("clearBadgeForPlayers:completionHandler:")] - void ClearBadge (GKCloudPlayer[] players, Action completionHandler); + void ClearBadge (GKCloudPlayer [] players, Action completionHandler); - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GKLocalPlayer.RegisterListener' instead.")] [Static] [Export ("addEventListener:")] void AddEventListener (IGKGameSessionEventListener listener); - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GKLocalPlayer.UnregisterListener' instead.")] [Static] [Export ("removeEventListener:")] void RemoveEventListener (IGKGameSessionEventListener listener); } - interface IGKGameSessionEventListener {} + interface IGKGameSessionEventListener { } [NoWatch] - [iOS (10,0)][Mac (10,12)][TV (10,0)] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'GKLocalPlayerListener' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKLocalPlayerListener' instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'GKLocalPlayerListener' instead.")] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'GKLocalPlayerListener' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKLocalPlayerListener' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'GKLocalPlayerListener' instead.")] [Protocol] - interface GKGameSessionEventListener - { + interface GKGameSessionEventListener { [Export ("session:didAddPlayer:")] void DidAddPlayer (GKGameSession session, GKCloudPlayer player); @@ -2595,11 +2653,11 @@ namespace GameKit { [NoMac] [NoWatch] - [NoiOS][TV (10,0)] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] - [BaseType (typeof(UIViewController))] - interface GKGameSessionSharingViewController - { + [NoiOS] + [TV (10, 0)] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKMatchmakerViewController' (real-time) or 'GKTurnBasedMatchmakerViewController' (turn-based) instead.")] + [BaseType (typeof (UIViewController))] + interface GKGameSessionSharingViewController { // inlined ctor [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); @@ -2614,16 +2672,16 @@ namespace GameKit { NativeHandle Constructor (GKGameSession session); } - interface IGKGameSessionSharingViewControllerDelegate {} + interface IGKGameSessionSharingViewControllerDelegate { } [NoMac] [NoWatch] - [NoiOS][TV (10,0)] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'GKMatchmakerViewControllerDelegate' (real-time) or 'GKTurnBasedMatchmakerViewControllerDelegate' (turn-based) instead.")] + [NoiOS] + [TV (10, 0)] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'GKMatchmakerViewControllerDelegate' (real-time) or 'GKTurnBasedMatchmakerViewControllerDelegate' (turn-based) instead.")] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface GKGameSessionSharingViewControllerDelegate - { + [BaseType (typeof (NSObject))] + interface GKGameSessionSharingViewControllerDelegate { [Abstract] [Export ("sharingViewController:didFinishWithError:")] void DidFinish (GKGameSessionSharingViewController viewController, [NullAllowed] NSError error); @@ -2635,58 +2693,56 @@ namespace GameKit { [BaseType (typeof (NSObject))] [Protocol, Model] interface GKChallengesViewControllerDelegate { - + [Abstract] [Export ("challengesViewControllerDidFinish:")] void DidFinish (GKChallengesViewController viewController); } [NoiOS, NoTV, NoWatch] - [Deprecated (PlatformName.MacOSX, 10,10)] + [Deprecated (PlatformName.MacOSX, 10, 10)] [BaseType (typeof (NSViewController))] interface GKChallengesViewController : GKViewController { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - + [NullAllowed, Export ("challengeDelegate", ArgumentSemantic.Assign)] IGKChallengesViewControllerDelegate ChallengeDelegate { get; set; } } [NoiOS, NoTV, NoWatch] [Protocol] - interface GKViewController - { + interface GKViewController { } [NoTV] [NoWatch] // only exposed thru GKSession (not in 3.0) - [Deprecated (PlatformName.iOS, 7,0, message: "Use 'MultipeerConnectivity.MCSessionDelegate' instead.")] - [Deprecated (PlatformName.MacOSX, 10,10, message: "Use 'MultipeerConnectivity.MCSessionDelegate' instead.")] + [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MultipeerConnectivity.MCSessionDelegate' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 10, message: "Use 'MultipeerConnectivity.MCSessionDelegate' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] interface GKSessionDelegate { [Export ("session:peer:didChangeState:")] void PeerChangedState (GKSession session, string peerID, GKPeerConnectionState state); - + [Export ("session:didReceiveConnectionRequestFromPeer:")] void PeerConnectionRequest (GKSession session, string peerID); - + [Export ("session:connectionWithPeerFailed:withError:")] void PeerConnectionFailed (GKSession session, string peerID, NSError error); - + [Export ("session:didFailWithError:")] void FailedWithError (GKSession session, NSError error); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GKAccessPoint - { + interface GKAccessPoint { [Static] [Export ("shared")] GKAccessPoint Shared { get; } @@ -2723,12 +2779,11 @@ namespace GameKit { void TriggerAccessPoint (GKGameCenterViewControllerState state, Action handler); } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] - interface GKLeaderboardEntry - { + interface GKLeaderboardEntry { [Export ("player", ArgumentSemantic.Strong)] GKPlayer Player { get; } @@ -2753,14 +2808,13 @@ namespace GameKit { [NoWatch] // header lists watch as supported, but UIViewController is not available on Watch! [Async (ResultTypeName = "GKChallengeComposeResult")] [Export ("challengeComposeControllerWithMessage:players:completionHandler:")] - UIViewController ChallengeComposeController ([NullAllowed] string message, [NullAllowed] GKPlayer[] players, [NullAllowed] GKChallengeComposeHandler completionHandler); + UIViewController ChallengeComposeController ([NullAllowed] string message, [NullAllowed] GKPlayer [] players, [NullAllowed] GKChallengeComposeHandler completionHandler); } - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface GKLeaderboardScore - { + interface GKLeaderboardScore { [Export ("player", ArgumentSemantic.Strong)] GKPlayer Player { get; set; } diff --git a/src/gameplaykit.cs b/src/gameplaykit.cs index 0143216e69..fde158117e 100644 --- a/src/gameplaykit.cs +++ b/src/gameplaykit.cs @@ -44,7 +44,7 @@ namespace GameplayKit { [Native] [Flags] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] public enum GKMeshGraphTriangulationMode : ulong { Vertices = 1 << 0, Centers = 1 << 1, @@ -52,7 +52,7 @@ namespace GameplayKit { } [Native] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] public enum GKRTreeSplitStrategy : long { Halve = 0, Linear = 1, @@ -62,11 +62,12 @@ namespace GameplayKit { interface IGKAgentDelegate { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] - [Model][BaseType (typeof (NSObject))] + [Model] + [BaseType (typeof (NSObject))] interface GKAgentDelegate { - + [Export ("agentWillUpdate:")] void AgentWillUpdate (GKAgent agent); @@ -74,11 +75,12 @@ namespace GameplayKit { void AgentDidUpdate (GKAgent agent); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKComponent))] interface GKAgent : NSSecureCoding { - - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] IGKAgentDelegate Delegate { get; set; } [NullAllowed] @@ -92,7 +94,7 @@ namespace GameplayKit { float Radius { get; set; } [Export ("speed")] - float Speed { get; [iOS (10,0), TV(10,0), Mac (10,12)] set; } + float Speed { get; [iOS (10, 0), TV (10, 0), Mac (10, 12)] set; } [Export ("maxAcceleration")] float MaxAcceleration { get; set; } @@ -101,22 +103,22 @@ namespace GameplayKit { float MaxSpeed { get; set; } } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKAgent))] interface GKAgent2D : NSSecureCoding { - + [Export ("position", ArgumentSemantic.Assign)] - Vector2 Position { + Vector2 Position { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - get; + get; [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - set; + set; } [Export ("velocity")] - Vector2 Velocity { + Vector2 Velocity { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - get; + get; } [Export ("rotation")] @@ -126,7 +128,7 @@ namespace GameplayKit { void Update (double deltaTimeInSeconds); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (GKAgent))] interface GKAgent3D { @@ -150,7 +152,7 @@ namespace GameplayKit { #if !NET [Obsolete ("Use 'Rotation3x3' instead.")] [Export ("rotation", ArgumentSemantic.Assign)] - Matrix3 Rotation { + Matrix3 Rotation { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -178,10 +180,10 @@ namespace GameplayKit { // FIXME: @interface GKBehavior : NSObject // Fix when we have NSFastEnumerator to IEnumerable support // https://bugzilla.xamarin.com/show_bug.cgi?id=4391 - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface GKBehavior : NSCopying { - + [Export ("goalCount")] nint GoalCount { get; } @@ -227,7 +229,7 @@ namespace GameplayKit { NSNumber ObjectForKeyedSubscript (GKGoal goal); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [Abstract] interface GKComponent : NSCopying, NSSecureCoding { @@ -239,22 +241,21 @@ namespace GameplayKit { [Export ("updateWithDeltaTime:")] void Update (double deltaTimeInSeconds); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("didAddToEntity")] void DidAddToEntity (); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("willRemoveFromEntity")] void WillRemoveFromEntity (); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // We have a manual default ctor. /* using 'TComponent' for the generic argument, since we have an additional member 'ComponentType' which clashes with Objective-C's generic argument 'ComponentType' */ interface GKComponentSystem - where TComponent : GKComponent - { + where TComponent : GKComponent { // note: it's not impossible to get into a situation where no managed type is mapped to a `Class` // so we export this `Class` type API (e.g. 3rd party native code) @@ -287,16 +288,16 @@ namespace GameplayKit { void Update (double deltaTimeInSeconds); [EditorBrowsable (EditorBrowsableState.Advanced)] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("classForGenericArgumentAtIndex:")] Class GetClassForGenericArgument (nuint index); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Wrap ("Class.Lookup (GetClassForGenericArgument (index))!")] Type GetTypeForGenericArgument (nuint index); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (GKBehavior))] interface GKCompositeBehavior { @@ -336,7 +337,7 @@ namespace GameplayKit { NSNumber ObjectForKeyedSubscript (GKBehavior behavior); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKDecisionNode { @@ -351,7 +352,7 @@ namespace GameplayKit { GKDecisionNode CreateBranch (nint weight, NSObject attribute); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKDecisionTree : NSSecureCoding { @@ -372,18 +373,18 @@ namespace GameplayKit { [return: NullAllowed] NSObject FindAction (NSDictionary answers); - [iOS (11,0), TV (11,0)] - [Mac (10,13)] + [iOS (11, 0), TV (11, 0)] + [Mac (10, 13)] [Export ("initWithURL:error:")] NativeHandle Constructor (NSUrl url, [NullAllowed] NSError error); - [iOS (11,0), TV (11,0)] - [Mac (10,13)] + [iOS (11, 0), TV (11, 0)] + [Mac (10, 13)] [Export ("exportToURL:error:")] bool Export (NSUrl url, [NullAllowed] NSError error); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated interface GKEntity : NSCopying, NSSecureCoding { @@ -417,7 +418,7 @@ namespace GameplayKit { interface IGKGameModelUpdate { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] interface GKGameModelUpdate { @@ -428,7 +429,7 @@ namespace GameplayKit { interface IGKGameModelPlayer { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] interface GKGameModelPlayer { @@ -446,7 +447,7 @@ namespace GameplayKit { interface IGKGameModel { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] interface GKGameModel : NSCopying { @@ -486,16 +487,17 @@ namespace GameplayKit { [Export ("isLossForPlayer:")] bool IsLoss (IGKGameModelPlayer player); - [Mac (10,11,2)] - [iOS (9,1)][TV (9,0)] + [Mac (10, 11, 2)] + [iOS (9, 1)] + [TV (9, 0)] [Export ("unapplyGameModelUpdate:")] void UnapplyGameModelUpdate (IGKGameModelUpdate gameModelUpdate); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface GKGoal : NSCopying { - + [Static] [Export ("goalToSeekAgent:")] GKGoal GetGoalToSeekAgent (GKAgent agent); @@ -506,23 +508,23 @@ namespace GameplayKit { [Static] [Export ("goalToAvoidObstacles:maxPredictionTime:")] - GKGoal GetGoalToAvoidObstacles (GKObstacle[] obstacles, double maxPredictionTime); + GKGoal GetGoalToAvoidObstacles (GKObstacle [] obstacles, double maxPredictionTime); [Static] [Export ("goalToAvoidAgents:maxPredictionTime:")] - GKGoal GetGoalToAvoidAgents (GKAgent[] agents, double maxPredictionTime); + GKGoal GetGoalToAvoidAgents (GKAgent [] agents, double maxPredictionTime); [Static] [Export ("goalToSeparateFromAgents:maxDistance:maxAngle:")] - GKGoal GetGoalToSeparate (GKAgent[] agents, float maxDistance, float maxAngle); + GKGoal GetGoalToSeparate (GKAgent [] agents, float maxDistance, float maxAngle); [Static] [Export ("goalToAlignWithAgents:maxDistance:maxAngle:")] - GKGoal GetGoalToAlign (GKAgent[] agents, float maxDistance, float maxAngle); + GKGoal GetGoalToAlign (GKAgent [] agents, float maxDistance, float maxAngle); [Static] [Export ("goalToCohereWithAgents:maxDistance:maxAngle:")] - GKGoal GetGoalToCohere (GKAgent[] agents, float maxDistance, float maxAngle); + GKGoal GetGoalToCohere (GKAgent [] agents, float maxDistance, float maxAngle); [Static] [Export ("goalToReachTargetSpeed:")] @@ -545,10 +547,10 @@ namespace GameplayKit { GKGoal GetGoalToStayOnPath (GKPath path, double maxPredictionTime); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface GKGraph : NSCopying, NSSecureCoding { - + [NullAllowed] [Export ("nodes")] GKGraphNode [] Nodes { get; } @@ -564,21 +566,21 @@ namespace GameplayKit { void ConnectNodeToLowestCostNode (GKGraphNode node, bool bidirectional); [Export ("removeNodes:")] - void RemoveNodes (GKGraphNode[] nodes); + void RemoveNodes (GKGraphNode [] nodes); [Export ("addNodes:")] - void AddNodes (GKGraphNode[] nodes); + void AddNodes (GKGraphNode [] nodes); [Export ("findPathFromNode:toNode:")] - GKGraphNode[] FindPath (GKGraphNode startNode, GKGraphNode endNode); + GKGraphNode [] FindPath (GKGraphNode startNode, GKGraphNode endNode); } interface GKObstacleGraph : GKObstacleGraph { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKGraph))] interface GKObstacleGraph { - + [Export ("obstacles")] GKPolygonObstacle [] Obstacles { get; } @@ -587,19 +589,19 @@ namespace GameplayKit { [Static] [Export ("graphWithObstacles:bufferRadius:")] - GKObstacleGraph FromObstacles (GKPolygonObstacle[] obstacles, float bufferRadius); + GKObstacleGraph FromObstacles (GKPolygonObstacle [] obstacles, float bufferRadius); [Export ("initWithObstacles:bufferRadius:")] NativeHandle Constructor (GKPolygonObstacle [] obstacles, float bufferRadius); [Internal] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Static] [Export ("graphWithObstacles:bufferRadius:nodeClass:")] IntPtr GraphWithObstacles (GKPolygonObstacle [] obstacles, float bufferRadius, Class nodeClass); [Internal] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("initWithObstacles:bufferRadius:nodeClass:")] NativeHandle Constructor (GKPolygonObstacle [] obstacles, float bufferRadius, Class nodeClass); @@ -607,16 +609,16 @@ namespace GameplayKit { void ConnectNodeUsingObstacles (GKGraphNode2D node); [Export ("connectNodeUsingObstacles:ignoringObstacles:")] - void ConnectNodeUsingObstacles (GKGraphNode2D node, GKPolygonObstacle[] obstaclesToIgnore); + void ConnectNodeUsingObstacles (GKGraphNode2D node, GKPolygonObstacle [] obstaclesToIgnore); [Export ("connectNodeUsingObstacles:ignoringBufferRadiusOfObstacles:")] - void ConnectNodeUsingObstaclesIgnoringBufferRadius (GKGraphNode2D node, GKPolygonObstacle[] obstaclesBufferRadiusToIgnore); + void ConnectNodeUsingObstaclesIgnoringBufferRadius (GKGraphNode2D node, GKPolygonObstacle [] obstaclesBufferRadiusToIgnore); [Export ("addObstacles:")] - void AddObstacles (GKPolygonObstacle[] obstacles); + void AddObstacles (GKPolygonObstacle [] obstacles); [Export ("removeObstacles:")] - void RemoveObstacles (GKPolygonObstacle[] obstacles); + void RemoveObstacles (GKPolygonObstacle [] obstacles); [Export ("removeAllObstacles")] void RemoveAllObstacles (); @@ -635,11 +637,11 @@ namespace GameplayKit { bool IsConnectionLocked (GKGraphNode2D startNode, GKGraphNode2D endNode); [EditorBrowsable (EditorBrowsableState.Advanced)] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("classForGenericArgumentAtIndex:")] Class GetClassForGenericArgument (nuint index); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Wrap ("Class.Lookup (GetClassForGenericArgument (index))!")] Type GetTypeForGenericArgument (nuint index); } @@ -649,14 +651,14 @@ namespace GameplayKit { // but we are not doing it since there is not much value to do it right now // due to it is only used in the return type of GetNodeAt which in docs says // it returns a GKGridGraphNode and we avoid a breaking change. Added a generic GetNodeAt. - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKGraph))] interface GKGridGraph { [Export ("gridOrigin")] - Vector2i GridOrigin { + Vector2i GridOrigin { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - get; + get; } [Export ("gridWidth")] @@ -677,23 +679,23 @@ namespace GameplayKit { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (Vector2i position, int width, int height, bool diagonalsAllowed); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Static] [Export ("graphFromGridStartingAt:width:height:diagonalsAllowed:nodeClass:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] GKGridGraph FromGridStartingAt (Vector2i position, int width, int height, bool diagonalsAllowed, Class aClass); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Static] [Wrap ("FromGridStartingAt (position, width, height, diagonalsAllowed, new Class (type))")] GKGridGraph FromGridStartingAt (Vector2i position, int width, int height, bool diagonalsAllowed, Type type); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("initFromGridStartingAt:width:height:diagonalsAllowed:nodeClass:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (Vector2i position, int width, int height, bool diagonalsAllowed, Class aClass); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Wrap ("this (position, width, height, diagonalsAllowed, new Class (nodeType))")] NativeHandle Constructor (Vector2i position, int width, int height, bool diagonalsAllowed, Type nodeType); @@ -707,16 +709,16 @@ namespace GameplayKit { void ConnectNodeToAdjacentNodes (GKGridGraphNode node); [EditorBrowsable (EditorBrowsableState.Advanced)] - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("classForGenericArgumentAtIndex:")] Class GetClassForGenericArgument (nuint index); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Wrap ("Class.Lookup (GetClassForGenericArgument (index))!")] Type GetTypeForGenericArgument (nuint index); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (GKGraph))] interface GKMeshGraph where NodeType : GKGraphNode2D { @@ -781,10 +783,10 @@ namespace GameplayKit { Type GetTypeForGenericArgument (nuint index); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface GKGraphNode : NSSecureCoding { - + [Export ("connectedNodes")] GKGraphNode [] ConnectedNodes { get; } @@ -792,7 +794,7 @@ namespace GameplayKit { void AddConnections (GKGraphNode [] nodes, bool bidirectional); [Export ("removeConnectionsToNodes:bidirectional:")] - void RemoveConnections (GKGraphNode[] nodes, bool bidirectional); + void RemoveConnections (GKGraphNode [] nodes, bool bidirectional); [Export ("estimatedCostToNode:")] float GetEstimatedCost (GKGraphNode node); @@ -807,17 +809,17 @@ namespace GameplayKit { GKGraphNode [] FindPathFrom (GKGraphNode startNode); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (GKGraphNode))] interface GKGraphNode2D { - + [Export ("position", ArgumentSemantic.Assign)] - Vector2 Position { + Vector2 Position { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - get; + get; [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - set; + set; } [Static] @@ -830,7 +832,7 @@ namespace GameplayKit { NativeHandle Constructor (Vector2 point); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKGraphNode))] interface GKGraphNode3D { @@ -854,17 +856,17 @@ namespace GameplayKit { } [DisableDefaultCtor] - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKGraphNode))] interface GKGridGraphNode { [Export ("gridPosition", ArgumentSemantic.Assign)] - Vector2i GridPosition { + Vector2i GridPosition { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; #if !NET [NotImplemented] - set; + set; #endif } @@ -878,7 +880,7 @@ namespace GameplayKit { NativeHandle Constructor (Vector2i gridPosition); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject), Name = "GKMinmaxStrategist")] interface GKMinMaxStrategist : GKStrategist { [Export ("maxLookAheadDepth", ArgumentSemantic.Assign)] @@ -893,26 +895,26 @@ namespace GameplayKit { IGKGameModelUpdate GetRandomMove (IGKGameModelPlayer player, nint numMovesToConsider); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [Abstract] interface GKObstacle { } - - [iOS (9,0), Mac (10,11)] + + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (GKObstacle))] interface GKCircleObstacle { - + [Export ("radius")] float Radius { get; set; } [Export ("position", ArgumentSemantic.Assign)] - Vector2 Position { + Vector2 Position { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - get; + get; [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - set; + set; } [Static] @@ -924,7 +926,7 @@ namespace GameplayKit { NativeHandle Constructor (float radius); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (GKObstacle))] interface GKPolygonObstacle : NSSecureCoding { @@ -946,7 +948,7 @@ namespace GameplayKit { Vector2 GetVertex (nuint index); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKObstacle))] interface GKSphereObstacle { @@ -971,11 +973,11 @@ namespace GameplayKit { NativeHandle Constructor (float radius); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKPath { - + [Export ("radius")] float Radius { get; set; } @@ -993,12 +995,12 @@ namespace GameplayKit { [Export ("initWithPoints:count:radius:cyclical:")] IntPtr InitWithPoints (IntPtr points, nuint count, float radius, bool cyclical); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Static, Internal] [Export ("pathWithFloat3Points:count:radius:cyclical:")] GKPath FromFloat3Points (IntPtr points, nuint count, float radius, bool cyclical); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Internal] [Export ("initWithFloat3Points:count:radius:cyclical:")] IntPtr InitWithFloat3Points (IntPtr points, nuint count, float radius, bool cyclical); @@ -1024,22 +1026,22 @@ namespace GameplayKit { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Vector2 GetPoint (nuint index); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("float2AtIndex:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Vector2 GetVector2Point (nuint index); - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Export ("float3AtIndex:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Vector3 GetVector3Point (nuint index); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKRandomDistribution : GKRandom { - + [Export ("lowestValue", ArgumentSemantic.Assign)] nint LowestValue { get; } @@ -1053,18 +1055,18 @@ namespace GameplayKit { [DesignatedInitializer] NativeHandle Constructor (IGKRandom source, nint lowestInclusive, nint highestInclusive); -// The following guys are already present in the GKRandom Protocol -// [Export ("nextInt")] -// nint GetNextInt (); -// -// [Export ("nextIntWithUpperBound:")] -// nuint GetNextInt (nuint upperBound); -// -// [Export ("nextUniform")] -// float GetNextUniform (); -// -// [Export ("nextBool")] -// bool GetNextBool (); + // The following guys are already present in the GKRandom Protocol + // [Export ("nextInt")] + // nint GetNextInt (); + // + // [Export ("nextIntWithUpperBound:")] + // nuint GetNextInt (nuint upperBound); + // + // [Export ("nextUniform")] + // float GetNextUniform (); + // + // [Export ("nextBool")] + // bool GetNextBool (); [Static] [Export ("distributionWithLowestValue:highestValue:")] @@ -1083,11 +1085,11 @@ namespace GameplayKit { GKRandomDistribution GetD20 (); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (GKRandomDistribution))] interface GKGaussianDistribution { - + [Export ("mean")] float Mean { get; } @@ -1103,7 +1105,7 @@ namespace GameplayKit { NativeHandle Constructor (IGKRandom source, float mean, float deviation); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (GKRandomDistribution))] interface GKShuffledDistribution { @@ -1116,10 +1118,10 @@ namespace GameplayKit { interface IGKRandom { } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] interface GKRandom { - + [Abstract] [Export ("nextInt")] nint GetNextInt (); @@ -1137,7 +1139,7 @@ namespace GameplayKit { bool GetNextBool (); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated interface GKRandomSource : GKRandom, NSSecureCoding, NSCopying { @@ -1154,10 +1156,10 @@ namespace GameplayKit { NSObject [] ShuffleObjects (NSObject [] array); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKRandomSource))] interface GKARC4RandomSource { - + [Export ("seed", ArgumentSemantic.Copy)] NSData Seed { get; set; } @@ -1169,10 +1171,10 @@ namespace GameplayKit { void DropValues (nuint count); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKRandomSource))] interface GKLinearCongruentialRandomSource { - + [Export ("seed")] ulong Seed { get; set; } @@ -1181,10 +1183,10 @@ namespace GameplayKit { NativeHandle Constructor (ulong seed); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKRandomSource))] interface GKMersenneTwisterRandomSource { - + [Export ("seed")] ulong Seed { get; set; } @@ -1193,7 +1195,7 @@ namespace GameplayKit { NativeHandle Constructor (ulong seed); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated interface GKRuleSystem { @@ -1215,7 +1217,7 @@ namespace GameplayKit { void AddRule (GKRule rule); [Export ("addRulesFromArray:")] - void AddRules (GKRule[] rules); + void AddRules (GKRule [] rules); [Export ("removeAllRules")] void RemoveAllRules (); @@ -1224,7 +1226,7 @@ namespace GameplayKit { GKRule [] Agenda { get; } [Export ("executed", ArgumentSemantic.Retain)] - GKRule[] Executed { get; } + GKRule [] Executed { get; } [Export ("facts", ArgumentSemantic.Retain)] NSObject [] Facts { get; } @@ -1254,7 +1256,7 @@ namespace GameplayKit { void Reset (); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] interface GKRule { @@ -1280,10 +1282,10 @@ namespace GameplayKit { GKRule FromPredicate (Func predicate, Action action); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (GKRule))] interface GKNSPredicateRule { - + [Export ("predicate", ArgumentSemantic.Retain)] NSPredicate Predicate { get; } @@ -1294,7 +1296,7 @@ namespace GameplayKit { bool EvaluatePredicate (GKRuleSystem system); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [BaseType (typeof (NSObject))] [Abstract] [DisableDefaultCtor] // designated @@ -1328,7 +1330,7 @@ namespace GameplayKit { void WillExit (GKState nextState); } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKStateMachine { @@ -1343,7 +1345,7 @@ namespace GameplayKit { [Export ("initWithStates:")] [DesignatedInitializer] - NativeHandle Constructor (GKState[] states); + NativeHandle Constructor (GKState [] states); [Export ("updateWithDeltaTime:")] void Update (double deltaTimeInSeconds); @@ -1363,7 +1365,8 @@ namespace GameplayKit { } [NoMac] - [iOS (9,1)][TV (9,0)] + [iOS (9, 1)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface GKHybridStrategist : GKStrategist { [Export ("budget")] @@ -1376,7 +1379,8 @@ namespace GameplayKit { nuint MaxLookAheadDepth { get; set; } } - [iOS (9,1)][TV (9,0)] + [iOS (9, 1)] + [TV (9, 0)] [Protocol] interface GKStrategist { [Abstract] @@ -1392,7 +1396,7 @@ namespace GameplayKit { IGKGameModelUpdate GetBestMoveForActivePlayer (); } - [iOS (9,1), TV (9,0), Mac (10,12)] + [iOS (9, 1), TV (9, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] interface GKMonteCarloStrategist : GKStrategist { [Export ("budget")] @@ -1402,7 +1406,7 @@ namespace GameplayKit { nuint ExplorationParameter { get; set; } } - [iOS (10,0), TV (10, 0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] interface GKNoise { @@ -1494,7 +1498,7 @@ namespace GameplayKit { #endif } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] interface GKNoiseMap { @@ -1549,7 +1553,7 @@ namespace GameplayKit { void SetValue (float value, Vector2i position); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [Abstract] [BaseType (typeof (NSObject))] @@ -1557,7 +1561,7 @@ namespace GameplayKit { } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Abstract] [BaseType (typeof (GKNoiseSource))] interface GKCoherentNoiseSource { @@ -1575,7 +1579,7 @@ namespace GameplayKit { int Seed { get; set; } } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKCoherentNoiseSource))] interface GKPerlinNoiseSource { @@ -1592,7 +1596,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency, nint octaveCount, double persistence, double lacunarity, int seed); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKCoherentNoiseSource))] interface GKBillowNoiseSource { @@ -1609,7 +1613,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency, nint octaveCount, double persistence, double lacunarity, int seed); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKCoherentNoiseSource))] interface GKRidgedNoiseSource { @@ -1623,7 +1627,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency, nint octaveCount, double lacunarity, int seed); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKNoiseSource))] interface GKVoronoiNoiseSource { @@ -1649,7 +1653,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency, double displacement, bool distanceEnabled, int seed); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKNoiseSource))] interface GKConstantNoiseSource { @@ -1683,7 +1687,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKNoiseSource))] interface GKSpheresNoiseSource { @@ -1700,7 +1704,7 @@ namespace GameplayKit { NativeHandle Constructor (double frequency); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (GKNoiseSource))] interface GKCheckerboardNoiseSource { @@ -1717,7 +1721,7 @@ namespace GameplayKit { NativeHandle Constructor (double squareSize); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface GKOctreeNode { @@ -1729,9 +1733,9 @@ namespace GameplayKit { } } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] - interface GKOctree where ElementType : NSObject { + interface GKOctree where ElementType : NSObject { [Static] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1765,7 +1769,7 @@ namespace GameplayKit { bool RemoveElement (ElementType element, GKOctreeNode node); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface GKRTree where ElementType : NSObject { @@ -1795,7 +1799,7 @@ namespace GameplayKit { ElementType [] GetElements (Vector2 rectMin, Vector2 rectMax); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (GKComponent))] interface GKSKNodeComponent : GKAgentDelegate { @@ -1812,12 +1816,12 @@ namespace GameplayKit { interface IGKSceneRootNodeType { } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Protocol] interface GKSceneRootNodeType { } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject))] interface GKScene : NSCopying, NSSecureCoding { @@ -1826,7 +1830,9 @@ namespace GameplayKit { [return: NullAllowed] GKScene FromFile (string filename); - [iOS (11,0)][TV (11,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Static] [Export ("sceneWithFileNamed:rootNode:")] [return: NullAllowed] @@ -1854,12 +1860,11 @@ namespace GameplayKit { void RemoveGraph (string name); } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] - [BaseType (typeof(GKComponent))] - interface GKSCNNodeComponent : GKAgentDelegate - { + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] + [BaseType (typeof (GKComponent))] + interface GKSCNNodeComponent : GKAgentDelegate { [Static] [Export ("componentWithNode:")] GKSCNNodeComponent FromNode (SCNNode node); @@ -1871,7 +1876,7 @@ namespace GameplayKit { SCNNode Node { get; } } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [Category] [BaseType (typeof (SKNode))] interface SKNode_GameplayKit { @@ -1897,7 +1902,7 @@ namespace GameplayKit { void SetEntity ([NullAllowed] GKEntity entity); } - [iOS (11,0), TV (11,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Category] [BaseType (typeof (SCNNode))] interface SCNNode_GameplayKit { @@ -1909,7 +1914,7 @@ namespace GameplayKit { void SetEntity ([NullAllowed] GKEntity entity); } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject), Name = "GKQuadtreeNode")] // Renamed to GKQuadtreeNode (lower case t) in Xcode8 [DisableDefaultCtor] // Used as a hint for faster removal via [GKQuadTree removeData:WithNode:] interface GKQuadTreeNode { @@ -1921,7 +1926,7 @@ namespace GameplayKit { } } - [iOS (10,0), TV (10,0), Mac (10,12)] + [iOS (10, 0), TV (10, 0), Mac (10, 12)] [BaseType (typeof (NSObject), Name = "GKQuadtree")] // Renamed to GKQuadtree (lower case t) in xcode8 [DisableDefaultCtor] // crash (endless recursion) interface GKQuadTree { @@ -1990,7 +1995,7 @@ namespace GameplayKit { [NoMacCatalyst] [Export ("queryDataForPoint:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - NSObject[] QueryData (Vector2 point); + NSObject [] QueryData (Vector2 point); [Deprecated (PlatformName.iOS, 10, 0)] [Deprecated (PlatformName.TvOS, 10, 0)] @@ -1998,7 +2003,7 @@ namespace GameplayKit { [Export ("queryDataForQuad:quadSize:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] [MarshalNativeExceptions] - NSObject[] QueryData (Vector2 quadOrigin, Vector2 quadSize); + NSObject [] QueryData (Vector2 quadOrigin, Vector2 quadSize); [Deprecated (PlatformName.iOS, 10, 0)] [Deprecated (PlatformName.TvOS, 10, 0)] diff --git a/src/generator-attribute-manager.cs b/src/generator-attribute-manager.cs index d1014c65e4..7386997296 100644 --- a/src/generator-attribute-manager.cs +++ b/src/generator-attribute-manager.cs @@ -614,7 +614,7 @@ public static class AttributeConversionManager { ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), typeof (string) }; #else - ctorValues = new object [] { (byte)platform, (int)(byte)constructorArguments [0], (int)(byte)constructorArguments [1], (byte)0xff, null }; + ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], (byte) 0xff, null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), AttributeFactory.PlatformArch, typeof (string) }; #endif break; @@ -628,17 +628,17 @@ public static class AttributeConversionManager { ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], (int) (byte) constructorArguments [2], null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), typeof (int), typeof (string) }; #else - ctorValues = new object [] { (byte) platform, (int)(byte)constructorArguments [0], (int)(byte)constructorArguments [1], (int)(byte)constructorArguments [2], (byte) 0xff, null }; + ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], (int) (byte) constructorArguments [2], (byte) 0xff, null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), typeof (int), AttributeFactory.PlatformArch, typeof (string) }; #endif break; } #if !NET if (constructorArguments [0].GetType () == typeof (byte) && - constructorArguments [1].GetType () == typeof (byte) && - constructorArguments [2].GetType () == typeof (bool)) { + constructorArguments [1].GetType () == typeof (byte) && + constructorArguments [2].GetType () == typeof (bool)) { byte arch = (bool) constructorArguments [2] ? (byte) 2 : (byte) 0xff; - ctorValues = new object [] { (byte)platform, (int)(byte) constructorArguments [0], (int)(byte)constructorArguments [1], arch, null }; + ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], arch, null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), AttributeFactory.PlatformArch, typeof (string) }; break; } @@ -647,19 +647,19 @@ public static class AttributeConversionManager { #if !NET case 4: if (constructorArguments [0].GetType () == typeof (byte) && - constructorArguments [1].GetType () == typeof (byte) && - constructorArguments [2].GetType () == typeof (byte) && - constructorArguments [3].GetType () == typeof (bool)) { + constructorArguments [1].GetType () == typeof (byte) && + constructorArguments [2].GetType () == typeof (byte) && + constructorArguments [3].GetType () == typeof (bool)) { byte arch = (bool) constructorArguments [3] ? (byte) 2 : (byte) 0xff; - ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int)(byte) constructorArguments [1], (int)(byte) constructorArguments [2], arch, null }; + ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], (int) (byte) constructorArguments [2], arch, null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), typeof (int), AttributeFactory.PlatformArch, typeof (string) }; break; } if (constructorArguments [0].GetType () == typeof (byte) && - constructorArguments [1].GetType () == typeof (byte) && - constructorArguments [2].GetType () == typeof (byte) && - constructorArguments [3].GetType () == typeof (byte) /* ObjCRuntime.PlatformArchitecture */) { - ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int)(byte) constructorArguments [1], (int)(byte) constructorArguments [2], constructorArguments [3], null }; + constructorArguments [1].GetType () == typeof (byte) && + constructorArguments [2].GetType () == typeof (byte) && + constructorArguments [3].GetType () == typeof (byte) /* ObjCRuntime.PlatformArchitecture */) { + ctorValues = new object [] { (byte) platform, (int) (byte) constructorArguments [0], (int) (byte) constructorArguments [1], (int) (byte) constructorArguments [2], constructorArguments [3], null }; ctorTypes = new System.Type [] { AttributeFactory.PlatformEnum, typeof (int), typeof (int), typeof (int), AttributeFactory.PlatformArch, typeof (string) }; break; } @@ -809,7 +809,7 @@ static class AttributeFactory { var ctorValues = new object [] { (byte) platform, major, minor, message }; var ctorTypes = new System.Type [] { PlatformEnum, typeof (int), typeof (int), typeof (string) }; #else - var ctorValues = new object [] { (byte)platform, major, minor, (byte) 0xff, message }; + var ctorValues = new object [] { (byte) platform, major, minor, (byte) 0xff, message }; var ctorTypes = new System.Type [] { PlatformEnum, typeof (int), typeof (int), PlatformArch, typeof (string) }; #endif return CreateNewAttribute (type, ctorTypes, ctorValues); @@ -821,7 +821,7 @@ static class AttributeFactory { var ctorValues = new object [] { (byte) platform, message }; var ctorTypes = new System.Type [] { PlatformEnum, typeof (string) }; #else - var ctorValues = new object [] { (byte)platform, (byte) 0xff, message }; + var ctorValues = new object [] { (byte) platform, (byte) 0xff, message }; var ctorTypes = new System.Type [] { PlatformEnum, PlatformArch, typeof (string) }; #endif return CreateNewAttribute (type, ctorTypes, ctorValues); @@ -853,7 +853,7 @@ static class AttributeFactory { var ctorValues = new object [] { (byte) platformName, message }; var ctorTypes = new System.Type [] { PlatformEnum, typeof (string) }; #else - var ctorValues = new object [] { (byte)platformName, (byte) 0xff, message }; + var ctorValues = new object [] { (byte) platformName, (byte) 0xff, message }; var ctorTypes = new System.Type [] { PlatformEnum, PlatformArch, typeof (string) }; #endif return CreateNewAttribute (UnavailableAttributeType, ctorTypes, ctorValues); @@ -874,7 +874,7 @@ public static class CustomAttributeDataExtensions { static CustomAttributeDataExtensions () { - roCustomAttributeDataType = typeof(MetadataLoadContext).Assembly.GetType ("System.Reflection.TypeLoading.RoCustomAttributeData"); + roCustomAttributeDataType = typeof (MetadataLoadContext).Assembly.GetType ("System.Reflection.TypeLoading.RoCustomAttributeData"); attributeTypeProperty = roCustomAttributeDataType.GetProperty ("AttributeType"); } diff --git a/src/generator.cs b/src/generator.cs index c1a3c76aa5..954ea2efdf 100644 --- a/src/generator.cs +++ b/src/generator.cs @@ -5300,7 +5300,7 @@ public partial class Generator : IMemberGatherer { indent++; if (pi.CanRead) { #if !NET - PrintAttributes (pi, platform:true); + PrintAttributes (pi, platform: true); #endif PrintAttributes (pi.GetGetMethod (), platform: true, preserve: true, advice: true); print ("get {"); @@ -5322,7 +5322,7 @@ public partial class Generator : IMemberGatherer { } if (pi.CanWrite) { #if !NET - PrintAttributes (pi, platform:true); + PrintAttributes (pi, platform: true); #endif PrintAttributes (pi.GetSetMethod (), platform: true, preserve: true, advice: true); print ("set {"); @@ -5451,7 +5451,7 @@ public partial class Generator : IMemberGatherer { #if NET if (false) { #else - if (minfo.is_abstract){ + if (minfo.is_abstract) { print ("get; "); #endif } else { @@ -5524,7 +5524,7 @@ public partial class Generator : IMemberGatherer { #if NET if (false) { #else - if (minfo.is_abstract){ + if (minfo.is_abstract) { print ("set; "); #endif } else { diff --git a/src/glkit.cs b/src/glkit.cs index 2382cea259..7ded59ecf9 100644 --- a/src/glkit.cs +++ b/src/glkit.cs @@ -70,10 +70,11 @@ using NativeHandle = System.IntPtr; namespace GLKit { - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] - [iOS (9,0)][Mac (10,11)] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] + [iOS (9, 0)] + [Mac (10, 11)] [Static] interface GLKModelError { @@ -84,185 +85,185 @@ namespace GLKit { NSString Key { get; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] interface GLKBaseEffect : GLKNamedEffect { [Export ("colorMaterialEnabled", ArgumentSemantic.Assign)] - bool ColorMaterialEnabled { get; set; } + bool ColorMaterialEnabled { get; set; } [Export ("useConstantColor", ArgumentSemantic.Assign)] - bool UseConstantColor { get; set; } + bool UseConstantColor { get; set; } [Export ("transform")] - GLKEffectPropertyTransform Transform { get; } + GLKEffectPropertyTransform Transform { get; } [Export ("light0")] - GLKEffectPropertyLight Light0 { get; } + GLKEffectPropertyLight Light0 { get; } [Export ("light1")] - GLKEffectPropertyLight Light1 { get; } + GLKEffectPropertyLight Light1 { get; } [Export ("light2")] - GLKEffectPropertyLight Light2 { get; } + GLKEffectPropertyLight Light2 { get; } [Export ("lightingType", ArgumentSemantic.Assign)] - GLKLightingType LightingType { get; set; } + GLKLightingType LightingType { get; set; } [Export ("lightModelAmbientColor", ArgumentSemantic.Assign)] - Vector4 LightModelAmbientColor { [Align (16)] get; set; } + Vector4 LightModelAmbientColor { [Align (16)] get; set; } [Export ("material")] - GLKEffectPropertyMaterial Material { get; } + GLKEffectPropertyMaterial Material { get; } [Export ("texture2d0")] - GLKEffectPropertyTexture Texture2d0 { get; } + GLKEffectPropertyTexture Texture2d0 { get; } [Export ("texture2d1")] - GLKEffectPropertyTexture Texture2d1 { get; } + GLKEffectPropertyTexture Texture2d1 { get; } [NullAllowed] // by default this property is null [Export ("textureOrder", ArgumentSemantic.Copy)] - GLKEffectPropertyTexture [] TextureOrder { get; set; } + GLKEffectPropertyTexture [] TextureOrder { get; set; } [Export ("constantColor", ArgumentSemantic.Assign)] - Vector4 ConstantColor { [Align (16)] get; set; } + Vector4 ConstantColor { [Align (16)] get; set; } [Export ("fog")] - GLKEffectPropertyFog Fog { get; } + GLKEffectPropertyFog Fog { get; } [Export ("label", ArgumentSemantic.Copy)] [DisableZeroCopy] [NullAllowed] // default is null on iOS 5.1.1 - string Label { get; set; } + string Label { get; set; } [Export ("lightModelTwoSided", ArgumentSemantic.Assign)] bool LightModelTwoSided { get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] interface GLKEffectProperty { } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKEffectProperty))] interface GLKEffectPropertyFog { [Export ("mode", ArgumentSemantic.Assign)] - GLKFogMode Mode { get; set; } + GLKFogMode Mode { get; set; } [Export ("color", ArgumentSemantic.Assign)] - Vector4 Color { [Align (16)] get; set; } + Vector4 Color { [Align (16)] get; set; } [Export ("density", ArgumentSemantic.Assign)] - float Density { get; set; } /* GLfloat = float */ + float Density { get; set; } /* GLfloat = float */ [Export ("start", ArgumentSemantic.Assign)] - float Start { get; set; } /* GLfloat = float */ + float Start { get; set; } /* GLfloat = float */ [Export ("end", ArgumentSemantic.Assign)] - float End { get; set; } /* GLfloat = float */ + float End { get; set; } /* GLfloat = float */ [Export ("enabled", ArgumentSemantic.Assign)] bool Enabled { get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKEffectProperty))] interface GLKEffectPropertyLight { [Export ("position", ArgumentSemantic.Assign)] - Vector4 Position { [Align (16)] get; set; } + Vector4 Position { [Align (16)] get; set; } [Export ("ambientColor", ArgumentSemantic.Assign)] - Vector4 AmbientColor { [Align (16)] get; set; } + Vector4 AmbientColor { [Align (16)] get; set; } [Export ("diffuseColor", ArgumentSemantic.Assign)] - Vector4 DiffuseColor { [Align (16)] get; set; } + Vector4 DiffuseColor { [Align (16)] get; set; } [Export ("specularColor", ArgumentSemantic.Assign)] - Vector4 SpecularColor { [Align (16)] get; set; } + Vector4 SpecularColor { [Align (16)] get; set; } [Export ("spotDirection", ArgumentSemantic.Assign)] - Vector3 SpotDirection { get; set; } + Vector3 SpotDirection { get; set; } [Export ("spotExponent", ArgumentSemantic.Assign)] - float SpotExponent { get; set; } /* GLfloat = float */ + float SpotExponent { get; set; } /* GLfloat = float */ [Export ("spotCutoff", ArgumentSemantic.Assign)] - float SpotCutoff { get; set; } /* GLfloat = float */ + float SpotCutoff { get; set; } /* GLfloat = float */ [Export ("constantAttenuation", ArgumentSemantic.Assign)] - float ConstantAttenuation { get; set; } /* GLfloat = float */ + float ConstantAttenuation { get; set; } /* GLfloat = float */ [Export ("linearAttenuation", ArgumentSemantic.Assign)] - float LinearAttenuation { get; set; } /* GLfloat = float */ + float LinearAttenuation { get; set; } /* GLfloat = float */ [Export ("quadraticAttenuation", ArgumentSemantic.Assign)] - float QuadraticAttenuation { get; set; } /* GLfloat = float */ + float QuadraticAttenuation { get; set; } /* GLfloat = float */ [NullAllowed] // by default this property is null [Export ("transform", ArgumentSemantic.Retain)] - GLKEffectPropertyTransform Transform { get; set; } + GLKEffectPropertyTransform Transform { get; set; } [Export ("enabled", ArgumentSemantic.Assign)] bool Enabled { get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKEffectProperty))] interface GLKEffectPropertyMaterial { [Export ("diffuseColor", ArgumentSemantic.Assign)] - Vector4 DiffuseColor { [Align (16)] get; set; } + Vector4 DiffuseColor { [Align (16)] get; set; } [Export ("specularColor", ArgumentSemantic.Assign)] - Vector4 SpecularColor { [Align (16)] get; set; } + Vector4 SpecularColor { [Align (16)] get; set; } [Export ("emissiveColor", ArgumentSemantic.Assign)] - Vector4 EmissiveColor { [Align (16)] get; set; } + Vector4 EmissiveColor { [Align (16)] get; set; } [Export ("shininess", ArgumentSemantic.Assign)] - float Shininess { get; set; } /* GLfloat = float */ + float Shininess { get; set; } /* GLfloat = float */ [Export ("ambientColor", ArgumentSemantic.Assign)] Vector4 AmbientColor { [Align (16)] get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKEffectProperty))] interface GLKEffectPropertyTexture { [Export ("target", ArgumentSemantic.Assign)] - GLKTextureTarget Target { get; set; } + GLKTextureTarget Target { get; set; } [Export ("envMode", ArgumentSemantic.Assign)] - GLKTextureEnvMode EnvMode { get; set; } + GLKTextureEnvMode EnvMode { get; set; } [Export ("enabled", ArgumentSemantic.Assign)] - bool Enabled { get; set; } + bool Enabled { get; set; } [Export ("name", ArgumentSemantic.Assign)] uint GLName { get; set; } /* GLuint = uint32_t */ } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKEffectProperty))] interface GLKEffectPropertyTransform { [Export ("normalMatrix")] - Matrix3 NormalMatrix { get; } + Matrix3 NormalMatrix { get; } [Export ("modelviewMatrix", ArgumentSemantic.Assign)] Matrix4 ModelViewMatrix { [Align (16)] get; set; } @@ -271,14 +272,14 @@ namespace GLKit { Matrix4 ProjectionMatrix { [Align (16)] get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // - (nullable instancetype)init NS_UNAVAILABLE; - interface GLKMesh - { + interface GLKMesh { [Export ("initWithMesh:error:")] NativeHandle Constructor (MDLMesh mesh, out NSError error); @@ -287,52 +288,52 @@ namespace GLKit { [Static] [Export ("newMeshesFromAsset:sourceMeshes:error:")] [return: NullAllowed] - GLKMesh[] FromAsset (MDLAsset asset, out NSArray sourceMeshes, out NSError error); + GLKMesh [] FromAsset (MDLAsset asset, out NSArray sourceMeshes, out NSError error); [Export ("vertexCount")] nuint VertexCount { get; } - + [Export ("vertexBuffers")] - GLKMeshBuffer[] VertexBuffers { get; } - + GLKMeshBuffer [] VertexBuffers { get; } + [Export ("vertexDescriptor")] MDLVertexDescriptor VertexDescriptor { get; } - + [Export ("submeshes")] - GLKSubmesh[] Submeshes { get; } - + GLKSubmesh [] Submeshes { get; } + [Export ("name")] string Name { get; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GLKMeshBuffer : MDLMeshBuffer - { + interface GLKMeshBuffer : MDLMeshBuffer { [Export ("glBufferName")] uint GlBufferName { get; } [Export ("offset")] nuint Offset { get; } } - - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface GLKMeshBufferAllocator : MDLMeshBufferAllocator - { + interface GLKMeshBufferAllocator : MDLMeshBufferAllocator { } - - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -342,58 +343,58 @@ namespace GLKit { void PrepareToDraw (); } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (GLKBaseEffect))] interface GLKReflectionMapEffect : GLKNamedEffect { [Export ("textureCubeMap")] - GLKEffectPropertyTexture TextureCubeMap { get; } + GLKEffectPropertyTexture TextureCubeMap { get; } [Export ("matrix", ArgumentSemantic.Assign)] - Matrix3 Matrix { get; set; } + Matrix3 Matrix { get; set; } } - - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] interface GLKSkyboxEffect : GLKNamedEffect { [Export ("center", ArgumentSemantic.Assign)] - Vector3 Center { get; set; } + Vector3 Center { get; set; } [Export ("xSize", ArgumentSemantic.Assign)] - float XSize { get; set; } /* GLfloat = float */ + float XSize { get; set; } /* GLfloat = float */ [Export ("ySize", ArgumentSemantic.Assign)] - float YSize { get; set; } /* GLfloat = float */ + float YSize { get; set; } /* GLfloat = float */ [Export ("zSize", ArgumentSemantic.Assign)] - float ZSize { get; set; } /* GLfloat = float */ + float ZSize { get; set; } /* GLfloat = float */ [Export ("textureCubeMap")] - GLKEffectPropertyTexture TextureCubeMap { get; } + GLKEffectPropertyTexture TextureCubeMap { get; } [Export ("transform")] - GLKEffectPropertyTransform Transform { get; } + GLKEffectPropertyTransform Transform { get; } [NullAllowed] // by default this property is null [Export ("label", ArgumentSemantic.Copy)] [DisableZeroCopy] - string Label { get; set; } + string Label { get; set; } [Export ("draw")] void Draw (); } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // (nullable instancetype)init NS_UNAVAILABLE; - interface GLKSubmesh - { + interface GLKSubmesh { // Problematic, OpenTK has this define in 3 namespaces in: // OpenTK.Graphics.ES11.DataType // OpenTK.Graphics.ES20.DataType @@ -407,67 +408,70 @@ namespace GLKit { // OpenTK.Graphics.ES30.BeginMode [Export ("mode")] uint Mode { get; } - + [Export ("elementCount")] int ElementCount { get; } - + [Export ("elementBuffer")] GLKMeshBuffer ElementBuffer { get; } - + [NullAllowed, Export ("mesh", ArgumentSemantic.Weak)] GLKMesh Mesh { get; } - + [Export ("name")] string Name { get; } } - - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] interface GLKTextureInfo : NSCopying { [Export ("width")] - int Width { get; } /* GLuint = uint32_t */ + int Width { get; } /* GLuint = uint32_t */ [Export ("height")] - int Height { get; } /* GLuint = uint32_t */ + int Height { get; } /* GLuint = uint32_t */ [Export ("alphaState")] - GLKTextureInfoAlphaState AlphaState { get; } + GLKTextureInfoAlphaState AlphaState { get; } [Export ("textureOrigin")] - GLKTextureInfoOrigin TextureOrigin { get; } + GLKTextureInfoOrigin TextureOrigin { get; } [Export ("containsMipmaps")] - bool ContainsMipmaps { get; } + bool ContainsMipmaps { get; } [Export ("name")] uint Name { get; } /* GLuint = uint32_t */ - + [Export ("target")] GLKTextureTarget Target { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("mimapLevelCount")] uint MimapLevelCount { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("arrayLength")] uint ArrayLength { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("depth")] uint Depth { get; } } delegate void GLKTextureLoaderCallback (GLKTextureInfo textureInfo, NSError error); - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] interface GLKTextureLoader { [Static] @@ -505,14 +509,18 @@ namespace GLKit { [return: NullAllowed] GLKTextureInfo CubeMapFromUrl (NSUrl url, [NullAllowed] NSDictionary textureOperations, out NSError error); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("textureWithName:scaleFactor:bundle:options:error:")] [return: NullAllowed] GLKTextureInfo FromName (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, out NSError outError); - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Export ("initWithShareContext:")] NativeHandle Constructor (NSOpenGLContext context); @@ -548,26 +556,27 @@ namespace GLKit { [Async] void BeginLoadCubeMap (NSUrl filePath, [NullAllowed] NSDictionary textureOperations, [NullAllowed] DispatchQueue queue, GLKTextureLoaderCallback onComplete); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("textureWithName:scaleFactor:bundle:options:queue:completionHandler:")] [Async] void BeginTextureLoad (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, [NullAllowed] DispatchQueue queue, GLKTextureLoaderCallback block); [Field ("GLKTextureLoaderApplyPremultiplication")] NSString ApplyPremultiplication { get; } - + [Field ("GLKTextureLoaderGenerateMipmaps")] NSString GenerateMipmaps { get; } - + [Field ("GLKTextureLoaderOriginBottomLeft")] NSString OriginBottomLeft { get; } - - [Mac (10,14)] + + [Mac (10, 14)] [Field ("GLKTextureLoaderGrayscaleAsAlpha")] NSString GrayscaleAsAlpha { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("GLKTextureLoaderSRGB")] NSString SRGB { get; } @@ -582,44 +591,44 @@ namespace GLKit { } [NoMac] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof (GLKViewDelegate)})] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (GLKViewDelegate) })] interface GLKView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] GLKViewDelegate Delegate { get; set; } - + [NullAllowed] // by default this property is null [Export ("context", ArgumentSemantic.Retain)] - EAGLContext Context { get; set; } + EAGLContext Context { get; set; } [Export ("drawableWidth")] - nint DrawableWidth { get; } + nint DrawableWidth { get; } [Export ("drawableHeight")] - nint DrawableHeight { get; } + nint DrawableHeight { get; } [Export ("drawableColorFormat")] - GLKViewDrawableColorFormat DrawableColorFormat { get; set; } + GLKViewDrawableColorFormat DrawableColorFormat { get; set; } [Export ("drawableDepthFormat")] - GLKViewDrawableDepthFormat DrawableDepthFormat { get; set; } + GLKViewDrawableDepthFormat DrawableDepthFormat { get; set; } [Export ("drawableStencilFormat")] - GLKViewDrawableStencilFormat DrawableStencilFormat { get; set; } + GLKViewDrawableStencilFormat DrawableStencilFormat { get; set; } [Export ("drawableMultisample")] - GLKViewDrawableMultisample DrawableMultisample { get; set; } + GLKViewDrawableMultisample DrawableMultisample { get; set; } [Export ("enableSetNeedsDisplay")] - bool EnableSetNeedsDisplay { get; set; } + bool EnableSetNeedsDisplay { get; set; } [Export ("initWithFrame:context:")] NativeHandle Constructor (CGRect frame, EAGLContext context); @@ -638,8 +647,8 @@ namespace GLKit { } [NoMac] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -650,8 +659,8 @@ namespace GLKit { } [NoMac] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [BaseType (typeof (UIViewController))] interface GLKViewController : GLKViewDelegate { [Export ("initWithNibName:bundle:")] @@ -659,34 +668,34 @@ namespace GLKit { NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); [Export ("preferredFramesPerSecond")] - nint PreferredFramesPerSecond { get; set; } + nint PreferredFramesPerSecond { get; set; } [Export ("framesPerSecond")] - nint FramesPerSecond { get; } + nint FramesPerSecond { get; } [Export ("paused")] - bool Paused { [Bind ("isPaused")] get; set; } + bool Paused { [Bind ("isPaused")] get; set; } [Export ("framesDisplayed")] - nint FramesDisplayed { get; } + nint FramesDisplayed { get; } [Export ("timeSinceFirstResume")] - double TimeSinceFirstResume { get; } + double TimeSinceFirstResume { get; } [Export ("timeSinceLastResume")] - double TimeSinceLastResume { get; } + double TimeSinceLastResume { get; } [Export ("timeSinceLastUpdate")] - double TimeSinceLastUpdate { get; } + double TimeSinceLastUpdate { get; } [Export ("timeSinceLastDraw")] - double TimeSinceLastDraw { get; } + double TimeSinceLastDraw { get; } [Export ("pauseOnWillResignActive")] - bool PauseOnWillResignActive { get; set; } + bool PauseOnWillResignActive { get; set; } [Export ("resumeOnDidBecomeActive")] - bool ResumeOnDidBecomeActive { get; set; } + bool ResumeOnDidBecomeActive { get; set; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -701,8 +710,8 @@ namespace GLKit { } [NoMac] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] [Model] [Protocol] diff --git a/src/healthkit.cs b/src/healthkit.cs index e71ba30dc3..fb52ee7b9e 100644 --- a/src/healthkit.cs +++ b/src/healthkit.cs @@ -24,16 +24,16 @@ using NativeHandle = System.IntPtr; namespace HealthKit { - [Watch (3,0), iOS (10,0), Mac (13,0)] + [Watch (3, 0), iOS (10, 0), Mac (13, 0)] public enum HKDocumentTypeIdentifier { [Field ("HKDocumentTypeIdentifierCDA")] Cda, } // NSInteger -> HKDefines.h - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [ErrorDomain ("HKErrorDomain")] [Native] public enum HKErrorCode : long { @@ -51,9 +51,9 @@ namespace HealthKit { NoData, } - [iOS (10,0)] - [Watch (2,0)] - [Mac (13,0)] + [iOS (10, 0)] + [Watch (2, 0)] + [Mac (13, 0)] [Native] public enum HKWorkoutSessionLocationType : long { Unknown = 1, @@ -62,24 +62,24 @@ namespace HealthKit { } [NoiOS] - [Watch (2,0)] - [Mac (13,0)] + [Watch (2, 0)] + [Mac (13, 0)] [Native] public enum HKWorkoutSessionState : long { NotStarted = 1, Running, Ended, - [Watch (3,0)] + [Watch (3, 0)] Paused, - [Watch (5,0)] + [Watch (5, 0)] Prepared, - [Watch (5,0)] + [Watch (5, 0)] Stopped, } - [iOS (11,0)] - [Watch (4,0)] - [Mac (13,0)] + [iOS (11, 0)] + [Watch (4, 0)] + [Mac (13, 0)] [Native] public enum HKHeartRateMotionContext : long { NotSet = 0, @@ -87,20 +87,20 @@ namespace HealthKit { Active, } - [Watch (7,0), iOS (14,0), Mac (13,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0)] [Native] public enum HKActivityMoveMode : long { ActiveEnergy = 1, AppleMoveTime = 2, } - [Watch (7,1), iOS (14,2), Mac (13,0)] + [Watch (7, 1), iOS (14, 2), Mac (13, 0)] [Native] public enum HKCategoryValueHeadphoneAudioExposureEvent : long { SevenDayLimit = 1, } - [Watch (8,0), iOS (15,0), Mac (13,0)] + [Watch (8, 0), iOS (15, 0), Mac (13, 0)] [Native] public enum HKAppleWalkingSteadinessClassification : long { Ok = 1, @@ -108,7 +108,7 @@ namespace HealthKit { VeryLow, } - [Watch (8,0), iOS (15,0), Mac (13,0)] + [Watch (8, 0), iOS (15, 0), Mac (13, 0)] [Native] public enum HKCategoryValueAppleWalkingSteadinessEvent : long { InitialLow = 1, @@ -117,7 +117,7 @@ namespace HealthKit { RepeatVeryLow = 4, } - [Watch (8,0), iOS (15,0), Mac (13,0)] + [Watch (8, 0), iOS (15, 0), Mac (13, 0)] [Native] public enum HKCategoryValuePregnancyTestResult : long { Negative = 1, @@ -125,7 +125,7 @@ namespace HealthKit { Indeterminate, } - [Watch (8,0), iOS (15,0), Mac (13,0)] + [Watch (8, 0), iOS (15, 0), Mac (13, 0)] [Native] public enum HKCategoryValueProgesteroneTestResult : long { Negative = 1, @@ -133,7 +133,7 @@ namespace HealthKit { Indeterminate, } - [Watch (8,5), iOS (15,4), MacCatalyst (15,4), Mac (13,0)] + [Watch (8, 5), iOS (15, 4), MacCatalyst (15, 4), Mac (13, 0)] public enum HKVerifiableClinicalRecordSourceType { [DefaultEnumValue] [Field (null)] @@ -146,7 +146,7 @@ namespace HealthKit { EuDigitalCovidCertificate, } - [Watch (8,5), iOS (15,4), MacCatalyst (15,4), Mac (13,0)] + [Watch (8, 5), iOS (15, 4), MacCatalyst (15, 4), Mac (13, 0)] public enum HKVerifiableClinicalRecordCredentialType { [DefaultEnumValue] [Field (null)] @@ -168,19 +168,19 @@ namespace HealthKit { #if NET delegate void HKAnchoredObjectResultHandler (HKAnchoredObjectQuery query, HKSample[] results, nuint newAnchor, NSError error); #else - delegate void HKAnchoredObjectResultHandler2 (HKAnchoredObjectQuery query, HKSample[] results, nuint newAnchor, NSError error); + delegate void HKAnchoredObjectResultHandler2 (HKAnchoredObjectQuery query, HKSample [] results, nuint newAnchor, NSError error); [Obsolete ("Use HKAnchoredObjectResultHandler2 instead")] - delegate void HKAnchoredObjectResultHandler (HKAnchoredObjectQuery query, HKSampleType[] results, nuint newAnchor, NSError error); + delegate void HKAnchoredObjectResultHandler (HKAnchoredObjectQuery query, HKSampleType [] results, nuint newAnchor, NSError error); #endif - delegate void HKAnchoredObjectUpdateHandler (HKAnchoredObjectQuery query, HKSample[] addedObjects, HKDeletedObject[] deletedObjects, HKQueryAnchor newAnchor, NSError error); + delegate void HKAnchoredObjectUpdateHandler (HKAnchoredObjectQuery query, HKSample [] addedObjects, HKDeletedObject [] deletedObjects, HKQueryAnchor newAnchor, NSError error); delegate void HKWorkoutRouteBuilderDataHandler (HKWorkoutRouteQuery query, CLLocation [] routeData, bool done, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException: The -init method is not available on HKAnchoredObjectQuery interface HKAnchoredObjectQuery { @@ -201,22 +201,22 @@ namespace HealthKit { NativeHandle Constructor (HKSampleType type, [NullAllowed] NSPredicate predicate, nuint anchor, nuint limit, HKAnchoredObjectResultHandler2 completion); #endif - [iOS (9,0)] + [iOS (9, 0)] [Export ("initWithType:predicate:anchor:limit:resultsHandler:")] NativeHandle Constructor (HKSampleType type, [NullAllowed] NSPredicate predicate, [NullAllowed] HKQueryAnchor anchor, nuint limit, HKAnchoredObjectUpdateHandler handler); - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] [Export ("initWithQueryDescriptors:anchor:limit:resultsHandler:")] - NativeHandle Constructor (HKQueryDescriptor[] queryDescriptors, [NullAllowed] HKQueryAnchor anchor, nint limit, HKAnchoredObjectUpdateHandler resultsHandler); + NativeHandle Constructor (HKQueryDescriptor [] queryDescriptors, [NullAllowed] HKQueryAnchor anchor, nint limit, HKAnchoredObjectUpdateHandler resultsHandler); - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("updateHandler", ArgumentSemantic.Copy)] HKAnchoredObjectUpdateHandler UpdateHandler { get; set; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [Static] interface HKPredicateKeyPath { [Field ("HKPredicateKeyPathCategoryValue")] @@ -227,7 +227,7 @@ namespace HealthKit { [Field ("HKPredicateKeyPathMetadata")] NSString Metadata { get; } - + [Field ("HKPredicateKeyPathQuantity")] NSString Quantity { get; } @@ -248,45 +248,45 @@ namespace HealthKit { [Field ("HKPredicateKeyPathWorkoutDuration")] NSString WorkoutDuration { get; } - + [Field ("HKPredicateKeyPathWorkoutTotalDistance")] NSString WorkoutTotalDistance { get; } - + [Field ("HKPredicateKeyPathWorkoutTotalEnergyBurned")] NSString WorkoutTotalEnergyBurned { get; } - + [Field ("HKPredicateKeyPathWorkoutType")] NSString WorkoutType { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKPredicateKeyPathWorkoutTotalSwimmingStrokeCount")] NSString WorkoutTotalSwimmingStrokeCount { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKPredicateKeyPathDevice")] NSString Device { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKPredicateKeyPathSourceRevision")] NSString SourceRevision { get; } - [iOS (9,3), Watch (2,2)] + [iOS (9, 3), Watch (2, 2)] [Field ("HKPredicateKeyPathDateComponents")] NSString DateComponents { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKPredicateKeyPathCDATitle")] NSString CdaTitle { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKPredicateKeyPathCDAPatientName")] NSString CdaPatientName { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKPredicateKeyPathCDAAuthorName")] NSString CdaAuthorName { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKPredicateKeyPathCDACustodianName")] NSString CdaCustodianName { get; } @@ -349,7 +349,7 @@ namespace HealthKit { [Watch (7, 0), iOS (14, 0)] [Field ("HKPredicateKeyPathECGSymptomsStatus")] NSString EcgSymptomsStatus { get; } - + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Field ("HKPredicateKeyPathWorkoutActivityType")] NSString WorkoutActivityType { get; } @@ -404,8 +404,8 @@ namespace HealthKit { } [NoWatch] // headers says it's available but it's only usable from another, unavailable, type - [iOS (10,0)] - [Mac (13,0)] + [iOS (10, 0)] + [Mac (13, 0)] [Static] [Internal] interface HKDetailedCdaErrorKeys { @@ -414,16 +414,16 @@ namespace HealthKit { } [NoWatch] - [iOS (10,0)] + [iOS (10, 0)] [StrongDictionary ("HKDetailedCdaErrorKeys")] [Internal] interface HKDetailedCdaErrors { NSString ValidationError { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (HKSample))] interface HKCategorySample { @@ -446,28 +446,26 @@ namespace HealthKit { [Export ("categorySampleWithType:value:startDate:endDate:")] HKCategorySample FromType (HKCategoryType type, nint value, NSDate startDate, NSDate endDate); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("categorySampleWithType:value:startDate:endDate:device:metadata:")] - HKCategorySample FromType (HKCategoryType type, nint value, NSDate startDate, NSDate endDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); + HKCategorySample FromType (HKCategoryType type, nint value, NSDate startDate, NSDate endDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); } - [Watch (3,0), iOS (10,0), Mac (13,0)] - [BaseType (typeof(HKSample))] + [Watch (3, 0), iOS (10, 0), Mac (13, 0)] + [BaseType (typeof (HKSample))] [Abstract] // as per docs [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKDocumentSample - interface HKDocumentSample - { + interface HKDocumentSample { [NoWatch] // HKDocumentType is iOS only, rdar #27865614 [Export ("documentType", ArgumentSemantic.Strong)] HKDocumentType DocumentType { get; } } - [NoWatch, iOS (10,0), Mac (13,0)] - [BaseType (typeof(HKDocumentSample), Name = "HKCDADocumentSample")] + [NoWatch, iOS (10, 0), Mac (13, 0)] + [BaseType (typeof (HKDocumentSample), Name = "HKCDADocumentSample")] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKCDADocumentSample - interface HKCdaDocumentSample - { + interface HKCdaDocumentSample { [NullAllowed, Export ("document")] HKCdaDocument Document { get; } @@ -482,11 +480,10 @@ namespace HealthKit { HKCdaDocumentSample Create (NSData documentData, NSDate startDate, NSDate endDate, HKMetadata metadata, out NSError validationError); } - [Watch (3,0), iOS (10,0), Mac (13,0)] - [BaseType (typeof(NSObject), Name = "HKCDADocument")] + [Watch (3, 0), iOS (10, 0), Mac (13, 0)] + [BaseType (typeof (NSObject), Name = "HKCDADocument")] [DisableDefaultCtor] // as per docs - interface HKCdaDocument - { + interface HKCdaDocument { [NullAllowed, Export ("documentData", ArgumentSemantic.Copy)] NSData DocumentData { get; } @@ -503,9 +500,9 @@ namespace HealthKit { string CustodianName { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] // NSInvalidArgumentException: The -init method is not available on HKCorrelation interface HKCorrelation : NSSecureCoding { @@ -515,7 +512,7 @@ namespace HealthKit { [Export ("objectsForType:")] NSSet GetObjects (HKObjectType objectType); - + [Export ("correlationType")] HKCorrelationType CorrelationType { get; } @@ -529,17 +526,17 @@ namespace HealthKit { [Static, Export ("correlationWithType:startDate:endDate:objects:")] HKCorrelation Create (HKCorrelationType correlationType, NSDate startDate, NSDate endDate, NSSet objects); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("correlationWithType:startDate:endDate:objects:device:metadata:")] - HKCorrelation Create (HKCorrelationType correlationType, NSDate startDate, NSDate endDate, NSSet objects, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); + HKCorrelation Create (HKCorrelationType correlationType, NSDate startDate, NSDate endDate, NSSet objects, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); } - delegate void HKCorrelationQueryResultHandler (HKCorrelationQuery query, HKCorrelation[] correlations, NSError error); + delegate void HKCorrelationQueryResultHandler (HKCorrelationQuery query, HKCorrelation [] correlations, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKCorrelationQuery interface HKCorrelationQuery { @@ -553,9 +550,9 @@ namespace HealthKit { NSDictionary SamplePredicates { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKCorrelationType interface HKCorrelationType { @@ -566,9 +563,9 @@ namespace HealthKit { delegate void HKHealthStoreRecoverActiveWorkoutSessionHandler (HKWorkoutSession session, NSError error); delegate void HKHealthStoreCompletionHandler (bool success, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKHealthStore { // FIXME NS_EXTENSION_UNAVAILABLE("Not available to extensions") ; @@ -597,23 +594,23 @@ namespace HealthKit { // FIXME NS_EXTENSION_UNAVAILABLE("Not available to extensions") ; [Async] [Export ("saveObjects:withCompletion:")] - void SaveObjects (HKObject[] objects, Action completion); + void SaveObjects (HKObject [] objects, Action completion); // FIXME NS_EXTENSION_UNAVAILABLE("Not available to extensions") ; [Async] [Export ("deleteObject:withCompletion:")] void DeleteObject (HKObject obj, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Async] [Export ("deleteObjects:withCompletion:")] - void DeleteObjects (HKObject[] objects, Action completion); + void DeleteObjects (HKObject [] objects, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("deleteObjectsOfType:predicate:withCompletion:")] void DeleteObjects (HKObjectType objectType, NSPredicate predicate, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("earliestPermittedSampleDate")] NSDate EarliestPermittedSampleDate { get; } @@ -621,17 +618,17 @@ namespace HealthKit { [Export ("executeQuery:")] void ExecuteQuery (HKQuery query); - [iOS (9,0)] + [iOS (9, 0)] [Export ("fitzpatrickSkinTypeWithError:")] [return: NullAllowed] HKFitzpatrickSkinTypeObject GetFitzpatrickSkinType (out NSError error); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("wheelchairUseWithError:")] [return: NullAllowed] HKWheelchairUseObject GetWheelchairUse (out NSError error); - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Export ("activityMoveModeWithError:")] [return: NullAllowed] HKActivityMoveModeObject GetActivityMoveMode ([NullAllowed] out NSError error); @@ -647,7 +644,7 @@ namespace HealthKit { [return: NullAllowed] NSDate GetDateOfBirth (out NSError error); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("dateOfBirthComponentsWithError:")] [return: NullAllowed] NSDateComponents GetDateOfBirthComponents (out NSError error); @@ -662,17 +659,17 @@ namespace HealthKit { [return: NullAllowed] HKBloodTypeObject GetBloodType (out NSError error); - [Watch (8,0)] + [Watch (8, 0)] [Async] [Export ("enableBackgroundDeliveryForType:frequency:withCompletion:")] void EnableBackgroundDelivery (HKObjectType type, HKUpdateFrequency frequency, Action completion); - [Watch (8,0)] + [Watch (8, 0)] [Async] [Export ("disableBackgroundDeliveryForType:withCompletion:")] void DisableBackgroundDelivery (HKObjectType type, Action completion); - [Watch (8,0)] + [Watch (8, 0)] [Async] [Export ("disableAllBackgroundDeliveryWithCompletion:")] void DisableAllBackgroundDelivery (Action completion); @@ -680,11 +677,11 @@ namespace HealthKit { // FIXME NS_EXTENSION_UNAVAILABLE("Not available to extensions") ; [NoWatch] [Async] - [iOS (9,0)] + [iOS (9, 0)] [Export ("handleAuthorizationForExtensionWithCompletion:")] void HandleAuthorizationForExtension (Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.WatchOS, 4, 0)] [Deprecated (PlatformName.iOS, 11, 0)] [Export ("splitTotalEnergy:startDate:endDate:resultsHandler:")] @@ -705,80 +702,80 @@ namespace HealthKit { [Export ("endWorkoutSession:")] void EndWorkoutSession (HKWorkoutSession workoutSession); - [Watch (3,0), NoiOS] + [Watch (3, 0), NoiOS] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'HKWorkoutSession.Pause' instead.")] [Export ("pauseWorkoutSession:")] void PauseWorkoutSession (HKWorkoutSession workoutSession); - [Watch (3,0), NoiOS] + [Watch (3, 0), NoiOS] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'HKWorkoutSession.Resume' instead.")] [Export ("resumeWorkoutSession:")] void ResumeWorkoutSession (HKWorkoutSession workoutSession); - [NoWatch, iOS (10,0)] + [NoWatch, iOS (10, 0)] [Async] [Export ("startWatchAppWithWorkoutConfiguration:completion:")] void StartWatchApp (HKWorkoutConfiguration workoutConfiguration, Action completion); // HKUserPreferences category - [iOS (8,2)] + [iOS (8, 2)] [Async] [Export ("preferredUnitsForQuantityTypes:completion:")] void GetPreferredUnits (NSSet quantityTypes, Action completion); - [iOS (8,2)] + [iOS (8, 2)] [Notification] [Field ("HKUserPreferencesDidChangeNotification")] NSString UserPreferencesDidChangeNotification { get; } [Async] - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("getRequestStatusForAuthorizationToShareTypes:readTypes:completion:")] void GetRequestStatusForAuthorizationToShare (NSSet typesToShare, NSSet typesToRead, HKHealthStoreGetRequestStatusForAuthorizationToShareHandler completion); [Async] - [Watch (5,0), NoiOS] + [Watch (5, 0), NoiOS] [Export ("recoverActiveWorkoutSessionWithCompletion:")] void RecoverActiveWorkoutSession (HKHealthStoreRecoverActiveWorkoutSessionHandler completion); [Async] - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] [Export ("recalibrateEstimatesForSampleType:atDate:completion:")] void RecalibrateEstimates (HKSampleType sampleType, NSDate date, Action completion); - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [Async] [Export ("requestPerObjectReadAuthorizationForType:predicate:completion:")] void RequestPerObjectReadAuthorization (HKObjectType objectType, [NullAllowed] NSPredicate predicate, HKHealthStoreCompletionHandler completion); } delegate void HKStoreSampleAddedCallback (bool success, NSError error); - - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKBiologicalSexObject : NSCopying, NSSecureCoding { [Export ("biologicalSex")] HKBiologicalSex BiologicalSex { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKBloodTypeObject : NSCopying, NSSecureCoding { [Export ("bloodType")] HKBloodType BloodType { get; } } - [Watch (6,0)] - [iOS (13,0)] - [Mac (13,0)] + [Watch (6, 0)] + [iOS (13, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] - interface HKAudiogramSampleType {} + interface HKAudiogramSampleType { } [StrongDictionary ("HKMetadataKey")] interface HKMetadata { @@ -814,60 +811,60 @@ namespace HealthKit { [Export ("DeviceManufacturerName")] string DeviceManufacturerName { get; set; } - + [Export ("WasTakenInLab")] bool WasTakenInLab { get; set; } [Export ("ReferenceRangeLowerLimit")] NSNumber ReferenceRangeLowerLimit { get; set; } - + [Export ("ReferenceRangeUpperLimit")] NSNumber ReferenceRangeUpperLimit { get; set; } - + [Export ("WasUserEntered")] bool WasUserEntered { get; set; } - + [Export ("WorkoutBrandName")] string WorkoutBrandName { get; set; } - + [Export ("GroupFitness")] bool GroupFitness { get; set; } - + [Export ("IndoorWorkout")] bool IndoorWorkout { get; set; } - + [Export ("CoachedWorkout")] bool CoachedWorkout { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("SexualActivityProtectionUsed")] bool SexualActivityProtectionUsed { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("MenstrualCycleStart")] bool MenstrualCycleStart { get; set; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("WeatherCondition")] HKWeatherCondition WeatherCondition { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("WeatherTemperature")] HKQuantity WeatherTemperature { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("WeatherHumidity")] HKQuantity WeatherHumidity { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("LapLength")] NSString LapLength { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("SwimmingLocationType")] NSString SwimmingLocationType { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("SwimmingStrokeStyle")] NSString SwimmingStrokeStyle { get; } @@ -890,32 +887,32 @@ namespace HealthKit { [Watch (4, 0), iOS (11, 0)] [Export ("VO2MaxTestType")] HKVO2MaxTestType VO2MaxTestType { get; } - - [Watch (4,0), iOS (11,0)] + + [Watch (4, 0), iOS (11, 0)] [Export ("HeartRateMotionContext")] HKHeartRateMotionContext HeartRateMotionContext { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("AverageSpeed")] HKQuantity AverageSpeed { get; set; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("MaximumSpeed")] HKQuantity MaximumSpeed { get; set; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("AlpineSlopeGrade")] HKQuantity AlpineSlopeGrade { get; set; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("ElevationAscended")] HKQuantity ElevationAscended { get; set; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("ElevationDescended")] HKQuantity ElevationDescended { get; set; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("FitnessMachineDuration")] HKQuantity FitnessMachineDuration { get; set; } @@ -931,10 +928,10 @@ namespace HealthKit { [Export ("HeartRateEventThreshold")] HKQuantity HeartRateEventThreshold { get; set; } } - - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [Static] interface HKMetadataKey { [Field ("HKMetadataKeyDeviceSerialNumber")] @@ -969,7 +966,7 @@ namespace HealthKit { [Field ("HKMetadataKeyDeviceManufacturerName")] NSString DeviceManufacturerName { get; } - + [Field ("HKMetadataKeyWasTakenInLab")] NSString WasTakenInLab { get; } @@ -978,51 +975,51 @@ namespace HealthKit { [Field ("HKMetadataKeyReferenceRangeUpperLimit")] NSString ReferenceRangeUpperLimit { get; } - + [Field ("HKMetadataKeyWasUserEntered")] NSString WasUserEntered { get; } - + [Field ("HKMetadataKeyWorkoutBrandName")] NSString WorkoutBrandName { get; } - + [Field ("HKMetadataKeyGroupFitness")] NSString GroupFitness { get; } - + [Field ("HKMetadataKeyIndoorWorkout")] NSString IndoorWorkout { get; } - + [Field ("HKMetadataKeyCoachedWorkout")] NSString CoachedWorkout { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKMetadataKeySexualActivityProtectionUsed")] NSString SexualActivityProtectionUsed { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKMetadataKeyMenstrualCycleStart")] NSString MenstrualCycleStart { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeyWeatherCondition")] NSString WeatherCondition { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeyWeatherTemperature")] NSString WeatherTemperature { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeyWeatherHumidity")] NSString WeatherHumidity { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeyLapLength")] NSString LapLength { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeySwimmingLocationType")] NSString SwimmingLocationType { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKMetadataKeySwimmingStrokeStyle")] NSString SwimmingStrokeStyle { get; } @@ -1045,32 +1042,32 @@ namespace HealthKit { [Watch (4, 0), iOS (11, 0)] [Field ("HKMetadataKeyVO2MaxTestType")] NSString VO2MaxTestType { get; } - - [Watch (4,0), iOS (11,0)] + + [Watch (4, 0), iOS (11, 0)] [Field ("HKMetadataKeyHeartRateMotionContext")] NSString HeartRateMotionContext { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKMetadataKeyAverageSpeed")] NSString AverageSpeed { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKMetadataKeyMaximumSpeed")] NSString MaximumSpeed { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKMetadataKeyAlpineSlopeGrade")] NSString AlpineSlopeGrade { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKMetadataKeyElevationAscended")] NSString ElevationAscended { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKMetadataKeyElevationDescended")] NSString ElevationDescended { get; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Field ("HKMetadataKeyFitnessMachineDuration")] NSString FitnessMachineDuration { get; } @@ -1124,25 +1121,25 @@ namespace HealthKit { [Watch (8, 0), iOS (15, 0)] [Field ("HKMetadataKeyDateOfEarliestDataUsedForEstimate")] - NSString DateOfEarliestDataUsedForEstimate { get;} + NSString DateOfEarliestDataUsedForEstimate { get; } [Watch (8, 0), iOS (15, 0)] [Field ("HKMetadataKeyAlgorithmVersion")] NSString AlgorithmVersion { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKMetadataKeySWOLFScore")] NSString SwolfScore { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKMetadataKeyQuantityClampedToLowerBound")] NSString QuantityClampedToLowerBound { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKMetadataKeyQuantityClampedToUpperBound")] NSString QuantityClampedToUpperBound { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0)] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0)] [Field ("HKMetadataKeyGlassesPrescriptionDescription")] NSString GlassesPrescriptionDescription { get; } @@ -1171,9 +1168,9 @@ namespace HealthKit { NSString UserMotionContext { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] #if NET [Abstract] // as per docs #endif @@ -1193,18 +1190,18 @@ namespace HealthKit { [Wrap ("WeakMetadata")] HKMetadata Metadata { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("sourceRevision", ArgumentSemantic.Strong)] HKSourceRevision SourceRevision { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("device", ArgumentSemantic.Strong)] HKDevice Device { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] #if NET [Abstract] #endif @@ -1255,7 +1252,7 @@ namespace HealthKit { HKCorrelationType GetCorrelationType ([NullAllowed] NSString hkCorrelationTypeIdentifier); [NoWatch] // HKDocumentType is iOS only, rdar #27865614 - [iOS (10,0)] + [iOS (10, 0)] [Internal] [Static] [Export ("documentTypeForIdentifier:")] @@ -1269,9 +1266,9 @@ namespace HealthKit { HKWorkoutType GetWorkoutType (); #endif - [Watch (2,2)] - [iOS (9,3)] - [Mac (13,0)] + [Watch (2, 2)] + [iOS (9, 3)] + [Mac (13, 0)] [Static] [Export ("activitySummaryType")] HKActivitySummaryType ActivitySummaryType { get; } @@ -1282,13 +1279,13 @@ namespace HealthKit { [return: NullAllowed] HKSeriesType GetSeriesType (string identifier); - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Static, Internal] [Export ("clinicalTypeForIdentifier:")] [return: NullAllowed] HKClinicalType GetClinicalType (NSString identifier); - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Static] [Wrap ("GetClinicalType (identifier.GetConstant ()!)")] [return: NullAllowed] @@ -1309,47 +1306,47 @@ namespace HealthKit { [Export ("visionPrescriptionType")] HKPrescriptionType VisionPrescriptionType { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [Export ("requiresPerObjectAuthorization")] bool RequiresPerObjectAuthorization { get; } } - [Watch (7, 0), iOS (14, 0), Mac (13,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKElectrocardiogram interface HKElectrocardiogramType { } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKObjectType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKCharacteristicType interface HKCharacteristicType { } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKSampleType [BaseType (typeof (HKObjectType))] [Abstract] // The HKSampleType class is an abstract subclass of the HKObjectType class, used to represent data samples. Never instantiate an HKSampleType object directly. Instead, you should always work with one of its concrete subclasses [...] interface HKSampleType { - [iOS (13,0), Watch (6,0)] + [iOS (13, 0), Watch (6, 0)] [Export ("isMaximumDurationRestricted")] bool IsMaximumDurationRestricted { get; } - [iOS (13,0), Watch (6,0)] + [iOS (13, 0), Watch (6, 0)] [Export ("maximumAllowedDuration")] double MaximumAllowedDuration { get; } - [iOS (13,0), Watch (6,0)] + [iOS (13, 0), Watch (6, 0)] [Export ("isMinimumDurationRestricted")] bool IsMinimumDurationRestricted { get; } - [iOS (13,0), Watch (6,0)] + [iOS (13, 0), Watch (6, 0)] [Export ("minimumAllowedDuration")] double MinimumAllowedDuration { get; } @@ -1358,18 +1355,18 @@ namespace HealthKit { bool AllowsRecalibrationForEstimates { get; } } - [Watch (5,0)] - [iOS (12,0)] - [Mac (13,0)] + [Watch (5, 0)] + [iOS (12, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKClinicalType interface HKClinicalType { } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKCategoryType interface HKCategoryType { @@ -1377,16 +1374,16 @@ namespace HealthKit { } [NoWatch] // marked as iOS-only (confirmed by Apple) even if some watchOS 3 API returns this type, rdar #27865614 - [iOS (10,0), Mac (13,0)] + [iOS (10, 0), Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKDocumentType interface HKDocumentType { } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKQuantityType interface HKQuantityType { @@ -1399,12 +1396,12 @@ namespace HealthKit { delegate void HKObserverQueryUpdateHandler (HKObserverQuery query, [BlockCallback] Action completion, NSError error); - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] delegate void HKObserverQueryDescriptorUpdateHandler (HKObserverQuery query, NSSet samples, [BlockCallback] Action completion, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] #if NET [Abstract] @@ -1414,14 +1411,14 @@ namespace HealthKit { [Export ("initWithSampleType:predicate:updateHandler:")] NativeHandle Constructor (HKSampleType sampleType, [NullAllowed] NSPredicate predicate, HKObserverQueryUpdateHandler updateHandler); - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] [Export ("initWithQueryDescriptors:updateHandler:")] - NativeHandle Constructor (HKQueryDescriptor[] queryDescriptors, HKObserverQueryDescriptorUpdateHandler updateHandler); + NativeHandle Constructor (HKQueryDescriptor [] queryDescriptors, HKObserverQueryDescriptorUpdateHandler updateHandler); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKQuantity : NSSecureCoding, NSCopying { @@ -1439,9 +1436,9 @@ namespace HealthKit { NSComparisonResult Compare (HKQuantity quantity); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKQuantitySample interface HKQuantitySample { @@ -1464,28 +1461,28 @@ namespace HealthKit { [Wrap ("FromType (quantityType, quantity, startDate, endDate, metadata.GetDictionary ())")] HKQuantitySample FromType (HKQuantityType quantityType, HKQuantity quantity, NSDate startDate, NSDate endDate, HKMetadata metadata); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("quantitySampleWithType:quantity:startDate:endDate:device:metadata:")] - HKQuantitySample FromType (HKQuantityType quantityType, HKQuantity quantity, NSDate startDate, NSDate endDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); + HKQuantitySample FromType (HKQuantityType quantityType, HKQuantity quantity, NSDate startDate, NSDate endDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); [Watch (5, 0), iOS (12, 0)] [Export ("count")] nint Count { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKQuery { - [iOS (9,3), Watch (2,2)] + [iOS (9, 3), Watch (2, 2)] [NullAllowed, Export ("objectType", ArgumentSemantic.Strong)] HKObjectType ObjectType { get; } - [Deprecated (PlatformName.WatchOS, 2,2, message: "Use 'ObjectType' property.")] - [Deprecated (PlatformName.iOS, 9,3, message: "Use 'ObjectType' property.")] + [Deprecated (PlatformName.WatchOS, 2, 2, message: "Use 'ObjectType' property.")] + [Deprecated (PlatformName.iOS, 9, 3, message: "Use 'ObjectType' property.")] [NullAllowed, Export ("sampleType", ArgumentSemantic.Strong)] HKSampleType SampleType { get; } @@ -1500,7 +1497,7 @@ namespace HealthKit { [Static] [Export ("predicateForObjectsWithMetadataKey:allowedValues:")] - NSPredicate GetPredicateForMetadataKey (NSString metadataKey, NSObject[] allowedValues); + NSPredicate GetPredicateForMetadataKey (NSString metadataKey, NSObject [] allowedValues); [Static] [Export ("predicateForObjectsWithMetadataKey:operatorType:value:")] @@ -1522,22 +1519,22 @@ namespace HealthKit { [Export ("predicateForObjectsWithUUIDs:")] NSPredicate GetPredicateForObjects (NSSet objectUuids); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("predicateForObjectsFromDevices:")] NSPredicate GetPredicateForObjectsFromDevices (NSSet devices); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("predicateForObjectsWithDeviceProperty:allowedValues:")] NSPredicate GetPredicateForObjectsWithDeviceProperty (string key, NSSet allowedValues); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("predicateForObjectsFromSourceRevisions:")] NSPredicate GetPredicateForObjectsFromSourceRevisions (NSSet sourceRevisions); - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("predicateForObjectsAssociatedWithElectrocardiogram:")] NSPredicate GetPredicateForObjects (HKElectrocardiogram electrocardiogram); @@ -1582,7 +1579,7 @@ namespace HealthKit { [Export ("predicateForWorkoutsWithOperatorType:totalDistance:")] NSPredicate GetPredicateForTotalDistance (NSPredicateOperatorType operatorType, HKQuantity totalDistance); - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Static] [Export ("predicateForWorkoutsWithOperatorType:totalSwimmingStrokeCount:")] NSPredicate GetPredicateForTotalSwimmingStrokeCount (NSPredicateOperatorType operatorType, HKQuantity totalSwimmingStrokeCount); @@ -1592,127 +1589,127 @@ namespace HealthKit { [Export ("predicateForWorkoutsWithOperatorType:totalFlightsClimbed:")] NSPredicate GetPredicateForTotalFlightsClimbed (NSPredicateOperatorType operatorType, HKQuantity totalFlightsClimbed); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutsWithOperatorType:quantityType:sumQuantity:")] NSPredicate GetSumQuantityPredicateForWorkouts (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity sumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutsWithOperatorType:quantityType:minimumQuantity:")] NSPredicate GetMinimumQuantityPredicateForWorkouts (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity minimumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutsWithOperatorType:quantityType:maximumQuantity:")] NSPredicate GetMaximumQuantityPredicateForWorkouts (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity maximumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutsWithOperatorType:quantityType:averageQuantity:")] NSPredicate GetAverageQuantityPredicateForWorkouts (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity averageQuantity); // HKActivitySummaryPredicates - [iOS (9,3), Watch (2,2)] + [iOS (9, 3), Watch (2, 2)] [Static] [Export ("predicateForActivitySummaryWithDateComponents:")] NSPredicate GetPredicateForActivitySummary (NSDateComponents dateComponents); - [iOS (9,3), Watch (2,2)] + [iOS (9, 3), Watch (2, 2)] [Static] [Export ("predicateForActivitySummariesBetweenStartDateComponents:endDateComponents:")] NSPredicate GetPredicateForActivitySummariesBetween (NSDateComponents startDateComponents, NSDateComponents endDateComponents); // @interface HKClinicalRecordPredicates (HKQuery) - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static, Internal] [Export ("predicateForClinicalRecordsWithFHIRResourceType:")] NSPredicate GetPredicateForClinicalRecords (NSString resourceType); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static] [Wrap ("GetPredicateForClinicalRecords (resourceType.GetConstant ()!)")] NSPredicate GetPredicateForClinicalRecords (HKFhirResourceType resourceType); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static, Internal] [Export ("predicateForClinicalRecordsFromSource:FHIRResourceType:identifier:")] NSPredicate GetPredicateForClinicalRecords (HKSource source, string resourceType, string identifier); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static] [Wrap ("GetPredicateForClinicalRecords (source, resourceType.GetConstant (), identifier)")] NSPredicate GetPredicateForClinicalRecords (HKSource source, HKFhirResourceType resourceType, string identifier); // @interface HKElectrocardiogramPredicates (HKQuery) - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("predicateForElectrocardiogramsWithClassification:")] NSPredicate GetPredicateForElectrocardiograms (HKElectrocardiogramClassification classification); - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("predicateForElectrocardiogramsWithSymptomsStatus:")] NSPredicate GetPredicateForElectrocardiograms (HKElectrocardiogramSymptomsStatus symptomsStatus); // @interface HKVerifiableClinicalRecordPredicates (HKQuery) - [iOS (15,0), Watch (8,0)] + [iOS (15, 0), Watch (8, 0)] [Static] [Export ("predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval:")] NSPredicate GetPredicateForVerifiableClinicalRecords (NSDateInterval dateInterval); - + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForCategorySamplesEqualToValues:")] NSPredicate GetPredicateForCategorySamples (NSSet values); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithWorkoutActivityType:")] NSPredicate GetPredicateForWorkoutActivities (HKWorkoutActivityType workoutActivityType); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithOperatorType:duration:")] NSPredicate GetPredicateForWorkoutActivities (NSPredicateOperatorType operatorType, double duration); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithStartDate:endDate:options:")] NSPredicate GetPredicateForWorkoutActivities ([NullAllowed] NSDate startDate, [NullAllowed] NSDate endDate, HKQueryOptions options); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity:")] NSPredicate GetSumQuantityPredicateForWorkoutActivities (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity sumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithOperatorType:quantityType:minimumQuantity:")] NSPredicate GetMinimumQuantityPredicateForWorkoutActivities (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity minimumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithOperatorType:quantityType:maximumQuantity:")] NSPredicate GetMaximumQuantityPredicateForWorkoutActivities (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity maximumQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutActivitiesWithOperatorType:quantityType:averageQuantity:")] NSPredicate GetAverageQuantityPredicateForWorkoutActivities (NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity averageQuantity); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("predicateForWorkoutsWithActivityPredicate:")] NSPredicate GetPredicateForWorkouts (NSPredicate activityPredicate); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKObject))] #if NET [Abstract] @@ -1744,9 +1741,9 @@ namespace HealthKit { delegate void HKSampleQueryResultsHandler (HKSampleQuery query, HKSample [] results, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKSampleQuery interface HKSampleQuery { @@ -1755,23 +1752,23 @@ namespace HealthKit { nuint Limit { get; } [NullAllowed, Export ("sortDescriptors")] - NSSortDescriptor[] SortDescriptors { get; } + NSSortDescriptor [] SortDescriptors { get; } [Export ("initWithSampleType:predicate:limit:sortDescriptors:resultsHandler:")] - NativeHandle Constructor (HKSampleType sampleType, [NullAllowed] NSPredicate predicate, nuint limit, [NullAllowed] NSSortDescriptor[] sortDescriptors, HKSampleQueryResultsHandler resultsHandler); + NativeHandle Constructor (HKSampleType sampleType, [NullAllowed] NSPredicate predicate, nuint limit, [NullAllowed] NSSortDescriptor [] sortDescriptors, HKSampleQueryResultsHandler resultsHandler); - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] [Export ("initWithQueryDescriptors:limit:resultsHandler:")] - NativeHandle Constructor (HKQueryDescriptor[] queryDescriptors, nint limit, HKSampleQueryResultsHandler resultsHandler); + NativeHandle Constructor (HKQueryDescriptor [] queryDescriptors, nint limit, HKSampleQueryResultsHandler resultsHandler); - [Watch (8,0), iOS (15,0)] + [Watch (8, 0), iOS (15, 0)] [Export ("initWithQueryDescriptors:limit:sortDescriptors:resultsHandler:")] - NativeHandle Constructor (HKQueryDescriptor[] queryDescriptors, nint limit, NSSortDescriptor[] sortDescriptors, HKSampleQueryResultsHandler resultsHandler); + NativeHandle Constructor (HKQueryDescriptor [] queryDescriptors, nint limit, NSSortDescriptor [] sortDescriptors, HKSampleQueryResultsHandler resultsHandler); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKSource : NSSecureCoding, NSCopying { @@ -1788,9 +1785,9 @@ namespace HealthKit { delegate void HKSourceQueryCompletionHandler (HKSourceQuery query, NSSet sources, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKSourceQuery interface HKSourceQuery { @@ -1799,9 +1796,9 @@ namespace HealthKit { NativeHandle Constructor (HKSampleType sampleType, [NullAllowed] NSPredicate objectPredicate, HKSourceQueryCompletionHandler completionHandler); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKStatistics : NSSecureCoding, NSCopying { @@ -1849,7 +1846,7 @@ namespace HealthKit { [return: NullAllowed] HKQuantity SumQuantity (); - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("mostRecentQuantityForSource:")] [return: NullAllowed] HKQuantity GetMostRecentQuantity (HKSource source); @@ -1858,7 +1855,7 @@ namespace HealthKit { [NullAllowed, Export ("mostRecentQuantity")] HKQuantity MostRecentQuantity { get; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("mostRecentQuantityDateIntervalForSource:")] [return: NullAllowed] NSDateInterval GetMostRecentQuantityDateInterval (HKSource source); @@ -1871,7 +1868,7 @@ namespace HealthKit { [NullAllowed, Export ("duration")] HKQuantity Duration { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("durationForSource:")] [return: NullAllowed] HKQuantity GetDuration (HKSource source); @@ -1879,9 +1876,9 @@ namespace HealthKit { delegate void HKStatisticsCollectionEnumerator (HKStatistics result, bool stop); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKStatisticsCollection { @@ -1894,7 +1891,7 @@ namespace HealthKit { void EnumerateStatistics (NSDate startDate, NSDate endDate, HKStatisticsCollectionEnumerator handler); [Export ("statistics")] - HKStatistics[] Statistics { get; } + HKStatistics [] Statistics { get; } [Export ("sources")] NSSet Sources { get; } @@ -1904,9 +1901,9 @@ namespace HealthKit { delegate void HKStatisticsCollectionQueryStatisticsUpdateHandler (HKStatisticsCollectionQuery query, HKStatistics statistics, HKStatisticsCollection collection, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKStatisticsCollectionQuery interface HKStatisticsCollectionQuery { @@ -1932,9 +1929,9 @@ namespace HealthKit { delegate void HKStatisticsQueryHandler (HKStatisticsQuery query, HKStatistics result, NSError error); - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKStatisticsQuery interface HKStatisticsQuery { @@ -1943,9 +1940,9 @@ namespace HealthKit { NativeHandle Constructor (HKQuantityType quantityType, [NullAllowed] NSPredicate quantitySamplePredicate, HKStatisticsOptions options, HKStatisticsQueryHandler handler); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] enum HKQuantityTypeIdentifier { [Field ("HKQuantityTypeIdentifierBodyMassIndex")] @@ -2143,38 +2140,38 @@ namespace HealthKit { [Field ("HKQuantityTypeIdentifierDietaryCaffeine")] DietaryCaffeine, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKQuantityTypeIdentifierBasalBodyTemperature")] BasalBodyTemperature, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKQuantityTypeIdentifierDietaryWater")] DietaryWater, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKQuantityTypeIdentifierUVExposure")] UVExposure, [Field ("HKQuantityTypeIdentifierElectrodermalActivity")] ElectrodermalActivity, - [iOS (9,3), Watch (2,2)] + [iOS (9, 3), Watch (2, 2)] [Field ("HKQuantityTypeIdentifierAppleExerciseTime")] AppleExerciseTime, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKQuantityTypeIdentifierDistanceWheelchair")] DistanceWheelchair, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKQuantityTypeIdentifierPushCount")] PushCount, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKQuantityTypeIdentifierDistanceSwimming")] DistanceSwimming, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKQuantityTypeIdentifierSwimmingStrokeCount")] SwimmingStrokeCount, @@ -2186,23 +2183,23 @@ namespace HealthKit { [Field ("HKQuantityTypeIdentifierVO2Max")] VO2Max, - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Field ("HKQuantityTypeIdentifierDistanceDownhillSnowSports")] DistanceDownhillSnowSports, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Field ("HKQuantityTypeIdentifierInsulinDelivery")] InsulinDelivery, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Field ("HKQuantityTypeIdentifierRestingHeartRate")] RestingHeartRate, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Field ("HKQuantityTypeIdentifierWalkingHeartRateAverage")] WalkingHeartRateAverage, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Field ("HKQuantityTypeIdentifierHeartRateVariabilitySDNN")] HeartRateVariabilitySdnn, @@ -2246,7 +2243,8 @@ namespace HealthKit { [Field ("HKQuantityTypeIdentifierWalkingStepLength")] WalkingStepLength, - [Watch (7,4)][iOS (14,5)] + [Watch (7, 4)] + [iOS (14, 5)] [Field ("HKQuantityTypeIdentifierAppleMoveTime")] AppleMoveTime, @@ -2299,71 +2297,69 @@ namespace HealthKit { WaterTemperature, } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] enum HKCorrelationTypeIdentifier { [Field ("HKCorrelationTypeIdentifierBloodPressure")] BloodPressure, - + [Field ("HKCorrelationTypeIdentifierFood")] Food, } - [Watch (6, 0), iOS (13, 0), Mac (13,0)] - enum HKDataTypeIdentifier - { + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] + enum HKDataTypeIdentifier { [Field ("HKDataTypeIdentifierHeartbeatSeries")] HeartbeatSeries, } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] - enum HKCategoryTypeIdentifier - { + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] + enum HKCategoryTypeIdentifier { /**** HKCategoryType Identifiers ****/ [Field ("HKCategoryTypeIdentifierSleepAnalysis")] SleepAnalysis, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierAppleStandHour")] AppleStandHour, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierCervicalMucusQuality")] CervicalMucusQuality, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierOvulationTestResult")] OvulationTestResult, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierMenstrualFlow")] MenstrualFlow, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierIntermenstrualBleeding")] IntermenstrualBleeding, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCategoryTypeIdentifierSexualActivity")] SexualActivity, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKCategoryTypeIdentifierMindfulSession")] MindfulSession, - [Watch (5,2), iOS (12,2)] + [Watch (5, 2), iOS (12, 2)] [Field ("HKCategoryTypeIdentifierHighHeartRateEvent")] HighHeartRateEvent, - [Watch (5,2), iOS (12,2)] + [Watch (5, 2), iOS (12, 2)] [Field ("HKCategoryTypeIdentifierLowHeartRateEvent")] LowHeartRateEvent, - [Watch (5,2), iOS (12,2)] + [Watch (5, 2), iOS (12, 2)] [Field ("HKCategoryTypeIdentifierIrregularHeartRhythmEvent")] IrregularHeartRhythmEvent, @@ -2588,11 +2584,10 @@ namespace HealthKit { ProlongedMenstrualPeriods, } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] - enum HKCharacteristicTypeIdentifier - { + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] + enum HKCharacteristicTypeIdentifier { /**** HKCharacteristicType Identifiers ****/ [Field ("HKCharacteristicTypeIdentifierBiologicalSex")] @@ -2604,22 +2599,22 @@ namespace HealthKit { [Field ("HKCharacteristicTypeIdentifierDateOfBirth")] DateOfBirth, - [iOS (9,0)] + [iOS (9, 0)] [Field ("HKCharacteristicTypeIdentifierFitzpatrickSkinType")] FitzpatrickSkinType, - [iOS (10,0), Watch (3,0)] + [iOS (10, 0), Watch (3, 0)] [Field ("HKCharacteristicTypeIdentifierWheelchairUse")] WheelchairUse, - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Field ("HKCharacteristicTypeIdentifierActivityMoveMode")] ActivityMoveMode, } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; [BaseType (typeof (NSObject))] interface HKUnit : NSCopying, NSSecureCoding { @@ -2705,7 +2700,7 @@ namespace HealthKit { [Export ("mileUnit")] HKUnit Mile { get; } - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("yardUnit")] HKUnit Yard { get; } @@ -2737,12 +2732,12 @@ namespace HealthKit { HKUnit PintImperialUnit { get; } [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("cupUSUnit")] HKUnit CupUSUnit { get; } [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("cupImperialUnit")] HKUnit CupImperialUnit { get; } @@ -2768,7 +2763,7 @@ namespace HealthKit { [Export ("atmosphereUnit")] HKUnit Atmosphere { get; } - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("inchesOfMercuryUnit")] HKUnit InchesOfMercury { get; } @@ -2880,80 +2875,80 @@ namespace HealthKit { HKUnit InternationalUnit { get; } // HKUnit (DecibelAWeightedSoundPressureLevel) Category - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("decibelAWeightedSoundPressureLevelUnit")] HKUnit DecibelAWeightedSoundPressureLevelUnit { get; } // HKUnit (HearingSensitivity) Category - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("decibelHearingLevelUnit")] HKUnit DecibelHearingLevelUnit { get; } // HKUnit (Frequency) Category - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("hertzUnitWithMetricPrefix:")] HKUnit GetHertzUnit (HKMetricPrefix prefix); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("hertzUnit")] HKUnit HertzUnit { get; } // HKUnit (ElectricPotentialDifference) Category - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("voltUnitWithMetricPrefix:")] HKUnit GetVolt (HKMetricPrefix prefix); - [Watch (7,0), iOS (14,0)] + [Watch (7, 0), iOS (14, 0)] [Static] [Export ("voltUnit")] HKUnit Volt { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("diopterUnit")] HKUnit Diopter { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("prismDiopterUnit")] HKUnit PrismDiopter { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("wattUnitWithMetricPrefix:")] HKUnit CreateWatt (HKMetricPrefix prefix); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("wattUnit")] HKUnit Watt { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("radianAngleUnitWithMetricPrefix:")] HKUnit CreateRadianAngle (HKMetricPrefix prefix); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("radianAngleUnit")] HKUnit RadianAngle { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Static] [Export ("degreeAngleUnit")] HKUnit DegreeAngle { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKWorkout interface HKWorkout { @@ -2981,7 +2976,7 @@ namespace HealthKit { [Deprecated (PlatformName.MacOSX, 13, 0)] [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed, Export ("totalSwimmingStrokeCount", ArgumentSemantic.Strong)] HKQuantity TotalSwimmingStrokeCount { get; } @@ -2994,7 +2989,7 @@ namespace HealthKit { [Static, Wrap ("Create (workoutActivityType, startDate, endDate, workoutEvents, totalEnergyBurned, totalDistance, metadata.GetDictionary ())")] HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, HKWorkoutEvent [] workoutEvents, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKMetadata metadata); - + [Static, Export ("workoutWithActivityType:startDate:endDate:duration:totalEnergyBurned:totalDistance:metadata:")] [EditorBrowsable (EditorBrowsableState.Advanced)] // this is not the one we want to be seen (compat only) HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, double duration, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] NSDictionary metadata); @@ -3002,35 +2997,35 @@ namespace HealthKit { [Static, Wrap ("Create (workoutActivityType, startDate, endDate, duration, totalEnergyBurned, totalDistance, metadata.GetDictionary ())")] HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, double duration, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKMetadata metadata); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:device:metadata:")] - HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, [NullAllowed] HKWorkoutEvent[] workoutEvents, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); + HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, [NullAllowed] HKWorkoutEvent [] workoutEvents, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Wrap ("Create (workoutActivityType, startDate, endDate, workoutEvents, totalEnergyBurned, totalDistance, device, metadata.GetDictionary ())")] - HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, HKWorkoutEvent[] workoutEvents, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKDevice device, HKMetadata metadata); + HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, HKWorkoutEvent [] workoutEvents, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKDevice device, HKMetadata metadata); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("workoutWithActivityType:startDate:endDate:duration:totalEnergyBurned:totalDistance:device:metadata:")] HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, double duration, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Wrap ("Create (workoutActivityType, startDate, endDate, duration, totalEnergyBurned, totalDistance, device, metadata.GetDictionary ())")] HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, double duration, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKDevice device, HKMetadata metadata); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Static] [Export ("workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:totalSwimmingStrokeCount:device:metadata:")] - HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, [NullAllowed] HKWorkoutEvent[] workoutEvents, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] HKQuantity totalSwimmingStrokeCount, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); + HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, [NullAllowed] HKWorkoutEvent [] workoutEvents, [NullAllowed] HKQuantity totalEnergyBurned, [NullAllowed] HKQuantity totalDistance, [NullAllowed] HKQuantity totalSwimmingStrokeCount, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Static] [Wrap ("Create (workoutActivityType, startDate, endDate, workoutEvents, totalEnergyBurned, totalDistance, totalSwimmingStrokeCount, device, metadata.GetDictionary ())")] - HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, HKWorkoutEvent[] workoutEvents, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKQuantity totalSwimmingStrokeCount, HKDevice device, HKMetadata metadata); + HKWorkout Create (HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate, HKWorkoutEvent [] workoutEvents, HKQuantity totalEnergyBurned, HKQuantity totalDistance, HKQuantity totalSwimmingStrokeCount, HKDevice device, HKMetadata metadata); [Watch (4, 0), iOS (11, 0)] [Static] @@ -3054,7 +3049,7 @@ namespace HealthKit { [Field ("HKWorkoutSortIdentifierTotalEnergyBurned")] NSString SortIdentifierTotalEnergyBurned { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HKWorkoutSortIdentifierTotalSwimmingStrokeCount")] NSString SortIdentifierTotalSwimmingStrokeCount { get; } @@ -3071,21 +3066,21 @@ namespace HealthKit { [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("workoutActivities", ArgumentSemantic.Copy)] - HKWorkoutActivity[] WorkoutActivities { get; } + HKWorkoutActivity [] WorkoutActivities { get; } [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("allStatistics", ArgumentSemantic.Copy)] NSDictionary AllStatistics { get; } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("statisticsForType:")] [return: NullAllowed] HKStatistics GetStatistics (HKQuantityType quantityType); } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKWorkoutEvent : NSSecureCoding, NSCopying { @@ -3097,11 +3092,11 @@ namespace HealthKit { [Export ("date", ArgumentSemantic.Copy)] NSDate Date { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed, Export ("metadata", ArgumentSemantic.Copy)] NSDictionary WeakMetadata { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Wrap ("WeakMetadata")] HKMetadata Metadata { get; } @@ -3110,7 +3105,7 @@ namespace HealthKit { [Static, Export ("workoutEventWithType:date:")] HKWorkoutEvent Create (HKWorkoutEventType type, NSDate date); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")] [Static] @@ -3118,7 +3113,7 @@ namespace HealthKit { [Export ("workoutEventWithType:date:metadata:")] HKWorkoutEvent Create (HKWorkoutEventType type, NSDate date, NSDictionary metadata); - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")] [Static] @@ -3140,9 +3135,9 @@ namespace HealthKit { NSDateInterval DateInterval { get; } } - [Watch (2,0)] - [iOS (8,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (8, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKWorkoutType interface HKWorkoutType { @@ -3150,9 +3145,9 @@ namespace HealthKit { NSString Identifier { get; } } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKDeletedObject : NSSecureCoding { @@ -3168,9 +3163,9 @@ namespace HealthKit { HKMetadata Metadata { get; } } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKDevice : NSSecureCoding, NSCopying { @@ -3207,27 +3202,26 @@ namespace HealthKit { HKDevice LocalDevice { get; } } - [NoWatch, iOS (10,0), Mac (13,0)] - [BaseType (typeof(HKQuery))] + [NoWatch, iOS (10, 0), Mac (13, 0)] + [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKDocumentQuery - interface HKDocumentQuery - { + interface HKDocumentQuery { [Export ("limit")] nuint Limit { get; } [NullAllowed, Export ("sortDescriptors", ArgumentSemantic.Copy)] - NSSortDescriptor[] SortDescriptors { get; } + NSSortDescriptor [] SortDescriptors { get; } [Export ("includeDocumentData")] bool IncludeDocumentData { get; } [Export ("initWithDocumentType:predicate:limit:sortDescriptors:includeDocumentData:resultsHandler:")] - NativeHandle Constructor (HKDocumentType documentType, [NullAllowed] NSPredicate predicate, nuint limit, [NullAllowed] NSSortDescriptor[] sortDescriptors, bool includeDocumentData, Action resultsHandler); + NativeHandle Constructor (HKDocumentType documentType, [NullAllowed] NSPredicate predicate, nuint limit, [NullAllowed] NSSortDescriptor [] sortDescriptors, bool includeDocumentData, Action resultsHandler); } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [Static] interface HKDevicePropertyKey { [Field ("HKDevicePropertyKeyName")] @@ -3255,25 +3249,25 @@ namespace HealthKit { NSString UdiDeviceIdentifier { get; } } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKFitzpatrickSkinTypeObject : NSCopying, NSSecureCoding { [Export ("skinType")] HKFitzpatrickSkinType SkinType { get; } } - [Watch (3,0), iOS (10,0), Mac (13,0)] - [BaseType (typeof(NSObject))] + [Watch (3, 0), iOS (10, 0), Mac (13, 0)] + [BaseType (typeof (NSObject))] interface HKWheelchairUseObject : NSCopying, NSSecureCoding { [Export ("wheelchairUse")] HKWheelchairUse WheelchairUse { get; } } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKSourceRevision : NSSecureCoding, NSCopying { @@ -3299,7 +3293,7 @@ namespace HealthKit { NativeHandle Constructor (HKSource source, [NullAllowed] string version, [NullAllowed] string productType, NSOperatingSystemVersion operatingSystemVersion); } - [Watch (4,0), iOS (11,0), Mac (13,0)] + [Watch (4, 0), iOS (11, 0), Mac (13, 0)] [Static] interface HKSourceRevisionInfo { @@ -3319,9 +3313,9 @@ namespace HealthKit { //NSOperatingSystemVersion AnyOperatingSystem { get; } } - [Watch (2,0)] - [iOS (9,0)] - [Mac (13,0)] + [Watch (2, 0)] + [iOS (9, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKQueryAnchor : NSSecureCoding, NSCopying { @@ -3332,9 +3326,9 @@ namespace HealthKit { [NoiOS] - [Watch (2,0)] - [Mac (13,0)] - [BaseType (typeof(NSObject))] + [Watch (2, 0)] + [Mac (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKWorkoutSession : NSSecureCoding { [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'WorkoutConfiguration' instead.")] @@ -3345,7 +3339,7 @@ namespace HealthKit { [Export ("locationType")] HKWorkoutSessionLocationType LocationType { get; } - [Watch (3,0)] + [Watch (3, 0)] [Export ("workoutConfiguration", ArgumentSemantic.Copy)] HKWorkoutConfiguration WorkoutConfiguration { get; } @@ -3370,59 +3364,59 @@ namespace HealthKit { [Export ("initWithActivityType:locationType:")] NativeHandle Constructor (HKWorkoutActivityType activityType, HKWorkoutSessionLocationType locationType); - [Watch (3,0)] + [Watch (3, 0)] [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use HKWorkoutSession (HKHealthStore, HKWorkoutConfiguration, out NSError) instead.")] [Export ("initWithConfiguration:error:")] NativeHandle Constructor (HKWorkoutConfiguration workoutConfiguration, out NSError error); - [Watch (5,0)] + [Watch (5, 0)] [Export ("initWithHealthStore:configuration:error:")] NativeHandle Constructor (HKHealthStore healthStore, HKWorkoutConfiguration workoutConfiguration, [NullAllowed] out NSError error); - [Watch (5,0)] + [Watch (5, 0)] [Export ("prepare")] void Prepare (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("startActivityWithDate:")] void StartActivity ([NullAllowed] NSDate date); - [Watch (5,0)] + [Watch (5, 0)] [Export ("stopActivityWithDate:")] void StopActivity ([NullAllowed] NSDate date); - [Watch (5,0)] + [Watch (5, 0)] [Export ("end")] void End (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("pause")] void Pause (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("resume")] void Resume (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("associatedWorkoutBuilder")] HKLiveWorkoutBuilder AssociatedWorkoutBuilder { get; } - [Watch (9,0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] [Export ("beginNewActivityWithConfiguration:date:metadata:")] void BeginNewActivity (HKWorkoutConfiguration workoutConfiguration, NSDate date, [NullAllowed] NSDictionary metadata); - [Watch (9,0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] [Export ("endCurrentActivityOnDate:")] void EndCurrentActivity (NSDate date); - [Watch (9,0), NoTV, NoiOS, NoMacCatalyst] + [Watch (9, 0), NoTV, NoiOS, NoMacCatalyst] [Export ("currentActivity", ArgumentSemantic.Copy)] HKWorkoutActivity CurrentActivity { get; } } [NoiOS] - [Watch (2,0)] - [Mac (13,0)] + [Watch (2, 0)] + [Mac (13, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface HKWorkoutSessionDelegate { @@ -3434,21 +3428,21 @@ namespace HealthKit { [Export ("workoutSession:didFailWithError:")] void DidFail (HKWorkoutSession workoutSession, NSError error); - [Watch (3,0)] + [Watch (3, 0)] // [iOS (10,0)] // Issue filed at: https://github.com/xamarin/maccore/issues/2609 [Export ("workoutSession:didGenerateEvent:")] void DidGenerateEvent (HKWorkoutSession workoutSession, HKWorkoutEvent @event); - [Watch (9,0), NoiOS, NoTV, Mac (13,0), NoMacCatalyst] + [Watch (9, 0), NoiOS, NoTV, Mac (13, 0), NoMacCatalyst] [Export ("workoutSession:didBeginActivityWithConfiguration:date:")] void DidBeginActivity (HKWorkoutSession workoutSession, HKWorkoutConfiguration workoutConfiguration, NSDate date); - [Watch (9,0), NoiOS, NoTV, Mac (13,0), NoMacCatalyst] + [Watch (9, 0), NoiOS, NoTV, Mac (13, 0), NoMacCatalyst] [Export ("workoutSession:didEndActivityWithConfiguration:date:")] void DidEndActivity (HKWorkoutSession workoutSession, HKWorkoutConfiguration workoutConfiguration, NSDate date); } - [iOS (9,3), Watch (2,2), Mac (13,0)] + [iOS (9, 3), Watch (2, 2), Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKActivitySummary : NSSecureCoding, NSCopying { [Export ("dateComponentsForCalendar:")] @@ -3480,7 +3474,7 @@ namespace HealthKit { [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] - [Mac (13,0)] + [Mac (13, 0)] [Export ("appleExerciseTimeGoal", ArgumentSemantic.Strong)] HKQuantity AppleExerciseTimeGoal { get; set; } @@ -3498,24 +3492,26 @@ namespace HealthKit { HKQuantity StandHoursGoal { get; set; } } - [iOS (9,3), Watch (2,2), Mac (13,0)] + [iOS (9, 3), Watch (2, 2), Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKActivitySummaryQuery interface HKActivitySummaryQuery { [NullAllowed, Export ("updateHandler", ArgumentSemantic.Copy)] - Action UpdateHandler { get; set; } + Action UpdateHandler { get; set; } [Export ("initWithPredicate:resultsHandler:")] - NativeHandle Constructor ([NullAllowed] NSPredicate predicate, Action handler); + NativeHandle Constructor ([NullAllowed] NSPredicate predicate, Action handler); } - [iOS (9,3), Watch (2,2), Mac (13,0)] + [iOS (9, 3), Watch (2, 2), Mac (13, 0)] [BaseType (typeof (HKObjectType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKActivitySummaryType interface HKActivitySummaryType { } - [Watch (3,0)][iOS (10,0)][Mac (13,0)] + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] interface HKWorkoutConfiguration : NSCopying, NSSecureCoding { @@ -3532,7 +3528,7 @@ namespace HealthKit { HKQuantity LapLength { get; set; } } - [Watch (4, 0), iOS (11, 0), Mac (13,0)] + [Watch (4, 0), iOS (11, 0), Mac (13, 0)] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] interface HKSeriesType { @@ -3540,18 +3536,18 @@ namespace HealthKit { [Export ("workoutRouteType")] HKSeriesType WorkoutRouteType { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("heartbeatSeriesType")] HKSeriesType HeartbeatSeriesType { get; } } - [iOS (11,0)] - [Watch (4,0)] - [Mac (13,0)] + [iOS (11, 0)] + [Watch (4, 0)] + [Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKSeriesBuilder + interface HKSeriesBuilder #if !MONOMAC : NSSecureCoding #endif @@ -3560,18 +3556,18 @@ namespace HealthKit { void Discard (); } - [iOS (11,0)] - [Watch (4,0)] - [Mac (13,0)] - [BaseType (typeof(HKSample))] + [iOS (11, 0)] + [Watch (4, 0)] + [Mac (13, 0)] + [BaseType (typeof (HKSample))] [DisableDefaultCtor] interface HKSeriesSample : NSCopying { [Export ("count")] nuint Count { get; } } - [Watch (4, 0), iOS (11, 0), Mac (13,0)] - [BaseType (typeof(HKSeriesSample))] + [Watch (4, 0), iOS (11, 0), Mac (13, 0)] + [BaseType (typeof (HKSeriesSample))] [DisableDefaultCtor] interface HKWorkoutRoute : NSCopying { @@ -3606,25 +3602,24 @@ namespace HealthKit { void AddMetadata (HKMetadata metadata, HKWorkoutRouteBuilderAddMetadataHandler completion); } - delegate void HKWorkoutRouteQueryDataHandler (HKWorkoutRouteQuery query, [NullAllowed] CLLocation[] routeData, bool done, [NullAllowed] NSError error); + delegate void HKWorkoutRouteQueryDataHandler (HKWorkoutRouteQuery query, [NullAllowed] CLLocation [] routeData, bool done, [NullAllowed] NSError error); - [Watch (4,0), iOS (11,0), Mac (13,0)] - [BaseType (typeof(HKQuery))] + [Watch (4, 0), iOS (11, 0), Mac (13, 0)] + [BaseType (typeof (HKQuery))] interface HKWorkoutRouteQuery { [Export ("initWithRoute:dataHandler:")] NativeHandle Constructor (HKWorkoutRoute workoutRoute, HKWorkoutRouteBuilderDataHandler dataHandler); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("initWithRoute:dateInterval:dataHandler:")] NativeHandle Constructor (HKWorkoutRoute workoutRoute, NSDateInterval dateInterval, HKWorkoutRouteQueryDataHandler dataHandler); } delegate void HKWorkoutBuilderCompletionHandler (bool success, NSError error); - [Watch (5,0), iOS (12,0), Mac (13,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), iOS (12, 0), Mac (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKWorkoutBuilder - { + interface HKWorkoutBuilder { [NullAllowed, Export ("device", ArgumentSemantic.Copy)] HKDevice Device { get; } @@ -3645,7 +3640,7 @@ namespace HealthKit { HKMetadata Metadata { get; } [Export ("workoutEvents", ArgumentSemantic.Copy)] - HKWorkoutEvent[] WorkoutEvents { get; } + HKWorkoutEvent [] WorkoutEvents { get; } [Export ("initWithHealthStore:configuration:device:")] NativeHandle Constructor (HKHealthStore healthStore, HKWorkoutConfiguration configuration, [NullAllowed] HKDevice device); @@ -3656,11 +3651,11 @@ namespace HealthKit { [Async] [Export ("addSamples:completion:")] - void Add (HKSample[] samples, HKWorkoutBuilderCompletionHandler completionHandler); + void Add (HKSample [] samples, HKWorkoutBuilderCompletionHandler completionHandler); [Async] [Export ("addWorkoutEvents:completion:")] - void Add (HKWorkoutEvent[] workoutEvents, HKWorkoutBuilderCompletionHandler completionHandler); + void Add (HKWorkoutEvent [] workoutEvents, HKWorkoutBuilderCompletionHandler completionHandler); [Async, Protected] [Export ("addMetadata:completion:")] @@ -3694,24 +3689,24 @@ namespace HealthKit { [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("workoutActivities", ArgumentSemantic.Copy)] - HKWorkoutActivity[] WorkoutActivities { get; } + HKWorkoutActivity [] WorkoutActivities { get; } [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("allStatistics", ArgumentSemantic.Copy)] NSDictionary AllStatistics { get; } [Async] - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("addWorkoutActivity:completion:")] void AddWorkoutActivity (HKWorkoutActivity workoutActivity, HKWorkoutBuilderCompletionHandler completion); [Async] - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("updateActivityWithUUID:endDate:completion:")] void UpdateActivity (NSUuid uuid, NSDate endDate, HKWorkoutBuilderCompletionHandler completion); [Async] - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [Export ("updateActivityWithUUID:addMedatata:completion:")] void UpdateActivity (NSUuid uuid, NSDictionary metadata, HKWorkoutBuilderCompletionHandler completion); } @@ -3719,10 +3714,9 @@ namespace HealthKit { delegate void HKQuantitySeriesSampleQueryQuantityDelegate (HKQuantitySeriesSampleQuery query, HKQuantity quantity, NSDate date, bool done, NSError error); delegate void HKQuantitySeriesSampleQueryQuantityHandler (HKQuantitySeriesSampleQuery query, HKQuantity quantity, NSDateInterval date, bool done, NSError error); - [Watch (5,0), iOS (12,0), Mac (13,0)] - [BaseType (typeof(HKQuery))] - interface HKQuantitySeriesSampleQuery - { + [Watch (5, 0), iOS (12, 0), Mac (13, 0)] + [BaseType (typeof (HKQuery))] + interface HKQuantitySeriesSampleQuery { [Watch (6, 0), iOS (13, 0)] [Export ("includeSample")] bool IncludeSample { get; set; } @@ -3731,7 +3725,7 @@ namespace HealthKit { [Export ("orderByQuantitySampleStartDate")] bool OrderByQuantitySampleStartDate { get; set; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithQuantityType:predicate:quantityHandler:")] NativeHandle Constructor (HKQuantityType quantityType, [NullAllowed] NSPredicate predicate, HKQuantitySeriesSampleQueryQuantityHandler quantityHandler); @@ -3743,11 +3737,10 @@ namespace HealthKit { delegate void HKQuantitySeriesSampleBuilderFinishSeriesDelegate (HKQuantitySample [] samples, NSError error); - [Watch (5,0), iOS (12,0), Mac (13,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), iOS (12, 0), Mac (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKQuantitySeriesSampleBuilder - { + interface HKQuantitySeriesSampleBuilder { [Export ("initWithHealthStore:quantityType:startDate:device:")] NativeHandle Constructor (HKHealthStore healthStore, HKQuantityType quantityType, NSDate startDate, [NullAllowed] HKDevice device); @@ -3771,12 +3764,12 @@ namespace HealthKit { [Wrap ("FinishSeries (metadata.GetDictionary (), completionHandler)")] void FinishSeries ([NullAllowed] HKMetadata metadata, HKQuantitySeriesSampleBuilderFinishSeriesDelegate completionHandler); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Async] [Export ("finishSeriesWithMetadata:endDate:completion:")] void FinishSeries ([NullAllowed] NSDictionary metadata, [NullAllowed] NSDate endDate, HKQuantitySeriesSampleBuilderFinishSeriesDelegate completionHandler); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Async] [Wrap ("FinishSeries (metadata.GetDictionary (), endDate, completionHandler)")] void FinishSeries ([NullAllowed] HKMetadata metadata, [NullAllowed] NSDate endDate, HKQuantitySeriesSampleBuilderFinishSeriesDelegate completionHandler); @@ -3785,16 +3778,15 @@ namespace HealthKit { [Export ("discard")] void Discard (); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("insertQuantity:dateInterval:error:")] bool Insert (HKQuantity quantity, NSDateInterval dateInterval, [NullAllowed] out NSError error); } - [Watch (5,0), NoiOS, Mac (13,0)] - [BaseType (typeof(NSObject))] + [Watch (5, 0), NoiOS, Mac (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKLiveWorkoutDataSource - { + interface HKLiveWorkoutDataSource { [Export ("typesToCollect", ArgumentSemantic.Copy)] NSSet TypesToCollect { get; } @@ -3809,11 +3801,10 @@ namespace HealthKit { void DisableCollection (HKQuantityType quantityType); } - [NoWatch, iOS (12,0), Mac (13,0)] + [NoWatch, iOS (12, 0), Mac (13, 0)] [BaseType (typeof (NSObject), Name = "HKFHIRResource")] [DisableDefaultCtor] - interface HKFhirResource : NSSecureCoding, NSCopying - { + interface HKFhirResource : NSSecureCoding, NSCopying { [Internal] [Export ("resourceType")] NSString _ResourceType { get; } @@ -3834,31 +3825,28 @@ namespace HealthKit { HKFhirVersion FhirVersion { get; } } - [Watch (5,0), iOS (12,0), Mac (13,0)] + [Watch (5, 0), iOS (12, 0), Mac (13, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use HKCumulativeQuantitySample instead.")] [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use HKCumulativeQuantitySample instead.")] [DisableDefaultCtor] [BaseType (typeof (HKCumulativeQuantitySample))] - interface HKCumulativeQuantitySeriesSample - { + interface HKCumulativeQuantitySeriesSample { [Export ("sum", ArgumentSemantic.Copy)] HKQuantity Sum { get; } } - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (HKQuantitySample))] [DisableDefaultCtor] - interface HKCumulativeQuantitySample - { + interface HKCumulativeQuantitySample { [Export ("sumQuantity", ArgumentSemantic.Copy)] HKQuantity SumQuantity { get; } } - [NoWatch, iOS (12,0), Mac (13,0)] + [NoWatch, iOS (12, 0), Mac (13, 0)] [DisableDefaultCtor] - [BaseType (typeof(HKSample))] - interface HKClinicalRecord : NSSecureCoding, NSCopying - { + [BaseType (typeof (HKSample))] + interface HKClinicalRecord : NSSecureCoding, NSCopying { [Export ("clinicalType", ArgumentSemantic.Copy)] HKClinicalType ClinicalType { get; } @@ -3869,12 +3857,11 @@ namespace HealthKit { HKFhirResource FhirResource { get; } } - interface IHKLiveWorkoutBuilderDelegate {} - [Watch (5,0), NoiOS] + interface IHKLiveWorkoutBuilderDelegate { } + [Watch (5, 0), NoiOS] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface HKLiveWorkoutBuilderDelegate - { + [BaseType (typeof (NSObject))] + interface HKLiveWorkoutBuilderDelegate { [Abstract] [Export ("workoutBuilder:didCollectDataOfTypes:")] void DidCollectData (HKLiveWorkoutBuilder workoutBuilder, NSSet collectedTypes); @@ -3883,20 +3870,19 @@ namespace HealthKit { [Export ("workoutBuilderDidCollectEvent:")] void DidCollectEvent (HKLiveWorkoutBuilder workoutBuilder); - [Watch (9,0), NoiOS, Mac (13,0), NoMacCatalyst, NoTV] + [Watch (9, 0), NoiOS, Mac (13, 0), NoMacCatalyst, NoTV] [Export ("workoutBuilder:didBeginActivity:")] void DidBeginActivity (HKLiveWorkoutBuilder workoutBuilder, HKWorkoutActivity workoutActivity); - [Watch (9,0), NoiOS, Mac (13,0), NoMacCatalyst, NoTV] + [Watch (9, 0), NoiOS, Mac (13, 0), NoMacCatalyst, NoTV] [Export ("workoutBuilder:didEndActivity:")] void DidEndActivity (HKLiveWorkoutBuilder workoutBuilder, HKWorkoutActivity workoutActivity); } - [Watch (5,0), NoiOS, Mac (13,0)] + [Watch (5, 0), NoiOS, Mac (13, 0)] [DisableDefaultCtor] - [BaseType (typeof(HKWorkoutBuilder))] - interface HKLiveWorkoutBuilder - { + [BaseType (typeof (HKWorkoutBuilder))] + interface HKLiveWorkoutBuilder { [Wrap ("WeakDelegate")] [NullAllowed] IHKLiveWorkoutBuilderDelegate Delegate { get; set; } @@ -3921,11 +3907,10 @@ namespace HealthKit { HKWorkoutActivity CurrentWorkoutActivity { get; } } - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKAudiogramSensitivityPoint - { + interface HKAudiogramSensitivityPoint { [Export ("frequency", ArgumentSemantic.Copy)] HKQuantity Frequency { get; } @@ -3941,24 +3926,22 @@ namespace HealthKit { HKAudiogramSensitivityPoint GetSensitivityPoint (HKQuantity frequency, [NullAllowed] HKQuantity leftEarSensitivity, [NullAllowed] HKQuantity rightEarSensitivity, [NullAllowed] out NSError error); } - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] - interface HKAudiogramSample - { + interface HKAudiogramSample { [Export ("sensitivityPoints", ArgumentSemantic.Copy)] - HKAudiogramSensitivityPoint[] SensitivityPoints { get; } + HKAudiogramSensitivityPoint [] SensitivityPoints { get; } [Static] [Export ("audiogramSampleWithSensitivityPoints:startDate:endDate:metadata:")] - HKAudiogramSample GetAudiogramSample (HKAudiogramSensitivityPoint[] sensitivityPoints, NSDate startDate, NSDate endDate, [NullAllowed] NSDictionary metadata); + HKAudiogramSample GetAudiogramSample (HKAudiogramSensitivityPoint [] sensitivityPoints, NSDate startDate, NSDate endDate, [NullAllowed] NSDictionary metadata); } - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (HKQuantitySample))] [DisableDefaultCtor] - interface HKDiscreteQuantitySample - { + interface HKDiscreteQuantitySample { [Export ("minimumQuantity", ArgumentSemantic.Copy)] HKQuantity Minimum { get; } @@ -3974,21 +3957,20 @@ namespace HealthKit { [Export ("mostRecentQuantityDateInterval", ArgumentSemantic.Copy)] NSDateInterval MostRecentDateInterval { get; } } - - [iOS (13,0)] - [Watch (6,0)] - [Mac (13,0)] + + [iOS (13, 0)] + [Watch (6, 0)] + [Mac (13, 0)] [BaseType (typeof (HKSeriesSample))] [DisableDefaultCtor] - interface HKHeartbeatSeriesSample : NSSecureCoding {} - + interface HKHeartbeatSeriesSample : NSSecureCoding { } + delegate void HKHeartbeatSeriesBuilderCompletionHandler (bool success, NSError error); - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (HKSeriesBuilder))] [DisableDefaultCtor] - interface HKHeartbeatSeriesBuilder - { + interface HKHeartbeatSeriesBuilder { [Static] [Export ("maximumCount")] nuint MaximumCount { get; } @@ -4012,20 +3994,18 @@ namespace HealthKit { delegate void HKHeartbeatSeriesQueryDataHandler (HKHeartbeatSeriesQuery query, double timeSinceSeriesStart, bool precededByGap, bool done, NSError error); - [Watch (6,0), iOS (13,0), Mac (13,0)] + [Watch (6, 0), iOS (13, 0), Mac (13, 0)] [BaseType (typeof (HKQuery))] - interface HKHeartbeatSeriesQuery - { + interface HKHeartbeatSeriesQuery { [Export ("initWithHeartbeatSeries:dataHandler:")] [DesignatedInitializer] NativeHandle Constructor (HKHeartbeatSeriesSample heartbeatSeries, HKHeartbeatSeriesQueryDataHandler dataHandler); } - [Watch (7,0), iOS (14,0), Mac (13,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKElectrocardiogram - interface HKElectrocardiogram - { + interface HKElectrocardiogram { [Export ("numberOfVoltageMeasurements")] nint NumberOfVoltageMeasurements { get; } @@ -4044,22 +4024,20 @@ namespace HealthKit { delegate void HKElectrocardiogramQueryDataHandler (HKElectrocardiogramQuery query, HKElectrocardiogramVoltageMeasurement voltageMeasurement, bool done, NSError error); - [Watch (7,0), iOS (14,0), Mac (13,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] - interface HKElectrocardiogramQuery - { + interface HKElectrocardiogramQuery { [Export ("initWithElectrocardiogram:dataHandler:")] [DesignatedInitializer] NativeHandle Constructor (HKElectrocardiogram electrocardiogram, HKElectrocardiogramQueryDataHandler dataHandler); } - [Watch (7,0), iOS (14,0), Mac (13,0), MacCatalyst (16,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKElectrocardiogramVoltageMeasurement : NSCopying - { + interface HKElectrocardiogramVoltageMeasurement : NSCopying { [Export ("timeSinceSampleStart")] double TimeSinceSampleStart { get; } @@ -4068,11 +4046,10 @@ namespace HealthKit { HKQuantity GetQuantity (HKElectrocardiogramLead lead); } - [NoWatch, iOS (14,0), Mac (13,0)] + [NoWatch, iOS (14, 0), Mac (13, 0)] [BaseType (typeof (NSObject), Name = "HKFHIRVersion")] [DisableDefaultCtor] - interface HKFhirVersion : NSCopying, NSSecureCoding - { + interface HKFhirVersion : NSCopying, NSSecureCoding { [Export ("majorVersion")] nint MajorVersion { get; } @@ -4102,7 +4079,7 @@ namespace HealthKit { HKFhirVersion PrimaryR4Version { get; } } - [Watch (7,0), iOS (14,0), Mac (13,0)] + [Watch (7, 0), iOS (14, 0), Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKActivityMoveModeObject : NSCopying, NSSecureCoding { @@ -4111,7 +4088,7 @@ namespace HealthKit { HKActivityMoveMode ActivityMoveMode { get; } } - [Watch (7,2), iOS (14,3), Mac (13,0)] + [Watch (7, 2), iOS (14, 3), Mac (13, 0)] [Native] enum HKCategoryValueContraceptive : long { Unspecified = 1, @@ -4123,17 +4100,16 @@ namespace HealthKit { Patch, } - [Watch (7,2), iOS (14,3), Mac (13,0)] + [Watch (7, 2), iOS (14, 3), Mac (13, 0)] [Native] enum HKCategoryValueLowCardioFitnessEvent : long { LowFitness = 1, } - [Watch (8,0), iOS (15,0), Mac (13,0)] + [Watch (8, 0), iOS (15, 0), Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKQueryDescriptor : NSCopying, NSSecureCoding - { + interface HKQueryDescriptor : NSCopying, NSSecureCoding { [Export ("sampleType", ArgumentSemantic.Copy)] HKSampleType SampleType { get; } @@ -4145,13 +4121,12 @@ namespace HealthKit { NativeHandle Constructor (HKSampleType sampleType, [NullAllowed] NSPredicate predicate); } - [NoWatch, iOS (15,0), Mac (13,0)] + [NoWatch, iOS (15, 0), Mac (13, 0)] [BaseType (typeof (HKSample))] [DisableDefaultCtor] - interface HKVerifiableClinicalRecord - { + interface HKVerifiableClinicalRecord { [Export ("recordTypes", ArgumentSemantic.Copy)] - string[] RecordTypes { get; } + string [] RecordTypes { get; } [Export ("issuerIdentifier")] string IssuerIdentifier { get; } @@ -4169,13 +4144,13 @@ namespace HealthKit { NSDate ExpirationDate { get; } [Export ("itemNames", ArgumentSemantic.Copy)] - string[] ItemNames { get; } + string [] ItemNames { get; } - [NullAllowed, iOS (15,4), MacCatalyst (15,4)] + [NullAllowed, iOS (15, 4), MacCatalyst (15, 4)] [Export ("sourceType")] string SourceType { get; } - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Export ("dataRepresentation", ArgumentSemantic.Copy)] NSData DataRepresentation { get; } @@ -4187,34 +4162,32 @@ namespace HealthKit { delegate void HKVerifiableClinicalRecordQueryResultHandler (HKVerifiableClinicalRecordQuery query, NSArray records, NSError error); - [NoWatch, iOS (15,0), Mac (13,0)] + [NoWatch, iOS (15, 0), Mac (13, 0)] [BaseType (typeof (HKQuery))] [DisableDefaultCtor] - interface HKVerifiableClinicalRecordQuery - { + interface HKVerifiableClinicalRecordQuery { [Export ("recordTypes", ArgumentSemantic.Copy)] - string[] RecordTypes { get; } + string [] RecordTypes { get; } - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [BindAs (typeof (HKVerifiableClinicalRecordSourceType []))] [Export ("sourceTypes", ArgumentSemantic.Copy)] NSString [] SourceTypes { get; } [Export ("initWithRecordTypes:predicate:resultsHandler:")] - NativeHandle Constructor (string[] recordTypes, [NullAllowed] NSPredicate predicate, HKVerifiableClinicalRecordQueryResultHandler handler); + NativeHandle Constructor (string [] recordTypes, [NullAllowed] NSPredicate predicate, HKVerifiableClinicalRecordQueryResultHandler handler); - [iOS (15,4)] + [iOS (15, 4)] [Export ("initWithRecordTypes:sourceTypes:predicate:resultsHandler:")] #pragma warning disable 8632 // warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. IntPtr Constructor (string [] recordTypes, [BindAs (typeof (HKVerifiableClinicalRecordSourceType []))] NSString [] sourceTypes, [NullAllowed] NSPredicate predicate, Action resultsHandler); #pragma warning restore } - [NoWatch, iOS (15,0), Mac (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, iOS (15, 0), Mac (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKVerifiableClinicalRecordSubject : NSSecureCoding, NSCopying - { + interface HKVerifiableClinicalRecordSubject : NSSecureCoding, NSCopying { [Export ("fullName")] string FullName { get; } @@ -4222,11 +4195,10 @@ namespace HealthKit { NSDateComponents DateOfBirthComponents { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKAttachment : NSSecureCoding, NSCopying - { + interface HKAttachment : NSSecureCoding, NSCopying { [Export ("identifier", ArgumentSemantic.Copy)] NSUuid Identifier { get; } @@ -4248,12 +4220,11 @@ namespace HealthKit { delegate void HKAttachmentStoreCompletionHandler (bool success, NSError error); delegate void HKAttachmentStoreDataHandler ([NullAllowed] NSData dataChunk, [NullAllowed] NSError error, bool done); - delegate void HKAttachmentStoreGetAttachmentCompletionHandler ([NullAllowed] HKAttachment[] attachments, [NullAllowed] NSError error); + delegate void HKAttachmentStoreGetAttachmentCompletionHandler ([NullAllowed] HKAttachment [] attachments, [NullAllowed] NSError error); - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (NSObject))] - interface HKAttachmentStore - { + interface HKAttachmentStore { [Export ("initWithHealthStore:")] NativeHandle Constructor (HKHealthStore healthStore); @@ -4277,11 +4248,10 @@ namespace HealthKit { NSProgress StreamData (HKAttachment attachment, HKAttachmentStoreDataHandler dataHandler); } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKLensSpecification))] [DisableDefaultCtor] - interface HKContactsLensSpecification : NSSecureCoding, NSCopying - { + interface HKContactsLensSpecification : NSSecureCoding, NSCopying { [Export ("initWithSphere:cylinder:axis:addPower:baseCurve:diameter:")] NativeHandle Constructor (HKQuantity sphere, [NullAllowed] HKQuantity cylinder, [NullAllowed] HKQuantity axis, [NullAllowed] HKQuantity addPower, [NullAllowed] HKQuantity baseCurve, [NullAllowed] HKQuantity diameter); @@ -4292,7 +4262,7 @@ namespace HealthKit { HKQuantity Diameter { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKVisionPrescription))] [DisableDefaultCtor] interface HKContactsPrescription // : NSCopying // https://github.com/xamarin/maccore/issues/2610 @@ -4311,11 +4281,10 @@ namespace HealthKit { HKContactsPrescription GetPrescription ([NullAllowed] HKContactsLensSpecification rightEyeSpecification, [NullAllowed] HKContactsLensSpecification leftEyeSpecification, string brand, NSDate dateIssued, [NullAllowed] NSDate expirationDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKLensSpecification))] [DisableDefaultCtor] - interface HKGlassesLensSpecification : NSSecureCoding, NSCopying - { + interface HKGlassesLensSpecification : NSSecureCoding, NSCopying { [Export ("initWithSphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:")] NativeHandle Constructor (HKQuantity sphere, [NullAllowed] HKQuantity cylinder, [NullAllowed] HKQuantity axis, [NullAllowed] HKQuantity addPower, [NullAllowed] HKQuantity vertexDistance, [NullAllowed] HKVisionPrism prism, [NullAllowed] HKQuantity farPupillaryDistance, [NullAllowed] HKQuantity nearPupillaryDistance); @@ -4332,7 +4301,7 @@ namespace HealthKit { HKQuantity NearPupillaryDistance { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKVisionPrescription))] [DisableDefaultCtor] interface HKGlassesPrescription // : NSCopying // https://github.com/xamarin/maccore/issues/2610 @@ -4348,11 +4317,10 @@ namespace HealthKit { HKGlassesPrescription GetPrescription ([NullAllowed] HKGlassesLensSpecification rightEyeSpecification, [NullAllowed] HKGlassesLensSpecification leftEyeSpecification, NSDate dateIssued, [NullAllowed] NSDate expirationDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKLensSpecification - { + interface HKLensSpecification { [Export ("sphere", ArgumentSemantic.Copy)] HKQuantity Sphere { get; } @@ -4366,7 +4334,7 @@ namespace HealthKit { HKQuantity AddPower { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKSample))] [DisableDefaultCtor] interface HKVisionPrescription // : NSCopying // https://github.com/xamarin/maccore/issues/2610 @@ -4384,16 +4352,15 @@ namespace HealthKit { [Export ("prescriptionWithType:dateIssued:expirationDate:device:metadata:")] HKVisionPrescription GetPrescription (HKVisionPrescriptionType type, NSDate dateIssued, [NullAllowed] NSDate expirationDate, [NullAllowed] HKDevice device, [NullAllowed] NSDictionary metadata); - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [Field ("HKVisionPrescriptionTypeIdentifier")] NSString TypeIdentifier { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HKVisionPrism : NSSecureCoding, NSCopying - { + interface HKVisionPrism : NSSecureCoding, NSCopying { [Export ("initWithAmount:angle:eye:")] NativeHandle Constructor (HKQuantity amount, HKQuantity angle, HKVisionEye eye); @@ -4422,7 +4389,7 @@ namespace HealthKit { HKVisionEye Eye { get; } } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HKWorkoutActivity // : NSCoding, NSCopying, NSSecureCoding // https://github.com/xamarin/maccore/issues/2610 @@ -4449,7 +4416,7 @@ namespace HealthKit { double Duration { get; } [Export ("workoutEvents", ArgumentSemantic.Copy)] - HKWorkoutEvent[] WorkoutEvents { get; } + HKWorkoutEvent [] WorkoutEvents { get; } [Export ("allStatistics", ArgumentSemantic.Copy)] NSDictionary AllStatistics { get; } @@ -4459,10 +4426,9 @@ namespace HealthKit { HKStatistics GetStatistics (HKQuantityType quantityType); } - [Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] + [Watch (9, 0), MacCatalyst (16, 0), Mac (13, 0), iOS (16, 0), NoTV] [BaseType (typeof (HKSampleType))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: The -init method is not available on HKPrescriptionType - interface HKPrescriptionType - { + interface HKPrescriptionType { } } diff --git a/src/healthkitui.cs b/src/healthkitui.cs index 8b6f351df7..b9da41e324 100644 --- a/src/healthkitui.cs +++ b/src/healthkitui.cs @@ -13,7 +13,7 @@ using NativeHandle = System.IntPtr; namespace HealthKitUI { - [iOS (9,3), Watch (2,2), MacCatalyst (13,0)] + [iOS (9, 3), Watch (2, 2), MacCatalyst (13, 0)] [BaseType (typeof (UIView))] [DisableDefaultCtor] // nil handle (introspection) interface HKActivityRingView { diff --git a/src/homekit.cs b/src/homekit.cs index af06f21a4a..852e1d4c78 100644 --- a/src/homekit.cs +++ b/src/homekit.cs @@ -16,19 +16,19 @@ interface UIView {} namespace HomeKit { - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Static] partial interface HMErrors { [Field ("HMErrorDomain")] NSString HMErrorDomain { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] - [BaseType (typeof (NSObject), Delegates=new string[] {"WeakDelegate"}, Events=new Type[] {typeof(HMHomeManagerDelegate)})] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (HMHomeManagerDelegate) })] partial interface HMHomeManager { [Export ("delegate", ArgumentSemantic.Weak)] @@ -39,11 +39,11 @@ namespace HomeKit { [Protocolize] HMHomeManagerDelegate Delegate { get; set; } - [Deprecated (PlatformName.MacOSX, 13,0, message: "No longer supported.")] - [Deprecated (PlatformName.iOS, 16,1, message: "No longer supported.")] - [Deprecated (PlatformName.MacCatalyst, 16,1, message: "No longer supported.")] - [Deprecated (PlatformName.WatchOS, 9,1, message: "No longer supported.")] - [Deprecated (PlatformName.TvOS, 16,1, message: "No longer supported.")] + [Deprecated (PlatformName.MacOSX, 13, 0, message: "No longer supported.")] + [Deprecated (PlatformName.iOS, 16, 1, message: "No longer supported.")] + [Deprecated (PlatformName.MacCatalyst, 16, 1, message: "No longer supported.")] + [Deprecated (PlatformName.WatchOS, 9, 1, message: "No longer supported.")] + [Deprecated (PlatformName.TvOS, 16, 1, message: "No longer supported.")] [NullAllowed, Export ("primaryHome", ArgumentSemantic.Retain)] HMHome PrimaryHome { get; } @@ -53,8 +53,8 @@ namespace HomeKit { [NoTV] [NoWatch] [Deprecated (PlatformName.MacOSX, 13, 0, message: "No longer supported.")] - [Deprecated (PlatformName.iOS, 16,1, message: "No longer supported.")] - [Deprecated (PlatformName.MacCatalyst, 16,1, message: "No longer supported.")] + [Deprecated (PlatformName.iOS, 16, 1, message: "No longer supported.")] + [Deprecated (PlatformName.MacCatalyst, 16, 1, message: "No longer supported.")] [Async] [Export ("updatePrimaryHome:completionHandler:")] void UpdatePrimaryHome (HMHome home, Action completion); @@ -70,15 +70,15 @@ namespace HomeKit { [Async] [Export ("removeHome:completionHandler:")] void RemoveHome (HMHome home, Action completion); - - [iOS (13,0), Watch (6,0), TV (13,0), NoMac] + + [iOS (13, 0), Watch (6, 0), TV (13, 0), NoMac] [Export ("authorizationStatus")] HMHomeManagerAuthorizationStatus AuthorizationStatus { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Model, Protocol] [BaseType (typeof (NSObject))] partial interface HMHomeManagerDelegate { @@ -95,21 +95,21 @@ namespace HomeKit { [Export ("homeManager:didRemoveHome:"), EventArgs ("HMHomeManager")] void DidRemoveHome (HMHomeManager manager, HMHome home); - [iOS (13,0), NoWatch, NoTV, NoMac] + [iOS (13, 0), NoWatch, NoTV, NoMac] [NoMacCatalyst] [Deprecated (PlatformName.iOS, 15, 0, message: "This method is no longer supported.")] - [Export("homeManager:didReceiveAddAccessoryRequest:"), EventArgs ("HMHomeManagerAddAccessoryRequest")] + [Export ("homeManager:didReceiveAddAccessoryRequest:"), EventArgs ("HMHomeManagerAddAccessoryRequest")] void DidReceiveAddAccessoryRequest (HMHomeManager manager, HMAddAccessoryRequest request); - - [iOS (13,0), Watch (6,0), TV (13,0), NoMac] - [Export("homeManager:didUpdateAuthorizationStatus:"), EventArgs ("HMHomeManagerAuthorizationStatus")] + + [iOS (13, 0), Watch (6, 0), TV (13, 0), NoMac] + [Export ("homeManager:didUpdateAuthorizationStatus:"), EventArgs ("HMHomeManagerAuthorizationStatus")] void DidUpdateAuthorizationStatus (HMHomeManager manager, HMHomeManagerAuthorizationStatus status); } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] - [BaseType (typeof (NSObject), Delegates=new string[] {"WeakDelegate"}, Events=new Type[] {typeof(HMAccessoryDelegate)})] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (HMAccessoryDelegate) })] partial interface HMAccessory { [Export ("name")] @@ -121,7 +121,7 @@ namespace HomeKit { [Export ("identifier", ArgumentSemantic.Copy)] NSUuid Identifier { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } @@ -145,9 +145,9 @@ namespace HomeKit { [Export ("identifiersForBridgedAccessories", ArgumentSemantic.Copy)] NSUuid [] IdentifiersForBridgedAccessories { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("uniqueIdentifiersForBridgedAccessories", ArgumentSemantic.Copy)] - NSUuid[] UniqueIdentifiersForBridgedAccessories { get; } + NSUuid [] UniqueIdentifiersForBridgedAccessories { get; } [Export ("room", ArgumentSemantic.Weak)] HMRoom Room { get; } @@ -155,9 +155,9 @@ namespace HomeKit { [Export ("services", ArgumentSemantic.Copy)] HMService [] Services { get; } - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("profiles", ArgumentSemantic.Copy)] - HMAccessoryProfile[] Profiles { get; } + HMAccessoryProfile [] Profiles { get; } [Export ("blocked")] bool Blocked { [Bind ("isBlocked")] get; } @@ -175,7 +175,7 @@ namespace HomeKit { string FirmwareVersion { get; } [NullAllowed] - [Mac (13,0), iOS (16,1), MacCatalyst (16,1), Watch (9,1), TV (16,1)] + [Mac (13, 0), iOS (16, 1), MacCatalyst (16, 1), Watch (9, 1), TV (16, 1)] [Export ("matterNodeID", ArgumentSemantic.Copy)] NSNumber MatterNodeId { get; } @@ -189,24 +189,24 @@ namespace HomeKit { [Export ("identifyWithCompletionHandler:")] void Identify (Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("category", ArgumentSemantic.Strong)] HMAccessoryCategory Category { get; } // HMAccessory(Camera) - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed, Export ("cameraProfiles", ArgumentSemantic.Copy)] HMCameraProfile [] CameraProfiles { get; } - [Watch (4,3), TV (11,3), iOS (11,3)] + [Watch (4, 3), TV (11, 3), iOS (11, 3)] [Export ("supportsIdentify")] bool SupportsIdentify { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Model, Protocol] [BaseType (typeof (NSObject))] partial interface HMAccessoryDelegate { @@ -223,11 +223,11 @@ namespace HomeKit { [Export ("accessoryDidUpdateServices:")] void DidUpdateServices (HMAccessory accessory); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("accessory:didAddProfile:"), EventArgs ("HMAccessoryProfile")] void DidAddProfile (HMAccessory accessory, HMAccessoryProfile profile); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("accessory:didRemoveProfile:"), EventArgs ("HMAccessoryProfile")] void DidRemoveProfile (HMAccessory accessory, HMAccessoryProfile profile); @@ -237,7 +237,7 @@ namespace HomeKit { [Export ("accessory:service:didUpdateValueForCharacteristic:"), EventArgs ("HMAccessoryServiceUpdateCharacteristic")] void DidUpdateValueForCharacteristic (HMAccessory accessory, HMService service, HMCharacteristic characteristic); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("accessory:didUpdateFirmwareVersion:"), EventArgs ("HMAccessoryFirmwareVersion")] void DidUpdateFirmwareVersion (HMAccessory accessory, string firmwareVersion); } @@ -245,9 +245,9 @@ namespace HomeKit { #if !WATCH // __WATCHOS_PROHIBITED [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [NoMacCatalyst] - [BaseType (typeof (NSObject), Delegates=new string[] {"WeakDelegate"}, Events=new Type[] {typeof(HMAccessoryBrowserDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (HMAccessoryBrowserDelegate) })] partial interface HMAccessoryBrowser { [Export ("delegate", ArgumentSemantic.Weak)] @@ -269,7 +269,7 @@ namespace HomeKit { } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [NoMacCatalyst] [Model, Protocol] [BaseType (typeof (NSObject))] @@ -283,36 +283,35 @@ namespace HomeKit { } #endif // !WATCH - [Watch (3,0), TV (10,0), iOS (10,0)] - [MacCatalyst(14,0)] - [BaseType (typeof(NSObject))] + [Watch (3, 0), TV (10, 0), iOS (10, 0)] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface HMAccessoryProfile - { + interface HMAccessoryProfile { [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } [Export ("services", ArgumentSemantic.Strong)] - HMService[] Services { get; } + HMService [] Services { get; } [NullAllowed, Export ("accessory", ArgumentSemantic.Weak)] HMAccessory Accessory { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] partial interface HMAction { - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] partial interface HMActionSet { @@ -345,23 +344,23 @@ namespace HomeKit { void RemoveAction (HMAction action, Action completion); [Internal] - [iOS (9,0)] + [iOS (9, 0)] [Export ("actionSetType")] NSString _ActionSetType { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed] [Export ("lastExecutionDate", ArgumentSemantic.Copy)] NSDate LastExecutionDate { get; } } - [TV (10,0)] - [iOS (9,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [Static] [Internal] interface HMActionSetTypesInternal { @@ -380,14 +379,14 @@ namespace HomeKit { [Field ("HMActionSetTypeUserDefined")] NSString UserDefined { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HMActionSetTypeTriggerOwned")] NSString TriggerOwned { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] partial interface HMCharacteristic { @@ -431,28 +430,28 @@ namespace HomeKit { [Export ("updateAuthorizationData:completionHandler:")] void UpdateAuthorizationData ([NullAllowed] NSData data, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("localizedDescription")] string LocalizedDescription { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } - [iOS (9,0)] - [MacCatalyst (14,0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [Field ("HMCharacteristicKeyPath")] NSString KeyPath { get; } - [iOS (9,0)] - [MacCatalyst (14,0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [Field ("HMCharacteristicValueKeyPath")] NSString ValueKeyPath { get; } } - [TV (10,0)] - [iOS(8,0)] - [MacCatalyst(14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Static] [Internal] interface HMCharacteristicPropertyInternal { @@ -463,18 +462,19 @@ namespace HomeKit { [Field ("HMCharacteristicPropertyWritable")] NSString Writable { get; } - [iOS (9,3)][Watch (2,2)] + [iOS (9, 3)] + [Watch (2, 2)] [Field ("HMCharacteristicPropertyHidden")] NSString Hidden { get; } [Notification] [Field ("HMCharacteristicPropertySupportsEventNotification")] - NSString SupportsEventNotification { get; } + NSString SupportsEventNotification { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst(14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Static] [Internal] interface HMCharacteristicMetadataUnitsInternal { @@ -490,26 +490,27 @@ namespace HomeKit { [Field ("HMCharacteristicMetadataUnitsArcDegree")] NSString ArcDegree { get; } - [iOS (8,3)] + [iOS (8, 3)] [Field ("HMCharacteristicMetadataUnitsSeconds")] NSString Seconds { get; } - [iOS (9,3)][Watch (2,2)] + [iOS (9, 3)] + [Watch (2, 2)] [Field ("HMCharacteristicMetadataUnitsLux")] NSString Lux { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HMCharacteristicMetadataUnitsPartsPerMillion")] NSString PartsPerMillion { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Field ("HMCharacteristicMetadataUnitsMicrogramsPerCubicMeter")] NSString MicrogramsPerCubicMeter { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] partial interface HMCharacteristicMetadata { @@ -536,14 +537,14 @@ namespace HomeKit { [NullAllowed, Export ("manufacturerDescription")] string ManufacturerDescription { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed, Export ("validValues", ArgumentSemantic.Copy)] - NSNumber[] ValidValues { get; } + NSNumber [] ValidValues { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (HMAction))] partial interface HMCharacteristicWriteAction { @@ -578,12 +579,12 @@ namespace HomeKit { #endif } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] - [BaseType (typeof (NSObject), Delegates=new string[] {"WeakDelegate"}, Events=new Type[] {typeof(HMHomeDelegate)})] - partial interface HMHome { + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (HMHomeDelegate) })] + partial interface HMHome { [Export ("delegate", ArgumentSemantic.Weak)] [NullAllowed] @@ -599,7 +600,7 @@ namespace HomeKit { [Export ("primary")] bool Primary { [Bind ("isPrimary")] get; } - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("homeHubState")] HMHomeHubState HomeHubState { get; } @@ -609,7 +610,7 @@ namespace HomeKit { [Export ("updateName:completionHandler:")] void UpdateName (string name, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } @@ -648,16 +649,17 @@ namespace HomeKit { void UnblockAccessory (HMAccessory accessory, Action completion); [Deprecated (PlatformName.iOS, 15, 4, message: "Use 'HMAccessorySetupManager.PerformAccessorySetup' instead.")] - [NoWatch, NoTV, iOS (10,0)][NoMacCatalyst] + [NoWatch, NoTV, iOS (10, 0)] + [NoMacCatalyst] [Async] [Export ("addAndSetupAccessoriesWithCompletionHandler:")] void AddAndSetupAccessories (Action completion); [Deprecated (PlatformName.iOS, 15, 4, message: "Use 'HMAccessorySetupManager.PerformAccessorySetup' instead.")] - [NoWatch, NoTV, iOS (11,3), NoMacCatalyst] + [NoWatch, NoTV, iOS (11, 3), NoMacCatalyst] [Async] [Export ("addAndSetupAccessoriesWithPayload:completionHandler:")] - void AddAndSetupAccessories (HMAccessorySetupPayload payload, Action completion); + void AddAndSetupAccessories (HMAccessorySetupPayload payload, Action completion); // HMHome(HMRoom) @@ -734,7 +736,7 @@ namespace HomeKit { [Export ("executeActionSet:completionHandler:")] void ExecuteActionSet (HMActionSet actionSet, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("builtinActionSetOfType:")] [return: NullAllowed] HMActionSet GetBuiltinActionSet (string actionSetType); @@ -769,35 +771,35 @@ namespace HomeKit { [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'ManageUsers' instead.")] [Async] [Export ("addUserWithCompletionHandler:")] - void AddUser (Action completion); + void AddUser (Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("currentUser", ArgumentSemantic.Strong)] HMUser CurrentUser { get; } [NoTV] [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [Async] [Export ("manageUsersWithCompletionHandler:")] void ManageUsers (Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("homeAccessControlForUser:")] HMHomeAccessControl GetHomeAccessControl (HMUser user); // @interface Matter (HMHome) - [TV (16,1), iOS (16, 1), MacCatalyst (16,1), Watch (9,1)] + [TV (16, 1), iOS (16, 1), MacCatalyst (16, 1), Watch (9, 1)] [Export ("matterControllerID")] string MatterControllerId { get; } - [TV (16,1), iOS (16, 1), MacCatalyst (16,1), Watch (9,1)] + [TV (16, 1), iOS (16, 1), MacCatalyst (16, 1), Watch (9, 1)] [Export ("matterControllerXPCConnectBlock", ArgumentSemantic.Strong)] Func MatterControllerXPCConnectBlock { get; } // constants - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("HMUserFailedAccessoriesKey")] NSString UserFailedAccessoriesKey { get; } @@ -806,9 +808,9 @@ namespace HomeKit { bool SupportsAddingNetworkRouter { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [Model, Protocol] [BaseType (typeof (NSObject))] partial interface HMHomeDelegate { @@ -816,7 +818,7 @@ namespace HomeKit { [Export ("homeDidUpdateName:")] void DidUpdateNameForHome (HMHome home); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("homeDidUpdateAccessControlForCurrentUser:")] void DidUpdateAccessControlForCurrentUser (HMHome home); @@ -904,18 +906,18 @@ namespace HomeKit { [Export ("home:didEncounterError:forAccessory:"), EventArgs ("HMHomeErrorAccessory")] void DidEncounterError (HMHome home, NSError error, HMAccessory accessory); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("home:didUpdateHomeHubState:"), EventArgs ("HMHomeHubState")] void DidUpdateHomeHubState (HMHome home, HMHomeHubState homeHubState); - [Watch (6,1), TV (13,2), iOS (13,2)] + [Watch (6, 1), TV (13, 2), iOS (13, 2)] [Export ("homeDidUpdateSupportedFeatures:")] void DidUpdateSupportedFeatures (HMHome home); } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] partial interface HMRoom { @@ -932,16 +934,16 @@ namespace HomeKit { [Export ("updateName:completionHandler:")] void UpdateName (string name, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - partial interface HMService { + partial interface HMService { [Export ("accessory", ArgumentSemantic.Weak)] HMAccessory Accessory { get; } @@ -975,30 +977,30 @@ namespace HomeKit { [Export ("updateAssociatedServiceType:completionHandler:")] void UpdateAssociatedServiceType ([NullAllowed] string serviceType, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("userInteractive")] bool UserInteractive { [Bind ("isUserInteractive")] get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("localizedDescription")] string LocalizedDescription { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [Export ("primaryService")] bool PrimaryService { [Bind ("isPrimaryService")] get; } - [Watch (3,0), iOS (10,0)] + [Watch (3, 0), iOS (10, 0)] [NullAllowed, Export ("linkedServices", ArgumentSemantic.Copy)] - HMService[] LinkedServices { get; } + HMService [] LinkedServices { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] partial interface HMServiceGroup { @@ -1027,17 +1029,17 @@ namespace HomeKit { [Export ("removeService:completionHandler:")] void RemoveService (HMService service, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (HMTrigger))] - partial interface HMTimerTrigger { + partial interface HMTimerTrigger { [NoTV] [NoWatch] @@ -1076,12 +1078,12 @@ namespace HomeKit { void UpdateRecurrence ([NullAllowed] NSDateComponents recurrence, Action completion); } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] - partial interface HMTrigger { + partial interface HMTrigger { [Export ("name")] string Name { get; } @@ -1119,17 +1121,17 @@ namespace HomeKit { [Export ("enable:completionHandler:")] void Enable (bool enable, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] - partial interface HMZone { + partial interface HMZone { [Export ("name")] string Name { get; } @@ -1155,15 +1157,15 @@ namespace HomeKit { [Export ("removeRoom:completionHandler:")] void RemoveRoom (HMRoom room, Action completion); - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } [Static, Internal] - [iOS (8,0)] - [TV (10,0)] - [MacCatalyst (14,0)] + [iOS (8, 0)] + [TV (10, 0)] + [MacCatalyst (14, 0)] interface HMCharacteristicMetadataFormatKeys { [Field ("HMCharacteristicMetadataFormatBool")] NSString _Bool { get; } @@ -1176,7 +1178,7 @@ namespace HomeKit { [Field ("HMCharacteristicMetadataFormatString")] NSString _String { get; } - + [Field ("HMCharacteristicMetadataFormatArray")] NSString _Array { get; } @@ -1202,23 +1204,23 @@ namespace HomeKit { NSString _Tlv8 { get; } } - [TV (10,0)] - [iOS (8,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (8, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMUser { [Export ("name")] string Name { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } } - [TV (10,0)] - [iOS (9,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: init is unavailable interface HMAccessoryCategory { @@ -1233,9 +1235,9 @@ namespace HomeKit { string LocalizedDescription { get; } } - [TV (10,0)] - [iOS (9,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (HMEvent))] [DisableDefaultCtor] interface HMCharacteristicEvent : NSMutableCopying { @@ -1259,54 +1261,54 @@ namespace HomeKit { void UpdateTriggerValue ([NullAllowed] INSCopying triggerValue, Action completion); } - [TV (10,0)] - [iOS (9,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface HMEvent { [Export ("uniqueIdentifier", ArgumentSemantic.Copy)] NSUuid UniqueIdentifier { get; } - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("isSupportedForHome:")] bool IsSupported (HMHome home); } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] [BaseType (typeof (HMEvent))] - interface HMTimeEvent {} + interface HMTimeEvent { } - [TV (10,0)] - [iOS (9,0)] - [MacCatalyst (14,0)] + [TV (10, 0)] + [iOS (9, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (HMTrigger))] [DisableDefaultCtor] interface HMEventTrigger { [NoTV] [NoWatch] [Export ("initWithName:events:predicate:")] - NativeHandle Constructor (string name, HMEvent[] events, [NullAllowed] NSPredicate predicate); + NativeHandle Constructor (string name, HMEvent [] events, [NullAllowed] NSPredicate predicate); [NoTV] [NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithName:events:endEvents:recurrences:predicate:")] - NativeHandle Constructor (string name, HMEvent[] events, [NullAllowed] HMEvent[] endEvents, [NullAllowed] NSDateComponents[] recurrences, [NullAllowed] NSPredicate predicate); + NativeHandle Constructor (string name, HMEvent [] events, [NullAllowed] HMEvent [] endEvents, [NullAllowed] NSDateComponents [] recurrences, [NullAllowed] NSPredicate predicate); [Export ("events", ArgumentSemantic.Copy)] - HMEvent[] Events { get; } + HMEvent [] Events { get; } [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("endEvents", ArgumentSemantic.Copy)] - HMEvent[] EndEvents { get; } + HMEvent [] EndEvents { get; } [NullAllowed, Export ("predicate", ArgumentSemantic.Copy)] NSPredicate Predicate { get; } [Watch (4, 0), TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("recurrences", ArgumentSemantic.Copy)] - NSDateComponents[] Recurrences { get; } + NSDateComponents [] Recurrences { get; } [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("executeOnce")] @@ -1316,25 +1318,27 @@ namespace HomeKit { [Export ("triggerActivationState", ArgumentSemantic.Assign)] HMEventTriggerActivationState TriggerActivationState { get; } - [Static][Internal] + [Static] + [Internal] [Export ("predicateForEvaluatingTriggerOccurringBeforeSignificantEvent:applyingOffset:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringBeforeSignificantEvent (NSString significantEvent, [NullAllowed] NSDateComponents offset); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("predicateForEvaluatingTriggerOccurringBeforeSignificantEvent:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringBeforeSignificantEvent (HMSignificantTimeEvent significantEvent); - [Static][Internal] + [Static] + [Internal] [Export ("predicateForEvaluatingTriggerOccurringAfterSignificantEvent:applyingOffset:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringAfterSignificantEvent (NSString significantEvent, [NullAllowed] NSDateComponents offset); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("predicateForEvaluatingTriggerOccurringAfterSignificantEvent:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringAfterSignificantEvent (HMSignificantTimeEvent significantEvent); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("predicateForEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringBetweenSignificantEvent (HMSignificantTimeEvent firstSignificantEvent, HMSignificantTimeEvent secondSignificantEvent); @@ -1351,7 +1355,7 @@ namespace HomeKit { [Export ("predicateForEvaluatingTriggerOccurringAfterDateWithComponents:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringAfterDate (NSDateComponents dateComponents); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("predicateForEvaluatingTriggerOccurringBetweenDateWithComponents:secondDateWithComponents:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringBetweenDates (NSDateComponents firstDateComponents, NSDateComponents secondDateComponents); @@ -1360,7 +1364,7 @@ namespace HomeKit { [Export ("predicateForEvaluatingTriggerWithCharacteristic:relatedBy:toValue:")] NSPredicate CreatePredicateForEvaluatingTrigger (HMCharacteristic characteristic, NSPredicateOperatorType operatorType, NSObject value); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Static] [Export ("predicateForEvaluatingTriggerWithPresence:")] NSPredicate CreatePredicateForEvaluatingTrigger (HMPresenceEvent presenceEvent); @@ -1381,17 +1385,17 @@ namespace HomeKit { [NoTV] [NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("updateEvents:completionHandler:")] - void UpdateEvents (HMEvent[] events, Action completion); + void UpdateEvents (HMEvent [] events, Action completion); [NoTV] [NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("updateEndEvents:completionHandler:")] - void UpdateEndEvents (HMEvent[] endEvents, Action completion); + void UpdateEndEvents (HMEvent [] endEvents, Action completion); [NoTV] [NoWatch] @@ -1401,22 +1405,22 @@ namespace HomeKit { [NoTV] [NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("updateRecurrences:completionHandler:")] - void UpdateRecurrences ([NullAllowed] NSDateComponents[] recurrences, Action completion); + void UpdateRecurrences ([NullAllowed] NSDateComponents [] recurrences, Action completion); [NoTV] [NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Async] [Export ("updateExecuteOnce:completionHandler:")] void UpdateExecuteOnce (bool executeOnce, Action completion); } - [iOS (9,0)] - [TV (10,0)] - [MacCatalyst (14,0)] + [iOS (9, 0)] + [TV (10, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (HMAccessControl))] [DisableDefaultCtor] interface HMHomeAccessControl { @@ -1424,9 +1428,9 @@ namespace HomeKit { bool Administrator { [Bind ("isAdministrator")] get; } } - [iOS (9,0)] - [TV (10,0)] - [MacCatalyst (14,0)] + [iOS (9, 0)] + [TV (10, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (HMEvent))] [DisableDefaultCtor] interface HMLocationEvent : NSMutableCopying { @@ -1446,8 +1450,8 @@ namespace HomeKit { void UpdateRegion (CLRegion region, Action completion); } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMLocationEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMLocationEvent))] [DisableDefaultCtor] interface HMMutableLocationEvent { @@ -1460,10 +1464,9 @@ namespace HomeKit { } [NoWatch] - [TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(UIView))] - interface HMCameraView - { + [TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (UIView))] + interface HMCameraView { // inlined ctor [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -1472,21 +1475,20 @@ namespace HomeKit { HMCameraSource CameraSource { get; set; } } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] [Abstract] // documented as such in header file - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface HMCameraSource { - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] [Export ("aspectRatio")] double AspectRatio { get; } } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMAccessoryProfile))] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMAccessoryProfile))] [DisableDefaultCtor] - interface HMCameraProfile - { + interface HMCameraProfile { [NullAllowed, Export ("streamControl", ArgumentSemantic.Strong)] HMCameraStreamControl StreamControl { get; } @@ -1503,14 +1505,13 @@ namespace HomeKit { HMCameraAudioControl MicrophoneControl { get; } } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface HMCameraControl {} + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface HMCameraControl { } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraControl))] - interface HMCameraStreamControl - { + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraControl))] + interface HMCameraStreamControl { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IHMCameraStreamControlDelegate Delegate { get; set; } @@ -1527,13 +1528,12 @@ namespace HomeKit { void StopStream (); } - interface IHMCameraStreamControlDelegate {} + interface IHMCameraStreamControlDelegate { } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface HMCameraStreamControlDelegate - { + [BaseType (typeof (NSObject))] + interface HMCameraStreamControlDelegate { [Export ("cameraStreamControlDidStartStream:")] void DidStartStream (HMCameraStreamControl cameraStreamControl); @@ -1542,24 +1542,22 @@ namespace HomeKit { } // TODO: Type still available for tvOS even if everything in it is __TVOS_PROHIBITED. - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraSource))] - interface HMCameraStream - { - [TV (14,5)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraSource))] + interface HMCameraStream { + [TV (14, 5)] [Export ("audioStreamSetting", ArgumentSemantic.Assign)] HMCameraAudioStreamSetting AudioStreamSetting { get; } - [TV (14,5)] + [TV (14, 5)] [Async] [Export ("updateAudioStreamSetting:completionHandler:")] void UpdateAudioStreamSetting (HMCameraAudioStreamSetting audioStreamSetting, Action completion); } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraControl))] - interface HMCameraSnapshotControl - { + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraControl))] + interface HMCameraSnapshotControl { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IHMCameraSnapshotControlDelegate Delegate { get; set; } @@ -1570,34 +1568,33 @@ namespace HomeKit { void TakeSnapshot (); } - interface IHMCameraSnapshotControlDelegate {} + interface IHMCameraSnapshotControlDelegate { } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface HMCameraSnapshotControlDelegate - { + [BaseType (typeof (NSObject))] + interface HMCameraSnapshotControlDelegate { [Export ("cameraSnapshotControl:didTakeSnapshot:error:")] void DidTakeSnapshot (HMCameraSnapshotControl cameraSnapshotControl, [NullAllowed] HMCameraSnapshot snapshot, [NullAllowed] NSError error); - [iOS (10,1)][Watch (3,1)][TV (10,1)] + [iOS (10, 1)] + [Watch (3, 1)] + [TV (10, 1)] [Export ("cameraSnapshotControlDidUpdateMostRecentSnapshot:")] void DidUpdateMostRecentSnapshot (HMCameraSnapshotControl cameraSnapshotControl); } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraSource))] - interface HMCameraSnapshot - { + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraSource))] + interface HMCameraSnapshot { [Export ("captureDate", ArgumentSemantic.Copy)] NSDate CaptureDate { get; } } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraControl))] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraControl))] [DisableDefaultCtor] - interface HMCameraSettingsControl - { + interface HMCameraSettingsControl { [NullAllowed, Export ("nightVision", ArgumentSemantic.Strong)] HMCharacteristic NightVision { get; } @@ -1626,11 +1623,10 @@ namespace HomeKit { HMCharacteristic ImageMirroring { get; } } - [Watch (3,0), TV (10,0), iOS (10,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCameraControl))] + [Watch (3, 0), TV (10, 0), iOS (10, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCameraControl))] [DisableDefaultCtor] - interface HMCameraAudioControl - { + interface HMCameraAudioControl { [NullAllowed, Export ("mute", ArgumentSemantic.Strong)] HMCharacteristic Mute { get; } @@ -1638,8 +1634,8 @@ namespace HomeKit { HMCharacteristic Volume { get; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMTimeEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMTimeEvent))] [DisableDefaultCtor] interface HMCalendarEvent : NSMutableCopying { @@ -1650,8 +1646,8 @@ namespace HomeKit { NSDateComponents FireDateComponents { get; [NotImplemented] set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCalendarEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCalendarEvent))] [DisableDefaultCtor] interface HMMutableCalendarEvent { @@ -1663,8 +1659,8 @@ namespace HomeKit { NSDateComponents FireDateComponents { get; set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCharacteristicEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCharacteristicEvent))] [DisableDefaultCtor] interface HMMutableCharacteristicEvent : NSMutableCopying { @@ -1680,8 +1676,8 @@ namespace HomeKit { INSCopying TriggerValue { get; set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMEvent))] [DisableDefaultCtor] interface HMCharacteristicThresholdRangeEvent : NSMutableCopying { @@ -1695,8 +1691,8 @@ namespace HomeKit { HMNumberRange ThresholdRange { get; [NotImplemented] set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMCharacteristicThresholdRangeEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMCharacteristicThresholdRangeEvent))] [DisableDefaultCtor] interface HMMutableCharacteristicThresholdRangeEvent { @@ -1712,8 +1708,8 @@ namespace HomeKit { HMNumberRange ThresholdRange { get; set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMTimeEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMTimeEvent))] [DisableDefaultCtor] interface HMDurationEvent : NSMutableCopying { @@ -1724,8 +1720,8 @@ namespace HomeKit { double Duration { get; [NotImplemented] set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMDurationEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMDurationEvent))] [DisableDefaultCtor] interface HMMutableDurationEvent { @@ -1737,8 +1733,8 @@ namespace HomeKit { double Duration { get; set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMNumberRange { @@ -1761,32 +1757,32 @@ namespace HomeKit { NSNumber Max { get; } } - [iOS (13,0), NoWatch, NoMac, NoTV, NoMacCatalyst] - [BaseType (typeof(NSObject))] + [iOS (13, 0), NoWatch, NoMac, NoTV, NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMAccessoryOwnershipToken { - [Export("initWithData:")] + [Export ("initWithData:")] NativeHandle Constructor (NSData data); } - [iOS (13,0), NoWatch, NoMac, NoTV] + [iOS (13, 0), NoWatch, NoMac, NoTV] [NoMacCatalyst] [Deprecated (PlatformName.iOS, 15, 0, message: "This class is no longer supported.")] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMAddAccessoryRequest { [Export ("home", ArgumentSemantic.Strong)] HMHome Home { get; } - + [Export ("accessoryCategory", ArgumentSemantic.Strong)] HMAccessoryCategory AccessoryCategory { get; } - + [Export ("accessoryName")] string AccessoryName { get; } - + [Export ("requiresSetupPayloadURL")] bool RequiresSetupPayloadUrl { get; } - + #if false // marked as deprecated in tvOS headers (where the type does not exists) // https://github.com/xamarin/maccore/issues/1959 @@ -1797,14 +1793,14 @@ namespace HomeKit { [Export ("payloadWithOwnershipToken:")] [return: NullAllowed] HMAccessorySetupPayload GetPayload (HMAccessoryOwnershipToken ownershipToken); - + [Export ("payloadWithURL:ownershipToken:")] [return: NullAllowed] HMAccessorySetupPayload GetPayload (NSUrl setupPayloadUrl, HMAccessoryOwnershipToken ownershipToken); } - [iOS (13,0), Watch (6,0), TV (13,0), NoMac, MacCatalyst (14,0)] - [BaseType (typeof(HMAccessoryProfile))] + [iOS (13, 0), Watch (6, 0), TV (13, 0), NoMac, MacCatalyst (14, 0)] + [BaseType (typeof (HMAccessoryProfile))] [DisableDefaultCtor] interface HMNetworkConfigurationProfile { [Wrap ("WeakDelegate")] @@ -1813,14 +1809,14 @@ namespace HomeKit { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - + [Export ("networkAccessRestricted")] bool NetworkAccessRestricted { [Bind ("isNetworkAccessRestricted")] get; } } - interface IHMNetworkConfigurationProfileDelegate {} + interface IHMNetworkConfigurationProfileDelegate { } - [Watch (6,0), TV (13,0), NoMac, iOS (13,0), MacCatalyst (14,0)] + [Watch (6, 0), TV (13, 0), NoMac, iOS (13, 0), MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -1831,22 +1827,22 @@ namespace HomeKit { [Export ("profileDidUpdateNetworkAccessMode:")] void DidUpdateNetworkAccessMode (HMNetworkConfigurationProfile profile); } - - [NoWatch, NoTV, iOS (11,3), NoMacCatalyst] - [BaseType (typeof(NSObject))] + + [NoWatch, NoTV, iOS (11, 3), NoMacCatalyst] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMAccessorySetupPayload { [Export ("initWithURL:")] NativeHandle Constructor ([NullAllowed] NSUrl setupPayloadUrl); - - [iOS (13,0)] + + [iOS (13, 0)] [Export ("initWithURL:ownershipToken:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl setupPayloadUrl, [NullAllowed] HMAccessoryOwnershipToken ownershipToken); } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMEvent))] [DisableDefaultCtor] interface HMPresenceEvent : NSMutableCopying { @@ -1854,18 +1850,18 @@ namespace HomeKit { NativeHandle Constructor (HMPresenceEventType presenceEventType, HMPresenceEventUserType presenceUserType); [Export ("presenceEventType")] - HMPresenceEventType PresenceEventType { get; [NotImplemented] set; } + HMPresenceEventType PresenceEventType { get; [NotImplemented] set; } [Export ("presenceUserType")] - HMPresenceEventUserType PresenceUserType { get; [NotImplemented] set; } + HMPresenceEventUserType PresenceUserType { get; [NotImplemented] set; } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("HMPresenceKeyPath")] NSString KeyPath { get; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMPresenceEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMPresenceEvent))] [DisableDefaultCtor] interface HMMutablePresenceEvent { @@ -1876,8 +1872,8 @@ namespace HomeKit { HMPresenceEventUserType PresenceUserType { get; /* Radar 33883958: https://trello.com/c/TIlzWzrL*/ [NotImplemented] set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMTimeEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMTimeEvent))] [DisableDefaultCtor] interface HMSignificantTimeEvent : NSMutableCopying { @@ -1904,8 +1900,8 @@ namespace HomeKit { NSDateComponents Offset { get; [NotImplemented] set; } } - [Watch (4,0), TV (11,0), iOS (11,0), MacCatalyst (14,0)] - [BaseType (typeof(HMSignificantTimeEvent))] + [Watch (4, 0), TV (11, 0), iOS (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (HMSignificantTimeEvent))] interface HMMutableSignificantTimeEvent { [EditorBrowsable (EditorBrowsableState.Advanced)] @@ -1935,14 +1931,14 @@ namespace HomeKit { NSDateComponents Offset { get; set; } } - [Watch (4,2), TV (11,2), iOS (11,2), MacCatalyst (14,0)] + [Watch (4, 2), TV (11, 2), iOS (11, 2), MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMAccessControl { } - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15,4)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15, 4)] [BaseType (typeof (NSObject))] interface HMAccessorySetupRequest : NSCopying { @@ -1959,7 +1955,7 @@ namespace HomeKit { string SuggestedAccessoryName { get; set; } } - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15,4)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface HMAccessorySetupResult : NSCopying { @@ -1971,11 +1967,11 @@ namespace HomeKit { NSUuid [] AccessoryUniqueIdentifiers { get; } } - [iOS (15,2), NoWatch, NoTV, NoMacCatalyst] + [iOS (15, 2), NoWatch, NoTV, NoMacCatalyst] [BaseType (typeof (NSObject))] interface HMAccessorySetupManager { [Async] - [iOS (15,4)] + [iOS (15, 4)] [Export ("performAccessorySetupUsingRequest:completionHandler:")] void PerformAccessorySetup (HMAccessorySetupRequest request, Action completion); } diff --git a/src/iad.cs b/src/iad.cs index 3d52ee5d7b..e66d0eac34 100644 --- a/src/iad.cs +++ b/src/iad.cs @@ -17,8 +17,8 @@ namespace iAd { // Xcode 13 (beta1) removed most of the API // AppStore also started to reject apps using those API - [iOS (7,1)] - [Deprecated (PlatformName.iOS, 14,5, message: "Use 'AAAttribution' instead.")] + [iOS (7, 1)] + [Deprecated (PlatformName.iOS, 14, 5, message: "Use 'AAAttribution' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ADClient { @@ -26,12 +26,12 @@ namespace iAd { [Export ("sharedClient")] ADClient SharedClient { get; } - [iOS (8,0)] - [Deprecated (PlatformName.iOS, 13,0)] + [iOS (8, 0)] + [Deprecated (PlatformName.iOS, 13, 0)] [Export ("addClientToSegments:replaceExisting:")] void AddClientToSegments (string [] segmentIdentifiers, bool replaceExisting); - [iOS (9,0)] + [iOS (9, 0)] [Export ("requestAttributionDetailsWithBlock:")] [Async] void RequestAttributionDetails (Action completionHandler); diff --git a/src/identitylookup.cs b/src/identitylookup.cs index e717bba19d..2af00edffa 100644 --- a/src/identitylookup.cs +++ b/src/identitylookup.cs @@ -18,8 +18,10 @@ using NativeHandle = System.IntPtr; namespace IdentityLookup { - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [Native] public enum ILMessageFilterAction : long { None = 0, @@ -29,16 +31,18 @@ namespace IdentityLookup { [Obsolete ("Use 'Junk' instead.")] Filter = Junk, #endif - [iOS (14,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [iOS (14, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] Promotion = 3, - [iOS (14,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [iOS (14, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] Transaction = 4, } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [ErrorDomain ("ILMessageFilterErrorDomain")] [Native] public enum ILMessageFilterError : long { @@ -50,7 +54,9 @@ namespace IdentityLookup { } [iOS (12, 0)] - [NoMac][NoWatch][NoTV] + [NoMac] + [NoWatch] + [NoTV] [Native] enum ILClassificationAction : long { None = 0, @@ -59,10 +65,9 @@ namespace IdentityLookup { ReportJunkAndBlockSender = 3, } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [Native] - public enum ILMessageFilterSubAction : long - { + public enum ILMessageFilterSubAction : long { None = 0, TransactionalOthers = 10000, TransactionalFinance = 10001, @@ -78,15 +83,19 @@ namespace IdentityLookup { PromotionalCoupons = 20002, } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface ILMessageFilterExtension { } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (NSExtensionContext))] interface ILMessageFilterExtensionContext { @@ -98,8 +107,10 @@ namespace IdentityLookup { interface IILMessageFilterQueryHandling { } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [Protocol] interface ILMessageFilterQueryHandling { @@ -108,8 +119,10 @@ namespace IdentityLookup { void HandleQueryRequest (ILMessageFilterQueryRequest queryRequest, ILMessageFilterExtensionContext context, Action completion); } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILMessageFilterQueryRequest : NSSecureCoding { @@ -120,13 +133,15 @@ namespace IdentityLookup { [NullAllowed, Export ("messageBody")] string MessageBody { get; } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [NullAllowed, Export ("receiverISOCountryCode")] string ReceiverIsoCountryCode { get; } } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface ILMessageFilterQueryResponse : NSSecureCoding { @@ -134,13 +149,15 @@ namespace IdentityLookup { [Export ("action", ArgumentSemantic.Assign)] ILMessageFilterAction Action { get; set; } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [Export ("subAction", ArgumentSemantic.Assign)] ILMessageFilterSubAction SubAction { get; set; } } - [iOS (11,0)] - [NoMac][NoWatch][NoTV] + [iOS (11, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILNetworkResponse : NSSecureCoding { @@ -152,8 +169,10 @@ namespace IdentityLookup { NSData Data { get; } } - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (ILClassificationRequest))] [DisableDefaultCtor] interface ILCallClassificationRequest : NSSecureCoding { @@ -162,8 +181,10 @@ namespace IdentityLookup { ILCallCommunication [] CallCommunications { get; } } - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (ILCommunication))] [DisableDefaultCtor] interface ILCallCommunication { @@ -173,16 +194,20 @@ namespace IdentityLookup { } [Abstract] - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILClassificationRequest : NSSecureCoding { } - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILClassificationResponse : NSSecureCoding { @@ -190,7 +215,7 @@ namespace IdentityLookup { [Export ("action", ArgumentSemantic.Assign)] ILClassificationAction Action { get; } - [iOS (12,1)] + [iOS (12, 1)] [NullAllowed, Export ("userString")] string UserString { get; set; } @@ -204,8 +229,10 @@ namespace IdentityLookup { } [Abstract] - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILCommunication : NSSecureCoding { @@ -220,8 +247,10 @@ namespace IdentityLookup { bool IsEqualTo (ILCommunication communication); } - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (ILClassificationRequest))] [DisableDefaultCtor] interface ILMessageClassificationRequest : NSSecureCoding { @@ -230,8 +259,10 @@ namespace IdentityLookup { ILMessageCommunication [] MessageCommunications { get; } } - [iOS (12,0)] - [NoMac][NoWatch][NoTV] + [iOS (12, 0)] + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (ILCommunication))] [DisableDefaultCtor] interface ILMessageCommunication { @@ -243,29 +274,27 @@ namespace IdentityLookup { bool IsEqualTo (ILMessageCommunication communication); } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [Protocol] - interface ILMessageFilterCapabilitiesQueryHandling - { + interface ILMessageFilterCapabilitiesQueryHandling { [Abstract] [Export ("handleCapabilitiesQueryRequest:context:completion:")] void HandleQueryRequest (ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, Action completion); } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [BaseType (typeof (NSObject))] - interface ILMessageFilterCapabilitiesQueryResponse : NSSecureCoding - { + interface ILMessageFilterCapabilitiesQueryResponse : NSSecureCoding { [BindAs (typeof (ILMessageFilterSubAction []))] [Export ("transactionalSubActions", ArgumentSemantic.Copy)] - NSNumber[] TransactionalSubActions { get; set; } + NSNumber [] TransactionalSubActions { get; set; } [BindAs (typeof (ILMessageFilterSubAction []))] [Export ("promotionalSubActions", ArgumentSemantic.Copy)] - NSNumber[] PromotionalSubActions { get; set; } + NSNumber [] PromotionalSubActions { get; set; } } - [NoWatch, NoTV, NoMac, MacCatalyst (16,0), iOS (16,0)] + [NoWatch, NoTV, NoMac, MacCatalyst (16, 0), iOS (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface ILMessageFilterCapabilitiesQueryRequest : NSSecureCoding { diff --git a/src/identitylookupui.cs b/src/identitylookupui.cs index 1d4c1240da..eb7c521f95 100644 --- a/src/identitylookupui.cs +++ b/src/identitylookupui.cs @@ -15,7 +15,7 @@ using IdentityLookup; namespace IdentityLookupUI { - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (NSExtensionContext))] interface ILClassificationUIExtensionContext { @@ -23,7 +23,7 @@ namespace IdentityLookupUI { bool ReadyForClassificationResponse { [Bind ("isReadyForClassificationResponse")] get; set; } } - [iOS (12,0)] + [iOS (12, 0)] [BaseType (typeof (UIViewController))] interface ILClassificationUIExtensionViewController { diff --git a/src/imagecapturecore.cs b/src/imagecapturecore.cs index cf60b9587d..51657ee5ef 100644 --- a/src/imagecapturecore.cs +++ b/src/imagecapturecore.cs @@ -34,7 +34,7 @@ using CoreAnimation; namespace ImageCaptureCore { - interface IICDeviceDelegate {} + interface IICDeviceDelegate { } [Static] interface ICDeviceCapabilities { @@ -153,7 +153,7 @@ namespace ImageCaptureCore { #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICDeviceDelegate { [Abstract] @@ -189,7 +189,7 @@ namespace ImageCaptureCore { void DidReceiveCustomNotification (ICDevice device, NSDictionary notification, NSData data); } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICDevice { [Wrap ("WeakDelegate")] @@ -287,14 +287,14 @@ namespace ImageCaptureCore { void RequestEjectOrDisconnect (); } - interface IICDeviceBrowserDelegate {} + interface IICDeviceBrowserDelegate { } #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICDeviceBrowserDelegate { [Abstract] @@ -319,7 +319,7 @@ namespace ImageCaptureCore { void DidEnumerateLocalDevices (ICDeviceBrowser browser); } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICDeviceBrowser { [Wrap ("WeakDelegate")] @@ -336,7 +336,7 @@ namespace ImageCaptureCore { ICBrowsedDeviceType BrowsedDeviceTypeMask { get; set; } [NullAllowed, Export ("devices")] - ICDevice[] Devices { get; } + ICDevice [] Devices { get; } [NullAllowed, Export ("preferredDevice")] ICDevice PreferredDevice { get; } @@ -350,7 +350,7 @@ namespace ImageCaptureCore { [DisableDefaultCtor] // Created by 'ICCameraDevice'. [Abstract] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICCameraItem { [NullAllowed, Export ("device")] @@ -403,15 +403,15 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] // Created by 'ICCameraDevice'. - [BaseType (typeof(ICCameraItem))] + [BaseType (typeof (ICCameraItem))] interface ICCameraFolder { [NullAllowed, Export ("contents")] - ICCameraItem[] Contents { get; } + ICCameraItem [] Contents { get; } } [DisableDefaultCtor] // Created by 'ICCameraDevice'. - [BaseType (typeof(ICCameraItem))] + [BaseType (typeof (ICCameraItem))] interface ICCameraFile { [Export ("fileSize")] @@ -424,7 +424,7 @@ namespace ImageCaptureCore { double Duration { get; } [NullAllowed, Export ("sidecarFiles")] - ICCameraItem[] SidecarFiles { get; } + ICCameraItem [] SidecarFiles { get; } } #if NET @@ -445,7 +445,7 @@ namespace ImageCaptureCore { [Abstract] [Export ("cameraDevice:didRenameItems:")] - void DidRenameItems (ICCameraDevice camera, ICCameraItem[] items); + void DidRenameItems (ICCameraDevice camera, ICCameraItem [] items); [Abstract] [Export ("cameraDevice:didCompleteDeleteFilesWithError:")] @@ -472,10 +472,10 @@ namespace ImageCaptureCore { void DidBecomeReadyWithCompleteContentCatalog (ICDevice device); [Export ("cameraDevice:didAddItems:")] - void DidAddItems (ICCameraDevice camera, ICCameraItem[] items); + void DidAddItems (ICCameraDevice camera, ICCameraItem [] items); [Export ("cameraDevice:didRemoveItems:")] - void DidRemoveItems (ICCameraDevice camera, ICCameraItem[] items); + void DidRemoveItems (ICCameraDevice camera, ICCameraItem [] items); [Export ("cameraDevice:shouldGetThumbnailOfItem:")] bool ShouldGetThumbnail (ICCameraDevice cameraDevice, ICCameraItem ofItem); @@ -484,14 +484,14 @@ namespace ImageCaptureCore { bool ShouldGetMetadata (ICCameraDevice cameraDevice, ICCameraItem ofItem); } - interface IICCameraDeviceDownloadDelegate {} + interface IICCameraDeviceDownloadDelegate { } #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICCameraDeviceDownloadDelegate { [Export ("didDownloadFile:error:options:contextInfo:")] @@ -501,7 +501,7 @@ namespace ImageCaptureCore { void DidReceiveDownloadProgress (ICCameraFile file, long downloadedBytes, long maxBytes); } - [BaseType (typeof(ICDevice))] + [BaseType (typeof (ICDevice))] [DisableDefaultCtor] // ICDeviceBrowser creates instances of this class interface ICCameraDevice { @@ -515,10 +515,10 @@ namespace ImageCaptureCore { nuint ContentCatalogPercentCompleted { get; } [NullAllowed, Export ("contents")] - ICCameraItem[] Contents { get; } + ICCameraItem [] Contents { get; } [NullAllowed, Export ("mediaFiles")] - ICCameraItem[] MediaFiles { get; } + ICCameraItem [] MediaFiles { get; } [Export ("timeOffset")] double TimeOffset { get; } @@ -534,7 +534,7 @@ namespace ImageCaptureCore { [Export ("filesOfType:")] [return: NullAllowed] - string[] GetFiles (string fileUTType); + string [] GetFiles (string fileUTType); [Export ("requestSyncClock")] void RequestSyncClock (); @@ -549,7 +549,7 @@ namespace ImageCaptureCore { void RequestTakePicture (); [Export ("requestDeleteFiles:")] - void RequestDeleteFiles (ICCameraItem[] files); + void RequestDeleteFiles (ICCameraItem [] files); [Export ("cancelDelete")] void CancelDelete (); @@ -572,7 +572,7 @@ namespace ImageCaptureCore { [DisableDefaultCtor] [Abstract] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICScannerFeature { [Export ("type")] @@ -589,7 +589,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] - [BaseType (typeof(ICScannerFeature))] + [BaseType (typeof (ICScannerFeature))] interface ICScannerFeatureEnumeration { [Export ("currentValue", ArgumentSemantic.Assign)] @@ -599,17 +599,17 @@ namespace ImageCaptureCore { NSObject DefaultValue { get; } [Export ("values")] - NSNumber[] Values { get; } + NSNumber [] Values { get; } [Export ("menuItemLabels")] - string[] MenuItemLabels { get; } + string [] MenuItemLabels { get; } [Export ("menuItemLabelsTooltips")] - string[] MenuItemLabelsTooltips { get; } + string [] MenuItemLabelsTooltips { get; } } [DisableDefaultCtor] - [BaseType (typeof(ICScannerFeature))] + [BaseType (typeof (ICScannerFeature))] interface ICScannerFeatureRange { [Export ("currentValue")] @@ -629,7 +629,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] - [BaseType (typeof(ICScannerFeature))] + [BaseType (typeof (ICScannerFeature))] interface ICScannerFeatureBoolean { [Export ("value")] @@ -637,16 +637,16 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] - [BaseType (typeof(ICScannerFeature))] + [BaseType (typeof (ICScannerFeature))] interface ICScannerFeatureTemplate { [Export ("targets")] - NSMutableArray[] Targets { get; } + NSMutableArray [] Targets { get; } } [DisableDefaultCtor] [Abstract] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICScannerFunctionalUnit { [Export ("type")] @@ -692,10 +692,10 @@ namespace ImageCaptureCore { nuint ScaleFactor { get; set; } [Export ("templates")] - ICScannerFeatureTemplate[] Templates { get; } + ICScannerFeatureTemplate [] Templates { get; } [NullAllowed, Export ("vendorFeatures")] - ICScannerFeature[] VendorFeatures { get; } + ICScannerFeature [] VendorFeatures { get; } [Export ("physicalSize")] CGSize PhysicalSize { get; } @@ -741,7 +741,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] // Created by 'ICScannerDevice'. - [BaseType (typeof(ICScannerFunctionalUnit))] + [BaseType (typeof (ICScannerFunctionalUnit))] interface ICScannerFunctionalUnitFlatbed { [Export ("supportedDocumentTypes")] @@ -755,7 +755,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] // Created by 'ICScannerDevice'. - [BaseType (typeof(ICScannerFunctionalUnit))] + [BaseType (typeof (ICScannerFunctionalUnit))] interface ICScannerFunctionalUnitPositiveTransparency { [Export ("supportedDocumentTypes")] @@ -769,7 +769,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] // Created by 'ICScannerDevice'. - [BaseType (typeof(ICScannerFunctionalUnit))] + [BaseType (typeof (ICScannerFunctionalUnit))] interface ICScannerFunctionalUnitNegativeTransparency { [Export ("supportedDocumentTypes")] @@ -783,7 +783,7 @@ namespace ImageCaptureCore { } [DisableDefaultCtor] // Created by 'ICScannerDevice'. - [BaseType (typeof(ICScannerFunctionalUnit))] + [BaseType (typeof (ICScannerFunctionalUnit))] interface ICScannerFunctionalUnitDocumentFeeder { [Export ("supportedDocumentTypes")] @@ -814,7 +814,7 @@ namespace ImageCaptureCore { bool ReverseFeederPageOrder { get; } } - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface ICScannerBandData { [Export ("fullImageWidth")] @@ -857,7 +857,7 @@ namespace ImageCaptureCore { NSData DataBuffer { get; } } - interface IICScannerDeviceDelegate {} + interface IICScannerDeviceDelegate { } #if NET [Protocol, Model] @@ -890,11 +890,11 @@ namespace ImageCaptureCore { void DidCompleteScan (ICScannerDevice scanner, [NullAllowed] NSError error); } - [BaseType (typeof(ICDevice))] + [BaseType (typeof (ICDevice))] interface ICScannerDevice { [Export ("availableFunctionalUnitTypes")] - NSNumber[] AvailableFunctionalUnitTypes { get; } + NSNumber [] AvailableFunctionalUnitTypes { get; } [Export ("selectedFunctionalUnit")] ICScannerFunctionalUnit SelectedFunctionalUnit { get; } @@ -914,11 +914,11 @@ namespace ImageCaptureCore { [Export ("documentUTI")] string DocumentUti { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("defaultUsername")] string DefaultUsername { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("requestOpenSessionWithCredentials:password:")] void RequestOpenSession (string username, string password); diff --git a/src/imageio.cs b/src/imageio.cs index 3e75180e19..3fb7e7d414 100644 --- a/src/imageio.cs +++ b/src/imageio.cs @@ -63,17 +63,20 @@ namespace ImageIO { [Field ("kCGImagePropertyExifAuxDictionary")] NSString ExifAuxDictionary { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSDictionary")] NSString HeicsDictionary { get; } - [Mac (11,0), iOS (14,0), TV (14,0), Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0), Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPDictionary")] NSString WebPDictionary { get; } - [Mac (11,0), iOS (14,1), TV (14,2), Watch (7,1)] - [MacCatalyst (14,1)] + [Mac (11, 0), iOS (14, 1), TV (14, 2), Watch (7, 1)] + [MacCatalyst (14, 1)] [Field ("kCGImagePropertyTGADictionary")] NSString TgaDictionary { get; } @@ -83,19 +86,23 @@ namespace ImageIO { [Field ("kCGImagePropertyMakerNikonDictionary")] NSString MakerNikonDictionary { get; } - [iOS (8,3)][Mac (10,10)] + [iOS (8, 3)] + [Mac (10, 10)] [Field ("kCGImagePropertyMakerMinoltaDictionary")] NSString MakerMinoltaDictionary { get; } - [iOS (8,3)][Mac (10,10)] + [iOS (8, 3)] + [Mac (10, 10)] [Field ("kCGImagePropertyMakerFujiDictionary")] NSString MakerFujiDictionary { get; } - [iOS (8,3)][Mac (10,10)] + [iOS (8, 3)] + [Mac (10, 10)] [Field ("kCGImagePropertyMakerOlympusDictionary")] NSString MakerOlympusDictionary { get; } - [iOS (8,3)][Mac (10,10)] + [iOS (8, 3)] + [Mac (10, 10)] [Field ("kCGImagePropertyMakerPentaxDictionary")] NSString MakerPentaxDictionary { get; } @@ -192,9 +199,10 @@ namespace ImageIO { NSString ExifSubsecTime { get; } [Field ("kCGImagePropertyExifSubsecTimeOrginal")] NSString ExifSubsecTimeOrginal { get; } - [iOS (10,0)][Mac (10,11)] - [TV (10,0)] - [Watch (3,0)] + [iOS (10, 0)] + [Mac (10, 11)] + [TV (10, 0)] + [Watch (3, 0)] [Field ("kCGImagePropertyExifSubsecTimeOriginal")] NSString ExifSubsecTimeOriginal { get; } [Field ("kCGImagePropertyExifSubsecTimeDigitized")] @@ -275,27 +283,27 @@ namespace ImageIO { // misdocumented (first 4.3, then 5.0) but the constants were not present until 6.x [Field ("kCGImagePropertyExifCameraOwnerName")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifCameraOwnerName { get; } [Field ("kCGImagePropertyExifBodySerialNumber")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifBodySerialNumber { get; } [Field ("kCGImagePropertyExifLensSpecification")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifLensSpecification { get; } [Field ("kCGImagePropertyExifLensMake")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifLensMake { get; } [Field ("kCGImagePropertyExifLensModel")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifLensModel { get; } [Field ("kCGImagePropertyExifLensSerialNumber")] - [Mac (10,9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. + [Mac (10, 9)] // Really introduced in 10.8 (according to header), but as a private symbol in the framework (nm shows it as 's'), so we can't access it. NSString ExifLensSerialNumber { get; } // EXIF Auxiliary Dictionary Keys @@ -332,15 +340,24 @@ namespace ImageIO { [Field ("kCGImagePropertyGIFUnclampedDelayTime")] NSString GIFUnclampedDelayTime { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyGIFCanvasPixelWidth")] NSString GifCanvasPixelWidth { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyGIFCanvasPixelHeight")] NSString GifCanvasPixelHeight { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyGIFFrameInfoArray")] NSString GifFrameInfoArray { get; } @@ -407,7 +424,7 @@ namespace ImageIO { [Field ("kCGImagePropertyGPSDifferental")] NSString GPSDifferental { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Field ("kCGImagePropertyGPSHPositioningError")] NSString GPSHPositioningError { get; } @@ -576,55 +593,68 @@ namespace ImageIO { NSString PNGSoftware { get; } [Field ("kCGImagePropertyPNGTitle")] NSString PNGTitle { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyPNGPixelsAspectRatio")] NSString PNGPixelsAspectRatio { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kCGImagePropertyPNGCompressionFilter")] NSString PNGCompressionFilter { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kCGImagePropertyAPNGLoopCount")] NSString PNGLoopCount { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kCGImagePropertyAPNGDelayTime")] NSString PNGDelayTime { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kCGImagePropertyAPNGUnclampedDelayTime")] NSString PNGUnclampedDelayTime { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyAPNGFrameInfoArray")] NSString ApngFrameInfoArray { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyAPNGCanvasPixelWidth")] NSString ApngCanvasPixelWidth { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyAPNGCanvasPixelHeight")] NSString ApngCanvasPixelHeight { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyPNGComment")] NSString PNGComment { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyPNGDisclaimer")] NSString PNGDisclaimer { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyPNGSource")] NSString PNGSource { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyPNGWarning")] NSString PNGWarning { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] [Field ("kCGImagePropertyPNGTransparency")] NSString PNGTransparency { get; } @@ -665,10 +695,12 @@ namespace ImageIO { [Field ("kCGImagePropertyTIFFPrimaryChromaticities")] NSString TIFFPrimaryChromaticities { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kCGImagePropertyTIFFTileLength")] NSString TIFFTileLength { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kCGImagePropertyTIFFTileWidth")] NSString TIFFTileWidth { get; } @@ -687,387 +719,407 @@ namespace ImageIO { [Field ("kCGImagePropertyDNGLensInfo")] NSString DNGLensInfo { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGBlackLevel")] NSString DNGBlackLevel { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGWhiteLevel")] NSString DNGWhiteLevel { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGCalibrationIlluminant1")] NSString DNGCalibrationIlluminant1 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGCalibrationIlluminant2")] NSString DNGCalibrationIlluminant2 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGColorMatrix1")] NSString DNGColorMatrix1 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGColorMatrix2")] NSString DNGColorMatrix2 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGCameraCalibration1")] NSString DNGCameraCalibration1 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGCameraCalibration2")] NSString DNGCameraCalibration2 { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGAsShotNeutral")] NSString DNGAsShotNeutral { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGAsShotWhiteXY")] NSString DNGAsShotWhiteXY { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGBaselineExposure")] NSString DNGBaselineExposure { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGBaselineNoise")] NSString DNGBaselineNoise { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGBaselineSharpness")] NSString DNGBaselineSharpness { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGPrivateData")] NSString DNGPrivateData { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGCameraCalibrationSignature")] NSString DNGCameraCalibrationSignature { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGProfileCalibrationSignature")] NSString DNGProfileCalibrationSignature { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGNoiseProfile")] NSString DNGNoiseProfile { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGWarpRectilinear")] NSString DNGWarpRectilinear { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGWarpFisheye")] NSString DNGWarpFisheye { get; } - [iOS (10,0)][Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kCGImagePropertyDNGFixVignetteRadial")] NSString DNGFixVignetteRadial { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGActiveArea")] NSString DNGActiveArea { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGAnalogBalance")] NSString DNGAnalogBalance { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGAntiAliasStrength")] NSString DNGAntiAliasStrength { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGAsShotICCProfile")] NSString DNGAsShotICCProfile { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGAsShotPreProfileMatrix")] NSString DNGAsShotPreProfileMatrix { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGAsShotProfileName")] NSString DNGAsShotProfileName { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBaselineExposureOffset")] NSString DNGBaselineExposureOffset { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBayerGreenSplit")] NSString DNGBayerGreenSplit { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBestQualityScale")] NSString DNGBestQualityScale { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBlackLevelDeltaH")] NSString DNGBlackLevelDeltaHorizontal { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBlackLevelDeltaV")] NSString DNGBlackLevelDeltaVertical { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGBlackLevelRepeatDim")] NSString DNGBlackLevelRepeatDim { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGCFALayout")] NSString DNGCfaLayout { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGCFAPlaneColor")] NSString DNGCfaPlaneColor { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGChromaBlurRadius")] NSString DNGChromaBlurRadius { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGColorimetricReference")] NSString DNGColorimetricReference { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGCurrentICCProfile")] NSString DNGCurrentICCProfile { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGCurrentPreProfileMatrix")] NSString DNGCurrentPreProfileMatrix { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGDefaultBlackRender")] NSString DNGDefaultBlackRender { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGDefaultCropOrigin")] NSString DNGDefaultCropOrigin { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGDefaultCropSize")] NSString DNGDefaultCropSize { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGDefaultScale")] NSString DNGDefaultScale { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGDefaultUserCrop")] NSString DNGDefaultUserCrop { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGExtraCameraProfiles")] NSString DNGExtraCameraProfiles { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGForwardMatrix1")] NSString DNGForwardMatrix1 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGForwardMatrix2")] NSString DNGForwardMatrix2 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGLinearizationTable")] NSString DNGLinearizationTable { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGLinearResponseLimit")] NSString DNGLinearResponseLimit { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGMakerNoteSafety")] NSString DNGMakerNoteSafety { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGMaskedAreas")] NSString DNGMaskedAreas { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGNewRawImageDigest")] NSString DNGNewRawImageDigest { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGNoiseReductionApplied")] NSString DNGNoiseReductionApplied { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOpcodeList1")] NSString DNGOpcodeList1 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOpcodeList2")] NSString DNGOpcodeList2 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOpcodeList3")] NSString DNGOpcodeList3 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalBestQualityFinalSize")] NSString DNGOriginalBestQualityFinalSize { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalDefaultCropSize")] NSString DNGOriginalDefaultCropSize { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalDefaultFinalSize")] NSString DNGOriginalDefaultFinalSize { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalRawFileData")] NSString DNGOriginalRawFileData { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalRawFileDigest")] NSString DNGOriginalRawFileDigest { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGOriginalRawFileName")] NSString DNGOriginalRawFileName { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewApplicationName")] NSString DNGPreviewApplicationName { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewApplicationVersion")] NSString DNGPreviewApplicationVersion { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewColorSpace")] NSString DNGPreviewColorSpace { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewDateTime")] NSString DNGPreviewDateTime { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewSettingsDigest")] NSString DNGPreviewSettingsDigest { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGPreviewSettingsName")] NSString DNGPreviewSettingsName { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileCopyright")] NSString DNGProfileCopyright { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileEmbedPolicy")] NSString DNGProfileEmbedPolicy { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileHueSatMapData1")] NSString DNGProfileHueSatMapData1 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileHueSatMapData2")] NSString DNGProfileHueSatMapData2 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileHueSatMapDims")] NSString DNGProfileHueSatMapDims { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileHueSatMapEncoding")] NSString DNGProfileHueSatMapEncoding { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileLookTableData")] NSString DNGProfileLookTableData { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileLookTableDims")] NSString DNGProfileLookTableDims { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileLookTableEncoding")] NSString DNGProfileLookTableEncoding { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileName")] NSString DNGProfileName { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGProfileToneCurve")] NSString DNGProfileToneCurve { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGRawDataUniqueID")] NSString DNGRawDataUniqueId { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGRawImageDigest")] NSString DNGRawImageDigest { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGRawToPreviewGain")] NSString DNGRawToPreviewGain { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGReductionMatrix1")] NSString DNGReductionMatrix1 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGReductionMatrix2")] NSString DNGReductionMatrix2 { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGRowInterleaveFactor")] NSString DNGRowInterleaveFactor { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGShadowScale")] NSString DNGShadowScale { get; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Field ("kCGImagePropertyDNGSubTileBlockSize")] NSString DNGSubTileBlockSize { get; } @@ -1123,27 +1175,45 @@ namespace ImageIO { // HEICS - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSLoopCount")] NSString HeicsLoopCount { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSDelayTime")] NSString HeicsDelayTime { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSUnclampedDelayTime")] NSString HeicsSUnclampedDelayTime { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSCanvasPixelWidth")] NSString HeicsCanvasPixelWidth { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSCanvasPixelHeight")] NSString HeicsCanvasPixelHeight { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyHEICSFrameInfoArray")] NSString HeicsFrameInfoArray { get; } @@ -1205,917 +1275,1490 @@ namespace ImageIO { [Field ("kCGImagePropertyMakerCanonAspectRatioInfo")] NSString MakerCanonAspectRatioInfo { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifISOSpeed")] NSString ExifISOSpeed { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifISOSpeedLatitudeyyy")] NSString ExifISOSpeedLatitudeYyy { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifISOSpeedLatitudezzz")] NSString ExifISOSpeedLatitudeZzz { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifRecommendedExposureIndex")] NSString ExifRecommendedExposureIndex { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifSensitivityType")] NSString ExifSensitivityType { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Field ("kCGImagePropertyExifStandardOutputSensitivity")] NSString ExifStandardOutputSensitivity { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyExifOffsetTime")] NSString ExifOffsetTime { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyExifOffsetTimeOriginal")] NSString ExifOffsetTimeOriginal { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImagePropertyExifOffsetTimeDigitized")] NSString ExifOffsetTimeDigitized { get; } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Field ("kCGImagePropertyMakerAppleDictionary")] NSString MakerAppleDictionary { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyImageCount")] NSString ImageCount { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyImageIndex")] NSString ImageIndex { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyWidth")] NSString Width { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyHeight")] NSString Height { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyBytesPerRow")] NSString BytesPerRow { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyNamedColorSpace")] NSString NamedColorSpace { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyPixelFormat")] NSString PixelFormat { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyImages")] NSString Images { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyThumbnailImages")] NSString ThumbnailImages { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyAuxiliaryData")] NSString AuxiliaryData { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyAuxiliaryDataType")] NSString AuxiliaryDataType { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("kCGImagePropertyFileContentsDictionary")] NSString FileContentsDictionary { get; } - - [Mac (10, 9)][iOS (11,3)][TV (11,3)][Watch (4,3)] + + [Mac (10, 9)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyOpenEXRDictionary")] NSString OpenExrDictionary { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAboutCvTerm")] NSString IPTCExtAboutCvTerm { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAboutCvTermCvId")] NSString IPTCExtAboutCvTermCvId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAboutCvTermId")] NSString IPTCExtAboutCvTermId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAboutCvTermName")] NSString IPTCExtAboutCvTermName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAboutCvTermRefinedAbout")] NSString IPTCExtAboutCvTermRefinedAbout { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAddlModelInfo")] NSString IPTCExtAddlModelInfo { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkOrObject")] NSString IPTCExtArtworkOrObject { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCircaDateCreated")] NSString IPTCExtArtworkCircaDateCreated { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkContentDescription")] NSString IPTCExtArtworkContentDescription { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkContributionDescription")] NSString IPTCExtArtworkContributionDescription { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCopyrightNotice")] NSString IPTCExtArtworkCopyrightNotice { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCreator")] NSString IPTCExtArtworkCreator { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCreatorID")] NSString IPTCExtArtworkCreatorId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCopyrightOwnerID")] NSString IPTCExtArtworkCopyrightOwnerId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkCopyrightOwnerName")] NSString IPTCExtArtworkCopyrightOwnerName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkLicensorID")] NSString IPTCExtArtworkLicensorId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkLicensorName")] NSString IPTCExtArtworkLicensorName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkDateCreated")] NSString IPTCExtArtworkDateCreated { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkPhysicalDescription")] NSString IPTCExtArtworkPhysicalDescription { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkSource")] NSString IPTCExtArtworkSource { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkSourceInventoryNo")] NSString IPTCExtArtworkSourceInventoryNo { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkSourceInvURL")] NSString IPTCExtArtworkSourceInvUrl { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkStylePeriod")] NSString IPTCExtArtworkStylePeriod { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtArtworkTitle")] NSString IPTCExtArtworkTitle { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAudioBitrate")] NSString IPTCExtAudioBitrate { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAudioBitrateMode")] NSString IPTCExtAudioBitrateMode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtAudioChannelCount")] NSString IPTCExtAudioChannelCount { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCircaDateCreated")] NSString IPTCExtCircaDateCreated { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContainerFormat")] NSString IPTCExtContainerFormat { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContainerFormatIdentifier")] NSString IPTCExtContainerFormatIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContainerFormatName")] NSString IPTCExtContainerFormatName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContributor")] NSString IPTCExtContributor { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContributorIdentifier")] NSString IPTCExtContributorIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContributorName")] NSString IPTCExtContributorName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtContributorRole")] NSString IPTCExtContributorRole { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCopyrightYear")] NSString IPTCExtCopyrightYear { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCreator")] NSString IPTCExtCreator { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCreatorIdentifier")] NSString IPTCExtCreatorIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCreatorName")] NSString IPTCExtCreatorName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtCreatorRole")] NSString IPTCExtCreatorRole { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtControlledVocabularyTerm")] NSString IPTCExtControlledVocabularyTerm { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreen")] NSString IPTCExtDataOnScreen { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegion")] NSString IPTCExtDataOnScreenRegion { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionD")] NSString IPTCExtDataOnScreenRegionD { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionH")] NSString IPTCExtDataOnScreenRegionH { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionText")] NSString IPTCExtDataOnScreenRegionText { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionUnit")] NSString IPTCExtDataOnScreenRegionUnit { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionW")] NSString IPTCExtDataOnScreenRegionW { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionX")] NSString IPTCExtDataOnScreenRegionX { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDataOnScreenRegionY")] NSString IPTCExtDataOnScreenRegionY { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDigitalImageGUID")] NSString IPTCExtDigitalImageGuid { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDigitalSourceFileType")] NSString IPTCExtDigitalSourceFileType { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDigitalSourceType")] NSString IPTCExtDigitalSourceType { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDopesheet")] NSString IPTCExtDopesheet { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDopesheetLink")] NSString IPTCExtDopesheetLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDopesheetLinkLink")] NSString IPTCExtDopesheetLinkLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier")] NSString IPTCExtDopesheetLinkLinkQualifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEmbdEncRightsExpr")] NSString IPTCExtEmbdEncRightsExpr { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr")] NSString IPTCExtEmbeddedEncodedRightsExpr { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType")] NSString IPTCExtEmbeddedEncodedRightsExprType { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID")] NSString IPTCExtEmbeddedEncodedRightsExprLangId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEpisode")] NSString IPTCExtEpisode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEpisodeIdentifier")] NSString IPTCExtEpisodeIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEpisodeName")] NSString IPTCExtEpisodeName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEpisodeNumber")] NSString IPTCExtEpisodeNumber { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtEvent")] NSString IPTCExtEvent { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtShownEvent")] NSString IPTCExtShownEvent { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtShownEventIdentifier")] NSString IPTCExtShownEventIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtShownEventName")] NSString IPTCExtShownEventName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtExternalMetadataLink")] NSString IPTCExtExternalMetadataLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtFeedIdentifier")] NSString IPTCExtFeedIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtGenre")] NSString IPTCExtGenre { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtGenreCvId")] NSString IPTCExtGenreCvId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtGenreCvTermId")] NSString IPTCExtGenreCvTermId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtGenreCvTermName")] NSString IPTCExtGenreCvTermName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtGenreCvTermRefinedAbout")] NSString IPTCExtGenreCvTermRefinedAbout { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtHeadline")] NSString IPTCExtHeadline { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtIPTCLastEdited")] NSString IPTCExtIPTCLastEdited { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLinkedEncRightsExpr")] NSString IPTCExtLinkedEncRightsExpr { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLinkedEncodedRightsExpr")] NSString IPTCExtLinkedEncodedRightsExpr { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLinkedEncodedRightsExprType")] NSString IPTCExtLinkedEncodedRightsExprType { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID")] NSString IPTCExtLinkedEncodedRightsExprLangId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationCreated")] NSString IPTCExtLocationCreated { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationCity")] NSString IPTCExtLocationCity { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationCountryCode")] NSString IPTCExtLocationCountryCode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationCountryName")] NSString IPTCExtLocationCountryName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationGPSAltitude")] NSString IPTCExtLocationGpsAltitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationGPSLatitude")] NSString IPTCExtLocationGpsLatitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationGPSLongitude")] NSString IPTCExtLocationGpsLongitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationIdentifier")] NSString IPTCExtLocationIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationLocationId")] NSString IPTCExtLocationLocationId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationLocationName")] NSString IPTCExtLocationLocationName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationProvinceState")] NSString IPTCExtLocationProvinceState { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationSublocation")] NSString IPTCExtLocationSublocation { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationWorldRegion")] NSString IPTCExtLocationWorldRegion { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtLocationShown")] NSString IPTCExtLocationShown { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtMaxAvailHeight")] NSString IPTCExtMaxAvailHeight { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtMaxAvailWidth")] NSString IPTCExtMaxAvailWidth { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtModelAge")] NSString IPTCExtModelAge { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtOrganisationInImageCode")] NSString IPTCExtOrganisationInImageCode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtOrganisationInImageName")] NSString IPTCExtOrganisationInImageName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonHeard")] NSString IPTCExtPersonHeard { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonHeardIdentifier")] NSString IPTCExtPersonHeardIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonHeardName")] NSString IPTCExtPersonHeardName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImage")] NSString IPTCExtPersonInImage { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageWDetails")] NSString IPTCExtPersonInImageWDetails { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageCharacteristic")] NSString IPTCExtPersonInImageCharacteristic { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageCvTermCvId")] NSString IPTCExtPersonInImageCvTermCvId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageCvTermId")] NSString IPTCExtPersonInImageCvTermId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageCvTermName")] NSString IPTCExtPersonInImageCvTermName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout")] NSString IPTCExtPersonInImageCvTermRefinedAbout { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageDescription")] NSString IPTCExtPersonInImageDescription { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageId")] NSString IPTCExtPersonInImageId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPersonInImageName")] NSString IPTCExtPersonInImageName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtProductInImage")] NSString IPTCExtProductInImage { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtProductInImageDescription")] NSString IPTCExtProductInImageDescription { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtProductInImageGTIN")] NSString IPTCExtProductInImageGtin { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtProductInImageName")] NSString IPTCExtProductInImageName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPublicationEvent")] NSString IPTCExtPublicationEvent { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPublicationEventDate")] NSString IPTCExtPublicationEventDate { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPublicationEventIdentifier")] NSString IPTCExtPublicationEventIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtPublicationEventName")] NSString IPTCExtPublicationEventName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRating")] NSString IPTCExtRating { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRatingRegion")] NSString IPTCExtRatingRatingRegion { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionCity")] NSString IPTCExtRatingRegionCity { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionCountryCode")] NSString IPTCExtRatingRegionCountryCode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionCountryName")] NSString IPTCExtRatingRegionCountryName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionGPSAltitude")] NSString IPTCExtRatingRegionGpsAltitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionGPSLatitude")] NSString IPTCExtRatingRegionGpsLatitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionGPSLongitude")] NSString IPTCExtRatingRegionGpsLongitude { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionIdentifier")] NSString IPTCExtRatingRegionIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionLocationId")] NSString IPTCExtRatingRegionLocationId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionLocationName")] NSString IPTCExtRatingRegionLocationName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionProvinceState")] NSString IPTCExtRatingRegionProvinceState { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionSublocation")] NSString IPTCExtRatingRegionSublocation { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingRegionWorldRegion")] NSString IPTCExtRatingRegionWorldRegion { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingScaleMaxValue")] NSString IPTCExtRatingScaleMaxValue { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingScaleMinValue")] NSString IPTCExtRatingScaleMinValue { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingSourceLink")] NSString IPTCExtRatingSourceLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingValue")] NSString IPTCExtRatingValue { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRatingValueLogoLink")] NSString IPTCExtRatingValueLogoLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRegistryID")] NSString IPTCExtRegistryId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRegistryEntryRole")] NSString IPTCExtRegistryEntryRole { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRegistryItemID")] NSString IPTCExtRegistryItemId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtRegistryOrganisationID")] NSString IPTCExtRegistryOrganisationId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtReleaseReady")] NSString IPTCExtReleaseReady { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeason")] NSString IPTCExtSeason { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeasonIdentifier")] NSString IPTCExtSeasonIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeasonName")] NSString IPTCExtSeasonName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeasonNumber")] NSString IPTCExtSeasonNumber { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeries")] NSString IPTCExtSeries { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeriesIdentifier")] NSString IPTCExtSeriesIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSeriesName")] NSString IPTCExtSeriesName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtStorylineIdentifier")] NSString IPTCExtStorylineIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtStreamReady")] NSString IPTCExtStreamReady { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtStylePeriod")] NSString IPTCExtStylePeriod { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSupplyChainSource")] NSString IPTCExtSupplyChainSource { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSupplyChainSourceIdentifier")] NSString IPTCExtSupplyChainSourceIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtSupplyChainSourceName")] NSString IPTCExtSupplyChainSourceName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTemporalCoverage")] NSString IPTCExtTemporalCoverage { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTemporalCoverageFrom")] NSString IPTCExtTemporalCoverageFrom { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTemporalCoverageTo")] NSString IPTCExtTemporalCoverageTo { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTranscript")] NSString IPTCExtTranscript { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTranscriptLink")] NSString IPTCExtTranscriptLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTranscriptLinkLink")] NSString IPTCExtTranscriptLinkLink { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier")] NSString IPTCExtTranscriptLinkLinkQualifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoBitrate")] NSString IPTCExtVideoBitrate { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoBitrateMode")] NSString IPTCExtVideoBitrateMode { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoDisplayAspectRatio")] NSString IPTCExtVideoDisplayAspectRatio { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoEncodingProfile")] NSString IPTCExtVideoEncodingProfile { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoShotType")] NSString IPTCExtVideoShotType { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoShotTypeIdentifier")] NSString IPTCExtVideoShotTypeIdentifier { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoShotTypeName")] NSString IPTCExtVideoShotTypeName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVideoStreamsCount")] NSString IPTCExtVideoStreamsCount { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtVisualColor")] NSString IPTCExtVisualColor { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtWorkflowTag")] NSString IPTCExtWorkflowTag { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtWorkflowTagCvId")] NSString IPTCExtWorkflowTagCvId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtWorkflowTagCvTermId")] NSString IPTCExtWorkflowTagCvTermId { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtWorkflowTagCvTermName")] NSString IPTCExtWorkflowTagCvTermName { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout")] NSString IPTCExtWorkflowTagCvTermRefinedAbout { get; } - [Mac (10, 9)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 9)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImagePropertyOpenEXRAspectRatio")] NSString OpenExrAspectRatio { get; } - [Watch (4, 0), Mac (10, 13), iOS (11, 0), TV (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kCGImagePropertyPrimaryImage")] NSString PrimaryImage { get; } // WebP Dictionary Keys - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPLoopCount")] NSString WebPLoopCount { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPDelayTime")] NSString WebPDelayTime { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPUnclampedDelayTime")] NSString WebPUnclampedDelayTime { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPFrameInfoArray")] NSString WebPFrameInfoArray { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPCanvasPixelWidth")] NSString WebPCanvasPixelWidth { get; } - [Mac (11,0)][iOS (14,0)][TV (14,0)][Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [MacCatalyst (14, 0)] [Field ("kCGImagePropertyWebPCanvasPixelHeight")] NSString WebPCanvasPixelHeight { get; } - [Mac (11,0), iOS (14,1), TV (14,2), Watch (7,1)] - [MacCatalyst (14,1)] + [Mac (11, 0), iOS (14, 1), TV (14, 2), Watch (7, 1)] + [MacCatalyst (14, 1)] [Field ("kCGImagePropertyTGACompression")] NSString TgaCompression { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImageIndexLeft")] NSString GroupImageIndexLeft { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImageIndexRight")] NSString GroupImageIndexRight { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImageIsAlternateImage")] NSString GroupImageIsAlternateImage { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImageIsLeftImage")] NSString GroupImageIsLeftImage { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImageIsRightImage")] NSString GroupImageIsRightImage { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupImagesAlternate")] NSString GroupImagesAlternate { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupIndex")] NSString GroupIndex { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroups")] NSString Groups { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupType")] NSString GroupType { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupTypeStereoPair")] NSString GroupTypeStereoPair { get; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), Watch (8, 0)] [Field ("kCGImagePropertyGroupTypeAlternate")] NSString GroupTypeAlternate { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] [Field ("kCGImagePropertyGroupImageBaseline")] NSString GroupImageBaseline { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] [Field ("kCGImagePropertyGroupImageDisparityAdjustment")] NSString GroupImageDisparityAdjustment { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] [Field ("kCGImagePropertyHEIFDictionary")] NSString HeifDictionary { get; } } - [iOS (7,0)] + [iOS (7, 0)] [Static] interface CGImageMetadataTagNamespaces { [Field ("kCGImageMetadataNamespaceExif")] @@ -2136,12 +2779,15 @@ namespace ImageIO { NSString XMPBasic { get; } [Field ("kCGImageMetadataNamespaceXMPRights")] NSString XMPRights { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImageMetadataNamespaceIPTCExtension")] NSString IPTCExtension { get; } } - [iOS (7,0)] + [iOS (7, 0)] [Static] interface CGImageMetadataTagPrefixes { [Field ("kCGImageMetadataPrefixExif")] @@ -2162,12 +2808,15 @@ namespace ImageIO { NSString XMPBasic { get; } [Field ("kCGImageMetadataPrefixXMPRights")] NSString XMPRights { get; } - [Mac (10, 13, 4)][iOS (11, 3)][TV (11,3)][Watch (4,3)] + [Mac (10, 13, 4)] + [iOS (11, 3)] + [TV (11, 3)] + [Watch (4, 3)] [Field ("kCGImageMetadataPrefixIPTCExtension")] NSString IPTCExtension { get; } } - [iOS (7,0)] + [iOS (7, 0)] interface CGImageMetadata { [Field ("kCFErrorDomainCGImageMetadata")] NSString ErrorDomain { get; } @@ -2175,43 +2824,54 @@ namespace ImageIO { [Partial] interface CGImageOptions { - [Internal][Field ("kCGImageSourceTypeIdentifierHint")] + [Internal] + [Field ("kCGImageSourceTypeIdentifierHint")] IntPtr kTypeIdentifierHint { get; } - [Internal][Field ("kCGImageSourceShouldCache")] + [Internal] + [Field ("kCGImageSourceShouldCache")] IntPtr kShouldCache { get; } - [iOS (7,0)] - [Mac (10,9)] - [Internal][Field ("kCGImageSourceShouldCacheImmediately")] + [iOS (7, 0)] + [Mac (10, 9)] + [Internal] + [Field ("kCGImageSourceShouldCacheImmediately")] IntPtr kShouldCacheImmediately { get; } - [Internal][Field ("kCGImageSourceShouldAllowFloat")] + [Internal] + [Field ("kCGImageSourceShouldAllowFloat")] IntPtr kShouldAllowFloat { get; } } [Partial] interface CGImageThumbnailOptions { - [Internal][Field ("kCGImageSourceCreateThumbnailFromImageIfAbsent")] + [Internal] + [Field ("kCGImageSourceCreateThumbnailFromImageIfAbsent")] IntPtr kCreateThumbnailFromImageIfAbsent { get; } - [Internal][Field ("kCGImageSourceCreateThumbnailFromImageAlways")] + [Internal] + [Field ("kCGImageSourceCreateThumbnailFromImageAlways")] IntPtr kCreateThumbnailFromImageAlways { get; } - [Internal][Field ("kCGImageSourceThumbnailMaxPixelSize")] + [Internal] + [Field ("kCGImageSourceThumbnailMaxPixelSize")] IntPtr kThumbnailMaxPixelSize { get; } - [Internal][Field ("kCGImageSourceCreateThumbnailWithTransform")] + [Internal] + [Field ("kCGImageSourceCreateThumbnailWithTransform")] IntPtr kCreateThumbnailWithTransform { get; } - [iOS (9,0)][Mac (10,11)] - [Internal][Field ("kCGImageSourceSubsampleFactor")] + [iOS (9, 0)] + [Mac (10, 11)] + [Internal] + [Field ("kCGImageSourceSubsampleFactor")] IntPtr kCGImageSourceSubsampleFactor { get; } } [Partial] interface CGImageMetadataEnumerateOptions { - [Internal][Field ("kCGImageMetadataEnumerateRecursively")] + [Internal] + [Field ("kCGImageMetadataEnumerateRecursively")] IntPtr kCGImageMetadataEnumerateRecursively { get; } } @@ -2229,16 +2889,19 @@ namespace ImageIO { [Export ("LossyCompressionQuality")] float LossyCompressionQuality { get; set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("ImageMaxPixelSize")] int ImageMaxPixelSize { get; set; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("EmbedThumbnail")] bool EmbedThumbnail { get; set; } - [iOS (9,3)][Mac (10,12)] - [Watch (2,3)] + [iOS (9, 3)] + [Mac (10, 12)] + [Watch (2, 3)] [Export ("OptimizeColorForSharing")] bool OptimizeColorForSharing { get; set; } @@ -2284,19 +2947,21 @@ namespace ImageIO { [Export ("ExifAuxDictionary")] NSDictionary ExifAuxDictionary { get; set; } - [Mac (11,0), iOS (14,0), TV (14,0), Watch (7,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0), Watch (7, 0)] + [MacCatalyst (14, 0)] [Export ("WebPDictionary")] NSDictionary WebPDictionary { get; set; } - [Mac (11,0), iOS (14,1), TV (14,2), Watch (7,1)] - [MacCatalyst (14,1)] + [Mac (11, 0), iOS (14, 1), TV (14, 2), Watch (7, 1)] + [MacCatalyst (14, 1)] [Export ("TgaDictionary")] NSDictionary TgaDictionary { get; set; } - [iOS (14,1)] - [TV (14,2)][Watch (7,1)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Watch (7, 1)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] bool PreserveGainMap { get; set; } } @@ -2309,79 +2974,98 @@ namespace ImageIO { [Field ("kCGImageDestinationBackgroundColor")] NSString BackgroundColor { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kCGImageDestinationImageMaxPixelSize")] NSString ImageMaxPixelSize { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kCGImageDestinationEmbedThumbnail")] NSString EmbedThumbnail { get; } - [iOS (9,3)][Mac (10,12)] - [TV (9,2)] - [Watch (2,3)] + [iOS (9, 3)] + [Mac (10, 12)] + [TV (9, 2)] + [Watch (2, 3)] [Field ("kCGImageDestinationOptimizeColorForSharing")] NSString OptimizeColorForSharing { get; } // [Field ("kCGImagePropertyTIFFDictionary")] - [Static][Wrap ("CGImageProperties.TIFFDictionary")] + [Static] + [Wrap ("CGImageProperties.TIFFDictionary")] NSString TIFFDictionary { get; } // [Field ("kCGImagePropertyGIFDictionary")] - [Static][Wrap ("CGImageProperties.GIFDictionary")] + [Static] + [Wrap ("CGImageProperties.GIFDictionary")] NSString GIFDictionary { get; } // [Field ("kCGImagePropertyJFIFDictionary")] - [Static][Wrap ("CGImageProperties.JFIFDictionary")] + [Static] + [Wrap ("CGImageProperties.JFIFDictionary")] NSString JFIFDictionary { get; } // [Field ("kCGImagePropertyExifDictionary")] - [Static][Wrap ("CGImageProperties.ExifDictionary")] + [Static] + [Wrap ("CGImageProperties.ExifDictionary")] NSString ExifDictionary { get; } // [Field ("kCGImagePropertyPNGDictionary")] - [Static][Wrap ("CGImageProperties.PNGDictionary")] + [Static] + [Wrap ("CGImageProperties.PNGDictionary")] NSString PNGDictionary { get; } // [Field ("kCGImagePropertyIPTCDictionary")] - [Static][Wrap ("CGImageProperties.IPTCDictionary")] + [Static] + [Wrap ("CGImageProperties.IPTCDictionary")] NSString IPTCDictionary { get; } // [Field ("kCGImagePropertyGPSDictionary")] - [Static][Wrap ("CGImageProperties.GPSDictionary")] + [Static] + [Wrap ("CGImageProperties.GPSDictionary")] NSString GPSDictionary { get; } // [Field ("kCGImagePropertyRawDictionary")] - [Static][Wrap ("CGImageProperties.RawDictionary")] + [Static] + [Wrap ("CGImageProperties.RawDictionary")] NSString RawDictionary { get; } // [Field ("kCGImagePropertyCIFFDictionary")] - [Static][Wrap ("CGImageProperties.CIFFDictionary")] + [Static] + [Wrap ("CGImageProperties.CIFFDictionary")] NSString CIFFDictionary { get; } // [Field ("kCGImageProperty8BIMDictionary")] - [Static][Wrap ("CGImageProperties.EightBIMDictionary")] + [Static] + [Wrap ("CGImageProperties.EightBIMDictionary")] NSString EightBIMDictionary { get; } // [Field ("kCGImagePropertyDNGDictionary")] - [Static][Wrap ("CGImageProperties.DNGDictionary")] + [Static] + [Wrap ("CGImageProperties.DNGDictionary")] NSString DNGDictionary { get; } // [Field ("kCGImagePropertyExifAuxDictionary")] - [Static][Wrap ("CGImageProperties.ExifAuxDictionary")] + [Static] + [Wrap ("CGImageProperties.ExifAuxDictionary")] NSString ExifAuxDictionary { get; } - [Mac (11,0), iOS (14,0), TV (14,0), Watch (7,0)] - [Static][Wrap ("CGImageProperties.WebPDictionary")] + [Mac (11, 0), iOS (14, 0), TV (14, 0), Watch (7, 0)] + [Static] + [Wrap ("CGImageProperties.WebPDictionary")] NSString WebPDictionary { get; } - [Mac (11,0), iOS (14,1), TV (14,2), Watch (7,1)] - [Static][Wrap ("CGImageProperties.TgaDictionary")] + [Mac (11, 0), iOS (14, 1), TV (14, 2), Watch (7, 1)] + [Static] + [Wrap ("CGImageProperties.TgaDictionary")] NSString TgaDictionary { get; } - [iOS (14,1)] - [TV (14,2)][Watch (7,1)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Watch (7, 1)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCGImageDestinationPreserveGainMap")] NSString PreserveGainMapKey { get; } } @@ -2389,32 +3073,39 @@ namespace ImageIO { [Partial] interface CGCopyImageSourceOptions { - [iOS (7,0)] - [Internal][Field ("kCGImageDestinationMetadata")] + [iOS (7, 0)] + [Internal] + [Field ("kCGImageDestinationMetadata")] IntPtr kMetadata { get; } - [iOS (7,0)] - [Internal][Field ("kCGImageDestinationMergeMetadata")] + [iOS (7, 0)] + [Internal] + [Field ("kCGImageDestinationMergeMetadata")] IntPtr kMergeMetadata { get; } - [iOS (7,0)] - [Internal][Field ("kCGImageMetadataShouldExcludeXMP")] + [iOS (7, 0)] + [Internal] + [Field ("kCGImageMetadataShouldExcludeXMP")] IntPtr kShouldExcludeXMP { get; } - [iOS (8,0)][Mac (10,10)] - [Internal][Field ("kCGImageMetadataShouldExcludeGPS")] + [iOS (8, 0)] + [Mac (10, 10)] + [Internal] + [Field ("kCGImageMetadataShouldExcludeGPS")] IntPtr kShouldExcludeGPS { get; } - [iOS (7,0)] - [Internal][Field ("kCGImageDestinationDateTime")] + [iOS (7, 0)] + [Internal] + [Field ("kCGImageDestinationDateTime")] IntPtr kDateTime { get; } - [iOS (7,0)] - [Internal][Field ("kCGImageDestinationOrientation")] + [iOS (7, 0)] + [Internal] + [Field ("kCGImageDestinationOrientation")] IntPtr kOrientation { get; } } - [Mac (10, 13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] enum CGImageAuxiliaryDataType { [Field ("kCGImageAuxiliaryDataTypeDepth")] Depth, @@ -2422,41 +3113,57 @@ namespace ImageIO { [Field ("kCGImageAuxiliaryDataTypeDisparity")] Disparity, - [Watch (5, 0), Mac (10, 14), iOS (12, 0), TV (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0), TV (12, 0)] [Field ("kCGImageAuxiliaryDataTypePortraitEffectsMatte")] PortraitEffectsMatte, - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte")] SemanticSegmentationHairMatte, - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte")] SemanticSegmentationSkinMatte, - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte")] SemanticSegmentationTeethMatte, - [iOS (14,1)] - [TV (14,2)][Watch (7,1)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Watch (7, 1)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte")] SemanticSegmentationGlassesMatte, - [iOS (14,1)] - [TV (14,2)][Watch (7,1)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Watch (7, 1)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kCGImageAuxiliaryDataTypeHDRGainMap")] TypeHdrGainMap, - [iOS (14,3)][TV (14,3)][Watch (7,2)][Mac (11,1)] - [MacCatalyst (14,3)] + [iOS (14, 3)] + [TV (14, 3)] + [Watch (7, 2)] + [Mac (11, 1)] + [MacCatalyst (14, 3)] [Field ("kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte")] SemanticSegmentationSkyMatte, } - [Mac (10,13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [Static] [Internal] interface CGImageAuxiliaryDataInfoKeys { @@ -2470,7 +3177,7 @@ namespace ImageIO { NSString MetadataKey { get; } } - [Mac (10,13), iOS (11,0), TV (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0), Watch (4, 0)] [StrongDictionary ("CGImageAuxiliaryDataInfoKeys")] interface CGImageAuxiliaryDataInfo { @@ -2503,7 +3210,7 @@ namespace ImageIO { } [Static] - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] interface IOCameraExtrinsics { [Field ("kIIOCameraExtrinsics_CoordinateSystemID")] NSString CoordinateSystemId { get; } @@ -2516,7 +3223,7 @@ namespace ImageIO { } [Static] - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] interface IOCameraModel { [Field ("kIIOCameraModel_Intrinsics")] NSString Intrinsics { get; } @@ -2527,7 +3234,7 @@ namespace ImageIO { } [Static] - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] interface IOCameraModelType { [Field ("kIIOCameraModelType_SimplifiedPinhole")] NSString SimplifiedPinhole { get; } @@ -2535,9 +3242,9 @@ namespace ImageIO { [Field ("kIIOCameraModelType_GenericPinhole")] NSString GenericPinhole { get; } } - + [Static] - [iOS (16,0), Mac (13,0), Watch (9,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), TV (16, 0), MacCatalyst (16, 0)] interface IOMetadata { [Field ("kIIOMetadata_CameraExtrinsicsKey")] NSString CameraExtrinsicsKey { get; } diff --git a/src/imagekit.cs b/src/imagekit.cs index 8298d0bd27..818c804c86 100644 --- a/src/imagekit.cs +++ b/src/imagekit.cs @@ -78,7 +78,7 @@ namespace ImageKit { Image, } - [BaseType (typeof (NSView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (IKCameraDeviceViewDelegate)})] + [BaseType (typeof (NSView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (IKCameraDeviceViewDelegate) })] interface IKCameraDeviceView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -89,54 +89,54 @@ namespace ImageKit { [Wrap ("WeakDelegate")] [Protocolize] IKCameraDeviceViewDelegate Delegate { get; set; } - + [Export ("cameraDevice", ArgumentSemantic.Assign)] - ICCameraDevice CameraDevice { get; set; } + ICCameraDevice CameraDevice { get; set; } [Export ("hasDisplayModeTable")] - bool HasDisplayModeTable { get; set; } + bool HasDisplayModeTable { get; set; } [Export ("hasDisplayModeIcon")] - bool HasDisplayModeIcon { get; set; } + bool HasDisplayModeIcon { get; set; } [Export ("downloadAllControlLabel", ArgumentSemantic.Copy)] - string DownloadAllControlLabel { get; set; } + string DownloadAllControlLabel { get; set; } [Export ("downloadSelectedControlLabel", ArgumentSemantic.Copy)] - string DownloadSelectedControlLabel { get; set; } + string DownloadSelectedControlLabel { get; set; } [Export ("iconSize")] - nint IconSize { get; set; } + nint IconSize { get; set; } [Export ("transferMode")] - IKCameraDeviceViewTransferMode TransferMode { get; set; } + IKCameraDeviceViewTransferMode TransferMode { get; set; } [Export ("displaysDownloadsDirectoryControl")] - bool DisplaysDownloadsDirectoryControl { get; set; } + bool DisplaysDownloadsDirectoryControl { get; set; } [Export ("downloadsDirectory", ArgumentSemantic.Retain)] - NSUrl DownloadsDirectory { get; set; } + NSUrl DownloadsDirectory { get; set; } [Export ("displaysPostProcessApplicationControl")] - bool DisplaysPostProcessApplicationControl { get; set; } + bool DisplaysPostProcessApplicationControl { get; set; } [Export ("postProcessApplication", ArgumentSemantic.Retain)] - NSUrl PostProcessApplication { get; set; } + NSUrl PostProcessApplication { get; set; } [Export ("canRotateSelectedItemsLeft")] - bool CanRotateSelectedItemsLeft { get; } + bool CanRotateSelectedItemsLeft { get; } [Export ("canRotateSelectedItemsRight")] - bool CanRotateSelectedItemsRight { get; } + bool CanRotateSelectedItemsRight { get; } [Export ("canDeleteSelectedItems")] - bool CanDeleteSelectedItems { get; } + bool CanDeleteSelectedItems { get; } [Export ("canDownloadSelectedItems")] - bool CanDownloadSelectedItems { get; } + bool CanDownloadSelectedItems { get; } [Export ("selectedIndexes")] - NSIndexSet SelectedIndexes { get; } + NSIndexSet SelectedIndexes { get; } [Export ("selectIndexes:byExtendingSelection:")] void SelectItemsAt (NSIndexSet indexes, bool extendSelection); @@ -159,27 +159,27 @@ namespace ImageKit { [Export ("mode", ArgumentSemantic.Assign)] IKCameraDeviceViewDisplayMode Mode { get; set; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("setCustomActionControl:")] void SetCustomActionControl (NSSegmentedControl control); - [Mac (12,0)] + [Mac (12, 0)] [Export ("setCustomDeleteControl:")] void SetCustomDelete (NSSegmentedControl control); - [Mac (12,0)] + [Mac (12, 0)] [Export ("setCustomIconSizeSlider:")] void SetCustomIconSizeSlider (NSSlider slider); - [Mac (12,0)] + [Mac (12, 0)] [Export ("setCustomModeControl:")] void SetCustomModeControl (NSSegmentedControl control); - [Mac (12,0)] + [Mac (12, 0)] [Export ("setCustomRotateControl:")] void SetCustomRotateControl (NSSegmentedControl control); - [Mac (12,0)] + [Mac (12, 0)] [Export ("setShowStatusInfoAsWindowSubtitle:")] void SetShowStatusInfoAsWindowSubtitle (bool value); } @@ -198,7 +198,7 @@ namespace ImageKit { void DidEncounterError (IKCameraDeviceView cameraDeviceView, NSError error); } - [BaseType (typeof (NSView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (IKDeviceBrowserViewDelegate)})] + [BaseType (typeof (NSView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (IKDeviceBrowserViewDelegate) })] interface IKDeviceBrowserView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -209,24 +209,24 @@ namespace ImageKit { [Wrap ("WeakDelegate")] [Protocolize] IKDeviceBrowserViewDelegate Delegate { get; set; } - + [Export ("displaysLocalCameras")] - bool DisplaysLocalCameras { get; set; } + bool DisplaysLocalCameras { get; set; } [Export ("displaysNetworkCameras")] - bool DisplaysNetworkCameras { get; set; } + bool DisplaysNetworkCameras { get; set; } [Export ("displaysLocalScanners")] - bool DisplaysLocalScanners { get; set; } + bool DisplaysLocalScanners { get; set; } [Export ("displaysNetworkScanners")] - bool DisplaysNetworkScanners { get; set; } + bool DisplaysNetworkScanners { get; set; } [Export ("mode")] - IKDeviceBrowserViewDisplayMode Mode { get; set; } + IKDeviceBrowserViewDisplayMode Mode { get; set; } [Export ("selectedDevice")] - ICDevice SelectedDevice { get; } + ICDevice SelectedDevice { get; } } [BaseType (typeof (NSObject))] @@ -249,7 +249,7 @@ namespace ImageKit { [Export ("filterName")] string FilterName { get; } - + //FIXME - can we do this in a more C#ish way. [Export ("beginWithOptions:modelessDelegate:didEndSelector:contextInfo:")] void Begin (NSDictionary options, NSObject modelessDelegate, Selector didEndSelector, IntPtr contextInfo); @@ -325,7 +325,7 @@ namespace ImageKit { //UIConfiguration keys for NSDictionary [Field ("IKUISizeFlavor")] NSString SizeFlavor { get; } - + [Field ("IKUISizeMini")] NSString SizeMini { get; } @@ -364,43 +364,43 @@ namespace ImageKit { [BaseType (typeof (NSObject))] interface IKImageBrowserCell { [Export ("imageBrowserView")] - IKImageBrowserView ImageBrowserView { get; } + IKImageBrowserView ImageBrowserView { get; } [Export ("representedItem")] - NSObject RepresentedItem { get; } + NSObject RepresentedItem { get; } [Export ("indexOfRepresentedItem")] - nint IndexOfRepresentedItem { get; } + nint IndexOfRepresentedItem { get; } [Export ("frame")] - CGRect Frame { get; } + CGRect Frame { get; } [Export ("imageContainerFrame")] - CGRect ImageContainerFrame { get; } + CGRect ImageContainerFrame { get; } [Export ("imageFrame")] - CGRect ImageFrame { get; } + CGRect ImageFrame { get; } [Export ("selectionFrame")] - CGRect SelectionFrame { get; } + CGRect SelectionFrame { get; } [Export ("titleFrame")] - CGRect TitleFrame { get; } + CGRect TitleFrame { get; } [Export ("subtitleFrame")] - CGRect SubtitleFrame { get; } + CGRect SubtitleFrame { get; } [Export ("imageAlignment")] - NSImageAlignment ImageAlignment { get; } + NSImageAlignment ImageAlignment { get; } [Export ("isSelected")] - bool IsSelected { get; } + bool IsSelected { get; } [Export ("cellState")] - IKImageBrowserCellState CellState { get; } + IKImageBrowserCellState CellState { get; } [Export ("opacity")] - nfloat Opacity { get; } + nfloat Opacity { get; } [Export ("layerForType:")] CALayer Layer (string layerType); @@ -419,8 +419,8 @@ namespace ImageKit { NSString PlaceHolderLayer { get; } } - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'NSCollectionView' instead.")] - [BaseType (typeof (NSView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (IKImageBrowserDelegate)})] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'NSCollectionView' instead.")] + [BaseType (typeof (NSView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (IKImageBrowserDelegate) })] interface IKImageBrowserView : NSDraggingSource { //@category IKImageBrowserView (IKMainMethods) [Export ("initWithFrame:")] @@ -468,13 +468,13 @@ namespace ImageKit { float ZoomValue { get; set; } /* float, not CGFloat */ [Export ("contentResizingMask")] - NSViewResizingMask ContentResizingMask { get; set; } + NSViewResizingMask ContentResizingMask { get; set; } [Export ("scrollIndexToVisible:")] void ScrollIndexToVisible (nint index); [Export ("cellSize")] - CGSize CellSize { get; set; } + CGSize CellSize { get; set; } [Export ("intercellSpacing")] CGSize IntercellSpacing { get; set; } @@ -511,22 +511,22 @@ namespace ImageKit { //@category IKImageBrowserView (IKSelectionReorderingAndGrouping) [Export ("selectionIndexes")] - NSIndexSet SelectionIndexes { get; } + NSIndexSet SelectionIndexes { get; } [Export ("setSelectionIndexes:byExtendingSelection:")] void SelectItemsAt (NSIndexSet indexes, bool extendSelection); [Export ("allowsMultipleSelection")] - bool AllowsMultipleSelection { get; set; } + bool AllowsMultipleSelection { get; set; } [Export ("allowsEmptySelection")] - bool AllowsEmptySelection { get; set; } + bool AllowsEmptySelection { get; set; } [Export ("allowsReordering")] - bool AllowsReordering { get; set; } + bool AllowsReordering { get; set; } [Export ("animates")] - bool Animates { get; set; } + bool Animates { get; set; } [Export ("expandGroupAtIndex:")] void ExpandGroup (nint index); @@ -540,7 +540,7 @@ namespace ImageKit { //@category IKImageBrowserView (IKDragNDrop) [Export ("draggingDestinationDelegate", ArgumentSemantic.Weak)] [Protocolize] - NSDraggingDestination DraggingDestinationDelegate { get; set; } + NSDraggingDestination DraggingDestinationDelegate { get; set; } [Export ("indexAtLocationOfDroppedItem")] nint GetIndexAtLocationOfDroppedItem (); @@ -549,7 +549,7 @@ namespace ImageKit { IKImageBrowserDropOperation DropOperation (); [Export ("allowsDroppingOnItems")] - bool AllowsDroppingOnItems { get; set; } + bool AllowsDroppingOnItems { get; set; } [Export ("setDropIndex:dropOperation:")] void SetDropIndex (nint index, IKImageBrowserDropOperation operation); @@ -557,19 +557,19 @@ namespace ImageKit { // Keys for the view options, set with base.setValue [Field ("IKImageBrowserBackgroundColorKey")] NSString BackgroundColorKey { get; } - + [Field ("IKImageBrowserSelectionColorKey")] NSString SelectionColorKey { get; } - + [Field ("IKImageBrowserCellsOutlineColorKey")] NSString CellsOutlineColorKey { get; } - + [Field ("IKImageBrowserCellsTitleAttributesKey")] NSString CellsTitleAttributesKey { get; } - + [Field ("IKImageBrowserCellsHighlightedTitleAttributesKey")] NSString CellsHighlightedTitleAttributesKey { get; } - + [Field ("IKImageBrowserCellsSubtitleAttributesKey")] NSString CellsSubtitleAttributesKey { get; } } @@ -696,7 +696,7 @@ namespace ImageKit { bool IsSelectable { get; } } - interface IIKImageBrowserItem {} + interface IIKImageBrowserItem { } [BaseType (typeof (NSObject))] [Model] @@ -729,11 +729,11 @@ namespace ImageKit { #if !XAMCORE_5_0 [Obsolete ("Use the 'FilterArray' property instead.")] [Wrap ("FilterArray", IsVirtual = true)] - NSArray filterArray { get; } + NSArray filterArray { get; } #endif [Export ("filterArray")] - NSArray FilterArray { get; } + NSArray FilterArray { get; } [Export ("reloadData")] void ReloadData (); @@ -807,10 +807,10 @@ namespace ImageKit { bool DoubleClickOpensImageEditPanel { get; set; } [Export ("imageCorrection", ArgumentSemantic.Assign)] - CIFilter ImageCorrection { get; set; } + CIFilter ImageCorrection { get; set; } [Export ("backgroundColor", ArgumentSemantic.Assign)] - NSColor BackgroundColor { get; set; } + NSColor BackgroundColor { get; set; } #if !NET [Export ("setImage:imageProperties:")] @@ -924,13 +924,13 @@ namespace ImageKit { //Use with NSKeyValueCoding to customize the pictureTaker panel [Field ("IKPictureTakerAllowsVideoCaptureKey")] NSString AllowsVideoCaptureKey { get; } - + [Field ("IKPictureTakerAllowsFileChoosingKey")] NSString AllowsFileChoosingKey { get; } - + [Field ("IKPictureTakerShowRecentPictureKey")] NSString ShowRecentPictureKey { get; } - + [Field ("IKPictureTakerUpdateRecentPictureKey")] NSString UpdateRecentPictureKey { get; } @@ -962,16 +962,16 @@ namespace ImageKit { NSString RemainOpenAfterValidateKey { get; } } - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (IKSaveOptionsDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (IKSaveOptionsDelegate) })] interface IKSaveOptions { [Export ("imageProperties")] - NSDictionary ImageProperties { get; } + NSDictionary ImageProperties { get; } [Export ("imageUTType")] - string ImageUTType { get; } + string ImageUTType { get; } [Export ("userSelection")] - NSDictionary UserSelection { get; } + NSDictionary UserSelection { get; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -989,7 +989,7 @@ namespace ImageKit { [Export ("addSaveOptionsToView:")] void AddSaveOptionsToView (NSView view); - [Mac (11,3)] + [Mac (11, 3)] [Export ("rememberLastSetting")] bool RememberLastSetting { get; set; } } @@ -1002,7 +1002,7 @@ namespace ImageKit { bool ShouldShowType (IKSaveOptions saveOptions, string imageUTType); } - [BaseType (typeof (NSView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (IKScannerDeviceViewDelegate)})] + [BaseType (typeof (NSView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (IKScannerDeviceViewDelegate) })] interface IKScannerDeviceView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -1114,7 +1114,7 @@ namespace ImageKit { [Field ("IKSlideshowModeOther")] NSString ModeOther { get; } - + [Field ("IKSlideshowWrapAround")] NSString WrapAround { get; } @@ -1148,7 +1148,7 @@ namespace ImageKit { [Field ("IK_MailBundleIdentifier")] NSString MailBundleIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("IK_PhotosBundleIdentifier")] NSString PhotosBundleIdentifier { get; } } diff --git a/src/intents.cs b/src/intents.cs index 96639f2dff..81576da8da 100644 --- a/src/intents.cs +++ b/src/intents.cs @@ -40,12 +40,12 @@ namespace Intents { // HACK only to please the generator - which does not (normally) know the type hierarchy in the // binding files. The lack of namespace will generate the correct code for the C# compiler // this is used for NSMeasurement objects. - interface NSUnitTemperature : NSUnit {} - interface NSUnitVolume : NSUnit {} - interface NSUnitSpeed : NSUnit {} - interface NSUnitEnergy : NSUnit {} - interface NSUnitMass : NSUnit {} - interface NSUnitPower : NSUnit {} + interface NSUnitTemperature : NSUnit { } + interface NSUnitVolume : NSUnit { } + interface NSUnitSpeed : NSUnit { } + interface NSUnitEnergy : NSUnit { } + interface NSUnitMass : NSUnit { } + interface NSUnitPower : NSUnit { } [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] @@ -80,15 +80,15 @@ namespace Intents { Outgoing, Missed, Received, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] Latest, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] Voicemail, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] Ringing, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] InProgress, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] OnHold, } @@ -100,16 +100,16 @@ namespace Intents { public enum INCancelWorkoutIntentResponseCode : long { Unspecified = 0, Ready, - [Deprecated (PlatformName.iOS, 11, 0, message:"Use 'HandleInApp' instead.")] // yup just iOS + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'HandleInApp' instead.")] // yup just iOS ContinueInApp, Failure, FailureRequiringAppLaunch, FailureNoMatchingWorkout, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 7, which is now defined as 'Success').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] HandleInApp, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 6, which is now defined as 'HandleInApp').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] Success, } @@ -198,16 +198,16 @@ namespace Intents { public enum INEndWorkoutIntentResponseCode : long { Unspecified = 0, Ready, - [Deprecated (PlatformName.iOS, 11, 0, message:"Use 'HandleInApp' instead.")] // yup just iOS + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'HandleInApp' instead.")] // yup just iOS ContinueInApp, Failure, FailureRequiringAppLaunch, FailureNoMatchingWorkout, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 7, which is now defined as 'Success').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] HandleInApp, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 6, which is now defined as 'HandleInApp').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] Success, } @@ -269,7 +269,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Native] [ErrorDomain ("INIntentErrorDomain")] public enum INIntentErrorCode : long { @@ -310,7 +310,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Native] public enum INIntentHandlingStatus : long { Unspecified = 0, @@ -319,14 +319,14 @@ namespace Intents { Success, Failure, DeferredToApplication, - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] UserConfirmationRequired, } [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Native] public enum INInteractionDirection : long { Unspecified = 0, @@ -352,7 +352,7 @@ namespace Intents { FailureRequiringAppLaunchNoServiceInArea, FailureRequiringAppLaunchServiceTemporarilyUnavailable, FailureRequiringAppLaunchPreviousRideNeedsCompletion, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] FailurePreviousRideNeedsFeedback, } @@ -374,9 +374,9 @@ namespace Intents { #if NET [NoMac] #else - [Mac (10,13)] + [Mac (10, 13)] #endif - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] Played, } @@ -398,9 +398,9 @@ namespace Intents { #if NET [NoMac] #else - [Mac (10,13)] + [Mac (10, 13)] #endif - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] Played = (1UL << 4), } @@ -418,16 +418,16 @@ namespace Intents { FailureRequiringAppLaunch, FailureNoMatchingWorkout, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 7, which is now defined as 'Success').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] HandleInApp, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 6, which is now defined as 'HandleInApp').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] Success, } [iOS (10, 0)] [Watch (3, 2)] - [NoTV, Mac (11,0)] + [NoTV, Mac (11, 0)] [Native] public enum INPaymentMethodType : long { Unknown = 0, @@ -455,12 +455,12 @@ namespace Intents { Unpaid } - [iOS (10,0)] - [Watch (3,2)] - [Mac (11,0), NoTV] + [iOS (10, 0)] + [Watch (3, 2)] + [Mac (11, 0), NoTV] [Native] public enum INPersonSuggestionType : long { - [iOS (12,0), Watch (5,0)] + [iOS (12, 0), Watch (5, 0)] None = 0, SocialProfile = 1, InstantMessageAddress, @@ -499,15 +499,15 @@ namespace Intents { MonoFilter = (1 << 21), FadeFilter = (1 << 22), ProcessFilter = (1 << 23), - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] PortraitPhoto = (1uL << 24), - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] LivePhoto = (1uL << 25), - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] LoopPhoto = (1uL << 26), - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] BouncePhoto = (1uL << 27), - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] LongExposurePhoto = (1uL << 28), } @@ -566,9 +566,11 @@ namespace Intents { FailurePaymentsAmountAboveMaximum, FailurePaymentsCurrencyUnsupported, FailureNoBankAccount, - [iOS (11,0), Watch (4,0)][NoMac] + [iOS (11, 0), Watch (4, 0)] + [NoMac] FailureNotEligible, - [iOS (11,1), Watch (4,1)][NoMac] + [iOS (11, 1), Watch (4, 1)] + [NoMac] FailureTermsAndConditionsAcceptanceRequired, } @@ -590,7 +592,7 @@ namespace Intents { FailureRequiringAppLaunchNoServiceInArea, FailureRequiringAppLaunchServiceTemporarilyUnavailable, FailureRequiringAppLaunchPreviousRideNeedsCompletion, - [iOS (13,0), Watch (6,0)] + [iOS (13, 0), Watch (6, 0)] FailureRequiringAppLaunchRideScheduledTooFar, } @@ -617,10 +619,10 @@ namespace Intents { FailureRequiringAppLaunch, FailureNoMatchingWorkout, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 7, which is now defined as 'Success').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] HandleInApp, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 6, which is now defined as 'HandleInApp').")] - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] Success, } @@ -673,9 +675,9 @@ namespace Intents { FailureRequiringAppLaunch, [iOS (10, 2)] FailureAppConfigurationRequired, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] InProgress, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] Success, } @@ -696,7 +698,7 @@ namespace Intents { Failure, FailureRequiringAppLaunch, FailureMessageServiceNotAvailable, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] FailureMessageTooManyResults, } @@ -750,9 +752,10 @@ namespace Intents { FailurePaymentsCurrencyUnsupported, FailureInsufficientFunds, FailureNoBankAccount, - [iOS (11, 0)][Watch (4, 0)] + [iOS (11, 0)] + [Watch (4, 0)] FailureNotEligible, - [iOS (11,1), Watch (4,1)] + [iOS (11, 1), Watch (4, 1)] FailureTermsAndConditionsAcceptanceRequired, } @@ -786,7 +789,7 @@ namespace Intents { FailureRequiringAppLaunch } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Unavailable (PlatformName.WatchOS)] @@ -899,9 +902,9 @@ namespace Intents { FailureAppConfigurationRequired, [iOS (10, 2)] FailureCallingServiceNotAvailable, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] FailureContactNotSupportedByApp, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] FailureNoValidNumber, } @@ -943,9 +946,9 @@ namespace Intents { FailureAppConfigurationRequired, [iOS (10, 2)] FailureCallingServiceNotAvailable, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] FailureContactNotSupportedByApp, - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] FailureInvalidNumber, } @@ -963,17 +966,17 @@ namespace Intents { FailureOngoingWorkout, FailureNoMatchingWorkout, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 7, which is now defined as 'Success').")] - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] HandleInApp, [Advice ("The numerical value for this constant was different in iOS 11 and earlier iOS versions (it was 6, which is now defined as 'HandleInApp').")] - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] Success, } [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Watch (6, 0)] - [TV (14,0)] + [TV (14, 0)] [Native] public enum INVocabularyStringType : long { ContactName = 1, @@ -988,19 +991,19 @@ namespace Intents { PaymentsOrganizationName = 400, [iOS (10, 3)] PaymentsAccountNickname, - [iOS (11,0)] + [iOS (11, 0)] NotebookItemTitle = 500, - [iOS (11,0)] + [iOS (11, 0)] NotebookItemGroupName, - [iOS (13,0)] + [iOS (13, 0)] MediaPlaylistTitle = 700, - [iOS (13,0)] + [iOS (13, 0)] MediaMusicArtistName, - [iOS (13,0)] + [iOS (13, 0)] MediaAudiobookTitle, - [iOS (13,0)] + [iOS (13, 0)] MediaAudiobookAuthorName, - [iOS (13,0)] + [iOS (13, 0)] MediaShowTitle, } @@ -1085,11 +1088,11 @@ namespace Intents { MinimumDue, AmountDue, CurrentBalance, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] MaximumTransferAmount, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] MinimumTransferAmount, - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] StatementBalance, } @@ -1215,7 +1218,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INAddTasksIntentResponseCode : long { Unspecified = 0, @@ -1228,7 +1231,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INAppendToNoteIntentResponseCode : long { Unspecified = 0, @@ -1240,7 +1243,7 @@ namespace Intents { FailureCannotUpdatePasswordProtectedNote, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INBalanceType : long { Unknown = 0, @@ -1249,8 +1252,8 @@ namespace Intents { Miles, } - [Mac (12,0)] - [Watch (3,2), NoTV, iOS (10,0)] + [Mac (12, 0)] + [Watch (3, 2), NoTV, iOS (10, 0)] [Native] public enum INCallCapability : long { Unknown = 0, @@ -1258,8 +1261,8 @@ namespace Intents { VideoCall, } - [Mac (12,0)] - [Watch (4,0), NoTV, iOS (11,0)] + [Mac (12, 0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [Native] public enum INCallDestinationType : long { Unknown = 0, @@ -1267,12 +1270,12 @@ namespace Intents { Emergency, Voicemail, Redial, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] CallBack, } [Mac (12, 0)] - [Watch (3,2), NoTV, iOS (10,0)] + [Watch (3, 2), NoTV, iOS (10, 0)] [Native] [Flags] public enum INCallRecordTypeOptions : ulong { @@ -1281,15 +1284,15 @@ namespace Intents { Received = (1 << 2), Latest = (1 << 3), Voicemail = (1 << 4), - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] Ringing = (1 << 5), - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] InProgress = (1 << 6), - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] OnHold = (1 << 7), } - [NoWatch, NoMac, NoTV, iOS (11,0)] + [NoWatch, NoMac, NoTV, iOS (11, 0)] [Native] public enum INCancelRideIntentResponseCode : long { Unspecified = 0, @@ -1298,7 +1301,7 @@ namespace Intents { Failure, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INCreateNoteIntentResponseCode : long { Unspecified = 0, @@ -1309,7 +1312,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INCreateTaskListIntentResponseCode : long { Unspecified = 0, @@ -1320,7 +1323,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INDateSearchType : long { Unknown = 0, @@ -1331,7 +1334,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INGetVisualCodeIntentResponseCode : long { Unspecified = 0, @@ -1344,7 +1347,7 @@ namespace Intents { FailureAppConfigurationRequired, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INLocationSearchType : long { Unknown = 0, @@ -1356,7 +1359,7 @@ namespace Intents { #elif MONOMAC [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] #endif - [Watch (4,0), NoTV, iOS (11,0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [Native] public enum INMessageType : long { Unspecified = 0, @@ -1378,23 +1381,23 @@ namespace Intents { MediaVideo, MediaPass, MediaAudio, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] PaymentSent, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] PaymentRequest, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] PaymentNote, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] Animoji, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] ActivitySnippet, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] File, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] Link, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INNoteContentType : long { Unknown = 0, @@ -1402,7 +1405,7 @@ namespace Intents { Image, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INNotebookItemType : long { Unknown = 0, @@ -1411,7 +1414,7 @@ namespace Intents { Task, } - [Watch (4,0), Mac (10,13), iOS (11,0), NoTV] + [Watch (4, 0), Mac (10, 13), iOS (11, 0), NoTV] [Native] public enum INRecurrenceFrequency : long { Unknown = 0, @@ -1423,7 +1426,7 @@ namespace Intents { Yearly, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INRequestPaymentCurrencyAmountUnsupportedReason : long { AmountBelowMinimum = 1, @@ -1431,23 +1434,23 @@ namespace Intents { CurrencyUnsupported, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INRequestPaymentPayerUnsupportedReason : long { CredentialsUnverified = 1, NoAccount, - [Watch (4,1), iOS (11,1)] + [Watch (4, 1), iOS (11, 1)] NoValidHandle, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INRideFeedbackTypeOptions : ulong { Rate = (1 << 0), Tip = (1 << 1), } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSearchForAccountsIntentResponseCode : long { Unspecified = 0, @@ -1462,7 +1465,7 @@ namespace Intents { FailureNotEligible, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSearchForNotebookItemsIntentResponseCode : long { Unspecified = 0, @@ -1473,8 +1476,8 @@ namespace Intents { FailureRequiringAppLaunch, } - [Mac (12,0)] - [Watch (4,0), NoTV, iOS (11,0)] + [Mac (12, 0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [Native] public enum INSendMessageRecipientUnsupportedReason : long { NoAccount = 1, @@ -1485,7 +1488,7 @@ namespace Intents { NoHandleForLabel, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSendPaymentCurrencyAmountUnsupportedReason : long { AmountBelowMinimum = 1, @@ -1493,17 +1496,17 @@ namespace Intents { CurrencyUnsupported, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSendPaymentPayeeUnsupportedReason : long { CredentialsUnverified = 1, InsufficientFunds, NoAccount, - [Watch (4,1), iOS (11,1)] + [Watch (4, 1), iOS (11, 1)] NoValidHandle, } - [NoWatch, NoTV, NoMac, iOS (11,0)] + [NoWatch, NoTV, NoMac, iOS (11, 0)] [Native] public enum INSendRideFeedbackIntentResponseCode : long { Unspecified = 0, @@ -1512,7 +1515,7 @@ namespace Intents { Failure, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSetTaskAttributeIntentResponseCode : long { Unspecified = 0, @@ -1523,7 +1526,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSortType : long { Unknown = 0, @@ -1531,7 +1534,7 @@ namespace Intents { ByDate, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INSpatialEvent : long { Unknown = 0, @@ -1539,7 +1542,7 @@ namespace Intents { Depart, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INTaskStatus : long { Unknown = 0, @@ -1547,7 +1550,7 @@ namespace Intents { Completed, } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INTaskType : long { Unknown = 0, @@ -1557,7 +1560,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INTransferMoneyIntentResponseCode : long { Unspecified = 0, @@ -1570,24 +1573,24 @@ namespace Intents { FailureInsufficientFunds, } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Native] public enum INVisualCodeType : long { Unknown = 0, Contact, RequestPayment, SendPayment, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] Transit, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] Bus, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] Subway, } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [Native] public enum INMediaItemType : long { Unknown = 0, @@ -1605,21 +1608,21 @@ namespace Intents { TVShow, TVShowEpisode, MusicVideo, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] PodcastStation, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] RadioStation, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] Station, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] Music, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] AlgorithmicRadioStation, - [Watch (6,2,1), iOS (13,4,1)] + [Watch (6, 2, 1), iOS (13, 4, 1)] News, } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [Native] public enum INPlayMediaIntentResponseCode : long { Unspecified = 0, @@ -1636,7 +1639,7 @@ namespace Intents { FailureMaxStreamLimitReached, } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [Native] public enum INPlaybackRepeatMode : long { Unknown = 0, @@ -1645,7 +1648,7 @@ namespace Intents { One, } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [Native] public enum INDailyRoutineSituation : long { Morning, @@ -1654,31 +1657,31 @@ namespace Intents { Work, School, Gym, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] Commute, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] HeadphonesConnected, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] ActiveWorkout, - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] PhysicalActivityIncomplete, } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [Native] public enum INUpcomingMediaPredictionMode : long { Default = 0, OnlyPredictSuggestedIntents = 1, } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [Native] public enum INRelevantShortcutRole : long { Action, Information, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INAddMediaIntentResponseCode : long { Unspecified = 0, @@ -1690,7 +1693,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INAddMediaMediaItemUnsupportedReason : long { LoginRequired = 1, @@ -1699,28 +1702,28 @@ namespace Intents { ExplicitContentSettings, CellularDataSettings, RestrictedContent, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] ServiceUnavailable, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] RegionRestriction, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INAddTasksTargetTaskListConfirmationReason : long { ListShouldBeCreated = 1, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INAddTasksTemporalEventTriggerUnsupportedReason : long { TimeInPast = 1, InvalidRecurrence, } - [Watch (6,0), NoTV, Mac (12,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (12, 0), iOS (13, 0)] [Native] public enum INCallAudioRoute : long { Unknown = 0, @@ -1730,7 +1733,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INDeleteTasksIntentResponseCode : long { Unspecified = 0, @@ -1743,7 +1746,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INDeleteTasksTaskListUnsupportedReason : long { NoTaskListFound = 1, @@ -1751,14 +1754,14 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INDeleteTasksTaskUnsupportedReason : long { Found = 1, InApp, } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [Native] public enum INGetReservationDetailsIntentResponseCode : long { Unspecified = 0, @@ -1769,7 +1772,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INMediaAffinityType : long { Unknown = 0, @@ -1777,7 +1780,7 @@ namespace Intents { Dislike, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INMediaDestinationType : long { Unknown = 0, @@ -1785,17 +1788,17 @@ namespace Intents { Playlist, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INMediaReference : long { Unknown = 0, CurrentlyPlaying, - [Watch (7,4), TV (14,5), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), iOS (14, 5)] + [MacCatalyst (14, 5)] My, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INMediaSortOrder : long { Unknown = 0, @@ -1809,7 +1812,7 @@ namespace Intents { Recommended, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INMediaUserContextSubscriptionStatus : long { Unknown = 0, @@ -1817,7 +1820,7 @@ namespace Intents { Subscribed, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INPlayMediaMediaItemUnsupportedReason : long { LoginRequired = 1, @@ -1826,22 +1829,22 @@ namespace Intents { ExplicitContentSettings, CellularDataSettings, RestrictedContent, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] ServiceUnavailable, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] RegionRestriction, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INPlayMediaPlaybackSpeedUnsupportedReason : long { BelowMinimum = 1, AboveMaximum, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INPlaybackQueueLocation : long { Unknown = 0, @@ -1850,14 +1853,14 @@ namespace Intents { Later, } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [Native] public enum INReservationActionType : long { Unknown = 0, CheckIn, } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [Native] public enum INReservationStatus : long { Unknown = 0, @@ -1867,7 +1870,7 @@ namespace Intents { Confirmed, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INSearchForMediaIntentResponseCode : long { Unspecified = 0, @@ -1879,7 +1882,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INSearchForMediaMediaItemUnsupportedReason : long { LoginRequired = 1, @@ -1888,22 +1891,22 @@ namespace Intents { ExplicitContentSettings, CellularDataSettings, RestrictedContent, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] ServiceUnavailable, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] RegionRestriction, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INSetTaskAttributeTemporalEventTriggerUnsupportedReason : long { TimeInPast = 1, InvalidRecurrence, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INSnoozeTasksIntentResponseCode : long { Unspecified = 0, @@ -1914,13 +1917,13 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INSnoozeTasksTaskUnsupportedReason : long { NoTasksFound = 1, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INStartCallCallCapabilityUnsupportedReason : long { VideoCallUnsupported = 1, @@ -1928,7 +1931,7 @@ namespace Intents { CameraNotAccessible, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INStartCallContactUnsupportedReason : long { NoContactFound = 1, @@ -1940,7 +1943,7 @@ namespace Intents { NoUsableHandleForRedial, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INStartCallIntentResponseCode : long { Unspecified = 0, @@ -1961,7 +1964,7 @@ namespace Intents { FailureCallRinging, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INTaskPriority : long { Unknown = 0, @@ -1969,7 +1972,7 @@ namespace Intents { Flagged, } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Native] public enum INTemporalEventTriggerTypeOptions : ulong { NotScheduled = (1uL << 0), @@ -1977,14 +1980,14 @@ namespace Intents { ScheduledRecurring = (1uL << 2), } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [Native] public enum INTicketedEventCategory : long { Unknown = 0, Movie, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INUpdateMediaAffinityIntentResponseCode : long { Unspecified = 0, @@ -1995,7 +1998,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INUpdateMediaAffinityMediaItemUnsupportedReason : long { LoginRequired = 1, @@ -2004,15 +2007,15 @@ namespace Intents { ExplicitContentSettings, CellularDataSettings, RestrictedContent, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] ServiceUnavailable, - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] RegionRestriction, } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Native] public enum INAddMediaMediaDestinationUnsupportedReason : long { PlaylistNameNotFound = 1, @@ -2020,7 +2023,7 @@ namespace Intents { } [Flags] - [Watch (7,0), NoTV, NoMac, iOS (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] [Native] public enum INDayOfWeekOptions : ulong { Monday = (1uL << 0), @@ -2032,7 +2035,7 @@ namespace Intents { Sunday = (1uL << 6), } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] [Native] public enum INListCarsIntentResponseCode : long { Unspecified = 0, @@ -2043,7 +2046,7 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] [Native] public enum INOutgoingMessageType : long { Unknown = 0, @@ -2052,7 +2055,7 @@ namespace Intents { } [Flags] - [Watch (7,0), NoTV, NoMac, iOS (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] [Native] public enum INShortcutAvailabilityOptions : ulong { Mindfulness = (1uL << 0), @@ -2064,7 +2067,7 @@ namespace Intents { YogaAndStretching = (1uL << 6), } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] [Native] public enum INStartCallCallRecordToCallBackUnsupportedReason : long { NoMatchingCall = 1, @@ -2190,8 +2193,8 @@ namespace Intents { [Field ("INGetRideStatusIntentIdentifier")] GetRideStatus, - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("INStartCallIntentIdentifier")] StartCall, } @@ -2231,8 +2234,8 @@ namespace Intents { [Field ("INPersonHandleLabelOther")] Other, - [Watch (7,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("INPersonHandleLabelSchool")] School, } @@ -2248,7 +2251,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipFather")] Father, @@ -2256,7 +2259,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipMother")] Mother, @@ -2264,7 +2267,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipParent")] Parent, @@ -2272,7 +2275,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipBrother")] Brother, @@ -2280,7 +2283,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipSister")] Sister, @@ -2288,7 +2291,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipChild")] Child, @@ -2296,7 +2299,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipFriend")] Friend, @@ -2304,7 +2307,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipSpouse")] Spouse, @@ -2312,7 +2315,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipPartner")] Partner, @@ -2320,7 +2323,7 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipAssistant")] Assistant, @@ -2328,16 +2331,16 @@ namespace Intents { #if NET [NoMac] #else - [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] + [Obsoleted (PlatformName.MacOSX, 10, 0, message: "Unavailable on macOS, will be removed in the future.")] #endif [Field ("INPersonRelationshipManager")] Manager, - [Watch (6,0), NoTV, Mac (10,15), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (10, 15), iOS (13, 0)] [Field ("INPersonRelationshipSon")] Son, - [Watch (6,0), NoTV, Mac (10,15), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (10, 15), iOS (13, 0)] [Field ("INPersonRelationshipDaughter")] Daughter, } @@ -2401,21 +2404,21 @@ namespace Intents { [Field ("INWorkoutNameIdentifierExercise")] Exercise, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Field ("INWorkoutNameIdentifierHike")] Hike, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Field ("INWorkoutNameIdentifierHighIntensityIntervalTraining")] HighIntensityIntervalTraining, - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Field ("INWorkoutNameIdentifierSwim")] Swim, } - [iOS (14,0), NoMac, NoTV, Watch (7,0)] - [MacCatalyst (14,0)] + [iOS (14, 0), NoMac, NoTV, Watch (7, 0)] + [MacCatalyst (14, 0)] enum INCarChargingConnectorType { [DefaultEnumValue] [Field (null)] @@ -2450,7 +2453,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [Mac (11,0)] + [Mac (11, 0)] [NoTV] [Internal] [Category] @@ -2468,7 +2471,7 @@ namespace Intents { [Unavailable (PlatformName.WatchOS)] [BaseType (typeof (INIntent))] interface INBookRestaurantReservationIntent : NSCopying { - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithRestaurant:bookingDateComponents:partySize:bookingIdentifier:guest:selectedOffer:guestProvidedSpecialRequestText:")] #if NET NativeHandle Constructor (INRestaurant restaurant, NSDateComponents bookingDateComponents, nuint partySize, [NullAllowed] string bookingIdentifier, [NullAllowed] INRestaurantGuest guest, [NullAllowed] INRestaurantOffer selectedOffer, [NullAllowed] string guestProvidedSpecialRequestText); @@ -2553,8 +2556,8 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [Mac (11,0)] - [TV (14,0)] + [Mac (11, 0)] + [TV (14, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INBooleanResolutionResult { @@ -2586,19 +2589,19 @@ namespace Intents { INBooleanResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INBooleanResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INBooleanResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Mac (12,0)] + [Mac (12, 0)] [iOS (10, 0)] [Watch (3, 2)] [NoTV] @@ -2606,7 +2609,7 @@ namespace Intents { [DisableDefaultCtor] interface INCallRecordTypeResolutionResult { - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedCallRecordType:")] @@ -2620,7 +2623,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCallRecordTypeResolutionResult SuccessWithResolvedValue (INCallRecordType resolvedValue); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithCallRecordTypeToConfirm:")] @@ -2653,13 +2656,13 @@ namespace Intents { INCallRecordTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCallRecordTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCallRecordTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -2729,7 +2732,7 @@ namespace Intents { [DisableDefaultCtor] interface INCarAirCirculationModeResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedCarAirCirculationMode:")] @@ -2741,7 +2744,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCarAirCirculationModeResolutionResult SuccessWithResolvedValue (INCarAirCirculationMode resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Static] [Export ("confirmationRequiredWithCarAirCirculationModeToConfirm:")] INCarAirCirculationModeResolutionResult ConfirmationRequiredWithCarAirCirculationModeToConfirm (INCarAirCirculationMode carAirCirculationModeToConfirm); @@ -2771,13 +2774,13 @@ namespace Intents { INCarAirCirculationModeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCarAirCirculationModeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCarAirCirculationModeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -2792,7 +2795,7 @@ namespace Intents { [DisableDefaultCtor] interface INCarAudioSourceResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedCarAudioSource:")] @@ -2804,7 +2807,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCarAudioSourceResolutionResult SuccessWithResolvedValue (INCarAudioSource resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithCarAudioSourceToConfirm:")] @@ -2835,13 +2838,13 @@ namespace Intents { INCarAudioSourceResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCarAudioSourceResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCarAudioSourceResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -2856,7 +2859,7 @@ namespace Intents { [DisableDefaultCtor] interface INCarDefrosterResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedCarDefroster:")] @@ -2868,7 +2871,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCarDefrosterResolutionResult SuccessWithResolvedValue (INCarDefroster resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithCarDefrosterToConfirm:")] @@ -2899,13 +2902,13 @@ namespace Intents { INCarDefrosterResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCarDefrosterResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCarDefrosterResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -2920,7 +2923,7 @@ namespace Intents { [DisableDefaultCtor] interface INCarSeatResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedCarSeat:")] @@ -2932,7 +2935,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCarSeatResolutionResult SuccessWithResolvedValue (INCarSeat resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithCarSeatToConfirm:")] @@ -2963,13 +2966,13 @@ namespace Intents { INCarSeatResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCarSeatResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCarSeatResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3033,13 +3036,13 @@ namespace Intents { INCurrencyAmountResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCurrencyAmountResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCurrencyAmountResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3048,7 +3051,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INDateComponentsRange : NSCopying, NSSecureCoding { @@ -3056,7 +3059,7 @@ namespace Intents { [Export ("initWithStartDateComponents:endDateComponents:")] NativeHandle Constructor ([NullAllowed] NSDateComponents startDateComponents, [NullAllowed] NSDateComponents endDateComponents); - [Watch (4,0), Mac (10,13), iOS (11,0), NoTV] + [Watch (4, 0), Mac (10, 13), iOS (11, 0), NoTV] [Export ("initWithEKRecurrenceRule:")] NativeHandle Constructor (EKRecurrenceRule recurrenceRule); @@ -3064,9 +3067,9 @@ namespace Intents { #if NET [NoMac] #else - [Mac (10,13)] + [Mac (10, 13)] #endif - [Watch (4,0), iOS (11,0), NoTV] + [Watch (4, 0), iOS (11, 0), NoTV] [Export ("initWithStartDateComponents:endDateComponents:recurrenceRule:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSDateComponents startDateComponents, [NullAllowed] NSDateComponents endDateComponents, [NullAllowed] INRecurrenceRule recurrenceRule); @@ -3081,13 +3084,13 @@ namespace Intents { #if NET [NoMac] #else - [Mac (10,13)] + [Mac (10, 13)] #endif - [Watch (4,0), iOS (11,0), NoTV] + [Watch (4, 0), iOS (11, 0), NoTV] [NullAllowed, Export ("recurrenceRule", ArgumentSemantic.Copy)] INRecurrenceRule RecurrenceRule { get; } - [Watch (4,0), Mac (10,13), iOS (11,0), NoTV] + [Watch (4, 0), Mac (10, 13), iOS (11, 0), NoTV] [Export ("EKRecurrenceRule")] [NullAllowed] EKRecurrenceRule EKRecurrenceRule { get; } @@ -3136,13 +3139,13 @@ namespace Intents { INDateComponentsRangeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INDateComponentsRangeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INDateComponentsRangeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3226,7 +3229,7 @@ namespace Intents { [Watch (3, 2)] [Unavailable (PlatformName.MacOSX)] [NoTV] - [Protocol] + [Protocol] interface INPaymentsDomainHandling : INSendPaymentIntentHandling, INRequestPaymentIntentHandling, INPayBillIntentHandling, INSearchForBillsIntentHandling #if NET // Added in iOS 11 -> #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 , INSearchForAccountsIntentHandling, INTransferMoneyIntentHandling @@ -3251,7 +3254,7 @@ namespace Intents { [Unavailable (PlatformName.MacOSX)] [NoTV] [Protocol] - interface INRidesharingDomainHandling : INListRideOptionsIntentHandling, INRequestRideIntentHandling, INGetRideStatusIntentHandling + interface INRidesharingDomainHandling : INListRideOptionsIntentHandling, INRequestRideIntentHandling, INGetRideStatusIntentHandling #if NET // Added in iOS 11 -> #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 , INCancelRideIntentHandling, INSendRideFeedbackIntentHandling #endif @@ -3260,21 +3263,21 @@ namespace Intents { [Deprecated (PlatformName.iOS, 13, 0, message: "Implement 'INCreateNoteIntentHandling, INAppendToNoteIntentHandling, INAddTasksIntentHandling, INCreateTaskListIntentHandling, INSetTaskAttributeIntentHandling and INSearchForNotebookItemsIntentHandling' instead.")] [Deprecated (PlatformName.WatchOS, 6, 0, message: "Implement 'INCreateNoteIntentHandling, INAppendToNoteIntentHandling, INAddTasksIntentHandling, INCreateTaskListIntentHandling, INSetTaskAttributeIntentHandling and INSearchForNotebookItemsIntentHandling' instead.")] - [Watch (4,0), NoMac, iOS (11,0), NoTV] + [Watch (4, 0), NoMac, iOS (11, 0), NoTV] [Protocol] interface INNotebookDomainHandling : INCreateNoteIntentHandling, INAppendToNoteIntentHandling, INAddTasksIntentHandling, INCreateTaskListIntentHandling, INSetTaskAttributeIntentHandling, INSearchForNotebookItemsIntentHandling { } [Deprecated (PlatformName.iOS, 13, 0, message: "Implement 'INGetVisualCodeIntentHandling' instead.")] [Deprecated (PlatformName.WatchOS, 6, 0, message: "Implement 'INGetVisualCodeIntentHandling' instead.")] - [Watch (4,0), NoMac, iOS (11,0), NoTV] + [Watch (4, 0), NoMac, iOS (11, 0), NoTV] [Protocol] interface INVisualCodeDomainHandling : INGetVisualCodeIntentHandling { } [iOS (10, 0)] [Watch (3, 2)] - [Mac (11,0), TV (14,0)] + [Mac (11, 0), TV (14, 0)] [Unavailable (PlatformName.MacOSX)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] @@ -3307,13 +3310,13 @@ namespace Intents { INDoubleResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INDoubleResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INDoubleResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3321,7 +3324,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [Mac (11,0)] + [Mac (11, 0)] [NoTV] [DisableDefaultCtor] [BaseType (typeof (INIntentResolutionResult))] @@ -3358,13 +3361,13 @@ namespace Intents { INDateComponentsResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INDateComponentsResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INDateComponentsResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3427,7 +3430,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [TV (14,0), Mac (11,0)] + [TV (14, 0), Mac (11, 0)] [Protocol] interface INIntentHandlerProviding { @@ -3439,7 +3442,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [Mac (11,0), TV (14,0)] + [Mac (11, 0), TV (14, 0)] [BaseType (typeof (NSObject))] interface INExtension : INIntentHandlerProviding { } @@ -3451,7 +3454,7 @@ namespace Intents { [BaseType (typeof (INIntent))] interface INGetAvailableRestaurantReservationBookingDefaultsIntent { - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithRestaurant:")] NativeHandle Constructor ([NullAllowed] INRestaurant restaurant); @@ -3520,7 +3523,7 @@ namespace Intents { [BaseType (typeof (INIntent))] interface INGetAvailableRestaurantReservationBookingsIntent : NSCopying { - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithRestaurant:partySize:preferredBookingDateComponents:maximumNumberOfResults:earliestBookingDateForResults:latestBookingDateForResults:")] NativeHandle Constructor (INRestaurant restaurant, nuint partySize, [NullAllowed] NSDateComponents preferredBookingDateComponents, [NullAllowed] NSNumber maximumNumberOfResults, [NullAllowed] NSDate earliestBookingDateForResults, [NullAllowed] NSDate latestBookingDateForResults); @@ -3693,7 +3696,7 @@ namespace Intents { } interface IINGetRideStatusIntentResponseObserver { } - + [iOS (10, 0)] [Watch (3, 2)] [Unavailable (PlatformName.MacOSX)] @@ -3732,11 +3735,11 @@ namespace Intents { [BaseType (typeof (INIntent))] interface INGetUserCurrentRestaurantReservationBookingsIntent : NSCopying { - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithRestaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:")] NativeHandle Constructor ([NullAllowed] INRestaurant restaurant, [NullAllowed] string reservationIdentifier, [NullAllowed] NSNumber maximumNumberOfResults, [NullAllowed] NSDate earliestBookingDateForResults); - [iOS (11,0)] + [iOS (11, 0)] [Wrap ("this (restaurant, reservationIdentifier, NSNumber.FromNInt (maximumNumberOfResults), earliestBookingDateForResults)")] NativeHandle Constructor ([NullAllowed] INRestaurant restaurant, [NullAllowed] string reservationIdentifier, nint maximumNumberOfResults, [NullAllowed] NSDate earliestBookingDateForResults); @@ -3798,7 +3801,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INImage : NSCopying, NSSecureCoding { @@ -3807,13 +3810,13 @@ namespace Intents { [Export ("imageNamed:")] INImage FromName (string name); - [NoWatch, NoTV, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoiOS, Mac (13, 0)] [Static] [Export ("imageWithNSImage:")] INImage FromImage (NSImage image); - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("systemImageNamed:")] INImage FromSystem (string systemImageName); @@ -3828,7 +3831,7 @@ namespace Intents { [Export ("imageWithURL:")] INImage FromUrl (NSUrl url); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("imageWithURL:width:height:")] [return: NullAllowed] @@ -3854,7 +3857,7 @@ namespace Intents { [Export ("imageSizeForIntentResponse:")] CGSize GetImageSize (INIntentResponse response); - [NoMac, NoWatch, iOS (11,0), NoTV] + [NoMac, NoWatch, iOS (11, 0), NoTV] [NoMacCatalyst] [Async] [Export ("fetchUIImageWithCompletion:")] @@ -3863,7 +3866,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [TV (14,0), Mac (11,0)] + [TV (14, 0), Mac (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INIntegerResolutionResult { @@ -3895,13 +3898,13 @@ namespace Intents { INIntegerResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("unsupportedWithReason:")] INIntegerResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INIntegerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -3910,7 +3913,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Abstract] [BaseType (typeof (NSObject))] interface INIntent : NSCopying, NSSecureCoding { @@ -3924,43 +3927,42 @@ namespace Intents { [NullAllowed] INIntentIdentifier? Identifier { get; } - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("intentDescription")] string IntentDescription { get; } - [Watch (5,0), Mac (11,0), iOS (12,0)] + [Watch (5, 0), Mac (11, 0), iOS (12, 0)] [NullAllowed, Export ("suggestedInvocationPhrase")] string SuggestedInvocationPhrase { get; set; } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("shortcutAvailability", ArgumentSemantic.Assign)] INShortcutAvailabilityOptions ShortcutAvailability { get; set; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("donationMetadata", ArgumentSemantic.Copy)] INIntentDonationMetadata DonationMetadata { get; set; } - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] [Export ("setImage:forParameterNamed:")] void SetImage ([NullAllowed] INImage image, string parameterName); - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] [Export ("imageForParameterNamed:")] [return: NullAllowed] INImage GetImage (string parameterName); - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] [return: NullAllowed] [Export ("keyImage")] INImage GetKeyImage (); } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst(15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface INIntentDonationMetadata : NSCopying, NSSecureCoding - { + interface INIntentDonationMetadata : NSCopying, NSSecureCoding { } interface INIntentResolutionResult : INIntentResolutionResult { } @@ -3968,7 +3970,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Abstract] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -4003,7 +4005,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Abstract] [BaseType (typeof (NSObject))] interface INIntentResponse : NSCopying, NSSecureCoding { @@ -4012,7 +4014,7 @@ namespace Intents { NSUserActivity UserActivity { get; - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] set; } } @@ -4020,7 +4022,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INInteraction : NSSecureCoding, NSCopying { @@ -4072,7 +4074,7 @@ namespace Intents { // From INParameter.h INInteraction () [Internal] - [iOS (11,0), Watch (4,0), NoMac, NoTV] + [iOS (11, 0), Watch (4, 0), NoMac, NoTV] [Export ("parameterValueForParameter:")] IntPtr _GetParameterValue (INParameter parameter); } @@ -4159,22 +4161,22 @@ namespace Intents { [DisableDefaultCtor] interface INMessage : NSCopying, NSSecureCoding { - [Watch (9,0), NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:serviceName:audioMessageFile:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson[] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType, [NullAllowed] string serviceName, [NullAllowed] INFile audioMessageFile); + NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson [] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType, [NullAllowed] string serviceName, [NullAllowed] INFile audioMessageFile); - [Watch (6,1), NoMac, iOS (13,2)] + [Watch (6, 1), NoMac, iOS (13, 2)] [Export ("initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:serviceName:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson[] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType, [NullAllowed] string serviceName); - - [Watch (4,0), iOS (11,0)] + NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson [] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType, [NullAllowed] string serviceName); + + [Watch (4, 0), iOS (11, 0)] [Export ("initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:")] [DesignatedInitializer] NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson [] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:messageType:")] NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson [] recipients, INMessageType messageType); @@ -4184,7 +4186,7 @@ namespace Intents { [Export ("identifier")] string Identifier { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("conversationIdentifier")] string ConversationIdentifier { get; } @@ -4200,11 +4202,11 @@ namespace Intents { [NullAllowed, Export ("recipients", ArgumentSemantic.Copy)] INPerson [] Recipients { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("groupName", ArgumentSemantic.Copy)] INSpeakableString GroupName { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("messageType")] INMessageType MessageType { get; } @@ -4212,7 +4214,7 @@ namespace Intents { [NullAllowed, Export ("serviceName")] string ServiceName { get; } - [Watch (9,0), NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoMac, iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("audioMessageFile", ArgumentSemantic.Copy)] INFile AudioMessageFile { get; } } @@ -4229,7 +4231,7 @@ namespace Intents { [DisableDefaultCtor] interface INMessageAttributeOptionsResolutionResult { - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedMessageAttributeOptions:")] @@ -4243,7 +4245,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INMessageAttributeOptionsResolutionResult SuccessWithResolvedValue (INMessageAttributeOptions resolvedValue); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithMessageAttributeOptionsToConfirm:")] @@ -4276,13 +4278,13 @@ namespace Intents { INMessageAttributeOptionsResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INMessageAttributeOptionsResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INMessageAttributeOptionsResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4300,7 +4302,7 @@ namespace Intents { [DisableDefaultCtor] interface INMessageAttributeResolutionResult { - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedMessageAttribute:")] @@ -4314,7 +4316,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INMessageAttributeResolutionResult SuccessWithResolvedValue (INMessageAttribute resolvedValue); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithMessageAttributeToConfirm:")] @@ -4347,13 +4349,13 @@ namespace Intents { INMessageAttributeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INMessageAttributeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INMessageAttributeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4416,7 +4418,7 @@ namespace Intents { [iOS (10, 0)] [Watch (3, 2)] - [NoTV, Mac (11,0)] + [NoTV, Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INPaymentMethod : NSCopying, NSSecureCoding { @@ -4490,23 +4492,23 @@ namespace Intents { [Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:")] NativeHandle Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier); - [Watch (7,0), iOS (14,0), Mac (11,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0), Mac (11, 0)] + [MacCatalyst (14, 0)] [Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:relationship:")] NativeHandle Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier, [NullAllowed] string relationship); - [Watch (5,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:")] [DesignatedInitializer] NativeHandle Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier, bool isMe); [Internal] - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:")] IntPtr InitWithMe (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier, bool isMe, INPersonSuggestionType suggestionType); [Internal] - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:")] IntPtr InitWithContactSuggestion (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier, bool isContactSuggestion, INPersonSuggestionType suggestionType); @@ -4552,11 +4554,11 @@ namespace Intents { [Export ("siriMatches", ArgumentSemantic.Copy), NullAllowed] INPerson [] SiriMatches { get; } - [Mac (10,13), iOS (11,0), Watch (4,0)] + [Mac (10, 13), iOS (11, 0), Watch (4, 0)] [Export ("isMe")] bool IsMe { get; } - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("contactSuggestion")] bool ContactSuggestion { [Bind ("isContactSuggestion")] get; } } @@ -4639,13 +4641,13 @@ namespace Intents { INPersonResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INPersonResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INPersonResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4690,13 +4692,13 @@ namespace Intents { INPlacemarkResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INPlacemarkResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INPlacemarkResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4708,16 +4710,16 @@ namespace Intents { #if NET || TVOS || __MACCATALYST__ [DisableDefaultCtor] #endif - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] interface INPreferences { - [Watch (6,0)] + [Watch (6, 0)] [Static] [Export ("siriAuthorizationStatus")] INSiriAuthorizationStatus SiriAuthorizationStatus { get; } - [Watch (6,0)] + [Watch (6, 0)] [Static] [Async] [Export ("requestSiriAuthorization:")] @@ -4770,7 +4772,7 @@ namespace Intents { [DisableDefaultCtor] interface INRadioTypeResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedRadioType:")] @@ -4782,7 +4784,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INRadioTypeResolutionResult SuccessWithResolvedValue (INRadioType resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithRadioTypeToConfirm:")] @@ -4813,13 +4815,13 @@ namespace Intents { INRadioTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRadioTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRadioTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4834,7 +4836,7 @@ namespace Intents { [DisableDefaultCtor] interface INRelativeReferenceResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedRelativeReference:")] @@ -4846,7 +4848,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INRelativeReferenceResolutionResult SuccessWithResolvedValue (INRelativeReference resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithRelativeReferenceToConfirm:")] @@ -4877,13 +4879,13 @@ namespace Intents { INRelativeReferenceResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRelativeReferenceResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRelativeReferenceResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4898,7 +4900,7 @@ namespace Intents { [DisableDefaultCtor] interface INRelativeSettingResolutionResult { - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedRelativeSetting:")] @@ -4910,7 +4912,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INRelativeSettingResolutionResult SuccessWithResolvedValue (INRelativeSetting resolvedValue); - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithRelativeSettingToConfirm:")] @@ -4941,13 +4943,13 @@ namespace Intents { INRelativeSettingResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRelativeSettingResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRelativeSettingResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -4999,7 +5001,7 @@ namespace Intents { [Export ("resolvePayerForRequestPayment:withCompletion:")] void ResolvePayer (INRequestPaymentIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolvePayerForRequestPayment:completion:")] void ResolvePayer (INRequestPaymentIntent intent, Action completion); @@ -5008,7 +5010,7 @@ namespace Intents { [Export ("resolveCurrencyAmountForRequestPayment:withCompletion:")] void ResolveCurrencyAmount (INRequestPaymentIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveCurrencyAmountForRequestPayment:completion:")] void ResolveCurrencyAmount (INRequestPaymentIntent intent, Action completion); @@ -5242,13 +5244,13 @@ namespace Intents { INRestaurantGuestResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRestaurantGuestResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRestaurantGuestResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -5388,13 +5390,13 @@ namespace Intents { INRestaurantResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRestaurantResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRestaurantResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -5475,7 +5477,7 @@ namespace Intents { [Export ("completedWithOutstandingPaymentAmount:")] INRideCompletionStatus GetOutstandingPaymentAmount (INCurrencyAmount outstandingPaymentAmount); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Static] [Export ("completedWithOutstandingFeedbackType:")] INRideCompletionStatus GetCompleted (INRideFeedbackTypeOptions feedbackType); @@ -5507,14 +5509,14 @@ namespace Intents { [NullAllowed, Export ("paymentAmount", ArgumentSemantic.Strong)] INCurrencyAmount PaymentAmount { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("feedbackType", ArgumentSemantic.Assign)] INRideFeedbackTypeOptions FeedbackType { get; } [Export ("outstanding")] bool Outstanding { [Bind ("isOutstanding")] get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("defaultTippingOptions", ArgumentSemantic.Strong)] NSSet DefaultTippingOptions { get; set; } } @@ -5528,12 +5530,12 @@ namespace Intents { interface INRideDriver : NSCopying, NSSecureCoding { [Export ("initWithPersonHandle:nameComponents:displayName:image:rating:phoneNumber:")] - [Deprecated (PlatformName.iOS, 10,2, message:"Use the overload signature instead.")] + [Deprecated (PlatformName.iOS, 10, 2, message: "Use the overload signature instead.")] [Unavailable (PlatformName.WatchOS)] NativeHandle Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string rating, [NullAllowed] string phoneNumber); [Export ("initWithPhoneNumber:nameComponents:displayName:image:rating:")] - [iOS (10,2)] + [iOS (10, 2)] [DesignatedInitializer] NativeHandle Constructor (string phoneNumber, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string rating); @@ -5733,7 +5735,7 @@ namespace Intents { [NullAllowed, Export ("profileNumber", ArgumentSemantic.Copy)] NSNumber ProfileNumber { get; } - [Deprecated (PlatformName.iOS, 10,2, message:"Use 'ProfileName' instead.")] + [Deprecated (PlatformName.iOS, 10, 2, message: "Use 'ProfileName' instead.")] [NullAllowed, Export ("profileLabel")] string ProfileLabel { get; } @@ -5793,7 +5795,7 @@ namespace Intents { #elif MONOMAC [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] #endif - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] [Watch (3, 2)] @@ -5801,12 +5803,12 @@ namespace Intents { [BaseType (typeof (INIntent))] interface INSearchCallHistoryIntent { - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithDateCreated:recipient:callCapabilities:callTypes:unseen:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INDateComponentsRange dateCreated, [NullAllowed] INPerson recipient, INCallCapabilityOptions callCapabilities, INCallRecordTypeOptions callTypes, [NullAllowed] NSNumber unseen); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Wrap ("this (dateCreated, recipient, callCapabilities, callTypes, new NSNumber (unseen))")] NativeHandle Constructor ([NullAllowed] INDateComponentsRange dateCreated, [NullAllowed] INPerson recipient, INCallCapabilityOptions callCapabilities, INCallRecordTypeOptions callTypes, bool unseen); @@ -5829,12 +5831,12 @@ namespace Intents { [Export ("callCapabilities", ArgumentSemantic.Assign)] INCallCapabilityOptions CallCapabilities { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("callTypes", ArgumentSemantic.Assign)] INCallRecordTypeOptions CallTypes { get; } [Protected] - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("unseen", ArgumentSemantic.Copy)] NSNumber WeakUnseen { get; } } @@ -5878,13 +5880,13 @@ namespace Intents { void ResolveRecipient (INSearchCallHistoryIntent intent, Action completion); #if !NET - [Mac (10,13)] + [Mac (10, 13)] #endif - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveCallTypesForSearchCallHistory:withCompletion:")] void ResolveCallTypes (INSearchCallHistoryIntent intent, Action completion); - [Watch (4,0), NoMac, iOS (11,0)] + [Watch (4, 0), NoMac, iOS (11, 0)] [Export ("resolveUnseenForSearchCallHistory:withCompletion:")] void ResolveUnseen (INSearchCallHistoryIntent intent, Action completion); } @@ -5910,7 +5912,7 @@ namespace Intents { [Export ("code")] INSearchCallHistoryIntentResponseCode Code { get; } - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [NullAllowed, Export ("callRecords", ArgumentSemantic.Copy)] INCallRecord [] CallRecords { get; set; } } @@ -5926,14 +5928,14 @@ namespace Intents { [BaseType (typeof (INIntent))] interface INSearchForMessagesIntent { - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use the overload that takes 'conversationIdentifiers' instead.")] - [Deprecated (PlatformName.WatchOS, 5,0, message: "Use the overload that takes 'conversationIdentifiers' instead.")] - [Deprecated (PlatformName.iOS, 12,0, message: "Use the overload that takes 'conversationIdentifiers' instead.")] - [Watch (4,0), iOS (11,0)] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use the overload that takes 'conversationIdentifiers' instead.")] + [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use the overload that takes 'conversationIdentifiers' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use the overload that takes 'conversationIdentifiers' instead.")] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithRecipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:speakableGroupNames:")] NativeHandle Constructor ([NullAllowed] INPerson [] recipients, [NullAllowed] INPerson [] senders, [NullAllowed] string [] searchTerms, INMessageAttributeOptions attributes, [NullAllowed] INDateComponentsRange dateTimeRange, [NullAllowed] string [] identifiers, [NullAllowed] string [] notificationIdentifiers, [NullAllowed] INSpeakableString [] speakableGroupNames); - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("initWithRecipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:speakableGroupNames:conversationIdentifiers:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INPerson [] recipients, [NullAllowed] INPerson [] senders, [NullAllowed] string [] searchTerms, INMessageAttributeOptions attributes, [NullAllowed] INDateComponentsRange dateTimeRange, [NullAllowed] string [] identifiers, [NullAllowed] string [] notificationIdentifiers, [NullAllowed] INSpeakableString [] speakableGroupNames, [NullAllowed] string [] conversationIdentifiers); @@ -5992,19 +5994,19 @@ namespace Intents { [Export ("groupNamesOperator", ArgumentSemantic.Assign)] INConditionalOperator GroupNamesOperator { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("speakableGroupNames", ArgumentSemantic.Copy)] INSpeakableString [] SpeakableGroupNames { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("speakableGroupNamesOperator", ArgumentSemantic.Assign)] INConditionalOperator SpeakableGroupNamesOperator { get; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [NullAllowed, Export ("conversationIdentifiers", ArgumentSemantic.Copy)] string [] ConversationIdentifiers { get; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Export ("conversationIdentifiersOperator", ArgumentSemantic.Assign)] INConditionalOperator ConversationIdentifiersOperator { get; } } @@ -6019,7 +6021,7 @@ namespace Intents { [NoTV] [Protocol] interface INSearchForMessagesIntentHandling { - + [Abstract] [Export ("handleSearchForMessages:completion:")] void HandleSearchForMessages (INSearchForMessagesIntent intent, Action completion); @@ -6052,9 +6054,9 @@ namespace Intents { void ResolveGroupNames (INSearchForMessagesIntent intent, Action completion); #if !NET - [Mac (10,13)] + [Mac (10, 13)] #endif - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveSpeakableGroupNamesForSearchForMessages:withCompletion:")] void ResolveSpeakableGroupNames (INSearchForMessagesIntent intent, Action completion); } @@ -6082,7 +6084,7 @@ namespace Intents { INMessage [] Messages { get; set; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] [Watch (3, 2)] @@ -6123,7 +6125,7 @@ namespace Intents { INConditionalOperator PeopleInPhotoOperator { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] [Watch (3, 2)] @@ -6154,7 +6156,7 @@ namespace Intents { [Export ("resolveAlbumNameForSearchForPhotos:withCompletion:")] void ResolveAlbumName (INSearchForPhotosIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveSearchTermsForSearchForPhotos:withCompletion:")] void ResolveSearchTerms (INSearchForPhotosIntent intent, Action completion); @@ -6183,23 +6185,23 @@ namespace Intents { NSNumber SearchResultsCount { get; set; } } - [Mac (12,0)] + [Mac (12, 0)] [iOS (10, 0)] [Watch (3, 2)] [NoTV] [BaseType (typeof (INIntent))] interface INSendMessageIntent : UNNotificationContentProviding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithRecipients:outgoingMessageType:content:speakableGroupName:conversationIdentifier:serviceName:sender:attachments:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INPerson[] recipients, INOutgoingMessageType outgoingMessageType, [NullAllowed] string content, [NullAllowed] INSpeakableString speakableGroupName, [NullAllowed] string conversationIdentifier, [NullAllowed] string serviceName, [NullAllowed] INPerson sender, [NullAllowed] INSendMessageAttachment[] attachments); + NativeHandle Constructor ([NullAllowed] INPerson [] recipients, INOutgoingMessageType outgoingMessageType, [NullAllowed] string content, [NullAllowed] INSpeakableString speakableGroupName, [NullAllowed] string conversationIdentifier, [NullAllowed] string serviceName, [NullAllowed] INPerson sender, [NullAllowed] INSendMessageAttachment [] attachments); [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")] [Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")] - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithRecipients:content:speakableGroupName:conversationIdentifier:serviceName:sender:")] NativeHandle Constructor ([NullAllowed] INPerson [] recipients, [NullAllowed] string content, [NullAllowed] INSpeakableString speakableGroupName, [NullAllowed] string conversationIdentifier, [NullAllowed] string serviceName, [NullAllowed] INPerson sender); @@ -6212,19 +6214,19 @@ namespace Intents { [NullAllowed, Export ("recipients", ArgumentSemantic.Copy)] INPerson [] Recipients { get; } - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("outgoingMessageType", ArgumentSemantic.Assign)] INOutgoingMessageType OutgoingMessageType { get; } [NullAllowed, Export ("content")] string Content { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("speakableGroupName", ArgumentSemantic.Copy)] INSpeakableString SpeakableGroupName { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("conversationIdentifier")] string ConversationIdentifier { get; } @@ -6240,18 +6242,17 @@ namespace Intents { [NullAllowed, Export ("sender", ArgumentSemantic.Copy)] INPerson Sender { get; } - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("attachments", ArgumentSemantic.Copy)] - INSendMessageAttachment[] Attachments { get; } + INSendMessageAttachment [] Attachments { get; } } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(INIntentDonationMetadata))] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (INIntentDonationMetadata))] [DisableDefaultCtor] - interface INSendMessageIntentDonationMetadata - { + interface INSendMessageIntentDonationMetadata { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -6295,7 +6296,7 @@ namespace Intents { [Export ("resolveRecipientsForSendMessage:withCompletion:")] void ResolveRecipients (INSendMessageIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveRecipientsForSendMessage:completion:")] void ResolveRecipients (INSendMessageIntent intent, Action completion); @@ -6308,15 +6309,15 @@ namespace Intents { [Export ("resolveGroupNameForSendMessage:withCompletion:")] void ResolveGroupName (INSendMessageIntent intent, Action completion); - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("resolveOutgoingMessageTypeForSendMessage:withCompletion:")] void ResolveOutgoingMessageType (INSendMessageIntent intent, Action completion); #if NET [NoMac] // The INSpeakableStringResolutionResult used as a parameter type is not available in macOS #endif - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveSpeakableGroupNameForSendMessage:withCompletion:")] void ResolveSpeakableGroupName (INSendMessageIntent intent, Action completion); } @@ -6342,14 +6343,14 @@ namespace Intents { [Deprecated (PlatformName.iOS, 16, 0, message: "Use the 'SentMessages' property instead.")] [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use the 'SentMessages' property instead.")] [Deprecated (PlatformName.WatchOS, 9, 0, message: "Use the 'SentMessages' property instead.")] - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("sentMessage", ArgumentSemantic.Copy)] INMessage SentMessage { get; set; } [NoMac] [Watch (9, 0), iOS (16, 0)] [NullAllowed, Export ("sentMessages", ArgumentSemantic.Copy)] - INMessage[] SentMessages { get; set; } + INMessage [] SentMessages { get; set; } } [iOS (10, 0)] @@ -6398,7 +6399,7 @@ namespace Intents { [Export ("resolvePayeeForSendPayment:withCompletion:")] void ResolvePayee (INSendPaymentIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolvePayeeForSendPayment:completion:")] void ResolvePayee (INSendPaymentIntent intent, Action completion); @@ -6407,7 +6408,7 @@ namespace Intents { [Export ("resolveCurrencyAmountForSendPayment:withCompletion:")] void ResolveCurrencyAmount (INSendPaymentIntent intent, Action completion); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("resolveCurrencyAmountForSendPayment:completion:")] void ResolveCurrencyAmount (INSendPaymentIntent intent, Action completion); @@ -6511,10 +6512,10 @@ namespace Intents { [Export ("initWithEnableFan:enableAirConditioner:enableClimateControl:enableAutoMode:airCirculationMode:fanSpeedIndex:fanSpeedPercentage:relativeFanSpeedSetting:temperature:relativeTemperatureSetting:climateZone:")] NativeHandle Constructor ([NullAllowed] NSNumber enableFan, [NullAllowed] NSNumber enableAirConditioner, [NullAllowed] NSNumber enableClimateControl, [NullAllowed] NSNumber enableAutoMode, INCarAirCirculationMode airCirculationMode, [NullAllowed] NSNumber fanSpeedIndex, [NullAllowed] NSNumber fanSpeedPercentage, INRelativeSetting relativeFanSpeedSetting, [NullAllowed] NSMeasurement temperature, INRelativeSetting relativeTemperatureSetting, INCarSeat climateZone); - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithEnableFan:enableAirConditioner:enableClimateControl:enableAutoMode:airCirculationMode:fanSpeedIndex:fanSpeedPercentage:relativeFanSpeedSetting:temperature:relativeTemperatureSetting:climateZone:carName:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (bool?))] NSNumber enableFan, [NullAllowed] [BindAs (typeof (bool?))] NSNumber enableAirConditioner, [NullAllowed] [BindAs (typeof (bool?))] NSNumber enableClimateControl, [NullAllowed] [BindAs (typeof (bool?))] NSNumber enableAutoMode, INCarAirCirculationMode airCirculationMode, [NullAllowed] [BindAs (typeof (int?))] NSNumber fanSpeedIndex, [NullAllowed] [BindAs (typeof (double?))] NSNumber fanSpeedPercentage, INRelativeSetting relativeFanSpeedSetting, [NullAllowed] NSMeasurement temperature, INRelativeSetting relativeTemperatureSetting, INCarSeat climateZone, [NullAllowed] INSpeakableString carName); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (bool?))] NSNumber enableFan, [NullAllowed][BindAs (typeof (bool?))] NSNumber enableAirConditioner, [NullAllowed][BindAs (typeof (bool?))] NSNumber enableClimateControl, [NullAllowed][BindAs (typeof (bool?))] NSNumber enableAutoMode, INCarAirCirculationMode airCirculationMode, [NullAllowed][BindAs (typeof (int?))] NSNumber fanSpeedIndex, [NullAllowed][BindAs (typeof (double?))] NSNumber fanSpeedPercentage, INRelativeSetting relativeFanSpeedSetting, [NullAllowed] NSMeasurement temperature, INRelativeSetting relativeTemperatureSetting, INCarSeat climateZone, [NullAllowed] INSpeakableString carName); [BindAs (typeof (bool?))] [NullAllowed, Export ("enableFan", ArgumentSemantic.Copy)] @@ -6559,12 +6560,12 @@ namespace Intents { [Export ("climateZone", ArgumentSemantic.Assign)] INCarSeat ClimateZone { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed, Export ("carName", ArgumentSemantic.Copy)] INSpeakableString CarName { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Unavailable (PlatformName.WatchOS)] @@ -6618,7 +6619,7 @@ namespace Intents { [Export ("resolveClimateZoneForSetClimateSettingsInCar:withCompletion:")] void ResolveClimateZone (INSetClimateSettingsInCarIntent intent, Action completion); - [iOS (12,0)] + [iOS (12, 0)] [Export ("resolveCarNameForSetClimateSettingsInCar:withCompletion:")] void ResolveCarName (INSetClimateSettingsInCarIntent intent, Action completion); } @@ -6653,10 +6654,10 @@ namespace Intents { [Export ("initWithEnable:defroster:")] NativeHandle Constructor ([NullAllowed] NSNumber enable, INCarDefroster defroster); - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithEnable:defroster:carName:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (bool?))] NSNumber enable, INCarDefroster defroster, [NullAllowed] INSpeakableString carName); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (bool?))] NSNumber enable, INCarDefroster defroster, [NullAllowed] INSpeakableString carName); [BindAs (typeof (bool?))] [NullAllowed, Export ("enable", ArgumentSemantic.Copy)] @@ -6665,12 +6666,12 @@ namespace Intents { [Export ("defroster", ArgumentSemantic.Assign)] INCarDefroster Defroster { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed, Export ("carName", ArgumentSemantic.Copy)] INSpeakableString CarName { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Unavailable (PlatformName.WatchOS)] @@ -6697,7 +6698,7 @@ namespace Intents { [Export ("resolveDefrosterForSetDefrosterSettingsInCar:withCompletion:")] void ResolveDefroster (INSetDefrosterSettingsInCarIntent intent, Action completion); - [iOS (12,0)] + [iOS (12, 0)] [Export ("resolveCarNameForSetDefrosterSettingsInCar:withCompletion:")] void ResolveCarName (INSetDefrosterSettingsInCarIntent intent, Action completion); } @@ -6777,7 +6778,7 @@ namespace Intents { INSetMessageAttributeIntentResponseCode Code { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Unavailable (PlatformName.WatchOS)] @@ -6794,10 +6795,10 @@ namespace Intents { [Export ("initWithProfileNumber:profileName:defaultProfile:"), Internal] IntPtr InitWithProfileNumberName ([NullAllowed] NSNumber profileNumber, [NullAllowed] string profileName, [NullAllowed] NSNumber defaultProfile); - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithProfileNumber:profileName:defaultProfile:carName:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (int?))] NSNumber profileNumber, [NullAllowed] string profileName, [NullAllowed] [BindAs (typeof (bool?))] NSNumber defaultProfile, [NullAllowed] INSpeakableString carName); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (int?))] NSNumber profileNumber, [NullAllowed] string profileName, [NullAllowed][BindAs (typeof (bool?))] NSNumber defaultProfile, [NullAllowed] INSpeakableString carName); #if NET [BindAs (typeof (int?))] @@ -6822,7 +6823,7 @@ namespace Intents { INSpeakableString CarName { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Unavailable (PlatformName.WatchOS)] @@ -6850,7 +6851,7 @@ namespace Intents { [Export ("resolveDefaultProfileForSetProfileInCar:withCompletion:")] void ResolveDefaultProfile (INSetProfileInCarIntent intent, Action completion); - [iOS (12,0)] + [iOS (12, 0)] [Export ("resolveCarNameForSetProfileInCar:withCompletion:")] void ResolveCarName (INSetProfileInCarIntent intent, Action completion); @@ -6971,10 +6972,10 @@ namespace Intents { [Export ("initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:")] NativeHandle Constructor ([NullAllowed] NSNumber enableHeating, [NullAllowed] NSNumber enableCooling, [NullAllowed] NSNumber enableMassage, INCarSeat seat, [NullAllowed] NSNumber level, INRelativeSetting relativeLevelSetting); - [iOS (12,0)] + [iOS (12, 0)] [Export ("initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:carName:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (bool?))] NSNumber enableHeating, [NullAllowed] [BindAs (typeof (bool?))] NSNumber enableCooling, [NullAllowed] [BindAs (typeof (bool?))] NSNumber enableMassage, INCarSeat seat, [NullAllowed] [BindAs (typeof (int?))] NSNumber level, INRelativeSetting relativeLevelSetting, [NullAllowed] INSpeakableString carName); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (bool?))] NSNumber enableHeating, [NullAllowed][BindAs (typeof (bool?))] NSNumber enableCooling, [NullAllowed][BindAs (typeof (bool?))] NSNumber enableMassage, INCarSeat seat, [NullAllowed][BindAs (typeof (int?))] NSNumber level, INRelativeSetting relativeLevelSetting, [NullAllowed] INSpeakableString carName); [BindAs (typeof (bool?))] [NullAllowed, Export ("enableHeating", ArgumentSemantic.Copy)] @@ -7000,7 +7001,7 @@ namespace Intents { [Export ("relativeLevelSetting", ArgumentSemantic.Assign)] INRelativeSetting RelativeLevelSetting { get; } - [iOS (12,0)] + [iOS (12, 0)] [NullAllowed, Export ("carName", ArgumentSemantic.Copy)] INSpeakableString CarName { get; } } @@ -7044,7 +7045,7 @@ namespace Intents { [Export ("resolveRelativeLevelSettingForSetSeatSettingsInCar:withCompletion:")] void ResolveRelativeLevelSetting (INSetSeatSettingsInCarIntent intent, Action completion); - [iOS (12,0)] + [iOS (12, 0)] [Export ("resolveCarNameForSetSeatSettingsInCar:withCompletion:")] void ResolveCarName (INSetSeatSettingsInCarIntent intent, Action completion); } @@ -7066,11 +7067,10 @@ namespace Intents { INSetSeatSettingsInCarIntentResponseCode Code { get; } } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(INIntent))] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (INIntent))] [DisableDefaultCtor] - interface INShareFocusStatusIntent - { + interface INShareFocusStatusIntent { [Export ("initWithFocusStatus:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INFocusStatus focusStatus); @@ -7079,10 +7079,9 @@ namespace Intents { INFocusStatus FocusStatus { get; } } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface INShareFocusStatusIntentHandling - { + interface INShareFocusStatusIntentHandling { [Abstract] [Export ("handleShareFocusStatus:completion:")] void HandleShareFocusStatus (INShareFocusStatusIntent intent, Action completion); @@ -7091,10 +7090,9 @@ namespace Intents { void ConfirmShareFocusStatus (INShareFocusStatusIntent intent, Action completion); } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum INShareFocusStatusIntentResponseCode : long - { + public enum INShareFocusStatusIntentResponseCode : long { Unspecified = 0, Ready, InProgress, @@ -7103,11 +7101,10 @@ namespace Intents { FailureRequiringAppLaunch, } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(INIntentResponse))] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] - interface INShareFocusStatusIntentResponse - { + interface INShareFocusStatusIntentResponse { [Export ("initWithCode:userActivity:")] [DesignatedInitializer] NativeHandle Constructor (INShareFocusStatusIntentResponseCode code, [NullAllowed] NSUserActivity userActivity); @@ -7121,7 +7118,7 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [Protocol] interface INSpeakable { @@ -7133,14 +7130,14 @@ namespace Intents { [NullAllowed, Export ("pronunciationHint")] string PronunciationHint { get; } - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] #if NET [Abstract] #endif [NullAllowed, Export ("vocabularyIdentifier")] string VocabularyIdentifier { get; } - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] #if NET [Abstract] #endif @@ -7160,12 +7157,12 @@ namespace Intents { [iOS (10, 0)] [Mac (10, 12, 0)] [Watch (3, 2)] - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INSpeakableString : INSpeakable, NSCopying, NSSecureCoding { - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Export ("initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:")] IntPtr InitWithVocabularyIdentifier (string vocabularyIdentifier, string spokenPhrase, [NullAllowed] string pronunciationHint); @@ -7224,13 +7221,13 @@ namespace Intents { INSpeakableStringResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INSpeakableStringResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INSpeakableStringResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -7255,12 +7252,12 @@ namespace Intents { [Export ("initWithContacts:")] NativeHandle Constructor ([NullAllowed] INPerson [] contacts); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithDestinationType:contacts:")] [DesignatedInitializer] NativeHandle Constructor (INCallDestinationType destinationType, [NullAllowed] INPerson [] contacts); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("destinationType", ArgumentSemantic.Assign)] INCallDestinationType DestinationType { get; } @@ -7294,7 +7291,7 @@ namespace Intents { #endif (INStartAudioCallIntent intent, Action completion); - [Watch (4,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Export ("resolveDestinationTypeForStartAudioCall:withCompletion:")] void ResolveDestinationType (INStartAudioCallIntent intent, Action completion); @@ -7365,7 +7362,7 @@ namespace Intents { INConditionalOperator PeopleInPhotoOperator { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] [Watch (3, 2)] @@ -7615,22 +7612,22 @@ namespace Intents { INStringResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INStringResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INStringResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Deprecated (PlatformName.iOS, 15, 0)] - [Deprecated (PlatformName.MacCatalyst, 15, 0)] - [Deprecated (PlatformName.MacOSX, 12, 0)] - [Deprecated (PlatformName.WatchOS, 8, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.MacCatalyst, 15, 0)] + [Deprecated (PlatformName.MacOSX, 12, 0)] + [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] [NoTV] [DisableDefaultCtor] @@ -7668,13 +7665,13 @@ namespace Intents { INTemperatureResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INTemperatureResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INTemperatureResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -7704,7 +7701,7 @@ namespace Intents { [iOS (10, 0)] [Unavailable (PlatformName.MacOSX)] [Watch (6, 0)] - [TV (14,0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INVocabulary { @@ -7716,7 +7713,7 @@ namespace Intents { [Export ("setVocabularyStrings:ofType:")] void SetVocabularyStrings (NSOrderedSet vocabulary, INVocabularyStringType type); - [iOS (11,0)] + [iOS (11, 0)] [Export ("setVocabulary:ofType:")] void SetVocabulary (NSOrderedSet vocabulary, INVocabularyStringType type); @@ -7732,7 +7729,7 @@ namespace Intents { [BaseType (typeof (INIntentResolutionResult))] interface INWorkoutGoalUnitTypeResolutionResult { - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedWorkoutGoalUnitType:")] @@ -7745,7 +7742,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INWorkoutGoalUnitTypeResolutionResult SuccessWithResolvedValue (INWorkoutGoalUnitType resolvedValue); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithWorkoutGoalUnitTypeToConfirm:")] @@ -7777,13 +7774,13 @@ namespace Intents { INWorkoutGoalUnitTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INWorkoutGoalUnitTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INWorkoutGoalUnitTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -7797,7 +7794,7 @@ namespace Intents { [BaseType (typeof (INIntentResolutionResult))] interface INWorkoutLocationTypeResolutionResult { - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedWorkoutLocationType:")] @@ -7810,7 +7807,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INWorkoutLocationTypeResolutionResult SuccessWithResolvedValue (INWorkoutLocationType resolvedValue); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithWorkoutLocationTypeToConfirm:")] @@ -7842,13 +7839,13 @@ namespace Intents { INWorkoutLocationTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INWorkoutLocationTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INWorkoutLocationTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -7862,7 +7859,7 @@ namespace Intents { [BaseType (typeof (NSUserActivity))] interface NSUserActivity_IntentsAdditions { - [Mac (12,0)] + [Mac (12, 0)] [return: NullAllowed] [Export ("interaction")] INInteraction GetInteraction (); @@ -7876,13 +7873,13 @@ namespace Intents { [Export ("setSuggestedInvocationPhrase:")] void SetSuggestedInvocationPhrase ([NullAllowed] string suggestedInvocationPhrase); - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("shortcutAvailability")] INShortcutAvailabilityOptions GetShortcutAvailability (); - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("setShortcutAvailability:")] void SetShortcutAvailability (INShortcutAvailabilityOptions shortcutAvailabilityOptions); } @@ -8037,13 +8034,13 @@ namespace Intents { INBillPayeeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INBillPayeeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INBillPayeeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8066,7 +8063,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INBillTypeResolutionResult SuccessWithResolvedValue (INBillType resolvedValue); - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Internal] [Static] [Export ("successWithResolvedBillType:")] @@ -8079,7 +8076,7 @@ namespace Intents { [Export ("confirmationRequiredWithValueToConfirm:")] INBillTypeResolutionResult ConfirmationRequiredWithValueToConfirm (INBillType valueToConfirm); - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Internal] [Static] [Export ("confirmationRequiredWithBillTypeToConfirm:")] @@ -8104,13 +8101,13 @@ namespace Intents { INBillTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INBillTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INBillTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8124,7 +8121,7 @@ namespace Intents { [DisableDefaultCtor] interface INCarSignalOptionsResolutionResult { - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Internal] [Static] [Export ("successWithResolvedCarSignalOptions:")] @@ -8137,7 +8134,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INCarSignalOptionsResolutionResult SuccessWithResolvedValue (INCarSignalOptions resolvedValue); - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Internal] [Static] [Export ("confirmationRequiredWithCarSignalOptionsToConfirm:")] @@ -8169,13 +8166,13 @@ namespace Intents { INCarSignalOptionsResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCarSignalOptionsResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCarSignalOptionsResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8271,13 +8268,13 @@ namespace Intents { [Export ("handleGetCarPowerLevelStatus:completion:")] void HandleGetCarPowerLevelStatus (INGetCarPowerLevelStatusIntent intent, Action completion); - [NoWatch, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("startSendingUpdatesForGetCarPowerLevelStatus:toObserver:")] void StartSendingUpdates (INGetCarPowerLevelStatusIntent intent, IINGetCarPowerLevelStatusIntentResponseObserver observer); - [NoWatch, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("stopSendingUpdatesForGetCarPowerLevelStatus:")] void StopSendingUpdates (INGetCarPowerLevelStatusIntent intent); @@ -8294,10 +8291,10 @@ namespace Intents { void ResolveCarName (INGetCarPowerLevelStatusIntent intent, Action completion); } - interface IINGetCarPowerLevelStatusIntentResponseObserver {} + interface IINGetCarPowerLevelStatusIntentResponseObserver { } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface INGetCarPowerLevelStatusIntentResponseObserver { @@ -8325,7 +8322,7 @@ namespace Intents { INGetCarPowerLevelStatusIntentResponseCode Code { get; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("carIdentifier")] string CarIdentifier { get; set; } @@ -8346,74 +8343,74 @@ namespace Intents { [NullAllowed, Export ("distanceRemaining", ArgumentSemantic.Copy)] NSMeasurement DistanceRemaining { get; set; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [BindAs (typeof (bool?))] [NullAllowed, Export ("charging", ArgumentSemantic.Copy)] NSNumber Charging { get; set; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [BindAs (typeof (double?))] [NullAllowed, Export ("minutesToFull", ArgumentSemantic.Copy)] NSNumber MinutesToFull { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("maximumDistance", ArgumentSemantic.Copy)] NSMeasurement MaximumDistance { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("distanceRemainingElectric", ArgumentSemantic.Copy)] NSMeasurement DistanceRemainingElectric { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("maximumDistanceElectric", ArgumentSemantic.Copy)] NSMeasurement MaximumDistanceElectric { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("distanceRemainingFuel", ArgumentSemantic.Copy)] NSMeasurement DistanceRemainingFuel { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("maximumDistanceFuel", ArgumentSemantic.Copy)] NSMeasurement MaximumDistanceFuel { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("consumptionFormulaArguments", ArgumentSemantic.Copy)] NSDictionary ConsumptionFormulaArguments { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("chargingFormulaArguments", ArgumentSemantic.Copy)] NSDictionary ChargingFormulaArguments { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("dateOfLastStateUpdate", ArgumentSemantic.Copy)] NSDateComponents DateOfLastStateUpdate { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BindAs (typeof (INCarChargingConnectorType))] [NullAllowed, Export ("activeConnector")] NSString ActiveConnector { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("maximumBatteryCapacity", ArgumentSemantic.Copy)] NSMeasurement MaximumBatteryCapacity { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("currentBatteryCapacity", ArgumentSemantic.Copy)] NSMeasurement CurrentBatteryCapacity { get; set; } [Watch (7, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("minimumBatteryCapacity", ArgumentSemantic.Copy)] NSMeasurement MinimumBatteryCapacity { get; set; } } @@ -8546,7 +8543,7 @@ namespace Intents { [Export ("initWithNickname:number:accountType:organizationName:")] NativeHandle Constructor (INSpeakableString nickname, [NullAllowed] string accountNumber, INAccountType accountType, [NullAllowed] INSpeakableString organizationName); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Export ("initWithNickname:number:accountType:organizationName:balance:secondaryBalance:")] [DesignatedInitializer] NativeHandle Constructor (INSpeakableString nickname, [NullAllowed] string accountNumber, INAccountType accountType, [NullAllowed] INSpeakableString organizationName, [NullAllowed] INBalanceAmount balance, [NullAllowed] INBalanceAmount secondaryBalance); @@ -8563,11 +8560,11 @@ namespace Intents { [Export ("organizationName", ArgumentSemantic.Copy), NullAllowed] INSpeakableString OrganizationName { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("balance", ArgumentSemantic.Copy)] INBalanceAmount Balance { get; } - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [NullAllowed, Export ("secondaryBalance", ArgumentSemantic.Copy)] INBalanceAmount SecondaryBalance { get; } } @@ -8611,13 +8608,13 @@ namespace Intents { INPaymentAccountResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INPaymentAccountResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INPaymentAccountResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8681,13 +8678,13 @@ namespace Intents { INPaymentAmountResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INPaymentAmountResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INPaymentAmountResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8701,7 +8698,7 @@ namespace Intents { [DisableDefaultCtor] interface INPaymentStatusResolutionResult { - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("successWithResolvedPaymentStatus:")] @@ -8714,7 +8711,7 @@ namespace Intents { [Export ("successWithResolvedValue:")] INPaymentStatusResolutionResult SuccessWithResolvedValue (INPaymentStatus resolvedValue); - [Watch (4,0), iOS (11,0)] + [Watch (4, 0), iOS (11, 0)] [Internal] [Static] [Export ("confirmationRequiredWithPaymentStatusToConfirm:")] @@ -8746,13 +8743,13 @@ namespace Intents { INPaymentStatusResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INPaymentStatusResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INPaymentStatusResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -8788,7 +8785,7 @@ namespace Intents { INDateComponentsRange DueDateRange { get; } } - [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 3)] [Watch (3, 2)] @@ -8935,7 +8932,7 @@ namespace Intents { INCarSignalOptions Signals { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INAccountTypeResolutionResult { @@ -8967,31 +8964,31 @@ namespace Intents { INAccountTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INAccountTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INAccountTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoMac, iOS (11,0), NoTV] + [Watch (4, 0), NoMac, iOS (11, 0), NoTV] [BaseType (typeof (INIntent))] interface INAddTasksIntent { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithTargetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:priority:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INTaskList targetTaskList, [NullAllowed] INSpeakableString[] taskTitles, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger, INTaskPriority priority); + NativeHandle Constructor ([NullAllowed] INTaskList targetTaskList, [NullAllowed] INSpeakableString [] taskTitles, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger, INTaskPriority priority); [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use the constructor with 'INTaskPriority priority' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use the constructor with 'INTaskPriority priority' instead.")] [Export ("initWithTargetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:")] - NativeHandle Constructor ([NullAllowed] INTaskList targetTaskList, [NullAllowed] INSpeakableString[] taskTitles, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger); + NativeHandle Constructor ([NullAllowed] INTaskList targetTaskList, [NullAllowed] INSpeakableString [] taskTitles, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger); [NullAllowed, Export ("targetTaskList", ArgumentSemantic.Copy)] INTaskList TargetTaskList { get; } @@ -9005,12 +9002,12 @@ namespace Intents { [NullAllowed, Export ("temporalEventTrigger", ArgumentSemantic.Copy)] INTemporalEventTrigger TemporalEventTrigger { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("priority", ArgumentSemantic.Assign)] INTaskPriority Priority { get; } } - [Watch (4,0), NoMac, iOS (11,0), NoTV] + [Watch (4, 0), NoMac, iOS (11, 0), NoTV] [Protocol] interface INAddTasksIntentHandling { @@ -9026,7 +9023,7 @@ namespace Intents { [Export ("resolveTargetTaskListForAddTasks:withCompletion:")] void ResolveTargetTaskList (INAddTasksIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTargetTaskListForAddTasks:completion:")] void ResolveTargetTaskList (INAddTasksIntent intent, Action completionHandler); @@ -9041,16 +9038,16 @@ namespace Intents { [Export ("resolveTemporalEventTriggerForAddTasks:withCompletion:")] void ResolveTemporalEventTrigger (INAddTasksIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTemporalEventTriggerForAddTasks:completion:")] void ResolveTemporalEventTrigger (INAddTasksIntent intent, Action completionHandler); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePriorityForAddTasks:withCompletion:")] void ResolvePriority (INAddTasksIntent intent, Action completion); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INAddTasksIntentResponse { @@ -9071,7 +9068,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoMac, iOS (11,0), NoTV] + [Watch (4, 0), NoMac, iOS (11, 0), NoTV] [BaseType (typeof (INIntent))] interface INAppendToNoteIntent { @@ -9088,7 +9085,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INAppendToNoteIntentHandling { @@ -9108,7 +9105,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INAppendToNoteIntentResponse { @@ -9124,7 +9121,7 @@ namespace Intents { INNote Note { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INBalanceAmount : NSCopying, NSSecureCoding { @@ -9147,7 +9144,7 @@ namespace Intents { string CurrencyCode { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INBalanceTypeResolutionResult { @@ -9179,20 +9176,20 @@ namespace Intents { INBalanceTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INBalanceTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INBalanceTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Mac (12,0)] - [Watch (4,0), NoTV, iOS (11,0)] + [Mac (12, 0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INCallDestinationTypeResolutionResult { @@ -9224,41 +9221,41 @@ namespace Intents { INCallDestinationTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCallDestinationTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCallDestinationTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Mac (12,0)] - [Watch (4,0), iOS (11,0), NoTV] + [Mac (12, 0)] + [Watch (4, 0), iOS (11, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INCallRecord : NSCopying, NSSecureCoding { - [Watch (7,4), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed] [BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed] [BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed] INPerson[] participants, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfCalls, [NullAllowed] [BindAs (typeof (bool?))] NSNumber isCallerIdBlocked); + NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed][BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed][BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed] INPerson [] participants, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfCalls, [NullAllowed][BindAs (typeof (bool?))] NSNumber isCallerIdBlocked); [Deprecated (PlatformName.iOS, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")] [Deprecated (PlatformName.MacCatalyst, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")] [Deprecated (PlatformName.WatchOS, 7, 4, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:")] - NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, [NullAllowed] INPerson caller, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed] [BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed] [BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfCalls); + NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, [NullAllowed] INPerson caller, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed][BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed][BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfCalls); - [Watch (7,4), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:numberOfCalls:")] - NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed] [BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed] [BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfCalls); + NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed][BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed][BindAs (typeof (bool?))] NSNumber unseen, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfCalls); [Deprecated (PlatformName.iOS, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?)' instead.")] [Deprecated (PlatformName.MacCatalyst, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?)' instead.")] @@ -9267,10 +9264,10 @@ namespace Intents { [Export ("initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:")] NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, [NullAllowed] INPerson caller, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed] NSNumber callDuration, [NullAllowed] NSNumber unseen); - [Watch (7,4), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:")] - NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed] [BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed] [BindAs (typeof (bool?))] NSNumber unseen); + NativeHandle Constructor (string identifier, [NullAllowed] NSDate dateCreated, INCallRecordType callRecordType, INCallCapability callCapability, [NullAllowed][BindAs (typeof (double?))] NSNumber callDuration, [NullAllowed][BindAs (typeof (bool?))] NSNumber unseen); [Export ("identifier")] string Identifier { get; } @@ -9300,25 +9297,25 @@ namespace Intents { NSNumber WeakUnseen { get; } [BindAs (typeof (int?))] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [NullAllowed, Export ("numberOfCalls", ArgumentSemantic.Copy)] NSNumber NumberOfCalls { get; } [BindAs (typeof (bool?))] - [Watch (7,4), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("isCallerIdBlocked", ArgumentSemantic.Copy)] NSNumber IsCallerIdBlocked { get; } [NullAllowed] - [Watch (7,4), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("participants", ArgumentSemantic.Copy)] - INPerson[] Participants { get; } + INPerson [] Participants { get; } } - [Mac (12,0)] - [Watch (4,0), NoTV, iOS (11,0)] + [Mac (12, 0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INCallRecordTypeOptionsResolutionResult { @@ -9350,19 +9347,19 @@ namespace Intents { INCallRecordTypeOptionsResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INCallRecordTypeOptionsResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INCallRecordTypeOptionsResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [NoWatch, NoMac, iOS (11,0), NoTV] + [NoWatch, NoMac, iOS (11, 0), NoTV] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INCancelRideIntent { @@ -9375,7 +9372,7 @@ namespace Intents { string RideIdentifier { get; } } - [NoWatch, NoMac, NoTV, iOS (11,0)] + [NoWatch, NoMac, NoTV, iOS (11, 0)] [Protocol] interface INCancelRideIntentHandling { @@ -9387,7 +9384,7 @@ namespace Intents { void Confirm (INCancelRideIntent intent, Action completion); } - [NoWatch, NoMac, NoTV, iOS (11,0)] + [NoWatch, NoMac, NoTV, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INCancelRideIntentResponse { @@ -9406,7 +9403,7 @@ namespace Intents { NSDateComponents CancellationFeeThreshold { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INCreateNoteIntent { @@ -9425,7 +9422,7 @@ namespace Intents { INSpeakableString GroupName { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INCreateNoteIntentHandling { @@ -9446,7 +9443,7 @@ namespace Intents { void ResolveGroupName (INCreateNoteIntent intent, Action completion); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INCreateNoteIntentResponse { @@ -9464,7 +9461,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INCreateTaskListIntent { @@ -9485,7 +9482,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INCreateTaskListIntentHandling { @@ -9508,7 +9505,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INCreateTaskListIntentResponse { @@ -9524,7 +9521,7 @@ namespace Intents { INTaskList CreatedTaskList { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INDateSearchTypeResolutionResult { @@ -9556,13 +9553,13 @@ namespace Intents { INDateSearchTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INDateSearchTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INDateSearchTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -9570,7 +9567,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INGetVisualCodeIntent { @@ -9585,7 +9582,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INGetVisualCodeIntentHandling { @@ -9602,7 +9599,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INGetVisualCodeIntentResponse { @@ -9618,7 +9615,7 @@ namespace Intents { INImage VisualCodeImage { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INNoteContent))] interface INImageNoteContent : NSSecureCoding, NSCopying { @@ -9629,7 +9626,7 @@ namespace Intents { INImage Image { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INLocationSearchTypeResolutionResult { @@ -9661,19 +9658,19 @@ namespace Intents { INLocationSearchTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INLocationSearchTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INLocationSearchTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] interface INNote : NSCopying, NSSecureCoding { @@ -9700,12 +9697,12 @@ namespace Intents { string Identifier { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] interface INNoteContent : NSSecureCoding, NSCopying { } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INNoteContentResolutionResult { @@ -9741,13 +9738,13 @@ namespace Intents { INNoteContentResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INNoteContentResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INNoteContentResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -9755,7 +9752,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 13, 0, message: "Not used anymore.")] [Deprecated (PlatformName.WatchOS, 6, 0, message: "Not used anymore.")] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] interface INNoteContentTypeResolutionResult { @@ -9786,19 +9783,19 @@ namespace Intents { INNoteContentTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INNoteContentTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INNoteContentTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] interface INNoteResolutionResult { @@ -9833,19 +9830,19 @@ namespace Intents { INNoteResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INNoteResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INNoteResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] interface INNotebookItemTypeResolutionResult { @@ -9855,7 +9852,7 @@ namespace Intents { [Static] [Export ("disambiguationWithNotebookItemTypesToDisambiguate:")] - INNotebookItemTypeResolutionResult GetDisambiguation (NSNumber[] notebookItemTypesToDisambiguate); + INNotebookItemTypeResolutionResult GetDisambiguation (NSNumber [] notebookItemTypesToDisambiguate); [Static] [Export ("confirmationRequiredWithNotebookItemTypeToConfirm:")] @@ -9880,13 +9877,13 @@ namespace Intents { INNotebookItemTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INNotebookItemTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INNotebookItemTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); @@ -9897,7 +9894,7 @@ namespace Intents { #elif MONOMAC [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] #endif - [Watch (4,0), iOS (11,0), NoTV] + [Watch (4, 0), iOS (11, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INParameter : NSCopying, NSSecureCoding { @@ -9934,7 +9931,7 @@ namespace Intents { #elif MONOMAC [Obsoleted (PlatformName.MacOSX, 10,0, message: "Unavailable on macOS, will be removed in the future.")] #endif - [Watch (4,0), NoTV, iOS (11,0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INRecurrenceRule : NSCopying, NSSecureCoding { @@ -9942,8 +9939,8 @@ namespace Intents { [Export ("initWithInterval:frequency:")] NativeHandle Constructor (nuint interval, INRecurrenceFrequency frequency); - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithInterval:frequency:weeklyRecurrenceDays:")] [DesignatedInitializer] NativeHandle Constructor (nuint interval, INRecurrenceFrequency frequency, INDayOfWeekOptions weeklyRecurrenceDays); @@ -9954,13 +9951,13 @@ namespace Intents { [Export ("frequency")] INRecurrenceFrequency Frequency { get; } - [Watch (7,0), NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("weeklyRecurrenceDays")] INDayOfWeekOptions WeeklyRecurrenceDays { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INCurrencyAmountResolutionResult))] [DisableDefaultCtor] interface INRequestPaymentCurrencyAmountResolutionResult { @@ -9991,19 +9988,19 @@ namespace Intents { INRequestPaymentCurrencyAmountResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRequestPaymentCurrencyAmountResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRequestPaymentCurrencyAmountResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INPersonResolutionResult))] [DisableDefaultCtor] interface INRequestPaymentPayerResolutionResult { @@ -10050,19 +10047,19 @@ namespace Intents { INRequestPaymentPayerResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INRequestPaymentPayerResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INRequestPaymentPayerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] interface INSearchForAccountsIntent { @@ -10083,7 +10080,7 @@ namespace Intents { INBalanceType RequestedBalanceType { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INSearchForAccountsIntentHandling { @@ -10107,7 +10104,7 @@ namespace Intents { void ResolveRequestedBalanceType (INSearchForAccountsIntent intent, Action completion); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSearchForAccountsIntentResponse { @@ -10123,7 +10120,7 @@ namespace Intents { INPaymentAccount [] Accounts { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] interface INSearchForNotebookItemsIntent { @@ -10134,18 +10131,18 @@ namespace Intents { [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use the constructor with 'INTemporalEventTriggerTypeOptions temporalEventTriggerTypes' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use the constructor with 'INTemporalEventTriggerTypeOptions temporalEventTriggerTypes' instead.")] - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [Export ("initWithTitle:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:")] NativeHandle Constructor ([NullAllowed] INSpeakableString title, [NullAllowed] string content, INNotebookItemType itemType, INTaskStatus status, [NullAllowed] CLPlacemark location, INLocationSearchType locationSearchType, [NullAllowed] INDateComponentsRange dateTime, INDateSearchType dateSearchType, [NullAllowed] string notebookItemIdentifier); #if !NET - [Mac (10,15)] + [Mac (10, 15)] #endif - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithTitle:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:temporalEventTriggerTypes:taskPriority:notebookItemIdentifier:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INSpeakableString title, [NullAllowed] string content, INNotebookItemType itemType, INTaskStatus status, [NullAllowed] CLPlacemark location, INLocationSearchType locationSearchType, [NullAllowed] INDateComponentsRange dateTime, INDateSearchType dateSearchType, INTemporalEventTriggerTypeOptions temporalEventTriggerTypes, INTaskPriority taskPriority, [NullAllowed] string notebookItemIdentifier); - + [NullAllowed, Export ("title", ArgumentSemantic.Copy)] INSpeakableString Title { get; } @@ -10170,20 +10167,20 @@ namespace Intents { [Export ("dateSearchType", ArgumentSemantic.Assign)] INDateSearchType DateSearchType { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("temporalEventTriggerTypes", ArgumentSemantic.Assign)] INTemporalEventTriggerTypeOptions TemporalEventTriggerTypes { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("taskPriority", ArgumentSemantic.Assign)] INTaskPriority TaskPriority { get; } - [Watch (4,2), iOS (11,2)] + [Watch (4, 2), iOS (11, 2)] [NullAllowed, Export ("notebookItemIdentifier")] string NotebookItemIdentifier { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INSearchForNotebookItemsIntentHandling { @@ -10218,16 +10215,16 @@ namespace Intents { [Export ("resolveDateSearchTypeForSearchForNotebookItems:withCompletion:")] void ResolveDateSearchType (INSearchForNotebookItemsIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTemporalEventTriggerTypesForSearchForNotebookItems:withCompletion:")] void ResolveTemporalEventTriggerTypes (INSearchForNotebookItemsIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTaskPriorityForSearchForNotebookItems:withCompletion:")] void ResolveTaskPriority (INSearchForNotebookItemsIntent intent, Action completion); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSearchForNotebookItemsIntentResponse { @@ -10252,8 +10249,8 @@ namespace Intents { INSortType SortType { get; set; } } - [Mac (12,0)] - [Watch (4,0), NoTV, iOS (11,0)] + [Mac (12, 0)] + [Watch (4, 0), NoTV, iOS (11, 0)] [BaseType (typeof (INPersonResolutionResult))] [DisableDefaultCtor] interface INSendMessageRecipientResolutionResult { @@ -10300,19 +10297,19 @@ namespace Intents { INSendMessageRecipientResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INSendMessageRecipientResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INSendMessageRecipientResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INCurrencyAmountResolutionResult))] [DisableDefaultCtor] interface INSendPaymentCurrencyAmountResolutionResult { @@ -10343,19 +10340,19 @@ namespace Intents { INSendPaymentCurrencyAmountResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INSendPaymentCurrencyAmountResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INSendPaymentCurrencyAmountResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INPersonResolutionResult))] [DisableDefaultCtor] interface INSendPaymentPayeeResolutionResult { @@ -10402,19 +10399,19 @@ namespace Intents { INSendPaymentPayeeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INSendPaymentPayeeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INSendPaymentPayeeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [NoWatch, NoTV, NoMac, iOS (11,0)] + [NoWatch, NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INSendRideFeedbackIntent { @@ -10433,7 +10430,7 @@ namespace Intents { INCurrencyAmount Tip { get; set; } } - [NoWatch, NoTV, NoMac, iOS (11,0)] + [NoWatch, NoTV, NoMac, iOS (11, 0)] [Protocol] interface INSendRideFeedbackIntentHandling { @@ -10445,7 +10442,7 @@ namespace Intents { void Confirm (INSendRideFeedbackIntent sendRideFeedbackIntent, Action completion); } - [NoWatch, NoTV, NoMac, iOS (11,0)] + [NoWatch, NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSendRideFeedbackIntentResponse { @@ -10458,11 +10455,11 @@ namespace Intents { INSendRideFeedbackIntentResponseCode Code { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] interface INSetTaskAttributeIntent { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithTargetTask:taskTitle:status:priority:spatialEventTrigger:temporalEventTrigger:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INTask targetTask, [NullAllowed] INSpeakableString taskTitle, INTaskStatus status, INTaskPriority priority, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger); @@ -10475,7 +10472,7 @@ namespace Intents { [NullAllowed, Export ("targetTask", ArgumentSemantic.Copy)] INTask TargetTask { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [NullAllowed, Export ("taskTitle", ArgumentSemantic.Copy)] INSpeakableString TaskTitle { get; } @@ -10493,7 +10490,7 @@ namespace Intents { INTemporalEventTrigger TemporalEventTrigger { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INSetTaskAttributeIntentHandling { @@ -10507,14 +10504,14 @@ namespace Intents { [Export ("resolveTargetTaskForSetTaskAttribute:withCompletion:")] void ResolveTargetTask (INSetTaskAttributeIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTaskTitleForSetTaskAttribute:withCompletion:")] void ResolveTaskTitle (INSetTaskAttributeIntent intent, Action completion); [Export ("resolveStatusForSetTaskAttribute:withCompletion:")] void ResolveStatus (INSetTaskAttributeIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePriorityForSetTaskAttribute:withCompletion:")] void ResolvePriority (INSetTaskAttributeIntent intent, Action completion); @@ -10526,12 +10523,12 @@ namespace Intents { [Export ("resolveTemporalEventTriggerForSetTaskAttribute:withCompletion:")] void ResolveTemporalEventTrigger (INSetTaskAttributeIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveTemporalEventTriggerForSetTaskAttribute:completion:")] void ResolveTemporalEventTrigger (INSetTaskAttributeIntent intent, Action completionHandler); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSetTaskAttributeIntentResponse { @@ -10547,7 +10544,7 @@ namespace Intents { INTask ModifiedTask { get; set; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INSpatialEventTrigger : NSCopying, NSSecureCoding { @@ -10563,7 +10560,7 @@ namespace Intents { INSpatialEvent Event { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INSpatialEventTriggerResolutionResult { @@ -10599,28 +10596,28 @@ namespace Intents { INSpatialEventTriggerResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INSpatialEventTriggerResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INSpatialEventTriggerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INTask : NSCopying, NSSecureCoding { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithTitle:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:priority:")] [DesignatedInitializer] NativeHandle Constructor (INSpeakableString title, INTaskStatus status, INTaskType taskType, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger, [NullAllowed] NSDateComponents createdDateComponents, [NullAllowed] NSDateComponents modifiedDateComponents, [NullAllowed] string identifier, INTaskPriority priority); - + [Export ("initWithTitle:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:")] NativeHandle Constructor (INSpeakableString title, INTaskStatus status, INTaskType taskType, [NullAllowed] INSpatialEventTrigger spatialEventTrigger, [NullAllowed] INTemporalEventTrigger temporalEventTrigger, [NullAllowed] NSDateComponents createdDateComponents, [NullAllowed] NSDateComponents modifiedDateComponents, [NullAllowed] string identifier); @@ -10648,12 +10645,12 @@ namespace Intents { [NullAllowed, Export ("identifier")] string Identifier { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("priority", ArgumentSemantic.Assign)] INTaskPriority Priority { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INTaskList : NSCopying, NSSecureCoding { @@ -10681,7 +10678,7 @@ namespace Intents { string Identifier { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTaskListResolutionResult { @@ -10717,19 +10714,19 @@ namespace Intents { INTaskListResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INTaskListResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INTaskListResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTaskResolutionResult { @@ -10765,19 +10762,19 @@ namespace Intents { INTaskResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INTaskResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INTaskResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTaskStatusResolutionResult { @@ -10809,19 +10806,19 @@ namespace Intents { INTaskStatusResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INTaskStatusResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INTaskStatusResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INTemporalEventTrigger : NSCopying, NSSecureCoding { @@ -10834,7 +10831,7 @@ namespace Intents { INDateComponentsRange DateComponentsRange { get; } } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTemporalEventTriggerResolutionResult { @@ -10870,19 +10867,19 @@ namespace Intents { INTemporalEventTriggerResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INTemporalEventTriggerResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INTemporalEventTriggerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INNoteContent))] [DisableDefaultCtor] interface INTextNoteContent : NSSecureCoding, NSCopying { @@ -10896,7 +10893,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INTransferMoneyIntent { @@ -10923,7 +10920,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [Protocol] interface INTransferMoneyIntentHandling { @@ -10952,7 +10949,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INTransferMoneyIntentResponse { @@ -10985,7 +10982,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (4,0), NoTV, NoMac, iOS (11,0)] + [Watch (4, 0), NoTV, NoMac, iOS (11, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INVisualCodeTypeResolutionResult { @@ -11017,19 +11014,19 @@ namespace Intents { INVisualCodeTypeResolutionResult Unsupported { get; } [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("unsupportedWithReason:")] INVisualCodeTypeResolutionResult GetUnsupported (nint reason); [New] - [Watch (6,0), iOS (13,0), NoMac] + [Watch (6, 0), iOS (13, 0), NoMac] [Static] [Export ("confirmationRequiredWithItemToConfirm:forReason:")] INVisualCodeTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (5,0), NoMac, NoTV, iOS (12,0)] + [Watch (5, 0), NoMac, NoTV, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INDefaultCardTemplate : NSCopying, NSSecureCoding { @@ -11048,12 +11045,12 @@ namespace Intents { NativeHandle Constructor (string title); } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INMediaItem : NSCopying, NSSecureCoding { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithIdentifier:title:type:artwork:artist:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] string identifier, [NullAllowed] string title, INMediaItemType type, [NullAllowed] INImage artwork, [NullAllowed] string artist); @@ -11078,7 +11075,7 @@ namespace Intents { string Artist { get; } } - [Watch (5,0), NoTV, Mac (11,0), iOS (12,0)] + [Watch (5, 0), NoTV, Mac (11, 0), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INObject : INSpeakable, NSCopying, NSSecureCoding { @@ -11090,13 +11087,13 @@ namespace Intents { [Export ("initWithIdentifier:displayString:")] NativeHandle Constructor ([NullAllowed] string identifier, string displayString); - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithIdentifier:displayString:subtitleString:displayImage:")] NativeHandle Constructor ([NullAllowed] string identifier, string displayString, [NullAllowed] string subtitleString, [NullAllowed] INImage displayImage); - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithIdentifier:displayString:pronunciationHint:subtitleString:displayImage:")] NativeHandle Constructor ([NullAllowed] string identifier, string displayString, [NullAllowed] string pronunciationHint, [NullAllowed] string subtitleString, [NullAllowed] INImage displayImage); @@ -11112,37 +11109,37 @@ namespace Intents { //string PronunciationHint { get; } [Sealed] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("alternativeSpeakableMatches")] [return: NullAllowed] INSpeakableString [] GetAlternativeSpeakableMatches (); - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("subtitleString")] string SubtitleString { get; set; } - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("displayImage", ArgumentSemantic.Strong)] INImage DisplayImage { get; set; } // Not [Sealed] since the 'AlternativeSpeakableMatches' inlined property is read-only - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("setAlternativeSpeakableMatches:")] void SetAlternativeSpeakableMatches ([NullAllowed] INSpeakableString [] alternativeSpeakableMatches); } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INPlayMediaIntent { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithMediaItems:mediaContainer:playShuffled:playbackRepeatMode:resumePlayback:playbackQueueLocation:playbackSpeed:mediaSearch:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] INMediaItem [] mediaItems, [NullAllowed] INMediaItem mediaContainer, [NullAllowed, BindAs (typeof (bool?))] NSNumber playShuffled, INPlaybackRepeatMode playbackRepeatMode, [NullAllowed, BindAs (typeof (bool?))] NSNumber resumePlayback, INPlaybackQueueLocation playbackQueueLocation, [NullAllowed, BindAs (typeof (double?))] NSNumber playbackSpeed, [NullAllowed] INMediaSearch mediaSearch); - + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the '.ctor (INMediaItem [], INMediaItem, bool?, INPlaybackRepeatMode, bool?, INPlaybackQueueLocation, double?, INMediaSearch)' instead.")] [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use the '.ctor (INMediaItem [], INMediaItem, bool?, INPlaybackRepeatMode, bool?, INPlaybackQueueLocation, double?, INMediaSearch)' instead.")] [Export ("initWithMediaItems:mediaContainer:playShuffled:playbackRepeatMode:resumePlayback:")] @@ -11165,21 +11162,21 @@ namespace Intents { [NullAllowed, Export ("resumePlayback", ArgumentSemantic.Copy)] NSNumber ResumePlayback { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("playbackQueueLocation", ArgumentSemantic.Assign)] INPlaybackQueueLocation PlaybackQueueLocation { get; } [BindAs (typeof (double?))] - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [NullAllowed, Export ("playbackSpeed", ArgumentSemantic.Copy)] NSNumber PlaybackSpeed { get; } - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [NullAllowed, Export ("mediaSearch", ArgumentSemantic.Copy)] INMediaSearch MediaSearch { get; } } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [Protocol] interface INPlayMediaIntentHandling { @@ -11190,32 +11187,32 @@ namespace Intents { [Export ("confirmPlayMedia:completion:")] void Confirm (INPlayMediaIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveMediaItemsForPlayMedia:withCompletion:")] void ResolveMediaItems (INPlayMediaIntent intent, Action> completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePlayShuffledForPlayMedia:withCompletion:")] void ResolvePlayShuffled (INPlayMediaIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePlaybackRepeatModeForPlayMedia:withCompletion:")] void ResolvePlaybackRepeatMode (INPlayMediaIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolveResumePlaybackForPlayMedia:withCompletion:")] void ResolveResumePlayback (INPlayMediaIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePlaybackQueueLocationForPlayMedia:withCompletion:")] void ResolvePlaybackQueueLocation (INPlayMediaIntent intent, Action completion); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("resolvePlaybackSpeedForPlayMedia:withCompletion:")] void ResolvePlaybackSpeed (INPlayMediaIntent intent, Action completion); } - [Watch (5,0), TV (14,0), NoMac, iOS (12,0)] + [Watch (5, 0), TV (14, 0), NoMac, iOS (12, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INPlayMediaIntentResponse { @@ -11233,13 +11230,13 @@ namespace Intents { } [Abstract] - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INRelevanceProvider : NSCopying, NSSecureCoding { } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (INRelevanceProvider))] [DisableDefaultCtor] interface INDateRelevanceProvider { @@ -11255,7 +11252,7 @@ namespace Intents { NativeHandle Constructor (NSDate startDate, [NullAllowed] NSDate endDate); } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (INRelevanceProvider))] [DisableDefaultCtor] interface INLocationRelevanceProvider { @@ -11268,7 +11265,7 @@ namespace Intents { NativeHandle Constructor (CLRegion region); } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (INRelevanceProvider))] [DisableDefaultCtor] interface INDailyRoutineRelevanceProvider { @@ -11281,7 +11278,7 @@ namespace Intents { NativeHandle Constructor (INDailyRoutineSituation situation); } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INRelevantShortcut : NSSecureCoding, NSCopying { @@ -11292,7 +11289,7 @@ namespace Intents { [NullAllowed, Export ("watchTemplate", ArgumentSemantic.Copy)] INDefaultCardTemplate WatchTemplate { get; set; } - [iOS (15,0), Watch (8,0), MacCatalyst (15,0)] + [iOS (15, 0), Watch (8, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("widgetKind")] string WidgetKind { get; set; } @@ -11307,7 +11304,7 @@ namespace Intents { NativeHandle Constructor (INShortcut shortcut); } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INRelevantShortcutStore { @@ -11321,7 +11318,7 @@ namespace Intents { void SetRelevantShortcuts (INRelevantShortcut [] shortcuts, [NullAllowed] Action completionHandler); } - [Watch (5,0), NoTV, Mac (11,0), iOS (12,0)] + [Watch (5, 0), NoTV, Mac (11, 0), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INShortcut : NSSecureCoding, NSCopying { @@ -11339,7 +11336,7 @@ namespace Intents { NativeHandle Constructor (NSUserActivity userActivity); } - [Watch (5,0), NoTV, NoMac, iOS (12,0)] + [Watch (5, 0), NoTV, NoMac, iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INUpcomingMediaManager { @@ -11355,7 +11352,7 @@ namespace Intents { void SetPredictionMode (INUpcomingMediaPredictionMode mode, INMediaItemType type); } - [Watch (5,0), NoTV, Mac (12,0), iOS (12,0)] + [Watch (5, 0), NoTV, Mac (12, 0), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INVoiceShortcut : NSSecureCoding, NSCopying { @@ -11372,7 +11369,7 @@ namespace Intents { delegate void INVoiceShortcutCenterGetVoiceShortcutsHandler ([NullAllowed] INVoiceShortcut [] voiceShortcuts, NSError error); - [Watch (5,0), NoTV, Mac (12,0), iOS (12,0)] + [Watch (5, 0), NoTV, Mac (12, 0), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INVoiceShortcutCenter { @@ -11414,14 +11411,14 @@ namespace Intents { // string DeferredLocalizedIntentsStringWithFormat (string format, [NullAllowed] string table, IntPtr arguments); //} - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INAddMediaIntent { [Export ("initWithMediaItems:mediaSearch:mediaDestination:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INMediaItem[] mediaItems, [NullAllowed] INMediaSearch mediaSearch, [NullAllowed] INMediaDestination mediaDestination); + NativeHandle Constructor ([NullAllowed] INMediaItem [] mediaItems, [NullAllowed] INMediaSearch mediaSearch, [NullAllowed] INMediaDestination mediaDestination); [NullAllowed, Export ("mediaItems", ArgumentSemantic.Copy)] INMediaItem [] MediaItems { get; } @@ -11433,7 +11430,7 @@ namespace Intents { INMediaDestination MediaDestination { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Protocol] interface INAddMediaIntentHandling { @@ -11451,7 +11448,7 @@ namespace Intents { void ResolveMediaDestination (INAddMediaIntent intent, Action completion); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INAddMediaIntentResponse { @@ -11464,7 +11461,7 @@ namespace Intents { INAddMediaIntentResponseCode Code { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INMediaItemResolutionResult))] [DisableDefaultCtor] interface INAddMediaMediaItemResolutionResult { @@ -11491,7 +11488,7 @@ namespace Intents { [New] [Static] [Export ("disambiguationWithMediaItemsToDisambiguate:")] - INAddMediaMediaItemResolutionResult GetDisambiguation (INMediaItem[] mediaItemsToDisambiguate); + INAddMediaMediaItemResolutionResult GetDisambiguation (INMediaItem [] mediaItemsToDisambiguate); [New] [Static] @@ -11527,11 +11524,11 @@ namespace Intents { INAddMediaMediaItemResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTaskListResolutionResult))] [DisableDefaultCtor] interface INAddTasksTargetTaskListResolutionResult { - + [Static] [Export ("confirmationRequiredWithTaskListToConfirm:forReason:")] INAddTasksTargetTaskListResolutionResult GetConfirmationRequired ([NullAllowed] INTaskList taskListToConfirm, INAddTasksTargetTaskListConfirmationReason reason); @@ -11584,7 +11581,7 @@ namespace Intents { INAddTasksTargetTaskListResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTemporalEventTriggerResolutionResult))] [DisableDefaultCtor] interface INAddTasksTemporalEventTriggerResolutionResult { @@ -11642,7 +11639,7 @@ namespace Intents { INAddTasksTemporalEventTriggerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INAirline : NSCopying, NSSecureCoding { @@ -11661,7 +11658,7 @@ namespace Intents { string IcaoCode { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INAirport : NSCopying, NSSecureCoding { @@ -11680,8 +11677,8 @@ namespace Intents { string IcaoCode { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INAirportGate : NSCopying, NSSecureCoding { @@ -11699,7 +11696,7 @@ namespace Intents { string Gate { get; } } - [Watch (6,0), NoTV, Mac (12,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (12, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INCallCapabilityResolutionResult { @@ -11743,20 +11740,20 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INDeleteTasksIntent { [Export ("initWithTaskList:tasks:all:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INTaskList taskList, [NullAllowed] INTask[] tasks, [NullAllowed] [BindAs (typeof (bool?))] NSNumber all); + NativeHandle Constructor ([NullAllowed] INTaskList taskList, [NullAllowed] INTask [] tasks, [NullAllowed][BindAs (typeof (bool?))] NSNumber all); [NullAllowed, Export ("taskList", ArgumentSemantic.Copy)] INTaskList TaskList { get; } [NullAllowed, Export ("tasks", ArgumentSemantic.Copy)] - INTask[] Tasks { get; } + INTask [] Tasks { get; } [BindAs (typeof (bool?))] [NullAllowed, Export ("all", ArgumentSemantic.Copy)] @@ -11765,7 +11762,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Protocol] interface INDeleteTasksIntentHandling { @@ -11785,7 +11782,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INDeleteTasksIntentResponse { @@ -11798,12 +11795,12 @@ namespace Intents { INDeleteTasksIntentResponseCode Code { get; } [NullAllowed, Export ("deletedTasks", ArgumentSemantic.Copy)] - INTask[] DeletedTasks { get; set; } + INTask [] DeletedTasks { get; set; } } [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTaskListResolutionResult))] [DisableDefaultCtor] interface INDeleteTasksTaskListResolutionResult { @@ -11862,7 +11859,7 @@ namespace Intents { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.WatchOS, 8, 0)] - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTaskResolutionResult))] [DisableDefaultCtor] interface INDeleteTasksTaskResolutionResult { @@ -11919,22 +11916,22 @@ namespace Intents { INDeleteTasksTaskResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), Mac (11,0), iOS (13,0), NoTV] + [Watch (6, 0), Mac (11, 0), iOS (13, 0), NoTV] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INEnergyResolutionResult { [Static] [Export ("successWithResolvedEnergy:")] - INEnergyResolutionResult GetSuccess (NSMeasurement resolvedEnergy); + INEnergyResolutionResult GetSuccess (NSMeasurement resolvedEnergy); [Static] [Export ("disambiguationWithEnergyToDisambiguate:")] - INEnergyResolutionResult GetDisambiguation (NSMeasurement [] energyToDisambiguate); + INEnergyResolutionResult GetDisambiguation (NSMeasurement [] energyToDisambiguate); [Static] [Export ("confirmationRequiredWithEnergyToConfirm:")] - INEnergyResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement energyToConfirm); + INEnergyResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement energyToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -11965,7 +11962,7 @@ namespace Intents { INEnergyResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), Mac (11,0), iOS (13,0), NoTV] + [Watch (6, 0), Mac (11, 0), iOS (13, 0), NoTV] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INEnumResolutionResult { @@ -12007,7 +12004,7 @@ namespace Intents { INEnumResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INFile : NSSecureCoding { @@ -12032,12 +12029,12 @@ namespace Intents { [NullAllowed, Export ("fileURL", ArgumentSemantic.Strong)] NSUrl FileUrl { get; } - [Watch (8,3), Mac (12,1), iOS (15,2)] + [Watch (8, 3), Mac (12, 1), iOS (15, 2)] [Export ("removedOnCompletion")] bool RemovedOnCompletion { get; set; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INFileResolutionResult { @@ -12048,7 +12045,7 @@ namespace Intents { [Static] [Export ("disambiguationWithFilesToDisambiguate:")] - INFileResolutionResult GetDisambiguation (INFile[] filesToDisambiguate); + INFileResolutionResult GetDisambiguation (INFile [] filesToDisambiguate); [Static] [Export ("confirmationRequiredWithFileToConfirm:")] @@ -12083,7 +12080,7 @@ namespace Intents { INFileResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INFlight : NSCopying, NSSecureCoding { @@ -12111,19 +12108,19 @@ namespace Intents { INAirportGate ArrivalAirportGate { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INFlightReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservedSeat:flight:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INFlight flight); - + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INFlight flight); + [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:flight:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] INSeat reservedSeat, INFlight flight); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] INSeat reservedSeat, INFlight flight); [NullAllowed, Export ("reservedSeat", ArgumentSemantic.Copy)] INSeat ReservedSeat { get; } @@ -12132,24 +12129,22 @@ namespace Intents { INFlight Flight { get; } } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum INFocusStatusAuthorizationStatus : long - { + public enum INFocusStatusAuthorizationStatus : long { NotDetermined = 0, Restricted, Denied, Authorized, } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface INFocusStatus : NSCopying, NSSecureCoding - { + interface INFocusStatus : NSCopying, NSSecureCoding { [Export ("initWithIsFocused:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] [BindAs (typeof (bool?))] NSNumber isFocused); + NativeHandle Constructor ([NullAllowed][BindAs (typeof (bool?))] NSNumber isFocused); [Export ("isFocused", ArgumentSemantic.Copy)] [BindAs (typeof (bool?))] @@ -12157,10 +12152,9 @@ namespace Intents { NSNumber IsFocused { get; } } - [Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface INFocusStatusCenter - { + [Watch (8, 0), NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface INFocusStatusCenter { [Static] [Export ("defaultCenter", ArgumentSemantic.Strong)] INFocusStatusCenter DefaultCenter { get; } @@ -12176,23 +12170,23 @@ namespace Intents { void RequestAuthorization ([NullAllowed] Action completionHandler); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INGetReservationDetailsIntent { [Export ("initWithReservationContainerReference:reservationItemReferences:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INSpeakableString reservationContainerReference, [NullAllowed] INSpeakableString[] reservationItemReferences); + NativeHandle Constructor ([NullAllowed] INSpeakableString reservationContainerReference, [NullAllowed] INSpeakableString [] reservationItemReferences); [NullAllowed, Export ("reservationContainerReference", ArgumentSemantic.Copy)] INSpeakableString ReservationContainerReference { get; } [NullAllowed, Export ("reservationItemReferences", ArgumentSemantic.Copy)] - INSpeakableString[] ReservationItemReferences { get; } + INSpeakableString [] ReservationItemReferences { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INGetReservationDetailsIntentResponse { @@ -12205,25 +12199,25 @@ namespace Intents { INGetReservationDetailsIntentResponseCode Code { get; } [NullAllowed, Export ("reservations", ArgumentSemantic.Copy)] - INReservation[] Reservations { get; set; } + INReservation [] Reservations { get; set; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INLengthResolutionResult { [Static] [Export ("successWithResolvedLength:")] - INLengthResolutionResult GetSuccess (NSMeasurement resolvedLength); + INLengthResolutionResult GetSuccess (NSMeasurement resolvedLength); [Static] [Export ("disambiguationWithLengthsToDisambiguate:")] - INLengthResolutionResult GetDisambiguation (NSMeasurement [] lengthsToDisambiguate); + INLengthResolutionResult GetDisambiguation (NSMeasurement [] lengthsToDisambiguate); [Static] [Export ("confirmationRequiredWithLengthToConfirm:")] - INLengthResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement lengthToConfirm); + INLengthResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement lengthToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -12254,19 +12248,19 @@ namespace Intents { INLengthResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INLodgingReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:lodgingBusinessLocation:reservationDuration:numberOfAdults:numberOfChildren:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, CLPlacemark lodgingBusinessLocation, INDateComponentsRange reservationDuration, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfAdults, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfChildren); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, CLPlacemark lodgingBusinessLocation, INDateComponentsRange reservationDuration, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfAdults, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfChildren); [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:lodgingBusinessLocation:reservationDuration:numberOfAdults:numberOfChildren:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, CLPlacemark lodgingBusinessLocation, INDateComponentsRange reservationDuration, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfAdults, [NullAllowed] [BindAs (typeof (int?))] NSNumber numberOfChildren); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, CLPlacemark lodgingBusinessLocation, INDateComponentsRange reservationDuration, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfAdults, [NullAllowed][BindAs (typeof (int?))] NSNumber numberOfChildren); [Export ("lodgingBusinessLocation", ArgumentSemantic.Copy)] CLPlacemark LodgingBusinessLocation { get; } @@ -12283,22 +12277,22 @@ namespace Intents { NSNumber NumberOfChildren { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INMassResolutionResult { [Static] [Export ("successWithResolvedMass:")] - INMassResolutionResult GetSuccess (NSMeasurement resolvedMass); + INMassResolutionResult GetSuccess (NSMeasurement resolvedMass); [Static] [Export ("disambiguationWithMassToDisambiguate:")] - INMassResolutionResult GetDisambiguation (NSMeasurement [] massToDisambiguate); + INMassResolutionResult GetDisambiguation (NSMeasurement [] massToDisambiguate); [Static] [Export ("confirmationRequiredWithMassToConfirm:")] - INMassResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement massToConfirm); + INMassResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement massToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -12329,7 +12323,7 @@ namespace Intents { INMassResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INMediaAffinityTypeResolutionResult { @@ -12371,7 +12365,7 @@ namespace Intents { INMediaAffinityTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INMediaDestination : NSCopying, NSSecureCoding { @@ -12391,7 +12385,7 @@ namespace Intents { string PlaylistName { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INMediaDestinationResolutionResult { @@ -12402,7 +12396,7 @@ namespace Intents { [Static] [Export ("disambiguationWithMediaDestinationsToDisambiguate:")] - INMediaDestinationResolutionResult GetDisambiguation (INMediaDestination[] mediaDestinationsToDisambiguate); + INMediaDestinationResolutionResult GetDisambiguation (INMediaDestination [] mediaDestinationsToDisambiguate); [Static] [Export ("confirmationRequiredWithMediaDestinationToConfirm:")] @@ -12437,7 +12431,7 @@ namespace Intents { INMediaDestinationResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INMediaItemResolutionResult { @@ -12452,7 +12446,7 @@ namespace Intents { [Static] [Export ("disambiguationWithMediaItemsToDisambiguate:")] - INMediaItemResolutionResult GetDisambiguation (INMediaItem[] mediaItemsToDisambiguate); + INMediaItemResolutionResult GetDisambiguation (INMediaItem [] mediaItemsToDisambiguate); [Static] [Export ("confirmationRequiredWithMediaItemToConfirm:")] @@ -12487,14 +12481,14 @@ namespace Intents { INMediaItemResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INMediaSearch : NSCopying, NSSecureCoding { [Export ("initWithMediaType:sortOrder:mediaName:artistName:albumName:genreNames:moodNames:releaseDate:reference:mediaIdentifier:")] [DesignatedInitializer] - NativeHandle Constructor (INMediaItemType mediaType, INMediaSortOrder sortOrder, [NullAllowed] string mediaName, [NullAllowed] string artistName, [NullAllowed] string albumName, [NullAllowed] string[] genreNames, [NullAllowed] string[] moodNames, [NullAllowed] INDateComponentsRange releaseDate, INMediaReference reference, [NullAllowed] string mediaIdentifier); + NativeHandle Constructor (INMediaItemType mediaType, INMediaSortOrder sortOrder, [NullAllowed] string mediaName, [NullAllowed] string artistName, [NullAllowed] string albumName, [NullAllowed] string [] genreNames, [NullAllowed] string [] moodNames, [NullAllowed] INDateComponentsRange releaseDate, INMediaReference reference, [NullAllowed] string mediaIdentifier); [Export ("mediaType", ArgumentSemantic.Assign)] INMediaItemType MediaType { get; } @@ -12512,10 +12506,10 @@ namespace Intents { string AlbumName { get; } [NullAllowed, Export ("genreNames", ArgumentSemantic.Copy)] - string[] GenreNames { get; } + string [] GenreNames { get; } [NullAllowed, Export ("moodNames", ArgumentSemantic.Copy)] - string[] MoodNames { get; } + string [] MoodNames { get; } [NullAllowed, Export ("releaseDate", ArgumentSemantic.Copy)] INDateComponentsRange ReleaseDate { get; } @@ -12527,7 +12521,7 @@ namespace Intents { string MediaIdentifier { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INUserContext))] interface INMediaUserContext { @@ -12539,7 +12533,7 @@ namespace Intents { NSNumber NumberOfLibraryItems { get; set; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INObjectResolutionResult { @@ -12550,7 +12544,7 @@ namespace Intents { [Static] [Export ("disambiguationWithObjectsToDisambiguate:")] - INObjectResolutionResult GetDisambiguation (INObject[] objectsToDisambiguate); + INObjectResolutionResult GetDisambiguation (INObject [] objectsToDisambiguate); [Static] [Export ("confirmationRequiredWithObjectToConfirm:")] @@ -12585,7 +12579,7 @@ namespace Intents { INObjectResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INPaymentMethodResolutionResult { @@ -12631,7 +12625,7 @@ namespace Intents { INPaymentMethodResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INMediaItemResolutionResult))] [DisableDefaultCtor] interface INPlayMediaMediaItemResolutionResult { @@ -12658,7 +12652,7 @@ namespace Intents { [New] [Static] [Export ("disambiguationWithMediaItemsToDisambiguate:")] - INPlayMediaMediaItemResolutionResult GetDisambiguation (INMediaItem[] mediaItemsToDisambiguate); + INPlayMediaMediaItemResolutionResult GetDisambiguation (INMediaItem [] mediaItemsToDisambiguate); [New] [Static] @@ -12694,7 +12688,7 @@ namespace Intents { INPlayMediaMediaItemResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INDoubleResolutionResult))] [DisableDefaultCtor] interface INPlayMediaPlaybackSpeedResolutionResult { @@ -12715,7 +12709,7 @@ namespace Intents { [Static] [Export ("confirmationRequiredWithValueToConfirm:")] - INDoubleResolutionResult GetConfirmationRequired ([NullAllowed] [BindAs (typeof (double?))] NSNumber valueToConfirm); + INDoubleResolutionResult GetConfirmationRequired ([NullAllowed][BindAs (typeof (double?))] NSNumber valueToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -12746,7 +12740,7 @@ namespace Intents { INDoubleResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] interface INPlaybackQueueLocationResolutionResult { @@ -12787,7 +12781,7 @@ namespace Intents { INPlaybackQueueLocationResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INPlaybackRepeatModeResolutionResult { @@ -12829,7 +12823,7 @@ namespace Intents { INPlaybackRepeatModeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INRentalCar : NSCopying, NSSecureCoding { @@ -12854,19 +12848,19 @@ namespace Intents { string RentalCarDescription { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INRentalCarReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:rentalCar:rentalDuration:pickupLocation:dropOffLocation:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, INRentalCar rentalCar, INDateComponentsRange rentalDuration, [NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, INRentalCar rentalCar, INDateComponentsRange rentalDuration, [NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation); [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:rentalCar:rentalDuration:pickupLocation:dropOffLocation:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, INRentalCar rentalCar, INDateComponentsRange rentalDuration, [NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, INRentalCar rentalCar, INDateComponentsRange rentalDuration, [NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation); [Export ("rentalCar", ArgumentSemantic.Copy)] INRentalCar RentalCar { get; } @@ -12881,7 +12875,7 @@ namespace Intents { CLPlacemark DropOffLocation { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INReservation : NSCopying, NSSecureCoding { @@ -12904,13 +12898,13 @@ namespace Intents { [NullAllowed, Export ("actions", ArgumentSemantic.Copy)] INReservationAction [] Actions { get; } - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("URL", ArgumentSemantic.Copy)] NSUrl Url { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INReservationAction : NSCopying, NSSecureCoding { @@ -12929,19 +12923,19 @@ namespace Intents { NSUserActivity UserActivity { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INRestaurantReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservationDuration:partySize:restaurantLocation:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, INDateComponentsRange reservationDuration, [NullAllowed] [BindAs (typeof (int?))] NSNumber partySize, CLPlacemark restaurantLocation); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, INDateComponentsRange reservationDuration, [NullAllowed][BindAs (typeof (int?))] NSNumber partySize, CLPlacemark restaurantLocation); [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservationDuration:partySize:restaurantLocation:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, INDateComponentsRange reservationDuration, [NullAllowed] [BindAs (typeof (int?))] NSNumber partySize, CLPlacemark restaurantLocation); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, INDateComponentsRange reservationDuration, [NullAllowed][BindAs (typeof (int?))] NSNumber partySize, CLPlacemark restaurantLocation); [Export ("reservationDuration", ArgumentSemantic.Copy)] INDateComponentsRange ReservationDuration { get; } @@ -12954,7 +12948,7 @@ namespace Intents { CLPlacemark RestaurantLocation { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INSearchForMediaIntent { @@ -12970,7 +12964,7 @@ namespace Intents { INMediaSearch MediaSearch { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Protocol] interface INSearchForMediaIntentHandling { @@ -12985,7 +12979,7 @@ namespace Intents { void ResolveMediaItems (INSearchForMediaIntent intent, Action completion); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSearchForMediaIntentResponse { @@ -12998,10 +12992,10 @@ namespace Intents { INSearchForMediaIntentResponseCode Code { get; } [NullAllowed, Export ("mediaItems", ArgumentSemantic.Copy)] - INMediaItem[] MediaItems { get; set; } + INMediaItem [] MediaItems { get; set; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INSeat : NSCopying, NSSecureCoding { @@ -13023,7 +13017,7 @@ namespace Intents { string SeatingType { get; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTemporalEventTriggerResolutionResult))] [DisableDefaultCtor] interface INSetTaskAttributeTemporalEventTriggerResolutionResult { @@ -13081,17 +13075,17 @@ namespace Intents { INSetTaskAttributeTemporalEventTriggerResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INSnoozeTasksIntent { [Export ("initWithTasks:nextTriggerTime:all:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INTask[] tasks, [NullAllowed] INDateComponentsRange nextTriggerTime, [NullAllowed] [BindAs (typeof (bool?))] NSNumber all); + NativeHandle Constructor ([NullAllowed] INTask [] tasks, [NullAllowed] INDateComponentsRange nextTriggerTime, [NullAllowed][BindAs (typeof (bool?))] NSNumber all); [NullAllowed, Export ("tasks", ArgumentSemantic.Copy)] - INTask[] Tasks { get; } + INTask [] Tasks { get; } [NullAllowed, Export ("nextTriggerTime", ArgumentSemantic.Copy)] INDateComponentsRange NextTriggerTime { get; } @@ -13101,7 +13095,7 @@ namespace Intents { NSNumber All { get; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Protocol] interface INSnoozeTasksIntentHandling { @@ -13119,7 +13113,7 @@ namespace Intents { void ResolveNextTriggerTime (INSnoozeTasksIntent intent, Action completion); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INSnoozeTasksIntentResponse { @@ -13132,10 +13126,10 @@ namespace Intents { INSnoozeTasksIntentResponseCode Code { get; } [NullAllowed, Export ("snoozedTasks", ArgumentSemantic.Copy)] - INTask[] SnoozedTasks { get; set; } + INTask [] SnoozedTasks { get; set; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INTaskResolutionResult))] [DisableDefaultCtor] interface INSnoozeTasksTaskResolutionResult { @@ -13192,22 +13186,22 @@ namespace Intents { INSnoozeTasksTaskResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INSpeedResolutionResult { [Static] [Export ("successWithResolvedSpeed:")] - INSpeedResolutionResult GetSuccess (NSMeasurement resolvedSpeed); + INSpeedResolutionResult GetSuccess (NSMeasurement resolvedSpeed); [Static] [Export ("disambiguationWithSpeedToDisambiguate:")] - INSpeedResolutionResult GetDisambiguation (NSMeasurement [] speedToDisambiguate); + INSpeedResolutionResult GetDisambiguation (NSMeasurement [] speedToDisambiguate); [Static] [Export ("confirmationRequiredWithSpeedToConfirm:")] - INSpeedResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement speedToConfirm); + INSpeedResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement speedToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -13238,7 +13232,7 @@ namespace Intents { INSpeedResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INCallCapabilityResolutionResult))] [DisableDefaultCtor] interface INStartCallCallCapabilityResolutionResult { @@ -13290,7 +13284,7 @@ namespace Intents { INStartCallCallCapabilityResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INPersonResolutionResult))] [DisableDefaultCtor] interface INStartCallContactResolutionResult { @@ -13347,30 +13341,30 @@ namespace Intents { INStartCallContactResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (12,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (12, 0), iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INStartCallIntent : UNNotificationContentProviding { - [Watch (7,0), NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithCallRecordFilter:callRecordToCallBack:audioRoute:destinationType:contacts:callCapability:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INCallRecordFilter callRecordFilter, [NullAllowed] INCallRecord callRecordToCallBack, INCallAudioRoute audioRoute, INCallDestinationType destinationType, [NullAllowed] INPerson[] contacts, INCallCapability callCapability); + NativeHandle Constructor ([NullAllowed] INCallRecordFilter callRecordFilter, [NullAllowed] INCallRecord callRecordToCallBack, INCallAudioRoute audioRoute, INCallDestinationType destinationType, [NullAllowed] INPerson [] contacts, INCallCapability callCapability); [Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor (INCallRecordFilter, INCallRecord, INCallAudioRoute, INCallDestinationType, INPerson[], INCallCapability)' overload instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use '.ctor (INCallRecordFilter, INCallRecord, INCallAudioRoute, INCallDestinationType, INPerson[], INCallCapability)' overload instead.")] [Export ("initWithAudioRoute:destinationType:contacts:recordTypeForRedialing:callCapability:")] - NativeHandle Constructor (INCallAudioRoute audioRoute, INCallDestinationType destinationType, [NullAllowed] INPerson[] contacts, INCallRecordType recordTypeForRedialing, INCallCapability callCapability); + NativeHandle Constructor (INCallAudioRoute audioRoute, INCallDestinationType destinationType, [NullAllowed] INPerson [] contacts, INCallRecordType recordTypeForRedialing, INCallCapability callCapability); - [Watch (7,0), NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("callRecordFilter", ArgumentSemantic.Copy)] INCallRecordFilter CallRecordFilter { get; } - [Watch (7,0), NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("callRecordToCallBack", ArgumentSemantic.Copy)] INCallRecord CallRecordToCallBack { get; } @@ -13382,7 +13376,7 @@ namespace Intents { INCallDestinationType DestinationType { get; } [NullAllowed, Export ("contacts", ArgumentSemantic.Copy)] - INPerson[] Contacts { get; } + INPerson [] Contacts { get; } [Deprecated (PlatformName.iOS, 14, 0)] [Deprecated (PlatformName.WatchOS, 7, 0)] @@ -13393,7 +13387,7 @@ namespace Intents { INCallCapability CallCapability { get; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Protocol] interface INStartCallIntentHandling { @@ -13404,8 +13398,8 @@ namespace Intents { [Export ("confirmStartCall:completion:")] void Confirm (INStartCallIntent intent, Action completion); - [Watch (7,0), NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("resolveCallRecordToCallBackForStartCall:withCompletion:")] void ResolveCallRecordToCallBack (INStartCallIntent intent, Action completion); @@ -13419,7 +13413,7 @@ namespace Intents { void ResolveCallCapability (INStartCallIntent intent, Action completion); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INStartCallIntentResponse { @@ -13432,7 +13426,7 @@ namespace Intents { INStartCallIntentResponseCode Code { get; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTaskPriorityResolutionResult { @@ -13474,7 +13468,7 @@ namespace Intents { INTaskPriorityResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTemporalEventTriggerTypeOptionsResolutionResult { @@ -13516,7 +13510,7 @@ namespace Intents { INTemporalEventTriggerTypeOptionsResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INTicketedEvent : NSCopying, NSSecureCoding { @@ -13538,19 +13532,19 @@ namespace Intents { CLPlacemark Location { get; } } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INTicketedEventReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservedSeat:event:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INTicketedEvent @event); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INTicketedEvent @event); [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:event:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] INSeat reservedSeat, INTicketedEvent @event); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] INSeat reservedSeat, INTicketedEvent @event); [Export ("event", ArgumentSemantic.Copy)] INTicketedEvent Event { get; } @@ -13559,7 +13553,7 @@ namespace Intents { INSeat ReservedSeat { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INTimeIntervalResolutionResult { @@ -13601,19 +13595,19 @@ namespace Intents { INTimeIntervalResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INTrainReservation : NSCopying, NSSecureCoding { - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservedSeat:trainTrip:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INTrainTrip trainTrip); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, INTrainTrip trainTrip); [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:trainTrip:")] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] INSeat reservedSeat, INTrainTrip trainTrip); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] INSeat reservedSeat, INTrainTrip trainTrip); [NullAllowed, Export ("reservedSeat", ArgumentSemantic.Copy)] INSeat ReservedSeat { get; } @@ -13622,7 +13616,7 @@ namespace Intents { INTrainTrip TrainTrip { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INTrainTrip : NSCopying, NSSecureCoding { @@ -13656,7 +13650,7 @@ namespace Intents { string ArrivalPlatform { get; } } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult), Name = "INURLResolutionResult")] [DisableDefaultCtor] interface INUrlResolutionResult { @@ -13667,7 +13661,7 @@ namespace Intents { [Static] [Export ("disambiguationWithURLsToDisambiguate:")] - INUrlResolutionResult GetDisambiguation (NSUrl[] urlsToDisambiguate); + INUrlResolutionResult GetDisambiguation (NSUrl [] urlsToDisambiguate); [Static] [Export ("confirmationRequiredWithURLToConfirm:")] @@ -13702,17 +13696,17 @@ namespace Intents { INUrlResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntent))] [DisableDefaultCtor] interface INUpdateMediaAffinityIntent { [Export ("initWithMediaItems:mediaSearch:affinityType:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] INMediaItem[] mediaItems, [NullAllowed] INMediaSearch mediaSearch, INMediaAffinityType affinityType); + NativeHandle Constructor ([NullAllowed] INMediaItem [] mediaItems, [NullAllowed] INMediaSearch mediaSearch, INMediaAffinityType affinityType); [NullAllowed, Export ("mediaItems", ArgumentSemantic.Copy)] - INMediaItem[] MediaItems { get; } + INMediaItem [] MediaItems { get; } [NullAllowed, Export ("mediaSearch", ArgumentSemantic.Copy)] INMediaSearch MediaSearch { get; } @@ -13721,7 +13715,7 @@ namespace Intents { INMediaAffinityType AffinityType { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [Protocol] interface INUpdateMediaAffinityIntentHandling { @@ -13739,7 +13733,7 @@ namespace Intents { void ResolveAffinityType (INUpdateMediaAffinityIntent intent, Action completion); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INUpdateMediaAffinityIntentResponse { @@ -13752,7 +13746,7 @@ namespace Intents { INUpdateMediaAffinityIntentResponseCode Code { get; } } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INMediaItemResolutionResult))] [DisableDefaultCtor] interface INUpdateMediaAffinityMediaItemResolutionResult { @@ -13779,7 +13773,7 @@ namespace Intents { [New] [Static] [Export ("disambiguationWithMediaItemsToDisambiguate:")] - INUpdateMediaAffinityMediaItemResolutionResult GetDisambiguation (INMediaItem[] mediaItemsToDisambiguate); + INUpdateMediaAffinityMediaItemResolutionResult GetDisambiguation (INMediaItem [] mediaItemsToDisambiguate); [New] [Static] @@ -13815,7 +13809,7 @@ namespace Intents { INUpdateMediaAffinityMediaItemResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INUserContext : NSSecureCoding { @@ -13824,22 +13818,22 @@ namespace Intents { void BecomeCurrent (); } - [Watch (6,0), NoTV, Mac (11,0), iOS (13,0)] + [Watch (6, 0), NoTV, Mac (11, 0), iOS (13, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INVolumeResolutionResult { [Static] [Export ("successWithResolvedVolume:")] - INVolumeResolutionResult GetSuccess (NSMeasurement resolvedVolume); + INVolumeResolutionResult GetSuccess (NSMeasurement resolvedVolume); [Static] [Export ("disambiguationWithVolumeToDisambiguate:")] - INVolumeResolutionResult GetDisambiguation (NSMeasurement [] volumeToDisambiguate); + INVolumeResolutionResult GetDisambiguation (NSMeasurement [] volumeToDisambiguate); [Static] [Export ("confirmationRequiredWithVolumeToConfirm:")] - INVolumeResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement volumeToConfirm); + INVolumeResolutionResult GetConfirmationRequired ([NullAllowed] NSMeasurement volumeToConfirm); // Fixes bug 43205. We need to return the inherited type not the base type // because users won't be able to downcast easily @@ -13870,7 +13864,7 @@ namespace Intents { INVolumeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INMediaDestinationResolutionResult))] [DisableDefaultCtor] interface INAddMediaMediaDestinationResolutionResult { @@ -13892,7 +13886,7 @@ namespace Intents { [New] [Static] [Export ("disambiguationWithMediaDestinationsToDisambiguate:")] - INAddMediaMediaDestinationResolutionResult GetDisambiguation (INMediaDestination[] mediaDestinationsToDisambiguate); + INAddMediaMediaDestinationResolutionResult GetDisambiguation (INMediaDestination [] mediaDestinationsToDisambiguate); [New] [Static] @@ -13928,7 +13922,7 @@ namespace Intents { INAddMediaMediaDestinationResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (6,0), TV (14,0), NoMac, iOS (13,0)] + [Watch (6, 0), TV (14, 0), NoMac, iOS (13, 0)] [BaseType (typeof (INMediaItemResolutionResult))] interface INSearchForMediaMediaItemResolutionResult { @@ -13954,7 +13948,7 @@ namespace Intents { [New] [Static] [Export ("disambiguationWithMediaItemsToDisambiguate:")] - INSearchForMediaMediaItemResolutionResult GetDisambiguation (INMediaItem[] mediaItemsToDisambiguate); + INSearchForMediaMediaItemResolutionResult GetDisambiguation (INMediaItem [] mediaItemsToDisambiguate); [New] [Static] @@ -13992,7 +13986,7 @@ namespace Intents { - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Category] [BaseType (typeof (NSExtensionContext))] interface NSExtensionContext_ShareExtension { @@ -14002,8 +13996,8 @@ namespace Intents { INIntent GetIntent (); } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INBoatReservation : NSCopying, NSSecureCoding { @@ -14019,8 +14013,8 @@ namespace Intents { INBoatTrip BoatTrip { get; } } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INBoatTrip : NSCopying, NSSecureCoding { @@ -14048,15 +14042,15 @@ namespace Intents { CLPlacemark ArrivalBoatTerminalLocation { get; } } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INReservation))] [DisableDefaultCtor] interface INBusReservation : NSCopying, NSSecureCoding { [Export ("initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservedSeat:busTrip:")] [DesignatedInitializer] - NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction[] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, [NullAllowed] INBusTrip busTrip); + NativeHandle Constructor (INSpeakableString itemReference, [NullAllowed] string reservationNumber, [NullAllowed] NSDate bookingTime, INReservationStatus reservationStatus, [NullAllowed] string reservationHolderName, [NullAllowed] INReservationAction [] actions, [NullAllowed] NSUrl url, [NullAllowed] INSeat reservedSeat, [NullAllowed] INBusTrip busTrip); [NullAllowed, Export ("reservedSeat", ArgumentSemantic.Copy)] INSeat ReservedSeat { get; } @@ -14065,8 +14059,8 @@ namespace Intents { INBusTrip BusTrip { get; } } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INBusTrip : NSCopying, NSSecureCoding { @@ -14100,8 +14094,8 @@ namespace Intents { string ArrivalPlatform { get; } } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INCallRecordFilter : NSCopying, NSSecureCoding { @@ -14120,8 +14114,8 @@ namespace Intents { INCallCapability CallCapability { get; } } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INIntentResolutionResult))] interface INCallRecordResolutionResult { @@ -14166,8 +14160,8 @@ namespace Intents { INCallRecordResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INCar : NSCopying, NSSecureCoding { @@ -14209,8 +14203,8 @@ namespace Intents { NSMeasurement GetMaximumPower ([BindAs (typeof (INCarChargingConnectorType))] NSString chargingConnectorType); } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INCarHeadUnit : NSCopying, NSSecureCoding { @@ -14226,8 +14220,8 @@ namespace Intents { string Iap2Identifier { get; } } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INIntent))] [DesignatedDefaultCtor] interface INListCarsIntent { @@ -14236,8 +14230,8 @@ namespace Intents { interface IINListCarsIntentHandling { } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface INListCarsIntentHandling { @@ -14249,8 +14243,8 @@ namespace Intents { void ConfirmListCars (INListCarsIntent intent, Action completion); } - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INIntentResponse))] [DisableDefaultCtor] interface INListCarsIntentResponse { @@ -14266,8 +14260,8 @@ namespace Intents { INCar [] Cars { get; set; } } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INObjectCollection : NSCopying, NSSecureCoding @@ -14287,14 +14281,14 @@ namespace Intents { NativeHandle Constructor (INObjectSection [] sections); [Export ("initWithItems:")] - NativeHandle Constructor (ObjectType[] items); + NativeHandle Constructor (ObjectType [] items); } - [Watch (7,0), NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface INObjectSection : NSCopying, NSSecureCoding + interface INObjectSection : NSCopying, NSSecureCoding where ObjectType : NSObject { [NullAllowed, Export ("title")] @@ -14305,11 +14299,11 @@ namespace Intents { [Export ("initWithTitle:items:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string title, ObjectType[] items); + NativeHandle Constructor ([NullAllowed] string title, ObjectType [] items); } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INIntentResolutionResult))] [DisableDefaultCtor] interface INOutgoingMessageTypeResolutionResult { @@ -14351,12 +14345,12 @@ namespace Intents { INOutgoingMessageTypeResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INSendMessageAttachment { - + [Static] [Export ("attachmentWithAudioMessageFile:")] INSendMessageAttachment Create (INFile audioMessageFile); @@ -14365,8 +14359,8 @@ namespace Intents { INFile AudioMessageFile { get; } } - [Watch (7,0), NoTV, Mac (12,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, Mac (12, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (INCallRecordResolutionResult))] [DisableDefaultCtor] interface INStartCallCallRecordToCallBackResolutionResult { @@ -14419,8 +14413,8 @@ namespace Intents { INStartCallCallRecordToCallBackResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason); } - [Watch (7,4), NoTV, Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), NoTV, Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface INCallGroup : NSCopying, NSSecureCoding { diff --git a/src/intentsui.cs b/src/intentsui.cs index a20e5ba0fb..c49f419b92 100644 --- a/src/intentsui.cs +++ b/src/intentsui.cs @@ -34,7 +34,7 @@ namespace IntentsUI { } [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [MacCatalyst (13, 0)] [Native] public enum INUIInteractiveBehavior : ulong { @@ -44,21 +44,21 @@ namespace IntentsUI { GenericAction, } - [NoWatch, NoTV, Mac (12,0), iOS (12,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (12, 0)] [Native] public enum INUIAddVoiceShortcutButtonStyle : ulong { White = 0, WhiteOutline, Black, BlackOutline, - [iOS (13,0)] + [iOS (13, 0)] Automatic, - [iOS (13,0)] + [iOS (13, 0)] AutomaticOutLine, } [NoMac] - [iOS (11,0)] + [iOS (11, 0)] delegate void INUIHostedViewControllingConfigureViewHandler (bool success, NSSet configuredParameters, CGSize desiredSize); [NoMac] @@ -73,7 +73,7 @@ namespace IntentsUI { [Export ("configureWithInteraction:context:completion:")] void Configure (INInteraction interaction, INUIHostedViewContext context, Action completion); - [iOS (11,0)] + [iOS (11, 0)] [Export ("configureViewForParameters:ofInteraction:interactiveBehavior:context:completion:")] void ConfigureView (NSSet parameters, INInteraction interaction, INUIInteractiveBehavior interactiveBehavior, INUIHostedViewContext context, INUIHostedViewControllingConfigureViewHandler completionHandler); } @@ -91,7 +91,7 @@ namespace IntentsUI { [Export ("hostedViewMaximumAllowedSize")] CGSize GetHostedViewMaximumAllowedSize (); - [iOS (11,0)] + [iOS (11, 0)] [Export ("interfaceParametersDescription")] string GetInterfaceParametersDescription (); } @@ -112,8 +112,8 @@ namespace IntentsUI { bool DisplaysPaymentTransaction { get; } } - [Mac (12,0)] - [iOS (12,0)] + [Mac (12, 0)] + [iOS (12, 0)] #if MONOMAC [BaseType (typeof (NSViewController))] #else @@ -129,15 +129,15 @@ namespace IntentsUI { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [MacCatalyst (13,4)] + [MacCatalyst (13, 4)] [Export ("initWithShortcut:")] NativeHandle Constructor (INShortcut shortcut); } interface IINUIAddVoiceShortcutViewControllerDelegate { } - [Mac (12,0)] - [iOS (12,0)] + [Mac (12, 0)] + [iOS (12, 0)] #if NET [Protocol, Model] #else @@ -155,8 +155,8 @@ namespace IntentsUI { void DidCancel (INUIAddVoiceShortcutViewController controller); } - [Mac (12,0)] - [iOS (12,0)] + [Mac (12, 0)] + [iOS (12, 0)] #if MONOMAC [BaseType (typeof (NSViewController))] #else @@ -172,15 +172,15 @@ namespace IntentsUI { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } - [MacCatalyst (13,4)] + [MacCatalyst (13, 4)] [Export ("initWithVoiceShortcut:")] NativeHandle Constructor (INVoiceShortcut voiceShortcut); } interface IINUIEditVoiceShortcutViewControllerDelegate { } - [Mac (12,0)] - [iOS (12,0)] + [Mac (12, 0)] + [iOS (12, 0)] #if NET [Protocol, Model] #else @@ -202,7 +202,7 @@ namespace IntentsUI { void DidCancel (INUIEditVoiceShortcutViewController controller); } - [NoWatch, NoTV, Mac (12,0), iOS (12,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (12, 0)] #if MONOMAC [BaseType (typeof (NSButton))] #else @@ -229,24 +229,24 @@ namespace IntentsUI { [NullAllowed, Export ("shortcut", ArgumentSemantic.Strong)] INShortcut Shortcut { get; set; } - [iOS (12,2)] + [iOS (12, 2)] [Export ("cornerRadius", ArgumentSemantic.Assign)] nfloat CornerRadius { get; set; } - - [iOS (13,0)] + + [iOS (13, 0)] [Export ("setStyle:")] void SetStyle (INUIAddVoiceShortcutButtonStyle style); } - interface IINUIAddVoiceShortcutButtonDelegate {} + interface IINUIAddVoiceShortcutButtonDelegate { } - [NoWatch, NoTV, Mac (12,0), iOS (12,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (12, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface INUIAddVoiceShortcutButtonDelegate { [Abstract] diff --git a/src/iosurface.cs b/src/iosurface.cs index 8f2ef46dc1..a34f331e24 100644 --- a/src/iosurface.cs +++ b/src/iosurface.cs @@ -23,81 +23,81 @@ namespace IOSurface { [Internal] // See bug #59201 [iOS (10,0)] [iOS (11, 0)] - [TV (11,0)] + [TV (11, 0)] [Mac (10, 12)] interface IOSurfacePropertyKey { [Internal] [Field ("IOSurfacePropertyAllocSizeKey")] NSString _DeprecatedAllocSizeKey { get; } - [iOS (12, 0), TV (12,0), Mac (10, 14)] + [iOS (12, 0), TV (12, 0), Mac (10, 14)] [Internal] [Field ("IOSurfacePropertyKeyAllocSize")] NSString _NewAllocSizeKey { get; } [Field ("IOSurfacePropertyKeyWidth")] NSString WidthKey { get; } - + [Field ("IOSurfacePropertyKeyHeight")] NSString HeightKey { get; } - + [Field ("IOSurfacePropertyKeyBytesPerRow")] NSString BytesPerRowKey { get; } - + [Field ("IOSurfacePropertyKeyBytesPerElement")] NSString BytesPerElementKey { get; } - + [Field ("IOSurfacePropertyKeyElementWidth")] NSString ElementWidthKey { get; } - + [Field ("IOSurfacePropertyKeyElementHeight")] NSString ElementHeightKey { get; } - + [Field ("IOSurfacePropertyKeyOffset")] NSString OffsetKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneInfo")] NSString PlaneInfoKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneWidth")] NSString PlaneWidthKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneHeight")] NSString PlaneHeightKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneBytesPerRow")] NSString PlaneBytesPerRowKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneOffset")] NSString PlaneOffsetKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneSize")] NSString PlaneSizeKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneBase")] NSString PlaneBaseKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneBytesPerElement")] NSString PlaneBytesPerElementKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneElementWidth")] NSString PlaneElementWidthKey { get; } - + [Field ("IOSurfacePropertyKeyPlaneElementHeight")] NSString PlaneElementHeightKey { get; } - + [Field ("IOSurfacePropertyKeyCacheMode")] NSString CacheModeKey { get; } - + [Field ("IOSurfacePropertyKeyPixelFormat")] NSString PixelFormatKey { get; } - - [Field ("IOSurfacePropertyKeyPixelSizeCastingAllowed")] - NSString PixelSizeCastingAllowedKey { get; } - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [Field ("IOSurfacePropertyKeyPixelSizeCastingAllowed")] + NSString PixelSizeCastingAllowedKey { get; } + + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Field ("IOSurfacePropertyKeyName")] - NSString NameKey { get; } + NSString NameKey { get; } } [StrongDictionary ("IOSurfacePropertyKey")] @@ -123,119 +123,119 @@ namespace IOSurface { IOSurfaceMemoryMap CacheMode { get; set; } uint PixelFormat { get; set; } bool PixelSizeCastingAllowed { get; set; } - [iOS (16,0), TV (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), Mac (13, 0), MacCatalyst (16, 0)] string Name { get; set; } } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,12)] - [BaseType (typeof(NSObject))] - interface IOSurface : NSSecureCoding - { + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface IOSurface : NSSecureCoding { [Internal, Export ("initWithProperties:")] NativeHandle Constructor (NSDictionary properties); [Wrap ("this (properties.GetDictionary ()!)")] NativeHandle Constructor (IOSurfaceOptions properties); - + [Internal, Export ("lockWithOptions:seed:")] int _Lock (IOSurfaceLockOptions options, IntPtr seedPtr); - + [Internal, Export ("unlockWithOptions:seed:")] int _Unlock (IOSurfaceLockOptions options, IntPtr seed); - + [Export ("allocationSize")] nint AllocationSize { get; } - + [Export ("width")] nint Width { get; } - + [Export ("height")] nint Height { get; } - + [Export ("baseAddress")] IntPtr BaseAddress { get; } - + [Export ("pixelFormat")] uint PixelFormat { get; } - + [Export ("bytesPerRow")] nint BytesPerRow { get; } - + [Export ("bytesPerElement")] nint BytesPerElement { get; } - + [Export ("elementWidth")] nint ElementWidth { get; } - + [Export ("elementHeight")] nint ElementHeight { get; } - + [Export ("seed")] uint Seed { get; } - + [Export ("planeCount")] nuint PlaneCount { get; } - + [Export ("widthOfPlaneAtIndex:")] nint GetWidth (nuint planeIndex); - + [Export ("heightOfPlaneAtIndex:")] nint GetHeight (nuint planeIndex); - + [Export ("bytesPerRowOfPlaneAtIndex:")] nint GetBytesPerRow (nuint planeIndex); - + [Export ("bytesPerElementOfPlaneAtIndex:")] nint GetBytesPerElement (nuint planeIndex); - + [Export ("elementWidthOfPlaneAtIndex:")] nint GetElementWidth (nuint planeIndex); - + [Export ("elementHeightOfPlaneAtIndex:")] nint GetElementHeight (nuint planeIndex); - + [Export ("baseAddressOfPlaneAtIndex:")] IntPtr GetBaseAddress (nuint planeIndex); - + [Export ("setAttachment:forKey:")] void SetAttachment (NSObject anObject, NSString key); - + [Export ("attachmentForKey:")] [return: NullAllowed] NSObject GetAttachment (NSString key); - + [Export ("removeAttachmentForKey:")] void RemoveAttachment (NSString key); - + [Export ("allAttachments")] - NSDictionary AllAttachments { + NSDictionary AllAttachments { // in ObjC it's not defined as a `@property` and the getter can return null but the setter does not accept it [return: MaybeNull] get; set; } - + [Export ("removeAllAttachments")] void RemoveAllAttachments (); - + [Export ("inUse")] bool InUse { [Bind ("isInUse")] get; } - + [Export ("incrementUseCount")] void IncrementUseCount (); - + [Export ("decrementUseCount")] void DecrementUseCount (); - + [Export ("localUseCount")] int LocalUseCount { get; } - + [Export ("allowsPixelSizeCasting")] bool AllowsPixelSizeCasting { get; } - - [iOS (11,0)][Mac (10,13)] + + [iOS (11, 0)] + [Mac (10, 13)] [Internal, Export ("setPurgeable:oldState:")] int _SetPurgeable (IOSurfacePurgeabilityState newState, IntPtr oldStatePtr); } diff --git a/src/ituneslibrary.cs b/src/ituneslibrary.cs index 9a369d6315..d228190a33 100644 --- a/src/ituneslibrary.cs +++ b/src/ituneslibrary.cs @@ -32,8 +32,8 @@ using NativeHandle = System.IntPtr; namespace iTunesLibrary { - [Mac (10,14)] - [BaseType (typeof(NSObject))] + [Mac (10, 14)] + [BaseType (typeof (NSObject))] interface ITLibAlbum { [NullAllowed, Export ("title")] string Title { get; } @@ -75,10 +75,9 @@ namespace iTunesLibrary { NSNumber PersistentId { get; } } - [Mac (10,14)] - [BaseType (typeof(NSObject))] - interface ITLibArtist - { + [Mac (10, 14)] + [BaseType (typeof (NSObject))] + interface ITLibArtist { [NullAllowed, Export ("name")] string Name { get; } @@ -89,10 +88,9 @@ namespace iTunesLibrary { NSNumber PersistentId { get; } } - [Mac (10,14)] - [BaseType (typeof(NSObject))] - interface ITLibArtwork - { + [Mac (10, 14)] + [BaseType (typeof (NSObject))] + interface ITLibArtwork { [NullAllowed, Export ("image", ArgumentSemantic.Retain)] NSImage Image { get; } @@ -105,10 +103,9 @@ namespace iTunesLibrary { delegate void ITLibMediaEntityEnumerateValuesHandler (NSString property, NSObject value, out bool stop); - [Mac (10,14)] - [BaseType (typeof(NSObject))] - interface ITLibMediaEntity - { + [Mac (10, 14)] + [BaseType (typeof (NSObject))] + interface ITLibMediaEntity { [Export ("persistentID", ArgumentSemantic.Retain)] NSNumber PersistentId { get; } @@ -123,10 +120,9 @@ namespace iTunesLibrary { void EnumerateValuesExcept ([NullAllowed] NSSet properties, ITLibMediaEntityEnumerateValuesHandler handler); } - [Mac (10,14)] - [BaseType (typeof(ITLibMediaEntity))] - interface ITLibMediaItem - { + [Mac (10, 14)] + [BaseType (typeof (ITLibMediaEntity))] + interface ITLibMediaItem { [Export ("title")] string Title { get; } @@ -275,10 +271,9 @@ namespace iTunesLibrary { ITLibMediaItemLocationType LocationType { get; } } - [Mac (10,14)] - [BaseType (typeof(NSObject))] - interface ITLibMediaItemVideoInfo - { + [Mac (10, 14)] + [BaseType (typeof (NSObject))] + interface ITLibMediaItemVideoInfo { [NullAllowed, Export ("series")] string Series { get; } @@ -304,10 +299,9 @@ namespace iTunesLibrary { nuint VideoHeight { get; } } - [Mac (10,14)] - [BaseType (typeof(ITLibMediaEntity))] - interface ITLibPlaylist - { + [Mac (10, 14)] + [BaseType (typeof (ITLibMediaEntity))] + interface ITLibPlaylist { [Export ("name")] string Name { get; } @@ -315,7 +309,7 @@ namespace iTunesLibrary { [Export ("master")] bool Master { [Bind ("isMaster")] get; } - [Mac (12,0)] + [Mac (12, 0)] [Export ("primary")] bool Primary { [Bind ("isPrimary")] get; } @@ -329,7 +323,7 @@ namespace iTunesLibrary { bool AllItemsPlaylist { [Bind ("isAllItemsPlaylist")] get; } [Export ("items", ArgumentSemantic.Retain)] - ITLibMediaItem[] Items { get; } + ITLibMediaItem [] Items { get; } [Export ("distinguishedKind", ArgumentSemantic.Assign)] ITLibDistinguishedPlaylistKind DistinguishedKind { get; } @@ -338,11 +332,10 @@ namespace iTunesLibrary { ITLibPlaylistKind Kind { get; } } - [Mac (10,14)] - [BaseType (typeof(NSObject))] + [Mac (10, 14)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface ITLibrary - { + interface ITLibrary { [Export ("applicationVersion")] string ApplicationVersion { get; } @@ -365,10 +358,10 @@ namespace iTunesLibrary { bool ShowContentRating { [Bind ("shouldShowContentRating")] get; } [Export ("allMediaItems", ArgumentSemantic.Retain)] - ITLibMediaItem[] AllMediaItems { get; } + ITLibMediaItem [] AllMediaItems { get; } [Export ("allPlaylists", ArgumentSemantic.Retain)] - ITLibPlaylist[] AllPlaylists { get; } + ITLibPlaylist [] AllPlaylists { get; } [Static] [Export ("libraryWithAPIVersion:error:")] @@ -398,10 +391,9 @@ namespace iTunesLibrary { void UnloadData (); } - [Mac (13,0), NoiOS, NoMacCatalyst, NoWatch, NoTV] + [Mac (13, 0), NoiOS, NoMacCatalyst, NoWatch, NoTV] [Static] - interface ITLibraryNotifications - { + interface ITLibraryNotifications { [Field ("ITLibraryDidChangeNotification")] [Notification] NSString DidChangeNotification { get; } diff --git a/src/javascriptcore.cs b/src/javascriptcore.cs index c8b163baf1..7ee1e3c2d8 100644 --- a/src/javascriptcore.cs +++ b/src/javascriptcore.cs @@ -19,7 +19,7 @@ namespace JavaScriptCore { delegate void JSContextExceptionHandler (JSContext context, JSValue exception); - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] partial interface JSContext { @@ -30,12 +30,12 @@ namespace JavaScriptCore { [Export ("initWithVirtualMachine:")] NativeHandle Constructor (JSVirtualMachine virtualMachine); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("name")] string Name { get; set; } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("evaluateScript:withSourceURL:")] JSValue EvaluateScript (string script, NSUrl sourceUrl); @@ -54,7 +54,7 @@ namespace JavaScriptCore { [Static, Export ("currentArguments")] JSValue [] CurrentArguments { get; } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Static, Export ("currentCallee")] JSValue CurrentCallee { get; } @@ -89,10 +89,11 @@ namespace JavaScriptCore { IntPtr JSGlobalContextRefPtr { get; } } - [Mac (10,15), iOS (13,0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] delegate void JSPromiseCreationExecutor (JSValue resolve, JSValue rejected); - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // invalid (null) Handle is returned partial interface JSValue { @@ -129,22 +130,26 @@ namespace JavaScriptCore { [Static, Export ("valueWithUndefinedInContext:")] JSValue Undefined (JSContext context); - [Mac (10,15), iOS (13,0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Static] [Export ("valueWithNewPromiseInContext:fromExecutor:")] JSValue CreatePromise (JSContext context, JSPromiseCreationExecutor callback); - [Mac (10,15), iOS (13,0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Static] [Export ("valueWithNewPromiseResolvedWithResult:inContext:")] JSValue CreateResolvedPromise (NSObject result, JSContext context); - [Mac (10,15), iOS (13,0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Static] [Export ("valueWithNewPromiseRejectedWithReason:inContext:")] JSValue CreateRejectedPromise (NSObject reason, JSContext context); - [Mac (10,15), iOS (13,0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Static] [Export ("valueWithNewSymbolFromDescription:inContext:")] JSValue CreateSymbol (string description, JSContext context); @@ -225,11 +230,11 @@ namespace JavaScriptCore { [Export ("isObject")] bool IsObject { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("isArray")] bool IsArray { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("isDate")] bool IsDate { get; } @@ -308,12 +313,13 @@ namespace JavaScriptCore { [Export ("JSValueRef")] IntPtr JSValueRefPtr { get; } - [Mac (10, 15), iOS (13, 0)][TV (13,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (13, 0)] [Export ("isSymbol")] bool IsSymbol { get; } } - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] [BaseType (typeof (NSObject))] #if XAMCORE_3_0 [DisableDefaultCtor] @@ -322,7 +328,7 @@ namespace JavaScriptCore { [Static, Export ("managedValueWithValue:")] JSManagedValue Get (JSValue value); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Static, Export ("managedValueWithValue:andOwner:")] JSManagedValue Get (JSValue value, NSObject owner); @@ -333,7 +339,7 @@ namespace JavaScriptCore { JSValue Value { get; } } - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] partial interface JSVirtualMachine { @@ -348,7 +354,7 @@ namespace JavaScriptCore { void RemoveManagedReference (NSObject obj, NSObject owner); } - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] [Static] interface JSPropertyDescriptorKeys { @@ -371,7 +377,7 @@ namespace JavaScriptCore { NSString Set { get; } } - [Mac (10,9), iOS (7,0)] + [Mac (10, 9), iOS (7, 0)] #if NET [Protocol, Model] #else diff --git a/src/linkpresentation.cs b/src/linkpresentation.cs index 3f1652fcbe..d934932b11 100644 --- a/src/linkpresentation.cs +++ b/src/linkpresentation.cs @@ -26,8 +26,8 @@ using NativeHandle = System.IntPtr; namespace LinkPresentation { [ErrorDomain ("LPErrorDomain")] - [Mac (10,15), iOS (13,0)] - [TV (14,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (14, 0)] [Native] public enum LPErrorCode : long { Unknown = 1, @@ -36,8 +36,8 @@ namespace LinkPresentation { MetadataFetchTimedOut, } - [Mac (10,15), iOS (13,0)] - [TV (14,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (14, 0)] [BaseType (typeof (NSObject))] interface LPLinkMetadata : NSCopying, NSSecureCoding { @@ -63,8 +63,8 @@ namespace LinkPresentation { NSUrl RemoteVideoUrl { get; set; } } - [Mac (10,15), iOS (13,0)] - [TV (14,0)] + [Mac (10, 15), iOS (13, 0)] + [TV (14, 0)] [BaseType (typeof (UIView))] interface LPLinkView { @@ -82,7 +82,7 @@ namespace LinkPresentation { LPLinkMetadata Metadata { get; set; } } - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [NoTV] [BaseType (typeof (NSObject))] interface LPMetadataProvider { @@ -92,7 +92,7 @@ namespace LinkPresentation { void StartFetchingMetadata (NSUrl url, Action completionHandler); [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("startFetchingMetadataForRequest:completionHandler:")] void StartFetchingMetadata (NSUrlRequest request, Action completionHandler); diff --git a/src/localauthentication.cs b/src/localauthentication.cs index 2629c754c0..cae41d3700 100644 --- a/src/localauthentication.cs +++ b/src/localauthentication.cs @@ -9,12 +9,15 @@ using NativeHandle = System.IntPtr; namespace LocalAuthentication { - [Mac (10,13,2)][iOS (11,0)][NoWatch][NoTV] + [Mac (10, 13, 2)] + [iOS (11, 0)] + [NoWatch] + [NoTV] [Native] public enum LABiometryType : long { None, TouchId, - [Mac (10,15)] + [Mac (10, 15)] FaceId, #if !NET [NoMac] @@ -23,10 +26,10 @@ namespace LocalAuthentication { #endif } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] delegate void LAContextReplyHandler (bool success, NSError error); - [iOS (8,0), Mac (10,10), NoTV] // ".objc_class_name_LAContext", referenced from: '' not found + [iOS (8, 0), Mac (10, 10), NoTV] // ".objc_class_name_LAContext", referenced from: '' not found [BaseType (typeof (NSObject))] interface LAContext { [NoWatch] @@ -35,7 +38,7 @@ namespace LocalAuthentication { string LocalizedFallbackTitle { get; set; } #if !NET - [iOS (8,3), NoTV] + [iOS (8, 3), NoTV] [Field ("LAErrorDomain")] NSString ErrorDomain { get; } #endif @@ -47,39 +50,44 @@ namespace LocalAuthentication { [Export ("evaluatePolicy:localizedReason:reply:")] void EvaluatePolicy (LAPolicy policy, string localizedReason, LAContextReplyHandler reply); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("invalidate")] void Invalidate (); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setCredential:type:")] bool SetCredentialType ([NullAllowed] NSData credential, LACredentialType type); - - [iOS (9,0), Mac(10,11)] + + [iOS (9, 0), Mac (10, 11)] [Export ("isCredentialSet:")] bool IsCredentialSet (LACredentialType type); - - [iOS (9,0), Mac(10,11)] + + [iOS (9, 0), Mac (10, 11)] [Export ("evaluateAccessControl:operation:localizedReason:reply:")] - void EvaluateAccessControl (SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, Action reply); - - - [iOS (9,0), Mac(10,11)] + void EvaluateAccessControl (SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, Action reply); + + + [iOS (9, 0), Mac (10, 11)] [Export ("evaluatedPolicyDomainState")] [NullAllowed] NSData EvaluatedPolicyDomainState { get; } - [iOS (10,0)][Mac (10,12)][NoWatch] + [iOS (10, 0)] + [Mac (10, 12)] + [NoWatch] [NullAllowed, Export ("localizedCancelTitle")] string LocalizedCancelTitle { get; set; } - [iOS (9,0)][Mac (10,12,4)][NoWatch] + [iOS (9, 0)] + [Mac (10, 12, 4)] + [NoWatch] [Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration")] double /* NSTimeInterval */ TouchIdAuthenticationMaximumAllowableReuseDuration { get; } - [iOS (9,0)][Mac (10,12,4)] + [iOS (9, 0)] + [Mac (10, 12, 4)] [Export ("touchIDAuthenticationAllowableReuseDuration")] double /* NSTimeInterval */ TouchIdAuthenticationAllowableReuseDuration { get; set; } @@ -93,20 +101,21 @@ namespace LocalAuthentication { [Export ("localizedReason")] string LocalizedReason { get; set; } - [Watch (9,0), NoTV, Mac (10, 13), iOS (11, 0)] + [Watch (9, 0), NoTV, Mac (10, 13), iOS (11, 0)] [Export ("interactionNotAllowed")] bool InteractionNotAllowed { get; set; } - [Mac (10,13,2)][iOS (11,0)][NoWatch] + [Mac (10, 13, 2)] + [iOS (11, 0)] + [NoWatch] [Export ("biometryType")] LABiometryType BiometryType { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (LARight))] [DisableDefaultCtor] - interface LAPersistedRight - { + interface LAPersistedRight { [Export ("key")] LAPrivateKey Key { get; } @@ -116,11 +125,10 @@ namespace LocalAuthentication { delegate void LAPrivateKeyCompletionHandler ([NullAllowed] NSData data, [NullAllowed] NSError error); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface LAPrivateKey - { + interface LAPrivateKey { [Export ("publicKey")] LAPublicKey PublicKey { get; } @@ -149,11 +157,10 @@ namespace LocalAuthentication { delegate void LAPublicKeyCompletionHandler ([NullAllowed] NSData data, [NullAllowed] NSError error); delegate void LAPublicKeyVerifyDataCompletionHandler ([NullAllowed] NSError error); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface LAPublicKey - { + interface LAPublicKey { [Async] [Export ("exportBytesWithCompletion:")] void ExportBytes (LAPublicKeyCompletionHandler handler); @@ -173,10 +180,9 @@ namespace LocalAuthentication { bool CanVerify (SecKeyAlgorithm algorithm); } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] - interface LAAuthenticationRequirement - { + interface LAAuthenticationRequirement { [Static] [Export ("defaultRequirement")] LAAuthenticationRequirement DefaultRequirement { get; } @@ -194,10 +200,9 @@ namespace LocalAuthentication { LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback); } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] - interface LABiometryFallbackRequirement - { + interface LABiometryFallbackRequirement { [Static] [Export ("defaultRequirement")] LABiometryFallbackRequirement DefaultRequirement { get; } @@ -209,10 +214,9 @@ namespace LocalAuthentication { delegate void LARightAuthorizeCompletionHandler ([NullAllowed] NSError error); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] - interface LARight - { + interface LARight { [Export ("state")] LARightState State { get; } @@ -238,11 +242,10 @@ namespace LocalAuthentication { delegate void LARightStoreCompletionHandler ([NullAllowed] LAPersistedRight right, [NullAllowed] NSError error); delegate void LARightStoreRemoveRightCompletionHandler ([NullAllowed] NSError error); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] - [BaseType (typeof(NSObject))] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface LARightStore - { + interface LARightStore { [Static] [Export ("sharedStore")] LARightStore SharedStore { get; } @@ -274,11 +277,10 @@ namespace LocalAuthentication { delegate void LASecretCompletionHandler ([NullAllowed] NSData data, [NullAllowed] NSError error); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface LASecret - { + interface LASecret { [Async] [Export ("loadDataWithCompletion:")] void LoadData (LASecretCompletionHandler handler); diff --git a/src/localauthenticationembeddedui.cs b/src/localauthenticationembeddedui.cs index 30e39a7140..045090c8d1 100644 --- a/src/localauthenticationembeddedui.cs +++ b/src/localauthenticationembeddedui.cs @@ -19,24 +19,23 @@ using NativeHandle = System.IntPtr; #endif namespace LocalAuthenticationEmbeddedUI { - - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] - [BaseType (typeof (NSView))] - interface LAAuthenticationView - { - [Export ("initWithFrame:")] - NativeHandle Constructor (CGRect frameRect); - [Export ("initWithContext:")] - NativeHandle Constructor (LAContext context); + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] + [BaseType (typeof (NSView))] + interface LAAuthenticationView { + [Export ("initWithFrame:")] + NativeHandle Constructor (CGRect frameRect); - [Export ("initWithContext:controlSize:")] - NativeHandle Constructor (LAContext context, NSControlSize controlSize); + [Export ("initWithContext:")] + NativeHandle Constructor (LAContext context); - [Export ("context")] - LAContext Context { get; } + [Export ("initWithContext:controlSize:")] + NativeHandle Constructor (LAContext context, NSControlSize controlSize); - [Export ("controlSize")] - NSControlSize ControlSize { get; } - } + [Export ("context")] + LAContext Context { get; } + + [Export ("controlSize")] + NSControlSize ControlSize { get; } + } } diff --git a/src/mailkit.cs b/src/mailkit.cs index 440b7a39fb..ebdbc15a77 100644 --- a/src/mailkit.cs +++ b/src/mailkit.cs @@ -10,20 +10,18 @@ using NativeHandle = System.IntPtr; #endif namespace MailKit { - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Native] [ErrorDomain ("MEComposeSessionErrorDomain")] - public enum MEComposeSessionErrorCode : long - { + public enum MEComposeSessionErrorCode : long { Recipients = 0, Headers = 1, Body = 2, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Native] - public enum MEMessageActionMessageColor : long - { + public enum MEMessageActionMessageColor : long { None, Green, Yellow, @@ -34,29 +32,26 @@ namespace MailKit { Gray, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Native] - public enum MEMessageState : long - { + public enum MEMessageState : long { Received = 0, Draft = 1, Sending = 2, } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [Native] - public enum MEMessageEncryptionState : long - { + public enum MEMessageEncryptionState : long { Unknown = 0, NotEncrypted = 1, Encrypted = 2, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessage : NSSecureCoding - { + interface MEMessage : NSSecureCoding { [Export ("state", ArgumentSemantic.Assign)] MEMessageState State { get; } @@ -70,19 +65,19 @@ namespace MailKit { MEEmailAddress FromAddress { get; } [Export ("toAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] ToAddresses { get; } + MEEmailAddress [] ToAddresses { get; } [Export ("ccAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] CcAddresses { get; } + MEEmailAddress [] CcAddresses { get; } [Export ("bccAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] BccAddresses { get; } + MEEmailAddress [] BccAddresses { get; } [Export ("replyToAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] ReplyToAddresses { get; } + MEEmailAddress [] ReplyToAddresses { get; } [Export ("allRecipientAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] AllRecipientAddresses { get; } + MEEmailAddress [] AllRecipientAddresses { get; } [Export ("dateSent", ArgumentSemantic.Copy)] [NullAllowed] @@ -99,10 +94,9 @@ namespace MailKit { NSData RawData { get; } } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [Native] - public enum MEMessageActionFlag : long - { + public enum MEMessageActionFlag : long { None, DefaultColor, Red, @@ -114,11 +108,10 @@ namespace MailKit { Gray, } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessageAction : NSSecureCoding - { + interface MEMessageAction : NSSecureCoding { [Static] [Export ("moveToTrashAction")] MEMessageAction MoveToTrash { get; } @@ -148,11 +141,10 @@ namespace MailKit { MEMessageAction SetBackgroundColorAction (MEMessageActionMessageColor color); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessageActionDecision : NSSecureCoding - { + interface MEMessageActionDecision : NSSecureCoding { [Static] [Export ("invokeAgainWithBody")] MEMessageActionDecision InvokeAgainWithBody { get; } @@ -163,14 +155,13 @@ namespace MailKit { [Static] [Export ("decisionApplyingActions:")] - MEMessageActionDecision Apply (MEMessageAction[] actions); + MEMessageActionDecision Apply (MEMessageAction [] actions); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessageEncodingResult : NSSecureCoding - { + interface MEMessageEncodingResult : NSSecureCoding { [Export ("initWithEncodedMessage:signingError:encryptionError:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] MEEncodedOutgoingMessage encodedMessage, [NullAllowed] NSError signingError, [NullAllowed] NSError encryptionError); @@ -185,19 +176,18 @@ namespace MailKit { NSError EncryptionError { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessageSecurityInformation : NSSecureCoding - { + interface MEMessageSecurityInformation : NSSecureCoding { [Export ("initWithSigners:isEncrypted:signingError:encryptionError:")] - NativeHandle Constructor (MEMessageSigner[] signers, bool isEncrypted, [NullAllowed] NSError signingError, [NullAllowed] NSError encryptionError); + NativeHandle Constructor (MEMessageSigner [] signers, bool isEncrypted, [NullAllowed] NSError signingError, [NullAllowed] NSError encryptionError); [Export ("initWithSigners:isEncrypted:signingError:encryptionError:shouldBlockRemoteContent:localizedRemoteContentBlockingReason:")] - NativeHandle Constructor (MEMessageSigner[] signers, bool isEncrypted, [NullAllowed] NSError signingError, [NullAllowed] NSError encryptionError, bool shouldBlockRemoteContent, [NullAllowed] string localizedRemoteContentBlockingReason); + NativeHandle Constructor (MEMessageSigner [] signers, bool isEncrypted, [NullAllowed] NSError signingError, [NullAllowed] NSError encryptionError, bool shouldBlockRemoteContent, [NullAllowed] string localizedRemoteContentBlockingReason); [Export ("signers", ArgumentSemantic.Strong)] - MEMessageSigner[] Signers { get; } + MEMessageSigner [] Signers { get; } [Export ("isEncrypted")] bool IsEncrypted { get; } @@ -215,16 +205,15 @@ namespace MailKit { bool ShouldBlockRemoteContent { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEMessageSigner : NSSecureCoding - { + interface MEMessageSigner : NSSecureCoding { [Export ("initWithEmailAddresses:signatureLabel:context:")] - NativeHandle Constructor (MEEmailAddress[] emailAddresses, string label, [NullAllowed] NSData context); + NativeHandle Constructor (MEEmailAddress [] emailAddresses, string label, [NullAllowed] NSData context); [Export ("emailAddresses", ArgumentSemantic.Copy)] - MEEmailAddress[] EmailAddresses { get; } + MEEmailAddress [] EmailAddresses { get; } [Export ("label")] string Label { get; } @@ -233,13 +222,12 @@ namespace MailKit { NSData Context { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEOutgoingMessageEncodingStatus : NSSecureCoding - { + interface MEOutgoingMessageEncodingStatus : NSSecureCoding { [Export ("initWithCanSign:canEncrypt:securityError:addressesFailingEncryption:")] - NativeHandle Constructor (bool canSign, bool canEncrypt, [NullAllowed] NSError securityError, MEEmailAddress[] addressesFailingEncryption); + NativeHandle Constructor (bool canSign, bool canEncrypt, [NullAllowed] NSError securityError, MEEmailAddress [] addressesFailingEncryption); [Export ("canSign")] bool CanSign { get; } @@ -251,14 +239,13 @@ namespace MailKit { NSError SecurityError { get; } [Export ("addressesFailingEncryption", ArgumentSemantic.Copy)] - MEEmailAddress[] AddressesFailingEncryption { get; } + MEEmailAddress [] AddressesFailingEncryption { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEAddressAnnotation : NSSecureCoding - { + interface MEAddressAnnotation : NSSecureCoding { [Static] [Export ("errorWithLocalizedDescription:")] MEAddressAnnotation CreateErrorAnnotation (string localizedDescription); @@ -272,12 +259,11 @@ namespace MailKit { MEAddressAnnotation CreateSuccessAnnotation (string localizedDescription); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Advice ("'MEComposeSession' is not available in UIKit on macOS.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEComposeSession : NSSecureCoding - { + interface MEComposeSession : NSSecureCoding { [Export ("sessionID", ArgumentSemantic.Strong)] NSUuid SessionId { get; } @@ -291,11 +277,10 @@ namespace MailKit { void ReloadSession (); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEDecodedMessage : NSSecureCoding - { + interface MEDecodedMessage : NSSecureCoding { [NullAllowed, Export ("rawData", ArgumentSemantic.Copy)] NSData RawData { get; } @@ -315,10 +300,9 @@ namespace MailKit { NativeHandle Constructor ([NullAllowed] NSData rawData, MEMessageSecurityInformation securityInformation, [NullAllowed] NSData context, [NullAllowed] MEDecodedMessageBanner banner); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] - interface MEEncodedOutgoingMessage : NSSecureCoding - { + interface MEEncodedOutgoingMessage : NSSecureCoding { [Export ("initWithRawData:isSigned:isEncrypted:")] NativeHandle Constructor (NSData rawData, bool isSigned, bool isEncrypted); @@ -332,11 +316,10 @@ namespace MailKit { bool IsEncrypted { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEEmailAddress : NSSecureCoding, NSCopying - { + interface MEEmailAddress : NSSecureCoding, NSCopying { [Export ("initWithRawString:")] NativeHandle Constructor (string rawString); @@ -347,12 +330,11 @@ namespace MailKit { string AddressString { get; } } - interface IMEComposeSessionHandler {} + interface IMEComposeSessionHandler { } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEComposeSessionHandler - { + interface MEComposeSessionHandler { [Abstract] [Export ("mailComposeSessionDidBegin:")] void MailComposeSessionDidBegin (MEComposeSession session); @@ -375,21 +357,19 @@ namespace MailKit { NSDictionary> GetAdditionalHeaders (MEComposeSession session); } - interface IMEContentBlocker {} + interface IMEContentBlocker { } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEContentBlocker - { + interface MEContentBlocker { [Abstract] [Export ("contentRulesJSON")] NSData ContentRulesJson { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEExtension - { + interface MEExtension { [Export ("handlerForComposeSession:")] IMEComposeSessionHandler GetHandlerForComposeSession (MEComposeSession session); @@ -403,34 +383,31 @@ namespace MailKit { IMEMessageSecurityHandler HandlerForMessageSecurity { get; } } - interface IMEMessageActionHandler {} + interface IMEMessageActionHandler { } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEMessageActionHandler - { + interface MEMessageActionHandler { [Abstract] [Export ("decideActionForMessage:completionHandler:")] void DecideAction (MEMessage message, Action completionHandler); [Export ("requiredHeaders", ArgumentSemantic.Copy)] - string[] RequiredHeaders { get; } + string [] RequiredHeaders { get; } } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEMessageDecoder - { + interface MEMessageDecoder { [Abstract] [Export ("decodedMessageForMessageData:")] [return: NullAllowed] MEDecodedMessage DecodedMessage (NSData data); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEMessageEncoder - { + interface MEMessageEncoder { [Abstract] [Export ("getEncodingStatusForMessage:composeContext:completionHandler:")] void GetEncodingStatus (MEMessage message, MEComposeContext composeContext, Action completionHandler); @@ -441,24 +418,22 @@ namespace MailKit { } [ErrorDomain ("MEMessageSecurityErrorDomain")] - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [Native] - public enum MEMessageSecurityErrorCode : long - { + public enum MEMessageSecurityErrorCode : long { EncodingError = 0, DecodingError = 1, } - interface IMEMessageSecurityHandler {} + interface IMEMessageSecurityHandler { } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [Protocol] - interface MEMessageSecurityHandler : MEMessageEncoder, MEMessageDecoder - { + interface MEMessageSecurityHandler : MEMessageEncoder, MEMessageDecoder { [Abstract] [Export ("extensionViewControllerForMessageSigners:")] [return: NullAllowed] - MEExtensionViewController GetExtensionViewController (MEMessageSigner[] messageSigners); + MEExtensionViewController GetExtensionViewController (MEMessageSigner [] messageSigners); [Abstract] [Export ("extensionViewControllerForMessageContext:")] @@ -470,22 +445,20 @@ namespace MailKit { void SetPrimaryActionClicked (NSData messageContext, Action completionHandler); } - [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12,0)] + [NoWatch, NoTV, NoiOS, NoMacCatalyst, Mac (12, 0)] [DefaultCtorVisibility (Visibility.Protected)] [BaseType (typeof (NSViewController))] - interface MEExtensionViewController - { + interface MEExtensionViewController { [DesignatedInitializer] [Protected] [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEExtensionManager - { + interface MEExtensionManager { [Static] [Export ("reloadContentBlockerWithIdentifier:completionHandler:")] void ReloadContentBlocker (string identifier, [NullAllowed] Action completionHandler); @@ -495,21 +468,19 @@ namespace MailKit { void ReloadVisibleMessages ([NullAllowed] Action completionHandler); } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [Native] - public enum MEComposeUserAction : long - { + public enum MEComposeUserAction : long { NewMessage = 1, Reply = 2, ReplyAll = 3, Forward = 4, } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEComposeContext - { + interface MEComposeContext { [Export ("contextID", ArgumentSemantic.Strong)] NSUuid ContextId { get; } @@ -532,11 +503,10 @@ namespace MailKit { bool ShouldSign { get; } } - [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12,0)] + [NoWatch, NoTV, NoMacCatalyst, NoiOS, Mac (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MEDecodedMessageBanner : NSSecureCoding, NSCopying - { + interface MEDecodedMessageBanner : NSSecureCoding, NSCopying { [Export ("title", ArgumentSemantic.Strong)] string Title { get; } diff --git a/src/mapkit.cs b/src/mapkit.cs index 054a2ddd7a..a25ec815d2 100644 --- a/src/mapkit.cs +++ b/src/mapkit.cs @@ -70,31 +70,32 @@ namespace MapKit { [BaseType (typeof (NSObject))] [Model] [Protocol] - [Mac (10,9)] + [Mac (10, 9)] interface MKAnnotation { - [Export ("coordinate")][Abstract] + [Export ("coordinate")] + [Abstract] CLLocationCoordinate2D Coordinate { get; } [Export ("title", ArgumentSemantic.Copy)] [NullAllowed] string Title { get; } - + [Export ("subtitle", ArgumentSemantic.Copy)] [NullAllowed] - string Subtitle { get; } + string Subtitle { get; } [Export ("setCoordinate:")] - [Mac (10,9)] + [Mac (10, 9)] void SetCoordinate (CLLocationCoordinate2D value); } - interface IMKAnnotation {} + interface IMKAnnotation { } #if !WATCH [BaseType (typeof (MKAnnotation))] [Model] [Protocol] - [Mac (10,9)] + [Mac (10, 9)] interface MKOverlay { [Abstract] [Export ("boundingMapRect")] @@ -106,135 +107,151 @@ namespace MapKit { // optional, not implemented by MKPolygon, MKPolyline and MKCircle // implemented by MKTileOverlay (and defined there) [OptionalImplementation] - [iOS (7,0), Export ("canReplaceMapContent")] + [iOS (7, 0), Export ("canReplaceMapContent")] bool CanReplaceMapContent { get; } } - interface IMKOverlay {} - + interface IMKOverlay { } + [BaseType (typeof (UIView))] [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] interface MKAnnotationView { [DesignatedInitializer] [Export ("initWithAnnotation:reuseIdentifier:")] [PostGet ("Annotation")] NativeHandle Constructor ([NullAllowed] IMKAnnotation annotation, [NullAllowed] string reuseIdentifier); - + [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); [Export ("reuseIdentifier")] [NullAllowed] string ReuseIdentifier { get; } - + [Export ("prepareForReuse")] void PrepareForReuse (); - + [Export ("annotation", ArgumentSemantic.Retain)] [ThreadSafe] // Sometimes iOS will request the annotation from a non-UI thread (see https://bugzilla.xamarin.com/show_bug.cgi?27609) [NullAllowed] IMKAnnotation Annotation { get; set; } - + [Export ("image", ArgumentSemantic.Retain)] [NullAllowed] UIImage Image { get; set; } - + [Export ("centerOffset")] CGPoint CenterOffset { get; set; } - + [Export ("calloutOffset")] CGPoint CalloutOffset { get; set; } - + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } - + [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } - + [Export ("selected")] bool Selected { [Bind ("isSelected")] get; set; } - + [Export ("setSelected:animated:")] void SetSelected (bool selected, bool animated); - + [Export ("canShowCallout")] bool CanShowCallout { get; set; } - + [Export ("leftCalloutAccessoryView", ArgumentSemantic.Retain)] [NullAllowed] UIView LeftCalloutAccessoryView { get; set; } - + [Export ("rightCalloutAccessoryView", ArgumentSemantic.Retain)] [NullAllowed] UIView RightCalloutAccessoryView { get; set; } - + [NoTV] [Export ("setDragState:animated:")] void SetDragState (MKAnnotationViewDragState newDragState, bool animated); [Export ("dragState")] [NoTV] - MKAnnotationViewDragState DragState { get; set; } + MKAnnotationViewDragState DragState { get; set; } [NoTV] [Export ("draggable")] - bool Draggable { [Bind ("isDraggable")] get; set; } + bool Draggable { [Bind ("isDraggable")] get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("detailCalloutAccessoryView")] [NullAllowed] UIView DetailCalloutAccessoryView { get; set; } - [NoiOS][NoWatch][NoTV][MacCatalyst (13,0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (13, 0)] [Export ("leftCalloutOffset")] CGPoint LeftCalloutOffset { get; set; } - [NoiOS][NoWatch][NoTV][MacCatalyst (13,0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (13, 0)] [Export ("rightCalloutOffset")] CGPoint RightCallpoutOffset { get; set; } - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [NullAllowed, Export ("clusteringIdentifier")] string ClusteringIdentifier { get; set; } - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [NullAllowed, Export ("clusterAnnotationView", ArgumentSemantic.Weak)] MKAnnotationView ClusterAnnotationView { get; } - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Advice ("Pre-defined constants are available from 'MKFeatureDisplayPriority'.")] [Export ("displayPriority")] float DisplayPriority { get; set; } - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("collisionMode", ArgumentSemantic.Assign)] MKAnnotationViewCollisionMode CollisionMode { get; set; } - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("prepareForDisplay")] [RequiresSuper] void PrepareForDisplay (); [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("zPriority")] float ZPriority { get; set; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("selectedZPriority")] float SelectedZPriority { get; set; } } [ThreadSafe] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (MKShape))] interface MKCircle : MKOverlay { [Export ("radius")] - double Radius { get; } + double Radius { get; } [Static] [Export ("circleWithCenterCoordinate:radius:")] @@ -251,7 +268,8 @@ namespace MapKit { #endregion } - [NoMac][NoTV] + [NoMac] + [NoTV] [BaseType (typeof (MKOverlayPathView))] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKCircleRenderer' instead.")] interface MKCircleView { @@ -259,24 +277,24 @@ namespace MapKit { NativeHandle Constructor (CGRect frame); [Export ("circle")] - MKCircle Circle { get; } + MKCircle Circle { get; } [Export ("initWithCircle:")] [PostGet ("Circle")] NativeHandle Constructor (MKCircle circle); } - - [TV (9,2)] - [Mac (10,9)] + + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] interface MKDirectionsRequest { [NullAllowed] // by default this property is null [Export ("destination")] - MKMapItem Destination { get; [iOS (7,0)] set; } + MKMapItem Destination { get; [iOS (7, 0)] set; } [NullAllowed] // by default this property is null [Export ("source")] - MKMapItem Source { get; [iOS (7,0)] set; } + MKMapItem Source { get; [iOS (7, 0)] set; } [Export ("initWithContentsOfURL:")] NativeHandle Constructor (NSUrl url); @@ -285,55 +303,55 @@ namespace MapKit { [Export ("isDirectionsRequestURL:")] bool IsDirectionsRequestUrl (NSUrl url); - [iOS (7,0), Export ("transportType")] + [iOS (7, 0), Export ("transportType")] MKDirectionsTransportType TransportType { get; set; } - [iOS (7,0), Export ("requestsAlternateRoutes")] + [iOS (7, 0), Export ("requestsAlternateRoutes")] bool RequestsAlternateRoutes { get; set; } [NullAllowed] // by default this property is null - [iOS (7,0), Export ("departureDate", ArgumentSemantic.Copy)] + [iOS (7, 0), Export ("departureDate", ArgumentSemantic.Copy)] NSDate DepartureDate { get; set; } [NullAllowed] // by default this property is null - [iOS (7,0), Export ("arrivalDate", ArgumentSemantic.Copy)] + [iOS (7, 0), Export ("arrivalDate", ArgumentSemantic.Copy)] NSDate ArrivalDate { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("tollPreference", ArgumentSemantic.Assign)] MKDirectionsRoutePreference TollPreference { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("highwayPreference", ArgumentSemantic.Assign)] MKDirectionsRoutePreference HighwayPreference { get; set; } } #endif // !WATCH [BaseType (typeof (NSObject))] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] interface MKMapItem : NSSecureCoding #if IOS // #if TARGET_OS_IOS , NSItemProviderReading, NSItemProviderWriting #endif { [Export ("placemark", ArgumentSemantic.Retain)] - MKPlacemark Placemark { get; } + MKPlacemark Placemark { get; } [Export ("isCurrentLocation")] - bool IsCurrentLocation { get; } + bool IsCurrentLocation { get; } [NullAllowed] // it's null by default on iOS 6.1 [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [NullAllowed] // by default this property is null [Export ("phoneNumber", ArgumentSemantic.Copy)] - string PhoneNumber { get; set; } + string PhoneNumber { get; set; } [NullAllowed] // by default this property is null [Export ("url", ArgumentSemantic.Retain)] - NSUrl Url { get; set; } + NSUrl Url { get; set; } [Static] [Export ("mapItemForCurrentLocation")] @@ -387,8 +405,8 @@ namespace MapKit { NSString MKLaunchOptionsShowsTrafficKey { get; } [NoTV] - [iOS (7,1)] // latest documentation says 7.1 and the field is not present in the simulator (7.0.3) - [Mac (10,10)] + [iOS (7, 1)] // latest documentation says 7.1 and the field is not present in the simulator (7.0.3) + [Mac (10, 10)] [Field ("MKLaunchOptionsCameraKey"), Internal] NSString MKLaunchOptionsCameraKey { get; } @@ -401,21 +419,24 @@ namespace MapKit { NSString MKLaunchOptionsDirectionsModeWalking { get; } [NoTV] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("MKLaunchOptionsDirectionsModeTransit"), Internal] NSString MKLaunchOptionsDirectionsModeTransit { get; } [NoTV] - [iOS (10,0)][Mac (10,12)][Watch (3,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] [Field ("MKLaunchOptionsDirectionsModeDefault"), Internal] NSString MKLaunchOptionsDirectionsModeDefault { get; } [Export ("timeZone")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed] NSTimeZone TimeZone { get; set; } - [iOS (11,0), Mac (10,13), Watch (4,0), TV (11,0)] + [iOS (11, 0), Mac (10, 13), Watch (4, 0), TV (11, 0)] [Field ("MKMapItemTypeIdentifier")] NSString TypeIdentifier { get; } @@ -425,148 +446,162 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof (MKMapViewDelegate)})] - [Mac (10,9)] + [TV (9, 2)] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (MKMapViewDelegate) })] + [Mac (10, 9)] interface MKMapView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] MKMapViewDelegate Delegate { get; set; } - + [Export ("mapType")] MKMapType MapType { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("preferredConfiguration", ArgumentSemantic.Copy)] MKMapConfiguration PreferredConfiguration { get; set; } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("selectableMapFeatures", ArgumentSemantic.Assign)] MKMapFeatureOptions SelectableMapFeatures { get; set; } - + [Export ("region")] MKCoordinateRegion Region { get; set; } - + [Export ("setRegion:animated:")] void SetRegion (MKCoordinateRegion region, bool animated); - + [Export ("centerCoordinate")] CLLocationCoordinate2D CenterCoordinate { get; set; } - + [Export ("setCenterCoordinate:animated:")] void SetCenterCoordinate (CLLocationCoordinate2D coordinate, bool animated); - + [Export ("regionThatFits:")] MKCoordinateRegion RegionThatFits (MKCoordinateRegion region); - + [Export ("convertCoordinate:toPointToView:")] CGPoint ConvertCoordinate (CLLocationCoordinate2D coordinate, [NullAllowed] UIView toPointToView); - + [Export ("convertPoint:toCoordinateFromView:")] CLLocationCoordinate2D ConvertPoint (CGPoint point, [NullAllowed] UIView toCoordinateFromView); - + [Export ("convertRegion:toRectToView:")] CGRect ConvertRegion (MKCoordinateRegion region, [NullAllowed] UIView toRectToView); - + [Export ("convertRect:toRegionFromView:")] MKCoordinateRegion ConvertRect (CGRect rect, [NullAllowed] UIView toRegionFromView); - + [Export ("zoomEnabled")] bool ZoomEnabled { [Bind ("isZoomEnabled")] get; set; } - + [Export ("scrollEnabled")] bool ScrollEnabled { [Bind ("isScrollEnabled")] get; set; } - + [Export ("showsUserLocation")] bool ShowsUserLocation { get; set; } - + [Export ("userLocation")] MKUserLocation UserLocation { get; } - + [Export ("userLocationVisible")] bool UserLocationVisible { [Bind ("isUserLocationVisible")] get; } - + [Export ("addAnnotation:")] [PostGet ("Annotations")] void AddAnnotation (IMKAnnotation annotation); - + [Export ("addAnnotations:")] [PostGet ("Annotations")] void AddAnnotations ([Params] IMKAnnotation [] annotations); - + [Export ("removeAnnotation:")] [PostGet ("Annotations")] void RemoveAnnotation (IMKAnnotation annotation); - + [Export ("removeAnnotations:")] [PostGet ("Annotations")] void RemoveAnnotations ([Params] IMKAnnotation [] annotations); - + [Export ("annotations")] IMKAnnotation [] Annotations { get; } - + [Export ("viewForAnnotation:")] [return: NullAllowed] MKAnnotationView ViewForAnnotation (IMKAnnotation annotation); - + [Export ("dequeueReusableAnnotationViewWithIdentifier:")] [return: NullAllowed] MKAnnotationView DequeueReusableAnnotation (string withViewIdentifier); - - [TV (11,0)][iOS (11,0)][Mac (10,13)] + + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("dequeueReusableAnnotationViewWithIdentifier:forAnnotation:")] MKAnnotationView DequeueReusableAnnotation (string identifier, IMKAnnotation annotation); - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("registerClass:forAnnotationViewWithReuseIdentifier:")] void Register ([NullAllowed] Class viewClass, string identifier); - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [Wrap ("Register (viewType is null ? null : new Class (viewType), identifier)")] void Register ([NullAllowed] Type viewType, string identifier); [Export ("selectAnnotation:animated:")] [PostGet ("SelectedAnnotations")] void SelectAnnotation (IMKAnnotation annotation, bool animated); - + [Export ("deselectAnnotation:animated:")] [PostGet ("SelectedAnnotations")] void DeselectAnnotation ([NullAllowed] IMKAnnotation annotation, bool animated); - + [Export ("selectedAnnotations", ArgumentSemantic.Copy)] - IMKAnnotation [] SelectedAnnotations { get; set; } - + IMKAnnotation [] SelectedAnnotations { get; set; } + [Export ("annotationVisibleRect")] CGRect AnnotationVisibleRect { get; } - [Export ("addOverlay:")][PostGet ("Overlays")] + [Export ("addOverlay:")] + [PostGet ("Overlays")] void AddOverlay (IMKOverlay overlay); - [Export ("addOverlays:")][PostGet ("Overlays")] + [Export ("addOverlays:")] + [PostGet ("Overlays")] void AddOverlays (IMKOverlay [] overlays); - [Export ("removeOverlay:")][PostGet ("Overlays")] + [Export ("removeOverlay:")] + [PostGet ("Overlays")] void RemoveOverlay (IMKOverlay overlay); - [Export ("removeOverlays:")][PostGet ("Overlays")] + [Export ("removeOverlays:")] + [PostGet ("Overlays")] void RemoveOverlays ([Params] IMKOverlay [] overlays); [Export ("overlays")] - IMKOverlay [] Overlays { get; } + IMKOverlay [] Overlays { get; } - [Export ("insertOverlay:atIndex:")][PostGet ("Overlays")] + [Export ("insertOverlay:atIndex:")] + [PostGet ("Overlays")] void InsertOverlay (IMKOverlay overlay, nint index); - [Export ("insertOverlay:aboveOverlay:")][PostGet ("Overlays")] + [Export ("insertOverlay:aboveOverlay:")] + [PostGet ("Overlays")] void InsertOverlayAbove (IMKOverlay overlay, IMKOverlay sibling); - [Export ("insertOverlay:belowOverlay:")][PostGet ("Overlays")] + [Export ("insertOverlay:belowOverlay:")] + [PostGet ("Overlays")] void InsertOverlayBelow (IMKOverlay overlay, IMKOverlay sibling); [Export ("exchangeOverlayAtIndex:withOverlayAtIndex:")] @@ -584,13 +619,14 @@ namespace MapKit { [Export ("mapRectThatFits:edgePadding:")] MKMapRect MapRectThatFits (MKMapRect mapRect, UIEdgeInsets edgePadding); - [NoMac][NoTV] + [NoMac] + [NoTV] [Export ("viewForOverlay:")] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKOverlayRenderer.RendererForOverlay' instead.")] MKOverlayView ViewForOverlay (IMKOverlay overlay); [Export ("visibleMapRect")] - MKMapRect VisibleMapRect { get; set; } + MKMapRect VisibleMapRect { get; set; } [Export ("annotationsInMapRect:")] NSSet GetAnnotations (MKMapRect mapRect); @@ -598,85 +634,88 @@ namespace MapKit { [Mac (11, 0)] [Export ("userTrackingMode")] MKUserTrackingMode UserTrackingMode { get; set; } - + [Mac (11, 0)] [Export ("setUserTrackingMode:animated:")] void SetUserTrackingMode (MKUserTrackingMode trackingMode, bool animated); - [iOS (7,0), Export ("camera", ArgumentSemantic.Copy)] + [iOS (7, 0), Export ("camera", ArgumentSemantic.Copy)] MKMapCamera Camera { get; set; } - [iOS (7,0), Export ("setCamera:animated:")] + [iOS (7, 0), Export ("setCamera:animated:")] void SetCamera (MKMapCamera camera, bool animated); [NoTV] - [iOS (7,0), Export ("rotateEnabled")] + [iOS (7, 0), Export ("rotateEnabled")] bool RotateEnabled { [Bind ("isRotateEnabled")] get; set; } [NoTV] - [iOS (7,0), Export ("pitchEnabled")] + [iOS (7, 0), Export ("pitchEnabled")] bool PitchEnabled { [Bind ("isPitchEnabled")] get; set; } - [iOS (7,0), Export ("showAnnotations:animated:")] + [iOS (7, 0), Export ("showAnnotations:animated:")] void ShowAnnotations (IMKAnnotation [] annotations, bool animated); - [iOS (7,0), Export ("addOverlay:level:")] + [iOS (7, 0), Export ("addOverlay:level:")] [PostGet ("Overlays")] void AddOverlay (IMKOverlay overlay, MKOverlayLevel level); - [iOS (7,0), Export ("addOverlays:level:")] + [iOS (7, 0), Export ("addOverlays:level:")] [PostGet ("Overlays")] void AddOverlays (IMKOverlay [] overlays, MKOverlayLevel level); - [iOS (7,0), Export ("exchangeOverlay:withOverlay:")] + [iOS (7, 0), Export ("exchangeOverlay:withOverlay:")] [PostGet ("Overlays")] void ExchangeOverlay (IMKOverlay overlay1, IMKOverlay overlay2); - [iOS (7,0), Export ("insertOverlay:atIndex:level:")] + [iOS (7, 0), Export ("insertOverlay:atIndex:level:")] [PostGet ("Overlays")] void InsertOverlay (IMKOverlay overlay, nuint index, MKOverlayLevel level); - [iOS (7,0), Export ("overlaysInLevel:")] + [iOS (7, 0), Export ("overlaysInLevel:")] IMKOverlay [] OverlaysInLevel (MKOverlayLevel level); - [iOS (7,0), Export ("rendererForOverlay:")] + [iOS (7, 0), Export ("rendererForOverlay:")] [return: NullAllowed] MKOverlayRenderer RendererForOverlay (IMKOverlay overlay); [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'PointOfInterestFilter' instead.")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'PointOfInterestFilter' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'PointOfInterestFilter' instead.")] - [iOS (7,0)] + [iOS (7, 0)] [Export ("showsPointsOfInterest")] bool ShowsPointsOfInterest { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("showsBuildings")] bool ShowsBuildings { get; set; } // MKMapView.h headers says "To be used in testing only" which means it's likely won't be accepted in the appstore -// [iOS (9,0), Mac(10,11)] -// [Export ("_handleSelectionAtPoint:")] -// void _HandleSelectionAtPoint (CGPoint locationInView); + // [iOS (9,0), Mac(10,11)] + // [Export ("_handleSelectionAtPoint:")] + // void _HandleSelectionAtPoint (CGPoint locationInView); [NoTV] - [iOS(9,0)] + [iOS (9, 0)] [Export ("showsCompass")] bool ShowsCompass { get; set; } [Export ("showsScale")] - [Mac (10,10), iOS(9,0)] + [Mac (10, 10), iOS (9, 0)] bool ShowsScale { get; set; } [Export ("showsTraffic")] - [Mac (10,11), iOS(9,0)] + [Mac (10, 11), iOS (9, 0)] bool ShowsTraffic { get; set; } - [NoiOS][NoWatch][NoTV][MacCatalyst (13,0)] + [NoiOS] + [NoWatch] + [NoTV] + [MacCatalyst (13, 0)] [Export ("showsZoomControls")] bool ShowsZoomControls { get; set; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("setCameraZoomRange:animated:")] void SetCameraZoomRange ([NullAllowed] MKMapCameraZoomRange cameraZoomRange, bool animated); @@ -689,7 +728,7 @@ namespace MapKit { [NullAllowed, Export ("cameraBoundary", ArgumentSemantic.Copy)] MKMapCameraBoundary CameraBoundary { get; set; } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("setCameraBoundary:animated:")] void SetCameraBoundary ([NullAllowed] MKMapCameraBoundary cameraBoundary, bool animated); @@ -704,7 +743,9 @@ namespace MapKit { } [Static] - [TV (11,0)][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 13)] [NoWatch] interface MKMapViewDefault { [Field ("MKMapViewDefaultAnnotationViewReuseIdentifier")] @@ -718,30 +759,30 @@ namespace MapKit { [BaseType (typeof (NSObject))] [Model] [Protocol] - [Mac (10,9)] + [Mac (10, 9)] interface MKMapViewDelegate { [Export ("mapView:regionWillChangeAnimated:"), EventArgs ("MKMapViewChange")] void RegionWillChange (MKMapView mapView, bool animated); - + [Export ("mapView:regionDidChangeAnimated:"), EventArgs ("MKMapViewChange")] void RegionChanged (MKMapView mapView, bool animated); - + [Export ("mapViewWillStartLoadingMap:")] void WillStartLoadingMap (MKMapView mapView); - + [Export ("mapViewDidFinishLoadingMap:")] void MapLoaded (MKMapView mapView); - + [Export ("mapViewDidFailLoadingMap:withError:"), EventArgs ("NSError", true)] void LoadingMapFailed (MKMapView mapView, NSError error); - + [Export ("mapView:viewForAnnotation:"), DelegateName ("MKMapViewAnnotation"), DefaultValue (null)] [return: NullAllowed] MKAnnotationView GetViewForAnnotation (MKMapView mapView, IMKAnnotation annotation); - + [Export ("mapView:didAddAnnotationViews:"), EventArgs ("MKMapViewAnnotation")] void DidAddAnnotationViews (MKMapView mapView, MKAnnotationView [] views); - + [NoMac] [NoTV] [Export ("mapView:annotationView:calloutAccessoryControlTapped:"), EventArgs ("MKMapViewAccessoryTapped")] @@ -751,12 +792,14 @@ namespace MapKit { [Export ("mapView:annotationView:didChangeDragState:fromOldState:"), EventArgs ("MKMapViewDragState")] void ChangedDragState (MKMapView mapView, MKAnnotationView annotationView, MKAnnotationViewDragState newState, MKAnnotationViewDragState oldState); - [NoMac][NoTV] + [NoMac] + [NoTV] [Export ("mapView:viewForOverlay:"), DelegateName ("MKMapViewOverlay"), DefaultValue (null)] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKOverlayRenderer.RendererForOverlay' instead.")] MKOverlayView GetViewForOverlay (MKMapView mapView, IMKOverlay overlay); - [NoMac][NoTV] + [NoMac] + [NoTV] [Export ("mapView:didAddOverlayViews:"), EventArgs ("MKOverlayViews")] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'DidAddOverlayRenderers' instead.")] void DidAddOverlayViews (MKMapView mapView, MKOverlayView overlayViews); @@ -770,11 +813,11 @@ namespace MapKit { [Export ("mapView:didDeselectAnnotationView:"), EventArgs ("MKAnnotationView")] void DidDeselectAnnotationView (MKMapView mapView, MKAnnotationView view); - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("mapView:didSelectAnnotation:"), EventArgs ("MKAnnotation")] void DidSelectAnnotation (MKMapView mapView, IMKAnnotation annotation); - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("mapView:didDeselectAnnotation:"), EventArgs ("MKAnnotation")] void DidDeselectAnnotation (MKMapView mapView, IMKAnnotation annotation); @@ -791,23 +834,29 @@ namespace MapKit { [Export ("mapView:didChangeUserTrackingMode:animated:"), EventArgs ("MMapViewUserTracking")] void DidChangeUserTrackingMode (MKMapView mapView, MKUserTrackingMode mode, bool animated); - [iOS (7,0), Export ("mapView:rendererForOverlay:"), DelegateName ("MKRendererForOverlayDelegate"), DefaultValue (null)] + [iOS (7, 0), Export ("mapView:rendererForOverlay:"), DelegateName ("MKRendererForOverlayDelegate"), DefaultValue (null)] MKOverlayRenderer OverlayRenderer (MKMapView mapView, IMKOverlay overlay); - [iOS (7,0), Export ("mapView:didAddOverlayRenderers:"), EventArgs ("MKDidAddOverlayRenderers")] + [iOS (7, 0), Export ("mapView:didAddOverlayRenderers:"), EventArgs ("MKDidAddOverlayRenderers")] void DidAddOverlayRenderers (MKMapView mapView, MKOverlayRenderer [] renderers); - [iOS (7,0), Export ("mapViewWillStartRenderingMap:")] + [iOS (7, 0), Export ("mapViewWillStartRenderingMap:")] void WillStartRenderingMap (MKMapView mapView); - [iOS (7,0), Export ("mapViewDidFinishRenderingMap:fullyRendered:"), EventArgs ("MKDidFinishRenderingMap")] + [iOS (7, 0), Export ("mapViewDidFinishRenderingMap:fullyRendered:"), EventArgs ("MKDidFinishRenderingMap")] void DidFinishRenderingMap (MKMapView mapView, bool fullyRendered); - [TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [NoWatch] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("mapView:clusterAnnotationForMemberAnnotations:"), DelegateName ("MKCreateClusterAnnotation"), DefaultValue (null)] - MKClusterAnnotation CreateClusterAnnotation (MKMapView mapView, IMKAnnotation[] memberAnnotations); + MKClusterAnnotation CreateClusterAnnotation (MKMapView mapView, IMKAnnotation [] memberAnnotations); - [TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [NoWatch] + [iOS (11, 0)] + [Mac (10, 13)] [Export ("mapViewDidChangeVisibleRegion:")] void DidChangeVisibleRegion (MKMapView mapView); } @@ -815,13 +864,13 @@ namespace MapKit { [BaseType (typeof (MKAnnotationView))] // crash on Dispose when created from 'init' [DisableDefaultCtor] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [NoWatch] - [Deprecated (PlatformName.MacOSX, 13,0, message: "Use MKMarkerAnnotationView instead.")] - [Deprecated (PlatformName.iOS, 16,0, message: "Use MKMarkerAnnotationView instead.")] - [Deprecated (PlatformName.MacCatalyst, 16,0, message: "Use MKMarkerAnnotationView instead.")] - [Deprecated (PlatformName.TvOS, 16,0, message: "Use MKMarkerAnnotationView instead.")] + [Deprecated (PlatformName.MacOSX, 13, 0, message: "Use MKMarkerAnnotationView instead.")] + [Deprecated (PlatformName.iOS, 16, 0, message: "Use MKMarkerAnnotationView instead.")] + [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use MKMarkerAnnotationView instead.")] + [Deprecated (PlatformName.TvOS, 16, 0, message: "Use MKMarkerAnnotationView instead.")] interface MKPinAnnotationView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -834,31 +883,33 @@ namespace MapKit { [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'PinTintColor' instead.")] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'PinTintColor' instead.")] MKPinAnnotationColor PinColor { get; set; } - + [Export ("animatesDrop")] bool AnimatesDrop { get; set; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Appearance] [Export ("pinTintColor")] [NullAllowed] UIColor PinTintColor { get; set; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static, Export ("redPinColor")] UIColor RedPinColor { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static, Export ("greenPinColor")] UIColor GreenPinColor { get; } - [iOS(9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static, Export ("purplePinColor")] UIColor PurplePinColor { get; } } // This requires the AddressBook framework, which afaict isn't bound on Mac, tvOS and watchOS yet - [NoMac][NoWatch][NoTV] + [NoMac] + [NoWatch] + [NoTV] [StrongDictionary ("global::AddressBook.ABPersonAddressKey")] interface MKPlacemarkAddress { [Export ("City")] @@ -878,34 +929,41 @@ namespace MapKit { [BaseType (typeof (CLPlacemark))] // crash (at least) when calling 'description' when instance is created by 'init' [DisableDefaultCtor] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] interface MKPlacemark : MKAnnotation, NSCopying { [Export ("initWithCoordinate:addressDictionary:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, [NullAllowed] NSDictionary addressDictionary); // This requires the AddressBook framework, which afaict isn't bound on Mac, tvOS and watchOS yet - [NoMac][NoWatch][NoTV] + [NoMac] + [NoWatch] + [NoTV] [Wrap ("this (coordinate, addressDictionary.GetDictionary ())")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, MKPlacemarkAddress addressDictionary); - [Watch (3,0)][TV (10,0)][iOS (10,0)] - [Mac (10,12)] + [Watch (3, 0)] + [TV (10, 0)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("initWithCoordinate:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate); - [Watch (3,0)][iOS (10,0)] - [Mac (10,12)] + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] [NoTV] [Export ("initWithCoordinate:postalAddress:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, CNPostalAddress postalAddress); - + [Export ("countryCode")] [NullAllowed] string CountryCode { get; } } - - [NoMac][NoWatch][NoTV] + + [NoMac] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 5, 0, message: "Use 'CoreLocation.CLGeocoder' instead.")] // crash (at least) at Dispose time when instance is created by 'init' @@ -913,14 +971,15 @@ namespace MapKit { interface MKReverseGeocoder { [Export ("initWithCoordinate:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate); - - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] MKReverseGeocoderDelegate Delegate { get; set; } - + #if !XAMCORE_5_0 [Obsolete ("Use the 'Coordinate' property instead.")] [Wrap ("Coordinate", IsVirtual = true)] @@ -929,22 +988,25 @@ namespace MapKit { [Export ("coordinate")] CLLocationCoordinate2D Coordinate { get; } - + [Export ("start")] void Start (); - + [Export ("querying")] bool Querying { [Bind ("isQuerying")] get; } - + [Export ("cancel")] void Cancel (); - + [Export ("placemark")] MKPlacemark Placemark { get; } } #pragma warning disable 618 - [NoMac][NoWatch][NoTV][MacCatalyst (13, 1)] + [NoMac] + [NoWatch] + [NoTV] + [MacCatalyst (13, 1)] [Deprecated (PlatformName.iOS, 5, 0)] [Deprecated (PlatformName.MacCatalyst, 13, 1)] [BaseType (typeof (NSObject))] @@ -961,7 +1023,9 @@ namespace MapKit { } #pragma warning restore 618 - [NoMac][NoWatch][NoTV] + [NoMac] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKOverlayRenderer' instead.")] [BaseType (typeof (UIView))] interface MKOverlayView { @@ -1005,7 +1069,9 @@ namespace MapKit { void SetNeedsDisplay (MKMapRect mapRect, /* MKZoomScale */ nfloat zoomScale); } - [NoMac][NoWatch][NoTV] + [NoMac] + [NoWatch] + [NoTV] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKOverlayPathRenderer' instead.")] [BaseType (typeof (MKOverlayView))] interface MKOverlayPathView { @@ -1017,34 +1083,34 @@ namespace MapKit { [NullAllowed] // by default this property is null [Export ("fillColor", ArgumentSemantic.Retain)] - UIColor FillColor { get; set; } + UIColor FillColor { get; set; } [NullAllowed] // by default this property is null [Export ("strokeColor", ArgumentSemantic.Retain)] - UIColor StrokeColor { get; set; } + UIColor StrokeColor { get; set; } [Export ("lineWidth")] - nfloat LineWidth { get; set; } + nfloat LineWidth { get; set; } [Export ("lineJoin")] - CGLineJoin LineJoin { get; set; } + CGLineJoin LineJoin { get; set; } [Export ("lineCap")] - CGLineCap Linecap { get; set; } + CGLineCap Linecap { get; set; } [Export ("miterLimit")] - nfloat MiterLimit { get; set; } + nfloat MiterLimit { get; set; } [Export ("lineDashPhase")] - nfloat LineDashPhase { get; set; } + nfloat LineDashPhase { get; set; } [NullAllowed] // by default this property is null [Export ("lineDashPattern", ArgumentSemantic.Copy)] - NSNumber [] LineDashPattern { get; set; } + NSNumber [] LineDashPattern { get; set; } [NullAllowed] [Export ("path")] - CGPath Path { get; set; } + CGPath Path { get; set; } [Export ("createPath")] void CreatePath (); @@ -1066,31 +1132,31 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [Abstract] interface MKShape : MKAnnotation { [NullAllowed] // by default this property is null [Export ("title", ArgumentSemantic.Copy)] new string Title { get; set; } - + [NullAllowed] // by default this property is null [Export ("subtitle", ArgumentSemantic.Copy)] - new string Subtitle { get; set; } + new string Subtitle { get; set; } } [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [DesignatedDefaultCtor] [BaseType (typeof (MKShape))] interface MKPointAnnotation : MKGeoJsonObject { - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("initWithCoordinate:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("initWithCoordinate:title:subtitle:")] NativeHandle Constructor (CLLocationCoordinate2D coordinate, [NullAllowed] string title, [NullAllowed] string subtitle); @@ -1098,7 +1164,9 @@ namespace MapKit { CLLocationCoordinate2D Coordinate { get; set; } } - [NoMac][NoTV][NoWatch] + [NoMac] + [NoTV] + [NoWatch] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKPolygonRenderer' instead.")] [BaseType (typeof (MKOverlayPathView))] interface MKPolygonView { @@ -1108,20 +1176,20 @@ namespace MapKit { [Export ("initWithPolygon:")] [PostGet ("Polygon")] NativeHandle Constructor (MKPolygon polygon); - + [Export ("polygon")] - MKPolygon Polygon { get; } + MKPolygon Polygon { get; } } [NoWatch] [ThreadSafe] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (MKMultiPoint))] interface MKPolygon : MKOverlay, MKGeoJsonObject { [Export ("interiorPolygons")] [NullAllowed] - MKPolygon [] InteriorPolygons { get; } + MKPolygon [] InteriorPolygons { get; } [Static] [Internal] @@ -1151,15 +1219,15 @@ namespace MapKit { [NoWatch] [ThreadSafe] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (MKMultiPoint))] interface MKPolyline : MKOverlay, MKGeoJsonObject { [Static] [Export ("polylineWithCoordinates:count:")] [Internal] MKPolyline _FromCoordinates (IntPtr coords, nint count); - + [Static] [Internal] [Export ("polylineWithPoints:count:")] @@ -1172,7 +1240,9 @@ namespace MapKit { #endregion } - [NoMac][NoTV][NoWatch] + [NoMac] + [NoTV] + [NoWatch] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'MKPolylineRenderer' instead.")] [BaseType (typeof (MKOverlayPathView))] interface MKPolylineView { @@ -1182,18 +1252,18 @@ namespace MapKit { [Export ("initWithPolyline:")] [PostGet ("Polyline")] NativeHandle Constructor (MKPolyline polyline); - + [Export ("polyline")] - MKPolyline Polyline { get; } + MKPolyline Polyline { get; } } [NoWatch] [BaseType (typeof (MKShape))] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] interface MKMultiPoint : MKGeoJsonObject { [Export ("points"), Internal] - IntPtr _Points { get; } + IntPtr _Points { get; } [Export ("pointCount")] nint PointCount { get; } @@ -1201,29 +1271,29 @@ namespace MapKit { [Export ("getCoordinates:range:"), Internal] void GetCoords (IntPtr dest, NSRange range); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("locationAtPointIndex:")] nfloat GetLocation (nuint pointIndex); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [return: BindAs (typeof (nfloat []))] [Export ("locationsAtPointIndexes:")] - NSNumber[] GetLocations (NSIndexSet indexes); + NSNumber [] GetLocations (NSIndexSet indexes); } [NoWatch] [BaseType (typeof (NSObject))] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] interface MKUserLocation : IMKAnnotation { // This is wrong. It should be MKAnnotation but we can't due to API compat. When you fix this remove hack in generator.cs to enable warning again [Export ("updating")] bool Updating { [Bind ("isUpdating")] get; } - + [Export ("coordinate")] CLLocationCoordinate2D Coordinate { get; set; } - + [Export ("location", ArgumentSemantic.Retain)] [NullAllowed] CLLocation Location { get; } @@ -1231,11 +1301,11 @@ namespace MapKit { [Export ("title", ArgumentSemantic.Copy)] [NullAllowed] string Title { get; set; } - + [NullAllowed] // by default this property is null [Export ("subtitle", ArgumentSemantic.Copy)] string Subtitle { get; set; } - + [NoTV] [Export ("heading", ArgumentSemantic.Retain)] [NullAllowed] @@ -1250,7 +1320,7 @@ namespace MapKit { interface MKUserTrackingBarButtonItem { [NullAllowed] // by default this property is null [Export ("mapView", ArgumentSemantic.Retain)] - MKMapView MapView { get; set; } + MKMapView MapView { get; set; } [DesignatedInitializer] [Export ("initWithMapView:")] @@ -1261,8 +1331,8 @@ namespace MapKit { delegate void MKLocalSearchCompletionHandler (MKLocalSearchResponse response, NSError error); [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [ThreadSafe] [DisableDefaultCtor] // crash on iOS8 beta @@ -1272,8 +1342,8 @@ namespace MapKit { [Export ("initWithRequest:")] NativeHandle Constructor (MKLocalSearchRequest request); - [TV (14,0), NoWatch, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithPointsOfInterestRequest:")] [DesignatedInitializer] NativeHandle Constructor (MKLocalPointsOfInterestRequest request); @@ -1290,23 +1360,25 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [ThreadSafe] [DesignatedDefaultCtor] interface MKLocalSearchRequest : NSCopying { [DesignatedInitializer] - [NoWatch][iOS (9,3)][Mac (10,11,4)] + [NoWatch] + [iOS (9, 3)] + [Mac (10, 11, 4)] [Export ("initWithCompletion:")] NativeHandle Constructor (MKLocalSearchCompletion completion); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("initWithNaturalLanguageQuery:")] NativeHandle Constructor (string naturalLanguageQuery); - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("initWithNaturalLanguageQuery:region:")] NativeHandle Constructor (string naturalLanguageQuery, MKCoordinateRegion region); @@ -1327,8 +1399,8 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [Mac (10,9)] + [TV (9, 2)] + [Mac (10, 9)] [BaseType (typeof (NSObject))] [ThreadSafe] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** setObjectForKey: object cannot be nil (key: mapItems) @@ -1339,13 +1411,13 @@ namespace MapKit { MKCoordinateRegion Region { get; } [Export ("mapItems")] - MKMapItem[] MapItems { get; } + MKMapItem [] MapItems { get; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKOverlayPathRenderer))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKOverlayPathRenderer))] + [Mac (10, 9)] partial interface MKCircleRenderer { [Export ("initWithCircle:")] @@ -1355,20 +1427,20 @@ namespace MapKit { MKCircle Circle { get; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeStart")] nfloat StrokeStart { get; set; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeEnd")] nfloat StrokeEnd { get; set; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] [DisableDefaultCtor] // NSInvalidArgumentException Reason: Cannot initialize MKDirections with nil request partial interface MKDirections { @@ -1396,9 +1468,9 @@ namespace MapKit { delegate void MKETAHandler (MKETAResponse response, NSError error); [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKETAResponse { [Export ("source")] MKMapItem Source { get; } @@ -1409,27 +1481,28 @@ namespace MapKit { [Export ("expectedTravelTime")] double ExpectedTravelTime { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("distance")] double /* CLLocationDistance */ Distance { get; } [Export ("transportType")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] MKDirectionsTransportType TransportType { get; } [Export ("expectedArrivalDate")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] NSDate ExpectedArrivalDate { get; } [Export ("expectedDepartureDate")] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] NSDate ExpectedDepartureDate { get; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKDirectionsResponse { [Export ("source")] @@ -1443,9 +1516,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKRoute { [Export ("name")] @@ -1469,19 +1542,19 @@ namespace MapKit { [Export ("steps")] MKRouteStep [] Steps { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("hasTolls")] bool HasTolls { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("hasHighways")] bool HasHighways { get; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKRouteStep { [Export ("instructions")] @@ -1501,9 +1574,9 @@ namespace MapKit { MKDirectionsTransportType TransportType { get; } } - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSFormatter))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSFormatter))] + [Mac (10, 9)] partial interface MKDistanceFormatter { [Export ("stringFromDistance:")] @@ -1524,9 +1597,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKPolyline))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKPolyline))] + [Mac (10, 9)] partial interface MKGeodesicPolyline { [Static, Export ("polylineWithPoints:count:")] @@ -1539,9 +1612,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKMapCamera : NSCopying, NSSecureCoding { [Export ("centerCoordinate")] @@ -1566,24 +1639,25 @@ namespace MapKit { MKMapCamera CameraLookingAtCenterCoordinate (CLLocationCoordinate2D centerCoordinate, CLLocationCoordinate2D eyeCoordinate, double eyeAltitude); [Static] - [iOS(9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:")] MKMapCamera CameraLookingAtCenterCoordinate (CLLocationCoordinate2D centerCoordinate, double locationDistance, nfloat pitch, double locationDirectionHeading); - + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Export ("centerCoordinateDistance")] double CenterCoordinateDistance { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Static] [Export ("cameraLookingAtMapItem:forViewSize:allowPitch:")] MKMapCamera CameraLookingAt (MKMapItem mapItem, CGSize viewSize, bool allowPitch); } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKMapSnapshot { [Export ("image")] @@ -1592,8 +1666,10 @@ namespace MapKit { [Export ("pointForCoordinate:")] CGPoint PointForCoordinate (CLLocationCoordinate2D coordinate); - [NoWatch][NoTV][NoiOS] - [Mac (10,14)] + [NoWatch] + [NoTV] + [NoiOS] + [Mac (10, 14)] [Export ("appearance")] NSAppearance Appearance { get; } @@ -1603,9 +1679,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKMapSnapshotOptions : NSCopying { [Export ("camera", ArgumentSemantic.Copy)] @@ -1638,8 +1714,11 @@ namespace MapKit { [Export ("showsBuildings")] bool ShowsBuildings { get; set; } - [NoWatch][NoTV][NoiOS][NoMacCatalyst] - [Mac (10,14)] + [NoWatch] + [NoTV] + [NoiOS] + [NoMacCatalyst] + [Mac (10, 14)] [NullAllowed, Export ("appearance", ArgumentSemantic.Strong)] NSAppearance Appearance { get; set; } @@ -1653,9 +1732,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKMapSnapshotter { [DesignatedInitializer] @@ -1680,9 +1759,9 @@ namespace MapKit { delegate void MKMapSnapshotCompletionHandler (MKMapSnapshot snapshot, NSError error); [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKOverlayRenderer))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKOverlayRenderer))] + [Mac (10, 9)] [ThreadSafe] partial interface MKOverlayPathRenderer { @@ -1744,9 +1823,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (NSObject))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (NSObject))] + [Mac (10, 9)] partial interface MKOverlayRenderer { [DesignatedInitializer] @@ -1794,15 +1873,15 @@ namespace MapKit { [Export ("contentScaleFactor")] nfloat ContentScaleFactor { get; } - [NoMac, iOS (16,0), NoMacCatalyst, NoWatch, TV (16,0)] + [NoMac, iOS (16, 0), NoMacCatalyst, NoWatch, TV (16, 0)] [Export ("blendMode", ArgumentSemantic.Assign)] CGBlendMode BlendMode { get; set; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKOverlayPathRenderer))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKOverlayPathRenderer))] + [Mac (10, 9)] partial interface MKPolygonRenderer { [Export ("initWithPolygon:")] @@ -1812,20 +1891,20 @@ namespace MapKit { MKPolygon Polygon { get; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeStart")] nfloat StrokeStart { get; set; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeEnd")] nfloat StrokeEnd { get; set; } } [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKOverlayPathRenderer))] - [Mac (10,9)] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKOverlayPathRenderer))] + [Mac (10, 9)] partial interface MKPolylineRenderer { [Export ("initWithPolyline:")] @@ -1835,38 +1914,37 @@ namespace MapKit { MKPolyline Polyline { get; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeStart")] nfloat StrokeStart { get; set; } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("strokeEnd")] nfloat StrokeEnd { get; set; } } [NoWatch] [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MKPolylineRenderer))] - partial interface MKGradientPolylineRenderer - { + partial interface MKGradientPolylineRenderer { [Export ("locations", ArgumentSemantic.Copy)] - [BindAs (typeof (nfloat[]))] - NSNumber[] Locations { get; } + [BindAs (typeof (nfloat []))] + NSNumber [] Locations { get; } [Export ("colors", ArgumentSemantic.Copy)] - UIColor[] Colors { get; } + UIColor [] Colors { get; } [Export ("setColors:atLocations:")] - void SetColors (UIColor[] colors, [BindAs (typeof (nfloat[]))]NSNumber[] locations); + void SetColors (UIColor [] colors, [BindAs (typeof (nfloat []))] NSNumber [] locations); } [NoWatch] [ThreadSafe] - [TV (9,2)] - [Mac (10,9)] - [iOS (7,0), BaseType (typeof (NSObject))] + [TV (9, 2)] + [Mac (10, 9)] + [iOS (7, 0), BaseType (typeof (NSObject))] partial interface MKTileOverlay : MKOverlay { [DesignatedInitializer] [Export ("initWithURLTemplate:")] @@ -1906,15 +1984,15 @@ namespace MapKit { delegate void MKTileOverlayLoadTileCompletionHandler (NSData tileData, NSError error); [NoWatch] - [TV (9,2)] - [iOS (7,0), BaseType (typeof (MKOverlayRenderer))] + [TV (9, 2)] + [iOS (7, 0), BaseType (typeof (MKOverlayRenderer))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Expected a MKTileOverlay but got (null) [DisableDefaultCtor] // throw in iOS8 beta 1 ^ - [Mac (10,9)] + [Mac (10, 9)] partial interface MKTileOverlayRenderer { // This ctor is not allowed: NSInvalidArgumentEception Expected a MKTileOverlay -// [Export ("initWithOverlay:")] -// NativeHandle Constructor (IMKOverlay toverlay); + // [Export ("initWithOverlay:")] + // NativeHandle Constructor (IMKOverlay toverlay); [Export ("initWithTileOverlay:")] NativeHandle Constructor (MKTileOverlay overlay); @@ -1924,7 +2002,10 @@ namespace MapKit { } [NoWatch] - [TV (9,2)][NoWatch][iOS (9,3)][Mac(10,11,4)] + [TV (9, 2)] + [NoWatch] + [iOS (9, 3)] + [Mac (10, 11, 4)] [BaseType (typeof (NSObject))] interface MKLocalSearchCompleter { [Export ("queryFragment")] @@ -1948,7 +2029,7 @@ namespace MapKit { NSObject WeakDelegate { get; set; } [Export ("results", ArgumentSemantic.Strong)] - MKLocalSearchCompletion[] Results { get; } + MKLocalSearchCompletion [] Results { get; } [Export ("searching")] bool Searching { [Bind ("isSearching")] get; } @@ -1966,7 +2047,9 @@ namespace MapKit { } [NoWatch] - [TV (9,2)][NoWatch][iOS (9,3)] + [TV (9, 2)] + [NoWatch] + [iOS (9, 3)] [Protocol] [Model] [BaseType (typeof (NSObject))] @@ -1979,8 +2062,10 @@ namespace MapKit { } [NoWatch] - [TV (9,2)][NoWatch][iOS (9,3)] - [BaseType (typeof(NSObject))] + [TV (9, 2)] + [NoWatch] + [iOS (9, 3)] + [BaseType (typeof (NSObject))] #if MONOMAC || XAMCORE_3_0 // "You do not create instances of this class directly" [DisableDefaultCtor] #endif @@ -1990,29 +2075,38 @@ namespace MapKit { // NSValue-wrapped NSRanges [Export ("titleHighlightRanges", ArgumentSemantic.Strong)] - NSValue[] TitleHighlightRanges { get; } + NSValue [] TitleHighlightRanges { get; } [Export ("subtitle", ArgumentSemantic.Strong)] string Subtitle { get; } // NSValue-wrapped NSRanges [Export ("subtitleHighlightRanges", ArgumentSemantic.Strong)] - NSValue[] SubtitleHighlightRanges { get; } + NSValue [] SubtitleHighlightRanges { get; } } [Category] [BaseType (typeof (NSUserActivity))] interface NSUserActivity_MKMapItem { - [Watch (3,0)][TV (10,0)][iOS (10,0)][Mac (10,12)] + [Watch (3, 0)] + [TV (10, 0)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("mapItem")] MKMapItem GetMapItem (); - [Watch (3,0)][TV (10,0)][iOS (10,0)][Mac (10,12)] + [Watch (3, 0)] + [TV (10, 0)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("setMapItem:")] void SetMapItem (MKMapItem item); } -[TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)] + [TV (11, 0)] + [NoWatch] + [iOS (11, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MKClusterAnnotation : MKAnnotation { @@ -2023,14 +2117,17 @@ namespace MapKit { new string Subtitle { get; set; } [Export ("memberAnnotations")] - IMKAnnotation[] MemberAnnotations { get; } + IMKAnnotation [] MemberAnnotations { get; } [Export ("initWithMemberAnnotations:")] [DesignatedInitializer] - NativeHandle Constructor (IMKAnnotation[] memberAnnotations); + NativeHandle Constructor (IMKAnnotation [] memberAnnotations); } - [NoTV][iOS (11,0)][Mac (11, 0)][NoWatch] + [NoTV] + [iOS (11, 0)] + [Mac (11, 0)] + [NoWatch] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface MKCompassButton { @@ -2045,7 +2142,10 @@ namespace MapKit { MKFeatureVisibility CompassVisibility { get; set; } } - [TV (11,0)][NoWatch][iOS (11,0)][Mac (11, 0)] + [TV (11, 0)] + [NoWatch] + [iOS (11, 0)] + [Mac (11, 0)] [BaseType (typeof (MKAnnotationView))] interface MKMarkerAnnotationView { @@ -2084,7 +2184,10 @@ namespace MapKit { bool AnimatesWhenAdded { get; set; } } - [TV (11,0)][NoWatch][iOS (11,0)][NoMac] + [TV (11, 0)] + [NoWatch] + [iOS (11, 0)] + [NoMac] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface MKScaleView { @@ -2103,7 +2206,10 @@ namespace MapKit { MKScaleViewAlignment LegendAlignment { get; set; } } - [NoTV][iOS (11,0)][NoWatch][NoMac] + [NoTV] + [iOS (11, 0)] + [NoWatch] + [NoMac] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface MKUserTrackingButton { @@ -2117,12 +2223,11 @@ namespace MapKit { #if WATCH interface MKPointOfInterestCategory {} -#endif +#endif - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] - interface MKPointOfInterestFilter : NSSecureCoding, NSCopying - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] + interface MKPointOfInterestFilter : NSSecureCoding, NSCopying { [Static] [Export ("filterIncludingAllCategories")] MKPointOfInterestFilter FilterIncludingAllCategories { get; } @@ -2133,11 +2238,11 @@ namespace MapKit { [Internal] [Export ("initIncludingCategories:")] - IntPtr InitIncludingCategories ([BindAs (typeof (MKPointOfInterestCategory[]))] NSString [] categories); + IntPtr InitIncludingCategories ([BindAs (typeof (MKPointOfInterestCategory []))] NSString [] categories); [Internal] [Export ("initExcludingCategories:")] - IntPtr InitExcludingCategories ([BindAs (typeof (MKPointOfInterestCategory[]))] NSString [] categories); + IntPtr InitExcludingCategories ([BindAs (typeof (MKPointOfInterestCategory []))] NSString [] categories); [Export ("includesCategory:")] bool IncludesCategory ([BindAs (typeof (MKPointOfInterestCategory))] NSString category); @@ -2148,23 +2253,21 @@ namespace MapKit { [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] [Protocol (Name = "MKGeoJSONObject")] - interface MKGeoJsonObject {} + interface MKGeoJsonObject { } - interface IMKGeoJsonObject {} + interface IMKGeoJsonObject { } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject), Name = "MKGeoJSONDecoder")] - interface MKGeoJsonDecoder - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject), Name = "MKGeoJSONDecoder")] + interface MKGeoJsonDecoder { [Export ("geoJSONObjectsWithData:error:")] [return: NullAllowed] - IMKGeoJsonObject[] GeoJsonObjects (NSData data, [NullAllowed] out NSError error); + IMKGeoJsonObject [] GeoJsonObjects (NSData data, [NullAllowed] out NSError error); } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject), Name = "MKGeoJSONFeature")] - interface MKGeoJsonFeature : MKGeoJsonObject - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject), Name = "MKGeoJSONFeature")] + interface MKGeoJsonFeature : MKGeoJsonObject { [NullAllowed, Export ("identifier")] string Identifier { get; } @@ -2172,13 +2275,12 @@ namespace MapKit { NSData Properties { get; } [Export ("geometry")] - IMKGeoJsonObject[] Geometry { get; } + IMKGeoJsonObject [] Geometry { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] - interface MKMapCameraZoomRange : NSSecureCoding, NSCopying - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] + interface MKMapCameraZoomRange : NSSecureCoding, NSCopying { [Export ("initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:")] [DesignatedInitializer] NativeHandle Constructor (double minDistance, double maxDistance); @@ -2201,10 +2303,9 @@ namespace MapKit { double ZoomDefault { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] - interface MKMapCameraBoundary : NSSecureCoding, NSCopying - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] + interface MKMapCameraBoundary : NSSecureCoding, NSCopying { [Export ("initWithMapRect:")] [DesignatedInitializer] NativeHandle Constructor (MKMapRect mapRect); @@ -2220,22 +2321,20 @@ namespace MapKit { MKCoordinateRegion Region { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(MKShape))] - interface MKMultiPolygon : MKOverlay, MKGeoJsonObject - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MKShape))] + interface MKMultiPolygon : MKOverlay, MKGeoJsonObject { [Export ("initWithPolygons:")] [DesignatedInitializer] - NativeHandle Constructor (MKPolygon[] polygons); + NativeHandle Constructor (MKPolygon [] polygons); [Export ("polygons", ArgumentSemantic.Copy)] - MKPolygon[] Polygons { get; } + MKPolygon [] Polygons { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(MKOverlayPathRenderer))] - interface MKMultiPolygonRenderer - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MKOverlayPathRenderer))] + interface MKMultiPolygonRenderer { [Export ("initWithMultiPolygon:")] NativeHandle Constructor (MKMultiPolygon multiPolygon); @@ -2243,22 +2342,20 @@ namespace MapKit { MKMultiPolygon MultiPolygon { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(MKShape))] - interface MKMultiPolyline : MKOverlay, MKGeoJsonObject - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MKShape))] + interface MKMultiPolyline : MKOverlay, MKGeoJsonObject { [Export ("initWithPolylines:")] [DesignatedInitializer] - NativeHandle Constructor (MKPolyline[] polylines); + NativeHandle Constructor (MKPolyline [] polylines); [Export ("polylines", ArgumentSemantic.Copy)] - MKPolyline[] Polylines { get; } + MKPolyline [] Polylines { get; } } - [TV (13,0), NoWatch, Mac (10,15), iOS (13,0)] - [BaseType (typeof(MKOverlayPathRenderer))] - interface MKMultiPolylineRenderer - { + [TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MKOverlayPathRenderer))] + interface MKMultiPolylineRenderer { [Export ("initWithMultiPolyline:")] NativeHandle Constructor (MKMultiPolyline multiPolyline); @@ -2268,21 +2365,20 @@ namespace MapKit { [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] [BaseType (typeof (MKAnnotationView))] - interface MKUserLocationView { + interface MKUserLocationView { [DesignatedInitializer] [Export ("initWithAnnotation:reuseIdentifier:")] NativeHandle Constructor ([NullAllowed] IMKAnnotation annotation, [NullAllowed] string reuseIdentifier); - + [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); } [TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] + [MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKLocalPointsOfInterestRequest : NSCopying - { + interface MKLocalPointsOfInterestRequest : NSCopying { [Field ("MKPointsOfInterestRequestMaxRadius")] double RequestMaxRadius { get; } @@ -2311,8 +2407,7 @@ namespace MapKit { [NoWatch, NoTV, NoiOS, Mac (11, 0)] [DisableDefaultCtor] [BaseType (typeof (UIView))] - interface MKPitchControl - { + interface MKPitchControl { [DesignatedInitializer] [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frameRect); @@ -2329,8 +2424,7 @@ namespace MapKit { [NoWatch, NoTV, NoiOS, Mac (11, 0)] [DisableDefaultCtor] [BaseType (typeof (UIView))] - interface MKZoomControl - { + interface MKZoomControl { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -2344,11 +2438,10 @@ namespace MapKit { MKMapView MapView { get; set; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [BaseType (typeof (MKMapConfiguration))] [DesignatedDefaultCtor] - interface MKHybridMapConfiguration - { + interface MKHybridMapConfiguration { [Export ("initWithElevationStyle:")] NativeHandle Constructor (MKMapElevationStyle elevationStyle); @@ -2359,11 +2452,10 @@ namespace MapKit { bool ShowsTraffic { get; set; } } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKIconStyle - { + interface MKIconStyle { [Export ("backgroundColor")] UIColor BackgroundColor { get; } @@ -2371,25 +2463,23 @@ namespace MapKit { UIImage Image { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [BaseType (typeof (MKMapConfiguration))] [DesignatedDefaultCtor] - interface MKImageryMapConfiguration - { + interface MKImageryMapConfiguration { [Export ("initWithElevationStyle:")] NativeHandle Constructor (MKMapElevationStyle elevationStyle); } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MKLookAroundScene : NSCopying { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKLookAroundSceneRequest - { + interface MKLookAroundSceneRequest { [Export ("initWithCoordinate:")] [DesignatedInitializer] NativeHandle Constructor (CLLocationCoordinate2D coordinate); @@ -2418,35 +2508,32 @@ namespace MapKit { void Cancel (); } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKLookAroundSnapshot - { + interface MKLookAroundSnapshot { [Export ("image")] UIImage Image { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] - interface MKLookAroundSnapshotOptions - { + interface MKLookAroundSnapshotOptions { [NullAllowed, Export ("pointOfInterestFilter", ArgumentSemantic.Copy)] MKPointOfInterestFilter PointOfInterestFilter { get; set; } [Export ("size", ArgumentSemantic.Assign)] CGSize Size { get; set; } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("traitCollection", ArgumentSemantic.Copy)] UITraitCollection TraitCollection { get; set; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKLookAroundSnapshotter - { + interface MKLookAroundSnapshotter { [Export ("initWithScene:options:")] [DesignatedInitializer] NativeHandle Constructor (MKLookAroundScene scene, MKLookAroundSnapshotOptions options); @@ -2464,15 +2551,14 @@ namespace MapKit { interface IMKLookAroundViewControllerDelegate { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface MKLookAroundViewControllerDelegate - { + interface MKLookAroundViewControllerDelegate { [Export ("lookAroundViewControllerWillUpdateScene:")] void WillUpdateScene (MKLookAroundViewController viewController); @@ -2492,10 +2578,9 @@ namespace MapKit { void DidDismissFullScreen (MKLookAroundViewController viewController); } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (UIViewController))] - interface MKLookAroundViewController : NSSecureCoding, NSCoding - { + interface MKLookAroundViewController : NSSecureCoding, NSCoding { [Export ("initWithScene:")] [DesignatedInitializer] NativeHandle Constructor (MKLookAroundScene scene); @@ -2527,20 +2612,18 @@ namespace MapKit { MKLookAroundBadgePosition BadgePosition { get; set; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKMapConfiguration : NSSecureCoding, NSCopying - { + interface MKMapConfiguration : NSSecureCoding, NSCopying { [Export ("elevationStyle", ArgumentSemantic.Assign)] MKMapElevationStyle ElevationStyle { get; set; } } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKMapFeatureAnnotation : MKAnnotation - { + interface MKMapFeatureAnnotation : MKAnnotation { [Export ("featureType")] MKMapFeatureType FeatureType { get; } @@ -2552,11 +2635,10 @@ namespace MapKit { NSString PointOfInterestCategory { get; } } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MKMapItemRequest - { + interface MKMapItemRequest { [Export ("initWithMapFeatureAnnotation:")] [DesignatedInitializer] NativeHandle Constructor (MKMapFeatureAnnotation mapFeatureAnnotation); @@ -2578,11 +2660,10 @@ namespace MapKit { bool IsLoading { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [BaseType (typeof (MKMapConfiguration))] [DesignatedDefaultCtor] - interface MKStandardMapConfiguration - { + interface MKStandardMapConfiguration { [Export ("initWithElevationStyle:")] NativeHandle Constructor (MKMapElevationStyle elevationStyle); diff --git a/src/mediaaccessibility.cs b/src/mediaaccessibility.cs index 4a90357db2..26e7a5ab7e 100644 --- a/src/mediaaccessibility.cs +++ b/src/mediaaccessibility.cs @@ -17,7 +17,8 @@ namespace MediaAccessibility { [Static] interface MAAudibleMedia { - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Notification] [Field ("kMAAudibleMediaSettingsChangedNotification")] NSString SettingsChangedNotification { get; } @@ -25,15 +26,18 @@ namespace MediaAccessibility { [Static] interface MAMediaCharacteristic { - [iOS (7,0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("MAMediaCharacteristicDescribesMusicAndSoundForAccessibility")] NSString DescribesMusicAndSoundForAccessibility { get; } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("MAMediaCharacteristicDescribesVideoForAccessibility")] NSString DescribesVideoForAccessibility { get; } - [iOS (7,0)][Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("MAMediaCharacteristicTranscribesSpokenDialogForAccessibility")] NSString TranscribesSpokenDialogForAccessibility { get; } } diff --git a/src/medialibrary.cs b/src/medialibrary.cs index 83764b7aab..ade7b29514 100644 --- a/src/medialibrary.cs +++ b/src/medialibrary.cs @@ -31,8 +31,8 @@ using NativeHandle = System.IntPtr; namespace MediaLibrary { [Static] - [Mac (10,9)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 9)] + [Deprecated (PlatformName.MacOSX, 10, 15)] interface MediaLibraryTypeIdentifierKey { [Field ("MLFolderRootGroupTypeIdentifier")] NSString FolderRootGroupTypeIdentifier { get; } @@ -52,7 +52,7 @@ namespace MediaLibrary { [Field ("MLiTunesPodcastPlaylistTypeIdentifier")] NSString ITunesPodcastPlaylistTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLiTunesVideoPlaylistTypeIdentifier")] NSString ITunesVideoPlaylistTypeIdentifier { get; } @@ -74,7 +74,7 @@ namespace MediaLibrary { [Field ("MLiTunesMusicPlaylistTypeIdentifier")] NSString ITunesMusicPlaylistTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLiTunesMusicVideosPlaylistTypeIdentifier")] NSString ITunesMusicVideosPlaylistTypeIdentifier { get; } @@ -87,129 +87,129 @@ namespace MediaLibrary { [Field ("MLiTunesiTunesUPlaylistTypeIdentifier")] NSString ITunesiTunesUPlaylistTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosRootGroupTypeIdentifier")] NSString PhotosRootGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosSharedGroupTypeIdentifier")] NSString PhotosSharedGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosAlbumsGroupTypeIdentifier")] NSString PhotosAlbumsGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosAlbumTypeIdentifier")] NSString PhotosAlbumTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosFolderTypeIdentifier")] NSString PhotosFolderTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosSmartAlbumTypeIdentifier")] NSString PhotosSmartAlbumTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosPublishedAlbumTypeIdentifier")] NSString PhotosPublishedAlbumTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosAllMomentsGroupTypeIdentifier")] NSString PhotosAllMomentsGroupTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosMomentGroupTypeIdentifier")] NSString PhotosMomentGroupTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosAllCollectionsGroupTypeIdentifier")] NSString PhotosAllCollectionsGroupTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosCollectionGroupTypeIdentifier")] NSString PhotosCollectionGroupTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosAllYearsGroupTypeIdentifier")] NSString PhotosAllYearsGroupTypeIdentifier { get; } - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 10,15)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [Field ("MLPhotosYearGroupTypeIdentifier")] NSString PhotosYearGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosLastImportGroupTypeIdentifier")] NSString PhotosLastImportGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosMyPhotoStreamTypeIdentifier")] NSString PhotosMyPhotoStreamTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosSharedPhotoStreamTypeIdentifier")] NSString PhotosSharedPhotoStreamTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosFavoritesGroupTypeIdentifier")] NSString PhotosFavoritesGroupTypeIdentifier { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("MLPhotosFrontCameraGroupTypeIdentifier")] NSString PhotosFrontCameraGroupTypeIdentifier { get; } - [Mac (10,13)] + [Mac (10, 13)] [Field ("MLPhotosLivePhotosGroupTypeIdentifier")] NSString PhotosLivePhotosGroupTypeIdentifier { get; } - [Mac (10,13)] + [Mac (10, 13)] [Field ("MLPhotosLongExposureGroupTypeIdentifier")] NSString PhotosLongExposureGroupTypeIdentifier { get; } - [Mac (10,13)] + [Mac (10, 13)] [Field ("MLPhotosAnimatedGroupTypeIdentifier")] NSString PhotosAnimatedGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosPanoramasGroupTypeIdentifier")] NSString PhotosPanoramasGroupTypeIdentifier { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLPhotosVideosGroupTypeIdentifier")] NSString PhotosVideosGroupTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosSloMoGroupTypeIdentifier")] NSString PhotosSloMoGroupTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosTimelapseGroupTypeIdentifier")] NSString PhotosTimelapseGroupTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosBurstGroupTypeIdentifier")] NSString PhotosBurstGroupTypeIdentifier { get; } - [Mac (10,11)] + [Mac (10, 11)] [Field ("MLPhotosScreenshotGroupTypeIdentifier")] NSString PhotosScreenshotGroupTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosFacesAlbumTypeIdentifier")] NSString PhotosFacesAlbumTypeIdentifier { get; } - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Field ("MLPhotosAllPhotosAlbumTypeIdentifier")] NSString PhotosAllPhotosAlbumTypeIdentifier { get; } - [Mac (10,12,1)] + [Mac (10, 12, 1)] [Field ("MLPhotosDepthEffectGroupTypeIdentifier")] NSString PhotosDepthEffectGroupTypeIdentifier { get; } @@ -421,12 +421,11 @@ namespace MediaLibrary { NSString FinalCutFolderGroupTypeIdentifier { get; } } - [Mac (10,9)] - [Deprecated (PlatformName.MacOSX, 10,15)] - [BaseType (typeof(NSObject))] + [Mac (10, 9)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MLMediaLibrary - { + interface MLMediaLibrary { [Export ("initWithOptions:")] [DesignatedInitializer] NativeHandle Constructor (NSDictionary options); @@ -456,12 +455,11 @@ namespace MediaLibrary { NSString MediaLoadAppFoldersKey { get; } } - [Mac (10,9)] - [Deprecated (PlatformName.MacOSX, 10,15)] - [BaseType (typeof(NSObject))] + [Mac (10, 9)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MLMediaSource - { + interface MLMediaSource { [NullAllowed, Export ("mediaLibrary", ArgumentSemantic.Assign)] MLMediaLibrary MediaLibrary { get; } @@ -479,16 +477,16 @@ namespace MediaLibrary { MLMediaGroup MediaGroupForIdentifier (NSString mediaGroupIdentifier); [Export ("mediaGroupsForIdentifiers:")] - NSDictionary MediaGroupsForIdentifiers (NSString[] mediaGroupIdentifiers); + NSDictionary MediaGroupsForIdentifiers (NSString [] mediaGroupIdentifiers); [Export ("mediaObjectForIdentifier:")] [return: NullAllowed] MLMediaObject MediaObjectForIdentifier (NSString mediaObjectIdentifier); [Export ("mediaObjectsForIdentifiers:")] - NSDictionary MediaObjectsForIdentifiers (NSString[] mediaObjectIdentifiers); + NSDictionary MediaObjectsForIdentifiers (NSString [] mediaObjectIdentifiers); - [Mac (10,10)] + [Mac (10, 10)] [Field ("MLMediaSourcePhotosIdentifier")] NSString MediaSourcePhotosIdentifier { get; } @@ -526,12 +524,11 @@ namespace MediaLibrary { NSString MediaSourceAppDefinedFoldersIdentifier { get; } } - [Mac (10,9)] - [Deprecated (PlatformName.MacOSX, 10,15)] - [BaseType (typeof(NSObject))] + [Mac (10, 9)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MLMediaGroup - { + interface MLMediaGroup { [NullAllowed, Export ("mediaLibrary", ArgumentSemantic.Assign)] MLMediaLibrary MediaLibrary { get; } @@ -554,7 +551,7 @@ namespace MediaLibrary { NSDictionary Attributes { get; } [NullAllowed, Export ("childGroups", ArgumentSemantic.Copy)] - MLMediaGroup[] ChildGroups { get; } + MLMediaGroup [] ChildGroups { get; } [NullAllowed, Export ("URL", ArgumentSemantic.Copy)] NSUrl Url { get; } @@ -566,15 +563,14 @@ namespace MediaLibrary { NSImage IconImage { get; } [NullAllowed, Export ("mediaObjects", ArgumentSemantic.Copy)] - MLMediaObject[] MediaObjects { get; } + MLMediaObject [] MediaObjects { get; } } - [Mac (10,9)] - [Deprecated (PlatformName.MacOSX, 10,15)] - [BaseType (typeof(NSObject))] + [Mac (10, 9)] + [Deprecated (PlatformName.MacOSX, 10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MLMediaObject - { + interface MLMediaObject { [NullAllowed, Export ("mediaLibrary", ArgumentSemantic.Assign)] MLMediaLibrary MediaLibrary { get; } diff --git a/src/mediaplayer.cs b/src/mediaplayer.cs index 7bc98a00f6..95ade5fff7 100644 --- a/src/mediaplayer.cs +++ b/src/mediaplayer.cs @@ -42,16 +42,16 @@ using NativeHandle = System.IntPtr; #endif namespace MediaPlayer { - [Mac (10,12,2)] // type exists only to expose fields + [Mac (10, 12, 2)] // type exists only to expose fields [BaseType (typeof (NSObject))] #if !MONOMAC #if NET [NoWatch] // marked as unavailable in xcode 12 beta 1 #else - [Watch (5,0)] - [Obsoleted (PlatformName.WatchOS, 7,0, message: "Removed in Xcode 12.")] + [Watch (5, 0)] + [Obsoleted (PlatformName.WatchOS, 7, 0, message: "Removed in Xcode 12.")] #endif // NET - [TV (14,0)] + [TV (14, 0)] interface MPMediaEntity : NSSecureCoding { #else interface MPMediaItem : NSSecureCoding { @@ -67,7 +67,7 @@ namespace MediaPlayer { [Export ("enumerateValuesForProperties:usingBlock:")] void EnumerateValues (NSSet propertiesToEnumerate, MPMediaItemEnumerator enumerator); - [iOS (8,0)] + [iOS (8, 0)] [return: NullAllowed] [Export ("objectForKeyedSubscript:")] NSObject GetObject (NSObject key); @@ -75,7 +75,7 @@ namespace MediaPlayer { #if NET [NoWatch] // marked as unavailable in xcode 12 beta 1 #else - [Obsoleted (PlatformName.WatchOS, 7,0, message: "Removed in Xcode 12.")] + [Obsoleted (PlatformName.WatchOS, 7, 0, message: "Removed in Xcode 12.")] #endif [Field ("MPMediaEntityPropertyPersistentID")] NSString PropertyPersistentID { get; } @@ -98,13 +98,15 @@ namespace MediaPlayer { [NoMac] [NoTV] [NoWatch] - [Export ("persistentIDPropertyForGroupingType:")][Static] + [Export ("persistentIDPropertyForGroupingType:")] + [Static] string GetPersistentIDProperty (MPMediaGrouping groupingType); [NoMac] [NoTV] [NoWatch] - [Export ("titlePropertyForGroupingType:")][Static] + [Export ("titlePropertyForGroupingType:")] + [Static] string GetTitleProperty (MPMediaGrouping groupingType); [Field ("MPMediaItemPropertyPersistentID")] @@ -183,12 +185,12 @@ namespace MediaPlayer { [EditorBrowsable (EditorBrowsableState.Advanced)] NSString DiscCountProperty { get; } - [Mac (10,13,1)] + [Mac (10, 13, 1)] [Field ("MPMediaItemPropertyArtwork")] [EditorBrowsable (EditorBrowsableState.Advanced)] NSString ArtworkProperty { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("MPMediaItemPropertyIsExplicit")] [EditorBrowsable (EditorBrowsableState.Advanced)] NSString IsExplicitProperty { get; } @@ -249,8 +251,8 @@ namespace MediaPlayer { [EditorBrowsable (EditorBrowsableState.Advanced)] NSString IsCloudItemProperty { get; } - [iOS (9,2)] - [TV (9,2)] + [iOS (9, 2)] + [TV (9, 2)] [Field ("MPMediaItemPropertyHasProtectedAsset")] [EditorBrowsable (EditorBrowsableState.Advanced)] NSString HasProtectedAssetProperty { get; } @@ -260,26 +262,26 @@ namespace MediaPlayer { [EditorBrowsable (EditorBrowsableState.Advanced)] NSString DateAddedProperty { get; } - [iOS (10,3)] - [TV (10,3)] + [iOS (10, 3)] + [TV (10, 3)] [Field ("MPMediaItemPropertyPlaybackStoreID")] [EditorBrowsable (EditorBrowsableState.Advanced)] NSString PlaybackStoreIDProperty { get; } - [Watch (7,4), TV (14,5), Mac (11,3), iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), TV (14, 5), Mac (11, 3), iOS (14, 5)] + [MacCatalyst (14, 5)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Field ("MPMediaItemPropertyIsPreorder")] NSString IsPreorderProperty { get; } } - [Mac (10,12,2)] - [Watch (5,0)] + [Mac (10, 12, 2)] + [Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPMediaItemArtwork { - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("initWithBoundsSize:requestHandler:")] [DesignatedInitializer] NativeHandle Constructor (CGSize boundsSize, Func requestHandler); @@ -289,7 +291,7 @@ namespace MediaPlayer { [Deprecated (PlatformName.TvOS, 10, 0)] [Export ("initWithImage:")] NativeHandle Constructor (UIImage image); - + [Export ("imageWithSize:")] [return: NullAllowed] UIImage ImageWithSize (CGSize size); @@ -364,34 +366,36 @@ namespace MediaPlayer { [Notification] NSString DidChangeNotification { get; } - [iOS (9,3)] + [iOS (9, 3)] [Static] [Export ("authorizationStatus")] MPMediaLibraryAuthorizationStatus AuthorizationStatus { get; } - [iOS (9,3)] + [iOS (9, 3)] [Static] [Async] [Export ("requestAuthorization:")] void RequestAuthorization (Action handler); - [iOS (9,3)] + [iOS (9, 3)] [Export ("addItemWithProductID:completionHandler:")] [Async] #if IOS void AddItem (string productID, [NullAllowed] Action completionHandler); #else - void AddItem (string productID, [NullAllowed] Action completionHandler); + void AddItem (string productID, [NullAllowed] Action completionHandler); #endif - [iOS (9,3)] + [iOS (9, 3)] [Async] [Export ("getPlaylistWithUUID:creationMetadata:completionHandler:")] void GetPlaylist (NSUuid uuid, [NullAllowed] MPMediaPlaylistCreationMetadata creationMetadata, Action completionHandler); } - [NoTV][NoMac][NoWatch] - [BaseType (typeof (UIViewController), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(MPMediaPickerControllerDelegate)})] + [NoTV] + [NoMac] + [NoWatch] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (MPMediaPickerControllerDelegate) })] interface MPMediaPickerController { [DesignatedInitializer] [Export ("initWithMediaTypes:")] @@ -417,19 +421,21 @@ namespace MediaPlayer { [Export ("showsCloudItems")] bool ShowsCloudItems { get; set; } - [iOS (9,2)] + [iOS (9, 2)] [Export ("showsItemsWithProtectedAssets")] bool ShowsItemsWithProtectedAssets { get; set; } } - [NoTV][NoMac][NoWatch] + [NoTV] + [NoMac] + [NoWatch] [BaseType (typeof (NSObject))] [Model] [Protocol] interface MPMediaPickerControllerDelegate { [Export ("mediaPicker:didPickMediaItems:"), EventArgs ("ItemsPicked"), EventName ("ItemsPicked")] void MediaItemsPicked (MPMediaPickerController sender, MPMediaItemCollection mediaItemCollection); - + [Export ("mediaPickerDidCancel:"), EventArgs ("MPMediaPickerController"), EventName ("DidCancel")] void MediaPickerDidCancel (MPMediaPickerController sender); } @@ -450,50 +456,50 @@ namespace MediaPlayer { [Export ("valueForProperty:")] NSObject ValueForProperty (string property); - [iOS (7,0)] + [iOS (7, 0)] [Export ("persistentID")] ulong PersistentID { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("name")] [NullAllowed] string Name { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("playlistAttributes")] MPMediaPlaylistAttribute PlaylistAttributes { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("seedItems")] [NullAllowed] - MPMediaItem [] SeedItems { get; } + MPMediaItem [] SeedItems { get; } - [iOS (9,3)] + [iOS (9, 3)] [NullAllowed, Export ("descriptionText")] string DescriptionText { get; } - [iOS (9,3)] + [iOS (9, 3)] [NullAllowed, Export ("authorDisplayName")] string AuthorDisplayName { get; } - [iOS (9,3)] + [iOS (9, 3)] [Async] [Export ("addItemWithProductID:completionHandler:")] void AddItem (string productID, [NullAllowed] Action completionHandler); - [iOS (9,3)] + [iOS (9, 3)] [Async] [Export ("addMediaItems:completionHandler:")] - void AddMediaItems (MPMediaItem[] mediaItems, [NullAllowed] Action completionHandler); + void AddMediaItems (MPMediaItem [] mediaItems, [NullAllowed] Action completionHandler); - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("cloudGlobalID")] string CloudGlobalId { get; } } - [Mac (10,16)] - [Watch (5,0)] + [Mac (10, 16)] + [Watch (5, 0)] [Static] interface MPMediaPlaylistProperty { [Field ("MPMediaPlaylistPropertyPersistentID")] @@ -518,7 +524,9 @@ namespace MediaPlayer { [Field ("MPMediaPlaylistPropertyAuthorDisplayName")] NSString AuthorDisplayName { get; } - [iOS (14,0)][TV (14,0)][Watch (7,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] [Field ("MPMediaPlaylistPropertyCloudGlobalID")] NSString CloudGlobalId { get; } } @@ -553,31 +561,40 @@ namespace MediaPlayer { [Export ("groupingType")] MPMediaGrouping GroupingType { get; set; } - [Export ("albumsQuery")][Static] + [Export ("albumsQuery")] + [Static] MPMediaQuery AlbumsQuery { get; } - [Export ("artistsQuery")][Static] + [Export ("artistsQuery")] + [Static] MPMediaQuery ArtistsQuery { get; } - [Export ("songsQuery")][Static] + [Export ("songsQuery")] + [Static] MPMediaQuery SongsQuery { get; } - [Export ("playlistsQuery")][Static] + [Export ("playlistsQuery")] + [Static] MPMediaQuery PlaylistsQuery { get; } - [Export ("podcastsQuery")][Static] + [Export ("podcastsQuery")] + [Static] MPMediaQuery PodcastsQuery { get; } - [Export ("audiobooksQuery")][Static] + [Export ("audiobooksQuery")] + [Static] MPMediaQuery AudiobooksQuery { get; } - [Export ("compilationsQuery")][Static] + [Export ("compilationsQuery")] + [Static] MPMediaQuery CompilationsQuery { get; } - [Export ("composersQuery")][Static] + [Export ("composersQuery")] + [Static] MPMediaQuery ComposersQuery { get; } - [Export ("genresQuery")][Static] + [Export ("genresQuery")] + [Static] MPMediaQuery GenresQuery { get; } [Export ("collectionSections")] @@ -773,9 +790,9 @@ namespace MediaPlayer { [NoWatch] // marked as unavailable in xcode 12 beta 1 [TV (16,0)] #else - [Watch (5,0)] - [Obsoleted (PlatformName.TvOS, 14,0, message: "Removed in Xcode 12.")] - [Obsoleted (PlatformName.WatchOS, 5,0, message: "Removed in Xcode 12.")] + [Watch (5, 0)] + [Obsoleted (PlatformName.TvOS, 14, 0, message: "Removed in Xcode 12.")] + [Obsoleted (PlatformName.WatchOS, 5, 0, message: "Removed in Xcode 12.")] #endif [Protocol] interface MPMediaPlayback { @@ -790,7 +807,7 @@ namespace MediaPlayer { [Abstract] [Export ("pause")] void Pause (); - + [Abstract] [Export ("prepareToPlay")] void PrepareToPlay (); @@ -823,7 +840,7 @@ namespace MediaPlayer { [NoMac] [NoTV] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] - [MacCatalyst (14,0)] // docs says 13.0 but this throws: NSInvalidArgumentException Reason: MPMoviePlayerController is no longer available. Use AVPlayerViewController in AVKit. + [MacCatalyst (14, 0)] // docs says 13.0 but this throws: NSInvalidArgumentException Reason: MPMoviePlayerController is no longer available. Use AVPlayerViewController in AVKit. #if WATCH [Static] interface MPMoviePlayerController { @@ -873,7 +890,7 @@ namespace MediaPlayer { [NoWatch] [Export ("backgroundView")] UIView BackgroundView { get; } - + [NoWatch] [Export ("playbackState")] MPMoviePlaybackState PlaybackState { get; } @@ -982,71 +999,71 @@ namespace MediaPlayer { [Field ("MPMoviePlayerPlaybackDidFinishNotification")] [Notification (typeof (MPMoviePlayerFinishedEventArgs))] NSString PlaybackDidFinishNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerPlaybackDidFinishReasonUserInfoKey")] // NSNumber (MPMovieFinishReason) NSString PlaybackDidFinishReasonUserInfoKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerPlaybackStateDidChangeNotification")] [Notification] NSString PlaybackStateDidChangeNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerLoadStateDidChangeNotification")] [Notification] NSString LoadStateDidChangeNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerNowPlayingMovieDidChangeNotification")] [Notification] NSString NowPlayingMovieDidChangeNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerWillEnterFullscreenNotification")] [Notification (typeof (MPMoviePlayerFullScreenEventArgs))] [Notification] NSString WillEnterFullscreenNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerDidEnterFullscreenNotification")] [Notification] NSString DidEnterFullscreenNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerWillExitFullscreenNotification")] [Notification (typeof (MPMoviePlayerFullScreenEventArgs))] NSString WillExitFullscreenNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerDidExitFullscreenNotification")] [Notification] NSString DidExitFullscreenNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerFullscreenAnimationDurationUserInfoKey")] NSString FullscreenAnimationDurationUserInfoKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerFullscreenAnimationCurveUserInfoKey")] NSString FullscreenAnimationCurveUserInfoKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMovieMediaTypesAvailableNotification")] [Notification] NSString TypesAvailableNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMovieSourceTypeAvailableNotification")] @@ -1057,72 +1074,72 @@ namespace MediaPlayer { [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMovieDurationAvailableNotification")] [Notification] - NSString DurationAvailableNotification { get; } - + NSString DurationAvailableNotification { get; } + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMovieNaturalSizeAvailableNotification")] [Notification] - NSString NaturalSizeAvailableNotification { get; } - + NSString NaturalSizeAvailableNotification { get; } + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerThumbnailImageRequestDidFinishNotification")] [Notification (typeof (MPMoviePlayerThumbnailEventArgs))] NSString ThumbnailImageRequestDidFinishNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerThumbnailImageKey")] NSString ThumbnailImageKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerThumbnailTimeKey")] NSString ThumbnailTimeKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerThumbnailErrorKey")] NSString ThumbnailErrorKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataUpdatedNotification")] [Notification (typeof (MPMoviePlayerTimedMetadataEventArgs))] NSString TimedMetadataUpdatedNotification { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataUserInfoKey")] NSString TimedMetadataUserInfoKey { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataKeyName")] NSString TimedMetadataKeyName { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataKeyInfo")] NSString TimedMetadataKeyInfo { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataKeyMIMEType")] NSString TimedMetadataKeyMIMEType { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataKeyDataType")] NSString TimedMetadataKeyDataType { get; } - + [NoWatch] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMoviePlayerTimedMetadataKeyLanguageCode")] NSString TimedMetadataKeyLanguageCode { get; } - [Watch (5,0)] + [Watch (5, 0)] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [Field ("MPMediaPlaybackIsPreparedToPlayDidChangeNotification")] [Notification] @@ -1130,7 +1147,7 @@ namespace MediaPlayer { [NoWatch] [Export ("readyForDisplay")] - bool ReadyForDisplay { get; } + bool ReadyForDisplay { get; } [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] [NoWatch] @@ -1154,29 +1171,31 @@ namespace MediaPlayer { [DisableDefaultCtor] interface MPTimedMetadata { [Export ("key")] - string Key { get; } + string Key { get; } [Export ("keyspace")] - string Keyspace { get; } + string Keyspace { get; } [Export ("value")] #if NET NSObject Value { get; } #else - NSObject value { get; } + NSObject value { get; } #endif [Export ("timestamp")] - double Timestamp { get; } + double Timestamp { get; } [Export ("allMetadata")] - NSDictionary AllMetadata { get; } + NSDictionary AllMetadata { get; } } - [NoTV][NoMac][NoWatch] + [NoTV] + [NoMac] + [NoWatch] [BaseType (typeof (UIViewController))] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'AVPlayerViewController' (AVKit) instead.")] - [MacCatalyst (14,0)] // docs says 13.0 but this throws: NSInvalidArgumentException Reason: MPMoviePlayerViewController is no longer available. Use AVPlayerViewController in AVKit. + [MacCatalyst (14, 0)] // docs says 13.0 but this throws: NSInvalidArgumentException Reason: MPMoviePlayerViewController is no longer available. Use AVPlayerViewController in AVKit. interface MPMoviePlayerViewController { [DesignatedInitializer] [Export ("initWithContentURL:")] @@ -1195,21 +1214,21 @@ namespace MediaPlayer { } [NoMac] - [TV (14,0)] + [TV (14, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPMusicPlayerController : MPMediaPlayback { [Export ("init")] - [Deprecated (PlatformName.iOS, 11,3)] + [Deprecated (PlatformName.iOS, 11, 3)] [NoTV] NativeHandle Constructor (); [Static, Export ("applicationMusicPlayer")] MPMusicPlayerController ApplicationMusicPlayer { get; } - [iOS (10,3)] + [iOS (10, 3)] [Static] [Export ("applicationQueuePlayer")] MPMusicPlayerApplicationController ApplicationQueuePlayer { get; } @@ -1219,7 +1238,7 @@ namespace MediaPlayer { [NoTV] MPMusicPlayerController iPodMusicPlayer { get; } - [iOS (8,0)] + [iOS (8, 0)] [Static, Export ("systemMusicPlayer")] MPMusicPlayerController SystemMusicPlayer { get; } @@ -1251,23 +1270,23 @@ namespace MediaPlayer { [Export ("setQueueWithItemCollection:")] void SetQueue (MPMediaItemCollection collection); - [iOS (9,3)] + [iOS (9, 3)] [Export ("setQueueWithStoreIDs:")] - void SetQueue (string[] storeIDs); + void SetQueue (string [] storeIDs); - [iOS (10,1)] + [iOS (10, 1)] [Export ("setQueueWithDescriptor:")] void SetQueue (MPMusicPlayerQueueDescriptor descriptor); - [iOS (10,3)] + [iOS (10, 3)] [Export ("prependQueueDescriptor:")] void Prepend (MPMusicPlayerQueueDescriptor descriptor); - [iOS (10,3)] + [iOS (10, 3)] [Export ("appendQueueDescriptor:")] void Append (MPMusicPlayerQueueDescriptor descriptor); - [iOS (10,1)] + [iOS (10, 1)] [Async] [Export ("prepareToPlayWithCompletionHandler:")] void PrepareToPlay (Action completionHandler); @@ -1301,8 +1320,9 @@ namespace MediaPlayer { NSString VolumeDidChangeNotification { get; } } - [NoMac][NoWatch] - [TV (14,0)] + [NoMac] + [NoWatch] + [TV (14, 0)] [BaseType (typeof (UIView))] interface MPVolumeView { [Export ("initWithFrame:")] @@ -1361,35 +1381,35 @@ namespace MediaPlayer { [Export ("routeButtonRectForBounds:")] CGRect GetRouteButtonRect (CGRect bounds); - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AVRouteDetector.MultipleRoutesDetected' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'AVRouteDetector.MultipleRoutesDetected' instead.")] [Export ("wirelessRoutesAvailable")] bool AreWirelessRoutesAvailable { [Bind ("areWirelessRoutesAvailable")] get; } - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AVPlayer.ExternalPlaybackActive' instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'AVPlayer.ExternalPlaybackActive' instead.")] [Export ("wirelessRouteActive")] bool IsWirelessRouteActive { [Bind ("isWirelessRouteActive")] get; } - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed] // by default this property is null [Export ("volumeWarningSliderImage", ArgumentSemantic.Retain)] UIImage VolumeWarningSliderImage { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AVRouteDetector.MultipleRoutesDetectedDidChange' instead.")] [Notification] [Field ("MPVolumeViewWirelessRoutesAvailableDidChangeNotification")] NSString WirelessRoutesAvailableDidChangeNotification { get; } - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'AVPlayer.ExternalPlaybackActive' KVO instead.")] [Notification] [Field ("MPVolumeViewWirelessRouteActiveDidChangeNotification")] NSString WirelessRouteActiveDidChangeNotification { get; } - } + } [NoMac] [NoTV] @@ -1398,20 +1418,20 @@ namespace MediaPlayer { // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: MPMediaQuerySection is a read-only object [DisableDefaultCtor] interface MPMediaQuerySection : NSSecureCoding, NSCopying { - [Export ("range", ArgumentSemantic.Assign)] + [Export ("range", ArgumentSemantic.Assign)] NSRange Range { get; } - [Export ("title", ArgumentSemantic.Copy)] + [Export ("title", ArgumentSemantic.Copy)] string Title { get; } } - [Mac (10,12,2), Watch (5,0)] + [Mac (10, 12, 2), Watch (5, 0)] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -init is not supported, use +defaultCenter [DisableDefaultCtor] interface MPNowPlayingInfoCenter { [Export ("nowPlayingInfo", ArgumentSemantic.Copy), NullAllowed, Internal] - NSDictionary _NowPlayingInfo { get; set; } + NSDictionary _NowPlayingInfo { get; set; } [Static] [Export ("defaultCenter")] @@ -1423,103 +1443,103 @@ namespace MediaPlayer { MPNowPlayingPlaybackState PlaybackState { get; set; } [Internal] - [Field ("MPNowPlayingInfoPropertyElapsedPlaybackTime")] + [Field ("MPNowPlayingInfoPropertyElapsedPlaybackTime")] NSString PropertyElapsedPlaybackTime { get; } - + [Internal] [Field ("MPNowPlayingInfoPropertyPlaybackRate")] NSString PropertyPlaybackRate { get; } - + [Internal] [Field ("MPNowPlayingInfoPropertyPlaybackQueueIndex")] NSString PropertyPlaybackQueueIndex { get; } - + [Internal] [Field ("MPNowPlayingInfoPropertyPlaybackQueueCount")] NSString PropertyPlaybackQueueCount { get; } - + [Internal] [Field ("MPNowPlayingInfoPropertyChapterNumber")] NSString PropertyChapterNumber { get; } - + [Internal] [Field ("MPNowPlayingInfoPropertyChapterCount")] NSString PropertyChapterCount { get; } - [iOS (8,0)] + [iOS (8, 0)] [Internal] [Field ("MPNowPlayingInfoPropertyDefaultPlaybackRate")] NSString PropertyDefaultPlaybackRate { get; } - [iOS (9,0)] - [TV (10,0)] + [iOS (9, 0)] + [TV (10, 0)] [Internal] [Field ("MPNowPlayingInfoPropertyAvailableLanguageOptions")] NSString PropertyAvailableLanguageOptions { get; } - [iOS (9,0)] + [iOS (9, 0)] [Internal] [Field ("MPNowPlayingInfoPropertyCurrentLanguageOptions")] NSString PropertyCurrentLanguageOptions { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoCollectionIdentifier")] NSString PropertyCollectionIdentifier { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoPropertyExternalContentIdentifier")] NSString PropertyExternalContentIdentifier { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoPropertyExternalUserProfileIdentifier")] NSString PropertyExternalUserProfileIdentifier { get; } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 13)] [Field ("MPNowPlayingInfoPropertyServiceIdentifier")] NSString PropertyServiceIdentifier { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoPropertyPlaybackProgress")] NSString PropertyPlaybackProgress { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoPropertyMediaType")] NSString PropertyMediaType { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Field ("MPNowPlayingInfoPropertyIsLiveStream")] NSString PropertyIsLiveStream { get; } - [iOS (10,3)] - [TV (10,2)] - [Mac (10,12,3)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 12, 3)] [Field ("MPNowPlayingInfoPropertyAssetURL")] NSString PropertyAssetUrl { get; } - [iOS (11,1), TV (11,1), Mac (10,13,1)] + [iOS (11, 1), TV (11, 1), Mac (10, 13, 1)] [Internal] [Field ("MPNowPlayingInfoPropertyCurrentPlaybackDate")] NSString PropertyCurrentPlaybackDate { get; } - [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16,0), Watch (9,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0)] [Field ("MPNowPlayingInfoPropertyAdTimeRanges")] NSString PropertyAdTimeRanges { get; } - [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16,0), Watch (9,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0)] [Field ("MPNowPlayingInfoPropertyCreditsStartTime")] NSString PropertyCreditsStartTime { get; } } - [Mac (10,12,2)] - [iOS (7,1)] + [Mac (10, 12, 2)] + [iOS (7, 1)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash if used @@ -1547,13 +1567,13 @@ namespace MediaPlayer { [Export ("title")] string Title { get; set; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("streamingContent")] bool StreamingContent { [Bind ("isStreamingContent")] get; set; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("explicitContent")] bool ExplicitContent { [Bind ("isExplicitContent")] get; set; } @@ -1567,7 +1587,7 @@ namespace MediaPlayer { [NoMac] [NoTV] [NoWatch] - [iOS (7,1)] + [iOS (7, 1)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -1593,8 +1613,8 @@ namespace MediaPlayer { nint NumberOfChildItems (NSIndexPath indexPath); [NoMac] - [iOS (10,0)] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'CarPlay' API instead.")] + [iOS (10, 0)] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CarPlay' API instead.")] [Async] [Export ("contentItemForIdentifier:completionHandler:")] void GetContentItem (string identifier, Action completionHandler); @@ -1606,37 +1626,37 @@ namespace MediaPlayer { [NoMac] [NoTV] [NoWatch] - [iOS (7,1)] + [iOS (7, 1)] [BaseType (typeof (NSObject))] [Model] [Protocol] interface MPPlayableContentDelegate { - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'CarPlay' API instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CarPlay' API instead.")] [Export ("playableContentManager:initiatePlaybackOfContentItemAtIndexPath:completionHandler:")] void InitiatePlaybackOfContentItem (MPPlayableContentManager contentManager, NSIndexPath indexPath, Action completionHandler); - [iOS (8,4)] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'CarPlay' API instead.")] + [iOS (8, 4)] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CarPlay' API instead.")] [Export ("playableContentManager:didUpdateContext:")] void ContextUpdated (MPPlayableContentManager contentManager, MPPlayableContentManagerContext context); - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 9, 3, message: "Use 'InitializePlaybackQueue (MPPlayableContentManager, MPContentItem[], Action)' instead.")] [Export ("playableContentManager:initializePlaybackQueueWithCompletionHandler:")] void InitializePlaybackQueue (MPPlayableContentManager contentManager, Action completionHandler); - [iOS (9,3)] + [iOS (9, 3)] [Deprecated (PlatformName.iOS, 12, 0, message: "Use the Intents framework API instead.")] [Export ("playableContentManager:initializePlaybackQueueWithContentItems:completionHandler:")] - void InitializePlaybackQueue (MPPlayableContentManager contentManager, [NullAllowed] MPContentItem[] contentItems, Action completionHandler); + void InitializePlaybackQueue (MPPlayableContentManager contentManager, [NullAllowed] MPContentItem [] contentItems, Action completionHandler); } [NoMac] [NoTV] [NoWatch] - [iOS (7,1)] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'CarPlay' API instead.")] + [iOS (7, 1)] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CarPlay' API instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -init is invalid. Use +sharedManager. <- [sic] interface MPPlayableContentManager { @@ -1645,14 +1665,16 @@ namespace MediaPlayer { [Export ("sharedContentManager")] MPPlayableContentManager Shared { get; } - [Export ("dataSource", ArgumentSemantic.Weak)][NullAllowed] + [Export ("dataSource", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDataSource { get; set; } [Wrap ("WeakDataSource")] [Protocolize] MPPlayableContentDataSource DataSource { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -1668,21 +1690,21 @@ namespace MediaPlayer { [Export ("reloadData")] void ReloadData (); - [iOS (8,4)] + [iOS (8, 4)] [Export ("context")] MPPlayableContentManagerContext Context { get; } - [iOS (10,0)] + [iOS (10, 0)] [Export ("nowPlayingIdentifiers", ArgumentSemantic.Copy)] - string[] NowPlayingIdentifiers { get; set; } + string [] NowPlayingIdentifiers { get; set; } } [NoMac] [NoTV] [NoWatch] - [iOS (8,4)] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'CarPlay' API instead.")] - [BaseType (typeof(NSObject))] + [iOS (8, 4)] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'CarPlay' API instead.")] + [BaseType (typeof (NSObject))] interface MPPlayableContentManagerContext { [Export ("enforcedContentItemsCount")] nint EnforcedContentItemsCount { get; } @@ -1691,7 +1713,7 @@ namespace MediaPlayer { nint EnforcedContentTreeDepth { get; } // iOS 9 beta 2 changed this from contentLimitsEnabled - but the final iOS8.4 release used contentLimitsEnabled - [iOS (9,0)] + [iOS (9, 0)] [Export ("contentLimitsEnforced")] bool ContentLimitsEnforced { get; } @@ -1703,8 +1725,8 @@ namespace MediaPlayer { bool EndpointAvailable { get; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Reason: MPRemoteCommands cannot be initialized externally. interface MPRemoteCommand { @@ -1716,7 +1738,7 @@ namespace MediaPlayer { void AddTarget (NSObject target, Selector action); [Export ("addTargetWithHandler:")] - NSObject AddTarget (Func handler); + NSObject AddTarget (Func handler); [Export ("removeTarget:")] void RemoveTarget ([NullAllowed] NSObject target); @@ -1725,38 +1747,36 @@ namespace MediaPlayer { void RemoveTarget ([NullAllowed] NSObject target, [NullAllowed] Selector action); } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPChangePlaybackRateCommands cannot be initialized externally. interface MPChangePlaybackRateCommand { [Export ("supportedPlaybackRates")] - NSNumber[] SupportedPlaybackRates { get; set; } + NSNumber [] SupportedPlaybackRates { get; set; } } - [Mac (10,12,2)] - [iOS (8,0), Watch (5,0)] - [BaseType (typeof(MPRemoteCommand))] + [Mac (10, 12, 2)] + [iOS (8, 0), Watch (5, 0)] + [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPChangeShuffleModeCommand cannot be initialized externally. - interface MPChangeShuffleModeCommand - { + interface MPChangeShuffleModeCommand { [Export ("currentShuffleType", ArgumentSemantic.Assign)] MPShuffleType CurrentShuffleType { get; set; } } - [Mac (10,12,2)] - [iOS (8,0), Watch (5,0)] - [BaseType (typeof(MPRemoteCommand))] + [Mac (10, 12, 2)] + [iOS (8, 0), Watch (5, 0)] + [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPChangeRepeatModeCommand cannot be initialized externally. - interface MPChangeRepeatModeCommand - { + interface MPChangeRepeatModeCommand { [Export ("currentRepeatType", ArgumentSemantic.Assign)] MPRepeatType CurrentRepeatType { get; set; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPFeedbackCommands cannot be initialized externally. interface MPFeedbackCommand { @@ -1767,13 +1787,13 @@ namespace MediaPlayer { [Export ("localizedTitle")] string LocalizedTitle { get; set; } - [iOS (8,2)] // added in 8.2, shown as NS_AVAILABLE_IOS(8_0) + [iOS (8, 2)] // added in 8.2, shown as NS_AVAILABLE_IOS(8_0) [Export ("localizedShortTitle")] string LocalizedShortTitle { get; set; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPRatingCommands cannot be initialized externally. interface MPRatingCommand { @@ -1785,8 +1805,8 @@ namespace MediaPlayer { float MinimumRating { get; set; } /* float, not CGFloat */ } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // NSGenericException Reason: MPSkipIntervalCommands cannot be initialized externally. interface MPSkipIntervalCommand { @@ -1796,8 +1816,8 @@ namespace MediaPlayer { NSArray _PreferredIntervals { get; set; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPRemoteCommandCenter { @@ -1812,11 +1832,11 @@ namespace MediaPlayer { [Export ("changePlaybackRateCommand")] MPChangePlaybackRateCommand ChangePlaybackRateCommand { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("changeRepeatModeCommand")] MPChangeRepeatModeCommand ChangeRepeatModeCommand { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("changeShuffleModeCommand")] MPChangeShuffleModeCommand ChangeShuffleModeCommand { get; } @@ -1859,21 +1879,21 @@ namespace MediaPlayer { [Export ("togglePlayPauseCommand")] MPRemoteCommand TogglePlayPauseCommand { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("enableLanguageOptionCommand")] MPRemoteCommand EnableLanguageOptionCommand { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("disableLanguageOptionCommand")] MPRemoteCommand DisableLanguageOptionCommand { get; } - [iOS (9,1)] + [iOS (9, 1)] [Export ("changePlaybackPositionCommand")] MPChangePlaybackPositionCommand ChangePlaybackPositionCommand { get; } } - - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Reason: MPRemoteCommandEvents cannot be initialized externally. interface MPRemoteCommandEvent { @@ -1885,8 +1905,8 @@ namespace MediaPlayer { double /* NSTimeInterval */ Timestamp { get; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPChangePlaybackRateCommandEvents cannot be initialized externally. interface MPChangePlaybackRateCommandEvent { @@ -1895,8 +1915,8 @@ namespace MediaPlayer { float PlaybackRate { get; } // float, not CGFloat } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPRatingCommandEvents cannot be initialized externally. interface MPRatingCommandEvent { @@ -1905,8 +1925,8 @@ namespace MediaPlayer { float Rating { get; } // float, not CGFloat } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // Name: NSGenericException Reason: MPSeekCommandEvents cannot be initialized externally. interface MPSeekCommandEvent { @@ -1915,8 +1935,8 @@ namespace MediaPlayer { MPSeekCommandEventType Type { get; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPSkipIntervalCommandEvents cannot be initialized externally. interface MPSkipIntervalCommandEvent { @@ -1925,8 +1945,8 @@ namespace MediaPlayer { double /* NSTimeInterval */ Interval { get; } } - [Mac (10,12,2)] - [iOS (7,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (7, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] interface MPFeedbackCommandEvent { @@ -1935,57 +1955,55 @@ namespace MediaPlayer { bool Negative { [Bind ("isNegative")] get; } } - [Mac (10,12,2)] - [iOS (9,0), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 0), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPChangeLanguageOptionCommandEvents cannot be initialized externally. interface MPChangeLanguageOptionCommandEvent { [Export ("languageOption")] MPNowPlayingInfoLanguageOption LanguageOption { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("setting")] MPChangeLanguageOptionSetting Setting { get; } } - [Mac (10,12,2)] - [iOS (8,0), Watch (5,0)] - [BaseType (typeof(MPRemoteCommandEvent))] + [Mac (10, 12, 2)] + [iOS (8, 0), Watch (5, 0)] + [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPChangeShuffleModeCommandEvent cannot be initialized externally. - interface MPChangeShuffleModeCommandEvent - { + interface MPChangeShuffleModeCommandEvent { [Export ("shuffleType")] MPShuffleType ShuffleType { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("preservesShuffleMode")] bool PreservesShuffleMode { get; } } - [Mac (10,12,2)] - [iOS (8,0), Watch (5,0)] - [BaseType (typeof(MPRemoteCommandEvent))] + [Mac (10, 12, 2)] + [iOS (8, 0), Watch (5, 0)] + [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // NSGenericException Reason: MPChangeRepeatModeCommandEvent cannot be initialized externally. - interface MPChangeRepeatModeCommandEvent - { + interface MPChangeRepeatModeCommandEvent { [Export ("repeatType")] MPRepeatType RepeatType { get; } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Export ("preservesRepeatMode")] bool PreservesRepeatMode { get; } } - [Mac (10,12,2)] - [iOS (9,0), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 0), Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // pre-emptive interface MPNowPlayingInfoLanguageOption { [Export ("initWithType:languageTag:characteristics:displayName:identifier:")] - NativeHandle Constructor (MPNowPlayingInfoLanguageOptionType languageOptionType, string languageTag, [NullAllowed] NSString[] languageOptionCharacteristics, string displayName, string identifier); + NativeHandle Constructor (MPNowPlayingInfoLanguageOptionType languageOptionType, string languageTag, [NullAllowed] NSString [] languageOptionCharacteristics, string displayName, string identifier); [Export ("languageOptionType")] MPNowPlayingInfoLanguageOptionType LanguageOptionType { get; } @@ -1994,7 +2012,7 @@ namespace MediaPlayer { string LanguageTag { get; } [NullAllowed, Export ("languageOptionCharacteristics")] - NSString[] LanguageOptionCharacteristics { get; } + NSString [] LanguageOptionCharacteristics { get; } [NullAllowed] [Export ("displayName")] @@ -2007,21 +2025,22 @@ namespace MediaPlayer { [Export ("isAutomaticLegibleLanguageOption")] bool IsAutomaticLegibleLanguageOption { get; } - [iOS (9,1)][TV (9,0)] + [iOS (9, 1)] + [TV (9, 0)] [Export ("isAutomaticAudibleLanguageOption")] bool IsAutomaticAudibleLanguageOption { get; } } - [Mac (10,12,2)] - [iOS (9,0), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 0), Watch (5, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // pre-emptive interface MPNowPlayingInfoLanguageOptionGroup { [Export ("initWithLanguageOptions:defaultLanguageOption:allowEmptySelection:")] - NativeHandle Constructor (MPNowPlayingInfoLanguageOption[] languageOptions, [NullAllowed] MPNowPlayingInfoLanguageOption defaultLanguageOption, bool allowEmptySelection); + NativeHandle Constructor (MPNowPlayingInfoLanguageOption [] languageOptions, [NullAllowed] MPNowPlayingInfoLanguageOption defaultLanguageOption, bool allowEmptySelection); [Export ("languageOptions")] - MPNowPlayingInfoLanguageOption[] LanguageOptions { get; } + MPNowPlayingInfoLanguageOption [] LanguageOptions { get; } [NullAllowed, Export ("defaultLanguageOption")] MPNowPlayingInfoLanguageOption DefaultLanguageOption { get; } @@ -2030,9 +2049,9 @@ namespace MediaPlayer { bool AllowEmptySelection { get; } } - [Mac (10,12,2)] - [iOS (9,0)] - [Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 0)] + [Watch (5, 0)] [Static] // not [Internal] since they are exposed as an NSString[] property in MPNowPlayingInfoLanguageOption interface MPLanguageOptionCharacteristics { @@ -2067,15 +2086,15 @@ namespace MediaPlayer { NSString VoiceOverTranslation { get; } } - [Mac (10,12,2)] - [iOS (9,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommand))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSGenericException Reason: MPChangePlaybackPositionCommands cannot be initialized externally. interface MPChangePlaybackPositionCommand { } - [Mac (10,12,2)] - [iOS (9,1), Watch (5,0)] + [Mac (10, 12, 2)] + [iOS (9, 1), Watch (5, 0)] [BaseType (typeof (MPRemoteCommandEvent))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSGenericException Reason: MPChangePlaybackPositionCommandEvents cannot be initialized externally. interface MPChangePlaybackPositionCommandEvent { @@ -2084,7 +2103,8 @@ namespace MediaPlayer { } [NoMac] - [NoTV][iOS (9,3)] + [NoTV] + [iOS (9, 3)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -2106,24 +2126,23 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (10,1)] - [TV (14,0)] + [iOS (10, 1)] + [TV (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MPMusicPlayerQueueDescriptor : NSSecureCoding { [Export ("init")] - [Deprecated (PlatformName.iOS, 11,3)] + [Deprecated (PlatformName.iOS, 11, 3)] NativeHandle Constructor (); } [NoMac] [NoTV] [NoWatch] - [iOS (10,1)] - [BaseType (typeof(MPMusicPlayerQueueDescriptor))] - interface MPMusicPlayerMediaItemQueueDescriptor - { + [iOS (10, 1)] + [BaseType (typeof (MPMusicPlayerQueueDescriptor))] + interface MPMusicPlayerMediaItemQueueDescriptor { [Export ("initWithQuery:")] NativeHandle Constructor (MPMediaQuery query); @@ -2148,16 +2167,15 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (10,1)] - [TV (14,0)] - [BaseType (typeof(MPMusicPlayerQueueDescriptor))] - interface MPMusicPlayerStoreQueueDescriptor - { + [iOS (10, 1)] + [TV (14, 0)] + [BaseType (typeof (MPMusicPlayerQueueDescriptor))] + interface MPMusicPlayerStoreQueueDescriptor { [Export ("initWithStoreIDs:")] - NativeHandle Constructor (string[] storeIDs); + NativeHandle Constructor (string [] storeIDs); [NullAllowed, Export ("storeIDs", ArgumentSemantic.Copy)] - string[] StoreIDs { get; set; } + string [] StoreIDs { get; set; } [NullAllowed, Export ("startItemID")] string StartItemID { get; set; } @@ -2171,14 +2189,13 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (10,3)] - [TV (14,0)] - [BaseType (typeof(NSObject))] + [iOS (10, 3)] + [TV (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPMusicPlayerControllerQueue - { + interface MPMusicPlayerControllerQueue { [Export ("items", ArgumentSemantic.Copy)] - MPMediaItem[] Items { get; } + MPMediaItem [] Items { get; } [Field ("MPMusicPlayerControllerQueueDidChangeNotification")] [Notification] @@ -2187,11 +2204,10 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (10,3)] - [TV (14,0)] - [BaseType (typeof(MPMusicPlayerControllerQueue))] - interface MPMusicPlayerControllerMutableQueue - { + [iOS (10, 3)] + [TV (14, 0)] + [BaseType (typeof (MPMusicPlayerControllerQueue))] + interface MPMusicPlayerControllerMutableQueue { [Export ("insertQueueDescriptor:afterItem:")] void InsertAfter (MPMusicPlayerQueueDescriptor queueDescriptor, [NullAllowed] MPMediaItem item); @@ -2201,19 +2217,18 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (10,3)] - [TV (14,0)] - [BaseType (typeof(MPMusicPlayerController))] - interface MPMusicPlayerApplicationController - { + [iOS (10, 3)] + [TV (14, 0)] + [BaseType (typeof (MPMusicPlayerController))] + interface MPMusicPlayerApplicationController { [Async] [Export ("performQueueTransaction:completionHandler:")] void Perform (Action queueTransaction, Action completionHandler); } [NoMac] - [iOS (11,0)] - [TV (14,0)] + [iOS (11, 0)] + [TV (14, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -2227,16 +2242,16 @@ namespace MediaPlayer { [NoMac] [NoWatch] - [iOS (11,0)] - [TV (14,0)] + [iOS (11, 0)] + [TV (14, 0)] [BaseType (typeof (MPMusicPlayerQueueDescriptor))] [DisableDefaultCtor] interface MPMusicPlayerPlayParametersQueueDescriptor { [Export ("initWithPlayParametersQueue:")] - NativeHandle Constructor (MPMusicPlayerPlayParameters[] playParametersQueue); + NativeHandle Constructor (MPMusicPlayerPlayParameters [] playParametersQueue); [Export ("playParametersQueue", ArgumentSemantic.Copy)] - MPMusicPlayerPlayParameters[] PlayParametersQueue { get; set; } + MPMusicPlayerPlayParameters [] PlayParametersQueue { get; set; } [NullAllowed, Export ("startItemPlayParameters", ArgumentSemantic.Strong)] MPMusicPlayerPlayParameters StartItemPlayParameters { get; set; } @@ -2248,11 +2263,11 @@ namespace MediaPlayer { void SetEndTime (/* NSTimeInterval */ double endTime, MPMusicPlayerPlayParameters playParameters); } - interface IMPSystemMusicPlayerController {} + interface IMPSystemMusicPlayerController { } [NoTV] [NoMac] // headers have no availability macros on the protocol itself but the only member is not available on macOS - [iOS (11,0), Watch (5,0)] + [iOS (11, 0), Watch (5, 0)] [Protocol] interface MPSystemMusicPlayerController { [NoWatch] @@ -2263,8 +2278,10 @@ namespace MediaPlayer { [Category] [BaseType (typeof (NSUserActivity))] - [TV (10,0,1)][iOS (10,1)] - [NoWatch][NoMac] + [TV (10, 0, 1)] + [iOS (10, 1)] + [NoWatch] + [NoMac] interface NSUserActivity_MediaPlayerAdditions { [return: NullAllowed] [Export ("externalMediaContentIdentifier")] @@ -2274,9 +2291,10 @@ namespace MediaPlayer { void SetExternalMediaContentIdentifier ([NullAllowed] NSString identifier); } - [iOS (9,0)][TV (9,0)] - [Mac (10,12,1)] - [Watch (6,0)] + [iOS (9, 0)] + [TV (9, 0)] + [Mac (10, 12, 1)] + [Watch (6, 0)] [Category] [BaseType (typeof (AVMediaSelectionOption))] interface AVMediaSelectionOption_MPNowPlayingInfoLanguageOptionAdditions { @@ -2285,9 +2303,10 @@ namespace MediaPlayer { MPNowPlayingInfoLanguageOption CreateNowPlayingInfoLanguageOption (); } - [iOS (9,0)][TV (9,0)] - [Mac (10,12,1)] - [Watch (6,0)] + [iOS (9, 0)] + [TV (9, 0)] + [Mac (10, 12, 1)] + [Watch (6, 0)] [Category] [BaseType (typeof (AVMediaSelectionGroup))] interface AVMediaSelectionGroup_MPNowPlayingInfoLanguageOptionAdditions { @@ -2295,9 +2314,9 @@ namespace MediaPlayer { MPNowPlayingInfoLanguageOptionGroup CreateNowPlayingInfoLanguageOptionGroup (); } - interface IMPNowPlayingSessionDelegate {} + interface IMPNowPlayingSessionDelegate { } - [TV (14,0), iOS (16,0)] + [TV (14, 0), iOS (16, 0)] [NoWatch, NoMac, NoMacCatalyst] #if NET [Protocol, Model] @@ -2314,17 +2333,17 @@ namespace MediaPlayer { void DidChangeCanBecomeActive (MPNowPlayingSession nowPlayingSession); } - [TV (14,0), iOS (16,0)] + [TV (14, 0), iOS (16, 0)] [NoWatch, NoMac, NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPNowPlayingSession { [Export ("initWithPlayers:")] - NativeHandle Constructor (AVPlayer[] players); + NativeHandle Constructor (AVPlayer [] players); [Export ("players", ArgumentSemantic.Strong)] - AVPlayer[] Players { get; } + AVPlayer [] Players { get; } [Wrap ("WeakDelegate")] [NullAllowed] @@ -2360,11 +2379,10 @@ namespace MediaPlayer { bool AutomaticallyPublishesNowPlayingInfo { get; set; } } - [TV (16,0), NoWatch, NoMacCatalyst, NoMac, iOS (16,0)] + [TV (16, 0), NoWatch, NoMacCatalyst, NoMac, iOS (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPAdTimeRange : NSCopying - { + interface MPAdTimeRange : NSCopying { [Export ("timeRange", ArgumentSemantic.Assign)] CMTimeRange TimeRange { get; set; } diff --git a/src/mediasetup.cs b/src/mediasetup.cs index cfa8c7c060..bf9815cccb 100644 --- a/src/mediasetup.cs +++ b/src/mediasetup.cs @@ -9,8 +9,10 @@ using NativeHandle = System.IntPtr; namespace MediaSetup { - [NoTV][NoWatch][NoMac] - [iOS (14,0)] + [NoTV] + [NoWatch] + [NoMac] + [iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MSServiceAccount { @@ -41,10 +43,12 @@ namespace MediaSetup { string AuthorizationScope { get; set; } } - interface IMSAuthenticationPresentationContext {} + interface IMSAuthenticationPresentationContext { } - [NoTV][NoWatch][NoMac] - [iOS (14,0)] + [NoTV] + [NoWatch] + [NoMac] + [iOS (14, 0)] [Protocol] interface MSAuthenticationPresentationContext { @@ -53,8 +57,10 @@ namespace MediaSetup { UIWindow PresentationAnchor { get; } } - [NoTV][NoWatch][NoMac] - [iOS (14,0)] + [NoTV] + [NoWatch] + [NoMac] + [iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MSSetupSession { diff --git a/src/messages.cs b/src/messages.cs index f6c00cfd96..41eb4fcdac 100644 --- a/src/messages.cs +++ b/src/messages.cs @@ -21,31 +21,28 @@ using NativeHandle = System.IntPtr; #if !MONOMAC namespace Messages { - [MacCatalyst (14,0)] - [iOS (10,0)] + [MacCatalyst (14, 0)] + [iOS (10, 0)] [Native] - public enum MSMessagesAppPresentationStyle : ulong - { + public enum MSMessagesAppPresentationStyle : ulong { Compact, Expanded, Transcript, } - [MacCatalyst (14,0)] - [iOS (10,0)] + [MacCatalyst (14, 0)] + [iOS (10, 0)] [Native] - public enum MSStickerSize : long - { + public enum MSStickerSize : long { Small, Regular, Large } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Native] [ErrorDomain ("MSMessagesErrorDomain")] - public enum MSMessageErrorCode : long - { + public enum MSMessageErrorCode : long { Unknown = -1, FileNotFound = 1, FileUnreadable, @@ -60,30 +57,27 @@ namespace Messages { APIUnavailableInPresentationContext, } - [MacCatalyst (14,0)] - [iOS (12,0)] + [MacCatalyst (14, 0)] + [iOS (12, 0)] [Native] - public enum MSMessagesAppPresentationContext : long - { + public enum MSMessagesAppPresentationContext : long { Messages, Media, } - [MacCatalyst (14,0)] - [iOS (11,0)] + [MacCatalyst (14, 0)] + [iOS (11, 0)] [Protocol] - interface MSMessagesAppTranscriptPresentation - { + interface MSMessagesAppTranscriptPresentation { [Abstract] [Export ("contentSizeThatFits:")] CGSize GetContentSizeThatFits (CGSize size); } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(UIViewController))] - interface MSMessagesAppViewController : MSMessagesAppTranscriptPresentation - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (UIViewController))] + interface MSMessagesAppViewController : MSMessagesAppTranscriptPresentation { // inlined ctor [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); @@ -133,21 +127,20 @@ namespace Messages { [Export ("didTransitionToPresentationStyle:")] void DidTransition (MSMessagesAppPresentationStyle presentationStyle); - [iOS (12,0)] + [iOS (12, 0)] [Export ("presentationContext")] MSMessagesAppPresentationContext PresentationContext { get; } } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(NSObject))] - interface MSConversation - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (NSObject))] + interface MSConversation { [Export ("localParticipantIdentifier")] NSUuid LocalParticipantIdentifier { get; } [Export ("remoteParticipantIdentifiers")] - NSUuid[] RemoteParticipantIdentifiers { get; } + NSUuid [] RemoteParticipantIdentifiers { get; } [NullAllowed, Export ("selectedMessage")] MSMessage SelectedMessage { get; } @@ -168,33 +161,32 @@ namespace Messages { [Async] void InsertAttachment (NSUrl url, [NullAllowed] string filename, [NullAllowed] Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Export ("sendMessage:completionHandler:")] [Async] void SendMessage (MSMessage message, [NullAllowed] Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Export ("sendSticker:completionHandler:")] [Async] void SendSticker (MSSticker sticker, [NullAllowed] Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Export ("sendText:completionHandler:")] [Async] void SendText (string text, [NullAllowed] Action completionHandler); - [iOS (11,0)] + [iOS (11, 0)] [Export ("sendAttachment:withAlternateFilename:completionHandler:")] [Async] void SendAttachment (NSUrl url, [NullAllowed] string filename, [NullAllowed] Action completionHandler); } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(NSObject))] + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated - interface MSMessage : NSCopying, NSSecureCoding - { + interface MSMessage : NSCopying, NSSecureCoding { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -206,7 +198,7 @@ namespace Messages { [NullAllowed, Export ("session")] MSSession Session { get; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("pending")] bool Pending { [Bind ("isPending")] get; } @@ -232,18 +224,17 @@ namespace Messages { NSError Error { get; set; } } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(NSObject))] + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (NSObject))] [Abstract] // as per docs [DisableDefaultCtor] - interface MSMessageLayout : NSCopying {} + interface MSMessageLayout : NSCopying { } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(MSMessageLayout))] - interface MSMessageTemplateLayout - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (MSMessageLayout))] + interface MSMessageTemplateLayout { [NullAllowed, Export ("caption")] string Caption { get; set; } @@ -269,17 +260,16 @@ namespace Messages { string ImageSubtitle { get; set; } } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(NSObject))] - interface MSSession : NSSecureCoding {} + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (NSObject))] + interface MSSession : NSSecureCoding { } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(NSObject))] + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MSSticker - { + interface MSSticker { [Export ("initWithContentsOfFileURL:localizedDescription:error:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl fileUrl, string localizedDescription, [NullAllowed] out NSError error); @@ -291,11 +281,10 @@ namespace Messages { string LocalizedDescription { get; } } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(UIView))] - interface MSStickerView - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (UIView))] + interface MSStickerView { // inlined ctor [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -321,12 +310,11 @@ namespace Messages { interface IMSStickerBrowserViewDataSource { } - [MacCatalyst (14,0)] - [iOS (10,0)] + [MacCatalyst (14, 0)] + [iOS (10, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface MSStickerBrowserViewDataSource - { + [BaseType (typeof (NSObject))] + interface MSStickerBrowserViewDataSource { [Abstract] [Export ("numberOfStickersInStickerBrowserView:")] nint GetNumberOfStickers (MSStickerBrowserView stickerBrowserView); @@ -336,11 +324,10 @@ namespace Messages { MSSticker GetSticker (MSStickerBrowserView stickerBrowserView, nint index); } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(UIView))] - interface MSStickerBrowserView - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (UIView))] + interface MSStickerBrowserView { [Export ("initWithFrame:")] [DesignatedInitializer] NativeHandle Constructor (CGRect frame); @@ -368,11 +355,10 @@ namespace Messages { void ReloadData (); } - [MacCatalyst (14,0)] - [iOS (10,0)] - [BaseType (typeof(UIViewController))] - interface MSStickerBrowserViewController : MSStickerBrowserViewDataSource - { + [MacCatalyst (14, 0)] + [iOS (10, 0)] + [BaseType (typeof (UIViewController))] + interface MSStickerBrowserViewController : MSStickerBrowserViewDataSource { [Export ("initWithStickerSize:")] [DesignatedInitializer] NativeHandle Constructor (MSStickerSize stickerSize); @@ -384,12 +370,11 @@ namespace Messages { MSStickerSize StickerSize { get; } } - [MacCatalyst (14,0)] - [iOS (11,0)] - [BaseType (typeof(MSMessageLayout))] + [MacCatalyst (14, 0)] + [iOS (11, 0)] + [BaseType (typeof (MSMessageLayout))] [DisableDefaultCtor] - interface MSMessageLiveLayout - { + interface MSMessageLiveLayout { [Export ("initWithAlternateLayout:")] [DesignatedInitializer] NativeHandle Constructor (MSMessageTemplateLayout alternateLayout); diff --git a/src/messageui.cs b/src/messageui.cs index d9fb51a50a..de67fd8d0c 100644 --- a/src/messageui.cs +++ b/src/messageui.cs @@ -22,7 +22,8 @@ namespace MessageUI { [Static, Export ("canSendMail")] bool CanSendMail { get; } - [Export ("mailComposeDelegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("mailComposeDelegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakMailComposeDelegate { get; set; } [Wrap ("WeakMailComposeDelegate")] @@ -47,7 +48,7 @@ namespace MessageUI { [Export ("addAttachmentData:mimeType:fileName:")] void AddAttachmentData (NSData attachment, string mimeType, string fileName); - [iOS (11,0)] + [iOS (11, 0)] [Export ("setPreferredSendingEmailAddress:")] void SetPreferredSendingEmailAddress (string emailAddress); } @@ -62,73 +63,76 @@ namespace MessageUI { interface MFMailComposeViewControllerDelegate { [Export ("mailComposeController:didFinishWithResult:error:")] void Finished (MFMailComposeViewController controller, MFMailComposeResult result, [NullAllowed] NSError error); - } + } interface MFMessageAvailabilityChangedEventArgs { [Export ("MFMessageComposeViewControllerTextMessageAvailabilityKey")] bool TextMessageAvailability { get; } } - + [BaseType (typeof (UINavigationController))] interface MFMessageComposeViewController : UIAppearance { [Export ("messageComposeDelegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakMessageComposeDelegate { get; set; } - + [Wrap ("WeakMessageComposeDelegate")] [Protocolize] - MFMessageComposeViewControllerDelegate MessageComposeDelegate { get; set; } + MFMessageComposeViewControllerDelegate MessageComposeDelegate { get; set; } [NullAllowed] [Export ("recipients", ArgumentSemantic.Copy)] - string [] Recipients { get; set; } - + string [] Recipients { get; set; } + [NullAllowed] [Export ("body", ArgumentSemantic.Copy)] - string Body { get; set; } - + string Body { get; set; } + [Static] [Export ("canSendText")] bool CanSendText { get; } - [iOS (7,0)] - [Static][Export ("canSendAttachments")] + [iOS (7, 0)] + [Static] + [Export ("canSendAttachments")] bool CanSendAttachments { get; } - [iOS (7,0)] - [Static][Export ("canSendSubject")] + [iOS (7, 0)] + [Static] + [Export ("canSendSubject")] bool CanSendSubject { get; } - [iOS (7,0)] - [Static][Export ("isSupportedAttachmentUTI:")] + [iOS (7, 0)] + [Static] + [Export ("isSupportedAttachmentUTI:")] bool IsSupportedAttachment (string uti); - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed] [Export ("subject", ArgumentSemantic.Copy)] string Subject { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [return: NullAllowed] [Export ("attachments")] - NSDictionary[] GetAttachments (); + NSDictionary [] GetAttachments (); - [iOS (10,0)] + [iOS (10, 0)] [NullAllowed, Export ("message", ArgumentSemantic.Copy)] MSMessage Message { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("addAttachmentURL:withAlternateFilename:")] bool AddAttachment (NSUrl attachmentURL, [NullAllowed] string alternateFilename); - [iOS (7,0)] + [iOS (7, 0)] [Export ("addAttachmentData:typeIdentifier:filename:")] bool AddAttachment (NSData attachmentData, string uti, string filename); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("insertCollaborationItemProvider:")] bool InsertCollaboration (NSItemProvider itemProvider); - [iOS (7,0)] + [iOS (7, 0)] [Export ("disableUserAttachments")] void DisableUserAttachments (); @@ -139,11 +143,11 @@ namespace MessageUI { [Field ("MFMessageComposeViewControllerTextMessageAvailabilityKey")] NSString TextMessageAvailabilityKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("MFMessageComposeViewControllerAttachmentAlternateFilename")] NSString AttachmentAlternateFilename { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("MFMessageComposeViewControllerAttachmentURL")] NSString AttachmentURL { get; } } diff --git a/src/metal.cs b/src/metal.cs index 3d952c643f..fad72884df 100644 --- a/src/metal.cs +++ b/src/metal.cs @@ -42,9 +42,10 @@ namespace Metal { delegate void MTLNewRenderPipelineStateWithReflectionCompletionHandler (IMTLRenderPipelineState renderPipelineState, MTLRenderPipelineReflection reflection, NSError error); - interface IMTLCommandEncoder {} - - [iOS (8,0)][Mac (10,11)] + interface IMTLCommandEncoder { } + + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLArgument { [Export ("name")] @@ -87,20 +88,21 @@ namespace Metal { [Export ("textureDataType")] MTLDataType TextureDataType { get; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("isDepthTexture")] bool IsDepthTexture { get; } - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] [Export ("arrayLength")] nuint ArrayLength { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [NullAllowed, Export ("bufferPointerType")] MTLPointerType BufferPointerType { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (MTLType))] interface MTLArrayType { [Export ("arrayLength")] @@ -120,20 +122,21 @@ namespace Metal { [return: NullAllowed] MTLArrayType ElementArrayType (); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("argumentIndexStride")] nuint ArgumentIndexStride { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [NullAllowed, Export ("elementTextureReferenceType")] MTLTextureReferenceType ElementTextureReferenceType { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [NullAllowed, Export ("elementPointerType")] MTLPointerType ElementPointerType { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLCommandEncoder { [Abstract, Export ("device")] @@ -155,9 +158,10 @@ namespace Metal { void PopDebugGroup (); } - interface IMTLBuffer {} - - [iOS (8,0)][Mac (10,11)] + interface IMTLBuffer { } + + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLBuffer : MTLResource { [Abstract, Export ("length")] @@ -165,12 +169,12 @@ namespace Metal { [Abstract, Export ("contents")] IntPtr Contents { get; } - - [NoiOS, NoTV, MacCatalyst (15,0)] + + [NoiOS, NoTV, MacCatalyst (15, 0)] [Abstract, Export ("didModifyRange:")] void DidModify (NSRange range); - - [Mac (10,13)] + + [Mac (10, 13)] [return: NullAllowed] #if NET || !MONOMAC [Abstract] @@ -179,14 +183,14 @@ namespace Metal { [return: Release] IMTLTexture CreateTexture (MTLTextureDescriptor descriptor, nuint offset, nuint bytesPerRow); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("addDebugMarker:range:")] void AddDebugMarker (string marker, NSRange range); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif @@ -203,17 +207,16 @@ namespace Metal { #if NET [Abstract] #endif - [NoiOS, NoTV, Mac (10,15)] + [NoiOS, NoTV, Mac (10, 15)] [Export ("newRemoteBufferViewForDevice:")] [return: NullAllowed] [return: Release] IMTLBuffer CreateRemoteBuffer (IMTLDevice device); } - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLBufferLayoutDescriptor : NSCopying - { + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLBufferLayoutDescriptor : NSCopying { [Export ("stride")] nuint Stride { get; set; } @@ -224,10 +227,9 @@ namespace Metal { nuint StepRate { get; set; } } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLBufferLayoutDescriptorArray - { + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLBufferLayoutDescriptorArray { [Internal] [Export ("objectAtIndexedSubscript:")] MTLBufferLayoutDescriptor ObjectAtIndexedSubscript (nuint index); @@ -236,11 +238,12 @@ namespace Metal { [Export ("setObject:atIndexedSubscript:")] void SetObject ([NullAllowed] MTLBufferLayoutDescriptor bufferDesc, nuint index); } - - interface IMTLCommandBuffer {} - [iOS (8,0)][Mac (10,11)] + interface IMTLCommandBuffer { } + + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLCommandBuffer { @@ -286,7 +289,7 @@ namespace Metal { [Abstract, Export ("computeCommandEncoder")] IMTLComputeCommandEncoder ComputeCommandEncoder { get; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -294,14 +297,14 @@ namespace Metal { [return: NullAllowed] IMTLComputeCommandEncoder ComputeCommandEncoderDispatch (MTLDispatchType dispatchType); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("encodeWaitForEvent:value:")] void EncodeWait (IMTLEvent @event, ulong value); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -328,7 +331,9 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (10,3)][TV (10,2)][Mac (10,15,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 15, 4)] [Export ("presentDrawable:afterMinimumDuration:")] void PresentDrawableAfter (IMTLDrawable drawable, double duration); @@ -339,39 +344,47 @@ namespace Metal { #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif - [iOS (10,3)][TV (10,2)][Mac (10,12,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 12, 4)] [Export ("kernelStartTime")] double /* CFTimeInterval */ KernelStartTime { get; } #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif - [iOS (10,3)][TV (10,2)][Mac (10,12,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 12, 4)] [Export ("kernelEndTime")] double /* CFTimeInterval */ KernelEndTime { get; } #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif - [iOS (10,3)][TV (10,2)][Mac (10,12,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 12, 4)] [Export ("GPUStartTime")] double /* CFTimeInterval */ GpuStartTime { get; } #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif - [iOS (10,3)][TV (10,2)][Mac (10,12,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 12, 4)] [Export ("GPUEndTime")] double /* CFTimeInterval */ GpuEndTime { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Export ("pushDebugGroup:")] void PushDebugGroup (string @string); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif @@ -382,39 +395,39 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), iOS (13, 0), NoTV] + [Mac (11, 0), iOS (13, 0), NoTV] [NullAllowed, Export ("resourceStateCommandEncoder")] IMTLResourceStateCommandEncoder ResourceStateCommandEncoder { get; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("errorOptions")] MTLCommandBufferErrorOption ErrorOptions { get; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("logs")] IMTLLogContainer Logs { get; } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("computeCommandEncoderWithDescriptor:")] IMTLComputeCommandEncoder CreateComputeCommandEncoder (MTLComputePassDescriptor computePassDescriptor); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("blitCommandEncoderWithDescriptor:")] IMTLBlitCommandEncoder CreateBlitCommandEncoder (MTLBlitPassDescriptor blitPassDescriptor); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -429,9 +442,10 @@ namespace Metal { IMTLAccelerationStructureCommandEncoder CreateAccelerationStructureCommandEncoder (); } - interface IMTLCommandQueue {} + interface IMTLCommandQueue { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLCommandQueue { @@ -451,12 +465,12 @@ namespace Metal { [return: NullAllowed] IMTLCommandBuffer CommandBufferWithUnretainedReferences (); - [Deprecated (PlatformName.iOS, 11, 0, message : "Use 'MTLCaptureScope' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'MTLCaptureScope' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'MTLCaptureScope' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'MTLCaptureScope' instead.")] [Abstract, Export ("insertDebugCaptureBoundary")] void InsertDebugCaptureBoundary (); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -465,12 +479,13 @@ namespace Metal { IMTLCommandBuffer CreateCommandBuffer (MTLCommandBufferDescriptor descriptor); } - interface IMTLComputeCommandEncoder {} - - [iOS (8,0)][Mac (10,11)] + interface IMTLComputeCommandEncoder { } + + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLComputeCommandEncoder : MTLCommandEncoder { - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -501,7 +516,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (9,0)] + [iOS (9, 0)] [Export ("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:")] void DispatchThreadgroups (IMTLBuffer indirectBuffer, nuint indirectBufferOffset, MTLSize threadsPerThreadgroup); @@ -523,117 +538,117 @@ namespace Metal { [Abstract] [Export ("setSamplerStates:withRange:")] void SetSamplerStates (IMTLSamplerState [] samplers, NSRange range); - + [Abstract] [Export ("setTextures:withRange:")] void SetTextures (IMTLTexture [] textures, NSRange range); - [iOS (8,3)] + [iOS (8, 3)] [Abstract] [Export ("setBufferOffset:atIndex:")] void SetBufferOffset (nuint offset, nuint index); - [iOS (8,3)] + [iOS (8, 3)] [Abstract] [Export ("setBytes:length:atIndex:")] void SetBytes (IntPtr bytes, nuint length, nuint index); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setStageInRegion:")] void SetStage (MTLRegion region); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("setStageInRegionWithIndirectBuffer:indirectBufferOffset:")] void SetStageInRegion (IMTLBuffer indirectBuffer, nuint indirectBufferOffset); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("updateFence:")] void Update (IMTLFence fence); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("waitForFence:")] void Wait (IMTLFence fence); - [Mac (10,13)] - [iOS (11,0)] - [TV (14,5)] + [Mac (10, 13)] + [iOS (11, 0)] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("dispatchThreads:threadsPerThreadgroup:")] void DispatchThreads (MTLSize threadsPerGrid, MTLSize threadsPerThreadgroup); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useResource:usage:")] void UseResource (IMTLResource resource, MTLResourceUsage usage); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useResources:count:usage:")] - void UseResources (IMTLResource[] resources, nuint count, MTLResourceUsage usage); - - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + void UseResources (IMTLResource [] resources, nuint count, MTLResourceUsage usage); + + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useHeap:")] void UseHeap (IMTLHeap heap); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useHeaps:count:")] - void UseHeaps (IMTLHeap[] heaps, nuint count); + void UseHeaps (IMTLHeap [] heaps, nuint count); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11,0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setImageblockWidth:height:")] void SetImageblock (nuint width, nuint height); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("memoryBarrierWithScope:")] void MemoryBarrier (MTLBarrierScope scope); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("memoryBarrierWithResources:count:")] - void MemoryBarrier (IMTLResource[] resources, nuint count); + void MemoryBarrier (IMTLResource [] resources, nuint count); - [TV (13,0), Mac (11,0), iOS (13,0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] #if NET [Abstract] #endif [Export ("executeCommandsInBuffer:withRange:")] void ExecuteCommands (IMTLIndirectCommandBuffer indirectCommandBuffer, NSRange executionRange); - [TV (13,0), Mac (11,0), iOS (13,0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] #if NET [Abstract] #endif @@ -643,7 +658,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("sampleCountersInBuffer:atSampleIndex:withBarrier:")] #if NET void SampleCounters (IMTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier); @@ -652,35 +667,35 @@ namespace Metal { void SampleCounters (MTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier); #endif - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setVisibleFunctionTable:atBufferIndex:")] void SetVisibleFunctionTable ([NullAllowed] IMTLVisibleFunctionTable visibleFunctionTable, nuint bufferIndex); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setVisibleFunctionTables:withBufferRange:")] - void SetVisibleFunctionTables (IMTLVisibleFunctionTable[] visibleFunctionTables, NSRange range); + void SetVisibleFunctionTables (IMTLVisibleFunctionTable [] visibleFunctionTables, NSRange range); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setIntersectionFunctionTable:atBufferIndex:")] void SetIntersectionFunctionTable ([NullAllowed] IMTLIntersectionFunctionTable intersectionFunctionTable, nuint bufferIndex); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setIntersectionFunctionTables:withBufferRange:")] - void SetIntersectionFunctionTables (IMTLIntersectionFunctionTable[] intersectionFunctionTables, NSRange range); + void SetIntersectionFunctionTables (IMTLIntersectionFunctionTable [] intersectionFunctionTables, NSRange range); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -689,7 +704,8 @@ namespace Metal { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLComputePipelineReflection { [Export ("arguments")] @@ -700,8 +716,9 @@ namespace Metal { #endif } - interface IMTLComputePipelineState {} - [iOS (8,0)][Mac (10,11)] + interface IMTLComputePipelineState { } + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLComputePipelineState { [Abstract, Export ("device")] @@ -713,29 +730,29 @@ namespace Metal { [Abstract, Export ("threadExecutionWidth")] nuint ThreadExecutionWidth { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [NullAllowed, Export ("label")] string Label { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("staticThreadgroupMemoryLength")] nuint StaticThreadgroupMemoryLength { get; } - [iOS (11,0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("imageblockMemoryLengthForDimensions:")] nuint GetImageblockMemoryLength (MTLSize imageblockDimensions); - [TV (13, 0), Mac (11,0), iOS (13, 0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] [MacCatalyst (14, 0)] #if NET [Abstract] @@ -743,22 +760,22 @@ namespace Metal { [Export ("supportIndirectCommandBuffers")] bool SupportIndirectCommandBuffers { get; } - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("functionHandleWithFunction:")] IMTLFunctionHandle CreateFunctionHandle (IMTLFunction function); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("newComputePipelineStateWithAdditionalBinaryFunctions:error:")] [return: Release] - IMTLComputePipelineState CreateComputePipelineState (IMTLFunction[] functions, [NullAllowed] out NSError error); + IMTLComputePipelineState CreateComputePipelineState (IMTLFunction [] functions, [NullAllowed] out NSError error); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -766,7 +783,7 @@ namespace Metal { [return: Release] IMTLVisibleFunctionTable CreateVisibleFunctionTable (MTLVisibleFunctionTableDescriptor descriptor); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -775,27 +792,28 @@ namespace Metal { IMTLIntersectionFunctionTable CreateIntersectionFunctionTable (MTLIntersectionFunctionTableDescriptor descriptor); } - interface IMTLBlitCommandEncoder {} - - [iOS (8,0)][Mac (10,11)] + interface IMTLBlitCommandEncoder { } + + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLBlitCommandEncoder : MTLCommandEncoder { - [NoiOS, NoTV, MacCatalyst (15,0)] + [NoiOS, NoTV, MacCatalyst (15, 0)] [Abstract, Export ("synchronizeResource:")] void Synchronize (IMTLResource resource); - [NoiOS, NoTV, MacCatalyst (15,0)] + [NoiOS, NoTV, MacCatalyst (15, 0)] [Abstract, Export ("synchronizeTexture:slice:level:")] void Synchronize (IMTLTexture texture, nuint slice, nuint level); [Abstract, Export ("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:")] - void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, MTLOrigin destinationOrigin); + void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, MTLOrigin destinationOrigin); [Abstract, Export ("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:")] - void CopyFromBuffer (IMTLBuffer sourceBuffer, nuint sourceOffset, nuint sourceBytesPerRow, nuint sourceBytesPerImage, MTLSize sourceSize, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, MTLOrigin destinationOrigin); + void CopyFromBuffer (IMTLBuffer sourceBuffer, nuint sourceOffset, nuint sourceBytesPerRow, nuint sourceBytesPerImage, MTLSize sourceSize, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, MTLOrigin destinationOrigin); - [iOS (9,0)] + [iOS (9, 0)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -804,15 +822,15 @@ namespace Metal { void CopyFromBuffer (IMTLBuffer sourceBuffer, nuint sourceOffset, nuint sourceBytesPerRow, nuint sourceBytesPerImage, MTLSize sourceSize, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, MTLOrigin destinationOrigin, MTLBlitOption options); [Abstract, Export ("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:")] - void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLBuffer destinationBuffer, nuint destinationOffset, nuint destinatinBytesPerRow, nuint destinationBytesPerImage); + void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLBuffer destinationBuffer, nuint destinationOffset, nuint destinatinBytesPerRow, nuint destinationBytesPerImage); - [iOS (9,0)] + [iOS (9, 0)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif [Export ("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:")] - void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLBuffer destinationBuffer, nuint destinationOffset, nuint destinatinBytesPerRow, nuint destinationBytesPerImage, MTLBlitOption options); + void CopyFromTexture (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, IMTLBuffer destinationBuffer, nuint destinationOffset, nuint destinatinBytesPerRow, nuint destinationBytesPerImage, MTLBlitOption options); [Abstract, Export ("generateMipmapsForTexture:")] void GenerateMipmapsForTexture (IMTLTexture texture); @@ -822,64 +840,64 @@ namespace Metal { [Abstract, Export ("copyFromBuffer:sourceOffset:toBuffer:destinationOffset:size:")] void CopyFromBuffer (IMTLBuffer sourceBuffer, nuint sourceOffset, IMTLBuffer destinationBuffer, nuint destinationOffset, nuint size); - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("updateFence:")] void Update (IMTLFence fence); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("waitForFence:")] void Wait (IMTLFence fence); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("optimizeContentsForGPUAccess:")] void OptimizeContentsForGpuAccess (IMTLTexture texture); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("optimizeContentsForGPUAccess:slice:level:")] void OptimizeContentsForGpuAccess (IMTLTexture texture, nuint slice, nuint level); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("optimizeContentsForCPUAccess:")] void OptimizeContentsForCpuAccess (IMTLTexture texture); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("optimizeContentsForCPUAccess:slice:level:")] void OptimizeContentsForCpuAccess (IMTLTexture texture, nuint slice, nuint level); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("resetCommandsInBuffer:withRange:")] void ResetCommands (IMTLIndirectCommandBuffer buffer, NSRange range); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif [Export ("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:")] void Copy (IMTLIndirectCommandBuffer source, NSRange sourceRange, IMTLIndirectCommandBuffer destination, nuint destinationIndex); - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] #if NET [Abstract] #endif @@ -889,25 +907,25 @@ namespace Metal { #if NET && !__MACOS__ && !__MACCATALYST__ [Abstract] #endif - [Mac (11,0), NoTV, iOS (13,0), MacCatalyst (15,0)] + [Mac (11, 0), NoTV, iOS (13, 0), MacCatalyst (15, 0)] [Export ("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:")] void GetTextureAccessCounters (IMTLTexture texture, MTLRegion region, nuint mipLevel, nuint slice, bool resetCounters, IMTLBuffer countersBuffer, nuint countersBufferOffset); #if NET && !__MACOS__ && !__MACCATALYST__ [Abstract] #endif - [Mac (11,0), NoTV, iOS (13,0), MacCatalyst (15,0)] + [Mac (11, 0), NoTV, iOS (13, 0), MacCatalyst (15, 0)] [Export ("resetTextureAccessCounters:region:mipLevel:slice:")] void ResetTextureAccessCounters (IMTLTexture texture, MTLRegion region, nuint mipLevel, nuint slice); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Abstract] #endif [Export ("copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:")] void Copy (IMTLTexture sourceTexture, nuint sourceSlice, nuint sourceLevel, IMTLTexture destinationTexture, nuint destinationSlice, nuint destinationLevel, nuint sliceCount, nuint levelCount); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Abstract] #endif @@ -917,7 +935,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("sampleCountersInBuffer:atSampleIndex:withBarrier:")] #if NET void SampleCounters (IMTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier); @@ -928,7 +946,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("resolveCounters:inRange:destinationBuffer:destinationOffset:")] #if NET void ResolveCounters (IMTLCounterSampleBuffer sampleBuffer, NSRange range, IMTLBuffer destinationBuffer, nuint destinationOffset); @@ -936,13 +954,12 @@ namespace Metal { void ResolveCounters (MTLCounterSampleBuffer sampleBuffer, NSRange range, IMTLBuffer destinationBuffer, nuint destinationOffset); #endif } - - interface IMTLFence {} - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + interface IMTLFence { } + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - interface MTLFence - { + interface MTLFence { [Abstract] [Export ("device")] IMTLDevice Device { get; } @@ -952,9 +969,10 @@ namespace Metal { string Label { get; set; } } - interface IMTLDevice {} - - [iOS (8,0)][Mac (10,11)] + interface IMTLDevice { } + + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLDevice { @@ -964,14 +982,14 @@ namespace Metal { #if NET [Abstract] // new required member, but that breaks our binary compat, so we can't do that in our existing code. #endif - [iOS (9,0)] + [iOS (9, 0)] [Export ("maxThreadsPerThreadgroup")] MTLSize MaxThreadsPerThreadgroup { get; } #if NET [Abstract] // new required member, but that breaks our binary compat, so we can't do that in our existing code. #endif - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [NoiOS] [NoTV] [Export ("lowPower")] @@ -980,13 +998,13 @@ namespace Metal { #if NET [Abstract] // new required member, but that breaks our binary compat, so we can't do that in our existing code. #endif - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [NoiOS] [NoTV] [Export ("headless")] bool Headless { [Bind ("isHeadless")] get; } - - [NoiOS, NoTV, NoWatch, Mac (10,12), MacCatalyst (15,0)] + + [NoiOS, NoTV, NoWatch, Mac (10, 12), MacCatalyst (15, 0)] #if NET [Abstract] #endif @@ -996,27 +1014,27 @@ namespace Metal { #if NET [Abstract] // new required member, but that breaks our binary compat, so we can't do that in our existing code. #endif - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [NoiOS] [NoTV] [Export ("depth24Stencil8PixelFormatSupported")] bool Depth24Stencil8PixelFormatSupported { [Bind ("isDepth24Stencil8PixelFormatSupported")] get; } - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("heapTextureSizeAndAlignWithDescriptor:")] MTLSizeAndAlign GetHeapTextureSizeAndAlign (MTLTextureDescriptor desc); - [iOS (10,0), TV (10,0), NoWatch, Mac (10, 13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("heapBufferSizeAndAlignWithLength:options:")] MTLSizeAndAlign GetHeapBufferSizeAndAlignWithLength (nuint length, MTLResourceOptions options); - [iOS (10,0), TV (10,0), NoWatch, Mac (10, 13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif @@ -1063,13 +1081,13 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (11,0), TV (11,0), NoWatch, Mac (10,11)] + [iOS (11, 0), TV (11, 0), NoWatch, Mac (10, 11)] [return: NullAllowed] [return: Release] [Export ("newTextureWithDescriptor:iosurface:plane:")] IMTLTexture CreateTexture (MTLTextureDescriptor descriptor, IOSurface.IOSurface iosurface, nuint plane); - [iOS (13,0), TV (13,0), Mac (10,14)] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] #if NET [Abstract] #endif @@ -1078,7 +1096,7 @@ namespace Metal { [return: Release] IMTLTexture CreateSharedTexture (MTLTextureDescriptor descriptor); - [iOS (13,0), TV (13,0), Mac (10,14)] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] #if NET [Abstract] #endif @@ -1121,11 +1139,11 @@ namespace Metal { [Abstract, Export ("newLibraryWithSource:options:completionHandler:")] [Async] void CreateLibrary (string source, MTLCompileOptions options, Action completionHandler); - + #if NET [Abstract] #endif - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("newDefaultLibraryWithBundle:error:")] [return: Release] [return: NullAllowed] @@ -1168,7 +1186,7 @@ namespace Metal { [Abstract, Export ("newComputePipelineStateWithFunction:options:completionHandler:")] void CreateComputePipelineState (IMTLFunction computeFunction, MTLPipelineOption options, Action completionHandler); - [iOS (9,0)] + [iOS (9, 0)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -1177,15 +1195,15 @@ namespace Metal { [return: Release] IMTLComputePipelineState CreateComputePipelineState (MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, out MTLComputePipelineReflection reflection, out NSError error); - [iOS (9,0)] + [iOS (9, 0)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif [Export ("newComputePipelineStateWithDescriptor:options:completionHandler:")] void CreateComputePipelineState (MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, MTLNewComputePipelineStateWithReflectionCompletionHandler completionHandler); - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif @@ -1196,7 +1214,7 @@ namespace Metal { [Abstract, Export ("supportsFeatureSet:")] bool SupportsFeatureSet (MTLFeatureSet featureSet); - [iOS (9,0)] + [iOS (9, 0)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -1204,35 +1222,35 @@ namespace Metal { [Export ("supportsTextureSampleCount:")] bool SupportsTextureSampleCount (nuint sampleCount); - [Mac (10, 13), NoiOS, NoWatch, NoTV, MacCatalyst (15,0)] + [Mac (10, 13), NoiOS, NoWatch, NoTV, MacCatalyst (15, 0)] #if NET [Abstract] #endif [Export ("removable")] bool Removable { [Bind ("isRemovable")] get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("readWriteTextureSupport")] MTLReadWriteTextureTier ReadWriteTextureSupport { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("argumentBuffersSupport")] MTLArgumentBuffersTier ArgumentBuffersSupport { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("rasterOrderGroupsSupported")] bool RasterOrderGroupsSupported { [Bind ("areRasterOrderGroupsSupported")] get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -1241,58 +1259,58 @@ namespace Metal { [return: Release] IMTLLibrary CreateLibrary (NSUrl url, [NullAllowed] out NSError error); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("minimumLinearTextureAlignmentForPixelFormat:")] nuint GetMinimumLinearTextureAlignment (MTLPixelFormat format); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("minimumTextureBufferAlignmentForPixelFormat:")] nuint GetMinimumTextureBufferAlignment (MTLPixelFormat format); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("maxThreadgroupMemoryLength")] nuint MaxThreadgroupMemoryLength { get; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("maxArgumentBufferSamplerCount")] nuint MaxArgumentBufferSamplerCount { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("programmableSamplePositionsSupported")] bool ProgrammableSamplePositionsSupported { [Bind ("areProgrammableSamplePositionsSupported")] get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("getDefaultSamplePositions:count:")] void GetDefaultSamplePositions (IntPtr positions, nuint count); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("newArgumentEncoderWithArguments:")] [return: NullAllowed] [return: Release] - IMTLArgumentEncoder CreateArgumentEncoder (MTLArgumentDescriptor[] arguments); + IMTLArgumentEncoder CreateArgumentEncoder (MTLArgumentDescriptor [] arguments); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -1301,7 +1319,7 @@ namespace Metal { [return: Release] IMTLIndirectCommandBuffer CreateIndirectCommandBuffer (MTLIndirectCommandBufferDescriptor descriptor, nuint maxCount, MTLResourceOptions options); - [Mac (10, 14), iOS (12, 0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -1310,7 +1328,7 @@ namespace Metal { [Export ("newEvent")] IMTLEvent CreateEvent (); - [Mac (10, 14), iOS (12, 0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -1319,7 +1337,7 @@ namespace Metal { [Export ("newSharedEvent")] IMTLSharedEvent CreateSharedEvent (); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif @@ -1328,21 +1346,21 @@ namespace Metal { [return: Release] IMTLSharedEvent CreateSharedEvent (MTLSharedEventHandle sharedEventHandle); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("maxBufferLength")] nuint MaxBufferLength { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("registryID")] ulong RegistryId { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -1367,8 +1385,8 @@ namespace Metal { #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11,0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif @@ -1378,8 +1396,8 @@ namespace Metal { IMTLRenderPipelineState CreateRenderPipelineState (MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, [NullAllowed] out MTLRenderPipelineReflection reflection, [NullAllowed] out NSError error); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11,0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif @@ -1390,7 +1408,7 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Export ("supportsVertexAmplificationCount:")] bool SupportsVertexAmplification (nuint count); @@ -1398,7 +1416,7 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Export ("supportsRasterizationRateMapWithLayerCount:")] bool SupportsRasterizationRateMap (nuint layerCount); @@ -1406,7 +1424,7 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), NoTV, iOS (13,0)] + [Mac (11, 0), NoTV, iOS (13, 0)] [Export ("sparseTileSizeWithTextureType:pixelFormat:sampleCount:")] MTLSize GetSparseTileSize (MTLTextureType textureType, MTLPixelFormat pixelFormat, nuint sampleCount); @@ -1414,7 +1432,7 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), NoTV, iOS (13, 0)] + [Mac (11, 0), NoTV, iOS (13, 0)] [Export ("sparseTileSizeInBytes")] nuint SparseTileSizeInBytes { get; } @@ -1422,19 +1440,19 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Export ("newRasterizationRateMapWithDescriptor:")] [return: NullAllowed] [return: Release] IMTLRasterizationRateMap CreateRasterizationRateMap (MTLRasterizationRateMapDescriptor descriptor); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), NoTV, iOS (13,0)] + [Mac (11, 0), NoTV, iOS (13, 0)] [Export ("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")] void ConvertSparseTileRegions (IntPtr tileRegions, IntPtr pixelRegions, MTLSize tileSize, nuint numRegions); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), NoTV, iOS (13,0)] + [Mac (11, 0), NoTV, iOS (13, 0)] [Export ("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")] void ConvertSparsePixelRegions (IntPtr pixelRegions, IntPtr tileRegions, MTLSize tileSize, MTLSparseTextureRegionAlignmentMode mode, nuint numRegions); @@ -1445,7 +1463,7 @@ namespace Metal { [Export ("hasUnifiedMemory")] bool HasUnifiedMemory { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Abstract] #endif @@ -1455,14 +1473,14 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), NoTV, Mac (10, 15), NoMacCatalyst] + [iOS (14, 0), NoTV, Mac (10, 15), NoMacCatalyst] [Export ("barycentricCoordsSupported")] bool BarycentricCoordsSupported { [Bind ("areBarycentricCoordsSupported")] get; } #if NET [Abstract] #endif - [iOS (14,0), NoTV, Mac (10, 15), NoMacCatalyst] + [iOS (14, 0), NoTV, Mac (10, 15), NoMacCatalyst] [Export ("supportsShaderBarycentricCoordinates")] bool SupportsShaderBarycentricCoordinates { get; } @@ -1483,19 +1501,19 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10, 15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [NullAllowed, Export ("counterSets")] #if NET IMTLCounterSet[] CounterSets { get; } #else [Obsolete ("Use 'GetIMTLCounterSets' instead.")] - MTLCounterSet[] CounterSets { get; } + MTLCounterSet [] CounterSets { get; } #endif #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("newCounterSampleBufferWithDescriptor:error:")] [return: NullAllowed] [return: Release] @@ -1509,7 +1527,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("sampleTimestamps:gpuTimestamp:")] void GetSampleTimestamps (nuint cpuTimestamp, nuint gpuTimestamp); @@ -1542,7 +1560,7 @@ namespace Metal { nuint LocationNumber { get; } [Mac (11, 0), NoTV] - [iOS (14,5)] + [iOS (14, 5)] #if NET [Abstract] #endif @@ -1550,7 +1568,7 @@ namespace Metal { bool Supports32BitFloatFiltering { get; } [Mac (11, 0), NoTV] - [iOS (14,5)] + [iOS (14, 5)] #if NET [Abstract] #endif @@ -1564,28 +1582,28 @@ namespace Metal { [Export ("supportsBCTextureCompression")] bool SupportsBCTextureCompression { get; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("supportsPullModelInterpolation")] bool SupportsPullModelInterpolation { get; } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("supportsCounterSampling:")] bool SupportsCounterSampling (MTLCounterSamplingPoint samplingPoint); - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("supportsDynamicLibraries")] bool SupportsDynamicLibraries { get; } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -1594,7 +1612,7 @@ namespace Metal { [return: Release] IMTLDynamicLibrary CreateDynamicLibrary (IMTLLibrary library, [NullAllowed] out NSError error); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -1603,7 +1621,7 @@ namespace Metal { [return: Release] IMTLDynamicLibrary CreateDynamicLibrary (NSUrl url, [NullAllowed] out NSError error); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -1619,7 +1637,7 @@ namespace Metal { [Export ("supportsRaytracing")] bool SupportsRaytracing { get; } - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -1628,7 +1646,7 @@ namespace Metal { MTLAccelerationStructureSizes CreateAccelerationStructureSizes (MTLAccelerationStructureDescriptor descriptor); #pragma warning restore - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -1637,7 +1655,7 @@ namespace Metal { [return: Release] IMTLAccelerationStructure CreateAccelerationStructure (nuint size); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -1654,7 +1672,7 @@ namespace Metal { bool SupportsFunctionPointers { get; } [Mac (11, 0), NoTV] - [iOS (14,5)] + [iOS (14, 5)] #if NET [Abstract] #endif @@ -1664,35 +1682,35 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("supportsRenderDynamicLibraries")] bool SupportsRenderDynamicLibraries { get; } #if NET [Abstract] #endif - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("supportsRaytracingFromRender")] bool SupportsRaytracingFromRender { get; } #if NET [Abstract] #endif - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("supportsPrimitiveMotionBlur")] bool SupportsPrimitiveMotionBlur { get; } - + #if NET [Abstract] #endif - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoTV, NoWatch] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV, NoWatch] [Export ("supportsFunctionPointersFromRender")] bool SupportsFunctionPointersFromRender { get; } - + #if NET [Abstract] #endif - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("newLibraryWithStitchedDescriptor:error:")] [return: NullAllowed] [return: Release] @@ -1702,19 +1720,20 @@ namespace Metal { [Abstract] #endif [Async] - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("newLibraryWithStitchedDescriptor:completionHandler:")] void CreateLibrary (MTLStitchedLibraryDescriptor descriptor, Action completionHandler); } - interface IMTLDrawable {} - [iOS (8,0)][Mac (10,11)] + interface IMTLDrawable { } + [iOS (8, 0)] + [Mac (10, 11)] [Protocol, Model] [BaseType (typeof (NSObject))] partial interface MTLDrawable { [Abstract, Export ("present")] void Present (); - + [Abstract, Export ("presentAtTime:")] void Present (double presentationTime); @@ -1722,7 +1741,9 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (10,3)][TV (10,2)][Mac (10,15,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 15, 4)] [Export ("presentAfterMinimumDuration:")] void PresentAfter (double duration); @@ -1730,7 +1751,9 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (10,3)][TV (10,2)][Mac (10,15,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 15, 4)] [Export ("addPresentedHandler:")] void AddPresentedHandler (Action block); @@ -1738,7 +1761,9 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (10,3)][TV (10,2)][Mac (10,15,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 15, 4)] [Export ("presentedTime")] double /* CFTimeInterval */ PresentedTime { get; } @@ -1746,7 +1771,9 @@ namespace Metal { [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (10,3)][TV (10,2)][Mac (10,15,4)] + [iOS (10, 3)] + [TV (10, 2)] + [Mac (10, 15, 4)] [Export ("drawableID")] #if NET nuint DrawableId { get; } @@ -1755,11 +1782,12 @@ namespace Metal { #endif } - interface IMTLTexture {} + interface IMTLTexture { } // Apple added several new *required* members in iOS 9, // but that breaks our binary compat, so we can't do that in our existing code. - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLTexture : MTLResource { [iOS (8, 0)] @@ -1770,7 +1798,8 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] // by default this property is null [Export ("parentTexture")] IMTLTexture ParentTexture { get; } @@ -1778,21 +1807,24 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("parentRelativeLevel")] nuint ParentRelativeLevel { get; } #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("parentRelativeSlice")] nuint ParentRelativeSlice { get; } #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] // by default this property is null [Export ("buffer")] IMTLBuffer Buffer { get; } @@ -1800,14 +1832,16 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("bufferOffset")] nuint BufferOffset { get; } #if NET [Abstract] #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("bufferBytesPerRow")] nuint BufferBytesPerRow { get; } @@ -1838,14 +1872,14 @@ namespace Metal { [Abstract, Export ("framebufferOnly")] bool FramebufferOnly { [Bind ("isFramebufferOnly")] get; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("allowGPUOptimizedContents")] bool AllowGpuOptimizedContents { get; } - [NoMac, iOS (15,0), NoMacCatalyst, NoTV, NoWatch] + [NoMac, iOS (15, 0), NoMacCatalyst, NoTV, NoWatch] #if NET [Abstract] #endif @@ -1873,11 +1907,11 @@ namespace Metal { [Abstract] [Export ("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")] - void GetBytes (IntPtr pixelBytes, nuint bytesPerRow, nuint bytesPerImage, MTLRegion region, nuint level, nuint slice); + void GetBytes (IntPtr pixelBytes, nuint bytesPerRow, nuint bytesPerImage, MTLRegion region, nuint level, nuint slice); [Abstract] [Export ("getBytes:bytesPerRow:fromRegion:mipmapLevel:")] - void GetBytes (IntPtr pixelBytes, nuint bytesPerRow, MTLRegion region, nuint level); + void GetBytes (IntPtr pixelBytes, nuint bytesPerRow, MTLRegion region, nuint level); [Abstract] [Export ("replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:")] @@ -1887,28 +1921,28 @@ namespace Metal { [Export ("replaceRegion:mipmapLevel:withBytes:bytesPerRow:")] void ReplaceRegion (MTLRegion region, nuint level, IntPtr pixelBytes, nuint bytesPerRow); - [Mac (10, 11), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 11), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [NullAllowed, Export ("iosurface")] IOSurface.IOSurface IOSurface { get; } - [Mac (10, 11), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 11), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("iosurfacePlane")] nuint IOSurfacePlane { get; } - [iOS (13,0), TV (13,0), Mac (10, 14)] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] #if NET [Abstract] #endif [Export ("shareable")] bool Shareable { [Bind ("isShareable")] get; } - [iOS (13,0), TV (13,0), Mac (10, 14)] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] #if NET [Abstract] #endif @@ -1920,36 +1954,36 @@ namespace Metal { #if NET && !__MACOS__ && !__MACCATALYST__ [Abstract] #endif - - [Mac (11,0), NoTV, iOS (13, 0), MacCatalyst (15,0)] + + [Mac (11, 0), NoTV, iOS (13, 0), MacCatalyst (15, 0)] [Export ("firstMipmapInTail")] nuint FirstMipmapInTail { get; } #if NET && !__MACOS__ && !__MACCATALYST__ [Abstract] #endif - [Mac (11,0), NoTV, iOS (13, 0), MacCatalyst (15,0)] + [Mac (11, 0), NoTV, iOS (13, 0), MacCatalyst (15, 0)] [Export ("tailSizeInBytes")] nuint TailSizeInBytes { get; } #if NET && !__MACOS__ && !__MACCATALYST__ [Abstract] #endif - [Mac (11,0), NoTV, iOS (13, 0), MacCatalyst (15,0)] + [Mac (11, 0), NoTV, iOS (13, 0), MacCatalyst (15, 0)] [Export ("isSparse")] bool IsSparse { get; } #if NET [Abstract] #endif - [Mac (10, 15), TV (13,0), iOS (13, 0)] + [Mac (10, 15), TV (13, 0), iOS (13, 0)] [Export ("swizzle")] MTLTextureSwizzleChannels Swizzle { get; } #if NET [Abstract] #endif - [Mac (10,15), TV (13,0), iOS (13,0)] + [Mac (10, 15), TV (13, 0), iOS (13, 0)] [Export ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:")] [return: NullAllowed] [return: Release] @@ -1965,15 +1999,16 @@ namespace Metal { #if NET [Abstract] #endif - [NoiOS, NoTV, Mac (10,15)] + [NoiOS, NoTV, Mac (10, 15)] [Export ("newRemoteTextureViewForDevice:")] [return: NullAllowed] [return: Release] IMTLTexture CreateRemoteTexture (IMTLDevice device); } - - [iOS (8,0)][Mac (10,11)] + + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLTextureDescriptor : NSCopying { @@ -2010,31 +2045,31 @@ namespace Metal { [Static, Export ("textureCubeDescriptorWithPixelFormat:size:mipmapped:")] MTLTextureDescriptor CreateTextureCubeDescriptor (MTLPixelFormat pixelFormat, nuint size, bool mipmapped); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Static, Export ("textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:")] MTLTextureDescriptor CreateTextureBufferDescriptor (MTLPixelFormat pixelFormat, nuint width, MTLResourceOptions resourceOptions, MTLTextureUsage usage); - [iOS (9,0)] + [iOS (9, 0)] [Export ("cpuCacheMode", ArgumentSemantic.Assign)] MTLCpuCacheMode CpuCacheMode { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("storageMode", ArgumentSemantic.Assign)] MTLStorageMode StorageMode { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("usage", ArgumentSemantic.Assign)] - MTLTextureUsage Usage { get; set; } + MTLTextureUsage Usage { get; set; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("allowGPUOptimizedContents")] bool AllowGpuOptimizedContents { get; set; } - [NoMac, iOS (15,0), NoMacCatalyst, NoTV, NoWatch] + [NoMac, iOS (15, 0), NoMacCatalyst, NoTV, NoWatch] [Export ("compressionType")] MTLTextureCompressionType CompressionType { get; set; } - [Mac (10, 15), iOS (13, 0), TV (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("hazardTrackingMode", ArgumentSemantic.Assign)] MTLHazardTrackingMode HazardTrackingMode { get; set; } @@ -2043,7 +2078,8 @@ namespace Metal { MTLTextureSwizzleChannels Swizzle { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLSamplerDescriptor : NSCopying { @@ -2072,20 +2108,20 @@ namespace Metal { bool NormalizedCoordinates { get; set; } [Export ("lodMinClamp")] - float LodMinClamp { get; set; } /* float, not CGFloat */ + float LodMinClamp { get; set; } /* float, not CGFloat */ [Export ("lodMaxClamp")] float LodMaxClamp { get; set; } /* float, not CGFloat */ - [iOS (9,0), Mac (11,0)] + [iOS (9, 0), Mac (11, 0)] [Export ("lodAverage")] bool LodAverage { get; set; } - [iOS (14,0), NoTV, NoWatch, Mac (10,12)] + [iOS (14, 0), NoTV, NoWatch, Mac (10, 12)] [Export ("borderColor", ArgumentSemantic.Assign)] MTLSamplerBorderColor BorderColor { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("compareFunction")] MTLCompareFunction CompareFunction { get; set; } @@ -2093,15 +2129,16 @@ namespace Metal { [NullAllowed] string Label { get; set; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("supportArgumentBuffers")] bool SupportArgumentBuffers { get; set; } } - interface IMTLSamplerState {} - [iOS (8,0)][Mac (10,11)] + interface IMTLSamplerState { } + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - partial interface MTLSamplerState { + partial interface MTLSamplerState { [Abstract, Export ("label")] string Label { get; } @@ -2110,7 +2147,8 @@ namespace Metal { IMTLDevice Device { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLRenderPipelineDescriptor : NSCopying { @@ -2141,7 +2179,7 @@ namespace Metal { [Export ("rasterizationEnabled")] bool RasterizationEnabled { [Bind ("isRasterizationEnabled")] get; set; } - + [Export ("reset")] void Reset (); @@ -2153,100 +2191,101 @@ namespace Metal { [Export ("stencilAttachmentPixelFormat")] MTLPixelFormat StencilAttachmentPixelFormat { get; set; } - - [iOS (12,0)] - [TV (14,5)] + + [iOS (12, 0)] + [TV (14, 5)] [NoWatch] [Export ("inputPrimitiveTopology", ArgumentSemantic.Assign)] MTLPrimitiveTopologyClass InputPrimitiveTopology { get; set; } - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationPartitionMode", ArgumentSemantic.Assign)] MTLTessellationPartitionMode TessellationPartitionMode { get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("maxTessellationFactor")] nuint MaxTessellationFactor { get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationFactorScaleEnabled")] bool IsTessellationFactorScaleEnabled { [Bind ("isTessellationFactorScaleEnabled")] get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationFactorFormat", ArgumentSemantic.Assign)] MTLTessellationFactorFormat TessellationFactorFormat { get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationControlPointIndexType", ArgumentSemantic.Assign)] MTLTessellationControlPointIndexType TessellationControlPointIndexType { get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationFactorStepFunction", ArgumentSemantic.Assign)] MTLTessellationFactorStepFunction TessellationFactorStepFunction { get; set; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("tessellationOutputWindingOrder", ArgumentSemantic.Assign)] MTLWinding TessellationOutputWindingOrder { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("vertexBuffers")] MTLPipelineBufferDescriptorArray VertexBuffers { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("fragmentBuffers")] MTLPipelineBufferDescriptorArray FragmentBuffers { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("rasterSampleCount")] nuint RasterSampleCount { get; set; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("supportIndirectCommandBuffers")] bool SupportIndirectCommandBuffers { get; set; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13, 0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Export ("maxVertexAmplificationCount")] nuint MaxVertexAmplificationCount { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [NullAllowed, Export ("binaryArchives", ArgumentSemantic.Copy)] - IMTLBinaryArchive[] BinaryArchives { get; set; } + IMTLBinaryArchive [] BinaryArchives { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("vertexPreloadedLibraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] VertexPreloadedLibraries { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + IMTLDynamicLibrary [] VertexPreloadedLibraries { get; set; } + + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [NullAllowed, Export ("vertexLinkedFunctions", ArgumentSemantic.Copy)] MTLLinkedFunctions VertexLinkedFunctions { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("supportAddingVertexBinaryFunctions")] bool SupportAddingVertexBinaryFunctions { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("supportAddingFragmentBinaryFunctions")] bool SupportAddingFragmentBinaryFunctions { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("maxVertexCallStackDepth")] nuint MaxVertexCallStackDepth { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("maxFragmentCallStackDepth")] nuint MaxFragmentCallStackDepth { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] - [Export ("fragmentPreloadedLibraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] FragmentPreloadedLibraries { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] + [Export ("fragmentPreloadedLibraries", ArgumentSemantic.Copy)] + IMTLDynamicLibrary [] FragmentPreloadedLibraries { get; set; } + + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [NullAllowed, Export ("fragmentLinkedFunctions", ArgumentSemantic.Copy)] MTLLinkedFunctions FragmentLinkedFunctions { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPipelineColorAttachmentDescriptorArray { @@ -2257,9 +2296,10 @@ namespace Metal { void SetObject ([NullAllowed] MTLRenderPipelineColorAttachmentDescriptor attachment, nuint attachmentIndex); } - interface IMTLRenderPipelineState {} + interface IMTLRenderPipelineState { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLRenderPipelineState { @@ -2269,39 +2309,39 @@ namespace Metal { [Abstract, Export ("device")] IMTLDevice Device { get; } - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("maxTotalThreadsPerThreadgroup")] nuint MaxTotalThreadsPerThreadgroup { get; } - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("threadgroupSizeMatchesTileSize")] bool ThreadgroupSizeMatchesTileSize { get; } - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("imageblockSampleLength")] nuint ImageblockSampleLength { get; } - [iOS (11,0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("imageblockMemoryLengthForDimensions:")] nuint GetImageblockMemoryLength (MTLSize imageblockDimensions); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [MacCatalyst (14, 0)] #if NET [Abstract] @@ -2312,7 +2352,7 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("functionHandleWithFunction:stage:")] [return: NullAllowed] IMTLFunctionHandle FunctionHandleWithFunction (IMTLFunction function, MTLRenderStages stage); @@ -2320,7 +2360,7 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("newVisibleFunctionTableWithDescriptor:stage:")] [return: NullAllowed] [return: Release] @@ -2329,7 +2369,7 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("newIntersectionFunctionTableWithDescriptor:stage:")] [return: NullAllowed] [return: Release] @@ -2338,14 +2378,15 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")] [return: NullAllowed] [return: Release] IMTLRenderPipelineState NewRenderPipelineStateWithAdditionalBinaryFunctions (MTLRenderPipelineFunctionsDescriptor additionalBinaryFunctions, [NullAllowed] out NSError error); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLVertexBufferLayoutDescriptor : NSCopying { [Export ("stride", ArgumentSemantic.UnsafeUnretained)] @@ -2358,7 +2399,8 @@ namespace Metal { nuint StepRate { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLVertexBufferLayoutDescriptorArray { [Export ("objectAtIndexedSubscript:"), Internal] @@ -2368,10 +2410,9 @@ namespace Metal { void SetObject ([NullAllowed] MTLVertexBufferLayoutDescriptor bufferDesc, nuint index); } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLAttribute - { + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLAttribute { [Export ("name")] string Name { get; } @@ -2390,11 +2431,10 @@ namespace Metal { [Export ("patchControlPointData")] bool IsPatchControlPointData { [Bind ("isPatchControlPointData")] get; } } - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLAttributeDescriptor : NSCopying - { + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLAttributeDescriptor : NSCopying { [Export ("format", ArgumentSemantic.Assign)] MTLAttributeFormat Format { get; set; } @@ -2405,10 +2445,9 @@ namespace Metal { nuint BufferIndex { get; set; } } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLAttributeDescriptorArray - { + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLAttributeDescriptorArray { [Internal] [Export ("objectAtIndexedSubscript:")] MTLAttributeDescriptor ObjectAtIndexedSubscript (nuint index); @@ -2418,7 +2457,8 @@ namespace Metal { void SetObject ([NullAllowed] MTLAttributeDescriptor attributeDesc, nuint index); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLVertexAttributeDescriptor : NSCopying { [Export ("format", ArgumentSemantic.Assign)] @@ -2431,7 +2471,8 @@ namespace Metal { nuint BufferIndex { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLVertexAttributeDescriptorArray { [Export ("objectAtIndexedSubscript:"), Internal] @@ -2441,7 +2482,8 @@ namespace Metal { void SetObject ([NullAllowed] MTLVertexAttributeDescriptor attributeDesc, nuint index); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLVertexDescriptor : NSCopying { [Static, Export ("vertexDescriptor")] @@ -2457,13 +2499,14 @@ namespace Metal { MTLVertexAttributeDescriptorArray Attributes { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLVertexAttribute { [Export ("attributeIndex")] nuint AttributeIndex { get; } - [iOS (8,3)] + [iOS (8, 3)] [Export ("attributeType")] MTLDataType AttributeType { get; } @@ -2472,22 +2515,21 @@ namespace Metal { [Export ("name")] string Name { get; } - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("patchData")] bool PatchData { [Bind ("isPatchData")] get; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Export ("patchControlPointData")] bool PatchControlPointData { [Bind ("isPatchControlPointData")] get; } } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MTLFunctionConstantValues : NSCopying - { - [iOS (11,0), TV (11,0), Mac (10,13)] + interface MTLFunctionConstantValues : NSCopying { + [iOS (11, 0), TV (11, 0), Mac (10, 13)] [Export ("init")] NativeHandle Constructor (); @@ -2503,11 +2545,10 @@ namespace Metal { [Export ("reset")] void Reset (); } - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLFunctionConstant - { + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLFunctionConstant { [Export ("name")] string Name { get; } @@ -2521,18 +2562,19 @@ namespace Metal { bool IsRequired { get; } } - interface IMTLFunction {} - [iOS (8,0)][Mac (10,11)] + interface IMTLFunction { } + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - partial interface MTLFunction { + partial interface MTLFunction { - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [NullAllowed, Export ("label")] string Label { get; set; } - + [Abstract, Export ("device")] IMTLDevice Device { get; } @@ -2545,35 +2587,35 @@ namespace Metal { [Abstract, Export ("name")] string Name { get; } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("patchType")] MTLPatchType PatchType { get; } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("patchControlPointCount")] nint PatchControlPointCount { get; } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [NullAllowed, Export ("stageInputAttributes")] - MTLAttribute[] StageInputAttributes { get; } + MTLAttribute [] StageInputAttributes { get; } - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("functionConstantsDictionary")] NSDictionary FunctionConstants { get; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -2581,7 +2623,7 @@ namespace Metal { [return: Release] IMTLArgumentEncoder CreateArgumentEncoder (nuint bufferIndex); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -2597,11 +2639,12 @@ namespace Metal { MTLFunctionOptions Options { get; } } - interface IMTLLibrary {} + interface IMTLLibrary { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - partial interface MTLLibrary { + partial interface MTLLibrary { [Abstract, Export ("label")] string Label { get; set; } @@ -2615,8 +2658,8 @@ namespace Metal { [Abstract, Export ("newFunctionWithName:")] [return: Release] IMTLFunction CreateFunction (string functionName); - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif @@ -2625,7 +2668,7 @@ namespace Metal { [return: Release] IMTLFunction CreateFunction (string name, MTLFunctionConstantValues constantValues, out NSError error); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif @@ -2636,14 +2679,14 @@ namespace Metal { [Field ("MTLLibraryErrorDomain")] NSString ErrorDomain { get; } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("newFunctionWithDescriptor:completionHandler:")] void CreateFunction (MTLFunctionDescriptor descriptor, Action completionHandler); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -2653,14 +2696,14 @@ namespace Metal { IMTLFunction CreateFunction (MTLFunctionDescriptor descriptor, [NullAllowed] out NSError error); // protocol, so no Async - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("newIntersectionFunctionWithDescriptor:completionHandler:")] void CreateIntersectionFunction (MTLIntersectionFunctionDescriptor descriptor, Action completionHandler); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif @@ -2669,14 +2712,14 @@ namespace Metal { [return: Release] IMTLFunction CreateIntersectionFunction (MTLIntersectionFunctionDescriptor descriptor, [NullAllowed] out NSError error); - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif [Export ("type")] MTLLibraryType Type { get; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -2684,7 +2727,8 @@ namespace Metal { string InstallName { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLCompileOptions : NSCopying { @@ -2699,29 +2743,30 @@ namespace Metal { [Export ("fastMathEnabled")] bool FastMathEnabled { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("languageVersion", ArgumentSemantic.Assign)] MTLLanguageVersion LanguageVersion { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [Export ("libraryType", ArgumentSemantic.Assign)] MTLLibraryType LibraryType { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [NullAllowed, Export ("installName")] string InstallName { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [NullAllowed, Export ("libraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] Libraries { get; set; } + IMTLDynamicLibrary [] Libraries { get; set; } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11, 0), iOS (13, 0), TV (14,0)] + [Mac (11, 0), iOS (13, 0), TV (14, 0)] [Export ("preserveInvariance")] bool PreserveInvariance { get; set; } } - - [iOS (8,0)][Mac (10,11)] + + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLStencilDescriptor : NSCopying { [Export ("stencilCompareFunction")] @@ -2743,7 +2788,8 @@ namespace Metal { uint WriteMask { get; set; } /* uint32_t */ } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLStructMember { [Export ("name")] @@ -2773,20 +2819,21 @@ namespace Metal { MTLArrayType ArrayType (); #endif - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("argumentIndex")] nuint ArgumentIndex { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [NullAllowed, Export ("textureReferenceType")] MTLTextureReferenceType TextureReferenceType { get; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [NullAllowed, Export ("pointerType")] MTLPointerType PointerType { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (MTLType))] interface MTLStructType { [Export ("members")] @@ -2797,11 +2844,12 @@ namespace Metal { MTLStructMember Lookup (string name); } - interface IMTLDepthStencilState {} + interface IMTLDepthStencilState { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - partial interface MTLDepthStencilState { + partial interface MTLDepthStencilState { [Abstract] [Export ("label")] string Label { get; } @@ -2811,7 +2859,8 @@ namespace Metal { IMTLDevice Device { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] partial interface MTLDepthStencilDescriptor : NSCopying { @@ -2834,9 +2883,10 @@ namespace Metal { string Label { get; set; } } - interface IMTLParallelRenderCommandEncoder {} + interface IMTLParallelRenderCommandEncoder { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed interface MTLParallelRenderCommandEncoder : MTLCommandEncoder { [Abstract] @@ -2844,43 +2894,43 @@ namespace Metal { [Autorelease] [return: NullAllowed] IMTLRenderCommandEncoder CreateRenderCommandEncoder (); - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setColorStoreAction:atIndex:")] void SetColorStoreAction (MTLStoreAction storeAction, nuint colorAttachmentIndex); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setDepthStoreAction:")] void SetDepthStoreAction (MTLStoreAction storeAction); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setStencilStoreAction:")] void SetStencilStoreAction (MTLStoreAction storeAction); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("setColorStoreActionOptions:atIndex:")] void SetColorStoreActionOptions (MTLStoreActionOptions storeActionOptions, nuint colorAttachmentIndex); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("setDepthStoreActionOptions:")] void SetDepthStoreActionOptions (MTLStoreActionOptions storeActionOptions); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -2888,9 +2938,10 @@ namespace Metal { void SetStencilStoreActionOptions (MTLStoreActionOptions storeActionOptions); } - interface IMTLRenderCommandEncoder {} + interface IMTLRenderCommandEncoder { } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed partial interface MTLRenderCommandEncoder : MTLCommandEncoder { @@ -2918,8 +2969,8 @@ namespace Metal { [Abstract, Export ("setCullMode:")] void SetCullMode (MTLCullMode cullMode); - [iOS (9,0)] // Current headers claim this member was introduced in iOS 11, but it also shows up in Xcode 7's header (as introduced in iOS 9) - [Mac (10,11), TV (11,0), NoWatch] + [iOS (9, 0)] // Current headers claim this member was introduced in iOS 11, but it also shows up in Xcode 7's header (as introduced in iOS 9) + [Mac (10, 11), TV (11, 0), NoWatch] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -2939,11 +2990,11 @@ namespace Metal { [Abstract, Export ("setFragmentBuffer:offset:atIndex:")] void SetFragmentBuffer (IMTLBuffer buffer, nuint offset, nuint index); - [iOS (8,3)] + [iOS (8, 3)] [Abstract, Export ("setFragmentBufferOffset:atIndex:")] void SetFragmentBufferOffset (nuint offset, nuint index); - [iOS (8,3)] + [iOS (8, 3)] [Abstract, Export ("setFragmentBytes:length:atIndex:")] void SetFragmentBytes (IntPtr bytes, nuint length, nuint index); @@ -2965,7 +3016,8 @@ namespace Metal { [Abstract, Export ("setStencilReferenceValue:")] void SetStencilReferenceValue (uint /* uint32_t */ referenceValue); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] @@ -2975,22 +3027,22 @@ namespace Metal { [Abstract, Export ("setVisibilityResultMode:offset:")] void SetVisibilityResultMode (MTLVisibilityResultMode mode, nuint offset); - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setColorStoreAction:atIndex:")] void SetColorStoreAction (MTLStoreAction storeAction, nuint colorAttachmentIndex); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setDepthStoreAction:")] void SetDepthStoreAction (MTLStoreAction storeAction); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif @@ -3013,7 +3065,7 @@ namespace Metal { // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif - [iOS(9,0)] + [iOS (9, 0)] [Export ("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:")] void DrawPrimitives (MTLPrimitiveType primitiveType, nuint vertexStart, nuint vertexCount, nuint instanceCount, nuint baseInstance); @@ -3021,7 +3073,7 @@ namespace Metal { // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif - [iOS(9,0)] + [iOS (9, 0)] [Export ("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:")] void DrawIndexedPrimitives (MTLPrimitiveType primitiveType, nuint indexCount, MTLIndexType indexType, IMTLBuffer indexBuffer, nuint indexBufferOffset, nuint instanceCount, nint baseVertex, nuint baseInstance); @@ -3029,7 +3081,7 @@ namespace Metal { // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif - [iOS(9,0)] + [iOS (9, 0)] [Export ("drawPrimitives:indirectBuffer:indirectBufferOffset:")] void DrawPrimitives (MTLPrimitiveType primitiveType, IMTLBuffer indirectBuffer, nuint indirectBufferOffset); @@ -3037,7 +3089,7 @@ namespace Metal { // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. [Abstract] #endif - [iOS(9,0)] + [iOS (9, 0)] [Export ("drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:")] void DrawIndexedPrimitives (MTLPrimitiveType primitiveType, MTLIndexType indexType, IMTLBuffer indexBuffer, nuint indexBufferOffset, IMTLBuffer indirectBuffer, nuint indirectBufferOffset); @@ -3056,11 +3108,11 @@ namespace Metal { [Abstract, Export ("setVertexBuffers:offsets:withRange:")] void SetVertexBuffers (IMTLBuffer [] buffers, IntPtr uintArrayPtrOffsets, NSRange range); - [iOS (8,3)] + [iOS (8, 3)] [Abstract, Export ("setVertexBufferOffset:atIndex:")] void SetVertexBufferOffset (nuint offset, nuint index); - [iOS (8,3)] + [iOS (8, 3)] [Abstract, Export ("setVertexBytes:length:atIndex:")] void SetVertexBytes (IntPtr bytes, nuint length, nuint index); @@ -3074,7 +3126,7 @@ namespace Metal { [Export ("setVertexTextures:withRange:")] void SetVertexTextures (IMTLTexture [] textures, NSRange range); - [NoiOS, NoTV, NoWatch, Mac (10,11)] + [NoiOS, NoTV, NoWatch, Mac (10, 11)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'MemoryBarrier (MTLBarrierScope, MTLRenderStages, MTLRenderStages)' instead.")] #if NET [Abstract] @@ -3082,267 +3134,267 @@ namespace Metal { [Export ("textureBarrier")] void TextureBarrier (); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("updateFence:afterStages:")] void Update (IMTLFence fence, MTLRenderStages stages); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("waitForFence:beforeStages:")] void Wait (IMTLFence fence, MTLRenderStages stages); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setTessellationFactorBuffer:offset:instanceStride:")] void SetTessellationFactorBuffer ([NullAllowed] IMTLBuffer buffer, nuint offset, nuint instanceStride); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("setTessellationFactorScale:")] void SetTessellationFactorScale (float scale); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:")] void DrawPatches (nuint numberOfPatchControlPoints, nuint patchStart, nuint patchCount, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, nuint instanceCount, nuint baseInstance); - [iOS (12,0)] - [NoWatch, Mac (10,12)] - [TV (14,5)] + [iOS (12, 0)] + [NoWatch, Mac (10, 12)] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:")] void DrawPatches (nuint numberOfPatchControlPoints, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, IMTLBuffer indirectBuffer, nuint indirectBufferOffset); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] #if NET [Abstract] #endif [Export ("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:")] void DrawIndexedPatches (nuint numberOfPatchControlPoints, nuint patchStart, nuint patchCount, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, IMTLBuffer controlPointIndexBuffer, nuint controlPointIndexBufferOffset, nuint instanceCount, nuint baseInstance); - [iOS (12,0)] - [NoWatch, Mac (10,12)] - [TV (14,5)] + [iOS (12, 0)] + [NoWatch, Mac (10, 12)] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:")] void DrawIndexedPatches (nuint numberOfPatchControlPoints, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, IMTLBuffer controlPointIndexBuffer, nuint controlPointIndexBufferOffset, IMTLBuffer indirectBuffer, nuint indirectBufferOffset); - [iOS (12,0)] - [Mac (10,13), NoWatch] - [TV (14,5)] + [iOS (12, 0)] + [Mac (10, 13), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setViewports:count:")] void SetViewports (IntPtr viewports, nuint count); - [iOS (12,0)] - [Mac (10,13), NoWatch] - [TV (14,5)] + [iOS (12, 0)] + [Mac (10, 13), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setScissorRects:count:")] void SetScissorRects (IntPtr scissorRects, nuint count); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("setColorStoreActionOptions:atIndex:")] void SetColorStoreActionOptions (MTLStoreActionOptions storeActionOptions, nuint colorAttachmentIndex); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("setDepthStoreActionOptions:")] void SetDepthStoreActionOptions (MTLStoreActionOptions storeActionOptions); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("setStencilStoreActionOptions:")] void SetStencilStoreActionOptions (MTLStoreActionOptions storeActionOptions); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useResource:usage:")] void UseResource (IMTLResource resource, MTLResourceUsage usage); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useResources:count:usage:")] - void UseResources (IMTLResource[] resources, nuint count, MTLResourceUsage usage); + void UseResources (IMTLResource [] resources, nuint count, MTLResourceUsage usage); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useHeap:")] void UseHeap (IMTLHeap heap); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif [Export ("useHeaps:count:")] - void UseHeaps (IMTLHeap[] heaps, nuint count); + void UseHeaps (IMTLHeap [] heaps, nuint count); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] #if NET [Abstract] #endif [Export ("executeCommandsInBuffer:withRange:")] void ExecuteCommands (IMTLIndirectCommandBuffer indirectCommandBuffer, NSRange executionRange); - [iOS (13,0), TV (13,0), Mac (10,14)] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] #if NET [Abstract] #endif [Export ("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:")] void ExecuteCommands (IMTLIndirectCommandBuffer indirectCommandbuffer, IMTLBuffer indirectRangeBuffer, nuint indirectBufferOffset); - [NoiOS, NoTV, Mac (10,14), MacCatalyst (15,0)] + [NoiOS, NoTV, Mac (10, 14), MacCatalyst (15, 0)] #if NET [Abstract] #endif [Export ("memoryBarrierWithScope:afterStages:beforeStages:")] void MemoryBarrier (MTLBarrierScope scope, MTLRenderStages after, MTLRenderStages before); - [NoiOS, NoTV, Mac (10,14), MacCatalyst (15,0)] + [NoiOS, NoTV, Mac (10, 14), MacCatalyst (15, 0)] #if NET [Abstract] #endif [Export ("memoryBarrierWithResources:count:afterStages:beforeStages:")] - void MemoryBarrier (IMTLResource[] resources, nuint count, MTLRenderStages after, MTLRenderStages before); + void MemoryBarrier (IMTLResource [] resources, nuint count, MTLRenderStages after, MTLRenderStages before); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("tileWidth")] nuint TileWidth { get; } - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("tileHeight")] nuint TileHeight { get; } - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileBytes:length:atIndex:")] void SetTileBytes (IntPtr /* void* */ bytes, nuint length, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileBuffer:offset:atIndex:")] void SetTileBuffer ([NullAllowed] IMTLBuffer buffer, nuint offset, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileBufferOffset:atIndex:")] void SetTileBufferOffset (nuint offset, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileBuffers:offsets:withRange:")] - void SetTileBuffers (IMTLBuffer[] buffers, IntPtr offsets, NSRange range); + void SetTileBuffers (IMTLBuffer [] buffers, IntPtr offsets, NSRange range); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileTexture:atIndex:")] void SetTileTexture ([NullAllowed] IMTLTexture texture, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileTextures:withRange:")] - void SetTileTextures (IMTLTexture[] textures, NSRange range); + void SetTileTextures (IMTLTexture [] textures, NSRange range); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileSamplerState:atIndex:")] void SetTileSamplerState ([NullAllowed] IMTLSamplerState sampler, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileSamplerStates:withRange:")] - void SetTileSamplerStates (IMTLSamplerState[] samplers, NSRange range); + void SetTileSamplerStates (IMTLSamplerState [] samplers, NSRange range); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:")] void SetTileSamplerState ([NullAllowed] IMTLSamplerState sampler, float lodMinClamp, float lodMaxClamp, nuint index); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:")] - void SetTileSamplerStates (IMTLSamplerState[] samplers, IntPtr /* float[] */ lodMinClamps, IntPtr /* float[] */ lodMaxClamps, NSRange range); + void SetTileSamplerStates (IMTLSamplerState [] samplers, IntPtr /* float[] */ lodMinClamps, IntPtr /* float[] */ lodMaxClamps, NSRange range); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif [Export ("dispatchThreadsPerTile:")] void DispatchThreadsPerTile (MTLSize threadsPerTile); - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] #if NET [Abstract] #endif @@ -3353,42 +3405,42 @@ namespace Metal { [Abstract] #endif [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Export ("setVertexAmplificationCount:viewMappings:")] void SetVertexAmplificationCount (nuint count, MTLVertexAmplificationViewMapping viewMappings); #if NET [Abstract] #endif - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("useResource:usage:stages:")] void UseResource (IMTLResource resource, MTLResourceUsage usage, MTLRenderStages stages); #if NET [Abstract] #endif - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("useResources:count:usage:stages:")] - void UseResources (IMTLResource[] resources, nuint count, MTLResourceUsage usage, MTLRenderStages stages); + void UseResources (IMTLResource [] resources, nuint count, MTLResourceUsage usage, MTLRenderStages stages); #if NET [Abstract] #endif - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("useHeap:stages:")] void UseHeap (IMTLHeap heap, MTLRenderStages stages); #if NET [Abstract] #endif - [TV(13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("useHeaps:count:stages:")] - void UseHeaps (IMTLHeap[] heaps, nuint count, MTLRenderStages stages); + void UseHeaps (IMTLHeap [] heaps, nuint count, MTLRenderStages stages); #if NET [Abstract] #endif - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Export ("sampleCountersInBuffer:atSampleIndex:withBarrier:")] #if NET void SampleCounters (IMTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier); @@ -3399,110 +3451,111 @@ namespace Metal { #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setVertexVisibleFunctionTable:atBufferIndex:")] void SetVertexVisibleFunctionTable ([NullAllowed] IMTLVisibleFunctionTable functionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setVertexVisibleFunctionTables:withBufferRange:")] - void SetVertexVisibleFunctionTables (IMTLVisibleFunctionTable[] functionTables, NSRange range); + void SetVertexVisibleFunctionTables (IMTLVisibleFunctionTable [] functionTables, NSRange range); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setVertexIntersectionFunctionTable:atBufferIndex:")] void SetVertexIntersectionFunctionTable ([NullAllowed] IMTLIntersectionFunctionTable intersectionFunctionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setVertexIntersectionFunctionTables:withBufferRange:")] - void SetVertexIntersectionFunctionTables (IMTLIntersectionFunctionTable[] intersectionFunctionTable, NSRange range); + void SetVertexIntersectionFunctionTables (IMTLIntersectionFunctionTable [] intersectionFunctionTable, NSRange range); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setVertexAccelerationStructure:atBufferIndex:")] void SetVertexAccelerationStructure ([NullAllowed] IMTLAccelerationStructure accelerationStructure, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setFragmentAccelerationStructure:atBufferIndex:")] void SetFragmentAccelerationStructure ([NullAllowed] IMTLAccelerationStructure accelerationStructure, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setFragmentIntersectionFunctionTable:atBufferIndex:")] void SetFragmentIntersectionFunctionTable ([NullAllowed] IMTLIntersectionFunctionTable intersectionFunctionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setFragmentIntersectionFunctionTables:withBufferRange:")] - void SetFragmentIntersectionFunctionTables (IMTLIntersectionFunctionTable[] intersectionFunctionTable, NSRange range); + void SetFragmentIntersectionFunctionTables (IMTLIntersectionFunctionTable [] intersectionFunctionTable, NSRange range); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setFragmentVisibleFunctionTable:atBufferIndex:")] void SetFragmentVisibleFunctionTable ([NullAllowed] IMTLVisibleFunctionTable functionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setFragmentVisibleFunctionTables:withBufferRange:")] - void SetFragmentVisibleFunctionTables (IMTLVisibleFunctionTable[] functionTables, NSRange range); + void SetFragmentVisibleFunctionTables (IMTLVisibleFunctionTable [] functionTables, NSRange range); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setTileAccelerationStructure:atBufferIndex:")] void SetTileAccelerationStructure ([NullAllowed] IMTLAccelerationStructure accelerationStructure, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setTileIntersectionFunctionTable:atBufferIndex:")] void SetTileIntersectionFunctionTable ([NullAllowed] IMTLIntersectionFunctionTable intersectionFunctionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setTileIntersectionFunctionTables:withBufferRange:")] - void SetTileIntersectionFunctionTables (IMTLIntersectionFunctionTable[] intersectionFunctionTable, NSRange range); + void SetTileIntersectionFunctionTables (IMTLIntersectionFunctionTable [] intersectionFunctionTable, NSRange range); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setTileVisibleFunctionTable:atBufferIndex:")] void SetTileVisibleFunctionTable ([NullAllowed] IMTLVisibleFunctionTable functionTable, nuint bufferIndex); #if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("setTileVisibleFunctionTables:withBufferRange:")] - void SetTileVisibleFunctionTables (IMTLVisibleFunctionTable[] functionTables, NSRange range); + void SetTileVisibleFunctionTables (IMTLVisibleFunctionTable [] functionTables, NSRange range); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPipelineColorAttachmentDescriptor : NSCopying { @@ -3534,7 +3587,8 @@ namespace Metal { MTLColorWriteMask WriteMask { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPipelineReflection { [Export ("vertexArguments")] @@ -3553,14 +3607,15 @@ namespace Metal { NSObject [] FragmentArguments { get; } #endif - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] [MacCatalyst (14, 0)] [NullAllowed, Export ("tileArguments")] - MTLArgument[] TileArguments { get; } + MTLArgument [] TileArguments { get; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPassAttachmentDescriptor : NSCopying { @@ -3596,46 +3651,50 @@ namespace Metal { [Export ("storeAction")] MTLStoreAction StoreAction { get; set; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("storeActionOptions", ArgumentSemantic.Assign)] MTLStoreActionOptions StoreActionOptions { get; set; } } - - [iOS (8,0)][Mac (10,11)] + + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (MTLRenderPassAttachmentDescriptor))] interface MTLRenderPassColorAttachmentDescriptor { [Export ("clearColor")] MTLClearColor ClearColor { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (MTLRenderPassAttachmentDescriptor))] interface MTLRenderPassDepthAttachmentDescriptor { [Export ("clearDepth")] double ClearDepth { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Mac (10, 14)] [Export ("depthResolveFilter")] - MTLMultisampleDepthResolveFilter DepthResolveFilter { get; set; } + MTLMultisampleDepthResolveFilter DepthResolveFilter { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (MTLRenderPassAttachmentDescriptor))] interface MTLRenderPassStencilAttachmentDescriptor { [Export ("clearStencil")] uint ClearStencil { get; set; } /* uint32_t */ - [iOS (12,0)] - [TV (14,5)] + [iOS (12, 0)] + [TV (14, 5)] [Mac (10, 14)] [Export ("stencilResolveFilter", ArgumentSemantic.Assign)] MTLMultisampleStencilResolveFilter StencilResolveFilter { get; set; } } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPassColorAttachmentDescriptorArray { [Export ("objectAtIndexedSubscript:"), Internal] @@ -3645,7 +3704,8 @@ namespace Metal { void SetObject ([NullAllowed] MTLRenderPassColorAttachmentDescriptor attachment, nuint attachmentIndex); } - [iOS (8,0)][Mac (10,11)] + [iOS (8, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLRenderPassDescriptor : NSCopying { @@ -3667,82 +3727,81 @@ namespace Metal { [Static, Export ("renderPassDescriptor")] [Autorelease] MTLRenderPassDescriptor CreateRenderPassDescriptor (); - - [iOS (12,0)] - [TV (14,5)] + + [iOS (12, 0)] + [TV (14, 5)] [Export ("renderTargetArrayLength")] nuint RenderTargetArrayLength { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("setSamplePositions:count:")] unsafe void SetSamplePositions ([NullAllowed] IntPtr positions, nuint count); - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("getSamplePositions:count:")] nuint GetSamplePositions ([NullAllowed] IntPtr positions, nuint count); - [iOS (11, 0), NoWatch, Mac (11,0)] - [TV (14,5)] - [MacCatalyst (14,0)] + [iOS (11, 0), NoWatch, Mac (11, 0)] + [TV (14, 5)] + [MacCatalyst (14, 0)] [Export ("imageblockSampleLength")] nuint ImageblockSampleLength { get; set; } - [iOS (11, 0), NoWatch, Mac (11,0)] - [TV (14,5)] - [MacCatalyst (14,0)] + [iOS (11, 0), NoWatch, Mac (11, 0)] + [TV (14, 5)] + [MacCatalyst (14, 0)] [Export ("threadgroupMemoryLength")] nuint ThreadgroupMemoryLength { get; set; } - [iOS (11, 0), NoWatch, Mac (11,0)] - [TV (14,5)] - [MacCatalyst (14,0)] + [iOS (11, 0), NoWatch, Mac (11, 0)] + [TV (14, 5)] + [MacCatalyst (14, 0)] [Export ("tileWidth")] nuint TileWidth { get; set; } - [iOS (11, 0), NoWatch, Mac (11,0)] - [TV (14,5)] - [MacCatalyst (14,0)] + [iOS (11, 0), NoWatch, Mac (11, 0)] + [TV (14, 5)] + [MacCatalyst (14, 0)] [Export ("tileHeight")] nuint TileHeight { get; set; } - [iOS (11, 0), NoWatch, Mac (10,15)] - [TV (14,5)] + [iOS (11, 0), NoWatch, Mac (10, 15)] + [TV (14, 5)] [Export ("defaultRasterSampleCount")] nuint DefaultRasterSampleCount { get; set; } - [iOS (11, 0), NoWatch, Mac(10,15)] - [TV (14,5)] + [iOS (11, 0), NoWatch, Mac (10, 15)] + [TV (14, 5)] [Export ("renderTargetWidth")] nuint RenderTargetWidth { get; set; } - [iOS (11, 0), NoWatch, Mac (10,15)] - [TV (14,5)] + [iOS (11, 0), NoWatch, Mac (10, 15)] + [TV (14, 5)] [Export ("renderTargetHeight")] nuint RenderTargetHeight { get; set; } -/* Selectors reported missing by instrospection: https://github.com/xamarin/maccore/issues/1978 - [NoMac, NoTV, iOS (13, 0)] - [NoMacCatalyst] - [Export ("maxVertexAmplificationCount")] - nuint MaxVertexAmplificationCount { get; set; } -*/ + /* Selectors reported missing by instrospection: https://github.com/xamarin/maccore/issues/1978 + [NoMac, NoTV, iOS (13, 0)] + [NoMacCatalyst] + [Export ("maxVertexAmplificationCount")] + nuint MaxVertexAmplificationCount { get; set; } + */ [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13, 0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [NullAllowed, Export ("rasterizationRateMap", ArgumentSemantic.Strong)] IMTLRasterizationRateMap RasterizationRateMap { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [Export ("sampleBufferAttachments")] MTLRenderPassSampleBufferAttachmentDescriptorArray SampleBufferAttachments { get; } } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] + [BaseType (typeof (NSObject))] // note: type works only on devices, symbol is missing on the simulator - interface MTLHeapDescriptor : NSCopying - { + interface MTLHeapDescriptor : NSCopying { [Export ("size")] nuint Size { get; set; } @@ -3752,24 +3811,23 @@ namespace Metal { [Export ("cpuCacheMode", ArgumentSemantic.Assign)] MTLCpuCacheMode CpuCacheMode { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("hazardTrackingMode", ArgumentSemantic.Assign)] MTLHazardTrackingMode HazardTrackingMode { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("resourceOptions", ArgumentSemantic.Assign)] MTLResourceOptions ResourceOptions { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), TV (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), TV (15, 0)] [Export ("type", ArgumentSemantic.Assign)] MTLHeapType Type { get; set; } } - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - interface MTLHeap - { + interface MTLHeap { [Abstract] [NullAllowed, Export ("label")] string Label { get; set; } @@ -3814,7 +3872,7 @@ namespace Metal { [Export ("setPurgeableState:")] MTLPurgeableState SetPurgeableState (MTLPurgeableState state); - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Abstract] #endif @@ -3842,7 +3900,7 @@ namespace Metal { [Export ("type")] MTLHeapType Type { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Abstract] #endif @@ -3851,7 +3909,7 @@ namespace Metal { [return: Release] IMTLBuffer CreateBuffer (nuint length, MTLResourceOptions options, nuint offset); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] #if NET [Abstract] #endif @@ -3860,12 +3918,15 @@ namespace Metal { [return: Release] IMTLTexture CreateTexture (MTLTextureDescriptor descriptor, nuint offset); } - - interface IMTLResource {} - interface IMTLHeap {} - [iOS (8,0)][Mac (10,11)][TV (9,0)][MacCatalyst (13,1)] + + interface IMTLResource { } + interface IMTLHeap { } + [iOS (8, 0)] + [Mac (10, 11)] + [TV (9, 0)] + [MacCatalyst (13, 1)] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed - partial interface MTLResource { + partial interface MTLResource { [Abstract, Export ("label")] string Label { get; set; } @@ -3879,35 +3940,35 @@ namespace Metal { #if NET [Abstract] // new required member, but that breaks our binary compat, so we can't do that in our existing code. #endif - [iOS (9,0)] + [iOS (9, 0)] [Export ("storageMode")] MTLStorageMode StorageMode { get; } [Abstract, Export ("setPurgeableState:")] MTLPurgeableState SetPurgeableState (MTLPurgeableState state); - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [NullAllowed, Export ("heap")] IMTLHeap Heap { get; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("makeAliasable")] void MakeAliasable (); - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif [Export ("isAliasable")] bool IsAliasable { get; } - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,13)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 13)] #if NET [Abstract] #endif @@ -3936,7 +3997,8 @@ namespace Metal { MTLHazardTrackingMode HazardTrackingMode { get; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MTLComputePipelineDescriptor : NSCopying { @@ -3954,36 +4016,36 @@ namespace Metal { [Export ("reset")] void Reset (); - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("maxTotalThreadsPerThreadgroup")] nuint MaxTotalThreadsPerThreadgroup { get; set; } - - [iOS (10, 0), TV (10,0), NoWatch, Mac (10,12)] + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [NullAllowed, Export ("stageInputDescriptor", ArgumentSemantic.Copy)] MTLStageInputOutputDescriptor StageInputDescriptor { get; set; } - [Mac (10, 13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Export ("buffers")] MTLPipelineBufferDescriptorArray Buffers { get; } - [Mac (11,0), iOS (13, 0), TV (13,0)] + [Mac (11, 0), iOS (13, 0), TV (13, 0)] [MacCatalyst (14, 0)] [Export ("supportIndirectCommandBuffers")] bool SupportIndirectCommandBuffers { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'PreloadedLibraries' instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'PreloadedLibraries' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'PreloadedLibraries' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'PreloadedLibraries' instead.")] [NullAllowed, Export ("insertLibraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] InsertLibraries { get; set; } + IMTLDynamicLibrary [] InsertLibraries { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [NullAllowed, Export ("binaryArchives", ArgumentSemantic.Copy)] - IMTLBinaryArchive[] BinaryArchives { get; set; } + IMTLBinaryArchive [] BinaryArchives { get; set; } - [Mac (11, 0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [NullAllowed, Export ("linkedFunctions", ArgumentSemantic.Copy)] MTLLinkedFunctions LinkedFunctions { get; set; } @@ -3994,16 +4056,15 @@ namespace Metal { [Mac (11, 0), iOS (14, 0), NoTV] [Export ("maxCallStackDepth")] nuint MaxCallStackDepth { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), NoWatch, MacCatalyst (15,0)] + + [Mac (12, 0), iOS (15, 0), TV (15, 0), NoWatch, MacCatalyst (15, 0)] [Export ("preloadedLibraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] PreloadedLibraries { get; set; } + IMTLDynamicLibrary [] PreloadedLibraries { get; set; } } - - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] - [BaseType (typeof(NSObject))] - interface MTLStageInputOutputDescriptor : NSCopying - { + + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface MTLStageInputOutputDescriptor : NSCopying { [Static] [Export ("stageInputOutputDescriptor")] MTLStageInputOutputDescriptor Create (); @@ -4024,18 +4085,16 @@ namespace Metal { void Reset (); } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(NSObject))] - interface MTLType - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface MTLType { [Export ("dataType")] MTLDataType DataType { get; } } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(MTLType))] - interface MTLPointerType - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (MTLType))] + interface MTLPointerType { [Export ("elementType")] MTLDataType ElementType { get; } @@ -4058,10 +4117,9 @@ namespace Metal { MTLArrayType ElementArrayType { get; } } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(MTLType))] - interface MTLTextureReferenceType - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (MTLType))] + interface MTLTextureReferenceType { [Export ("textureDataType")] MTLDataType TextureDataType { get; } @@ -4075,18 +4133,17 @@ namespace Metal { bool IsDepthTexture { get; } } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] interface IMTLCaptureScope { } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface MTLCaptureScope - { + [BaseType (typeof (NSObject))] + interface MTLCaptureScope { [Abstract] [Export ("beginScope")] void BeginScope (); @@ -4109,11 +4166,10 @@ namespace Metal { } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(NSObject))] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MTLCaptureManager - { + interface MTLCaptureManager { [Static] [Export ("sharedCaptureManager")] MTLCaptureManager Shared { get; } @@ -4153,27 +4209,25 @@ namespace Metal { [Export ("isCapturing")] bool IsCapturing { get; } - [Mac (10,15), iOS (13,0), TV (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("supportsDestination:")] bool SupportsDestination (MTLCaptureDestination destination); - [Mac (10,15), iOS (13,0), TV (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("startCaptureWithDescriptor:error:")] bool StartCapture (MTLCaptureDescriptor descriptor, [NullAllowed] out NSError error); } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(NSObject))] - interface MTLPipelineBufferDescriptor : NSCopying - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface MTLPipelineBufferDescriptor : NSCopying { [Export ("mutability", ArgumentSemantic.Assign)] MTLMutability Mutability { get; set; } } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(NSObject))] - interface MTLPipelineBufferDescriptorArray - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface MTLPipelineBufferDescriptorArray { [Internal] [Export ("objectAtIndexedSubscript:")] MTLPipelineBufferDescriptor GetObject (nuint bufferIndex); @@ -4183,10 +4237,9 @@ namespace Metal { void SetObject ([NullAllowed] MTLPipelineBufferDescriptor buffer, nuint bufferIndex); } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] - [BaseType (typeof(NSObject))] - interface MTLArgumentDescriptor : NSCopying - { + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface MTLArgumentDescriptor : NSCopying { [Static] [Export ("argumentDescriptor")] MTLArgumentDescriptor Create (); @@ -4212,10 +4265,9 @@ namespace Metal { interface IMTLArgumentEncoder { } - [Mac (10,13), iOS (11,0), TV (11,0), NoWatch] + [Mac (10, 13), iOS (11, 0), TV (11, 0), NoWatch] [Protocol] - interface MTLArgumentEncoder - { + interface MTLArgumentEncoder { [Abstract] [Export ("device")] IMTLDevice Device { get; } @@ -4251,7 +4303,7 @@ namespace Metal { #else [Abstract] [Export ("setBuffers:offsets:withRange:")] - void SetBuffers (IMTLBuffer[] buffers, IntPtr offsets, NSRange range); + void SetBuffers (IMTLBuffer [] buffers, IntPtr offsets, NSRange range); #endif [Abstract] @@ -4260,7 +4312,7 @@ namespace Metal { [Abstract] [Export ("setTextures:withRange:")] - void SetTextures (IMTLTexture[] textures, NSRange range); + void SetTextures (IMTLTexture [] textures, NSRange range); [Abstract] [Export ("setSamplerState:atIndex:")] @@ -4268,41 +4320,41 @@ namespace Metal { [Abstract] [Export ("setSamplerStates:withRange:")] - void SetSamplerStates (IMTLSamplerState[] samplers, NSRange range); + void SetSamplerStates (IMTLSamplerState [] samplers, NSRange range); [Abstract] [Export ("constantDataAtIndex:")] IntPtr GetConstantData (nuint index); - [iOS (13,0), TV (13,0)] - [Mac (10,14)] + [iOS (13, 0), TV (13, 0)] + [Mac (10, 14)] #if NET [Abstract] #endif [Export ("setRenderPipelineState:atIndex:")] void SetRenderPipelineState ([NullAllowed] IMTLRenderPipelineState pipeline, nuint index); - [iOS (13,0), TV (13,0)] - [Mac (10,14)] + [iOS (13, 0), TV (13, 0)] + [Mac (10, 14)] #if NET [Abstract] #endif [Export ("setRenderPipelineStates:withRange:")] - void SetRenderPipelineStates (IMTLRenderPipelineState[] pipelines, NSRange range); + void SetRenderPipelineStates (IMTLRenderPipelineState [] pipelines, NSRange range); - [Mac (10,14)] + [Mac (10, 14)] #if NET [Abstract] #endif [Export ("setIndirectCommandBuffer:atIndex:")] void SetIndirectCommandBuffer ([NullAllowed] IMTLIndirectCommandBuffer indirectCommandBuffer, nuint index); - [Mac (10,14)] + [Mac (10, 14)] #if NET [Abstract] #endif [Export ("setIndirectCommandBuffers:withRange:")] - void SetIndirectCommandBuffers (IMTLIndirectCommandBuffer[] buffers, NSRange range); + void SetIndirectCommandBuffers (IMTLIndirectCommandBuffer [] buffers, NSRange range); #if MONOMAC || NET [Abstract] @@ -4312,60 +4364,60 @@ namespace Metal { [return: Release] IMTLArgumentEncoder CreateArgumentEncoder (nuint index); - [TV (13,0), Mac (11,0), iOS (13,0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] #if NET [Abstract] #endif [Export ("setComputePipelineState:atIndex:")] void SetComputePipelineState ([NullAllowed] IMTLComputePipelineState pipeline, nuint index); - [TV (13,0), Mac (11,0), iOS (13,0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] #if NET [Abstract] #endif [Export ("setComputePipelineStates:withRange:")] - void SetComputePipelineStates (IMTLComputePipelineState[] pipelines, NSRange range); + void SetComputePipelineStates (IMTLComputePipelineState [] pipelines, NSRange range); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setAccelerationStructure:atIndex:")] void SetAccelerationStructure ([NullAllowed] IMTLAccelerationStructure accelerationStructure, nuint index); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setVisibleFunctionTable:atIndex:")] void SetVisibleFunctionTable ([NullAllowed] IMTLVisibleFunctionTable visibleFunctionTable, nuint index); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setVisibleFunctionTables:withRange:")] - void SetVisibleFunctionTables (IMTLVisibleFunctionTable[] visibleFunctionTables, NSRange range); + void SetVisibleFunctionTables (IMTLVisibleFunctionTable [] visibleFunctionTables, NSRange range); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setIntersectionFunctionTable:atIndex:")] void SetIntersectionFunctionTable ([NullAllowed] IMTLIntersectionFunctionTable intersectionFunctionTable, nuint index); - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] #if NET [Abstract] #endif [Export ("setIntersectionFunctionTables:withRange:")] - void SetIntersectionFunctionTables (IMTLIntersectionFunctionTable[] intersectionFunctionTables, NSRange range); + void SetIntersectionFunctionTables (IMTLIntersectionFunctionTable [] intersectionFunctionTables, NSRange range); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] [BaseType (typeof (NSObject))] interface MTLTileRenderPipelineColorAttachmentDescriptor : NSCopying { [Export ("pixelFormat", ArgumentSemantic.Assign)] @@ -4373,8 +4425,8 @@ namespace Metal { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] [BaseType (typeof (NSObject))] interface MTLTileRenderPipelineColorAttachmentDescriptorArray { [Internal] @@ -4386,9 +4438,9 @@ namespace Metal { void SetObject (MTLTileRenderPipelineColorAttachmentDescriptor attachment, nuint attachmentIndex); } - interface IMTLBinaryArchive {} + interface IMTLBinaryArchive { } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [Protocol] interface MTLBinaryArchive { @@ -4411,7 +4463,7 @@ namespace Metal { #if !TVOS || NET [Abstract] #endif - [TV (14,5)] + [TV (14, 5)] [Export ("addTileRenderPipelineFunctionsWithDescriptor:error:")] bool AddTileRenderPipelineFunctions (MTLTileRenderPipelineDescriptor descriptor, [NullAllowed] out NSError error); @@ -4419,18 +4471,18 @@ namespace Metal { [Export ("serializeToURL:error:")] bool Serialize (NSUrl url, [NullAllowed] out NSError error); -#if NET +#if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("addFunctionWithDescriptor:library:error:")] bool AddFunctionWithDescriptor (MTLFunctionDescriptor descriptor, IMTLLibrary library, [NullAllowed] out NSError error); } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [iOS (11, 0), Mac (11,0), NoWatch] - [TV (14,5)] + [iOS (11, 0), Mac (11, 0), NoWatch] + [TV (14, 5)] [BaseType (typeof (NSObject))] interface MTLTileRenderPipelineDescriptor : NSCopying { [NullAllowed] @@ -4452,37 +4504,37 @@ namespace Metal { [Export ("tileBuffers")] MTLPipelineBufferDescriptorArray TileBuffers { get; } - [iOS (12,0)] + [iOS (12, 0)] [Export ("maxTotalThreadsPerThreadgroup")] nuint MaxTotalThreadsPerThreadgroup { get; set; } [Export ("reset")] void Reset (); - [iOS (14,0)] + [iOS (14, 0)] [NullAllowed, Export ("binaryArchives", ArgumentSemantic.Copy)] - IMTLBinaryArchive[] BinaryArchives { get; set; } - - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoTV, NoWatch] + IMTLBinaryArchive [] BinaryArchives { get; set; } + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV, NoWatch] [Export ("supportAddingBinaryFunctions")] bool SupportAddingBinaryFunctions { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("preloadedLibraries", ArgumentSemantic.Copy)] - IMTLDynamicLibrary[] PreloadedLibraries { get; set; } + IMTLDynamicLibrary [] PreloadedLibraries { get; set; } - [Mac (11, 0), iOS (14, 0), MacCatalyst (15,0), NoTV, NoWatch] + [Mac (11, 0), iOS (14, 0), MacCatalyst (15, 0), NoTV, NoWatch] [Export ("maxCallStackDepth")] nuint MaxCallStackDepth { get; set; } - [Mac (12, 0), iOS (15, 0), TV(15,0), MacCatalyst (15, 0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [NullAllowed, Export ("linkedFunctions", ArgumentSemantic.Copy)] MTLLinkedFunctions LinkedFunctions { get; set; } } - interface IMTLEvent {} + interface IMTLEvent { } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Protocol] interface MTLEvent { [Abstract] @@ -4494,8 +4546,8 @@ namespace Metal { string Label { get; set; } } - [Mac (10,14), iOS (12,0), TV (12,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface MTLSharedEventListener { [Export ("initWithDispatchQueue:")] @@ -4508,9 +4560,9 @@ namespace Metal { delegate void MTLSharedEventNotificationBlock (IMTLSharedEvent @event, ulong value); - interface IMTLSharedEvent {} + interface IMTLSharedEvent { } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Protocol] interface MTLSharedEvent : MTLEvent { [Abstract] @@ -4527,16 +4579,16 @@ namespace Metal { ulong SignaledValue { get; set; } } - [Mac (10,14), iOS (12,0), TV (12,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] + [BaseType (typeof (NSObject))] interface MTLSharedEventHandle : NSSecureCoding { [NullAllowed, Export ("label")] string Label { get; } } - interface IMTLIndirectRenderCommand {} + interface IMTLIndirectRenderCommand { } - [Mac (10,14), iOS (12,0)] + [Mac (10, 14), iOS (12, 0)] [Protocol] interface MTLIndirectRenderCommand { @@ -4546,7 +4598,7 @@ namespace Metal { #if NET [Abstract] #endif - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("setRenderPipelineState:")] void SetRenderPipelineState (IMTLRenderPipelineState pipelineState); @@ -4561,14 +4613,14 @@ namespace Metal { #if !TVOS || NET [Abstract] #endif - [TV (14,5)] + [TV (14, 5)] [Export ("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:")] void DrawPatches (nuint numberOfPatchControlPoints, nuint patchStart, nuint patchCount, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, nuint instanceCount, nuint baseInstance, IMTLBuffer buffer, nuint offset, nuint instanceStride); #if !TVOS || NET [Abstract] #endif - [TV (14,5)] + [TV (14, 5)] [Export ("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:")] void DrawIndexedPatches (nuint numberOfPatchControlPoints, nuint patchStart, nuint patchCount, [NullAllowed] IMTLBuffer patchIndexBuffer, nuint patchIndexBufferOffset, IMTLBuffer controlPointIndexBuffer, nuint controlPointIndexBufferOffset, nuint instanceCount, nuint baseInstance, IMTLBuffer buffer, nuint offset, nuint instanceStride); @@ -4585,13 +4637,13 @@ namespace Metal { void Reset (); } - [Mac (10,14), iOS (12,0), TV (12,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] + [BaseType (typeof (NSObject))] interface MTLIndirectCommandBufferDescriptor : NSCopying { [Export ("commandTypes", ArgumentSemantic.Assign)] MTLIndirectCommandType CommandTypes { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("inheritPipelineState")] bool InheritPipelineState { get; set; } @@ -4604,14 +4656,14 @@ namespace Metal { [Export ("maxFragmentBufferBindCount")] nuint MaxFragmentBufferBindCount { get; set; } - [Mac (11,0), iOS (14, 0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [Export ("maxKernelBufferBindCount")] nuint MaxKernelBufferBindCount { get; set; } } - interface IMTLIndirectCommandBuffer {} + interface IMTLIndirectCommandBuffer { } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Protocol] interface MTLIndirectCommandBuffer : MTLResource { [Abstract] @@ -4629,13 +4681,13 @@ namespace Metal { #if NET [Abstract] #endif - [TV (13,0), Mac (11,0), iOS (13,0)] + [TV (13, 0), Mac (11, 0), iOS (13, 0)] [Export ("indirectComputeCommandAtIndex:")] IMTLIndirectComputeCommand GetIndirectComputeCommand (nuint commandIndex); } - [iOS (13,0), TV (13,0), Mac (10,14)] - [BaseType (typeof(NSObject))] + [iOS (13, 0), TV (13, 0), Mac (10, 14)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MTLSharedTextureHandle : NSSecureCoding { [Export ("device")] @@ -4646,8 +4698,8 @@ namespace Metal { } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MTLRasterizationRateSampleArray { [Export ("objectAtIndexedSubscript:")] NSNumber GetObject (nuint index); @@ -4657,8 +4709,8 @@ namespace Metal { } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MTLRasterizationRateMapDescriptor : NSCopying { [Static] [Export ("rasterizationRateMapDescriptorWithScreenSize:")] @@ -4679,26 +4731,26 @@ namespace Metal { [Export ("setLayer:atIndex:")] void SetLayer ([NullAllowed] MTLRasterizationRateLayerDescriptor layer, nuint layerIndex); - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] [Export ("layers")] MTLRasterizationRateLayerArray Layers { get; } - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] [Export ("screenSize", ArgumentSemantic.Assign)] MTLSize ScreenSize { get; set; } - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] [NullAllowed, Export ("label")] string Label { get; set; } - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoWatch] [Export ("layerCount")] nuint LayerCount { get; } } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MTLRasterizationRateLayerDescriptor : NSCopying { @@ -4709,37 +4761,37 @@ namespace Metal { [Internal] [Export ("initWithSampleCount:horizontal:vertical:")] NativeHandle Constructor (MTLSize sampleCount, IntPtr horizontal, IntPtr vertical); - - [MacCatalyst (15,0)] + + [MacCatalyst (15, 0)] [Internal] [Export ("horizontalSampleStorage")] IntPtr _HorizontalSampleStorage { get; } - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Internal] [Export ("verticalSampleStorage")] IntPtr _VerticalSampleStorage { get; } - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("horizontal")] MTLRasterizationRateSampleArray Horizontal { get; } - [MacCatalyst (15,0)] + [MacCatalyst (15, 0)] [Export ("vertical")] MTLRasterizationRateSampleArray Vertical { get; } - - [Mac (12, 0), iOS (15, 0), MacCatalyst(15,0), NoWatch] + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("maxSampleCount")] MTLSize MaxSampleCount { get; } - [Mac (12, 0), iOS (15, 0), MacCatalyst(15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("sampleCount", ArgumentSemantic.Assign)] MTLSize SampleCount { get; set; } } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MTLRasterizationRateLayerArray { [Export ("objectAtIndexedSubscript:")] [return: NullAllowed] @@ -4749,10 +4801,10 @@ namespace Metal { void SetObject ([NullAllowed] MTLRasterizationRateLayerDescriptor layer, nuint layerIndex); } - interface IMTLRasterizationRateMap {} + interface IMTLRasterizationRateMap { } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [Mac (10,15,4), NoTV, iOS (13,0)] + [Mac (10, 15, 4), NoTV, iOS (13, 0)] [Protocol] interface MTLRasterizationRateMap { [Abstract] @@ -4796,10 +4848,10 @@ namespace Metal { MTLCoordinate2D MapPhysicalToScreenCoordinates (MTLCoordinate2D physicalCoordinates, nuint layerIndex); } - interface IMTLResourceStateCommandEncoder {} + interface IMTLResourceStateCommandEncoder { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Mac (11,0), iOS (13,0), NoTV] + [Mac (11, 0), iOS (13, 0), NoTV] [Protocol] interface MTLResourceStateCommandEncoder : MTLCommandEncoder { #if !MONOMAC && !__MACCATALYST__ @@ -4833,8 +4885,8 @@ namespace Metal { void Wait (IMTLFence fence); } - [Mac (10,15), iOS (13,0), TV (13,0)] - [BaseType (typeof(NSObject))] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] + [BaseType (typeof (NSObject))] interface MTLCaptureDescriptor : NSCopying { [NullAllowed, Export ("captureObject", ArgumentSemantic.Strong)] NSObject CaptureObject { get; set; } @@ -4846,9 +4898,9 @@ namespace Metal { NSUrl OutputUrl { get; set; } } - interface IMTLIndirectComputeCommand {} + interface IMTLIndirectComputeCommand { } - [TV (13,0), iOS (13,0), Mac (11,0)] + [TV (13, 0), iOS (13, 0), Mac (11, 0)] [Protocol] interface MTLIndirectComputeCommand { [Abstract] @@ -4887,7 +4939,7 @@ namespace Metal { [Export ("setStageInRegion:")] void SetStageInRegion (MTLRegion region); - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] #if NET [Abstract] #endif @@ -4895,12 +4947,12 @@ namespace Metal { void SetImageblock (nuint width, nuint height); } - interface IMTLCounter {} + interface IMTLCounter { } - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Protocol] #if !NET - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] #endif interface MTLCounter { [Abstract] @@ -4908,12 +4960,12 @@ namespace Metal { string Name { get; } } - interface IMTLCounterSet {} + interface IMTLCounterSet { } - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Protocol] #if !NET - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] #endif interface MTLCounterSet { [Abstract] @@ -4922,12 +4974,12 @@ namespace Metal { [Abstract] [Export ("counters", ArgumentSemantic.Copy)] - IMTLCounter[] Counters { get; } + IMTLCounter [] Counters { get; } } - interface IMTLCounterSampleBuffer {} + interface IMTLCounterSampleBuffer { } - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [Protocol] #if !NET [BaseType (typeof (NSObject))] @@ -4951,10 +5003,9 @@ namespace Metal { NSData ResolveCounterRange (NSRange range); } - [iOS (14,0), TV (14,0), Mac (10,15)] + [iOS (14, 0), TV (14, 0), Mac (10, 15)] [BaseType (typeof (NSObject))] - interface MTLCounterSampleBufferDescriptor : NSCopying - { + interface MTLCounterSampleBufferDescriptor : NSCopying { [NullAllowed] [Export ("counterSet", ArgumentSemantic.Retain)] IMTLCounterSet CounterSet { get; set; } @@ -4969,20 +5020,19 @@ namespace Metal { nuint SampleCount { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - interface IMTLAccelerationStructure {} + [Mac (11, 0), iOS (14, 0), NoTV] + interface IMTLAccelerationStructure { } - [Mac (11,0), iOS (14,0), NoTV] + [Mac (11, 0), iOS (14, 0), NoTV] [Protocol] - interface MTLAccelerationStructure : MTLResource - { + interface MTLAccelerationStructure : MTLResource { [Abstract] [Export ("size")] nuint Size { get; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (MTLAccelerationStructureGeometryDescriptor))] interface MTLAccelerationStructureBoundingBoxGeometryDescriptor { @@ -5003,16 +5053,16 @@ namespace Metal { MTLAccelerationStructureBoundingBoxGeometryDescriptor Create (); } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLAccelerationStructureDescriptor : NSCopying { [Export ("usage", ArgumentSemantic.Assign)] MTLAccelerationStructureUsage Usage { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLAccelerationStructureGeometryDescriptor : NSCopying { [Export ("intersectionFunctionTableOffset")] @@ -5024,13 +5074,13 @@ namespace Metal { [Export ("allowDuplicateIntersectionFunctionInvocation")] bool AllowDuplicateIntersectionFunctionInvocation { get; set; } - [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15, 0)] [NullAllowed, Export ("label")] string Label { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [BaseType (typeof (MTLAccelerationStructureGeometryDescriptor))] interface MTLAccelerationStructureTriangleGeometryDescriptor { [NullAllowed, Export ("vertexBuffer", ArgumentSemantic.Retain)] @@ -5059,18 +5109,17 @@ namespace Metal { MTLAccelerationStructureTriangleGeometryDescriptor Create (); } - [Mac (11,0), iOS (14,0), TV (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] [BaseType (typeof (NSObject))] interface MTLBinaryArchiveDescriptor : NSCopying { [NullAllowed, Export ("url", ArgumentSemantic.Copy)] NSUrl Url { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface MTLBlitPassDescriptor : NSCopying - { + interface MTLBlitPassDescriptor : NSCopying { [Static] [Export ("blitPassDescriptor")] MTLBlitPassDescriptor Create (); @@ -5079,8 +5128,8 @@ namespace Metal { MTLBlitPassSampleBufferAttachmentDescriptorArray SampleBufferAttachments { get; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLBlitPassSampleBufferAttachmentDescriptor : NSCopying { [NullAllowed, Export ("sampleBuffer", ArgumentSemantic.Retain)] @@ -5093,8 +5142,8 @@ namespace Metal { nuint EndOfEncoderSampleIndex { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLBlitPassSampleBufferAttachmentDescriptorArray { [Export ("objectAtIndexedSubscript:")] @@ -5104,8 +5153,8 @@ namespace Metal { void SetObject ([NullAllowed] MTLBlitPassSampleBufferAttachmentDescriptor attachment, nuint attachmentIndex); } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLCommandBufferDescriptor : NSCopying { @@ -5119,8 +5168,8 @@ namespace Metal { MTLCommandBufferErrorOption ErrorOptions { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLComputePassDescriptor : NSCopying { [Static] @@ -5134,8 +5183,8 @@ namespace Metal { MTLComputePassSampleBufferAttachmentDescriptorArray SampleBufferAttachments { get; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLComputePassSampleBufferAttachmentDescriptor : NSCopying { @@ -5149,8 +5198,8 @@ namespace Metal { nuint EndOfEncoderSampleIndex { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLComputePassSampleBufferAttachmentDescriptorArray { [Export ("objectAtIndexedSubscript:")] @@ -5160,8 +5209,8 @@ namespace Metal { void SetObject ([NullAllowed] MTLComputePassSampleBufferAttachmentDescriptor attachment, nuint attachmentIndex); } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MTLFunctionDescriptor : NSCopying { @@ -5180,14 +5229,14 @@ namespace Metal { [Export ("options", ArgumentSemantic.Assign)] MTLFunctionOptions Options { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), NoWatch, MacCatalyst (15,0)] + + [Mac (12, 0), iOS (15, 0), TV (15, 0), NoWatch, MacCatalyst (15, 0)] [NullAllowed, Export ("binaryArchives", ArgumentSemantic.Copy)] - IMTLBinaryArchive[] BinaryArchives { get; set; } + IMTLBinaryArchive [] BinaryArchives { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (MTLAccelerationStructureDescriptor))] interface MTLInstanceAccelerationStructureDescriptor { @@ -5204,37 +5253,37 @@ namespace Metal { nuint InstanceCount { get; set; } [NullAllowed, Export ("instancedAccelerationStructures", ArgumentSemantic.Retain)] - IMTLAccelerationStructure[] InstancedAccelerationStructures { get; set; } + IMTLAccelerationStructure [] InstancedAccelerationStructures { get; set; } [Static] [Export ("descriptor")] MTLInstanceAccelerationStructureDescriptor Create (); - [Mac (12, 0), iOS (15, 0), MacCatalyst(15,0), NoTV, NoWatch] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV, NoWatch] [Export ("instanceDescriptorType", ArgumentSemantic.Assign)] MTLAccelerationStructureInstanceDescriptorType InstanceDescriptorType { get; set; } - [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15, 0)] [NullAllowed, Export ("motionTransformBuffer", ArgumentSemantic.Retain)] IMTLBuffer MotionTransformBuffer { get; set; } - [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15, 0)] [Export ("motionTransformBufferOffset")] nuint MotionTransformBufferOffset { get; set; } - [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), NoWatch, MacCatalyst (15, 0)] [Export ("motionTransformCount")] nuint MotionTransformCount { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (MTLFunctionDescriptor))] - interface MTLIntersectionFunctionDescriptor : NSCopying {} + interface MTLIntersectionFunctionDescriptor : NSCopying { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MTLIntersectionFunctionTableDescriptor : NSCopying { @@ -5246,8 +5295,8 @@ namespace Metal { nuint FunctionCount { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MTLLinkedFunctions : NSCopying { @@ -5256,28 +5305,28 @@ namespace Metal { MTLLinkedFunctions Create (); [NullAllowed, Export ("functions", ArgumentSemantic.Copy)] - IMTLFunction[] Functions { get; set; } + IMTLFunction [] Functions { get; set; } - [NoTV] + [NoTV] [NullAllowed, Export ("binaryFunctions", ArgumentSemantic.Copy)] - IMTLFunction[] BinaryFunctions { get; set; } + IMTLFunction [] BinaryFunctions { get; set; } [NullAllowed, Export ("groups", ArgumentSemantic.Copy)] NSDictionary> Groups { get; set; } - - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] - [NullAllowed, Export ("privateFunctions", ArgumentSemantic.Copy)] - IMTLFunction[] PrivateFunctions { get; set; } - [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] + [NullAllowed, Export ("privateFunctions", ArgumentSemantic.Copy)] + IMTLFunction [] PrivateFunctions { get; set; } + + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [Export ("instanceDescriptorType", ArgumentSemantic.Assign)] MTLAccelerationStructureInstanceDescriptorType InstanceDescriptorType { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [NullAllowed, Export ("motionTransformBuffer", ArgumentSemantic.Retain)] IMTLBuffer MotionTransformBuffer { get; set; } - [Mac (12, 0), iOS (15, 0), TV (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("motionTransformBufferOffset")] nuint MotionTransformBufferOffset { get; set; } @@ -5286,41 +5335,41 @@ namespace Metal { nuint MotionTransformCount { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (MTLAccelerationStructureDescriptor))] interface MTLPrimitiveAccelerationStructureDescriptor { [NullAllowed, Export ("geometryDescriptors", ArgumentSemantic.Retain)] - MTLAccelerationStructureGeometryDescriptor[] GeometryDescriptors { get; set; } + MTLAccelerationStructureGeometryDescriptor [] GeometryDescriptors { get; set; } [Static] [Export ("descriptor")] MTLPrimitiveAccelerationStructureDescriptor Create (); - - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("motionStartBorderMode", ArgumentSemantic.Assign)] MTLMotionBorderMode MotionStartBorderMode { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("motionEndBorderMode", ArgumentSemantic.Assign)] MTLMotionBorderMode MotionEndBorderMode { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("motionStartTime")] float MotionStartTime { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("motionEndTime")] float MotionEndTime { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("motionKeyframeCount")] nuint MotionKeyframeCount { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLRenderPassSampleBufferAttachmentDescriptor : NSCopying { [NullAllowed, Export ("sampleBuffer", ArgumentSemantic.Retain)] @@ -5339,8 +5388,8 @@ namespace Metal { nuint EndOfFragmentSampleIndex { get; set; } } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLRenderPassSampleBufferAttachmentDescriptorArray { [Export ("objectAtIndexedSubscript:")] @@ -5351,8 +5400,8 @@ namespace Metal { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MTLResourceStatePassDescriptor : NSCopying { @@ -5364,8 +5413,8 @@ namespace Metal { MTLResourceStatePassSampleBufferAttachmentDescriptorArray SampleBufferAttachments { get; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLResourceStatePassSampleBufferAttachmentDescriptor : NSCopying { [NullAllowed, Export ("sampleBuffer", ArgumentSemantic.Retain)] @@ -5378,8 +5427,8 @@ namespace Metal { nuint EndOfEncoderSampleIndex { get; set; } } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MTLResourceStatePassSampleBufferAttachmentDescriptorArray { [Export ("objectAtIndexedSubscript:")] @@ -5390,8 +5439,8 @@ namespace Metal { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface MTLVisibleFunctionTableDescriptor : NSCopying { @@ -5403,10 +5452,10 @@ namespace Metal { nuint FunctionCount { get; set; } } - interface IMTLFunctionHandle {} + interface IMTLFunctionHandle { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [Protocol] interface MTLFunctionHandle { [Abstract] @@ -5422,10 +5471,10 @@ namespace Metal { IMTLDevice Device { get; } } - interface IMTLAccelerationStructureCommandEncoder {} + interface IMTLAccelerationStructureCommandEncoder { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [Protocol] interface MTLAccelerationStructureCommandEncoder : MTLCommandEncoder { [Abstract] @@ -5462,7 +5511,7 @@ namespace Metal { [Abstract] [Export ("useResources:count:usage:")] - void UseResources (IMTLResource[] resources, nuint count, MTLResourceUsage usage); + void UseResources (IMTLResource [] resources, nuint count, MTLResourceUsage usage); [Abstract] [Export ("useHeap:")] @@ -5470,7 +5519,7 @@ namespace Metal { [Abstract] [Export ("useHeaps:count:")] - void UseHeaps (IMTLHeap[] heaps, nuint count); + void UseHeaps (IMTLHeap [] heaps, nuint count); [Abstract] [Export ("sampleCountersInBuffer:atSampleIndex:withBarrier:")] @@ -5480,18 +5529,18 @@ namespace Metal { void SampleCountersInBuffer (MTLCounterSampleBuffer sampleBuffer, nuint sampleIndex, bool barrier); #endif -#if NET +#if NET [Abstract] #endif - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoWatch] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("writeCompactedAccelerationStructureSize:toBuffer:offset:sizeDataType:")] void WriteCompactedAccelerationStructureSize (IMTLAccelerationStructure accelerationStructure, IMTLBuffer buffer, nuint offset, MTLDataType sizeDataType); } - interface IMTLVisibleFunctionTable {} + interface IMTLVisibleFunctionTable { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [Protocol] interface MTLVisibleFunctionTable : MTLResource { [Abstract] @@ -5500,13 +5549,13 @@ namespace Metal { [Abstract] [Export ("setFunctions:withRange:")] - void SetFunctions (IMTLFunctionHandle[] functions, NSRange range); + void SetFunctions (IMTLFunctionHandle [] functions, NSRange range); } - interface IMTLIntersectionFunctionTable {} + interface IMTLIntersectionFunctionTable { } - [Mac (11,0), iOS (14,0), NoTV] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV] + [MacCatalyst (14, 0)] [Protocol] interface MTLIntersectionFunctionTable : MTLResource { [Abstract] @@ -5523,7 +5572,7 @@ namespace Metal { [Abstract] [Export ("setFunctions:withRange:")] - void SetFunctions (IMTLFunctionHandle[] functions, NSRange range); + void SetFunctions (IMTLFunctionHandle [] functions, NSRange range); [Abstract] [Export ("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:")] @@ -5539,11 +5588,11 @@ namespace Metal { [Abstract] [Export ("setVisibleFunctionTables:withBufferRange:")] - void SetVisibleFunctionTables (IMTLVisibleFunctionTable[] functionTables, NSRange bufferRange); + void SetVisibleFunctionTables (IMTLVisibleFunctionTable [] functionTables, NSRange bufferRange); } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface MTLCommandBufferEncoderInfo { @@ -5553,20 +5602,20 @@ namespace Metal { [Abstract] [Export ("debugSignposts")] - string[] DebugSignposts { get; } + string [] DebugSignposts { get; } [Abstract] [Export ("errorState")] MTLCommandEncoderErrorState ErrorState { get; } } - interface IMTLDynamicLibrary {} + interface IMTLDynamicLibrary { } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface MTLDynamicLibrary { - + [Abstract] [NullAllowed, Export ("label")] string Label { get; set; } @@ -5584,17 +5633,17 @@ namespace Metal { bool Serialize (NSUrl url, [NullAllowed] out NSError error); } - interface IMTLLogContainer {} + interface IMTLLogContainer { } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface MTLLogContainer { } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface MTLFunctionLog { [Abstract] @@ -5614,10 +5663,10 @@ namespace Metal { IMTLFunctionLogDebugLocation DebugLocation { get; } } - interface IMTLFunctionLogDebugLocation {} + interface IMTLFunctionLogDebugLocation { } - [Mac (11,0), iOS (14,0), TV (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), TV (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface MTLFunctionLogDebugLocation { [Abstract] @@ -5637,29 +5686,27 @@ namespace Metal { nuint Column { get; } } - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15, 0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [BaseType (typeof (NSObject))] - interface MTLStitchedLibraryDescriptor : NSCopying - { + interface MTLStitchedLibraryDescriptor : NSCopying { [Export ("functionGraphs", ArgumentSemantic.Copy)] - MTLFunctionStitchingGraph[] FunctionGraphs { get; set; } + MTLFunctionStitchingGraph [] FunctionGraphs { get; set; } [Export ("functions", ArgumentSemantic.Copy)] - IMTLFunction[] Functions { get; set; } + IMTLFunction [] Functions { get; set; } } - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst (15, 0), NoWatch] + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [BaseType (typeof (NSObject))] - interface MTLRenderPipelineFunctionsDescriptor : NSCopying - { + interface MTLRenderPipelineFunctionsDescriptor : NSCopying { [NullAllowed, Export ("vertexAdditionalBinaryFunctions", ArgumentSemantic.Copy)] - IMTLFunction[] VertexAdditionalBinaryFunctions { get; set; } + IMTLFunction [] VertexAdditionalBinaryFunctions { get; set; } [NullAllowed, Export ("fragmentAdditionalBinaryFunctions", ArgumentSemantic.Copy)] - IMTLFunction[] FragmentAdditionalBinaryFunctions { get; set; } + IMTLFunction [] FragmentAdditionalBinaryFunctions { get; set; } [NullAllowed, Export ("tileAdditionalBinaryFunctions", ArgumentSemantic.Copy)] - IMTLFunction[] TileAdditionalBinaryFunctions { get; set; } + IMTLFunction [] TileAdditionalBinaryFunctions { get; set; } } [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] @@ -5679,22 +5726,21 @@ namespace Metal { [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed interface MTLFunctionStitchingNode : NSCopying { } - + interface IMTLFunctionStitchingNode { } - + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [Protocol] // From Apple Docs: Your app does not define classes that implement this protocol. Model is not needed interface MTLFunctionStitchingAttribute : NSCopying { } - + interface IMTLFunctionStitchingAttribute { } [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] interface MTLFunctionStitchingAttributeAlwaysInline : MTLFunctionStitchingAttribute { } - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15, 0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [BaseType (typeof (NSObject))] - interface MTLFunctionStitchingInputNode : MTLFunctionStitchingNode - { + interface MTLFunctionStitchingInputNode : MTLFunctionStitchingNode { [Export ("argumentIndex")] nuint ArgumentIndex { get; set; } @@ -5702,51 +5748,48 @@ namespace Metal { NativeHandle Constructor (nuint argument); } - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15, 0), NoWatch] + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MTLFunctionStitchingGraph : NSCopying - { + interface MTLFunctionStitchingGraph : NSCopying { [Export ("functionName")] string FunctionName { get; set; } [Export ("nodes", ArgumentSemantic.Copy)] - MTLFunctionStitchingFunctionNode[] Nodes { get; set; } + MTLFunctionStitchingFunctionNode [] Nodes { get; set; } [NullAllowed, Export ("outputNode", ArgumentSemantic.Copy)] MTLFunctionStitchingFunctionNode OutputNode { get; set; } [Export ("attributes", ArgumentSemantic.Copy)] - IMTLFunctionStitchingAttribute[] Attributes { get; set; } + IMTLFunctionStitchingAttribute [] Attributes { get; set; } [Export ("initWithFunctionName:nodes:outputNode:attributes:")] - NativeHandle Constructor (string functionName, MTLFunctionStitchingFunctionNode[] nodes, [NullAllowed] MTLFunctionStitchingFunctionNode outputNode, IMTLFunctionStitchingAttribute[] attributes); + NativeHandle Constructor (string functionName, MTLFunctionStitchingFunctionNode [] nodes, [NullAllowed] MTLFunctionStitchingFunctionNode outputNode, IMTLFunctionStitchingAttribute [] attributes); } - - [Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15, 0), NoWatch] + + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MTLFunctionStitchingFunctionNode : MTLFunctionStitchingNode - { + interface MTLFunctionStitchingFunctionNode : MTLFunctionStitchingNode { [Export ("name")] string Name { get; set; } [Export ("arguments", ArgumentSemantic.Copy)] - IMTLFunctionStitchingNode[] Arguments { get; set; } + IMTLFunctionStitchingNode [] Arguments { get; set; } [Export ("controlDependencies", ArgumentSemantic.Copy)] - MTLFunctionStitchingFunctionNode[] ControlDependencies { get; set; } + MTLFunctionStitchingFunctionNode [] ControlDependencies { get; set; } [Export ("initWithName:arguments:controlDependencies:")] - NativeHandle Constructor (string name, IMTLFunctionStitchingNode[] arguments, MTLFunctionStitchingFunctionNode[] controlDependencies); + NativeHandle Constructor (string name, IMTLFunctionStitchingNode [] arguments, MTLFunctionStitchingFunctionNode [] controlDependencies); } - - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst (15, 0), NoWatch] + + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] [BaseType (typeof (MTLAccelerationStructureGeometryDescriptor))] - interface MTLAccelerationStructureMotionTriangleGeometryDescriptor - { + interface MTLAccelerationStructureMotionTriangleGeometryDescriptor { [Export ("vertexBuffers", ArgumentSemantic.Copy)] - MTLMotionKeyframeData[] VertexBuffers { get; set; } + MTLMotionKeyframeData [] VertexBuffers { get; set; } [Export ("vertexStride")] nuint VertexStride { get; set; } @@ -5768,12 +5811,11 @@ namespace Metal { MTLAccelerationStructureMotionTriangleGeometryDescriptor Create (); } - [Mac (12,0), iOS (15,0), NoTV, MacCatalyst (15, 0), NoWatch] - [BaseType (typeof(MTLAccelerationStructureGeometryDescriptor))] - interface MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor - { + [Mac (12, 0), iOS (15, 0), NoTV, MacCatalyst (15, 0), NoWatch] + [BaseType (typeof (MTLAccelerationStructureGeometryDescriptor))] + interface MTLAccelerationStructureMotionBoundingBoxGeometryDescriptor { [Export ("boundingBoxBuffers", ArgumentSemantic.Copy)] - MTLMotionKeyframeData[] BoundingBoxBuffers { get; set; } + MTLMotionKeyframeData [] BoundingBoxBuffers { get; set; } [Export ("boundingBoxStride")] nuint BoundingBoxStride { get; set; } diff --git a/src/metalkit.cs b/src/metalkit.cs index 2022e80a03..bfbc9a6b48 100644 --- a/src/metalkit.cs +++ b/src/metalkit.cs @@ -18,10 +18,11 @@ namespace MetalKit { #if !MONOMAC // stubs to ease compilation using [NoiOS], [NoTV] - interface NSDisplayGamut {} + interface NSDisplayGamut { } #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] interface MTKModel { @@ -32,7 +33,8 @@ namespace MetalKit { NSString ErrorKey { get; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] #if MONOMAC [BaseType (typeof (AppKit.NSView))] #else @@ -111,31 +113,41 @@ namespace MetalKit { [Export ("draw")] void Draw (); - [NoiOS][NoTV] - [Mac (10,12)] + [NoiOS] + [NoTV] + [Mac (10, 12)] [NullAllowed, Export ("colorspace", ArgumentSemantic.Assign)] CGColorSpace ColorSpace { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [NullAllowed, Export ("preferredDevice")] IMTLDevice PreferredDevice { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("preferredDrawableSize")] CGSize PreferredDrawableSize { get; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("depthStencilAttachmentTextureUsage", ArgumentSemantic.Assign)] MTLTextureUsage DepthStencilAttachmentTextureUsage { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Export ("multisampleColorAttachmentTextureUsage", ArgumentSemantic.Assign)] MTLTextureUsage MultisampleColorAttachmentTextureUsage { get; set; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface MTKViewDelegate { [Abstract] [Export ("mtkView:drawableSizeWillChange:")] @@ -146,7 +158,8 @@ namespace MetalKit { void Draw (MTKView view); } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] interface MTKTextureLoaderError { @@ -157,15 +170,17 @@ namespace MetalKit { NSString Key { get; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static, Internal] interface MTKTextureLoaderKeys { [Field ("MTKTextureLoaderOptionAllocateMipmaps")] NSString AllocateMipmapsKey { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("MTKTextureLoaderOptionGenerateMipmaps")] NSString GenerateMipmapsKey { get; } @@ -178,31 +193,36 @@ namespace MetalKit { [Field ("MTKTextureLoaderOptionTextureCPUCacheMode")] NSString TextureCpuCacheModeKey { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("MTKTextureLoaderOptionTextureStorageMode")] NSString TextureStorageModeKey { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("MTKTextureLoaderOptionCubeLayout")] NSString CubeLayoutKey { get; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("MTKTextureLoaderOptionOrigin")] NSString OriginKey { get; } } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] enum MTKTextureLoaderCubeLayout { [Field ("MTKTextureLoaderCubeLayoutVertical")] Vertical, } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] enum MTKTextureLoaderOrigin { [Field ("MTKTextureLoaderOriginTopLeft")] TopLeft, @@ -216,20 +236,24 @@ namespace MetalKit { interface MTKTextureLoaderOptions { bool AllocateMipmaps { get; set; } - [TV (10,0)] - [iOS (10,0)][Mac (10,12)] + [TV (10, 0)] + [iOS (10, 0)] + [Mac (10, 12)] bool GenerateMipmaps { get; } bool Srgb { get; set; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] delegate void MTKTextureLoaderCallback ([NullAllowed] IMTLTexture texture, [NullAllowed] NSError error); - [iOS (10,0)][Mac (10,12)] - delegate void MTKTextureLoaderArrayCallback (IMTLTexture[] textures, [NullAllowed] NSError error); + [iOS (10, 0)] + [Mac (10, 12)] + delegate void MTKTextureLoaderArrayCallback (IMTLTexture [] textures, [NullAllowed] NSError error); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MTKTextureLoader { @@ -268,23 +292,27 @@ namespace MetalKit { [return: NullAllowed] IMTLTexture FromUrl (NSUrl url, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTexturesWithContentsOfURLs:options:completionHandler:")] [Async] - void FromUrls (NSUrl[] urls, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); + void FromUrls (NSUrl [] urls, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromUrls (urls, options.GetDictionary (), completionHandler)")] [Async] - void FromUrls (NSUrl[] urls, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); + void FromUrls (NSUrl [] urls, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTexturesWithContentsOfURLs:options:error:")] - IMTLTexture[] FromUrls (NSUrl[] urls, [NullAllowed] NSDictionary options, out NSError error); + IMTLTexture [] FromUrls (NSUrl [] urls, [NullAllowed] NSDictionary options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromUrls (urls, options.GetDictionary (), out error)")] - IMTLTexture[] FromUrls (NSUrl[] urls, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); + IMTLTexture [] FromUrls (NSUrl [] urls, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); [Export ("newTextureWithData:options:error:"), Internal] [return: NullAllowed] @@ -302,101 +330,112 @@ namespace MetalKit { [return: NullAllowed] IMTLTexture FromCGImage (CGImage cgImage, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTextureWithName:scaleFactor:bundle:options:completionHandler:")] [Async] void FromName (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromName (name, scaleFactor, bundle, options.GetDictionary (), completionHandler)")] [Async] void FromName (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderCallback completionHandler); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Export ("newTextureWithName:scaleFactor:displayGamut:bundle:options:completionHandler:")] [Async] void FromName (string name, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderCallback completionHandler); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("FromName (name, scaleFactor, displayGamut, bundle, options.GetDictionary (), completionHandler)")] [Async] void FromName (string name, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTexturesWithNames:scaleFactor:bundle:options:completionHandler:")] [Async] - void FromNames (string[] names, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); + void FromNames (string [] names, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromNames (names, scaleFactor, bundle, options.GetDictionary (), completionHandler)")] [Async] - void FromNames (string[] names, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); + void FromNames (string [] names, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Async] [Export ("newTexturesWithNames:scaleFactor:displayGamut:bundle:options:completionHandler:")] - void FromNames (string[] names, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); + void FromNames (string [] names, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, MTKTextureLoaderArrayCallback completionHandler); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("FromNames (names, scaleFactor, displayGamut, bundle, options.GetDictionary (), completionHandler)")] [Async] - void FromNames (string[] names, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); + void FromNames (string [] names, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderArrayCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTextureWithMDLTexture:options:completionHandler:")] [Async] void FromTexture (MDLTexture texture, [NullAllowed] NSDictionary options, MTKTextureLoaderCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromTexture (texture, options.GetDictionary (), completionHandler)")] [Async] void FromTexture (MDLTexture texture, [NullAllowed] MTKTextureLoaderOptions options, MTKTextureLoaderCallback completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTextureWithMDLTexture:options:error:")] [return: NullAllowed] IMTLTexture FromTexture (MDLTexture texture, [NullAllowed] NSDictionary options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromTexture (texture, options.GetDictionary (), out error)")] [return: NullAllowed] IMTLTexture FromTexture (MDLTexture texture, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("newTextureWithName:scaleFactor:bundle:options:error:")] [return: NullAllowed] IMTLTexture FromName (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, out NSError error); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Wrap ("FromName (name, scaleFactor, bundle, options.GetDictionary (), out error)")] [return: NullAllowed] IMTLTexture FromName (string name, nfloat scaleFactor, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, out NSError error); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Export ("newTextureWithName:scaleFactor:displayGamut:bundle:options:error:")] [return: NullAllowed] IMTLTexture FromName (string name, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] NSDictionary options, [NullAllowed] out NSError error); [NoiOS] [NoTV] - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("FromName (name, scaleFactor, displayGamut, bundle, options.GetDictionary (), out error)")] [return: NullAllowed] IMTLTexture FromName (string name, nfloat scaleFactor, NSDisplayGamut displayGamut, [NullAllowed] NSBundle bundle, [NullAllowed] MTKTextureLoaderOptions options, [NullAllowed] out NSError error); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init is NS_UNAVAILABLE interface MTKMeshBufferAllocator : MDLMeshBufferAllocator { [Export ("initWithDevice:")] @@ -406,8 +445,9 @@ namespace MetalKit { IMTLDevice Device { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MTKMeshBuffer : MDLMeshBuffer, MDLNamed { [Export ("buffer")] @@ -417,8 +457,9 @@ namespace MetalKit { nuint Offset { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MTKSubmesh { [Export ("primitiveType")] @@ -440,8 +481,9 @@ namespace MetalKit { string Name { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init NS_UNAVAILABLE interface MTKMesh { [Export ("initWithMesh:device:error:")] @@ -452,16 +494,16 @@ namespace MetalKit { [Static] [Export ("newMeshesFromAsset:device:sourceMeshes:error:")] [return: NullAllowed] - MTKMesh[] FromAsset (MDLAsset asset, IMTLDevice device, out NSArray sourceMeshes, out NSError error); + MTKMesh [] FromAsset (MDLAsset asset, IMTLDevice device, out NSArray sourceMeshes, out NSError error); [Export ("vertexBuffers")] - MTKMeshBuffer[] VertexBuffers { get; } + MTKMeshBuffer [] VertexBuffers { get; } [Export ("vertexDescriptor")] MDLVertexDescriptor VertexDescriptor { get; } [Export ("submeshes")] - MTKSubmesh[] Submeshes { get; } + MTKSubmesh [] Submeshes { get; } [Export ("vertexCount")] nuint VertexCount { get; } diff --git a/src/metalperformanceshaders.cs b/src/metalperformanceshaders.cs index 88f32960cf..03f2ce8486 100644 --- a/src/metalperformanceshaders.cs +++ b/src/metalperformanceshaders.cs @@ -17,7 +17,8 @@ using NativeHandle = System.IntPtr; namespace MetalPerformanceShaders { // MPSImageConvolution.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageConvolution { @@ -40,13 +41,15 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:")] NativeHandle Constructor (IMTLDevice device); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageLaplacian { @@ -60,17 +63,18 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageBox { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -88,7 +92,8 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] marked as NS_UNAVAILABLE - You must use initWithDevice:kernelWidth:kernelHeight: instead. } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImageBox))] [DisableDefaultCtor] interface MPSImageTent { @@ -100,11 +105,12 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, nuint kernelWidth, nuint kernelHeight); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageGaussianBlur { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -119,12 +125,13 @@ namespace MetalPerformanceShaders { float Sigma { get; } } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageSobel { // inlining .ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -141,11 +148,13 @@ namespace MetalPerformanceShaders { IntPtr /* float* */ _ColorTransform { get; } } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImagePyramid { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -167,7 +176,9 @@ namespace MetalPerformanceShaders { nuint KernelWidth { get; } } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImagePyramid))] [DisableDefaultCtor] interface MPSImageGaussianPyramid { @@ -179,7 +190,7 @@ namespace MetalPerformanceShaders { IntPtr InitWithDevice (IMTLDevice device, nuint kernelWidth, nuint kernelHeight, /* float* */ IntPtr kernelWeights); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -187,11 +198,12 @@ namespace MetalPerformanceShaders { // MPSImageHistogram.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSImageHistogram { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -204,12 +216,13 @@ namespace MetalPerformanceShaders { [Export ("histogramInfo")] MPSImageHistogramInfo HistogramInfo { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } // Could not initialize an instance of the type 'MetalPerformanceShaders.MPSImageHistogram': the native 'initWithDevice:' method returned nil. -// [Export ("initWithDevice:")] -// NativeHandle Constructor (IMTLDevice device); + // [Export ("initWithDevice:")] + // NativeHandle Constructor (IMTLDevice device); [Export ("initWithDevice:histogramInfo:")] [DesignatedInitializer] @@ -222,15 +235,18 @@ namespace MetalPerformanceShaders { [Export ("histogramSizeForSourceFormat:")] nuint GetHistogramSize (MTLPixelFormat sourceFormat); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("minPixelThresholdValue", ArgumentSemantic.Assign)] Vector4 MinPixelThresholdValue { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageHistogramEqualization { @@ -241,7 +257,8 @@ namespace MetalPerformanceShaders { [Export ("histogramInfo")] MPSImageHistogramInfo HistogramInfo { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("encodeTransformToCommandBuffer:sourceTexture:histogram:histogramOffset:")] @@ -253,7 +270,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageHistogramSpecification { @@ -264,7 +282,8 @@ namespace MetalPerformanceShaders { [Export ("histogramInfo")] MPSImageHistogramInfo HistogramInfo { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("encodeTransformToCommandBuffer:sourceTexture:sourceHistogram:sourceHistogramOffset:desiredHistogram:desiredHistogramOffset:")] @@ -278,7 +297,8 @@ namespace MetalPerformanceShaders { // MPSImageIntegral.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageIntegral { @@ -288,13 +308,14 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageIntegralOfSquares { @@ -304,7 +325,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -312,7 +333,8 @@ namespace MetalPerformanceShaders { // MPSImageKernel.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSUnaryImageKernel { @@ -332,7 +354,7 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:sourceTexture:destinationTexture:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, IMTLTexture sourceTexture, IMTLTexture destinationTexture); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("encodeToCommandBuffer:sourceImage:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSImage destinationImage); @@ -345,21 +367,22 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSBinaryImageKernel { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); - + [Export ("primaryOffset", ArgumentSemantic.Assign)] MPSOffset PrimaryOffset { get; set; } @@ -386,7 +409,7 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:primaryTexture:secondaryTexture:destinationTexture:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, IMTLTexture primaryTexture, IMTLTexture secondaryTexture, IMTLTexture destinationTexture); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSImage destinationImage); @@ -405,7 +428,8 @@ namespace MetalPerformanceShaders { // MPSImageMedian.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageMedian { @@ -434,7 +458,8 @@ namespace MetalPerformanceShaders { // MPSImageMorphology.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageAreaMax { @@ -456,7 +481,8 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] is NS_UNAVAILABLE - You must use initWithDevice:kernelWidth:kernelHeight: instead. } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImageAreaMax))] [DisableDefaultCtor] interface MPSImageAreaMin { @@ -467,7 +493,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, nuint kernelWidth, nuint kernelHeight); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageDilate { @@ -484,13 +511,14 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] is NS_UNAVAILABLE - You must use initWithDevice:kernelWidth:kernelHeight:values: instead. instead. // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImageDilate))] [DisableDefaultCtor] interface MPSImageErode { @@ -498,7 +526,7 @@ namespace MetalPerformanceShaders { // inlining ctor from base class -> done in manual bindings (wrt float* argument) // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -506,7 +534,8 @@ namespace MetalPerformanceShaders { // MPSImageResampling.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImageScale))] [DisableDefaultCtor] interface MPSImageLanczosScale { @@ -517,7 +546,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -525,7 +554,8 @@ namespace MetalPerformanceShaders { // MPSImageThreshold.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageThresholdBinary { @@ -546,13 +576,14 @@ namespace MetalPerformanceShaders { IntPtr _Transform { get; } // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageThresholdBinaryInverse { @@ -573,13 +604,14 @@ namespace MetalPerformanceShaders { IntPtr _Transform { get; } // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageThresholdTruncate { @@ -597,13 +629,14 @@ namespace MetalPerformanceShaders { IntPtr _Transform { get; } // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageThresholdToZero { @@ -621,13 +654,14 @@ namespace MetalPerformanceShaders { IntPtr _Transform { get; } // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageThresholdToZeroInverse { @@ -645,7 +679,7 @@ namespace MetalPerformanceShaders { IntPtr _Transform { get; } // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -653,11 +687,12 @@ namespace MetalPerformanceShaders { // MPSKernel.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSKernel : NSCopying, NSSecureCoding { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -682,7 +717,8 @@ namespace MetalPerformanceShaders { // MPSImageTranspose.h - [iOS (9,0)][Mac (10, 13)] + [iOS (9, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageTranspose { @@ -693,7 +729,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -701,7 +737,9 @@ namespace MetalPerformanceShaders { // MPSCNN.h - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSKernel), Name = "MPSCNNKernel")] [Abstract] [DisableDefaultCtor] @@ -721,11 +759,11 @@ namespace MetalPerformanceShaders { [Export ("destinationFeatureChannelOffset")] nuint DestinationFeatureChannelOffset { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("sourceFeatureChannelMaxCount")] nuint SourceFeatureChannelMaxCount { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("sourceFeatureChannelOffset")] nuint SourceFeatureChannelOffset { get; set; } @@ -735,15 +773,15 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:sourceImage:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] // keeping same name to match existing member + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] // keeping same name to match existing member [Export ("encodeToCommandBuffer:sourceImage:destinationState:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSState destinationState, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:destinationImages:")] void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImages, NSArray destinationImages); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationImages:")] void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImages, [NullAllowed] NSArray destinationStates, NSArray destinationImages); @@ -751,7 +789,7 @@ namespace MetalPerformanceShaders { MPSRegion GetSourceRegion (MTLSize destinationSize); //inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -760,7 +798,7 @@ namespace MetalPerformanceShaders { [Export ("isBackwards")] bool IsBackwards { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("isStateModified")] bool IsStateModified { get; } @@ -776,47 +814,47 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:sourceImage:")] MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:")] MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] out MPSState outState, bool isTemporary); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:")] NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImages); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:")] NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImages, [NullAllowed] out NSArray outStates, bool isTemporary); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateForSourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSState GetResultState (MPSImage sourceImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateBatchForSourceImage:sourceStates:destinationImage:")] [return: NullAllowed] NSArray GetResultStateBatch (NSArray sourceImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateForCommandBuffer:sourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSState GetTemporaryResultState (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateBatchForCommandBuffer:sourceImage:sourceStates:destinationImage:")] [return: NullAllowed] NSArray GetTemporaryResultStateBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("isResultStateReusedAcrossBatch")] bool IsResultStateReusedAcrossBatch { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("appendBatchBarrier")] bool AppendBatchBarrier { get; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("destinationImageDescriptorForSourceImages:sourceStates:")] MPSImageDescriptor GetDestinationImageDescriptor (NSArray sourceImages, [NullAllowed] NSArray sourceStates); @@ -836,16 +874,18 @@ namespace MetalPerformanceShaders { [Export ("strideInPixelsY")] nuint StrideInPixelsY { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("dilationRateX")] nuint DilationRateX { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("dilationRateY")] nuint DilationRateY { get; } } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNNeuron")] [Abstract] // You must use one of the sub-classes of MPSCNNNeuron [DisableDefaultCtor] @@ -856,38 +896,40 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [DesignatedInitializer] [Export ("initWithCoder:device:")] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); - [TV (11,0), Mac (10,13,4), iOS (11,3)] + [TV (11, 0), Mac (10, 13, 4), iOS (11, 3)] [Export ("neuronType")] MPSCnnNeuronType NeuronType { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("a")] float A { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("b")] float B { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("c")] float C { get; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("data", ArgumentSemantic.Retain)] NSData Data { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronLinear")] [DisableDefaultCtor] interface MPSCnnNeuronLinear { @@ -904,13 +946,15 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:")] NativeHandle Constructor (IMTLDevice device, float a, float b); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronReLU")] [DisableDefaultCtor] interface MPSCnnNeuronReLU { @@ -924,13 +968,15 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:")] NativeHandle Constructor (IMTLDevice device, float a); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronSigmoid")] [DisableDefaultCtor] interface MPSCnnNeuronSigmoid { @@ -941,13 +987,15 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:")] NativeHandle Constructor (IMTLDevice device); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronTanH")] [DisableDefaultCtor] interface MPSCnnNeuronTanH { @@ -966,13 +1014,15 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] marked as NS_UNAVAILABLE - Use initWithDevice:a:b: instead - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronAbsolute")] [DisableDefaultCtor] interface MPSCnnNeuronAbsolute { @@ -984,13 +1034,15 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject), Name = "MPSCNNConvolutionDescriptor")] [DisableDefaultCtor] interface MPSCnnConvolutionDescriptor : NSCopying, NSSecureCoding { @@ -1084,18 +1136,23 @@ namespace MetalPerformanceShaders { [Export ("dilationRateY")] nuint DilationRateY { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("fusedNeuronDescriptor", ArgumentSemantic.Retain)] MPSNNNeuronDescriptor FusedNeuronDescriptor { get; set; } } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] - [Native][Flags] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] + [Native] + [Flags] public enum MPSCnnConvolutionFlags : ulong { None = 0 } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNConvolution")] [DisableDefaultCtor] interface MPSCnnConvolution { @@ -1125,7 +1182,7 @@ namespace MetalPerformanceShaders { [Export ("groups")] nuint Groups { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("dataSource", ArgumentSemantic.Retain)] IMPSCnnConvolutionDataSource DataSource { get; } @@ -1162,7 +1219,7 @@ namespace MetalPerformanceShaders { [Export ("channelMultiplier")] nuint ChannelMultiplier { get; } - [TV (11,3), Mac (10,13, 4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("accumulatorPrecisionOption", ArgumentSemantic.Assign)] MPSNNConvolutionAccumulatorPrecisionOption AccumulatorPrecisionOption { get; set; } @@ -1187,7 +1244,7 @@ namespace MetalPerformanceShaders { [Export ("neuronParameterB")] float NeuronParameterB { get; } - [TV (11,2), iOS (11,2), Mac (10,13,2)] + [TV (11, 2), iOS (11, 2), Mac (10, 13, 2)] [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'FusedNeuronDescriptor' property of convolution descriptor instead.")] [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'FusedNeuronDescriptor' property of convolution descriptor instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'FusedNeuronDescriptor' property of convolution descriptor instead.")] @@ -1198,55 +1255,57 @@ namespace MetalPerformanceShaders { [Export ("subPixelScaleFactor")] nuint SubPixelScaleFactor { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [NullAllowed, Export ("fusedNeuronDescriptor")] MPSNNNeuronDescriptor FusedNeuronDescriptor { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateForSourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSCnnConvolutionGradientState GetResultState (MPSImage sourceImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateBatchForSourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSCnnConvolutionGradientState [] GetResultStateBatch (NSArray sourceImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateForCommandBuffer:sourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSCnnConvolutionGradientState GetTemporaryResultState (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateBatchForCommandBuffer:sourceImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSCnnConvolutionGradientState [] GetTemporaryResultStateBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadWeightsAndBiasesFromDataSource")] void ReloadWeightsAndBiasesFromDataSource (); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Deprecated (PlatformName.TvOS, 12, 0, message: "Please use 'ReloadWeightsAndBiasesFromDataSource' instead.")] [Deprecated (PlatformName.iOS, 12, 0, message: "Please use 'ReloadWeightsAndBiasesFromDataSource' instead.")] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use 'ReloadWeightsAndBiasesFromDataSource' instead.")] [Export ("reloadWeightsAndBiasesWithDataSource:")] void ReloadWeightsAndBiases (IMPSCnnConvolutionDataSource dataSource); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("reloadWeightsAndBiasesWithCommandBuffer:state:")] void ReloadWeightsAndBiases (IMTLCommandBuffer commandBuffer, MPSCnnConvolutionWeightsAndBiasesState state); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("exportWeightsAndBiasesWithCommandBuffer:resultStateCanBeTemporary:")] MPSCnnConvolutionWeightsAndBiasesState ExportWeightsAndBiases (IMTLCommandBuffer commandBuffer, bool resultStateCanBeTemporary); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnConvolution), Name = "MPSCNNFullyConnected")] [DisableDefaultCtor] interface MPSCnnFullyConnected { - + [Export ("initWithDevice:convolutionDescriptor:kernelWeights:biasTerms:flags:")] [Internal] IntPtr InitWithDevice (IMTLDevice device, MPSCnnConvolutionDescriptor fullyConnectedDescriptor, /* float* */ IntPtr kernelWeights, [NullAllowed] /* float* */ IntPtr biasTerms, MPSCnnConvolutionFlags flags); @@ -1254,7 +1313,7 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] marked as NS_UNAVAILABLE - Use initWithDevice:convolutionDescriptor:kernelWeights:biasTerms instead // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -1265,7 +1324,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, IMPSCnnConvolutionDataSource weights); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNPooling")] [DisableDefaultCtor] interface MPSCnnPooling { @@ -1301,7 +1362,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnPooling), Name = "MPSCNNPoolingMax")] [DisableDefaultCtor] interface MPSCnnPoolingMax { @@ -1318,7 +1381,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnPooling), Name = "MPSCNNPoolingAverage")] [DisableDefaultCtor] interface MPSCnnPoolingAverage { @@ -1343,7 +1408,9 @@ namespace MetalPerformanceShaders { nuint ZeroPadSizeY { get; set; } } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNSpatialNormalization")] [DisableDefaultCtor] interface MPSCnnSpatialNormalization { @@ -1377,7 +1444,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNSpatialNormalizationGradient")] [DisableDefaultCtor] interface MPSCnnSpatialNormalizationGradient { @@ -1400,7 +1467,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNLocalContrastNormalization")] [DisableDefaultCtor] interface MPSCnnLocalContrastNormalization { @@ -1443,7 +1512,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNLocalContrastNormalizationGradient")] [DisableDefaultCtor] interface MPSCnnLocalContrastNormalizationGradient { @@ -1475,7 +1544,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNCrossChannelNormalization")] [DisableDefaultCtor] interface MPSCnnCrossChannelNormalization { @@ -1504,7 +1575,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNCrossChannelNormalizationGradient")] [DisableDefaultCtor] interface MPSCnnCrossChannelNormalizationGradient { @@ -1530,7 +1601,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNSoftMax")] [DisableDefaultCtor] interface MPSCnnSoftMax { @@ -1542,7 +1615,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNSoftMaxGradient")] [DisableDefaultCtor] interface MPSCnnSoftMaxGradient { @@ -1556,7 +1629,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNLogSoftMax")] [DisableDefaultCtor] interface MPSCnnLogSoftMax { @@ -1568,7 +1643,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNLogSoftMaxGradient")] [DisableDefaultCtor] interface MPSCnnLogSoftMaxGradient { @@ -1584,7 +1659,9 @@ namespace MetalPerformanceShaders { // MPSImage.h - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSImageDescriptor : NSCopying { @@ -1625,8 +1702,11 @@ namespace MetalPerformanceShaders { MPSImageDescriptor GetImageDescriptor (MPSImageFeatureChannelFormat channelFormat, nuint width, nuint height, nuint featureChannels, nuint numberOfImages, MTLTextureUsage usage); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] - [Native][Flags] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] + [Native] + [Flags] public enum MPSPurgeableState : ulong { AllocationDeferred = 0, KeepCurrent = MTLPurgeableState.KeepCurrent, @@ -1635,12 +1715,14 @@ namespace MetalPerformanceShaders { Empty = MTLPurgeableState.Empty } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSImage { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Static] [Export ("defaultAllocator")] IMPSImageAllocator DefaultAllocator { get; } @@ -1672,7 +1754,7 @@ namespace MetalPerformanceShaders { [Export ("usage")] MTLTextureUsage Usage { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("featureChannelFormat")] MPSImageFeatureChannelFormat FeatureChannelFormat { get; } @@ -1685,7 +1767,7 @@ namespace MetalPerformanceShaders { [NullAllowed, Export ("label")] string Label { get; set; } - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [NullAllowed, Export ("parent", ArgumentSemantic.Retain)] MPSImage Parent { get; } @@ -1693,77 +1775,80 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, MPSImageDescriptor imageDescriptor); [DesignatedInitializer] - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithParentImage:sliceRange:featureChannels:")] NativeHandle Constructor (MPSImage parent, NSRange sliceRange, nuint featureChannels); [Export ("initWithTexture:featureChannels:")] NativeHandle Constructor (IMTLTexture texture, nuint featureChannels); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("batchRepresentation")] NSArray BatchRepresentation { get; } - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("batchRepresentationWithSubRange:")] NSArray GetBatchRepresentation (NSRange subRange); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("subImageWithFeatureChannelRange:")] MPSImage GetSubImage (NSRange featureChannelRange); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("resourceSize")] nuint ResourceSize { get; } [Export ("setPurgeableState:")] MPSPurgeableState SetPurgeableState (MPSPurgeableState state); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("readBytes:dataLayout:bytesPerRow:region:featureChannelInfo:imageIndex:")] void ReadBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, nuint imageIndex); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("writeBytes:dataLayout:bytesPerRow:region:featureChannelInfo:imageIndex:")] void WriteBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, nuint imageIndex); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("writeBytes:dataLayout:bytesPerColumn:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:")] void WriteBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint bytesPerColumn, nuint bytesPerRow, nuint bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, nuint imageIndex); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("readBytes:dataLayout:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:")] void ReadBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint bytesPerRow, nuint bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, nuint imageIndex); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("writeBytes:dataLayout:bytesPerRow:bytesPerImage:region:featureChannelInfo:imageIndex:")] void WriteBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint bytesPerRow, nuint bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, nuint imageIndex); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("readBytes:dataLayout:imageIndex:")] void ReadBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint imageIndex); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("writeBytes:dataLayout:imageIndex:")] void WriteBytes (IntPtr /* void* */ dataBytes, MPSDataLayout dataLayout, nuint imageIndex); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("synchronizeOnCommandBuffer:")] void Synchronize (IMTLCommandBuffer commandBuffer); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSImage))] [DisableDefaultCtor] interface MPSTemporaryImage { - [TV (11,0), iOS (11,0)] - [Static][New] + [TV (11, 0), iOS (11, 0)] + [Static] + [New] [Export ("defaultAllocator")] IMPSImageAllocator DefaultAllocator { get; } [DesignatedInitializer] - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithParentImage:sliceRange:featureChannels:")] NativeHandle Constructor (MPSImage parent, NSRange sliceRange, nuint featureChannels); @@ -1775,23 +1860,22 @@ namespace MetalPerformanceShaders { [Export ("temporaryImageWithCommandBuffer:textureDescriptor:")] MPSTemporaryImage GetTemporaryImage (IMTLCommandBuffer commandBuffer, MTLTextureDescriptor textureDescriptor); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Static] [Export ("temporaryImageWithCommandBuffer:textureDescriptor:featureChannels:")] MPSTemporaryImage GetTemporaryImage (IMTLCommandBuffer commandBuffer, MTLTextureDescriptor textureDescriptor, nuint featureChannels); [Static] [Export ("prefetchStorageWithCommandBuffer:imageDescriptorList:")] - void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSImageDescriptor[] descriptorList); + void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSImageDescriptor [] descriptorList); [Export ("readCount")] nuint ReadCount { get; set; } } - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] - interface MPSPredicate - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] + interface MPSPredicate { [Export ("predicateBuffer", ArgumentSemantic.Retain)] IMTLBuffer PredicateBuffer { get; } @@ -1811,11 +1895,10 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - interface IMPSHeapProvider {} + interface IMPSHeapProvider { } [Protocol] - interface MPSHeapProvider - { + interface MPSHeapProvider { [Abstract] [Export ("newHeapWithDescriptor:")] [return: NullAllowed] @@ -1826,11 +1909,10 @@ namespace MetalPerformanceShaders { void RetireHeap (IMTLHeap heap, double seconds); } - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPSCommandBuffer : MTLCommandBuffer - { + interface MPSCommandBuffer : MTLCommandBuffer { [Export ("commandBuffer", ArgumentSemantic.Retain)] IMTLCommandBuffer CommandBuffer { get; } @@ -1865,7 +1947,9 @@ namespace MetalPerformanceShaders { // MPSImageConversion.h - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageConversion { @@ -1881,7 +1965,7 @@ namespace MetalPerformanceShaders { IntPtr InitWithDevice (IMTLDevice device, MPSAlphaType srcAlpha, MPSAlphaType destAlpha, [NullAllowed] /* nfloat* */ IntPtr backgroundColor, [NullAllowed] CGColorConversionInfo conversionInfo); // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); @@ -1889,7 +1973,9 @@ namespace MetalPerformanceShaders { // MPSMatrix.h - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSMatrixDescriptor { @@ -1928,23 +2014,25 @@ namespace MetalPerformanceShaders { [Export ("matrixBytes")] nuint MatrixBytes { get; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Static] [Export ("matrixDescriptorWithRows:columns:rowBytes:dataType:")] MPSMatrixDescriptor GetMatrixDescriptor (nuint rows, nuint columns, nuint rowBytes, MPSDataType dataType); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Static] [Export ("matrixDescriptorWithRows:columns:matrices:rowBytes:matrixBytes:dataType:")] MPSMatrixDescriptor GetMatrixDescriptor (nuint rows, nuint columns, nuint matrices, nuint rowBytes, nuint matrixBytes, MPSDataType dataType); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Static] [Export ("rowBytesForColumns:dataType:")] nuint GetRowBytesForColumns (nuint columns, MPSDataType dataType); } - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init NS_UNAVAILABLE; interface MPSMatrix { @@ -1970,19 +2058,19 @@ namespace MetalPerformanceShaders { [Export ("initWithBuffer:descriptor:")] NativeHandle Constructor (IMTLBuffer buffer, MPSMatrixDescriptor descriptor); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("initWithBuffer:offset:descriptor:")] NativeHandle Constructor (IMTLBuffer buffer, nuint offset, MPSMatrixDescriptor descriptor); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithDevice:descriptor:")] NativeHandle Constructor (IMTLDevice device, MPSMatrixDescriptor descriptor); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("synchronizeOnCommandBuffer:")] void Synchronize (IMTLCommandBuffer commandBuffer); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resourceSize")] nuint ResourceSize { get; } @@ -2001,11 +2089,13 @@ namespace MetalPerformanceShaders { // MPSMatrixMultiplication.h - [iOS (10,0)][TV (10,0)][Mac (10, 13)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSMatrixMultiplication { - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithDevice:resultRows:resultColumns:interiorColumns:")] NativeHandle Constructor (IMTLDevice device, nuint resultRows, nuint resultColumns, nuint interiorColumns); @@ -2027,70 +2117,70 @@ namespace MetalPerformanceShaders { // [Export ("initWithDevice:")] marked as NS_UNAVAILABLE - Use the above initialization method instead. // inlining ctor from base class - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("batchStart")] nuint BatchStart { get; set; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("batchSize")] nuint BatchSize { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSState { - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Static] [Export ("temporaryStateWithCommandBuffer:bufferSize:")] MPSState CreateTemporaryState (IMTLCommandBuffer commandBuffer, nuint bufferSize); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Static] [Export ("temporaryStateWithCommandBuffer:textureDescriptor:")] MPSState CreateTemporaryState (IMTLCommandBuffer commandBuffer, MTLTextureDescriptor descriptor); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Static] [Export ("temporaryStateWithCommandBuffer:")] MPSState CreateTemporaryState (IMTLCommandBuffer commandBuffer); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithDevice:bufferSize:")] NativeHandle Constructor (IMTLDevice device, nuint bufferSize); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithDevice:textureDescriptor:")] NativeHandle Constructor (IMTLDevice device, MTLTextureDescriptor descriptor); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithResource:")] NativeHandle Constructor ([NullAllowed] IMTLResource resource); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithDevice:resourceList:")] NativeHandle Constructor (IMTLDevice device, MPSStateResourceList resourceList); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Static] [Export ("temporaryStateWithCommandBuffer:resourceList:")] MPSState CreateTemporaryState (IMTLCommandBuffer commandBuffer, MPSStateResourceList resourceList); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("initWithResources:")] NativeHandle Constructor ([NullAllowed] IMTLResource [] resources); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("resourceCount")] nuint ResourceCount { get; } - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("resourceAtIndex:allocateMemory:")] [return: NullAllowed] IMTLResource GetResource (nuint index, bool allocateMemory); @@ -2104,27 +2194,27 @@ namespace MetalPerformanceShaders { [NullAllowed, Export ("label")] string Label { get; set; } - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("bufferSizeAtIndex:")] nuint GetBufferSize (nuint index); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("textureInfoAtIndex:")] MPSStateTextureInfo GetTextureInfo (nuint index); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("resourceTypeAtIndex:")] MPSStateResourceType GetResourceType (nuint index); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("synchronizeOnCommandBuffer:")] void Synchronize (IMTLCommandBuffer commandBuffer); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("resourceSize")] nuint ResourceSize { get; } - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:")] MPSImageDescriptor GetDestinationImageDescriptor (NSArray sourceImages, [NullAllowed] NSArray sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor); @@ -2136,8 +2226,8 @@ namespace MetalPerformanceShaders { IMTLResource Resource { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrix))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrix))] [DisableDefaultCtor] interface MPSTemporaryMatrix { [Static] @@ -2146,13 +2236,13 @@ namespace MetalPerformanceShaders { [Static] [Export ("prefetchStorageWithCommandBuffer:matrixDescriptorList:")] - void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSMatrixDescriptor[] descriptorList); + void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSMatrixDescriptor [] descriptorList); [Export ("readCount")] nuint ReadCount { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSVector { @@ -2177,19 +2267,19 @@ namespace MetalPerformanceShaders { [Export ("initWithBuffer:descriptor:")] NativeHandle Constructor (IMTLBuffer buffer, MPSVectorDescriptor descriptor); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("initWithBuffer:offset:descriptor:")] NativeHandle Constructor (IMTLBuffer buffer, nuint offset, MPSVectorDescriptor descriptor); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithDevice:descriptor:")] NativeHandle Constructor (IMTLDevice device, MPSVectorDescriptor descriptor); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("synchronizeOnCommandBuffer:")] void Synchronize (IMTLCommandBuffer commandBuffer); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resourceSize")] nuint ResourceSize { get; } @@ -2198,7 +2288,7 @@ namespace MetalPerformanceShaders { nuint Offset { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSVectorDescriptor { @@ -2227,8 +2317,8 @@ namespace MetalPerformanceShaders { nuint GetVectorBytes (nuint length, MPSDataType dataType); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixUnaryKernel { [Export ("sourceMatrixOrigin", ArgumentSemantic.Assign)] @@ -2253,8 +2343,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixBinaryKernel { [Export ("primarySourceMatrixOrigin", ArgumentSemantic.Assign)] @@ -2281,9 +2371,9 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixBinaryKernel))] + + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixVectorMultiplication { [Export ("initWithDevice:transpose:rows:columns:alpha:beta:")] @@ -2305,8 +2395,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixBinaryKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixSolveTriangular { [Export ("initWithDevice:right:upper:transpose:unit:order:numberOfRightHandSides:alpha:")] @@ -2325,8 +2415,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixBinaryKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixSolveLU { [Export ("initWithDevice:transpose:order:numberOfRightHandSides:")] @@ -2345,8 +2435,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixBinaryKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixSolveCholesky { [Export ("initWithDevice:upper:order:numberOfRightHandSides:")] @@ -2365,8 +2455,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixUnaryKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixDecompositionLU { [Export ("initWithDevice:rows:columns:")] @@ -2385,8 +2475,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSMatrixUnaryKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] // According to docs needs a Metal Device so initWithDevice: makes more sense. interface MPSMatrixDecompositionCholesky { [Export ("initWithDevice:lower:order:")] @@ -2405,7 +2495,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSMatrixCopyDescriptor { @@ -2422,11 +2512,11 @@ namespace MetalPerformanceShaders { [Export ("initWithSourceMatrices:destinationMatrices:offsetVector:offset:")] [DesignatedInitializer] - NativeHandle Constructor (MPSMatrix[] sourceMatrices, MPSMatrix[] destinationMatrices, [NullAllowed] MPSVector offsets, nuint byteOffset); + NativeHandle Constructor (MPSMatrix [] sourceMatrices, MPSMatrix [] destinationMatrices, [NullAllowed] MPSVector offsets, nuint byteOffset); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSMatrixCopy { [Export ("initWithDevice:copyRows:copyColumns:sourcesAreTransposed:destinationsAreTransposed:")] @@ -2448,7 +2538,7 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:copyDescriptor:")] void EncodeToCommandBuffer (IMTLCommandBuffer cmdBuf, MPSMatrixCopyDescriptor copyDescriptor); - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [Export ("encodeToCommandBuffer:copyDescriptor:rowPermuteIndices:rowPermuteOffset:columnPermuteIndices:columnPermuteOffset:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSMatrixCopyDescriptor copyDescriptor, [NullAllowed] MPSVector rowPermuteIndices, nuint rowPermuteOffset, [NullAllowed] MPSVector columnPermuteIndices, nuint columnPermuteOffset); @@ -2457,10 +2547,9 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] - interface MPSMatrixRandomDistributionDescriptor : NSCopying - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] + interface MPSMatrixRandomDistributionDescriptor : NSCopying { [Export ("distributionType", ArgumentSemantic.Assign)] MPSMatrixRandomDistribution DistributionType { get; set; } @@ -2486,10 +2575,9 @@ namespace MetalPerformanceShaders { } [DisableDefaultCtor] - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(MPSKernel))] - interface MPSMatrixRandom - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MPSKernel))] + interface MPSMatrixRandom { [Export ("destinationDataType")] MPSDataType DestinationDataType { get; } @@ -2510,10 +2598,9 @@ namespace MetalPerformanceShaders { } [DisableDefaultCtor] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (MPSMatrixRandom), Name = "MPSMatrixRandomMTGP32")] - interface MPSMatrixRandomMtgp32 - { + interface MPSMatrixRandomMtgp32 { [Export ("initWithDevice:")] NativeHandle Constructor (IMTLDevice device); @@ -2533,10 +2620,9 @@ namespace MetalPerformanceShaders { } [DisableDefaultCtor] - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(MPSMatrixRandom))] - interface MPSMatrixRandomPhilox - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MPSMatrixRandom))] + interface MPSMatrixRandomPhilox { [Export ("initWithDevice:")] NativeHandle Constructor (IMTLDevice device); @@ -2553,9 +2639,9 @@ namespace MetalPerformanceShaders { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] - [BaseType (typeof(MPSKernel))] + [BaseType (typeof (MPSKernel))] interface MPSImageCopyToMatrix { [Export ("destinationMatrixOrigin", ArgumentSemantic.Assign)] MTLOrigin DestinationMatrixOrigin { get; set; } @@ -2577,13 +2663,13 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:sourceImage:destinationMatrix:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSMatrix destinationMatrix); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("encodeBatchToCommandBuffer:sourceImages:destinationMatrix:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, NSArray sourceImages, MPSMatrix destinationMatrix); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSImageFindKeypoints { [Export ("keypointRangeInfo")] @@ -2600,9 +2686,9 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:sourceTexture:regions:numberOfRegions:keypointCountBuffer:keypointCountBufferOffset:keypointDataBuffer:keypointDataBufferOffset:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, IMTLTexture source, MTLRegion regions, nuint numberOfRegions, IMTLBuffer keypointCountBuffer, nuint keypointCountBufferOffset, IMTLBuffer keypointDataBuffer, nuint keypointDataBufferOffset); } - - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSBinaryImageKernel))] + + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSBinaryImageKernel))] [DisableDefaultCtor] interface MPSImageArithmetic { [Export ("primaryScale")] @@ -2621,12 +2707,12 @@ namespace MetalPerformanceShaders { MTLSize SecondaryStrideInPixels { get; set; } // float - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("minimumValue")] float MinimumValue { get; set; } // float - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("maximumValue")] float MaximumValue { get; set; } @@ -2636,8 +2722,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSImageArithmetic))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSImageArithmetic))] [DisableDefaultCtor] interface MPSImageAdd { [Export ("initWithDevice:")] @@ -2645,8 +2731,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSImageArithmetic))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSImageArithmetic))] [DisableDefaultCtor] interface MPSImageSubtract { [Export ("initWithDevice:")] @@ -2654,8 +2740,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSImageArithmetic))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSImageArithmetic))] [DisableDefaultCtor] interface MPSImageMultiply { [Export ("initWithDevice:")] @@ -2663,8 +2749,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSImageArithmetic))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSImageArithmetic))] [DisableDefaultCtor] interface MPSImageDivide { [Export ("initWithDevice:")] @@ -2672,8 +2758,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSUnaryImageKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageScale { [Export ("initWithDevice:")] @@ -2696,8 +2782,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSImageScale))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSImageScale))] [DisableDefaultCtor] interface MPSImageBilinearScale { [Export ("initWithDevice:")] @@ -2709,8 +2795,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSUnaryImageKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageStatisticsMinAndMax { [Export ("clipRectSource", ArgumentSemantic.Assign)] @@ -2725,8 +2811,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSUnaryImageKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageStatisticsMeanAndVariance { [Export ("clipRectSource", ArgumentSemantic.Assign)] @@ -2741,8 +2827,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSUnaryImageKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageStatisticsMean { [Export ("clipRectSource", ArgumentSemantic.Assign)] @@ -2757,7 +2843,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNDefaultPadding : MPSNNPadding { @@ -2766,18 +2852,18 @@ namespace MetalPerformanceShaders { MPSNNDefaultPadding Create (MPSNNPaddingMethod method); [Static] - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("paddingForTensorflowAveragePooling")] MPSNNDefaultPadding CreatePaddingForTensorflowAveragePooling (); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Static] [Export ("paddingForTensorflowAveragePoolingValidOnly")] MPSNNDefaultPadding CreatePaddingForTensorflowAveragePoolingValidOnly (); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel), Name = "MPSCNNBinaryKernel")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel), Name = "MPSCNNBinaryKernel")] [DisableDefaultCtor] interface MPSCnnBinaryKernel { [Export ("initWithDevice:")] @@ -2796,19 +2882,19 @@ namespace MetalPerformanceShaders { [Export ("destinationFeatureChannelOffset")] nuint DestinationFeatureChannelOffset { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primarySourceFeatureChannelOffset")] nuint PrimarySourceFeatureChannelOffset { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondarySourceFeatureChannelOffset")] nuint SecondarySourceFeatureChannelOffset { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primarySourceFeatureChannelMaxCount")] nuint PrimarySourceFeatureChannelMaxCount { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondarySourceFeatureChannelMaxCount")] nuint SecondarySourceFeatureChannelMaxCount { get; set; } @@ -2818,19 +2904,19 @@ namespace MetalPerformanceShaders { [Export ("secondaryEdgeMode", ArgumentSemantic.Assign)] MPSImageEdgeMode SecondaryEdgeMode { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primaryKernelWidth")] nuint PrimaryKernelWidth { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primaryKernelHeight")] nuint PrimaryKernelHeight { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryKernelWidth")] nuint SecondaryKernelWidth { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryKernelHeight")] nuint SecondaryKernelHeight { get; } @@ -2848,19 +2934,19 @@ namespace MetalPerformanceShaders { #endif // Apple added availability info here - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primaryStrideInPixelsX")] nuint PrimaryStrideInPixelsX { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primaryStrideInPixelsY")] nuint PrimaryStrideInPixelsY { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryStrideInPixelsX")] nuint SecondaryStrideInPixelsX { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryStrideInPixelsY")] nuint SecondaryStrideInPixelsY { get; set; } @@ -2868,22 +2954,22 @@ namespace MetalPerformanceShaders { [Export ("primaryDilationRateX")] nuint PrimaryDilationRateX { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("primaryDilationRateY")] nuint PrimaryDilationRateY { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryDilationRateX")] nuint SecondaryDilationRateX { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("secondaryDilationRateY")] nuint SecondaryDilationRateY { get; } [Export ("isBackwards")] bool IsBackwards { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("isStateModified")] bool IsStateModified { get; } @@ -2900,67 +2986,67 @@ namespace MetalPerformanceShaders { [Export ("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationImages:")] void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray primaryImages, NSArray secondaryImages, NSArray destinationImages); [Export ("encodeToCommandBuffer:primaryImage:secondaryImage:")] MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:primaryImages:secondaryImages:")] NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray primaryImage, NSArray secondaryImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeToCommandBuffer:primaryImage:secondaryImage:destinationState:destinationStateIsTemporary:")] MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, [NullAllowed] out MPSState outState, bool isTemporary); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationStates:destinationStateIsTemporary:")] NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray primaryImages, NSArray secondaryImages, [NullAllowed] out MPSState [] outState, bool isTemporary); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateForPrimaryImage:secondaryImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSState GetResultState (MPSImage primaryImage, MPSImage secondaryImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultStateBatchForPrimaryImage:secondaryImage:sourceStates:destinationImage:")] [return: NullAllowed] NSArray GetResultStateBatch (NSArray primaryImage, NSArray secondaryImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:")] [return: NullAllowed] MPSState GetTemporaryResultState (IMTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:")] [return: NullAllowed] NSArray GetTemporaryResultStateBatch (IMTLCommandBuffer commandBuffer, NSArray primaryImage, NSArray secondaryImage, [NullAllowed] NSArray [] sourceStates, NSArray destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("isResultStateReusedAcrossBatch")] bool IsResultStateReusedAcrossBatch { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("appendBatchBarrier")] bool AppendBatchBarrier { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("destinationImageDescriptorForSourceImages:sourceStates:")] MPSImageDescriptor GetDestinationImageDescriptor (NSArray sourceImages, [NullAllowed] NSArray sourceStates); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronPReLU")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronPReLU")] [DisableDefaultCtor] interface MPSCnnNeuronPReLU { [Export ("initWithDevice:a:count:")] [Internal, Sealed] IntPtr InitWithDevice (IMTLDevice device, IntPtr /* float* */ a, nuint count); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); @@ -2971,8 +3057,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronHardSigmoid")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronHardSigmoid")] [DisableDefaultCtor] interface MPSCnnNeuronHardSigmoid { [Export ("a")] @@ -2988,14 +3074,14 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, float a, float b); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronSoftPlus")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronSoftPlus")] [DisableDefaultCtor] interface MPSCnnNeuronSoftPlus { [Export ("a")] @@ -3010,14 +3096,14 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:")] NativeHandle Constructor (IMTLDevice device, float a, float b); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronSoftSign")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronSoftSign")] [DisableDefaultCtor] interface MPSCnnNeuronSoftSign { [Deprecated (PlatformName.TvOS, 12, 0, message: "Please use '.ctor (IMTLDevice, MPSNNNeuronDescriptor)' overload instead.")] @@ -3027,14 +3113,14 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronELU")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronELU")] [DisableDefaultCtor] interface MPSCnnNeuronElu { [Export ("a")] @@ -3046,14 +3132,14 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:")] NativeHandle Constructor (IMTLDevice device, float a); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnNeuron), Name = "MPSCNNNeuronReLUN")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronReLUN")] [DisableDefaultCtor] interface MPSCnnNeuronReLun { [Export ("a")] @@ -3068,13 +3154,13 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:")] NativeHandle Constructor (IMTLDevice device, float a, float b); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronPower")] [DisableDefaultCtor] interface MPSCnnNeuronPower { @@ -3085,13 +3171,13 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:c:")] NativeHandle Constructor (IMTLDevice device, float a, float b, float c); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronExponential")] [DisableDefaultCtor] interface MPSCnnNeuronExponential { @@ -3102,13 +3188,13 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:c:")] NativeHandle Constructor (IMTLDevice device, float a, float b, float c); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuron), Name = "MPSCNNNeuronLogarithm")] [DisableDefaultCtor] interface MPSCnnNeuronLogarithm { @@ -3119,30 +3205,30 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:a:b:c:")] NativeHandle Constructor (IMTLDevice device, float a, float b, float c); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:neuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNNeuronDescriptor neuronDescriptor); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnConvolutionDescriptor), Name = "MPSCNNSubPixelConvolutionDescriptor")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnConvolutionDescriptor), Name = "MPSCNNSubPixelConvolutionDescriptor")] [DisableDefaultCtor] interface MPSCnnSubPixelConvolutionDescriptor { [Export ("subPixelScaleFactor")] nuint SubPixelScaleFactor { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnConvolutionDescriptor), Name = "MPSCNNDepthWiseConvolutionDescriptor")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnConvolutionDescriptor), Name = "MPSCNNDepthWiseConvolutionDescriptor")] [DisableDefaultCtor] interface MPSCnnDepthWiseConvolutionDescriptor { [Export ("channelMultiplier")] nuint ChannelMultiplier { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnKernel), Name = "MPSCNNConvolutionTranspose")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNConvolutionTranspose")] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSCnnConvolutionTranspose { [Export ("inputFeatureChannels")] @@ -3160,7 +3246,7 @@ namespace MetalPerformanceShaders { [Export ("groups")] nuint Groups { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("accumulatorPrecisionOption", ArgumentSemantic.Assign)] MPSNNConvolutionAccumulatorPrecisionOption AccumulatorPrecisionOption { get; set; } @@ -3172,25 +3258,25 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeToCommandBuffer:sourceImage:convolutionGradientState:")] MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] MPSCnnConvolutionGradientState convolutionGradientState); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:")] NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, [NullAllowed] MPSCnnConvolutionGradientState [] convolutionGradientState); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationImage:")] void EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] MPSCnnConvolutionGradientState convolutionGradientState, MPSImage destinationImage); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationImages:")] void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, [NullAllowed] MPSCnnConvolutionGradientState [] convolutionGradientState, NSArray destinationImage); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnKernel), Name = "MPSCNNBinaryConvolution")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNBinaryConvolution")] [DisableDefaultCtor] interface MPSCnnBinaryConvolution { [Export ("inputFeatureChannels")] @@ -3203,14 +3289,14 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, IMPSCnnConvolutionDataSource convolutionData, float scaleValue, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Internal, Sealed, Export ("initWithDevice:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:")] - IntPtr InitWithDevice (IMTLDevice device, IMPSCnnConvolutionDataSource convolutionData, [NullAllowed] IntPtr /* float* */ outputBiasTerms, [NullAllowed] IntPtr /* float* */ outputScaleTerms, [NullAllowed] IntPtr /* float* */ inputBiasTerms, [NullAllowed] IntPtr /* float* */ inputScaleTerms,MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); + IntPtr InitWithDevice (IMTLDevice device, IMPSCnnConvolutionDataSource convolutionData, [NullAllowed] IntPtr /* float* */ outputBiasTerms, [NullAllowed] IntPtr /* float* */ outputScaleTerms, [NullAllowed] IntPtr /* float* */ inputBiasTerms, [NullAllowed] IntPtr /* float* */ inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnBinaryConvolution), Name = "MPSCNNBinaryFullyConnected")] [DisableDefaultCtor] interface MPSCnnBinaryFullyConnected { @@ -3225,8 +3311,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnPooling), Name = "MPSCNNPoolingL2Norm")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnPooling), Name = "MPSCNNPoolingL2Norm")] [DisableDefaultCtor] // failed assertion. interface MPSCnnPoolingL2Norm { [Export ("initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:")] @@ -3238,8 +3324,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnPooling), Name = "MPSCNNDilatedPoolingMax")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnPooling), Name = "MPSCNNDilatedPoolingMax")] [DisableDefaultCtor] // failed assertion. interface MPSCnnDilatedPoolingMax { [Export ("dilationRateX")] @@ -3257,7 +3343,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNPoolingGradient")] [DisableDefaultCtor] interface MPSCnnPoolingGradient { @@ -3277,7 +3363,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradient), Name = "MPSCNNPoolingAverageGradient")] [DisableDefaultCtor] interface MPSCnnPoolingAverageGradient { @@ -3297,7 +3383,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradient), Name = "MPSCNNPoolingMaxGradient")] [DisableDefaultCtor] interface MPSCnnPoolingMaxGradient { @@ -3311,7 +3397,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradient), Name = "MPSCNNPoolingL2NormGradient")] [DisableDefaultCtor] interface MPSCnnPoolingL2NormGradient { @@ -3325,7 +3411,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradient), Name = "MPSCNNDilatedPoolingMaxGradient")] [DisableDefaultCtor] interface MPSCnnDilatedPoolingMaxGradient { @@ -3339,8 +3425,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnKernel), Name = "MPSCNNUpsampling")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNUpsampling")] [DisableDefaultCtor] // failed assertion interface MPSCnnUpsampling { [Export ("scaleFactorX")] @@ -3349,7 +3435,7 @@ namespace MetalPerformanceShaders { [Export ("scaleFactorY")] double ScaleFactorY { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("alignCorners")] bool AlignCorners { get; } @@ -3359,7 +3445,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnUpsampling), Name = "MPSCNNUpsamplingNearest")] [DisableDefaultCtor] // failed assertion. interface MPSCnnUpsamplingNearest { @@ -3368,20 +3454,20 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, nuint integerScaleFactorX, nuint integerScaleFactorY); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnUpsampling), Name = "MPSCNNUpsamplingBilinear")] [DisableDefaultCtor] // failed assertion. interface MPSCnnUpsamplingBilinear { [Export ("initWithDevice:integerScaleFactorX:integerScaleFactorY:")] NativeHandle Constructor (IMTLDevice device, nuint integerScaleFactorX, nuint integerScaleFactorY); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:integerScaleFactorX:integerScaleFactorY:alignCorners:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, nuint integerScaleFactorX, nuint integerScaleFactorY, bool alignCorners); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNUpsamplingGradient")] [DisableDefaultCtor] interface MPSCnnUpsamplingGradient { @@ -3401,7 +3487,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnUpsamplingGradient), Name = "MPSCNNUpsamplingNearestGradient")] [DisableDefaultCtor] interface MPSCnnUpsamplingNearestGradient { @@ -3411,7 +3497,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, nuint integerScaleFactorX, nuint integerScaleFactorY); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnUpsamplingGradient), Name = "MPSCNNUpsamplingBilinearGradient")] [DisableDefaultCtor] interface MPSCnnUpsamplingBilinearGradient { @@ -3421,7 +3507,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, nuint integerScaleFactorX, nuint integerScaleFactorY); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject), Name = "MPSRNNDescriptor")] interface MPSRnnDescriptor { [Export ("inputFeatureChannels")] @@ -3440,8 +3526,8 @@ namespace MetalPerformanceShaders { MPSRnnSequenceDirection LayerSequenceDirection { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSRnnDescriptor), Name = "MPSRNNSingleGateDescriptor")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSRnnDescriptor), Name = "MPSRNNSingleGateDescriptor")] interface MPSRnnSingleGateDescriptor { [NullAllowed, Export ("inputWeights", ArgumentSemantic.Retain)] IMPSCnnConvolutionDataSource InputWeights { get; set; } @@ -3454,8 +3540,8 @@ namespace MetalPerformanceShaders { MPSRnnSingleGateDescriptor Create (nuint inputFeatureChannels, nuint outputFeatureChannels); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSRnnDescriptor))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSRnnDescriptor))] interface MPSGRUDescriptor { [NullAllowed, Export ("inputGateInputWeights", ArgumentSemantic.Retain)] IMPSCnnConvolutionDataSource InputGateInputWeights { get; set; } @@ -3489,8 +3575,8 @@ namespace MetalPerformanceShaders { MPSGRUDescriptor Create (nuint inputFeatureChannels, nuint outputFeatureChannels); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSRnnDescriptor))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSRnnDescriptor))] interface MPSLSTMDescriptor { [Export ("memoryWeightsAreDiagonal")] bool AreMemoryWeightsDiagonal { get; set; } @@ -3540,7 +3626,7 @@ namespace MetalPerformanceShaders { [Export ("cellToOutputNeuronParamB")] float CellToOutputNeuronParamB { get; set; } - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [Export ("cellToOutputNeuronParamC")] float CellToOutputNeuronParamC { get; set; } @@ -3549,8 +3635,8 @@ namespace MetalPerformanceShaders { MPSLSTMDescriptor Create (nuint inputFeatureChannels, nuint outputFeatureChannels); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSState), Name = "MPSRNNRecurrentImageState")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSState), Name = "MPSRNNRecurrentImageState")] [DisableDefaultCtor] // 'init' is unavailable interface MPSRnnRecurrentImageState { [Export ("getRecurrentOutputImageForLayerIndex:")] @@ -3562,8 +3648,8 @@ namespace MetalPerformanceShaders { MPSImage GetMemoryCellImage (nuint layerIndex); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSCnnKernel), Name = "MPSRNNImageInferenceLayer")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnKernel), Name = "MPSRNNImageInferenceLayer")] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSRnnImageInferenceLayer { [Export ("inputFeatureChannels")] @@ -3590,13 +3676,13 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:rnnDescriptors:")] [DesignatedInitializer] - NativeHandle Constructor (IMTLDevice device, MPSRnnDescriptor[] rnnDescriptors); + NativeHandle Constructor (IMTLDevice device, MPSRnnDescriptor [] rnnDescriptors); [Export ("encodeSequenceToCommandBuffer:sourceImages:destinationImages:recurrentInputState:recurrentOutputStates:")] - void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSImage[] sourceImages, MPSImage[] destinationImages, [NullAllowed] MPSRnnRecurrentImageState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); + void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSImage [] sourceImages, MPSImage [] destinationImages, [NullAllowed] MPSRnnRecurrentImageState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); [Export ("encodeBidirectionalSequenceToCommandBuffer:sourceSequence:destinationForwardImages:destinationBackwardImages:")] - void EncodeBidirectionalSequence (IMTLCommandBuffer commandBuffer, MPSImage[] sourceSequence, MPSImage[] destinationForwardImages, [NullAllowed] MPSImage[] destinationBackwardImages); + void EncodeBidirectionalSequence (IMTLCommandBuffer commandBuffer, MPSImage [] sourceSequence, MPSImage [] destinationForwardImages, [NullAllowed] MPSImage [] destinationBackwardImages); [Export ("initWithCoder:device:")] [DesignatedInitializer] @@ -3607,8 +3693,8 @@ namespace MetalPerformanceShaders { MPSRnnImageInferenceLayer Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSState), Name = "MPSRNNRecurrentMatrixState")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSState), Name = "MPSRNNRecurrentMatrixState")] [DisableDefaultCtor] // 'init' is unavailable interface MPSRnnRecurrentMatrixState { [Export ("getRecurrentOutputMatrixForLayerIndex:")] @@ -3620,8 +3706,8 @@ namespace MetalPerformanceShaders { MPSMatrix GetMemoryCellMatrix (nuint layerIndex); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel), Name = "MPSRNNMatrixInferenceLayer")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel), Name = "MPSRNNMatrixInferenceLayer")] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSRnnMatrixInferenceLayer { [Export ("inputFeatureChannels")] @@ -3648,17 +3734,17 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:rnnDescriptors:")] [DesignatedInitializer] - NativeHandle Constructor (IMTLDevice device, MPSRnnDescriptor[] rnnDescriptors); + NativeHandle Constructor (IMTLDevice device, MPSRnnDescriptor [] rnnDescriptors); [Export ("encodeSequenceToCommandBuffer:sourceMatrices:destinationMatrices:recurrentInputState:recurrentOutputStates:")] - void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] sourceMatrices, MPSMatrix[] destinationMatrices, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); + void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] sourceMatrices, MPSMatrix [] destinationMatrices, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("encodeSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:")] - void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] sourceMatrices, [NullAllowed] IntPtr sourceOffsets, MPSMatrix[] destinationMatrices, [NullAllowed] IntPtr destinationOffsets, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); + void EncodeSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] sourceMatrices, [NullAllowed] IntPtr sourceOffsets, MPSMatrix [] destinationMatrices, [NullAllowed] IntPtr destinationOffsets, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates); [Export ("encodeBidirectionalSequenceToCommandBuffer:sourceSequence:destinationForwardMatrices:destinationBackwardMatrices:")] - void EncodeBidirectionalSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] sourceSequence, MPSMatrix[] destinationForwardMatrices, [NullAllowed] MPSMatrix[] destinationBackwardMatrices); + void EncodeBidirectionalSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] sourceSequence, MPSMatrix [] destinationForwardMatrices, [NullAllowed] MPSMatrix [] destinationBackwardMatrices); [Export ("initWithCoder:device:")] [DesignatedInitializer] @@ -3669,7 +3755,7 @@ namespace MetalPerformanceShaders { MPSRnnMatrixInferenceLayer Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNImageNode { @@ -3697,16 +3783,16 @@ namespace MetalPerformanceShaders { [Export ("exportFromGraph")] bool ExportFromGraph { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("synchronizeResource")] bool SynchronizeResource { get; set; } - [TV (12,2), Mac (10,14), iOS (12,0)] + [TV (12, 2), Mac (10, 14), iOS (12, 0)] [Export ("stopGradient")] bool StopGradient { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNStateNode { @@ -3716,15 +3802,15 @@ namespace MetalPerformanceShaders { [Export ("exportFromGraph")] bool ExportFromGraph { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("synchronizeResource")] bool SynchronizeResource { get; set; } } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] delegate void MPSGradientNodeHandler (MPSNNFilterNode gradientNode, MPSNNFilterNode inferenceNode, MPSNNImageNode inferenceSource, MPSNNImageNode gradientSource); - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNFilterNode { @@ -3735,7 +3821,7 @@ namespace MetalPerformanceShaders { MPSNNStateNode ResultState { get; } [NullAllowed, Export ("resultStates")] - MPSNNStateNode[] ResultStates { get; } + MPSNNStateNode [] ResultStates { get; } [Export ("paddingPolicy", ArgumentSemantic.Retain)] IMPSNNPadding PaddingPolicy { get; set; } @@ -3743,40 +3829,40 @@ namespace MetalPerformanceShaders { [NullAllowed, Export ("label")] string Label { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("gradientFilterWithSource:")] MPSNNGradientFilterNode GetFilter (MPSNNImageNode gradientImageSource); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("gradientFilterWithSources:")] - MPSNNGradientFilterNode GetFilter (MPSNNImageNode[] gradientImagesSources); + MPSNNGradientFilterNode GetFilter (MPSNNImageNode [] gradientImagesSources); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("gradientFiltersWithSources:")] - MPSNNGradientFilterNode [] GetFilters (MPSNNImageNode[] gradientImagesSources); + MPSNNGradientFilterNode [] GetFilters (MPSNNImageNode [] gradientImagesSources); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("gradientFiltersWithSource:")] MPSNNGradientFilterNode [] GetFilters (MPSNNImageNode gradientImageSource); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("trainingGraphWithSourceGradient:nodeHandler:")] [return: NullAllowed] MPSNNFilterNode [] GetTrainingGraph ([NullAllowed] MPSNNImageNode gradientImageSource, [NullAllowed] MPSGradientNodeHandler nodeHandler); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNGradientFilterNode { } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNConvolutionNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNConvolutionNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnConvolutionNode { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("accumulatorPrecision", ArgumentSemantic.Assign)] MPSNNConvolutionAccumulatorPrecisionOption AccumulatorPrecision { get; set; } @@ -3787,12 +3873,12 @@ namespace MetalPerformanceShaders { [Export ("initWithSource:weights:")] NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [NullAllowed, Export ("convolutionGradientState")] MPSCnnConvolutionGradientStateNode ConvolutionGradientState { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnConvolutionNode), Name = "MPSCNNFullyConnectedNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnFullyConnectedNode { @@ -3804,67 +3890,67 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnConvolutionNode), Name = "MPSCNNBinaryConvolutionNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnBinaryConvolutionNode { [Static] [Export ("nodeWithSource:weights:scaleValue:type:flags:")] - MPSCnnBinaryConvolutionNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue,MPSCnnBinaryConvolutionType type,MPSCnnBinaryConvolutionFlags flags); + MPSCnnBinaryConvolutionNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Export ("initWithSource:weights:scaleValue:type:flags:")] - NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue,MPSCnnBinaryConvolutionType type,MPSCnnBinaryConvolutionFlags flags); + NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Internal] - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Static] [Export ("nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:")] MPSCnnBinaryConvolutionNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, [NullAllowed] IntPtr outputBiasTerms, [NullAllowed] IntPtr outputScaleTerms, [NullAllowed] IntPtr inputBiasTerms, [NullAllowed] IntPtr inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Internal] - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:")] IntPtr InitWithSource (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, [NullAllowed] IntPtr outputBiasTerms, [NullAllowed] IntPtr outputScaleTerms, [NullAllowed] IntPtr inputBiasTerms, [NullAllowed] IntPtr inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnBinaryConvolutionNode), Name = "MPSCNNBinaryFullyConnectedNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnBinaryFullyConnectedNode { [Static] [Export ("nodeWithSource:weights:scaleValue:type:flags:")] - MPSCnnBinaryFullyConnectedNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue,MPSCnnBinaryConvolutionType type,MPSCnnBinaryConvolutionFlags flags); + MPSCnnBinaryFullyConnectedNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Export ("initWithSource:weights:scaleValue:type:flags:")] - NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue,MPSCnnBinaryConvolutionType type,MPSCnnBinaryConvolutionFlags flags); + NativeHandle Constructor (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, float scaleValue, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Internal] - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Static] [Export ("nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:")] MPSCnnBinaryFullyConnectedNode Create (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, [NullAllowed] IntPtr outputBiasTerms, [NullAllowed] IntPtr outputScaleTerms, [NullAllowed] IntPtr inputBiasTerms, [NullAllowed] IntPtr inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); [Internal] - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:")] IntPtr InitWithSource (MPSNNImageNode sourceNode, IMPSCnnConvolutionDataSource weights, [NullAllowed] IntPtr outputBiasTerms, [NullAllowed] IntPtr outputScaleTerms, [NullAllowed] IntPtr inputBiasTerms, [NullAllowed] IntPtr inputScaleTerms, MPSCnnBinaryConvolutionType type, MPSCnnBinaryConvolutionFlags flags); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnConvolutionNode), Name = "MPSCNNConvolutionTransposeNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnConvolutionTransposeNode { - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Static] [Export ("nodeWithSource:convolutionGradientState:weights:")] MPSCnnConvolutionTransposeNode Create (MPSNNImageNode sourceNode, [NullAllowed] MPSCnnConvolutionGradientStateNode convolutionGradientState, IMPSCnnConvolutionDataSource weights); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithSource:convolutionGradientState:weights:")] NativeHandle Constructor (MPSNNImageNode sourceNode, [NullAllowed] MPSCnnConvolutionGradientStateNode convolutionGradientState, IMPSCnnConvolutionDataSource weights); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNConvolutionGradientNode")] [DisableDefaultCtor] interface MPSCnnConvolutionGradientNode : MPSNNTrainableNode { @@ -3877,12 +3963,12 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSCnnConvolutionGradientStateNode gradientState, [NullAllowed] IMPSCnnConvolutionDataSource weights); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNNeuronNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNNeuronNode")] [DisableDefaultCtor] interface MPSCnnNeuronNode { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("nodeWithSource:descriptor:")] MPSCnnNeuronNode Create (MPSNNImageNode sourceNode, MPSNNNeuronDescriptor descriptor); @@ -3893,12 +3979,12 @@ namespace MetalPerformanceShaders { [Export ("b")] float B { get; } - [TV (11,2), iOS (11,2), Mac (10,13,2)] + [TV (11, 2), iOS (11, 2), Mac (10, 13, 2)] [Export ("c")] float C { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronPowerNode")] [DisableDefaultCtor] interface MPSCnnNeuronPowerNode { @@ -3918,7 +4004,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronExponentialNode")] [DisableDefaultCtor] interface MPSCnnNeuronExponentialNode { @@ -3938,7 +4024,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronLogarithmNode")] [DisableDefaultCtor] interface MPSCnnNeuronLogarithmNode { @@ -3958,7 +4044,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNNeuronGradientNode")] [DisableDefaultCtor] interface MPSCnnNeuronGradientNode { @@ -3974,7 +4060,7 @@ namespace MetalPerformanceShaders { MPSNNNeuronDescriptor Descriptor { get; } } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNUnaryReductionNode { @@ -3990,12 +4076,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionRowMinNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionRowMinNode Create (MPSNNImageNode sourceNode); @@ -4003,12 +4090,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionColumnMinNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionColumnMinNode Create (MPSNNImageNode sourceNode); @@ -4016,12 +4104,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsMinNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsMinNode Create (MPSNNImageNode sourceNode); @@ -4029,12 +4118,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsArgumentMinNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsArgumentMinNode Create (MPSNNImageNode sourceNode); @@ -4042,12 +4132,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionRowMaxNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionRowMaxNode Create (MPSNNImageNode sourceNode); @@ -4055,12 +4146,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionColumnMaxNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionColumnMaxNode Create (MPSNNImageNode sourceNode); @@ -4068,12 +4160,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsMaxNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsMaxNode Create (MPSNNImageNode sourceNode); @@ -4081,12 +4174,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsArgumentMaxNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsArgumentMaxNode Create (MPSNNImageNode sourceNode); @@ -4094,12 +4188,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionRowMeanNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionRowMeanNode Create (MPSNNImageNode sourceNode); @@ -4107,12 +4202,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionColumnMeanNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionColumnMeanNode Create (MPSNNImageNode sourceNode); @@ -4120,12 +4216,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsMeanNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsMeanNode Create (MPSNNImageNode sourceNode); @@ -4133,12 +4230,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionSpatialMeanNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionSpatialMeanNode Create (MPSNNImageNode sourceNode); @@ -4146,12 +4244,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionRowSumNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionRowSumNode Create (MPSNNImageNode sourceNode); @@ -4159,12 +4258,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionColumnSumNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionColumnSumNode Create (MPSNNImageNode sourceNode); @@ -4172,12 +4272,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNUnaryReductionNode))] [DisableDefaultCtor] interface MPSNNReductionFeatureChannelsSumNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSource:")] MPSNNReductionFeatureChannelsSumNode Create (MPSNNImageNode sourceNode); @@ -4188,7 +4289,7 @@ namespace MetalPerformanceShaders { float Weight { get; set; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronAbsoluteNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronAbsoluteNode { @@ -4200,7 +4301,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronELUNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronEluNode { @@ -4219,7 +4320,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, float a); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronReLUNNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronReLunNode { @@ -4238,7 +4339,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronLinearNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronLinearNode { @@ -4260,7 +4361,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronReLUNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronReLUNode { @@ -4279,7 +4380,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, float a); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronSigmoidNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronSigmoidNode { @@ -4291,7 +4392,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronHardSigmoidNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronHardSigmoidNode { @@ -4310,7 +4411,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronSoftPlusNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronSoftPlusNode { @@ -4329,7 +4430,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronSoftSignNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronSoftSignNode { @@ -4341,7 +4442,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronTanHNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronTanHNode { @@ -4360,7 +4461,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNeuronNode), Name = "MPSCNNNeuronPReLUNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNeuronPReLUNode { @@ -4372,24 +4473,24 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, NSData aData); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNPoolingNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNPoolingNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnPoolingNode { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("kernelWidth")] nuint KernelWidth { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("kernelHeight")] nuint KernelHeight { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("strideInPixelsX")] nuint StrideInPixelsX { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("strideInPixelsY")] nuint StrideInPixelsY { get; } @@ -4411,7 +4512,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, nuint size); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNPoolingGradientNode")] [DisableDefaultCtor] interface MPSCnnPoolingGradientNode { @@ -4436,12 +4537,13 @@ namespace MetalPerformanceShaders { nuint StrideInPixelsY { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradientNode), Name = "MPSCNNPoolingMaxGradientNode")] [DisableDefaultCtor] interface MPSCnnPoolingMaxGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:paddingPolicy:")] MPSCnnPoolingMaxGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); @@ -4449,12 +4551,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradientNode), Name = "MPSCNNPoolingAverageGradientNode")] [DisableDefaultCtor] interface MPSCnnPoolingAverageGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:paddingPolicy:")] MPSCnnPoolingAverageGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); @@ -4462,12 +4565,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradientNode), Name = "MPSCNNPoolingL2NormGradientNode")] [DisableDefaultCtor] interface MPSCnnPoolingL2NormGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:paddingPolicy:")] MPSCnnPoolingL2NormGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); @@ -4475,7 +4579,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState, nuint kernelWidth, nuint kernelHeight, nuint strideInPixelsX, nuint strideInPixelsY, [NullAllowed] IMPSNNPadding paddingPolicy); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnPoolingGradientNode), Name = "MPSCNNDilatedPoolingMaxGradientNode")] [DisableDefaultCtor] interface MPSCnnDilatedPoolingMaxGradientNode { @@ -4494,7 +4598,7 @@ namespace MetalPerformanceShaders { nuint DilationRateY { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNSpatialNormalizationGradientNode")] [DisableDefaultCtor] interface MPSCnnSpatialNormalizationGradientNode { @@ -4522,7 +4626,7 @@ namespace MetalPerformanceShaders { float Delta { get; set; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNLocalContrastNormalizationGradientNode")] [DisableDefaultCtor] interface MPSCnnLocalContrastNormalizationGradientNode { @@ -4559,7 +4663,7 @@ namespace MetalPerformanceShaders { nuint KernelHeight { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNCrossChannelNormalizationGradientNode")] [DisableDefaultCtor] interface MPSCnnCrossChannelNormalizationGradientNode { @@ -4575,7 +4679,7 @@ namespace MetalPerformanceShaders { nuint KernelSize { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNInstanceNormalizationNode")] [DisableDefaultCtor] interface MPSCnnInstanceNormalizationNode { @@ -4588,7 +4692,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source, IMPSCnnInstanceNormalizationDataSource dataSource); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNInstanceNormalizationGradientNode")] [DisableDefaultCtor] interface MPSCnnInstanceNormalizationGradientNode : MPSNNTrainableNode { @@ -4601,7 +4705,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNBatchNormalizationNode")] [DisableDefaultCtor] interface MPSCnnBatchNormalizationNode { @@ -4617,7 +4721,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source, IMPSCnnBatchNormalizationDataSource dataSource); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [DisableDefaultCtor] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNBatchNormalizationGradientNode")] interface MPSCnnBatchNormalizationGradientNode : MPSNNTrainableNode { @@ -4630,8 +4734,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNDilatedPoolingMaxNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNDilatedPoolingMaxNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnDilatedPoolingMaxNode { [Export ("dilationRateX")] @@ -4658,8 +4762,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, nuint size); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNNormalizationNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNNormalizationNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnNormalizationNode { [Export ("alpha")] @@ -4680,7 +4784,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNormalizationNode), Name = "MPSCNNSpatialNormalizationNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnSpatialNormalizationNode { @@ -4703,7 +4807,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNormalizationNode), Name = "MPSCNNLocalContrastNormalizationNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnLocalContrastNormalizationNode { @@ -4735,7 +4839,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSCnnNormalizationNode), Name = "MPSCNNCrossChannelNormalizationNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnCrossChannelNormalizationNode { @@ -4755,8 +4859,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNScaleNode { [Static] @@ -4774,29 +4878,29 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, [NullAllowed] IMPSImageTransformProvider transformProvider, MTLSize size); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNBinaryArithmeticNode { [Static] [Export ("nodeWithSources:")] - MPSNNBinaryArithmeticNode Create (MPSNNImageNode[] sourceNodes); + MPSNNBinaryArithmeticNode Create (MPSNNImageNode [] sourceNodes); [Static] [Export ("nodeWithLeftSource:rightSource:")] MPSNNBinaryArithmeticNode Create (MPSNNImageNode left, MPSNNImageNode right); [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); [Export ("initWithLeftSource:rightSource:")] NativeHandle Constructor (MPSNNImageNode left, MPSNNImageNode right); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("gradientClass")] Class GradientClass { get; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("gradientFiltersWithSources:")] MPSNNGradientFilterNode [] GetGradientFilters (MPSNNImageNode [] gradientImages); @@ -4834,7 +4938,7 @@ namespace MetalPerformanceShaders { float MaximumValue { get; set; } } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNBinaryArithmeticNode))] [DisableDefaultCtor] interface MPSNNComparisonNode { @@ -4843,7 +4947,7 @@ namespace MetalPerformanceShaders { MPSNNComparisonType ComparisonType { get; set; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode))] [DisableDefaultCtor] interface MPSNNArithmeticGradientNode { @@ -4856,7 +4960,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); [Export ("initWithGradientImages:forwardFilter:isSecondarySourceFilter:")] - NativeHandle Constructor (MPSNNImageNode[] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); + NativeHandle Constructor (MPSNNImageNode [] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); [Export ("primaryScale")] float PrimaryScale { get; set; } @@ -4886,12 +4990,13 @@ namespace MetalPerformanceShaders { bool IsSecondarySourceFilter { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNArithmeticGradientNode))] [DisableDefaultCtor] interface MPSNNAdditionGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:isSecondarySourceFilter:")] MPSNNAdditionGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); @@ -4899,15 +5004,16 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); [Export ("initWithGradientImages:forwardFilter:isSecondarySourceFilter:")] - NativeHandle Constructor (MPSNNImageNode[] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); + NativeHandle Constructor (MPSNNImageNode [] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNArithmeticGradientNode))] [DisableDefaultCtor] interface MPSNNSubtractionGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:isSecondarySourceFilter:")] MPSNNSubtractionGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); @@ -4915,15 +5021,16 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); [Export ("initWithGradientImages:forwardFilter:isSecondarySourceFilter:")] - NativeHandle Constructor (MPSNNImageNode[] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); + NativeHandle Constructor (MPSNNImageNode [] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNArithmeticGradientNode))] [DisableDefaultCtor] interface MPSNNMultiplicationGradientNode { - [Static][New] + [Static] + [New] [Export ("nodeWithSourceGradient:sourceImage:gradientState:isSecondarySourceFilter:")] MPSNNMultiplicationGradientNode Create (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); @@ -4931,10 +5038,10 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNBinaryGradientStateNode gradientState, bool isSecondarySourceFilter); [Export ("initWithGradientImages:forwardFilter:isSecondarySourceFilter:")] - NativeHandle Constructor (MPSNNImageNode[] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); + NativeHandle Constructor (MPSNNImageNode [] gradientImages, MPSNNFilterNode filter, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNDropoutNode")] [DisableDefaultCtor] interface MPSCnnDropoutNode { @@ -4971,7 +5078,7 @@ namespace MetalPerformanceShaders { MTLSize MaskStrideInPixels { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNDropoutGradientNode")] [DisableDefaultCtor] interface MPSCnnDropoutGradientNode { @@ -4993,14 +5100,14 @@ namespace MetalPerformanceShaders { MTLSize MaskStrideInPixels { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNStateNode))] [DisableDefaultCtor] interface MPSNNLabelsNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNLossNode")] [DisableDefaultCtor] interface MPSCnnLossNode { @@ -5016,12 +5123,12 @@ namespace MetalPerformanceShaders { MPSNNLabelsNode InputLabels { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNYOLOLossNode")] [DisableDefaultCtor] interface MPSCnnYoloLossNode { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("nodeWithSource:lossDescriptor:")] MPSCnnYoloLossNode Create (MPSNNImageNode source, MPSCnnYoloLossDescriptor descriptor); @@ -5033,19 +5140,19 @@ namespace MetalPerformanceShaders { MPSNNLabelsNode InputLabels { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNConcatenationNode { [Static] [Export ("nodeWithSources:")] - MPSNNConcatenationNode Create (MPSNNImageNode[] sourceNodes); + MPSNNConcatenationNode Create (MPSNNImageNode [] sourceNodes); [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode))] [DisableDefaultCtor] interface MPSNNConcatenationGradientNode { @@ -5058,7 +5165,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode gradientSourceNode, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNReshapeNode { @@ -5071,7 +5178,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source, nuint resultWidth, nuint resultHeight, nuint resultFeatureChannels); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNGradientFilterNode))] [DisableDefaultCtor] interface MPSNNReshapeGradientNode { @@ -5084,7 +5191,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNGradientFilterNode))] [DisableDefaultCtor] interface MPSNNReductionSpatialMeanGradientNode { @@ -5097,7 +5204,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNFilterNode))] [DisableDefaultCtor] interface MPSNNPadNode { @@ -5113,7 +5220,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source, MPSImageCoordinate paddingSizeBefore, MPSImageCoordinate paddingSizeAfter, MPSImageEdgeMode edgeMode); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSNNGradientFilterNode))] [DisableDefaultCtor] interface MPSNNPadGradientNode { @@ -5126,7 +5233,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNSoftMaxGradientNode")] [DisableDefaultCtor] interface MPSCnnSoftMaxGradientNode { @@ -5139,7 +5246,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNLogSoftMaxGradientNode")] [DisableDefaultCtor] interface MPSCnnLogSoftMaxGradientNode { @@ -5152,8 +5259,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNGradientStateNode gradientState); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNSoftMaxNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNSoftMaxNode")] [DisableDefaultCtor] interface MPSCnnSoftMaxNode { [Static] @@ -5164,8 +5271,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNLogSoftMaxNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNLogSoftMaxNode")] [DisableDefaultCtor] interface MPSCnnLogSoftMaxNode { [Static] @@ -5176,8 +5283,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNUpsamplingNearestNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNUpsamplingNearestNode")] [DisableDefaultCtor] interface MPSCnnUpsamplingNearestNode { [Static] @@ -5194,15 +5301,15 @@ namespace MetalPerformanceShaders { double ScaleFactorY { get; } } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSNNFilterNode), Name = "MPSCNNUpsamplingBilinearNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNFilterNode), Name = "MPSCNNUpsamplingBilinearNode")] [DisableDefaultCtor] interface MPSCnnUpsamplingBilinearNode { [Static] [Export ("nodeWithSource:integerScaleFactorX:integerScaleFactorY:")] MPSCnnUpsamplingBilinearNode Create (MPSNNImageNode sourceNode, nuint integerScaleFactorX, nuint integerScaleFactorY); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("nodeWithSource:integerScaleFactorX:integerScaleFactorY:alignCorners:")] MPSCnnUpsamplingBilinearNode Create (MPSNNImageNode sourceNode, nuint integerScaleFactorX, nuint integerScaleFactorY, bool alignCorners); @@ -5210,7 +5317,7 @@ namespace MetalPerformanceShaders { [Export ("initWithSource:integerScaleFactorX:integerScaleFactorY:")] NativeHandle Constructor (MPSNNImageNode sourceNode, nuint integerScaleFactorX, nuint integerScaleFactorY); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithSource:integerScaleFactorX:integerScaleFactorY:alignCorners:")] NativeHandle Constructor (MPSNNImageNode sourceNode, nuint integerScaleFactorX, nuint integerScaleFactorY, bool alignCorners); @@ -5220,12 +5327,12 @@ namespace MetalPerformanceShaders { [Export ("scaleFactorY")] double ScaleFactorY { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("alignCorners")] bool AlignCorners { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNUpsamplingNearestGradientNode")] [DisableDefaultCtor] interface MPSCnnUpsamplingNearestGradientNode { @@ -5244,7 +5351,7 @@ namespace MetalPerformanceShaders { double ScaleFactorY { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientFilterNode), Name = "MPSCNNUpsamplingBilinearGradientNode")] [DisableDefaultCtor] interface MPSCnnUpsamplingBilinearGradientNode { @@ -5266,18 +5373,16 @@ namespace MetalPerformanceShaders { interface IMPSNNLossCallback { } [Protocol] - interface MPSNNLossCallback : NSSecureCoding, NSCopying - { + interface MPSNNLossCallback : NSSecureCoding, NSCopying { [Abstract] [Export ("scalarWeightForSourceImage:destinationImage:")] float GetScalarWeight (MPSImage sourceImage, MPSImage destinationImage); } [DisableDefaultCtor] - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(MPSNNFilterNode))] - interface MPSNNForwardLossNode - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MPSNNFilterNode))] + interface MPSNNForwardLossNode { [Export ("lossType")] MPSCnnLossType LossType { get; } @@ -5312,7 +5417,7 @@ namespace MetalPerformanceShaders { [Static] [Export ("nodeWithSources:lossDescriptor:")] - MPSNNForwardLossNode Create (MPSNNImageNode[] sourceNodes, MPSCnnLossDescriptor descriptor); + MPSNNForwardLossNode Create (MPSNNImageNode [] sourceNodes, MPSCnnLossDescriptor descriptor); [Export ("initWithSource:labels:weights:lossDescriptor:")] NativeHandle Constructor (MPSNNImageNode source, MPSNNImageNode labels, [NullAllowed] MPSNNImageNode weights, MPSCnnLossDescriptor descriptor); @@ -5321,26 +5426,25 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source, MPSNNImageNode labels, MPSCnnLossDescriptor descriptor); [Export ("initWithSources:lossDescriptor:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes, MPSCnnLossDescriptor descriptor); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes, MPSCnnLossDescriptor descriptor); [Export ("gradientFilterWithSources:")] - MPSNNLossGradientNode GetFilter (MPSNNImageNode[] sourceGradient); + MPSNNLossGradientNode GetFilter (MPSNNImageNode [] sourceGradient); [Export ("gradientFiltersWithSources:")] - MPSNNLossGradientNode[] GetFilters (MPSNNImageNode[] sourceGradient); + MPSNNLossGradientNode [] GetFilters (MPSNNImageNode [] sourceGradient); [Export ("gradientFilterWithSource:")] MPSNNLossGradientNode GetFilter (MPSNNImageNode sourceGradient); [Export ("gradientFiltersWithSource:")] - MPSNNLossGradientNode[] GetFilters (MPSNNImageNode sourceGradient); + MPSNNLossGradientNode [] GetFilters (MPSNNImageNode sourceGradient); } [DisableDefaultCtor] - [TV (13,0), Mac (10,15,0), iOS (13,0)] - [BaseType (typeof(MPSNNGradientFilterNode))] - interface MPSNNLossGradientNode - { + [TV (13, 0), Mac (10, 15, 0), iOS (13, 0)] + [BaseType (typeof (MPSNNGradientFilterNode))] + interface MPSNNLossGradientNode { [Export ("lossType")] MPSCnnLossType LossType { get; } @@ -5378,7 +5482,7 @@ namespace MetalPerformanceShaders { [Static] [Export ("nodeWithSources:gradientState:lossDescriptor:isLabelsGradientFilter:")] - MPSNNLossGradientNode Create (MPSNNImageNode[] sourceNodes, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); + MPSNNLossGradientNode Create (MPSNNImageNode [] sourceNodes, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); [Export ("initWithSourceGradient:sourceImage:labels:weights:gradientState:lossDescriptor:isLabelsGradientFilter:")] NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNImageNode labels, [NullAllowed] MPSNNImageNode weights, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); @@ -5387,14 +5491,13 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceGradient, MPSNNImageNode sourceImage, MPSNNImageNode labels, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); [Export ("initWithSources:gradientState:lossDescriptor:isLabelsGradientFilter:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes, [NullAllowed] MPSNNGradientStateNode gradientState, MPSCnnLossDescriptor descriptor, bool isLabelsGradientFilter); } [DisableDefaultCtor] - [TV (13,0), Mac (10,15,0), iOS (13,0)] - [BaseType (typeof(MPSNNFilterNode))] - interface MPSNNInitialGradientNode - { + [TV (13, 0), Mac (10, 15, 0), iOS (13, 0)] + [BaseType (typeof (MPSNNFilterNode))] + interface MPSNNInitialGradientNode { [Static] [Export ("nodeWithSource:")] MPSNNInitialGradientNode Create (MPSNNImageNode source); @@ -5403,17 +5506,17 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode source); } - [TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(MPSKernel))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // There is a DesignatedInitializer, file a bug if needed. interface MPSNNGraph : NSCopying, NSSecureCoding { - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("initWithDevice:resultImage:resultImageIsNeeded:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, MPSNNImageNode resultImage, bool resultIsNeeded); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Static] [Export ("graphWithDevice:resultImage:resultImageIsNeeded:")] [return: NullAllowed] @@ -5433,11 +5536,11 @@ namespace MetalPerformanceShaders { // [DesignatedInitializer] // NativeHandle Constructor (IMTLDevice device, MPSNNImageNode[] resultImages, IntPtr resultsAreNeeded); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("graphWithDevice:resultImages:resultsAreNeeded:")] [return: NullAllowed] - MPSNNGraph Create (IMTLDevice device, MPSNNImageNode[] resultImages, IntPtr resultsAreNeeded); + MPSNNGraph Create (IMTLDevice device, MPSNNImageNode [] resultImages, IntPtr resultsAreNeeded); // Not added because it short lived a couple of minor releases and there are alternatives. //[Deprecated (PlatformName.TvOS, 11, 3)] @@ -5453,16 +5556,16 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); [Export ("sourceImageHandles", ArgumentSemantic.Copy)] - IMPSHandle[] SourceImageHandles { get; } + IMPSHandle [] SourceImageHandles { get; } [NullAllowed, Export ("sourceStateHandles", ArgumentSemantic.Copy)] - IMPSHandle[] SourceStateHandles { get; } + IMPSHandle [] SourceStateHandles { get; } [NullAllowed, Export ("intermediateImageHandles", ArgumentSemantic.Copy)] - IMPSHandle[] IntermediateImageHandles { get; } + IMPSHandle [] IntermediateImageHandles { get; } [NullAllowed, Export ("resultStateHandles", ArgumentSemantic.Copy)] - IMPSHandle[] ResultStateHandles { get; } + IMPSHandle [] ResultStateHandles { get; } [NullAllowed, Export ("resultHandle")] IMPSHandle ResultHandle { get; } @@ -5473,50 +5576,50 @@ namespace MetalPerformanceShaders { [Export ("destinationImageAllocator", ArgumentSemantic.Retain)] IMPSImageAllocator DestinationImageAllocator { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("format", ArgumentSemantic.Assign)] MPSImageFeatureChannelFormat Format { get; set; } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("resultImageIsNeeded")] bool ResultImageIsNeeded { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadFromDataSources")] void ReloadFromDataSources (); [Export ("encodeToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:")] [return: NullAllowed] - MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage[] sourceImages, [NullAllowed] MPSState[] sourceStates, [NullAllowed] NSMutableArray intermediateImages, [NullAllowed] NSMutableArray destinationStates); + MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage [] sourceImages, [NullAllowed] MPSState [] sourceStates, [NullAllowed] NSMutableArray intermediateImages, [NullAllowed] NSMutableArray destinationStates); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("encodeBatchToCommandBuffer:sourceImages:sourceStates:intermediateImages:destinationStates:")] [return: NullAllowed] - NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray [] sourceImages, [NullAllowed] NSArray[] sourceStates, [NullAllowed] NSMutableArray> intermediateImages, [NullAllowed] NSMutableArray> destinationStates); + NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray [] sourceImages, [NullAllowed] NSArray [] sourceStates, [NullAllowed] NSMutableArray> intermediateImages, [NullAllowed] NSMutableArray> destinationStates); [Export ("encodeToCommandBuffer:sourceImages:")] [return: NullAllowed] - MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage[] sourceImages); + MPSImage EncodeToCommandBuffer (IMTLCommandBuffer commandBuffer, MPSImage [] sourceImages); [Export ("encodeBatchToCommandBuffer:sourceImages:sourceStates:")] [return: NullAllowed] - NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray[] sourceImages, [NullAllowed] NSArray[] sourceStates); + NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray [] sourceImages, [NullAllowed] NSArray [] sourceStates); [Async, Export ("executeAsyncWithSourceImages:completionHandler:")] - MPSImage Execute (MPSImage[] sourceImages, Action handler); + MPSImage Execute (MPSImage [] sourceImages, Action handler); - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [Export ("readCountForSourceImageAtIndex:")] nuint GetReadCountForSourceImage (nuint index); - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [Export ("readCountForSourceStateAtIndex:")] nuint GetReadCountForSourceState (nuint index); } interface IMPSHandle { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSHandle : NSCoding { [Abstract] @@ -5526,7 +5629,7 @@ namespace MetalPerformanceShaders { interface IMPSCnnConvolutionDataSource { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject), Name = "MPSCNNConvolutionDataSource")] interface MPSCnnConvolutionDataSource : NSCopying { @@ -5568,20 +5671,20 @@ namespace MetalPerformanceShaders { [Export ("lookupTableForUInt8Kernel")] IntPtr /* float* */ GetLookupTableForUInt8Kernel (); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("weightsQuantizationType")] MPSCnnWeightsQuantizationType GetWeightsQuantizationType (); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("updateWithCommandBuffer:gradientState:sourceState:")] [return: NullAllowed] MPSCnnConvolutionWeightsAndBiasesState Update (IMTLCommandBuffer commandBuffer, MPSCnnConvolutionGradientState gradientState, MPSCnnConvolutionWeightsAndBiasesState sourceState); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("updateWithGradientState:sourceState:")] bool Update (MPSCnnConvolutionGradientState gradientState, MPSCnnConvolutionWeightsAndBiasesState sourceState); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("copyWithZone:device:")] [return: Release] IMPSCnnConvolutionDataSource Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); @@ -5593,7 +5696,7 @@ namespace MetalPerformanceShaders { interface IMPSNNPadding { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSNNPadding : NSSecureCoding { [Abstract] @@ -5604,9 +5707,9 @@ namespace MetalPerformanceShaders { string GetLabel (); [Export ("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:")] - MPSImageDescriptor GetDestinationImageDescriptor (MPSImage[] sourceImages, [NullAllowed] MPSState[] sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor); + MPSImageDescriptor GetDestinationImageDescriptor (MPSImage [] sourceImages, [NullAllowed] MPSState [] sourceStates, MPSKernel kernel, MPSImageDescriptor inDescriptor); - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Export ("inverse")] [return: NullAllowed] IMPSNNPadding GetInverse (); @@ -5614,7 +5717,7 @@ namespace MetalPerformanceShaders { interface IMPSImageSizeEncodingState { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSImageSizeEncodingState { [Abstract] @@ -5628,43 +5731,43 @@ namespace MetalPerformanceShaders { interface IMPSImageAllocator { } - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSImageAllocator : NSSecureCoding { [Abstract] [Export ("imageForCommandBuffer:imageDescriptor:kernel:")] MPSImage GetImage (IMTLCommandBuffer cmdBuf, MPSImageDescriptor descriptor, MPSKernel kernel); - [iOS (11,3), TV (11,3), Mac (10,13,4)] + [iOS (11, 3), TV (11, 3), Mac (10, 13, 4)] [Export ("imageBatchForCommandBuffer:imageDescriptor:kernel:count:")] NSArray GetImageBatch (IMTLCommandBuffer commandBuffer, MPSImageDescriptor descriptor, MPSKernel kernel, nuint count); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNStateNode), Name = "MPSCNNConvolutionStateNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNStateNode), Name = "MPSCNNConvolutionStateNode")] [DisableDefaultCtor] interface MPSCnnConvolutionStateNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNStateNode))] [DisableDefaultCtor] interface MPSNNGradientStateNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientStateNode), Name = "MPSCNNConvolutionGradientStateNode")] [DisableDefaultCtor] interface MPSCnnConvolutionGradientStateNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNStateNode))] [DisableDefaultCtor] interface MPSNNBinaryGradientStateNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNBinaryGradientStateNode))] [DisableDefaultCtor] interface MPSNNArithmeticGradientStateNode { @@ -5672,7 +5775,7 @@ namespace MetalPerformanceShaders { interface IMPSImageTransformProvider { } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSImageTransformProvider : NSCoding { [Abstract] @@ -5680,7 +5783,7 @@ namespace MetalPerformanceShaders { MPSScaleTransform GetTransform (MPSImage image, [NullAllowed] IMPSHandle handle); } - [TV (11, 0), Mac (10,13), iOS (11, 0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface MPSDeviceProvider { [Abstract] @@ -5688,8 +5791,8 @@ namespace MetalPerformanceShaders { IMTLDevice GetMTLDevice (); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSCnnPoolingNode), Name="MPSCNNPoolingAverageNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnPoolingNode), Name = "MPSCNNPoolingAverageNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnPoolingAverageNode { [Export ("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:")] @@ -5702,8 +5805,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, nuint size); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSCnnPoolingNode), Name="MPSCNNPoolingL2NormNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnPoolingNode), Name = "MPSCNNPoolingL2NormNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnPoolingL2NormNode { [Export ("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:")] @@ -5716,8 +5819,8 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, nuint size); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSCnnPoolingNode), Name="MPSCNNPoolingMaxNode")] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSCnnPoolingNode), Name = "MPSCNNPoolingMaxNode")] [DisableDefaultCtor] // 'init' is unavailable interface MPSCnnPoolingMaxNode { [Export ("initWithSource:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:")] @@ -5730,19 +5833,19 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, nuint size); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNBinaryArithmeticNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNBinaryArithmeticNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNAdditionNode { [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); [Export ("initWithLeftSource:rightSource:")] NativeHandle Constructor (MPSNNImageNode left, MPSNNImageNode right); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNScaleNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNScaleNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNBilinearScaleNode { [Export ("initWithSource:outputSize:")] @@ -5752,19 +5855,19 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, [NullAllowed] IMPSImageTransformProvider transformProvider, MTLSize size); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNBinaryArithmeticNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNBinaryArithmeticNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNDivisionNode { [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); [Export ("initWithLeftSource:rightSource:")] NativeHandle Constructor (MPSNNImageNode left, MPSNNImageNode right); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNScaleNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNScaleNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNLanczosScaleNode { [Export ("initWithSource:outputSize:")] @@ -5774,29 +5877,29 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (MPSNNImageNode sourceNode, [NullAllowed] IMPSImageTransformProvider transformProvider, MTLSize size); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNBinaryArithmeticNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNBinaryArithmeticNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNMultiplicationNode { [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); [Export ("initWithLeftSource:rightSource:")] NativeHandle Constructor (MPSNNImageNode left, MPSNNImageNode right); } - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(MPSNNBinaryArithmeticNode))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (MPSNNBinaryArithmeticNode))] [DisableDefaultCtor] // 'init' is unavailable interface MPSNNSubtractionNode { [Export ("initWithSources:")] - NativeHandle Constructor (MPSNNImageNode[] sourceNodes); + NativeHandle Constructor (MPSNNImageNode [] sourceNodes); [Export ("initWithLeftSource:rightSource:")] NativeHandle Constructor (MPSNNImageNode left, MPSNNImageNode right); } - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [BaseType (typeof (MPSVector))] [DisableDefaultCtor] interface MPSTemporaryVector { @@ -5807,14 +5910,14 @@ namespace MetalPerformanceShaders { [Static] [Export ("prefetchStorageWithCommandBuffer:descriptorList:")] - void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSVectorDescriptor[] descriptorList); + void PrefetchStorage (IMTLCommandBuffer commandBuffer, MPSVectorDescriptor [] descriptorList); [Export ("readCount")] nuint ReadCount { get; set; } } - [TV (11,2), Mac (10,13,2), iOS (11,2)] - [BaseType (typeof(MPSKernel))] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] + [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSMatrixSum { @@ -5851,15 +5954,15 @@ namespace MetalPerformanceShaders { // Keeping the same name as in the parent class so it ends up in an overload [Export ("encodeToCommandBuffer:sourceMatrices:resultMatrix:scaleVector:offsetVector:biasVector:startIndex:")] - void EncodeToCommandBuffer (IMTLCommandBuffer buffer, MPSMatrix[] sourceMatrices, MPSMatrix resultMatrix, [NullAllowed] MPSVector scaleVector, [NullAllowed] MPSVector offsetVector, [NullAllowed] MPSVector biasVector, nuint startIndex); + void EncodeToCommandBuffer (IMTLCommandBuffer buffer, MPSMatrix [] sourceMatrices, MPSMatrix resultMatrix, [NullAllowed] MPSVector scaleVector, [NullAllowed] MPSVector offsetVector, [NullAllowed] MPSVector biasVector, nuint startIndex); [Export ("initWithCoder:device:")] [DesignatedInitializer] NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,2), Mac (10,13,2), iOS (11,2)] - [BaseType (typeof(MPSMatrixUnaryKernel))] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] + [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] interface MPSMatrixSoftMax { @@ -5886,7 +5989,7 @@ namespace MetalPerformanceShaders { MPSMatrixSoftMax Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] interface MPSMatrixNeuron { @@ -5935,7 +6038,7 @@ namespace MetalPerformanceShaders { MPSMatrixNeuron Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] interface MPSMatrixNeuronGradient { @@ -5983,7 +6086,7 @@ namespace MetalPerformanceShaders { MPSMatrixNeuronGradient Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] interface MPSMatrixFullyConnectedGradient { @@ -6019,7 +6122,7 @@ namespace MetalPerformanceShaders { MPSMatrixFullyConnectedGradient Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [BaseType (typeof (MPSMatrixSoftMax))] [DisableDefaultCtor] interface MPSMatrixLogSoftMax { @@ -6033,7 +6136,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,2), Mac (10,13,2), iOS (11,2)] + [TV (11, 2), Mac (10, 13, 2), iOS (11, 2)] [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] interface MPSMatrixFullyConnected { @@ -6082,7 +6185,7 @@ namespace MetalPerformanceShaders { MPSMatrixFullyConnected Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] // Apple corrected availability here + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] // Apple corrected availability here [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] interface MPSMatrixFindTopK { @@ -6116,9 +6219,9 @@ namespace MetalPerformanceShaders { MPSMatrixFindTopK Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,3), iOS (11,3), Mac (10,13,4)] + [TV (11, 3), iOS (11, 3), Mac (10, 13, 4)] [BaseType (typeof (NSObject))] - interface MPSStateResourceList { + interface MPSStateResourceList { [Static] [Export ("resourceList")] @@ -6140,24 +6243,24 @@ namespace MetalPerformanceShaders { void Append (nuint bufferSize); } - [TV (11,3), iOS (11,3), Mac (10,13,4)] + [TV (11, 3), iOS (11, 3), Mac (10, 13, 4)] [BaseType (typeof (NSKeyedUnarchiver))] [DisableDefaultCtor] interface MPSKeyedUnarchiver : MPSDeviceProvider { - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Static] [Export ("unarchivedObjectOfClasses:fromData:device:error:")] [return: NullAllowed] NSObject GetUnarchivedObject (NSSet classes, NSData data, IMTLDevice device, [NullAllowed] out NSError error); - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Static] [Export ("unarchivedObjectOfClass:fromData:device:error:")] [return: NullAllowed] NSObject GetUnarchivedObject (Class @class, NSData data, IMTLDevice device, [NullAllowed] out NSError error); - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [Export ("initForReadingFromData:device:error:")] NativeHandle Constructor (NSData data, IMTLDevice device, [NullAllowed] out NSError error); @@ -6211,11 +6314,10 @@ namespace MetalPerformanceShaders { //NativeHandle Constructor (NSData data, IMTLDevice device); } - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPSNDArrayDescriptor - { + interface MPSNDArrayDescriptor { [Export ("dataType", ArgumentSemantic.Assign)] MPSDataType DataType { get; set; } @@ -6245,7 +6347,7 @@ namespace MetalPerformanceShaders { [Static] [Export ("descriptorWithDataType:shape:")] - MPSNDArrayDescriptor Create (MPSDataType dataType, [BindAs (typeof (nuint []))] NSNumber[] shape); + MPSNDArrayDescriptor Create (MPSDataType dataType, [BindAs (typeof (nuint []))] NSNumber [] shape); // This is implemented using params and descriptorWithDataType:dimensionCount:dimensionSizes: in MPSNDArray.cs // [Static, Internal] @@ -6256,24 +6358,22 @@ namespace MetalPerformanceShaders { void Reshape (nuint numberOfDimensions, IntPtr dimensionSizes); [Export ("reshapeWithShape:")] - void Reshape ([BindAs (typeof (nuint []))] NSNumber[] shape); + void Reshape ([BindAs (typeof (nuint []))] NSNumber [] shape); } interface IMPSNDArrayAllocator { } [Protocol] - interface MPSNDArrayAllocator : NSCoding, NSCopying, NSSecureCoding - { + interface MPSNDArrayAllocator : NSCoding, NSCopying, NSSecureCoding { [Abstract] [Export ("arrayForCommandBuffer:arrayDescriptor:kernel:")] MPSNDArray AllocateArray (IMTLCommandBuffer cmdBuf, MPSNDArrayDescriptor descriptor, MPSKernel kernel); } - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(NSObject))] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPSNDArray - { + interface MPSNDArray { [Static] [Export ("defaultAllocator")] IMPSNDArrayAllocator DefaultAllocator { get; } @@ -6323,10 +6423,10 @@ namespace MetalPerformanceShaders { void ImportData (IMTLCommandBuffer cmdBuf, IMTLBuffer buffer, MPSDataType sourceDataType, nuint offset, IntPtr rowStrides); [Export ("exportDataWithCommandBuffer:toImages:offset:")] - void ExportData (IMTLCommandBuffer cmdBuf, MPSImage[] images, MPSImageCoordinate offset); + void ExportData (IMTLCommandBuffer cmdBuf, MPSImage [] images, MPSImageCoordinate offset); [Export ("importDataWithCommandBuffer:fromImages:offset:")] - void ImportData (IMTLCommandBuffer cmdBuf, MPSImage[] images, MPSImageCoordinate offset); + void ImportData (IMTLCommandBuffer cmdBuf, MPSImage [] images, MPSImageCoordinate offset); [Export ("readBytes:strideBytes:")] void ReadBytes (IntPtr buffer, IntPtr strideBytesPerDimension); @@ -6339,10 +6439,9 @@ namespace MetalPerformanceShaders { } [DisableDefaultCtor] - [TV (13,0), Mac (10,15), iOS (13,0)] - [BaseType (typeof(MPSNDArray))] - interface MPSTemporaryNDArray - { + [TV (13, 0), Mac (10, 15), iOS (13, 0)] + [BaseType (typeof (MPSNDArray))] + interface MPSTemporaryNDArray { [Static] [Export ("defaultAllocator")] IMPSNDArrayAllocator DefaultAllocator { get; } @@ -6355,7 +6454,7 @@ namespace MetalPerformanceShaders { nuint ReadCount { get; set; } } - [TV (11,0), iOS (11,0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [BaseType (typeof (MPSImagePyramid))] [DisableDefaultCtor] interface MPSImageLaplacianPyramid { @@ -6382,7 +6481,7 @@ namespace MetalPerformanceShaders { float LaplacianScale { [Bind ("getLaplacianScale")] get; [Bind ("setLaplacianScale:")] set; } } - [TV (11,0), iOS (11,0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [BaseType (typeof (MPSImageLaplacianPyramid))] [DisableDefaultCtor] interface MPSImageLaplacianPyramidSubtract { @@ -6403,7 +6502,7 @@ namespace MetalPerformanceShaders { } - [TV (11,0), iOS (11,0), Mac (10,13)] + [TV (11, 0), iOS (11, 0), Mac (10, 13)] [BaseType (typeof (MPSImageLaplacianPyramid))] [DisableDefaultCtor] interface MPSImageLaplacianPyramidAdd { @@ -6423,7 +6522,7 @@ namespace MetalPerformanceShaders { IntPtr InitWithDevice (IMTLDevice device, nuint kernelWidth, nuint kernelHeight, /* float* */ IntPtr kernelWeights); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSMatrixCopyToImage { @@ -6452,7 +6551,7 @@ namespace MetalPerformanceShaders { void Encode (IMTLCommandBuffer commandBuffer, MPSMatrix sourceMatrix, NSArray destinationImages); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] interface MPSImageEuclideanDistanceTransform { @@ -6466,7 +6565,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSImageGuidedFilter { @@ -6498,7 +6597,7 @@ namespace MetalPerformanceShaders { void EncodeReconstruction (IMTLCommandBuffer commandBuffer, IMTLTexture guidanceTexture, IMTLTexture coefficientsTexture, IMTLTexture destinationTexture); } - [TV (12,0), iOS (12,0), Mac (10,14)] + [TV (12, 0), iOS (12, 0), Mac (10, 14)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSImageNormalizedHistogram { @@ -6531,7 +6630,7 @@ namespace MetalPerformanceShaders { nuint GetHistogramSize (MTLPixelFormat sourceFormat); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSUnaryImageKernel))] [DisableDefaultCtor] // Only subclasses are meant to be used interface MPSImageReduceUnary { @@ -6540,7 +6639,7 @@ namespace MetalPerformanceShaders { MTLRegion ClipRectSource { get; set; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceRowMin { @@ -6550,7 +6649,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceColumnMin { @@ -6560,7 +6659,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceRowMax { @@ -6570,7 +6669,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceColumnMax { @@ -6580,7 +6679,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceRowMean { @@ -6590,7 +6689,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceColumnMean { @@ -6600,7 +6699,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceRowSum { @@ -6610,7 +6709,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSImageReduceUnary))] [DisableDefaultCtor] interface MPSImageReduceColumnSum { @@ -6620,7 +6719,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] interface MPSMatrixSoftMaxGradient { @@ -6648,7 +6747,7 @@ namespace MetalPerformanceShaders { MPSMatrixSoftMaxGradient Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixSoftMaxGradient))] [DisableDefaultCtor] interface MPSMatrixLogSoftMaxGradient { @@ -6662,7 +6761,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSRayIntersector : NSSecureCoding, NSCopying { @@ -6719,7 +6818,7 @@ namespace MetalPerformanceShaders { void EncodeIntersection (IMTLCommandBuffer commandBuffer, MPSIntersectionType intersectionType, IMTLBuffer rayBuffer, nuint rayBufferOffset, IMTLBuffer intersectionBuffer, nuint intersectionBufferOffset, IMTLBuffer rayCountBuffer, nuint rayCountBufferOffset, MPSAccelerationStructure accelerationStructure); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSAccelerationStructureGroup { @@ -6731,7 +6830,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSAccelerationStructure))] [DisableDefaultCtor] interface MPSInstanceAccelerationStructure { @@ -6782,7 +6881,7 @@ namespace MetalPerformanceShaders { delegate void MPSAccelerationStructureCompletionHandler ([NullAllowed] MPSAccelerationStructure structure); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] interface MPSAccelerationStructure : NSSecureCoding, NSCopying { @@ -6889,7 +6988,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, MPSAccelerationStructureGroup group); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientState), Name = "MPSCNNBatchNormalizationState")] [DisableDefaultCtor] interface MPSCnnBatchNormalizationState { @@ -6919,7 +7018,7 @@ namespace MetalPerformanceShaders { IMTLBuffer GradientForBeta { get; } } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSState), Name = "MPSCNNNormalizationMeanAndVarianceState")] [DisableDefaultCtor] interface MPSCnnNormalizationMeanAndVarianceState { @@ -6940,7 +7039,7 @@ namespace MetalPerformanceShaders { interface IMPSCnnBatchNormalizationDataSource { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] #if NET [Protocol, Model] #else @@ -6985,7 +7084,7 @@ namespace MetalPerformanceShaders { [return: NullAllowed] MPSCnnNormalizationGammaAndBetaState UpdateGammaAndBeta (IMTLCommandBuffer commandBuffer, MPSCnnBatchNormalizationState batchNormalizationState); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:")] [return: NullAllowed] MPSCnnNormalizationMeanAndVarianceState UpdateMeanAndVariance (IMTLCommandBuffer commandBuffer, MPSCnnBatchNormalizationState batchNormalizationState); @@ -6993,7 +7092,7 @@ namespace MetalPerformanceShaders { [Export ("updateGammaAndBetaWithBatchNormalizationState:")] bool UpdateGammaAndBeta (MPSCnnBatchNormalizationState batchNormalizationState); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("updateMeanAndVarianceWithBatchNormalizationState:")] bool UpdateMeanAndVariance (MPSCnnBatchNormalizationState batchNormalizationState); @@ -7010,13 +7109,13 @@ namespace MetalPerformanceShaders { [Export ("supportsSecureCoding")] bool SupportsSecureCoding { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("copyWithZone:device:")] [return: Release] IMPSCnnBatchNormalizationDataSource Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNBatchNormalization")] [DisableDefaultCtor] interface MPSCnnBatchNormalization { @@ -7033,7 +7132,7 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:dataSource:")] NativeHandle Constructor (IMTLDevice device, IMPSCnnBatchNormalizationDataSource dataSource); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:dataSource:fusedNeuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, IMPSCnnBatchNormalizationDataSource dataSource, [NullAllowed] MPSNNNeuronDescriptor fusedNeuronDescriptor); @@ -7062,23 +7161,23 @@ namespace MetalPerformanceShaders { //[Export ("reloadDataSource:")] //void ReloadDataSource (IMPSCnnBatchNormalizationDataSource dataSource); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadGammaAndBetaFromDataSource")] void ReloadGammaAndBetaFromDataSource (); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadMeanAndVarianceFromDataSource")] void ReloadMeanAndVarianceFromDataSource (); [Export ("reloadGammaAndBetaWithCommandBuffer:gammaAndBetaState:")] void ReloadGammaAndBeta (IMTLCommandBuffer commandBuffer, MPSCnnNormalizationGammaAndBetaState gammaAndBetaState); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:")] void ReloadMeanAndVariance (IMTLCommandBuffer commandBuffer, MPSCnnNormalizationMeanAndVarianceState meanAndVarianceState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNBatchNormalizationStatistics")] [DisableDefaultCtor] interface MPSCnnBatchNormalizationStatistics { @@ -7095,12 +7194,12 @@ namespace MetalPerformanceShaders { void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImages, MPSCnnBatchNormalizationState batchNormalizationState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNBatchNormalizationGradient")] [DisableDefaultCtor] interface MPSCnnBatchNormalizationGradient { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:fusedNeuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, [NullAllowed] MPSNNNeuronDescriptor fusedNeuronDescriptor); @@ -7122,12 +7221,12 @@ namespace MetalPerformanceShaders { NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceGradients, NSArray sourceImages, MPSCnnBatchNormalizationState batchNormalizationState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNBatchNormalizationStatisticsGradient")] [DisableDefaultCtor] interface MPSCnnBatchNormalizationStatisticsGradient { - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("initWithDevice:fusedNeuronDescriptor:")] [DesignatedInitializer] NativeHandle Constructor (IMTLDevice device, [NullAllowed] MPSNNNeuronDescriptor fusedNeuronDescriptor); @@ -7140,7 +7239,7 @@ namespace MetalPerformanceShaders { void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceGradients, NSArray sourceImages, MPSCnnBatchNormalizationState batchNormalizationState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientState), Name = "MPSCNNConvolutionGradientState")] [DisableDefaultCtor] interface MPSCnnConvolutionGradientState : MPSImageSizeEncodingState { @@ -7155,7 +7254,7 @@ namespace MetalPerformanceShaders { MPSCnnConvolution Convolution { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSState), Name = "MPSCNNConvolutionWeightsAndBiasesState")] [DisableDefaultCtor] interface MPSCnnConvolutionWeightsAndBiasesState { @@ -7177,7 +7276,7 @@ namespace MetalPerformanceShaders { MPSCnnConvolutionWeightsAndBiasesState GetTemporaryCnnConvolutionWeightsAndBiasesState (IMTLCommandBuffer commandBuffer, MPSCnnConvolutionDescriptor descriptor); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNConvolutionGradient")] [DisableDefaultCtor] interface MPSCnnConvolutionGradient { @@ -7191,7 +7290,7 @@ namespace MetalPerformanceShaders { [Export ("groups")] nuint Groups { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("channelMultiplier")] nuint ChannelMultiplier { get; } @@ -7215,7 +7314,7 @@ namespace MetalPerformanceShaders { [DesignatedInitializer] NativeHandle Constructor (NSCoder decoder, IMTLDevice device); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadWeightsAndBiasesFromDataSource")] void ReloadWeightsAndBiasesFromDataSource (); @@ -7223,7 +7322,7 @@ namespace MetalPerformanceShaders { void ReloadWeightsAndBiases (IMTLCommandBuffer commandBuffer, MPSCnnConvolutionWeightsAndBiasesState state); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnConvolutionGradient), Name = "MPSCNNFullyConnectedGradient")] [DisableDefaultCtor] interface MPSCnnFullyConnectedGradient { @@ -7237,7 +7336,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNGradientState), Name = "MPSCNNDropoutGradientState")] [DisableDefaultCtor] interface MPSCnnDropoutGradientState { @@ -7246,7 +7345,7 @@ namespace MetalPerformanceShaders { NSData MaskData { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNDropout")] [DisableDefaultCtor] interface MPSCnnDropout { @@ -7269,7 +7368,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, float keepProbability, nuint seed, MTLSize maskStrideInPixels); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNDropoutGradient")] [DisableDefaultCtor] interface MPSCnnDropoutGradient { @@ -7315,7 +7414,7 @@ namespace MetalPerformanceShaders { interface IMPSCnnInstanceNormalizationDataSource { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] #if NET [Protocol, Model] #else @@ -7361,13 +7460,13 @@ namespace MetalPerformanceShaders { //[Export ("supportsSecureCoding")] //bool SupportsSecureCoding { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("copyWithZone:device:")] [return: Release] IMPSCnnInstanceNormalizationDataSource Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNInstanceNormalization")] [DisableDefaultCtor] interface MPSCnnInstanceNormalization { @@ -7392,7 +7491,7 @@ namespace MetalPerformanceShaders { [Export ("reloadDataSource:")] void ReloadDataSource (IMPSCnnInstanceNormalizationDataSource dataSource); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("reloadGammaAndBetaFromDataSource")] void ReloadGammaAndBetaFromDataSource (); @@ -7408,7 +7507,7 @@ namespace MetalPerformanceShaders { MPSCnnInstanceNormalizationGradientState GetTemporaryResultState (IMTLCommandBuffer commandBuffer, MPSImage sourceImage, [NullAllowed] NSArray sourceStates, MPSImage destinationImage); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNInstanceNormalizationGradient")] [DisableDefaultCtor] interface MPSCnnInstanceNormalizationGradient { @@ -7422,7 +7521,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnBinaryKernel), Name = "MPSCNNGradientKernel")] [DisableDefaultCtor] interface MPSCnnGradientKernel { @@ -7454,7 +7553,7 @@ namespace MetalPerformanceShaders { void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceGradients, NSArray sourceImages, NSArray gradientStates, NSArray destinationGradients); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (NSObject), Name = "MPSCNNLossDataDescriptor")] [DisableDefaultCtor] interface MPSCnnLossDataDescriptor : NSCopying { @@ -7477,7 +7576,7 @@ namespace MetalPerformanceShaders { MPSCnnLossDataDescriptor Create (NSData data, MPSDataLayout layout, MTLSize size); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSState), Name = "MPSCNNLossLabels")] [DisableDefaultCtor] interface MPSCnnLossLabels { @@ -7492,16 +7591,16 @@ namespace MetalPerformanceShaders { [Export ("lossImage")] MPSImage LossImage { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("labelsImage")] MPSImage LabelsImage { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("weightsImage")] MPSImage WeightsImage { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (NSObject), Name = "MPSCNNLossDescriptor")] [DisableDefaultCtor] interface MPSCnnLossDescriptor : NSCopying { @@ -7532,7 +7631,7 @@ namespace MetalPerformanceShaders { MPSCnnLossDescriptor Create (MPSCnnLossType lossType, MPSCnnReductionType reductionType); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNLoss")] [DisableDefaultCtor] interface MPSCnnLoss { @@ -7579,7 +7678,7 @@ namespace MetalPerformanceShaders { NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, NSArray labels); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (NSObject), Name = "MPSCNNYOLOLossDescriptor")] [DisableDefaultCtor] interface MPSCnnYoloLossDescriptor : NSCopying { @@ -7634,7 +7733,7 @@ namespace MetalPerformanceShaders { MPSCnnYoloLossDescriptor Create (MPSCnnLossType xyLossType, MPSCnnLossType whLossType, MPSCnnLossType confidenceLossType, MPSCnnLossType classesLossType, MPSCnnReductionType reductionType, NSData anchorBoxes, nuint numberOfAnchorBoxes); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSCnnKernel), Name = "MPSCNNYOLOLoss")] [DisableDefaultCtor] interface MPSCnnYoloLoss { @@ -7702,14 +7801,14 @@ namespace MetalPerformanceShaders { NSArray EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray sourceImage, NSArray labels); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNBinaryGradientState), Name = "MPSCNNArithmeticGradientState")] [DisableDefaultCtor] interface MPSCnnArithmeticGradientState { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnBinaryKernel), Name = "MPSCNNArithmetic")] [DisableDefaultCtor] interface MPSCnnArithmetic { @@ -7751,7 +7850,7 @@ namespace MetalPerformanceShaders { void EncodeBatch (IMTLCommandBuffer commandBuffer, NSArray primaryImages, NSArray secondaryImages, MPSCnnArithmeticGradientState [] destinationStates, NSArray destinationImages); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmetic), Name = "MPSCNNAdd")] [DisableDefaultCtor] interface MPSCnnAdd { @@ -7761,7 +7860,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmetic), Name = "MPSCNNSubtract")] [DisableDefaultCtor] interface MPSCnnSubtract { @@ -7771,7 +7870,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmetic), Name = "MPSCNNMultiply")] [DisableDefaultCtor] interface MPSCnnMultiply { @@ -7781,7 +7880,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmetic), Name = "MPSCNNDivide")] [DisableDefaultCtor] interface MPSCnnDivide { @@ -7791,7 +7890,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSCnnArithmetic))] [DisableDefaultCtor] interface MPSNNCompare { @@ -7807,7 +7906,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNArithmeticGradient")] [DisableDefaultCtor] interface MPSCnnArithmeticGradient { @@ -7843,7 +7942,7 @@ namespace MetalPerformanceShaders { bool IsSecondarySourceFilter { get; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmeticGradient), Name = "MPSCNNAddGradient")] [DisableDefaultCtor] interface MPSCnnAddGradient { @@ -7853,7 +7952,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmeticGradient), Name = "MPSCNNSubtractGradient")] [DisableDefaultCtor] interface MPSCnnSubtractGradient { @@ -7863,7 +7962,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnArithmeticGradient), Name = "MPSCNNMultiplyGradient")] [DisableDefaultCtor] interface MPSCnnMultiplyGradient { @@ -7873,7 +7972,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, bool isSecondarySourceFilter); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNNeuronDescriptor : NSCopying, NSSecureCoding { @@ -7914,7 +8013,7 @@ namespace MetalPerformanceShaders { MPSNNNeuronDescriptor Create (NSData data, bool noCopy); } - [TV (11,3), Mac (10,13, 4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnGradientKernel), Name = "MPSCNNNeuronGradient")] [DisableDefaultCtor] interface MPSCnnNeuronGradient { @@ -7943,7 +8042,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSState), Name = "MPSCNNNormalizationGammaAndBetaState")] [DisableDefaultCtor] interface MPSCnnNormalizationGammaAndBetaState { @@ -7962,7 +8061,7 @@ namespace MetalPerformanceShaders { MPSCnnNormalizationGammaAndBetaState GetTemporaryState (IMTLCommandBuffer commandBuffer, nuint numberOfFeatureChannels); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixUnaryKernel))] [DisableDefaultCtor] interface MPSMatrixBatchNormalization { @@ -8010,7 +8109,7 @@ namespace MetalPerformanceShaders { MPSMatrixBatchNormalization Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSMatrixBinaryKernel))] [DisableDefaultCtor] interface MPSMatrixBatchNormalizationGradient { @@ -8055,7 +8154,7 @@ namespace MetalPerformanceShaders { MPSMatrixBatchNormalizationGradient Copy ([NullAllowed] NSZone zone, [NullAllowed] IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSState))] [DisableDefaultCtor] interface MPSNNGradientState { @@ -8096,7 +8195,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor ([NullAllowed] IMTLResource [] resources); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSState))] [DisableDefaultCtor] interface MPSNNBinaryGradientState { @@ -8139,7 +8238,7 @@ namespace MetalPerformanceShaders { interface IMPSNNTrainableNode { } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [Protocol] interface MPSNNTrainableNode { [Abstract] @@ -8147,7 +8246,7 @@ namespace MetalPerformanceShaders { MPSNNTrainingStyle TrainingStyle { get; set; } } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MPSNNOptimizerDescriptor { @@ -8188,7 +8287,7 @@ namespace MetalPerformanceShaders { MPSNNOptimizerDescriptor Create (float learningRate, float gradientRescale, bool applyGradientClipping, float gradientClipMax, float gradientClipMin, MPSNNRegularizationType regularizationType, float regularizationScale); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSKernel))] [DisableDefaultCtor] // You must use one of the sub-classes of MPSNNOptimizer. interface MPSNNOptimizer { @@ -8218,7 +8317,7 @@ namespace MetalPerformanceShaders { void SetLearningRate (float newLearningRate); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSNNOptimizer))] [DisableDefaultCtor] interface MPSNNOptimizerStochasticGradientDescent { @@ -8248,7 +8347,7 @@ namespace MetalPerformanceShaders { void Encode (IMTLCommandBuffer commandBuffer, MPSCnnBatchNormalizationState batchNormalizationGradientState, MPSCnnBatchNormalizationState batchNormalizationSourceState, [NullAllowed] NSArray inputMomentumVectors, MPSCnnNormalizationGammaAndBetaState resultState); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSNNOptimizer), Name = "MPSNNOptimizerRMSProp")] [DisableDefaultCtor] interface MPSNNOptimizerRmsProp { @@ -8278,7 +8377,7 @@ namespace MetalPerformanceShaders { void Encode (IMTLCommandBuffer commandBuffer, MPSCnnBatchNormalizationState batchNormalizationGradientState, MPSCnnBatchNormalizationState batchNormalizationSourceState, [NullAllowed] NSArray inputSumOfSquaresVectors, MPSCnnNormalizationGammaAndBetaState resultState); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSNNOptimizer))] [DisableDefaultCtor] interface MPSNNOptimizerAdam { @@ -8314,7 +8413,7 @@ namespace MetalPerformanceShaders { void Encode (IMTLCommandBuffer commandBuffer, MPSCnnBatchNormalizationState batchNormalizationGradientState, MPSCnnBatchNormalizationState batchNormalizationSourceState, [NullAllowed] NSArray inputMomentumVectors, [NullAllowed] NSArray inputVelocityVectors, MPSCnnNormalizationGammaAndBetaState resultState); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] // You must use one of the sub-classes of MPSNNReduceUnary. interface MPSNNReduceUnary { @@ -8323,7 +8422,7 @@ namespace MetalPerformanceShaders { MTLRegion ClipRectSource { get; set; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceRowMin { @@ -8333,7 +8432,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceColumnMin { @@ -8343,7 +8442,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsMin { @@ -8353,7 +8452,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsArgumentMin { @@ -8363,7 +8462,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceRowMax { @@ -8373,7 +8472,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceColumnMax { @@ -8383,7 +8482,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsMax { @@ -8393,7 +8492,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsArgumentMax { @@ -8403,7 +8502,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceRowMean { @@ -8413,7 +8512,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceColumnMean { @@ -8423,7 +8522,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsMean { @@ -8433,7 +8532,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceRowSum { @@ -8443,7 +8542,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceColumnSum { @@ -8453,7 +8552,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceUnary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsSum { @@ -8466,7 +8565,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnBinaryKernel))] [DisableDefaultCtor] // You must use one of the sub-classes of MPSNNReduceBinary. interface MPSNNReduceBinary { @@ -8478,7 +8577,7 @@ namespace MetalPerformanceShaders { MTLRegion SecondarySourceClipRect { get; set; } } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceBinary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsAndWeightsMean { @@ -8488,7 +8587,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSNNReduceBinary))] [DisableDefaultCtor] interface MPSNNReduceFeatureChannelsAndWeightsSum { @@ -8504,7 +8603,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (IMTLDevice device, bool doWeightedSumByNonZeroWeights); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] interface MPSNNReshape { @@ -8518,7 +8617,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSCnnGradientKernel))] [DisableDefaultCtor] interface MPSNNReshapeGradient { @@ -8532,7 +8631,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] interface MPSNNPad { @@ -8561,7 +8660,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (12,1), Mac (10,14,1), iOS (12,1)] + [TV (12, 1), Mac (10, 14, 1), iOS (12, 1)] [BaseType (typeof (MPSCnnGradientKernel))] [DisableDefaultCtor] interface MPSNNPadGradient { @@ -8575,7 +8674,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] interface MPSNNResizeBilinear { @@ -8598,7 +8697,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] interface MPSNNCropAndResizeBilinear { @@ -8624,7 +8723,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder aDecoder, IMTLDevice device); } - [TV (11,3), Mac (10,13,4), iOS (11,3)] + [TV (11, 3), Mac (10, 13, 4), iOS (11, 3)] [BaseType (typeof (MPSCnnKernel))] [DisableDefaultCtor] interface MPSNNSlice { @@ -8638,20 +8737,23 @@ namespace MetalPerformanceShaders { NativeHandle Constructor (NSCoder decoder, IMTLDevice device); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSState), Name = "MPSRNNMatrixTrainingState")] [DisableDefaultCtor] interface MPSRnnMatrixTrainingState { - [Static][New] + [Static] + [New] [Export ("temporaryStateWithCommandBuffer:bufferSize:")] MPSRnnMatrixTrainingState CreateTemporaryState (IMTLCommandBuffer commandBuffer, nuint bufferSize); - [Static][New] + [Static] + [New] [Export ("temporaryStateWithCommandBuffer:textureDescriptor:")] MPSRnnMatrixTrainingState CreateTemporaryState (IMTLCommandBuffer commandBuffer, MTLTextureDescriptor descriptor); - [Static][New] + [Static] + [New] [Export ("temporaryStateWithCommandBuffer:")] MPSRnnMatrixTrainingState CreateTemporaryState (IMTLCommandBuffer commandBuffer); @@ -8667,7 +8769,8 @@ namespace MetalPerformanceShaders { [Export ("initWithDevice:resourceList:")] NativeHandle Constructor (IMTLDevice device, MPSStateResourceList resourceList); - [Static][New] + [Static] + [New] [Export ("temporaryStateWithCommandBuffer:resourceList:")] MPSRnnMatrixTrainingState CreateTemporaryState (IMTLCommandBuffer commandBuffer, MPSStateResourceList resourceList); @@ -8675,7 +8778,7 @@ namespace MetalPerformanceShaders { NativeHandle Constructor ([NullAllowed] IMTLResource [] resources); } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (MPSKernel), Name = "MPSRNNMatrixTrainingLayer")] [DisableDefaultCtor] interface MPSRnnMatrixTrainingLayer { @@ -8712,19 +8815,19 @@ namespace MetalPerformanceShaders { void CreateWeightMatrices (NSMutableArray matrices); [Export ("encodeCopyWeightsToCommandBuffer:weights:matrixId:matrix:copyFromWeightsToMatrix:matrixOffset:")] - void EncodeCopyWeights (IMTLCommandBuffer commandBuffer, MPSMatrix[] weights, MPSRnnMatrixId matrixId, MPSMatrix matrix, bool copyFromWeightsToMatrix, MTLOrigin matrixOffset); + void EncodeCopyWeights (IMTLCommandBuffer commandBuffer, MPSMatrix [] weights, MPSRnnMatrixId matrixId, MPSMatrix matrix, bool copyFromWeightsToMatrix, MTLOrigin matrixOffset); [Export ("encodeForwardSequenceToCommandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:trainingStates:recurrentInputState:recurrentOutputStates:weights:")] - void EncodeForwardSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] sourceMatrices, [NullAllowed] IntPtr sourceOffsets, MPSMatrix[] destinationMatrices, [NullAllowed] IntPtr destinationOffsets, NSMutableArray trainingStates, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates, MPSMatrix[] weights); + void EncodeForwardSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] sourceMatrices, [NullAllowed] IntPtr sourceOffsets, MPSMatrix [] destinationMatrices, [NullAllowed] IntPtr destinationOffsets, NSMutableArray trainingStates, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates, MPSMatrix [] weights); [Export ("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:")] - void EncodeForwardSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] sourceMatrices, MPSMatrix[] destinationMatrices, NSMutableArray trainingStates, MPSMatrix[] weights); + void EncodeForwardSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] sourceMatrices, MPSMatrix [] destinationMatrices, NSMutableArray trainingStates, MPSMatrix [] weights); [Export ("encodeGradientSequenceToCommandBuffer:forwardSources:forwardSourceOffsets:sourceGradients:sourceGradientOffsets:destinationGradients:destinationOffsets:weightGradients:trainingStates:recurrentInputState:recurrentOutputStates:weights:")] - void EncodeGradientSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] forwardSources, [NullAllowed] IntPtr forwardSourceOffsets, MPSMatrix[] sourceGradients, [NullAllowed] IntPtr sourceGradientOffsets, [NullAllowed] MPSMatrix[] destinationGradients, [NullAllowed] IntPtr destinationOffsets, [NullAllowed] MPSMatrix[] weightGradients, MPSRnnMatrixTrainingState[] trainingStates, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates, MPSMatrix[] weights); + void EncodeGradientSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] forwardSources, [NullAllowed] IntPtr forwardSourceOffsets, MPSMatrix [] sourceGradients, [NullAllowed] IntPtr sourceGradientOffsets, [NullAllowed] MPSMatrix [] destinationGradients, [NullAllowed] IntPtr destinationOffsets, [NullAllowed] MPSMatrix [] weightGradients, MPSRnnMatrixTrainingState [] trainingStates, [NullAllowed] MPSRnnRecurrentMatrixState recurrentInputState, [NullAllowed] NSMutableArray recurrentOutputStates, MPSMatrix [] weights); [Export ("encodeGradientSequenceToCommandBuffer:forwardSources:sourceGradients:destinationGradients:weightGradients:trainingStates:weights:")] - void EncodeGradientSequence (IMTLCommandBuffer commandBuffer, MPSMatrix[] forwardSources, MPSMatrix[] sourceGradients, [NullAllowed] MPSMatrix[] destinationGradients, [NullAllowed] MPSMatrix[] weightGradients, MPSRnnMatrixTrainingState[] trainingStates, MPSMatrix[] weights); + void EncodeGradientSequence (IMTLCommandBuffer commandBuffer, MPSMatrix [] forwardSources, MPSMatrix [] sourceGradients, [NullAllowed] MPSMatrix [] destinationGradients, [NullAllowed] MPSMatrix [] weightGradients, MPSRnnMatrixTrainingState [] trainingStates, MPSMatrix [] weights); [Export ("initWithCoder:device:")] [DesignatedInitializer] diff --git a/src/metalperformanceshadersgraph.cs b/src/metalperformanceshadersgraph.cs index 2bbdd14ea9..deae228859 100644 --- a/src/metalperformanceshadersgraph.cs +++ b/src/metalperformanceshadersgraph.cs @@ -12,11 +12,10 @@ using NativeHandle = System.IntPtr; using MPSGraphTensorDataDictionary = Foundation.NSDictionary; using MPSGraphTensorShapedTypeDictionary = Foundation.NSDictionary; -namespace MetalPerformanceShadersGraph -{ +namespace MetalPerformanceShadersGraph { // MPSGraph.h - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface MPSGraph { [Static, Export ("new")] @@ -29,56 +28,54 @@ namespace MetalPerformanceShadersGraph // @property (readonly, nonatomic) NSArray * _Nonnull placeholderTensors; [Export ("placeholderTensors")] - MPSGraphTensor[] PlaceholderTensors { get; } + MPSGraphTensor [] PlaceholderTensors { get; } // -(MPSGraphExecutable * _Nonnull)compileWithDevice:(MPSGraphDevice * _Nullable)device feeds:(MPSGraphTensorShapedTypeDictionary * _Nonnull)feeds targetTensors:(NSArray * _Nonnull)targetTensors targetOperations:(NSArray * _Nullable)targetOperations compilationDescriptor:(MPSGraphCompilationDescriptor * _Nullable)compilationDescriptor __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("compileWithDevice:feeds:targetTensors:targetOperations:compilationDescriptor:")] - MPSGraphExecutable Compile ([NullAllowed] MPSGraphDevice device, NSDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations, [NullAllowed] MPSGraphCompilationDescriptor compilationDescriptor); + MPSGraphExecutable Compile ([NullAllowed] MPSGraphDevice device, NSDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations, [NullAllowed] MPSGraphCompilationDescriptor compilationDescriptor); [Export ("runWithFeeds:targetTensors:targetOperations:")] - MPSGraphTensorDataDictionary Run (MPSGraphTensorDataDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations); + MPSGraphTensorDataDictionary Run (MPSGraphTensorDataDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations); [Export ("runWithMTLCommandQueue:feeds:targetTensors:targetOperations:")] - MPSGraphTensorDataDictionary Run (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations); + MPSGraphTensorDataDictionary Run (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations); [Export ("runWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:")] - void Run (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation[] targetOperations, MPSGraphTensorDataDictionary resultsDictionary); + void Run (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation [] targetOperations, MPSGraphTensorDataDictionary resultsDictionary); [Export ("runAsyncWithFeeds:targetTensors:targetOperations:executionDescriptor:")] - MPSGraphTensorDataDictionary RunAsync (MPSGraphTensorDataDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); + MPSGraphTensorDataDictionary RunAsync (MPSGraphTensorDataDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); [Export ("runAsyncWithMTLCommandQueue:feeds:targetTensors:targetOperations:executionDescriptor:")] - MPSGraphTensorDataDictionary RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); + MPSGraphTensorDataDictionary RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); [Export ("runAsyncWithMTLCommandQueue:feeds:targetOperations:resultsDictionary:executionDescriptor:")] - void RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation[] targetOperations, MPSGraphTensorDataDictionary resultsDictionary, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); + void RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation [] targetOperations, MPSGraphTensorDataDictionary resultsDictionary, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); [Export ("encodeToCommandBuffer:feeds:targetTensors:targetOperations:executionDescriptor:")] - MPSGraphTensorDataDictionary Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorDataDictionary feeds, MPSGraphTensor[] targetTensors, [NullAllowed] MPSGraphOperation[] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); + MPSGraphTensorDataDictionary Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorDataDictionary feeds, MPSGraphTensor [] targetTensors, [NullAllowed] MPSGraphOperation [] targetOperations, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); [Export ("encodeToCommandBuffer:feeds:targetOperations:resultsDictionary:executionDescriptor:")] - void Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation[] targetOperations, MPSGraphTensorDataDictionary resultsDictionary, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); + void Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorDataDictionary feeds, [NullAllowed] MPSGraphOperation [] targetOperations, MPSGraphTensorDataDictionary resultsDictionary, [NullAllowed] MPSGraphExecutionDescriptor executionDescriptor); } // @interface MPSGraphGradientOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphGradientOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphGradientOps { // -(NSDictionary * _Nonnull)gradientForPrimaryTensor:(MPSGraphTensor * _Nonnull)primaryTensor withTensors:(NSArray * _Nonnull)tensors name:(NSString * _Nullable)name __attribute__((swift_name("gradients(of:with:name:)"))); [Export ("gradientForPrimaryTensor:withTensors:name:")] - NSDictionary Gradients (MPSGraphTensor of, MPSGraphTensor[] with, [NullAllowed] string name); + NSDictionary Gradients (MPSGraphTensor of, MPSGraphTensor [] with, [NullAllowed] string name); } // @interface MPSGraphActivationOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphActivationOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphActivationOps { // -(MPSGraphTensor * _Nonnull)reLUWithTensor:(MPSGraphTensor * _Nonnull)tensor name:(NSString * _Nullable)name; [Export ("reLUWithTensor:name:")] MPSGraphTensor ReLU (MPSGraphTensor tensor, [NullAllowed] string name); @@ -104,27 +101,26 @@ namespace MetalPerformanceShadersGraph MPSGraphTensor SoftMaxGradient (MPSGraphTensor gradient, MPSGraphTensor source, nint axis, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)leakyReLUWithTensor:(MPSGraphTensor * _Nonnull)tensor alpha:(double)alpha name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("leakyReLUWithTensor:alpha:name:")] MPSGraphTensor LeakyReLU (MPSGraphTensor tensor, double alpha, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)leakyReLUWithTensor:(MPSGraphTensor * _Nonnull)tensor alphaTensor:(MPSGraphTensor * _Nonnull)alphaTensor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("leakyReLUWithTensor:alphaTensor:name:")] MPSGraphTensor LeakyReLU (MPSGraphTensor tensor, MPSGraphTensor alphaTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)leakyReLUGradientWithIncomingGradient:(MPSGraphTensor * _Nonnull)gradient sourceTensor:(MPSGraphTensor * _Nonnull)source alphaTensor:(MPSGraphTensor * _Nonnull)alphaTensor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("leakyReLUGradientWithIncomingGradient:sourceTensor:alphaTensor:name:")] MPSGraphTensor LeakyReLUGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphTensor alphaTensor, [NullAllowed] string name); } // @interface MPSGraphArithmeticOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphArithmeticOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphArithmeticOps { // -(MPSGraphTensor * _Nonnull)identityWithTensor:(MPSGraphTensor * _Nonnull)tensor name:(NSString * _Nullable)name; [Export ("identityWithTensor:name:")] MPSGraphTensor Identity (MPSGraphTensor tensor, [NullAllowed] string name); @@ -302,12 +298,12 @@ namespace MetalPerformanceShadersGraph MPSGraphTensor Maximum (MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)minimumWithNaNPropagationWithPrimaryTensor:(MPSGraphTensor * _Nonnull)primaryTensor secondaryTensor:(MPSGraphTensor * _Nonnull)secondaryTensor name:(NSString * _Nullable)name __attribute__((swift_name("minimumWithNaNPropagation(_:_:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("minimumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:")] MPSGraphTensor MinimumWithNaNPropagation (MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)maximumWithNaNPropagationWithPrimaryTensor:(MPSGraphTensor * _Nonnull)primaryTensor secondaryTensor:(MPSGraphTensor * _Nonnull)secondaryTensor name:(NSString * _Nullable)name __attribute__((swift_name("maximumWithNaNPropagation(_:_:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("maximumWithNaNPropagationWithPrimaryTensor:secondaryTensor:name:")] MPSGraphTensor MaximumWithNaNPropagation (MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, [NullAllowed] string name); @@ -381,10 +377,9 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphConvolution2DOpDescriptor : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphConvolution2DOpDescriptor : NSCopying - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphConvolution2DOpDescriptor : NSCopying { // @property (readwrite, nonatomic) NSUInteger strideInX; [Export ("strideInX")] nuint StrideInX { get; set; } @@ -451,115 +446,111 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphConvolutionOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphConvolutionOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphConvolutionOps { // -(MPSGraphTensor * _Nonnull)convolution2DWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights descriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolution2D(_:weights:descriptor:name:)"))); [Export ("convolution2DWithSourceTensor:weightsTensor:descriptor:name:")] MPSGraphTensor Convolution2D (MPSGraphTensor source, MPSGraphTensor weights, MPSGraphConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolution2DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShape:(MPSShape * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolution2DDataGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)"))); [Export ("convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:")] - MPSGraphTensor Convolution2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); + MPSGraphTensor Convolution2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolution2DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)gradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShapeTensor:(MPSGraphTensor * _Nonnull)outputShapeTensor forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("convolution2DDataGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("convolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:")] MPSGraphTensor Convolution2DDataGradient (MPSGraphTensor gradient, MPSGraphTensor weights, MPSGraphTensor outputShapeTensor, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolution2DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient sourceTensor:(MPSGraphTensor * _Nonnull)source outputShape:(MPSShape * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolution2DWeightsGradient(_:source:outputShape:forwardConvolutionDescriptor:name:)"))); [Export ("convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:")] - MPSGraphTensor Convolution2DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); + MPSGraphTensor Convolution2DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolution2DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)gradient sourceTensor:(MPSGraphTensor * _Nonnull)source outputShapeTensor:(MPSGraphTensor * _Nonnull)outputShapeTensor forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("convolution2DWeightsGradient(_:source:outputShapeTensor:forwardConvolutionDescriptor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("convolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:")] MPSGraphTensor Convolution2DWeightsGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphTensor outputShapeTensor, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); } // @interface MPSGraphConvolutionTransposeOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphConvolutionTransposeOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphConvolutionTransposeOps { // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShape:(MPSShape * _Nonnull)outputShape descriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolutionTranspose2D(_:weights:outputShape:descriptor:name:)"))); [Export ("convolutionTranspose2DWithSourceTensor:weightsTensor:outputShape:descriptor:name:")] - MPSGraphTensor ConvolutionTranspose2D (MPSGraphTensor source, MPSGraphTensor weights, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphConvolution2DOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor ConvolutionTranspose2D (MPSGraphTensor source, MPSGraphTensor weights, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShapeTensor:(MPSGraphTensor * _Nonnull)outputShape descriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("convolutionTranspose2D(_:weights:outputShapeTensor:descriptor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("convolutionTranspose2DWithSourceTensor:weightsTensor:outputShapeTensor:descriptor:name:")] MPSGraphTensor ConvolutionTranspose2D (MPSGraphTensor source, MPSGraphTensor weights, MPSGraphTensor outputShape, MPSGraphConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShape:(MPSShape * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolutionTranspose2DDataGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)"))); [Export ("convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:forwardConvolutionDescriptor:name:")] - MPSGraphTensor ConvolutionTranspose2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); + MPSGraphTensor ConvolutionTranspose2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShapeTensor:(MPSGraphTensor * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("convolutionTranspose2DDataGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("convolutionTranspose2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShapeTensor:forwardConvolutionDescriptor:name:")] MPSGraphTensor ConvolutionTranspose2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, MPSGraphTensor outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)source outputShape:(MPSShape * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((swift_name("convolutionTranspose2DWeightsGradient(_:weights:outputShape:forwardConvolutionDescriptor:name:)"))); [Export ("convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:forwardConvolutionDescriptor:name:")] - MPSGraphTensor ConvolutionTranspose2DWeightsGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor source, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); + MPSGraphTensor ConvolutionTranspose2DWeightsGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor source, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)source outputShapeTensor:(MPSGraphTensor * _Nonnull)outputShape forwardConvolutionDescriptor:(MPSGraphConvolution2DOpDescriptor * _Nonnull)forwardConvolutionDescriptor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("convolutionTranspose2DWeightsGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("convolutionTranspose2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShapeTensor:forwardConvolutionDescriptor:name:")] MPSGraphTensor ConvolutionTranspose2DWeightsGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor source, MPSGraphTensor outputShape, MPSGraphConvolution2DOpDescriptor forwardConvolutionDescriptor, [NullAllowed] string name); } // @interface MPSGraphControlFlowOps (MPSGraph) - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphControlFlowOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphControlFlowOps { // -(NSArray * _Nonnull)controlDependencyWithOperations:(NSArray * _Nonnull)operations dependentBlock:(MPSGraphControlFlowDependencyBlock _Nonnull)dependentBlock name:(NSString * _Nullable)name; [Export ("controlDependencyWithOperations:dependentBlock:name:")] - MPSGraphTensor[] ControlDependency (MPSGraphOperation[] operations, MPSGraphControlFlowDependencyBlock dependentBlock, [NullAllowed] string name); + MPSGraphTensor [] ControlDependency (MPSGraphOperation [] operations, MPSGraphControlFlowDependencyBlock dependentBlock, [NullAllowed] string name); // -(NSArray * _Nonnull)ifWithPredicateTensor:(MPSGraphTensor * _Nonnull)predicateTensor thenBlock:(MPSGraphIfThenElseBlock _Nonnull)thenBlock elseBlock:(MPSGraphIfThenElseBlock _Nullable)elseBlock name:(NSString * _Nullable)name __attribute__((swift_name("if(_:then:else:name:)"))); [Export ("ifWithPredicateTensor:thenBlock:elseBlock:name:")] - MPSGraphTensor[] If (MPSGraphTensor predicateTensor, MPSGraphIfThenElseBlock thenBlock, [NullAllowed] MPSGraphIfThenElseBlock elseBlock, [NullAllowed] string name); + MPSGraphTensor [] If (MPSGraphTensor predicateTensor, MPSGraphIfThenElseBlock thenBlock, [NullAllowed] MPSGraphIfThenElseBlock elseBlock, [NullAllowed] string name); // -(NSArray * _Nonnull)whileWithInitialInputs:(NSArray * _Nonnull)initialInputs before:(MPSGraphWhileBeforeBlock _Nonnull)before after:(MPSGraphWhileAfterBlock _Nonnull)after name:(NSString * _Nullable)name __attribute__((swift_name("while(initialInputs:before:after:name:)"))); [Export ("whileWithInitialInputs:before:after:name:")] - MPSGraphTensor[] While (MPSGraphTensor[] initialInputs, MPSGraphWhileBeforeBlock before, MPSGraphWhileAfterBlock after, [NullAllowed] string name); + MPSGraphTensor [] While (MPSGraphTensor [] initialInputs, MPSGraphWhileBeforeBlock before, MPSGraphWhileAfterBlock after, [NullAllowed] string name); // -(NSArray * _Nonnull)forLoopWithLowerBound:(MPSGraphTensor * _Nonnull)lowerBound upperBound:(MPSGraphTensor * _Nonnull)upperBound step:(MPSGraphTensor * _Nonnull)step initialBodyArguments:(NSArray * _Nonnull)initialBodyArguments body:(MPSGraphForLoopBodyBlock _Nonnull)body name:(NSString * _Nullable)name __attribute__((swift_name("for(lowerBound:upperBound:step:initialBodyArguments:body:name:)"))); [Export ("forLoopWithLowerBound:upperBound:step:initialBodyArguments:body:name:")] - MPSGraphTensor[] For (MPSGraphTensor lowerBound, MPSGraphTensor upperBound, MPSGraphTensor step, MPSGraphTensor[] initialBodyArguments, MPSGraphForLoopBodyBlock body, [NullAllowed] string name); + MPSGraphTensor [] For (MPSGraphTensor lowerBound, MPSGraphTensor upperBound, MPSGraphTensor step, MPSGraphTensor [] initialBodyArguments, MPSGraphForLoopBodyBlock body, [NullAllowed] string name); // -(NSArray * _Nonnull)forLoopWithNumberOfIterations:(MPSGraphTensor * _Nonnull)numberOfIterations initialBodyArguments:(NSArray * _Nonnull)initialBodyArguments body:(MPSGraphForLoopBodyBlock _Nonnull)body name:(NSString * _Nullable)name __attribute__((swift_name("for(numberOfIterations:initialBodyArguments:body:name:)"))); [Export ("forLoopWithNumberOfIterations:initialBodyArguments:body:name:")] - MPSGraphTensor[] For (MPSGraphTensor numberOfIterations, MPSGraphTensor[] initialBodyArguments, MPSGraphForLoopBodyBlock body, [NullAllowed] string name); + MPSGraphTensor [] For (MPSGraphTensor numberOfIterations, MPSGraphTensor [] initialBodyArguments, MPSGraphForLoopBodyBlock body, [NullAllowed] string name); } // typedef NSArray * _Nonnull (^MPSGraphControlFlowDependencyBlock)(); - delegate MPSGraphTensor[] MPSGraphControlFlowDependencyBlock (); + delegate MPSGraphTensor [] MPSGraphControlFlowDependencyBlock (); // typedef NSArray * _Nonnull (^MPSGraphIfThenElseBlock)(); - delegate MPSGraphTensor[] MPSGraphIfThenElseBlock (); + delegate MPSGraphTensor [] MPSGraphIfThenElseBlock (); // typedef MPSGraphTensor * _Nonnull (^MPSGraphWhileBeforeBlock)(NSArray * _Nonnull, NSMutableArray * _Nonnull); - delegate MPSGraphTensor MPSGraphWhileBeforeBlock (MPSGraphTensor[] inputTensors, NSMutableArray resultTensors); + delegate MPSGraphTensor MPSGraphWhileBeforeBlock (MPSGraphTensor [] inputTensors, NSMutableArray resultTensors); // typedef NSArray * _Nonnull (^MPSGraphWhileAfterBlock)(NSArray * _Nonnull); - delegate MPSGraphTensor[] MPSGraphWhileAfterBlock (MPSGraphTensor[] bodyBlockArguments); + delegate MPSGraphTensor [] MPSGraphWhileAfterBlock (MPSGraphTensor [] bodyBlockArguments); // typedef NSArray * _Nonnull (^MPSGraphForLoopBodyBlock)(MPSGraphTensor * _Nonnull, NSArray * _Nonnull); - delegate MPSGraphTensor[] MPSGraphForLoopBodyBlock (MPSGraphTensor index, MPSGraphTensor[] iterationArguments); + delegate MPSGraphTensor [] MPSGraphForLoopBodyBlock (MPSGraphTensor index, MPSGraphTensor [] iterationArguments); // @interface MPSGraphDepthwiseConvolution2DOpDescriptor : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphDepthwiseConvolution2DOpDescriptor : NSCopying - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphDepthwiseConvolution2DOpDescriptor : NSCopying { // @property (readwrite, nonatomic) NSUInteger strideInX; [Export ("strideInX")] nuint StrideInX { get; set; } @@ -622,24 +613,23 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphDepthwiseConvolution3DOpDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphDepthwiseConvolution3DOpDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphDepthwiseConvolution3DOpDescriptor : NSCopying { // @property (readwrite, copy, nonatomic) NSArray * _Nonnull strides; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("strides", ArgumentSemantic.Copy)] - NSNumber[] Strides { get; set; } + NSNumber [] Strides { get; set; } // @property (readwrite, copy, nonatomic) NSArray * _Nonnull dilationRates; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("dilationRates", ArgumentSemantic.Copy)] - NSNumber[] DilationRates { get; set; } + NSNumber [] DilationRates { get; set; } // @property (readwrite, copy, nonatomic) NSArray * _Nonnull paddingValues; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("paddingValues", ArgumentSemantic.Copy)] - NSNumber[] PaddingValues { get; set; } + NSNumber [] PaddingValues { get; set; } // @property (readwrite, nonatomic) MPSGraphPaddingStyle paddingStyle; [Export ("paddingStyle", ArgumentSemantic.Assign)] @@ -653,7 +643,7 @@ namespace MetalPerformanceShadersGraph [Static] [Export ("descriptorWithStrides:dilationRates:paddingValues:paddingStyle:")] [return: NullAllowed] - MPSGraphDepthwiseConvolution3DOpDescriptor Create ([BindAs (typeof (int[]))] NSNumber[] strides, [BindAs (typeof (int[]))] NSNumber[] dilationRates, [BindAs (typeof (int[]))] NSNumber[] paddingValues, MPSGraphPaddingStyle paddingStyle); + MPSGraphDepthwiseConvolution3DOpDescriptor Create ([BindAs (typeof (int []))] NSNumber [] strides, [BindAs (typeof (int []))] NSNumber [] dilationRates, [BindAs (typeof (int []))] NSNumber [] paddingValues, MPSGraphPaddingStyle paddingStyle); // +(instancetype _Nullable)descriptorWithPaddingStyle:(MPSGraphPaddingStyle)paddingStyle; [Static] @@ -663,66 +653,62 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphDepthwiseConvolutionOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphDepthwiseConvolutionOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphDepthwiseConvolutionOps { // -(MPSGraphTensor * _Nonnull)depthwiseConvolution2DWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights descriptor:(MPSGraphDepthwiseConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution2D(_:weights:descriptor:name:)"))); [Export ("depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:")] MPSGraphTensor DepthwiseConvolution2D (MPSGraphTensor source, MPSGraphTensor weights, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthwiseConvolution2DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShape:(MPSShape * _Nonnull)outputShape descriptor:(MPSGraphDepthwiseConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution2DDataGradient(_:weights:outputShape:descriptor:name:)"))); [Export ("depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:")] - MPSGraphTensor DepthwiseConvolution2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor DepthwiseConvolution2DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient sourceTensor:(MPSGraphTensor * _Nonnull)source outputShape:(MPSShape * _Nonnull)outputShape descriptor:(MPSGraphDepthwiseConvolution2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution2DWeightsGradient(_:source:outputShape:descriptor:name:)"))); [Export ("depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:")] - MPSGraphTensor DepthwiseConvolution2DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor DepthwiseConvolution2DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthwiseConvolution3DWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights descriptor:(MPSGraphDepthwiseConvolution3DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution3D(_:weights:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("depthwiseConvolution3DWithSourceTensor:weightsTensor:descriptor:name:")] MPSGraphTensor DepthwiseConvolution3D (MPSGraphTensor source, MPSGraphTensor weights, MPSGraphDepthwiseConvolution3DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthwiseConvolution3DDataGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient weightsTensor:(MPSGraphTensor * _Nonnull)weights outputShape:(MPSShape * _Nullable)outputShape descriptor:(MPSGraphDepthwiseConvolution3DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution3DDataGradient(_:weights:outputShape:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("depthwiseConvolution3DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:")] - MPSGraphTensor DepthwiseConvolution3DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphDepthwiseConvolution3DOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor DepthwiseConvolution3DDataGradient (MPSGraphTensor incomingGradient, MPSGraphTensor weights, [NullAllowed][BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphDepthwiseConvolution3DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthwiseConvolution3DWeightsGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradient sourceTensor:(MPSGraphTensor * _Nonnull)source outputShape:(MPSShape * _Nonnull)outputShape descriptor:(MPSGraphDepthwiseConvolution3DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("depthwiseConvolution3DWeightsGradient(_:source:outputShape:descriptor:name:)"))); [Export ("depthwiseConvolution3DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:")] - MPSGraphTensor DepthwiseConvolution3DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int[]))] NSNumber[] outputShape, MPSGraphDepthwiseConvolution3DOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor DepthwiseConvolution3DWeightsGradient (MPSGraphTensor incomingGradient, MPSGraphTensor source, [BindAs (typeof (int []))] NSNumber [] outputShape, MPSGraphDepthwiseConvolution3DOpDescriptor descriptor, [NullAllowed] string name); } // @interface GatherNDOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_GatherNDOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_GatherNDOps { // -(MPSGraphTensor * _Nonnull)gatherNDWithUpdatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor batchDimensions:(NSUInteger)batchDimensions name:(NSString * _Nullable)name; [Export ("gatherNDWithUpdatesTensor:indicesTensor:batchDimensions:name:")] MPSGraphTensor GatherND (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, nuint batchDimensions, [NullAllowed] string name); } // @interface GatherOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_GatherOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_GatherOps { // -(MPSGraphTensor * _Nonnull)gatherWithUpdatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor axis:(NSUInteger)axis batchDimensions:(NSUInteger)batchDimensions name:(NSString * _Nullable)name; [Export ("gatherWithUpdatesTensor:indicesTensor:axis:batchDimensions:name:")] MPSGraphTensor Gather (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, nuint axis, nuint batchDimensions, [NullAllowed] string name); } // @interface MPSGraphLossOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphLossOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphLossOps { // -(MPSGraphTensor * _Nonnull)softMaxCrossEntropyWithSourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor labelsTensor:(MPSGraphTensor * _Nonnull)labelsTensor axis:(NSInteger)axis reductionType:(MPSGraphLossReductionType)reductionType name:(NSString * _Nullable)name __attribute__((swift_name("softMaxCrossEntropy(_:labels:axis:reuctionType:name:)"))); [Export ("softMaxCrossEntropyWithSourceTensor:labelsTensor:axis:reductionType:name:")] MPSGraphTensor SoftMaxCrossEntropy (MPSGraphTensor source, MPSGraphTensor labels, nint axis, MPSGraphLossReductionType reductionType, [NullAllowed] string name); @@ -733,21 +719,19 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphMatrixMultiplicationOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphMatrixMultiplicationOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphMatrixMultiplicationOps { // -(MPSGraphTensor * _Nonnull)matrixMultiplicationWithPrimaryTensor:(MPSGraphTensor * _Nonnull)primaryTensor secondaryTensor:(MPSGraphTensor * _Nonnull)secondaryTensor name:(NSString * _Nullable)name __attribute__((swift_name("matrixMultiplication(primary:secondary:name:)"))); [Export ("matrixMultiplicationWithPrimaryTensor:secondaryTensor:name:")] MPSGraphTensor MatrixMultiplication (MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, [NullAllowed] string name); } // @interface MPSGraphCreateSparseOpDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphCreateSparseOpDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphCreateSparseOpDescriptor : NSCopying { // @property (readwrite, nonatomic) MPSGraphSparseStorageType sparseStorageType; [Export ("sparseStorageType", ArgumentSemantic.Assign)] MPSGraphSparseStorageType SparseStorageType { get; set; } @@ -765,29 +749,27 @@ namespace MetalPerformanceShadersGraph // @interface MPSGraphSparseOps (MPSGraph) [Category] - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphSparseOps - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphSparseOps { // -(MPSGraphTensor * _Nonnull)sparseTensorWithType:(MPSGraphSparseStorageType)sparseStorageType tensors:(NSArray * _Nonnull)inputTensorArray shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("sparseTensor(sparseTensorWithType:tensors:shape:dataType:name:)"))); [Export ("sparseTensorWithType:tensors:shape:dataType:name:")] - MPSGraphTensor Sparse (MPSGraphSparseStorageType sparseStorageType, MPSGraphTensor[] inputTensorArray, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType, [NullAllowed] string name); + MPSGraphTensor Sparse (MPSGraphSparseStorageType sparseStorageType, MPSGraphTensor [] inputTensorArray, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)sparseTensorWithDescriptor:(MPSGraphCreateSparseOpDescriptor * _Nonnull)sparseDescriptor tensors:(NSArray * _Nonnull)inputTensorArray shape:(MPSShape * _Nonnull)shape name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("sparseTensor(sparseTensorWithDescriptor:tensors:shape:name:)"))); [Export ("sparseTensorWithDescriptor:tensors:shape:name:")] - MPSGraphTensor Sparse (MPSGraphCreateSparseOpDescriptor sparseDescriptor, MPSGraphTensor[] inputTensorArray, [BindAs (typeof (int[]))] NSNumber[] shape, [NullAllowed] string name); + MPSGraphTensor Sparse (MPSGraphCreateSparseOpDescriptor sparseDescriptor, MPSGraphTensor [] inputTensorArray, [BindAs (typeof (int []))] NSNumber [] shape, [NullAllowed] string name); } // @interface MPSGraphVariableOp : MPSGraphOperation - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(MPSGraphOperation))] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (MPSGraphOperation))] [DisableDefaultCtor] - interface MPSGraphVariableOp - { + interface MPSGraphVariableOp { // @property (readonly, nonatomic) MPSShape * _Nonnull shape; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("shape")] - NSNumber[] Shape { get; } + NSNumber [] Shape { get; } // @property (readonly, nonatomic) MPSDataType dataType; [Export ("dataType")] @@ -795,22 +777,21 @@ namespace MetalPerformanceShadersGraph } // @interface MemoryOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MemoryOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MemoryOps { // -(MPSGraphTensor * _Nonnull)placeholderWithShape:(MPSShape * _Nullable)shape dataType:(MPSDataType)dataType name:(NSString * _Nullable)name __attribute__((swift_name("placeholder(shape:dataType:name:)"))); [Export ("placeholderWithShape:dataType:name:")] - MPSGraphTensor Placeholder ([NullAllowed] [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType, [NullAllowed] string name); + MPSGraphTensor Placeholder ([NullAllowed][BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)placeholderWithShape:(MPSShape * _Nullable)shape name:(NSString * _Nullable)name __attribute__((swift_name("placeholder(shape:name:)"))); [Export ("placeholderWithShape:name:")] - MPSGraphTensor Placeholder ([NullAllowed] [BindAs (typeof (int[]))] NSNumber[] shape, [NullAllowed] string name); + MPSGraphTensor Placeholder ([NullAllowed][BindAs (typeof (int []))] NSNumber [] shape, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)constantWithData:(NSData * _Nonnull)data shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType __attribute__((swift_name("constant(_:shape:dataType:)"))); [Export ("constantWithData:shape:dataType:")] - MPSGraphTensor Constant (NSData data, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType); + MPSGraphTensor Constant (NSData data, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType); // -(MPSGraphTensor * _Nonnull)constantWithScalar:(double)scalar dataType:(MPSDataType)dataType __attribute__((swift_name("constant(_:dataType:)"))); [Export ("constantWithScalar:dataType:")] @@ -818,11 +799,11 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)constantWithScalar:(double)scalar shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType __attribute__((swift_name("constant(_:shape:dataType:)"))); [Export ("constantWithScalar:shape:dataType:")] - MPSGraphTensor Constant (double scalar, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType); + MPSGraphTensor Constant (double scalar, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType); // -(MPSGraphTensor * _Nonnull)variableWithData:(NSData * _Nonnull)data shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType name:(NSString * _Nullable)name; [Export ("variableWithData:shape:dataType:name:")] - MPSGraphTensor Variable (NSData data, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType, [NullAllowed] string name); + MPSGraphTensor Variable (NSData data, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)readVariable:(MPSGraphTensor * _Nonnull)variable name:(NSString * _Nullable)name __attribute__((swift_name("read(_:name:)"))); [Export ("readVariable:name:")] @@ -834,22 +815,21 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphNormalizationOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphNormalizationOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphNormalizationOps { // -(MPSGraphTensor * _Nonnull)meanOfTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nonnull)axes name:(NSString * _Nullable)name; [Export ("meanOfTensor:axes:name:")] - MPSGraphTensor Mean (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor Mean (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)varianceOfTensor:(MPSGraphTensor * _Nonnull)tensor meanTensor:(MPSGraphTensor * _Nonnull)meanTensor axes:(NSArray * _Nonnull)axes name:(NSString * _Nullable)name; [Export ("varianceOfTensor:meanTensor:axes:name:")] - MPSGraphTensor Variance (MPSGraphTensor tensor, MPSGraphTensor meanTensor, [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor Variance (MPSGraphTensor tensor, MPSGraphTensor meanTensor, [BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)varianceOfTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nonnull)axes name:(NSString * _Nullable)name; [Export ("varianceOfTensor:axes:name:")] - MPSGraphTensor Variance (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor Variance (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)normalizationWithTensor:(MPSGraphTensor * _Nonnull)tensor meanTensor:(MPSGraphTensor * _Nonnull)mean varianceTensor:(MPSGraphTensor * _Nonnull)variance gammaTensor:(MPSGraphTensor * _Nullable)gamma betaTensor:(MPSGraphTensor * _Nullable)beta epsilon:(float)epsilon name:(NSString * _Nullable)name __attribute__((swift_name("normalize(_:mean:variance:gamma:beta:epsilon:name:)"))); [Export ("normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:")] @@ -857,23 +837,22 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)normalizationGammaGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor meanTensor:(MPSGraphTensor * _Nonnull)meanTensor varianceTensor:(MPSGraphTensor * _Nonnull)varianceTensor reductionAxes:(NSArray * _Nonnull)axes epsilon:(float)epsilon name:(NSString * _Nullable)name; [Export ("normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:")] - MPSGraphTensor NormalizationGammaGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor meanTensor, MPSGraphTensor varianceTensor, [BindAs (typeof (int[]))] NSNumber[] axes, float epsilon, [NullAllowed] string name); + MPSGraphTensor NormalizationGammaGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor meanTensor, MPSGraphTensor varianceTensor, [BindAs (typeof (int []))] NSNumber [] axes, float epsilon, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)normalizationBetaGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor reductionAxes:(NSArray * _Nonnull)axes name:(NSString * _Nullable)name; [Export ("normalizationBetaGradientWithIncomingGradientTensor:sourceTensor:reductionAxes:name:")] - MPSGraphTensor NormalizationBetaGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor NormalizationBetaGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, [BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)normalizationGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor meanTensor:(MPSGraphTensor * _Nonnull)meanTensor varianceTensor:(MPSGraphTensor * _Nonnull)varianceTensor gammaTensor:(MPSGraphTensor * _Nullable)gamma gammaGradientTensor:(MPSGraphTensor * _Nullable)gammaGradient betaGradientTensor:(MPSGraphTensor * _Nullable)betaGradient reductionAxes:(NSArray * _Nonnull)axes epsilon:(float)epsilon name:(NSString * _Nullable)name; [Export ("normalizationGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:gammaTensor:gammaGradientTensor:betaGradientTensor:reductionAxes:epsilon:name:")] - MPSGraphTensor NormalizationGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor meanTensor, MPSGraphTensor varianceTensor, [NullAllowed] MPSGraphTensor gamma, [NullAllowed] MPSGraphTensor gammaGradient, [NullAllowed] MPSGraphTensor betaGradient, [BindAs (typeof (int[]))] NSNumber[] axes, float epsilon, [NullAllowed] string name); + MPSGraphTensor NormalizationGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor meanTensor, MPSGraphTensor varianceTensor, [NullAllowed] MPSGraphTensor gamma, [NullAllowed] MPSGraphTensor gammaGradient, [NullAllowed] MPSGraphTensor betaGradient, [BindAs (typeof (int []))] NSNumber [] axes, float epsilon, [NullAllowed] string name); } // @interface MPSGraphOneHotOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphOneHotOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphOneHotOps { // -(MPSGraphTensor * _Nonnull)oneHotWithIndicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor depth:(NSUInteger)depth axis:(NSUInteger)axis dataType:(MPSDataType)dataType onValue:(double)onValue offValue:(double)offValue name:(NSString * _Nullable)name; [Export ("oneHotWithIndicesTensor:depth:axis:dataType:onValue:offValue:name:")] MPSGraphTensor OneHot (MPSGraphTensor indicesTensor, nuint depth, nuint axis, MPSDataType dataType, double onValue, double offValue, [NullAllowed] string name); @@ -900,11 +879,10 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphOptimizerOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphOptimizerOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphOptimizerOps { // -(MPSGraphTensor * _Nonnull)stochasticGradientDescentWithLearningRateTensor:(MPSGraphTensor * _Nonnull)learningRateTensor valuesTensor:(MPSGraphTensor * _Nonnull)valuesTensor gradientTensor:(MPSGraphTensor * _Nonnull)gradientTensor name:(NSString * _Nullable)name __attribute__((swift_name("stochasticGradientDescent(learningRate:values:gradient:name:)"))); [Export ("stochasticGradientDescentWithLearningRateTensor:valuesTensor:gradientTensor:name:")] MPSGraphTensor StochasticGradientDescent (MPSGraphTensor learningRate, MPSGraphTensor values, MPSGraphTensor gradient, [NullAllowed] string name); @@ -915,10 +893,9 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphPooling2DOpDescriptor : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphPooling2DOpDescriptor : NSCopying - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphPooling2DOpDescriptor : NSCopying { // @property (readwrite, nonatomic) NSUInteger kernelWidth; [Export ("kernelWidth")] nuint KernelWidth { get; set; } @@ -995,29 +972,28 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphPooling4DOpDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphPooling4DOpDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphPooling4DOpDescriptor : NSCopying { // @property (readwrite, copy, nonatomic) NSArray * _Nonnull kernelSizes; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("kernelSizes", ArgumentSemantic.Copy)] - NSNumber[] KernelSizes { get; set; } + NSNumber [] KernelSizes { get; set; } // @property (readwrite, copy, nonatomic) NSArray * _Nonnull strides; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("strides", ArgumentSemantic.Copy)] - NSNumber[] Strides { get; set; } + NSNumber [] Strides { get; set; } // @property (readwrite, copy, nonatomic) NSArray * _Nonnull dilationRates; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("dilationRates", ArgumentSemantic.Copy)] - NSNumber[] DilationRates { get; set; } + NSNumber [] DilationRates { get; set; } // @property (readwrite, copy, nonatomic) NSArray * _Nonnull paddingValues; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("paddingValues", ArgumentSemantic.Copy)] - NSNumber[] PaddingValues { get; set; } + NSNumber [] PaddingValues { get; set; } // @property (readwrite, nonatomic) MPSGraphPaddingStyle paddingStyle; [Export ("paddingStyle", ArgumentSemantic.Assign)] @@ -1035,21 +1011,20 @@ namespace MetalPerformanceShadersGraph [Static] [Export ("descriptorWithKernelSizes:strides:dilationRates:paddingValues:paddingStyle:")] [return: NullAllowed] - MPSGraphPooling4DOpDescriptor Create ([BindAs (typeof (int[]))] NSNumber[] kernelSizes, [BindAs (typeof (int[]))] NSNumber[] strides, [BindAs (typeof (int[]))] NSNumber[] dilationRates, [BindAs (typeof (int[]))] NSNumber[] paddingValues, MPSGraphPaddingStyle paddingStyle); + MPSGraphPooling4DOpDescriptor Create ([BindAs (typeof (int []))] NSNumber [] kernelSizes, [BindAs (typeof (int []))] NSNumber [] strides, [BindAs (typeof (int []))] NSNumber [] dilationRates, [BindAs (typeof (int []))] NSNumber [] paddingValues, MPSGraphPaddingStyle paddingStyle); // +(instancetype _Nullable)descriptorWithKernelSizes:(NSArray * _Nonnull)kernelSizes paddingStyle:(MPSGraphPaddingStyle)paddingStyle; [Static] [Export ("descriptorWithKernelSizes:paddingStyle:")] [return: NullAllowed] - MPSGraphPooling4DOpDescriptor Create ([BindAs (typeof (int[]))] NSNumber[] kernelSizes, MPSGraphPaddingStyle paddingStyle); + MPSGraphPooling4DOpDescriptor Create ([BindAs (typeof (int []))] NSNumber [] kernelSizes, MPSGraphPaddingStyle paddingStyle); } // @interface MPSGraphPoolingOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphPoolingOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphPoolingOps { // -(MPSGraphTensor * _Nonnull)maxPooling2DWithSourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling2DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name; [Export ("maxPooling2DWithSourceTensor:descriptor:name:")] MPSGraphTensor MaxPooling2D (MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, [NullAllowed] string name); @@ -1067,41 +1042,40 @@ namespace MetalPerformanceShadersGraph MPSGraphTensor AvgPooling2DGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)maxPooling4DWithSourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("maxPooling4D(_:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("maxPooling4DWithSourceTensor:descriptor:name:")] MPSGraphTensor MaxPooling4D (MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)maxPooling4DGradientWithGradientTensor:(MPSGraphTensor * _Nonnull)gradient sourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("maxPooling4DGradient(_:source:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("maxPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:")] MPSGraphTensor MaxPooling4DGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)avgPooling4DWithSourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("avgPooling4D(_:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("avgPooling4DWithSourceTensor:descriptor:name:")] MPSGraphTensor AvgPooling4D (MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)avgPooling4DGradientWithGradientTensor:(MPSGraphTensor * _Nonnull)gradient sourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("avgPooling4DGradient(_:source:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("avgPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:")] MPSGraphTensor AvgPooling4DGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)L2NormPooling4DWithSourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("L2NormPooling4D(_:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("L2NormPooling4DWithSourceTensor:descriptor:name:")] MPSGraphTensor L2NormPooling4D (MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)L2NormPooling4DGradientWithGradientTensor:(MPSGraphTensor * _Nonnull)gradient sourceTensor:(MPSGraphTensor * _Nonnull)source descriptor:(MPSGraphPooling4DOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name __attribute__((swift_name("L2NormPooling4DGradient(_:source:descriptor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("L2NormPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:")] MPSGraphTensor L2NormPooling4DGradient (MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, [NullAllowed] string name); } // @interface MPSGraphRandomOpDescriptor : NSObject - [TV (15,2), Mac (12,1), iOS (15,2), MacCatalyst (15,2)] - [BaseType (typeof(NSObject))] - interface MPSGraphRandomOpDescriptor : NSCopying - { + [TV (15, 2), Mac (12, 1), iOS (15, 2), MacCatalyst (15, 2)] + [BaseType (typeof (NSObject))] + interface MPSGraphRandomOpDescriptor : NSCopying { // @property (readwrite, nonatomic) MPSGraphRandomDistribution distribution; [Export ("distribution", ArgumentSemantic.Assign)] MPSGraphRandomDistribution Distribution { get; set; } @@ -1146,11 +1120,10 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphRandomOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphRandomOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphRandomOps { // -(MPSGraphTensor * _Nonnull)randomPhiloxStateTensorWithSeed:(NSUInteger)seed name:(NSString * _Nullable)name; [Export ("randomPhiloxStateTensorWithSeed:name:")] MPSGraphTensor RandomPhiloxState (nuint seed, [NullAllowed] string name); @@ -1161,7 +1134,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)randomTensorWithShape:(MPSShape * _Nonnull)shape descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name; [Export ("randomTensorWithShape:descriptor:name:")] - MPSGraphTensor Random ([BindAs (typeof (int[]))] NSNumber[] shape, MPSGraphRandomOpDescriptor descriptor, [NullAllowed] string name); + MPSGraphTensor Random ([BindAs (typeof (int []))] NSNumber [] shape, MPSGraphRandomOpDescriptor descriptor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)randomTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name; [Export ("randomTensorWithShapeTensor:descriptor:name:")] @@ -1169,7 +1142,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)randomTensorWithShape:(MPSShape * _Nonnull)shape descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor seed:(NSUInteger)seed name:(NSString * _Nullable)name; [Export ("randomTensorWithShape:descriptor:seed:name:")] - MPSGraphTensor Random ([BindAs (typeof (int[]))] NSNumber[] shape, MPSGraphRandomOpDescriptor descriptor, nuint seed, [NullAllowed] string name); + MPSGraphTensor Random ([BindAs (typeof (int []))] NSNumber [] shape, MPSGraphRandomOpDescriptor descriptor, nuint seed, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)randomTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor seed:(NSUInteger)seed name:(NSString * _Nullable)name; [Export ("randomTensorWithShapeTensor:descriptor:seed:name:")] @@ -1177,15 +1150,15 @@ namespace MetalPerformanceShadersGraph // -(NSArray * _Nonnull)randomTensorWithShape:(MPSShape * _Nonnull)shape descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor stateTensor:(MPSGraphTensor * _Nonnull)state name:(NSString * _Nullable)name; [Export ("randomTensorWithShape:descriptor:stateTensor:name:")] - MPSGraphTensor[] Random ([BindAs (typeof (int[]))] NSNumber[] shape, MPSGraphRandomOpDescriptor descriptor, MPSGraphTensor state, [NullAllowed] string name); + MPSGraphTensor [] Random ([BindAs (typeof (int []))] NSNumber [] shape, MPSGraphRandomOpDescriptor descriptor, MPSGraphTensor state, [NullAllowed] string name); // -(NSArray * _Nonnull)randomTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor descriptor:(MPSGraphRandomOpDescriptor * _Nonnull)descriptor stateTensor:(MPSGraphTensor * _Nonnull)state name:(NSString * _Nullable)name; [Export ("randomTensorWithShapeTensor:descriptor:stateTensor:name:")] - MPSGraphTensor[] Random (MPSGraphTensor shapeTensor, MPSGraphRandomOpDescriptor descriptor, MPSGraphTensor state, [NullAllowed] string name); + MPSGraphTensor [] Random (MPSGraphTensor shapeTensor, MPSGraphRandomOpDescriptor descriptor, MPSGraphTensor state, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)randomUniformTensorWithShape:(MPSShape * _Nonnull)shape name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShape:name:")] - MPSGraphTensor RandomUniform ([BindAs (typeof (int[]))] NSNumber[] shape, [NullAllowed] string name); + MPSGraphTensor RandomUniform ([BindAs (typeof (int []))] NSNumber [] shape, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)randomUniformTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShapeTensor:name:")] @@ -1193,7 +1166,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)randomUniformTensorWithShape:(MPSShape * _Nonnull)shape seed:(NSUInteger)seed name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShape:seed:name:")] - MPSGraphTensor RandomUniform ([BindAs (typeof (int[]))] NSNumber[] shape, nuint seed, [NullAllowed] string name); + MPSGraphTensor RandomUniform ([BindAs (typeof (int []))] NSNumber [] shape, nuint seed, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)randomUniformTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor seed:(NSUInteger)seed name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShapeTensor:seed:name:")] @@ -1201,11 +1174,11 @@ namespace MetalPerformanceShadersGraph // -(NSArray * _Nonnull)randomUniformTensorWithShape:(MPSShape * _Nonnull)shape stateTensor:(MPSGraphTensor * _Nonnull)state name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShape:stateTensor:name:")] - MPSGraphTensor[] RandomUniform ([BindAs (typeof (int[]))] NSNumber[] shape, MPSGraphTensor state, [NullAllowed] string name); + MPSGraphTensor [] RandomUniform ([BindAs (typeof (int []))] NSNumber [] shape, MPSGraphTensor state, [NullAllowed] string name); // -(NSArray * _Nonnull)randomUniformTensorWithShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor stateTensor:(MPSGraphTensor * _Nonnull)state name:(NSString * _Nullable)name; [Export ("randomUniformTensorWithShapeTensor:stateTensor:name:")] - MPSGraphTensor[] RandomUniform (MPSGraphTensor shapeTensor, MPSGraphTensor state, [NullAllowed] string name); + MPSGraphTensor [] RandomUniform (MPSGraphTensor shapeTensor, MPSGraphTensor state, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)dropoutTensor:(MPSGraphTensor * _Nonnull)tensor rate:(double)rate name:(NSString * _Nullable)name __attribute__((swift_name("dropout(_:rate:name:)"))); [Export ("dropoutTensor:rate:name:")] @@ -1217,18 +1190,17 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphReductionOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphReductionOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphReductionOps { // -(MPSGraphTensor * _Nonnull)reductionSumWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionSumWithTensor:axis:name:")] MPSGraphTensor ReductionSum (MPSGraphTensor tensor, nint axis, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionSumWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionSumWithTensor:axes:name:")] - MPSGraphTensor ReductionSum (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionSum (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionMaximumWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionMaximumWithTensor:axis:name:")] @@ -1236,7 +1208,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)reductionMaximumWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionMaximumWithTensor:axes:name:")] - MPSGraphTensor ReductionMaximum (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionMaximum (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionMinimumWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionMinimumWithTensor:axis:name:")] @@ -1244,7 +1216,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)reductionMinimumWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionMinimumWithTensor:axes:name:")] - MPSGraphTensor ReductionMinimum (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionMinimum (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionMaximumPropagateNaNWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionMaximumPropagateNaNWithTensor:axis:name:")] @@ -1252,7 +1224,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)reductionMaximumPropagateNaNWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionMaximumPropagateNaNWithTensor:axes:name:")] - MPSGraphTensor ReductionMaximumPropagateNaN (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionMaximumPropagateNaN (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionMinimumPropagateNaNWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionMinimumPropagateNaNWithTensor:axis:name:")] @@ -1260,7 +1232,7 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)reductionMinimumPropagateNaNWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionMinimumPropagateNaNWithTensor:axes:name:")] - MPSGraphTensor ReductionMinimumPropagateNaN (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionMinimumPropagateNaN (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionProductWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name; [Export ("reductionProductWithTensor:axis:name:")] @@ -1268,31 +1240,30 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)reductionProductWithTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nullable)axes name:(NSString * _Nullable)name; [Export ("reductionProductWithTensor:axes:name:")] - MPSGraphTensor ReductionProduct (MPSGraphTensor tensor, [NullAllowed] [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor ReductionProduct (MPSGraphTensor tensor, [NullAllowed][BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionArgMaximumWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(macCatalyst, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("reductionArgMaximumWithTensor:axis:name:")] MPSGraphTensor ReductionArgMaximum (MPSGraphTensor tensor, nint axis, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reductionArgMinimumWithTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(macCatalyst, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), MacCatalyst (15,0), Mac (12,0), iOS (15,0)] + [TV (15, 0), MacCatalyst (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("reductionArgMinimumWithTensor:axis:name:")] MPSGraphTensor ReductionArgMinimum (MPSGraphTensor tensor, nint axis, [NullAllowed] string name); } // @interface MPSGraphResizeOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphResizeOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphResizeOps { // -(MPSGraphTensor * _Nonnull)resizeTensor:(MPSGraphTensor * _Nonnull)imagesTensor size:(MPSShape * _Nonnull)size mode:(MPSGraphResizeMode)mode centerResult:(BOOL)centerResult alignCorners:(BOOL)alignCorners layout:(MPSGraphTensorNamedDataLayout)layout name:(NSString * _Nullable)name __attribute__((swift_name("resize(_:size:mode:centerResult:alignCorners:layout:name:)"))); [Export ("resizeTensor:size:mode:centerResult:alignCorners:layout:name:")] - MPSGraphTensor Resize (MPSGraphTensor imagesTensor, [BindAs (typeof (int[]))] NSNumber[] size, MPSGraphResizeMode mode, bool centerResult, bool alignCorners, MPSGraphTensorNamedDataLayout layout, [NullAllowed] string name); + MPSGraphTensor Resize (MPSGraphTensor imagesTensor, [BindAs (typeof (int []))] NSNumber [] size, MPSGraphResizeMode mode, bool centerResult, bool alignCorners, MPSGraphTensorNamedDataLayout layout, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)resizeTensor:(MPSGraphTensor * _Nonnull)imagesTensor sizeTensor:(MPSGraphTensor * _Nonnull)size mode:(MPSGraphResizeMode)mode centerResult:(BOOL)centerResult alignCorners:(BOOL)alignCorners layout:(MPSGraphTensorNamedDataLayout)layout name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("resize(_:sizeTensor:mode:centerResult:alignCorners:layout:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:")] MPSGraphTensor Resize (MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphResizeMode mode, bool centerResult, bool alignCorners, MPSGraphTensorNamedDataLayout layout, [NullAllowed] string name); @@ -1302,34 +1273,32 @@ namespace MetalPerformanceShadersGraph } // @interface ScatterNDOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_ScatterNDOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_ScatterNDOps { // -(MPSGraphTensor * _Nonnull)scatterNDWithUpdatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor shape:(MPSShape * _Nonnull)shape batchDimensions:(NSUInteger)batchDimensions mode:(MPSGraphScatterMode)mode name:(NSString * _Nullable)name; [Export ("scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:mode:name:")] - MPSGraphTensor ScatterND (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int[]))] NSNumber[] shape, nuint batchDimensions, MPSGraphScatterMode mode, [NullAllowed] string name); + MPSGraphTensor ScatterND (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int []))] NSNumber [] shape, nuint batchDimensions, MPSGraphScatterMode mode, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)scatterNDWithUpdatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor shape:(MPSShape * _Nonnull)shape batchDimensions:(NSUInteger)batchDimensions name:(NSString * _Nullable)name; [Export ("scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:name:")] - MPSGraphTensor ScatterND (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int[]))] NSNumber[] shape, nuint batchDimensions, [NullAllowed] string name); + MPSGraphTensor ScatterND (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int []))] NSNumber [] shape, nuint batchDimensions, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)scatterNDWithDataTensor:(MPSGraphTensor * _Nonnull)dataTensor updatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor batchDimensions:(NSUInteger)batchDimensions mode:(MPSGraphScatterMode)mode name:(NSString * _Nullable)name __attribute__((swift_name("scatterNDWithData(_:updates:indices:batchDimensions:mode:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("scatterNDWithDataTensor:updatesTensor:indicesTensor:batchDimensions:mode:name:")] MPSGraphTensor ScatterND (MPSGraphTensor dataTensor, MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, nuint batchDimensions, MPSGraphScatterMode mode, [NullAllowed] string name); } // @interface MPSGraphScatterOps (MPSGraph) [Category] - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphScatterOps - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphScatterOps { // -(MPSGraphTensor * _Nonnull)scatterWithUpdatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor shape:(MPSShape * _Nonnull)shape axis:(NSInteger)axis mode:(MPSGraphScatterMode)mode name:(NSString * _Nullable)name __attribute__((swift_name("scatter(_:indices:shape:axis:mode:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); [Export ("scatterWithUpdatesTensor:indicesTensor:shape:axis:mode:name:")] - MPSGraphTensor Scatter (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int[]))] NSNumber[] shape, nint axis, MPSGraphScatterMode mode, [NullAllowed] string name); + MPSGraphTensor Scatter (MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, [BindAs (typeof (int []))] NSNumber [] shape, nint axis, MPSGraphScatterMode mode, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)scatterWithDataTensor:(MPSGraphTensor * _Nonnull)dataTensor updatesTensor:(MPSGraphTensor * _Nonnull)updatesTensor indicesTensor:(MPSGraphTensor * _Nonnull)indicesTensor axis:(NSInteger)axis mode:(MPSGraphScatterMode)mode name:(NSString * _Nullable)name __attribute__((swift_name("scatterWithData(_:updates:indices:axis:mode:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); [Export ("scatterWithDataTensor:updatesTensor:indicesTensor:axis:mode:name:")] @@ -1337,33 +1306,32 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphStencilOpDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphStencilOpDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphStencilOpDescriptor : NSCopying { // @property (readwrite, nonatomic) MPSGraphReductionMode reductionMode; [Export ("reductionMode", ArgumentSemantic.Assign)] MPSGraphReductionMode ReductionMode { get; set; } // @property (readwrite, copy, nonatomic) MPSShape * _Nonnull offsets; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("offsets", ArgumentSemantic.Copy)] - NSNumber[] Offsets { get; set; } + NSNumber [] Offsets { get; set; } // @property (readwrite, copy, nonatomic) MPSShape * _Nonnull strides; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("strides", ArgumentSemantic.Copy)] - NSNumber[] Strides { get; set; } + NSNumber [] Strides { get; set; } // @property (readwrite, copy, nonatomic) MPSShape * _Nonnull dilationRates; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("dilationRates", ArgumentSemantic.Copy)] - NSNumber[] DilationRates { get; set; } + NSNumber [] DilationRates { get; set; } // @property (readwrite, copy, nonatomic) MPSShape * _Nonnull explicitPadding; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("explicitPadding", ArgumentSemantic.Copy)] - NSNumber[] ExplicitPadding { get; set; } + NSNumber [] ExplicitPadding { get; set; } // @property (readwrite, nonatomic) MPSGraphPaddingMode boundaryMode; [Export ("boundaryMode", ArgumentSemantic.Assign)] @@ -1381,19 +1349,19 @@ namespace MetalPerformanceShadersGraph [Static] [Export ("descriptorWithReductionMode:offsets:strides:dilationRates:explicitPadding:boundaryMode:paddingStyle:paddingConstant:")] [return: NullAllowed] - MPSGraphStencilOpDescriptor Create (MPSGraphReductionMode reductionMode, [BindAs (typeof (int[]))] NSNumber[] offsets, [BindAs (typeof (int[]))] NSNumber[] strides, [BindAs (typeof (int[]))] NSNumber[] dilationRates, [BindAs (typeof (int[]))] NSNumber[] explicitPadding, MPSGraphPaddingMode boundaryMode, MPSGraphPaddingStyle paddingStyle, float paddingConstant); + MPSGraphStencilOpDescriptor Create (MPSGraphReductionMode reductionMode, [BindAs (typeof (int []))] NSNumber [] offsets, [BindAs (typeof (int []))] NSNumber [] strides, [BindAs (typeof (int []))] NSNumber [] dilationRates, [BindAs (typeof (int []))] NSNumber [] explicitPadding, MPSGraphPaddingMode boundaryMode, MPSGraphPaddingStyle paddingStyle, float paddingConstant); // +(instancetype _Nullable)descriptorWithOffsets:(MPSShape * _Nonnull)offsets explicitPadding:(MPSShape * _Nonnull)explicitPadding; [Static] [Export ("descriptorWithOffsets:explicitPadding:")] [return: NullAllowed] - MPSGraphStencilOpDescriptor Create ([BindAs (typeof (int[]))] NSNumber[] offsets, [BindAs (typeof (int[]))] NSNumber[] explicitPadding); + MPSGraphStencilOpDescriptor Create ([BindAs (typeof (int []))] NSNumber [] offsets, [BindAs (typeof (int []))] NSNumber [] explicitPadding); // +(instancetype _Nullable)descriptorWithExplicitPadding:(MPSShape * _Nonnull)explicitPadding; [Static] [Export ("descriptorWithExplicitPadding:")] [return: NullAllowed] - MPSGraphStencilOpDescriptor Create ([BindAs (typeof (int[]))] NSNumber[] explicitPadding); + MPSGraphStencilOpDescriptor Create ([BindAs (typeof (int []))] NSNumber [] explicitPadding); // +(instancetype _Nullable)descriptorWithPaddingStyle:(MPSGraphPaddingStyle)paddingStyle; [Static] @@ -1403,28 +1371,26 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphStencilOps (MPSGraph) - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphStencilOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphStencilOps { // -(MPSGraphTensor * _Nonnull)stencilWithSourceTensor:(MPSGraphTensor * _Nonnull)source weightsTensor:(MPSGraphTensor * _Nonnull)weights descriptor:(MPSGraphStencilOpDescriptor * _Nonnull)descriptor name:(NSString * _Nullable)name; [Export ("stencilWithSourceTensor:weightsTensor:descriptor:name:")] MPSGraphTensor Stencil (MPSGraphTensor source, MPSGraphTensor weights, MPSGraphStencilOpDescriptor descriptor, [NullAllowed] string name); } // @interface MPSGraphTensorShapeOps (MPSGraph) - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphTensorShapeOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphTensorShapeOps { // -(MPSGraphTensor * _Nonnull)reshapeTensor:(MPSGraphTensor * _Nonnull)tensor withShape:(MPSShape * _Nonnull)shape name:(NSString * _Nullable)name __attribute__((swift_name("reshape(_:shape:name:)"))); [Export ("reshapeTensor:withShape:name:")] - MPSGraphTensor Reshape (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] shape, [NullAllowed] string name); + MPSGraphTensor Reshape (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] shape, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reshapeTensor:(MPSGraphTensor * _Nonnull)tensor withShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))) __attribute__((swift_name("reshape(_:shapeTensor:name:)"))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reshapeTensor:withShapeTensor:name:")] MPSGraphTensor Reshape (MPSGraphTensor tensor, MPSGraphTensor shapeTensor, [NullAllowed] string name); @@ -1438,19 +1404,19 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)sliceTensor:(MPSGraphTensor * _Nonnull)tensor starts:(NSArray * _Nonnull)starts ends:(NSArray * _Nonnull)ends strides:(NSArray * _Nonnull)strides name:(NSString * _Nullable)name; [Export ("sliceTensor:starts:ends:strides:name:")] - MPSGraphTensor Slice (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] starts, [BindAs (typeof (int[]))] NSNumber[] ends, [BindAs (typeof (int[]))] NSNumber[] strides, [NullAllowed] string name); + MPSGraphTensor Slice (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)sliceTensor:(MPSGraphTensor * _Nonnull)tensor starts:(NSArray * _Nonnull)starts ends:(NSArray * _Nonnull)ends strides:(NSArray * _Nonnull)strides startMask:(uint32_t)startMask endMask:(uint32_t)endMask squeezeMask:(uint32_t)squeezeMask name:(NSString * _Nullable)name; [Export ("sliceTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")] - MPSGraphTensor Slice (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] starts, [BindAs (typeof (int[]))] NSNumber[] ends, [BindAs (typeof (int[]))] NSNumber[] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name); + MPSGraphTensor Slice (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)sliceGradientTensor:(MPSGraphTensor * _Nonnull)inputGradientTensor fwdInShapeTensor:(MPSGraphTensor * _Nonnull)fwdInShapeTensor starts:(NSArray * _Nonnull)starts ends:(NSArray * _Nonnull)ends strides:(NSArray * _Nonnull)strides name:(NSString * _Nullable)name; [Export ("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:name:")] - MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int[]))] NSNumber[] starts, [BindAs (typeof (int[]))] NSNumber[] ends, [BindAs (typeof (int[]))] NSNumber[] strides, [NullAllowed] string name); + MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)sliceGradientTensor:(MPSGraphTensor * _Nonnull)inputGradientTensor fwdInShapeTensor:(MPSGraphTensor * _Nonnull)fwdInShapeTensor starts:(NSArray * _Nonnull)starts ends:(NSArray * _Nonnull)ends strides:(NSArray * _Nonnull)strides startMask:(uint32_t)startMask endMask:(uint32_t)endMask squeezeMask:(uint32_t)squeezeMask name:(NSString * _Nullable)name; [Export ("sliceGradientTensor:fwdInShapeTensor:starts:ends:strides:startMask:endMask:squeezeMask:name:")] - MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int[]))] NSNumber[] starts, [BindAs (typeof (int[]))] NSNumber[] ends, [BindAs (typeof (int[]))] NSNumber[] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name); + MPSGraphTensor SliceGradient (MPSGraphTensor inputGradientTensor, MPSGraphTensor fwdInShapeTensor, [BindAs (typeof (int []))] NSNumber [] starts, [BindAs (typeof (int []))] NSNumber [] ends, [BindAs (typeof (int []))] NSNumber [] strides, uint startMask, uint endMask, uint squeezeMask, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)concatTensor:(MPSGraphTensor * _Nonnull)tensor withTensor:(MPSGraphTensor * _Nonnull)tensor2 dimension:(NSInteger)dimensionIndex name:(NSString * _Nullable)name; [Export ("concatTensor:withTensor:dimension:name:")] @@ -1458,115 +1424,113 @@ namespace MetalPerformanceShadersGraph // -(MPSGraphTensor * _Nonnull)concatTensors:(NSArray * _Nonnull)tensors dimension:(NSInteger)dimensionIndex name:(NSString * _Nullable)name; [Export ("concatTensors:dimension:name:")] - MPSGraphTensor ConcatTensors (MPSGraphTensor[] tensors, nint dimensionIndex, [NullAllowed] string name); + MPSGraphTensor ConcatTensors (MPSGraphTensor [] tensors, nint dimensionIndex, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)concatTensors:(NSArray * _Nonnull)tensors dimension:(NSInteger)dimensionIndex interleave:(BOOL)interleave name:(NSString * _Nullable)name; [Export ("concatTensors:dimension:interleave:name:")] - MPSGraphTensor ConcatTensors (MPSGraphTensor[] tensors, nint dimensionIndex, bool interleave, [NullAllowed] string name); + MPSGraphTensor ConcatTensors (MPSGraphTensor [] tensors, nint dimensionIndex, bool interleave, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)tileTensor:(MPSGraphTensor * _Nonnull)tensor withMultiplier:(MPSShape * _Nonnull)multiplier name:(NSString * _Nullable)name; [Export ("tileTensor:withMultiplier:name:")] - MPSGraphTensor Tile (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] multiplier, [NullAllowed] string name); + MPSGraphTensor Tile (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] multiplier, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)tileGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor withMultiplier:(MPSShape * _Nonnull)multiplier name:(NSString * _Nullable)name; [Export ("tileGradientWithIncomingGradientTensor:sourceTensor:withMultiplier:name:")] - MPSGraphTensor TileGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, [BindAs (typeof (int[]))] NSNumber[] multiplier, [NullAllowed] string name); + MPSGraphTensor TileGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, [BindAs (typeof (int []))] NSNumber [] multiplier, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)padTensor:(MPSGraphTensor * _Nonnull)tensor withPaddingMode:(MPSGraphPaddingMode)paddingMode leftPadding:(MPSShape * _Nonnull)leftPadding rightPadding:(MPSShape * _Nonnull)rightPadding constantValue:(double)constantValue name:(NSString * _Nullable)name; [Export ("padTensor:withPaddingMode:leftPadding:rightPadding:constantValue:name:")] - MPSGraphTensor Pad (MPSGraphTensor tensor, MPSGraphPaddingMode paddingMode, [BindAs (typeof (int[]))] NSNumber[] leftPadding, [BindAs (typeof (int[]))] NSNumber[] rightPadding, double constantValue, [NullAllowed] string name); + MPSGraphTensor Pad (MPSGraphTensor tensor, MPSGraphPaddingMode paddingMode, [BindAs (typeof (int []))] NSNumber [] leftPadding, [BindAs (typeof (int []))] NSNumber [] rightPadding, double constantValue, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)padGradientWithIncomingGradientTensor:(MPSGraphTensor * _Nonnull)incomingGradientTensor sourceTensor:(MPSGraphTensor * _Nonnull)sourceTensor paddingMode:(MPSGraphPaddingMode)paddingMode leftPadding:(MPSShape * _Nonnull)leftPadding rightPadding:(MPSShape * _Nonnull)rightPadding name:(NSString * _Nullable)name; [Export ("padGradientWithIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:")] - MPSGraphTensor PadGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphPaddingMode paddingMode, [BindAs (typeof (int[]))] NSNumber[] leftPadding, [BindAs (typeof (int[]))] NSNumber[] rightPadding, [NullAllowed] string name); + MPSGraphTensor PadGradient (MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphPaddingMode paddingMode, [BindAs (typeof (int []))] NSNumber [] leftPadding, [BindAs (typeof (int []))] NSNumber [] rightPadding, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)spaceToDepth2DTensor:(MPSGraphTensor * _Nonnull)tensor widthAxisTensor:(MPSGraphTensor * _Nonnull)widthAxisTensor heightAxisTensor:(MPSGraphTensor * _Nonnull)heightAxisTensor depthAxisTensor:(MPSGraphTensor * _Nonnull)depthAxisTensor blockSize:(NSUInteger)blockSize usePixelShuffleOrder:(BOOL)usePixelShuffleOrder name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("spaceToDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:")] MPSGraphTensor SpaceToDepth2D (MPSGraphTensor tensor, MPSGraphTensor widthAxisTensor, MPSGraphTensor heightAxisTensor, MPSGraphTensor depthAxisTensor, nuint blockSize, bool usePixelShuffleOrder, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthToSpace2DTensor:(MPSGraphTensor * _Nonnull)tensor widthAxisTensor:(MPSGraphTensor * _Nonnull)widthAxisTensor heightAxisTensor:(MPSGraphTensor * _Nonnull)heightAxisTensor depthAxisTensor:(MPSGraphTensor * _Nonnull)depthAxisTensor blockSize:(NSUInteger)blockSize usePixelShuffleOrder:(BOOL)usePixelShuffleOrder name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("depthToSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:")] MPSGraphTensor DepthToSpace2D (MPSGraphTensor tensor, MPSGraphTensor widthAxisTensor, MPSGraphTensor heightAxisTensor, MPSGraphTensor depthAxisTensor, nuint blockSize, bool usePixelShuffleOrder, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)spaceToDepth2DTensor:(MPSGraphTensor * _Nonnull)tensor widthAxis:(NSUInteger)widthAxis heightAxis:(NSUInteger)heightAxis depthAxis:(NSUInteger)depthAxis blockSize:(NSUInteger)blockSize usePixelShuffleOrder:(BOOL)usePixelShuffleOrder name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:")] MPSGraphTensor SpaceToDepth2D (MPSGraphTensor tensor, nuint widthAxis, nuint heightAxis, nuint depthAxis, nuint blockSize, bool usePixelShuffleOrder, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)depthToSpace2DTensor:(MPSGraphTensor * _Nonnull)tensor widthAxis:(NSUInteger)widthAxis heightAxis:(NSUInteger)heightAxis depthAxis:(NSUInteger)depthAxis blockSize:(NSUInteger)blockSize usePixelShuffleOrder:(BOOL)usePixelShuffleOrder name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:")] MPSGraphTensor DepthToSpace2D (MPSGraphTensor tensor, nuint widthAxis, nuint heightAxis, nuint depthAxis, nuint blockSize, bool usePixelShuffleOrder, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reverseTensor:(MPSGraphTensor * _Nonnull)tensor axesTensor:(MPSGraphTensor * _Nonnull)axesTensor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reverseTensor:axesTensor:name:")] MPSGraphTensor Reverse (MPSGraphTensor tensor, MPSGraphTensor axesTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reverseTensor:(MPSGraphTensor * _Nonnull)tensor axes:(NSArray * _Nonnull)axes name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reverseTensor:axes:name:")] - MPSGraphTensor Reverse (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] axes, [NullAllowed] string name); + MPSGraphTensor Reverse (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] axes, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)reverseTensor:(MPSGraphTensor * _Nonnull)tensor name:(NSString * _Nullable)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reverseTensor:name:")] MPSGraphTensor Reverse (MPSGraphTensor tensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)flatten2DTensor:(MPSGraphTensor * _Nonnull)tensor axis:(NSInteger)axis name:(NSString * _Nullable)name __attribute__((swift_name("flatten2D(_:axis:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("flatten2DTensor:axis:name:")] MPSGraphTensor Flatten2D (MPSGraphTensor tensor, nint axis, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)flatten2DTensor:(MPSGraphTensor * _Nonnull)tensor axisTensor:(MPSGraphTensor * _Nonnull)axisTensor name:(NSString * _Nullable)name __attribute__((swift_name("flatten2D(_:axisTensor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("flatten2DTensor:axisTensor:name:")] MPSGraphTensor Flatten2D (MPSGraphTensor tensor, MPSGraphTensor axisTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)broadcastTensor:(MPSGraphTensor * _Nonnull)tensor toShape:(MPSShape * _Nonnull)shape name:(NSString * _Nullable)name __attribute__((swift_name("broadcast(_:shape:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("broadcastTensor:toShape:name:")] - MPSGraphTensor Broadcast (MPSGraphTensor tensor, [BindAs (typeof (int[]))] NSNumber[] shape, [NullAllowed] string name); + MPSGraphTensor Broadcast (MPSGraphTensor tensor, [BindAs (typeof (int []))] NSNumber [] shape, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)broadcastTensor:(MPSGraphTensor * _Nonnull)tensor toShapeTensor:(MPSGraphTensor * _Nonnull)shapeTensor name:(NSString * _Nullable)name __attribute__((swift_name("broadcast(_:shapeTensor:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("broadcastTensor:toShapeTensor:name:")] MPSGraphTensor Broadcast (MPSGraphTensor tensor, MPSGraphTensor shapeTensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)shapeOfTensor:(MPSGraphTensor * _Nonnull)tensor name:(NSString * _Nullable)name __attribute__((swift_name("shapeOf(_:name:)"))) __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("shapeOfTensor:name:")] MPSGraphTensor Shape (MPSGraphTensor tensor, [NullAllowed] string name); // -(MPSGraphTensor * _Nonnull)castTensor:(MPSGraphTensor * _Nonnull)tensor toType:(MPSDataType)type name:(NSString * _Nonnull)name __attribute__((availability(macos, introduced=12.0))) __attribute__((availability(ios, introduced=15.0))) __attribute__((availability(tvos, introduced=15.0))); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("castTensor:toType:name:")] MPSGraphTensor Cast (MPSGraphTensor tensor, MPSDataType type, string name); } // @interface MPSGraphTopKOps (MPSGraph) - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphTopKOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphTopKOps { // -(NSArray * _Nonnull)topKWithSourceTensor:(MPSGraphTensor * _Nonnull)source k:(NSUInteger)k name:(NSString * _Nullable)name __attribute__((swift_name("topK(_:k:name:)"))); [Export ("topKWithSourceTensor:k:name:")] - MPSGraphTensor[] TopK (MPSGraphTensor source, nuint k, [NullAllowed] string name); + MPSGraphTensor [] TopK (MPSGraphTensor source, nuint k, [NullAllowed] string name); // -(NSArray * _Nonnull)topKWithSourceTensor:(MPSGraphTensor * _Nonnull)source kTensor:(MPSGraphTensor * _Nonnull)kTensor name:(NSString * _Nullable)name __attribute__((swift_name("topK(_:kTensor:name:)"))); [Export ("topKWithSourceTensor:kTensor:name:")] - MPSGraphTensor[] TopK (MPSGraphTensor source, MPSGraphTensor kTensor, [NullAllowed] string name); + MPSGraphTensor [] TopK (MPSGraphTensor source, MPSGraphTensor kTensor, [NullAllowed] string name); } // @interface MPSGraphTopKGradientOps (MPSGraph) - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Category] - [BaseType (typeof(MPSGraph))] - interface MPSGraph_MPSGraphTopKGradientOps - { + [BaseType (typeof (MPSGraph))] + interface MPSGraph_MPSGraphTopKGradientOps { // -(MPSGraphTensor * _Nonnull)topKWithGradientTensor:(MPSGraphTensor * _Nonnull)gradient source:(MPSGraphTensor * _Nonnull)source k:(NSUInteger)k name:(NSString * _Nullable)name __attribute__((swift_name("topKGradient(_:input:k:name:)"))); [Export ("topKWithGradientTensor:source:k:name:")] MPSGraphTensor TopKGradient (MPSGraphTensor gradient, MPSGraphTensor source, nuint k, [NullAllowed] string name); @@ -1577,20 +1541,18 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphCompilationDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphCompilationDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphCompilationDescriptor : NSCopying { // -(void)disableTypeInference; [Export ("disableTypeInference")] void DisableTypeInference (); } // @interface MPSGraphDevice : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphDevice - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphDevice { // @property (readonly, nonatomic) MPSGraphDeviceType type; [Export ("type")] MPSGraphDeviceType Type { get; } @@ -1606,16 +1568,15 @@ namespace MetalPerformanceShadersGraph } // typedef void (^MPSGraphExecutableCompletionHandler)(NSArray * _Nonnull, NSError * _Nullable); - delegate void MPSGraphExecutableCompletionHandler (MPSGraphTensorData[] results, [NullAllowed] NSError error); + delegate void MPSGraphExecutableCompletionHandler (MPSGraphTensorData [] results, [NullAllowed] NSError error); // typedef void (^MPSGraphExecutableScheduledHandler)(NSArray * _Nonnull, NSError * _Nullable); - delegate void MPSGraphExecutableScheduledHandler (MPSGraphTensorData[] results, [NullAllowed] NSError error); + delegate void MPSGraphExecutableScheduledHandler (MPSGraphTensorData [] results, [NullAllowed] NSError error); // @interface MPSGraphExecutableExecutionDescriptor : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphExecutableExecutionDescriptor : NSCopying - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphExecutableExecutionDescriptor : NSCopying { // @property (readwrite, atomic) MPSGraphExecutableScheduledHandler _Nonnull scheduledHandler; [Export ("scheduledHandler", ArgumentSemantic.Assign)] MPSGraphExecutableScheduledHandler ScheduledHandler { get; set; } @@ -1630,37 +1591,36 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphExecutable : NSObject - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphExecutable - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphExecutable { // @property (readwrite, atomic) MPSGraphOptions options; [Export ("options", ArgumentSemantic.Assign)] MPSGraphOptions Options { get; set; } // @property (readonly, atomic) NSArray * _Nullable feedTensors; [NullAllowed, Export ("feedTensors")] - MPSGraphTensor[] FeedTensors { get; } + MPSGraphTensor [] FeedTensors { get; } // @property (readonly, atomic) NSArray * _Nullable targetTensors; [NullAllowed, Export ("targetTensors")] - MPSGraphTensor[] TargetTensors { get; } + MPSGraphTensor [] TargetTensors { get; } // -(void)specializeWithDevice:(MPSGraphDevice * _Nullable)device inputTypes:(NSArray * _Nonnull)inputTypes compilationDescriptor:(MPSGraphCompilationDescriptor * _Nullable)compilationDescriptor; [Export ("specializeWithDevice:inputTypes:compilationDescriptor:")] - void Specialize ([NullAllowed] MPSGraphDevice device, MPSGraphType[] inputTypes, [NullAllowed] MPSGraphCompilationDescriptor compilationDescriptor); + void Specialize ([NullAllowed] MPSGraphDevice device, MPSGraphType [] inputTypes, [NullAllowed] MPSGraphCompilationDescriptor compilationDescriptor); // -(NSArray * _Nonnull)runWithMTLCommandQueue:(id _Nonnull)commandQueue inputsArray:(NSArray * _Nonnull)inputsArray resultsArray:(NSArray * _Nullable)resultsArray executionDescriptor:(MPSGraphExecutableExecutionDescriptor * _Nullable)executionDescriptor __attribute__((swift_name("run(with:inputs:results:executionDescriptor:)"))); [Export ("runWithMTLCommandQueue:inputsArray:resultsArray:executionDescriptor:")] - MPSGraphTensorData[] Run (IMTLCommandQueue commandQueue, MPSGraphTensorData[] inputsArray, [NullAllowed] MPSGraphTensorData[] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); + MPSGraphTensorData [] Run (IMTLCommandQueue commandQueue, MPSGraphTensorData [] inputsArray, [NullAllowed] MPSGraphTensorData [] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); // -(NSArray * _Nonnull)runAsyncWithMTLCommandQueue:(id _Nonnull)commandQueue inputsArray:(NSArray * _Nonnull)inputsArray resultsArray:(NSArray * _Nullable)resultsArray executionDescriptor:(MPSGraphExecutableExecutionDescriptor * _Nullable)executionDescriptor __attribute__((swift_name("runAsync(with:inputs:results:executionDescriptor:)"))); [Export ("runAsyncWithMTLCommandQueue:inputsArray:resultsArray:executionDescriptor:")] - MPSGraphTensorData[] RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorData[] inputsArray, [NullAllowed] MPSGraphTensorData[] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); + MPSGraphTensorData [] RunAsync (IMTLCommandQueue commandQueue, MPSGraphTensorData [] inputsArray, [NullAllowed] MPSGraphTensorData [] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); // -(NSArray * _Nonnull)encodeToCommandBuffer:(MPSCommandBuffer * _Nonnull)commandBuffer inputsArray:(NSArray * _Nonnull)inputsArray resultsArray:(NSArray * _Nullable)resultsArray executionDescriptor:(MPSGraphExecutableExecutionDescriptor * _Nullable)executionDescriptor __attribute__((swift_name("encode(to:inputs:results:executionDescriptor:)"))); [Export ("encodeToCommandBuffer:inputsArray:resultsArray:executionDescriptor:")] - MPSGraphTensorData[] Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorData[] inputsArray, [NullAllowed] MPSGraphTensorData[] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); + MPSGraphTensorData [] Encode (MPSCommandBuffer commandBuffer, MPSGraphTensorData [] inputsArray, [NullAllowed] MPSGraphTensorData [] resultsArray, [NullAllowed] MPSGraphExecutableExecutionDescriptor executionDescriptor); } // typedef void (^MPSGraphCompletionHandler)(MPSGraphTensorDataDictionary * _Nonnull, NSError * _Nullable); @@ -1670,10 +1630,9 @@ namespace MetalPerformanceShadersGraph delegate void MPSGraphScheduledHandler (MPSGraphTensorDataDictionary resultsDictionary, [NullAllowed] NSError error); // @interface MPSGraphExecutionDescriptor : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphExecutionDescriptor - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphExecutionDescriptor { // @property (readwrite, atomic) MPSGraphScheduledHandler _Nonnull scheduledHandler; [Export ("scheduledHandler", ArgumentSemantic.Assign)] MPSGraphScheduledHandler ScheduledHandler { get; set; } @@ -1688,24 +1647,22 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphType: NSObject - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphType : NSCopying - { + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphType : NSCopying { } // MPSGraphType was introduced in iOS 15 (macOS 12) and became the base class for // MPSGraphShapedType which existed in iOS 14. // @interface MPSGraphShapedType : MPSGraphType - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(MPSGraphType))] - interface MPSGraphShapedType - { + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (MPSGraphType))] + interface MPSGraphShapedType { // @property (readwrite, copy, atomic) MPSShape * _Nullable shape; [NullAllowed] - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("shape", ArgumentSemantic.Copy)] - NSNumber[] Shape { get; set; } + NSNumber [] Shape { get; set; } // @property (readwrite, atomic) MPSDataType dataType; [Export ("dataType", ArgumentSemantic.Assign)] @@ -1713,7 +1670,7 @@ namespace MetalPerformanceShadersGraph // -(instancetype _Nonnull)initWithShape:(MPSShape * _Nullable)shape dataType:(MPSDataType)dataType; [Export ("initWithShape:dataType:")] - IntPtr Constructor ([NullAllowed] [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType); + IntPtr Constructor ([NullAllowed][BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType); // -(BOOL)isEqualTo:(MPSGraphShapedType * _Nullable)object; [Export ("isEqualTo:")] @@ -1723,22 +1680,21 @@ namespace MetalPerformanceShadersGraph // MPSGraphOperation.h // @interface MPSGraphOperation : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPSGraphOperation : NSCopying - { + interface MPSGraphOperation : NSCopying { // @property (readonly, nonatomic) NSArray * _Nonnull inputTensors; [Export ("inputTensors")] - MPSGraphTensor[] InputTensors { get; } + MPSGraphTensor [] InputTensors { get; } // @property (readonly, nonatomic) NSArray * _Nonnull outputTensors; [Export ("outputTensors")] - MPSGraphTensor[] OutputTensors { get; } + MPSGraphTensor [] OutputTensors { get; } // @property (readonly, nonatomic) NSArray * _Nonnull controlDependencies; [Export ("controlDependencies")] - MPSGraphOperation[] ControlDependencies { get; } + MPSGraphOperation [] ControlDependencies { get; } // @property (readonly, nonatomic) MPSGraph * _Nonnull graph; [Export ("graph")] @@ -1752,16 +1708,15 @@ namespace MetalPerformanceShadersGraph // MPSGraphTensor.h // @interface MPSGraphTensor : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MPSGraphTensor : NSCopying - { + interface MPSGraphTensor : NSCopying { // @property (readonly, copy, nonatomic) MPSShape * _Nullable shape; [NullAllowed] - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("shape", ArgumentSemantic.Copy)] - NSNumber[] Shape { get; } + NSNumber [] Shape { get; } // @property (readonly, nonatomic) MPSDataType dataType; [Export ("dataType")] @@ -1773,14 +1728,13 @@ namespace MetalPerformanceShadersGraph } // @interface MPSGraphTensorData : NSObject - [iOS (14,0), TV (14,0), Mac (11,0), MacCatalyst (14,0)] - [BaseType (typeof(NSObject))] - interface MPSGraphTensorData - { + [iOS (14, 0), TV (14, 0), Mac (11, 0), MacCatalyst (14, 0)] + [BaseType (typeof (NSObject))] + interface MPSGraphTensorData { // @property (readonly, copy, nonatomic) MPSShape * _Nonnull shape; - [BindAs (typeof (int[]))] + [BindAs (typeof (int []))] [Export ("shape", ArgumentSemantic.Copy)] - NSNumber[] Shape { get; } + NSNumber [] Shape { get; } // @property (readonly, nonatomic) MPSDataType dataType; [Export ("dataType")] @@ -1792,11 +1746,11 @@ namespace MetalPerformanceShadersGraph // -(instancetype _Nonnull)initWithDevice:(MPSGraphDevice * _Nonnull)device data:(NSData * _Nonnull)data shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType; [Export ("initWithDevice:data:shape:dataType:")] - IntPtr Constructor (MPSGraphDevice device, NSData data, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType); + IntPtr Constructor (MPSGraphDevice device, NSData data, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType); // -(instancetype _Nonnull)initWithMTLBuffer:(id _Nonnull)buffer shape:(MPSShape * _Nonnull)shape dataType:(MPSDataType)dataType __attribute__((swift_name("init(_:shape:dataType:)"))); [Export ("initWithMTLBuffer:shape:dataType:")] - IntPtr Constructor (IMTLBuffer buffer, [BindAs (typeof (int[]))] NSNumber[] shape, MPSDataType dataType); + IntPtr Constructor (IMTLBuffer buffer, [BindAs (typeof (int []))] NSNumber [] shape, MPSDataType dataType); // -(instancetype _Nonnull)initWithMPSMatrix:(MPSMatrix * _Nonnull)matrix __attribute__((swift_name("init(_:)"))); [Export ("initWithMPSMatrix:")] diff --git a/src/metrickit.cs b/src/metrickit.cs index 54b3ce8084..f616da7a14 100644 --- a/src/metrickit.cs +++ b/src/metrickit.cs @@ -22,38 +22,38 @@ namespace MetricKit { interface NSUnitDuration : NSUnit { } interface NSUnitInformationStorage : NSUnit { } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXMetric : NSSecureCoding { [Export ("JSONRepresentation")] NSData JsonRepresentation { get; } [Internal] - [Deprecated (PlatformName.iOS, 14,0)] + [Deprecated (PlatformName.iOS, 14, 0)] [Export ("DictionaryRepresentation")] NSDictionary _DictionaryRepresentation13 { get; } [Internal] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("dictionaryRepresentation")] NSDictionary _DictionaryRepresentation14 { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric), Name = "MXCPUMetric")] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric), Name = "MXCPUMetric")] interface MXCpuMetric { [Export ("cumulativeCPUTime", ArgumentSemantic.Strong)] NSMeasurement CumulativeCpuTime { get; } - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("cumulativeCPUInstructions", ArgumentSemantic.Strong)] NSMeasurement CumulativeCpuInstructions { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric), Name = "MXGPUMetric")] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric), Name = "MXGPUMetric")] interface MXGpuMetric { [Export ("cumulativeGPUTime", ArgumentSemantic.Strong)] NSMeasurement CumulativeGpuTime { get; } @@ -61,8 +61,8 @@ namespace MetricKit { // NSUnit is added as a parent to ensure that the intermediate tmp dll can be compiled // since at this stage the compiler does not know about the inheritance of NSDimension. - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(NSDimension))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (NSDimension))] [DisableDefaultCtor] interface MXUnitSignalBars : NSUnit { @@ -77,8 +77,8 @@ namespace MetricKit { // NSUnit is added as a parent to ensure that the intermediate tmp dll can be compiled // since at this stage the compiler does not know about the inheritance of NSDimension. - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(NSDimension))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (NSDimension))] [DisableDefaultCtor] interface MXUnitAveragePixelLuminance : NSUnit { @@ -91,8 +91,8 @@ namespace MetricKit { MXUnitAveragePixelLuminance Apl { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXHistogramBucket : NSSecureCoding where UnitType : NSUnit { [Export ("bucketStart", ArgumentSemantic.Strong)] @@ -105,8 +105,8 @@ namespace MetricKit { nuint BucketCount { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXHistogram : NSSecureCoding where UnitType : NSUnit { [Export ("totalBucketCount")] @@ -116,15 +116,15 @@ namespace MetricKit { NSEnumerator> BucketEnumerator { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXCellularConditionMetric { [Export ("histogrammedCellularConditionTime", ArgumentSemantic.Strong)] MXHistogram HistogrammedCellularConditionTime { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXMetaData : NSSecureCoding { [Export ("regionFormat", ArgumentSemantic.Strong)] string RegionFormat { get; } @@ -143,28 +143,28 @@ namespace MetricKit { [NoMac] [Internal] - [Deprecated (PlatformName.iOS, 14,0)] + [Deprecated (PlatformName.iOS, 14, 0)] [Export ("DictionaryRepresentation")] NSDictionary _DictionaryRepresentation13 { get; } - [iOS (14,0)] - [MacCatalyst (14,0)] - [Export ("dictionaryRepresentation")] + [iOS (14, 0)] + [MacCatalyst (14, 0)] + [Export ("dictionaryRepresentation")] #if MONOMAC NSDictionary DictionaryRepresentation { get; } #else - [Internal] - NSDictionary _DictionaryRepresentation14 { get; } + [Internal] + NSDictionary _DictionaryRepresentation14 { get; } #endif - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("platformArchitecture", ArgumentSemantic.Strong)] string PlatformArchitecture { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXAppRunTimeMetric { [Export ("cumulativeForegroundTime", ArgumentSemantic.Strong)] NSMeasurement CumulativeForegroundTime { get; } @@ -179,8 +179,8 @@ namespace MetricKit { NSMeasurement CumulativeBackgroundLocationTime { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXLocationActivityMetric { [Export ("cumulativeBestAccuracyTime", ArgumentSemantic.Strong)] NSMeasurement CumulativeBestAccuracyTime { get; } @@ -201,8 +201,8 @@ namespace MetricKit { NSMeasurement CumulativeThreeKilometersAccuracyTime { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXNetworkTransferMetric { [Export ("cumulativeWifiUpload", ArgumentSemantic.Strong)] NSMeasurement CumulativeWifiUpload { get; } @@ -217,8 +217,8 @@ namespace MetricKit { NSMeasurement CumulativeCellularDownload { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXAppLaunchMetric { [Export ("histogrammedTimeToFirstDraw", ArgumentSemantic.Strong)] MXHistogram HistogrammedTimeToFirstDraw { get; } @@ -226,31 +226,31 @@ namespace MetricKit { [Export ("histogrammedApplicationResumeTime", ArgumentSemantic.Strong)] MXHistogram HistogrammedApplicationResumeTime { get; } - [NoWatch, NoTV, NoMac, iOS (15,2), MacCatalyst (15,2)] + [NoWatch, NoTV, NoMac, iOS (15, 2), MacCatalyst (15, 2)] [Export ("histogrammedOptimizedTimeToFirstDraw", ArgumentSemantic.Strong)] MXHistogram HistogrammedOptimizedTimeToFirstDraw { get; } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("histogrammedExtendedLaunch", ArgumentSemantic.Strong)] MXHistogram HistogrammedExtendedLaunch { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXAppResponsivenessMetric { [Export ("histogrammedApplicationHangTime", ArgumentSemantic.Strong)] MXHistogram HistogrammedApplicationHangTime { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXDiskIOMetric { [Export ("cumulativeLogicalWrites", ArgumentSemantic.Strong)] NSMeasurement CumulativeLogicalWrites { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXAverage : NSSecureCoding where UnitType : NSUnit { @@ -264,8 +264,8 @@ namespace MetricKit { double StandardDeviation { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXMemoryMetric { [Export ("peakMemoryUsage", ArgumentSemantic.Strong)] NSMeasurement PeakMemoryUsage { get; } @@ -274,15 +274,15 @@ namespace MetricKit { MXAverage AverageSuspendedMemory { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXDisplayMetric { [NullAllowed, Export ("averagePixelLuminance", ArgumentSemantic.Strong)] MXAverage AveragePixelLuminance { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXSignpostIntervalData : NSSecureCoding { [Export ("histogrammedSignpostDuration", ArgumentSemantic.Strong)] MXHistogram HistogrammedSignpostDuration { get; } @@ -297,13 +297,13 @@ namespace MetricKit { NSMeasurement CumulativeLogicalWrites { get; } [NullAllowed] - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("cumulativeHitchTimeRatio", ArgumentSemantic.Strong)] NSMeasurement CumulativeHitchTimeRatio { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(MXMetric))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (MXMetric))] interface MXSignpostMetric { [Export ("signpostName", ArgumentSemantic.Strong)] string SignpostName { get; } @@ -318,8 +318,8 @@ namespace MetricKit { nuint TotalCount { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, NoMac, iOS (13, 0)] + [BaseType (typeof (NSObject))] interface MXMetricPayload : NSSecureCoding { [Export ("latestApplicationVersion", ArgumentSemantic.Strong)] string LatestApplicationVersion { get; } @@ -367,7 +367,7 @@ namespace MetricKit { MXDisplayMetric DisplayMetrics { get; } [NullAllowed, Export ("signpostMetrics", ArgumentSemantic.Strong)] - MXSignpostMetric[] SignpostMetrics { get; } + MXSignpostMetric [] SignpostMetrics { get; } [NullAllowed, Export ("metaData", ArgumentSemantic.Strong)] MXMetaData MetaData { get; } @@ -376,36 +376,36 @@ namespace MetricKit { NSData JsonRepresentation { get; } [Internal] - [Deprecated (PlatformName.iOS, 14,0)] + [Deprecated (PlatformName.iOS, 14, 0)] [Export ("DictionaryRepresentation")] NSDictionary _DictionaryRepresentation13 { get; } [Internal] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("dictionaryRepresentation")] NSDictionary _DictionaryRepresentation14 { get; } - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("animationMetrics", ArgumentSemantic.Strong)] MXAnimationMetric AnimationMetrics { get; } - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("applicationExitMetrics", ArgumentSemantic.Strong)] MXAppExitMetric ApplicationExitMetrics { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXMetricManager { [NoMac] [Export ("pastPayloads", ArgumentSemantic.Strong)] - MXMetricPayload[] PastPayloads { get; } + MXMetricPayload [] PastPayloads { get; } [Static] [Export ("sharedManager", ArgumentSemantic.Strong)] @@ -417,22 +417,22 @@ namespace MetricKit { [Export ("removeSubscriber:")] void Remove (IMXMetricManagerSubscriber subscriber); - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("pastDiagnosticPayloads", ArgumentSemantic.Strong)] - MXDiagnosticPayload[] PastDiagnosticPayloads { get; } + MXDiagnosticPayload [] PastDiagnosticPayloads { get; } [Static] [Internal] [Export ("makeLogHandleWithCategory:")] IntPtr /* os_log_t */ _MakeLogHandle (NSString category); - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Static] [Export ("extendLaunchMeasurementForTaskID:error:")] bool ExtendLaunchMeasurement (string taskId, [NullAllowed] out NSError error); - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Static] [Export ("finishExtendedLaunchMeasurementForTaskID:error:")] bool FinishExtendedLaunchMeasurement (string taskId, [NullAllowed] out NSError error); @@ -440,7 +440,7 @@ namespace MetricKit { interface IMXMetricManagerSubscriber { } - [NoWatch, NoTV, Mac (12,0), iOS (13,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (13, 0)] [Protocol] interface MXMetricManagerSubscriber { #if !NET @@ -448,16 +448,16 @@ namespace MetricKit { #endif [NoMac] [Export ("didReceiveMetricPayloads:")] - void DidReceiveMetricPayloads (MXMetricPayload[] payloads); + void DidReceiveMetricPayloads (MXMetricPayload [] payloads); - [iOS (14,0)] + [iOS (14, 0)] [Export ("didReceiveDiagnosticPayloads:")] - void DidReceiveDiagnosticPayloads (MXDiagnosticPayload[] payloads); + void DidReceiveDiagnosticPayloads (MXDiagnosticPayload [] payloads); } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXMetric))] [DisableDefaultCtor] interface MXAnimationMetric { @@ -467,8 +467,8 @@ namespace MetricKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXMetric))] [DisableDefaultCtor] interface MXAppExitMetric { @@ -481,8 +481,8 @@ namespace MetricKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXBackgroundExitData : NSSecureCoding { @@ -519,8 +519,8 @@ namespace MetricKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXForegroundExitData : NSSecureCoding { @@ -544,9 +544,9 @@ namespace MetricKit { nuint CumulativeAppWatchdogExitCount { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXCallStackTree : NSSecureCoding { @@ -555,9 +555,9 @@ namespace MetricKit { NSData JsonRepresentation { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXDiagnostic), Name = "MXCPUExceptionDiagnostic")] [DisableDefaultCtor] interface MXCpuExceptionDiagnostic { @@ -572,9 +572,9 @@ namespace MetricKit { NSMeasurement TotalSampledTime { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXDiagnostic))] [DisableDefaultCtor] interface MXCrashDiagnostic { @@ -604,9 +604,9 @@ namespace MetricKit { NSNumber Signal { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXDiagnostic : NSSecureCoding { @@ -625,11 +625,10 @@ namespace MetricKit { } // @interface MXAppLaunchDiagnostic : MXDiagnostic - [NoMac, iOS (16,0), Mac (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), Mac (16, 0), NoWatch, NoTV] [BaseType (typeof (MXDiagnostic))] [DisableDefaultCtor] - interface MXAppLaunchDiagnostic - { + interface MXAppLaunchDiagnostic { [Export ("callStackTree", ArgumentSemantic.Strong)] MXCallStackTree CallStackTree { get; } @@ -637,28 +636,28 @@ namespace MetricKit { NSMeasurement LaunchDuration { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MXDiagnosticPayload : NSSecureCoding { [NullAllowed, Export ("cpuExceptionDiagnostics", ArgumentSemantic.Strong)] - MXCpuExceptionDiagnostic[] CpuExceptionDiagnostics { get; } + MXCpuExceptionDiagnostic [] CpuExceptionDiagnostics { get; } [NullAllowed, Export ("diskWriteExceptionDiagnostics", ArgumentSemantic.Strong)] - MXDiskWriteExceptionDiagnostic[] DiskWriteExceptionDiagnostics { get; } + MXDiskWriteExceptionDiagnostic [] DiskWriteExceptionDiagnostics { get; } [NullAllowed, Export ("hangDiagnostics", ArgumentSemantic.Strong)] - MXHangDiagnostic[] HangDiagnostics { get; } + MXHangDiagnostic [] HangDiagnostics { get; } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [NullAllowed, Export ("appLaunchDiagnostics", ArgumentSemantic.Strong)] - MXAppLaunchDiagnostic[] AppLaunchDiagnostics { get; } + MXAppLaunchDiagnostic [] AppLaunchDiagnostics { get; } [NullAllowed, Export ("crashDiagnostics", ArgumentSemantic.Strong)] - MXCrashDiagnostic[] CrashDiagnostics { get; } + MXCrashDiagnostic [] CrashDiagnostics { get; } [Export ("timeStampBegin", ArgumentSemantic.Strong)] NSDate TimeStampBegin { get; } @@ -673,9 +672,9 @@ namespace MetricKit { NSDictionary DictionaryRepresentation { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXDiagnostic))] [DisableDefaultCtor] interface MXDiskWriteExceptionDiagnostic { @@ -687,9 +686,9 @@ namespace MetricKit { NSMeasurement TotalWritesCaused { get; } } - [NoWatch, NoTV, Mac (12,0)] - [iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (12, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (MXDiagnostic))] [DisableDefaultCtor] interface MXHangDiagnostic { diff --git a/src/mlcompute.cs b/src/mlcompute.cs index 1f70e478d9..5e0429b71e 100644 --- a/src/mlcompute.cs +++ b/src/mlcompute.cs @@ -8,9 +8,11 @@ using ObjCRuntime; namespace MLCompute { // compilation helper for async custom types - interface MLCExecutionResult {} + interface MLCExecutionResult { } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCActivationType { None = 0, @@ -32,14 +34,20 @@ namespace MLCompute { TanhShrink = 16, Threshold = 17, Gelu = 18, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] HardSwish = 19, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] Clamp = 20, // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCArithmeticOperation { Add = 0, @@ -68,18 +76,28 @@ namespace MLCompute { Exp2 = 23, Log = 24, Log2 = 25, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] MultiplyNoNaN = 26, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] DivideNoNaN = 27, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] Min = 28, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] Max = 29, // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCConvolutionType { Standard = 0, @@ -87,35 +105,41 @@ namespace MLCompute { Depthwise = 2, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCDataType { Invalid = 0, Float32 = 1, - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] Float16 = 3, Boolean = 4, Int64 = 5, Inot32 = 7, - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] Int8 = 8, - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] UInt8 = 9, // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCDeviceType /* int32_t */ { Cpu = 0, Gpu = 1, Any = 2, - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] - Ane = 3, // Apple neural engine - // Count, // must be last, not available in swift + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + Ane = 3, // Apple neural engine + // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [Flags] enum MLCExecutionOptions : ulong { @@ -124,11 +148,13 @@ namespace MLCompute { Synchronous = 0x2, Profiling = 0x4, ForwardForInference = 0x8, - [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Mac (12, 0), MacCatalyst (15, 0)] PerLayerProfiling = 0x10, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [Flags] enum MLCGraphCompilationOptions : ulong { @@ -139,7 +165,9 @@ namespace MLCompute { ComputeAllGradients = 0x8, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCLossType { MeanAbsoluteError = 0, @@ -154,14 +182,18 @@ namespace MLCompute { // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCLstmResultMode : ulong /* uint64_t */ { Output = 0, OutputAndStates = 1, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCPaddingPolicy { Same = 0, @@ -169,26 +201,31 @@ namespace MLCompute { UsePaddingSize = 2, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] - enum MLCPaddingType { + enum MLCPaddingType { Zero = 0, Reflect = 1, Symmetric = 2, Constant = 3, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] - enum MLCPoolingType - { + enum MLCPoolingType { Max = 1, Average = 2, L2Norm = 3, // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCRandomInitializerType { Invalid = 0, @@ -198,7 +235,9 @@ namespace MLCompute { // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCReductionType { None = 0, @@ -208,16 +247,24 @@ namespace MLCompute { Min = 4, ArgMax = 5, ArgMin = 6, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] L1Norm = 7, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] Any = 8, - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] All = 9, // Count, // must be last, not available in swift } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCRegularizationType { None = 0, @@ -225,21 +272,25 @@ namespace MLCompute { L2 = 2, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] enum MLCSampleMode { Nearest = 0, Linear = 1, } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] - enum MLCSoftmaxOperation { + enum MLCSoftmaxOperation { Softmax = 0, LogSoftmax = 1, } - [iOS (15,0), TV (15,0), Mac (12,0), NoWatch, MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Mac (12, 0), NoWatch, MacCatalyst (15, 0)] public enum MLCGradientClippingType { Value = 0, Norm = 1, @@ -247,7 +298,9 @@ namespace MLCompute { } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -286,7 +339,9 @@ namespace MLCompute { MLCActivationDescriptor Create (MLCActivationType activationType, float a, float b, float c); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -305,12 +360,14 @@ namespace MLCompute { [Export ("supportsDataType:onDevice:")] bool SupportsDataType (MLCDataType dataType, MLCDeviceType device); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("deviceType")] MLCDeviceType DeviceType { get; } } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -427,18 +484,24 @@ namespace MLCompute { [Export ("geluLayer")] MLCActivationLayer GeluLayer { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Static] [Export ("hardSwishLayer")] MLCActivationLayer CreateHardSwishLayer (); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Static] [Export ("clampLayerWithMinValue:maxValue:")] MLCActivationLayer CreateClampLayer (float minValue, float maxValue); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -465,20 +528,22 @@ namespace MLCompute { [Export ("regularizationType")] MLCRegularizationType RegularizationType { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("gradientClippingType")] MLCGradientClippingType GradientClippingType { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("maximumClippingNorm")] float MaximumClippingNorm { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("customGlobalNorm")] float CustomGlobalNorm { get; } } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -513,25 +578,27 @@ namespace MLCompute { [Export ("descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:")] MLCOptimizerDescriptor Create (float learningRate, float gradientRescale, bool appliesGradientClipping, float gradientClipMax, float gradientClipMin, MLCRegularizationType regularizationType, float regularizationScale); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale:")] MLCOptimizerDescriptor Create (float learningRate, float gradientRescale, bool appliesGradientClipping, MLCGradientClippingType gradientClippingType, float gradientClipMax, float gradientClipMin, float maximumClippingNorm, float customGlobalNorm, MLCRegularizationType regularizationType, float regularizationScale); - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("gradientClippingType")] MLCGradientClippingType GradientClippingType { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("maximumClippingNorm")] float MaximumClippingNorm { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("customGlobalNorm")] float CustomGlobalNorm { get; } } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCOptimizer))] [DisableDefaultCtor] @@ -549,7 +616,7 @@ namespace MLCompute { [Export ("timeStep")] nuint TimeStep { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("usesAMSGrad")] bool UsesAmsGrad { get; } @@ -561,13 +628,15 @@ namespace MLCompute { [Export ("optimizerWithDescriptor:beta1:beta2:epsilon:timeStep:")] MLCAdamOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float beta1, float beta2, float epsilon, nuint timeStep); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:")] MLCAdamOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float beta1, float beta2, float epsilon, bool usesAmsGrad, nuint timeStep); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -577,7 +646,7 @@ namespace MLCompute { MLCDeviceType Type { get; } [Export ("gpuDevices")] - IMTLDevice[] GpuDevices { get; } + IMTLDevice [] GpuDevices { get; } [Static] [Export ("cpuDevice")] @@ -596,26 +665,29 @@ namespace MLCompute { [Static] [Export ("deviceWithGPUDevices:")] [return: NullAllowed] - MLCDevice GetDevice (IMTLDevice[] gpus); + MLCDevice GetDevice (IMTLDevice [] gpus); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("aneDevice")] [return: NullAllowed] MLCDevice GetAneDevice (); - [iOS (14,2)][TV (14,2)] + [iOS (14, 2)] + [TV (14, 2)] [Static] [Export ("deviceWithType:selectsMultipleComputeDevices:")] [return: NullAllowed] MLCDevice GetDevice (MLCDeviceType type, bool selectsMultipleComputeDevices); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("actualDeviceType")] MLCDeviceType ActualDeviceType { get; } } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -637,7 +709,7 @@ namespace MLCompute { MLCDevice Device { get; } [Export ("optimizerData", ArgumentSemantic.Copy)] - MLCTensorData[] OptimizerData { + MLCTensorData [] OptimizerData { get; #if !NET [NotImplemented] @@ -646,7 +718,7 @@ namespace MLCompute { } [Export ("optimizerDeviceData", ArgumentSemantic.Copy)] - MLCTensorOptimizerDeviceData[] OptimizerDeviceData { get; } + MLCTensorOptimizerDeviceData [] OptimizerDeviceData { get; } [Static] [Export ("tensorWithDescriptor:")] @@ -662,19 +734,19 @@ namespace MLCompute { [Static] [Export ("tensorWithShape:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape); [Static] [Export ("tensorWithShape:randomInitializerType:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCRandomInitializerType randomInitializerType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCRandomInitializerType randomInitializerType); [Static] [Export ("tensorWithShape:dataType:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCDataType dataType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCDataType dataType); [Static] [Export ("tensorWithShape:data:dataType:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCTensorData data, MLCDataType dataType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCTensorData data, MLCDataType dataType); [Static] [Export ("tensorWithWidth:height:featureChannelCount:batchSize:")] @@ -711,11 +783,11 @@ namespace MLCompute { [Static] [Export ("tensorWithSequenceLengths:sortedSequences:featureChannelCount:batchSize:randomInitializerType:")] [return: NullAllowed] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] sequenceLengths, bool sortedSequences, nuint featureChannelCount, nuint batchSize, MLCRandomInitializerType randomInitializerType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] sequenceLengths, bool sortedSequences, nuint featureChannelCount, nuint batchSize, MLCRandomInitializerType randomInitializerType); [Static] [Export ("tensorWithShape:fillWithData:dataType:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, NSNumber fillData, MLCDataType dataType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape, NSNumber fillData, MLCDataType dataType); [Static] [Export ("tensorWithDescriptor:fillWithData:")] @@ -724,7 +796,7 @@ namespace MLCompute { [Static] [Export ("tensorWithSequenceLengths:sortedSequences:featureChannelCount:batchSize:data:")] [return: NullAllowed] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] sequenceLengths, bool sortedSequences, nuint featureChannelCount, nuint batchSize, [NullAllowed] MLCTensorData data); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] sequenceLengths, bool sortedSequences, nuint featureChannelCount, nuint batchSize, [NullAllowed] MLCTensorData data); [Export ("hasValidNumerics")] bool HasValidNumerics { get; } @@ -742,35 +814,37 @@ namespace MLCompute { bool BindAndWrite (MLCTensorData data, MLCDevice device); [Export ("bindOptimizerData:deviceData:")] - bool BindOptimizer (MLCTensorData[] data, [NullAllowed] MLCTensorOptimizerDeviceData[] deviceData); + bool BindOptimizer (MLCTensorData [] data, [NullAllowed] MLCTensorOptimizerDeviceData [] deviceData); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("tensorByQuantizingToType:scale:bias:")] [return: NullAllowed] MLCTensor CreateByQuantizing (MLCDataType type, float scale, nint bias); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("tensorByDequantizingToType:scale:bias:")] [return: NullAllowed] MLCTensor CreateByDequantizing (MLCDataType type, MLCTensor scale, MLCTensor bias); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("tensorByQuantizingToType:scale:bias:axis:")] [return: NullAllowed] MLCTensor CreateByQuantizing (MLCDataType type, MLCTensor scale, MLCTensor bias, nint axis); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("tensorByDequantizingToType:scale:bias:axis:")] [return: NullAllowed] MLCTensor CreateByDequantizing (MLCDataType type, MLCTensor scale, MLCTensor bias, nint axis); [Static] - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("tensorWithShape:randomInitializerType:dataType:")] - MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCRandomInitializerType randomInitializerType, MLCDataType dataType); + MLCTensor Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCRandomInitializerType randomInitializerType, MLCDataType dataType); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -790,13 +864,17 @@ namespace MLCompute { [Export ("dataWithImmutableBytesNoCopy:length:")] MLCTensorData CreateFromImmutableBytesNoCopy (IntPtr bytes, nuint length); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Static] [Export ("dataWithBytesNoCopy:length:deallocator:")] MLCTensorData CreateFromBytesNoCopy (IntPtr bytes, nuint length, Action deallocator); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -809,28 +887,28 @@ namespace MLCompute { nuint DimensionCount { get; } [Export ("shape", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] Shape { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] Shape { get; } [Export ("stride", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] Stride { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] Stride { get; } [Export ("tensorAllocationSizeInBytes")] nuint TensorAllocationSizeInBytes { get; } [NullAllowed] [Export ("sequenceLengths", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]?` - NSNumber[] SequenceLengths { get; } + [BindAs (typeof (nint []))] // swift `[Int]?` + NSNumber [] SequenceLengths { get; } [Export ("sortedSequences")] bool SortedSequences { get; } [NullAllowed] [Export ("batchSizePerSequenceStep", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]?` - NSNumber[] BatchSizePerSequenceStep { get; } + [BindAs (typeof (nint []))] // swift `[Int]?` + NSNumber [] BatchSizePerSequenceStep { get; } [Static] [Export ("maxTensorDimensions")] @@ -839,12 +917,12 @@ namespace MLCompute { [Static] [Export ("descriptorWithShape:dataType:")] [return: NullAllowed] - MLCTensorDescriptor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCDataType dataType); + MLCTensorDescriptor Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCDataType dataType); [Static] [Export ("descriptorWithShape:sequenceLengths:sortedSequences:dataType:")] [return: NullAllowed] - MLCTensorDescriptor Create ([BindAs (typeof (nint[]))]NSNumber[] shape, [BindAs (typeof (nint[]))] NSNumber[] sequenceLengths, bool sortedSequences, MLCDataType dataType); + MLCTensorDescriptor Create ([BindAs (typeof (nint []))] NSNumber [] shape, [BindAs (typeof (nint []))] NSNumber [] sequenceLengths, bool sortedSequences, MLCDataType dataType); [Static] [Export ("descriptorWithWidth:height:featureChannelCount:batchSize:")] @@ -872,7 +950,9 @@ namespace MLCompute { MLCTensorDescriptor CreateConvolutionBiases (nuint featureChannelCount, MLCDataType dataType); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -890,10 +970,12 @@ namespace MLCompute { [Static] [Export ("parameterWithTensor:optimizerData:")] - MLCTensorParameter Create (MLCTensor tensor, [NullAllowed] MLCTensorData[] optimizerData); + MLCTensorParameter Create (MLCTensor tensor, [NullAllowed] MLCTensorData [] optimizerData); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -907,7 +989,9 @@ namespace MLCompute { MLCArithmeticLayer Create (MLCArithmeticOperation operation); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -951,7 +1035,9 @@ namespace MLCompute { MLCBatchNormalizationLayer Create (nuint featureChannelCount, MLCTensor mean, MLCTensor variance, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon, float momentum); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -969,7 +1055,9 @@ namespace MLCompute { MLCConcatenationLayer Create (nuint dimension); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1022,7 +1110,7 @@ namespace MLCompute { [Static] [Export ("descriptorWithType:kernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor Create (MLCConvolutionType convolutionType, [BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor Create (MLCConvolutionType convolutionType, [BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("descriptorWithKernelWidth:kernelHeight:inputFeatureChannelCount:outputFeatureChannelCount:")] @@ -1030,11 +1118,11 @@ namespace MLCompute { [Static] [Export ("descriptorWithKernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:strides:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor Create ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor Create ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("descriptorWithKernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor Create ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor Create ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("convolutionTransposeDescriptorWithKernelWidth:kernelHeight:inputFeatureChannelCount:outputFeatureChannelCount:")] @@ -1042,11 +1130,11 @@ namespace MLCompute { [Static] [Export ("convolutionTransposeDescriptorWithKernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:strides:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor CreateConvolutionTranspose ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor CreateConvolutionTranspose ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("convolutionTransposeDescriptorWithKernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor CreateConvolutionTranspose ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor CreateConvolutionTranspose ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint outputFeatureChannelCount, nuint groupCount, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("depthwiseConvolutionDescriptorWithKernelWidth:kernelHeight:inputFeatureChannelCount:channelMultiplier:")] @@ -1054,14 +1142,16 @@ namespace MLCompute { [Static] [Export ("depthwiseConvolutionDescriptorWithKernelSizes:inputFeatureChannelCount:channelMultiplier:strides:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor CreateDepthwiseConvolution ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint channelMultiplier, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor CreateDepthwiseConvolution ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint channelMultiplier, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("depthwiseConvolutionDescriptorWithKernelSizes:inputFeatureChannelCount:channelMultiplier:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCConvolutionDescriptor CreateDepthwiseConvolution ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, nuint inputFeatureChannelCount, nuint channelMultiplier, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCConvolutionDescriptor CreateDepthwiseConvolution ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, nuint inputFeatureChannelCount, nuint channelMultiplier, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1088,7 +1178,9 @@ namespace MLCompute { MLCConvolutionLayer Create (MLCTensor weights, [NullAllowed] MLCTensor biases, MLCConvolutionDescriptor descriptor); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1105,7 +1197,9 @@ namespace MLCompute { MLCDropoutLayer Create (float rate, nuint seed); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1148,7 +1242,9 @@ namespace MLCompute { MLCEmbeddingDescriptor Create ([BindAs (typeof (nint))] NSNumber embeddingCount, [BindAs (typeof (nint))] NSNumber embeddingDimension, [BindAs (typeof (nint?))] NSNumber paddingIndex, [BindAs (typeof (float?))] NSNumber maximumNorm, [BindAs (typeof (float?))] NSNumber pNorm, bool scalesGradientByFrequency); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1168,7 +1264,9 @@ namespace MLCompute { MLCEmbeddingLayer Create (MLCEmbeddingDescriptor descriptor, MLCTensor weights); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1195,7 +1293,9 @@ namespace MLCompute { MLCFullyConnectedLayer Create (MLCTensor weights, [NullAllowed] MLCTensor biases, MLCConvolutionDescriptor descriptor); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1209,7 +1309,9 @@ namespace MLCompute { MLCGramMatrixLayer Create (float scale); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1242,7 +1344,9 @@ namespace MLCompute { MLCGroupNormalizationLayer Create (nuint featureChannelCount, nuint groupCount, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1269,11 +1373,15 @@ namespace MLCompute { [Export ("momentum")] float Momentum { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [NullAllowed, Export ("mean", ArgumentSemantic.Retain)] MLCTensor Mean { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [NullAllowed, Export ("variance", ArgumentSemantic.Retain)] MLCTensor Variance { get; } @@ -1287,22 +1395,26 @@ namespace MLCompute { [return: NullAllowed] MLCInstanceNormalizationLayer Create (nuint featureChannelCount, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon, float momentum); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Static] [Export ("layerWithFeatureChannelCount:mean:variance:beta:gamma:varianceEpsilon:momentum:")] [return: NullAllowed] MLCInstanceNormalizationLayer Create (nuint featureChannelCount, MLCTensor mean, MLCTensor variance, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon, float momentum); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCLayerNormalizationLayer { [Export ("normalizedShape", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] NormalizedShape { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] NormalizedShape { get; } [NullAllowed, Export ("beta", ArgumentSemantic.Retain)] MLCTensor Beta { get; } @@ -1322,10 +1434,12 @@ namespace MLCompute { [Static] [Export ("layerWithNormalizedShape:beta:gamma:varianceEpsilon:")] [return: NullAllowed] - MLCLayerNormalizationLayer Create ([BindAs (typeof (nint[]))] NSNumber[] normalizedShape, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon); + MLCLayerNormalizationLayer Create ([BindAs (typeof (nint []))] NSNumber [] normalizedShape, [NullAllowed] MLCTensor beta, [NullAllowed] MLCTensor gamma, float varianceEpsilon); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1369,7 +1483,9 @@ namespace MLCompute { MLCLossDescriptor Create (MLCLossType lossType, MLCReductionType reductionType, float weight, float labelSmoothing, nuint classCount, float epsilon, float delta); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1462,7 +1578,9 @@ namespace MLCompute { MLCLossLayer CreateCosineDistanceLoss (MLCReductionType reductionType, [NullAllowed] MLCTensor weights); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject), Name = "MLCLSTMDescriptor")] [DisableDefaultCtor] @@ -1516,7 +1634,9 @@ namespace MLCompute { MLCLstmDescriptor Create (nuint inputSize, nuint hiddenSize, nuint layerCount, bool usesBiases, bool batchFirst, bool isBidirectional, bool returnsSequences, float dropout, MLCLstmResultMode resultMode); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer), Name = "MLCLSTMLayer")] [DisableDefaultCtor] @@ -1526,52 +1646,54 @@ namespace MLCompute { MLCLstmDescriptor Descriptor { get; } [Export ("gateActivations", ArgumentSemantic.Copy)] - MLCActivationDescriptor[] GateActivations { get; } + MLCActivationDescriptor [] GateActivations { get; } [Export ("outputResultActivation", ArgumentSemantic.Copy)] MLCActivationDescriptor OutputResultActivation { get; } [Export ("inputWeights", ArgumentSemantic.Retain)] - MLCTensor[] InputWeights { get; } + MLCTensor [] InputWeights { get; } [Export ("hiddenWeights", ArgumentSemantic.Retain)] - MLCTensor[] HiddenWeights { get; } + MLCTensor [] HiddenWeights { get; } [NullAllowed, Export ("peepholeWeights", ArgumentSemantic.Retain)] - MLCTensor[] PeepholeWeights { get; } + MLCTensor [] PeepholeWeights { get; } [NullAllowed, Export ("biases", ArgumentSemantic.Retain)] - MLCTensor[] Biases { get; } + MLCTensor [] Biases { get; } [Export ("inputWeightsParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] InputWeightsParameters { get; } + MLCTensorParameter [] InputWeightsParameters { get; } [Export ("hiddenWeightsParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] HiddenWeightsParameters { get; } + MLCTensorParameter [] HiddenWeightsParameters { get; } [NullAllowed, Export ("peepholeWeightsParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] PeepholeWeightsParameters { get; } + MLCTensorParameter [] PeepholeWeightsParameters { get; } [NullAllowed, Export ("biasesParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] BiasesParameters { get; } + MLCTensorParameter [] BiasesParameters { get; } [Static] [Export ("layerWithDescriptor:inputWeights:hiddenWeights:biases:")] [return: NullAllowed] - MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor[] inputWeights, MLCTensor[] hiddenWeights, [NullAllowed] MLCTensor[] biases); + MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor [] inputWeights, MLCTensor [] hiddenWeights, [NullAllowed] MLCTensor [] biases); [Static] [Export ("layerWithDescriptor:inputWeights:hiddenWeights:peepholeWeights:biases:")] [return: NullAllowed] - MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor[] inputWeights, MLCTensor[] hiddenWeights, [NullAllowed] MLCTensor[] peepholeWeights, [NullAllowed] MLCTensor[] biases); + MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor [] inputWeights, MLCTensor [] hiddenWeights, [NullAllowed] MLCTensor [] peepholeWeights, [NullAllowed] MLCTensor [] biases); [Static] [Export ("layerWithDescriptor:inputWeights:hiddenWeights:peepholeWeights:biases:gateActivations:outputResultActivation:")] [return: NullAllowed] - MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor[] inputWeights, MLCTensor[] hiddenWeights, [NullAllowed] MLCTensor[] peepholeWeights, [NullAllowed] MLCTensor[] biases, MLCActivationDescriptor[] gateActivations, MLCActivationDescriptor outputResultActivation); + MLCLstmLayer Create (MLCLstmDescriptor descriptor, MLCTensor [] inputWeights, MLCTensor [] hiddenWeights, [NullAllowed] MLCTensor [] peepholeWeights, [NullAllowed] MLCTensor [] biases, MLCActivationDescriptor [] gateActivations, MLCActivationDescriptor outputResultActivation); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1596,7 +1718,9 @@ namespace MLCompute { MLCMatMulDescriptor Create (); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1611,7 +1735,9 @@ namespace MLCompute { MLCMatMulLayer Create (MLCMatMulDescriptor descriptor); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1651,7 +1777,9 @@ namespace MLCompute { MLCMultiheadAttentionDescriptor Create (nuint modelDimension, nuint headCount); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1661,27 +1789,29 @@ namespace MLCompute { MLCMultiheadAttentionDescriptor Descriptor { get; } [Export ("weights", ArgumentSemantic.Retain)] - MLCTensor[] Weights { get; } + MLCTensor [] Weights { get; } [NullAllowed, Export ("biases", ArgumentSemantic.Retain)] - MLCTensor[] Biases { get; } + MLCTensor [] Biases { get; } [NullAllowed, Export ("attentionBiases", ArgumentSemantic.Retain)] - MLCTensor[] AttentionBiases { get; } + MLCTensor [] AttentionBiases { get; } [Export ("weightsParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] WeightsParameters { get; } + MLCTensorParameter [] WeightsParameters { get; } [NullAllowed, Export ("biasesParameters", ArgumentSemantic.Retain)] - MLCTensorParameter[] BiasesParameters { get; } + MLCTensorParameter [] BiasesParameters { get; } [Static] [Export ("layerWithDescriptor:weights:biases:attentionBiases:")] [return: NullAllowed] - MLCMultiheadAttentionLayer Create (MLCMultiheadAttentionDescriptor descriptor, MLCTensor[] weights, [NullAllowed] MLCTensor[] biases, [NullAllowed] MLCTensor[] attentionBiases); + MLCMultiheadAttentionLayer Create (MLCMultiheadAttentionDescriptor descriptor, MLCTensor [] weights, [NullAllowed] MLCTensor [] biases, [NullAllowed] MLCTensor [] attentionBiases); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1707,22 +1837,24 @@ namespace MLCompute { [Static] [Export ("layerWithReflectionPadding:")] - MLCPaddingLayer CreateReflectionPadding ([BindAs (typeof (nuint[]))] NSNumber[] padding); + MLCPaddingLayer CreateReflectionPadding ([BindAs (typeof (nuint []))] NSNumber [] padding); [Static] [Export ("layerWithSymmetricPadding:")] - MLCPaddingLayer CreateSymmetricPadding ([BindAs (typeof (nuint[]))] NSNumber[] padding); + MLCPaddingLayer CreateSymmetricPadding ([BindAs (typeof (nuint []))] NSNumber [] padding); [Static] [Export ("layerWithZeroPadding:")] - MLCPaddingLayer CreateZeroPadding ([BindAs (typeof (nuint[]))] NSNumber[] padding); + MLCPaddingLayer CreateZeroPadding ([BindAs (typeof (nuint []))] NSNumber [] padding); [Static] [Export ("layerWithConstantPadding:constantValue:")] - MLCPaddingLayer CreateConstantPadding ([BindAs (typeof (nuint[]))] NSNumber[] padding, float constantValue); + MLCPaddingLayer CreateConstantPadding ([BindAs (typeof (nuint []))] NSNumber [] padding, float constantValue); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1767,30 +1899,32 @@ namespace MLCompute { [Static] [Export ("maxPoolingDescriptorWithKernelSizes:strides:paddingPolicy:paddingSizes:")] - MLCPoolingDescriptor CreateMaxPooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCPoolingDescriptor CreateMaxPooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("maxPoolingDescriptorWithKernelSizes:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCPoolingDescriptor CreateMaxPooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCPoolingDescriptor CreateMaxPooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("averagePoolingDescriptorWithKernelSizes:strides:paddingPolicy:paddingSizes:countIncludesPadding:")] - MLCPoolingDescriptor CreateAveragePooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes, bool countIncludesPadding); + MLCPoolingDescriptor CreateAveragePooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes, bool countIncludesPadding); [Static] [Export ("averagePoolingDescriptorWithKernelSizes:strides:dilationRates:paddingPolicy:paddingSizes:countIncludesPadding:")] - MLCPoolingDescriptor CreateAveragePooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes, bool countIncludesPadding); + MLCPoolingDescriptor CreateAveragePooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes, bool countIncludesPadding); [Static] [Export ("l2NormPoolingDescriptorWithKernelSizes:strides:paddingPolicy:paddingSizes:")] - MLCPoolingDescriptor CreateL2NormPooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCPoolingDescriptor CreateL2NormPooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); [Static] [Export ("l2NormPoolingDescriptorWithKernelSizes:strides:dilationRates:paddingPolicy:paddingSizes:")] - MLCPoolingDescriptor CreateL2NormPooling ([BindAs (typeof (nuint[]))] NSNumber[] kernelSizes, [BindAs (typeof (nuint[]))] NSNumber[] strides, [BindAs (typeof (nuint[]))] NSNumber[] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint[]))] [NullAllowed] NSNumber[] paddingSizes); + MLCPoolingDescriptor CreateL2NormPooling ([BindAs (typeof (nuint []))] NSNumber [] kernelSizes, [BindAs (typeof (nuint []))] NSNumber [] strides, [BindAs (typeof (nuint []))] NSNumber [] dilationRates, MLCPaddingPolicy paddingPolicy, [BindAs (typeof (nuint []))][NullAllowed] NSNumber [] paddingSizes); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1804,7 +1938,9 @@ namespace MLCompute { MLCPoolingLayer Create (MLCPoolingDescriptor descriptor); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1816,42 +1952,52 @@ namespace MLCompute { [Export ("dimension")] nuint Dimension { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("dimensions")] - [BindAs (typeof (nuint[]))] - NSNumber[] Dimensions { get; } + [BindAs (typeof (nuint []))] + NSNumber [] Dimensions { get; } [Static] [Export ("layerWithReductionType:dimension:")] [return: NullAllowed] MLCReductionLayer Create (MLCReductionType reductionType, nuint dimension); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Static] [Export ("layerWithReductionType:dimensions:")] [return: NullAllowed] - MLCReductionLayer Create (MLCReductionType reductionType, [BindAs (typeof (nuint[]))] NSNumber[] dimensions); + MLCReductionLayer Create (MLCReductionType reductionType, [BindAs (typeof (nuint []))] NSNumber [] dimensions); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCReshapeLayer { - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("shape", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] - NSNumber[] Shape { get; } + [BindAs (typeof (nint []))] + NSNumber [] Shape { get; } [Static] [Export ("layerWithShape:")] [return: NullAllowed] // swift uses `[Int]` - MLCReshapeLayer Create ([BindAs (typeof (nint[]))] NSNumber[] shape); + MLCReshapeLayer Create ([BindAs (typeof (nint []))] NSNumber [] shape); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCOptimizer), Name = "MLCRMSPropOptimizer")] interface MLCRmsPropOptimizer : NSCopying { @@ -1877,7 +2023,9 @@ namespace MLCompute { MLCRmsPropOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float momentumScale, float alpha, float epsilon, bool isCentered); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCOptimizer), Name = "MLCSGDOptimizer")] [DisableDefaultCtor] @@ -1898,32 +2046,36 @@ namespace MLCompute { MLCSgdOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float momentumScale, bool usesNesterovMomentum); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCSliceLayer { [Export ("start", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] Start { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] Start { get; } [Export ("end", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] End { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] End { get; } [NullAllowed] [Export ("stride", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]?` - NSNumber[] Stride { get; } + [BindAs (typeof (nint []))] // swift `[Int]?` + NSNumber [] Stride { get; } [Static] [Export ("sliceLayerWithStart:end:stride:")] [return: NullAllowed] - MLCSliceLayer Create ([BindAs (typeof (nint[]))] NSNumber[] start, [BindAs (typeof (nint[]))] NSNumber[] end, [BindAs (typeof (nint[]))] [NullAllowed] NSNumber[] stride); + MLCSliceLayer Create ([BindAs (typeof (nint []))] NSNumber [] start, [BindAs (typeof (nint []))] NSNumber [] end, [BindAs (typeof (nint []))][NullAllowed] NSNumber [] stride); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1944,7 +2096,9 @@ namespace MLCompute { MLCSoftmaxLayer Create (MLCSoftmaxOperation operation, nuint dimension); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] @@ -1958,8 +2112,8 @@ namespace MLCompute { [NullAllowed] [Export ("splitSectionLengths", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] SplitSectionLengths { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] SplitSectionLengths { get; } [Static] [Export ("layerWithSplitCount:dimension:")] @@ -1967,34 +2121,38 @@ namespace MLCompute { [Static] [Export ("layerWithSplitSectionLengths:dimension:")] - MLCSplitLayer Create ([BindAs (typeof (nint[]))] NSNumber[] splitSectionLengths, nuint dimension); + MLCSplitLayer Create ([BindAs (typeof (nint []))] NSNumber [] splitSectionLengths, nuint dimension); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCTransposeLayer { [Export ("dimensions", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] Dimensions { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] Dimensions { get; } [Static] [Export ("layerWithDimensions:")] [return: NullAllowed] - MLCTransposeLayer Create ([BindAs (typeof (nint[]))] NSNumber[] dimensions); + MLCTransposeLayer Create ([BindAs (typeof (nint []))] NSNumber [] dimensions); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCUpsampleLayer { [Export ("shape", ArgumentSemantic.Copy)] - [BindAs (typeof (nint[]))] // swift `[Int]` - NSNumber[] Shape { get; } + [BindAs (typeof (nint []))] // swift `[Int]` + NSNumber [] Shape { get; } [Export ("sampleMode")] MLCSampleMode SampleMode { get; } @@ -2005,17 +2163,19 @@ namespace MLCompute { [Static] [Export ("layerWithShape:")] [return: NullAllowed] - MLCUpsampleLayer Create ([BindAs (typeof (nint[]))] NSNumber[] shape); + MLCUpsampleLayer Create ([BindAs (typeof (nint []))] NSNumber [] shape); [Static] [Export ("layerWithShape:sampleMode:alignsCorners:")] [return: NullAllowed] - MLCUpsampleLayer Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCSampleMode sampleMode, bool alignsCorners); + MLCUpsampleLayer Create ([BindAs (typeof (nint []))] NSNumber [] shape, MLCSampleMode sampleMode, bool alignsCorners); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] - [BaseType (typeof (NSObject), Name ="MLCYOLOLossDescriptor")] + [BaseType (typeof (NSObject), Name = "MLCYOLOLossDescriptor")] [DisableDefaultCtor] interface MLCYoloLossDescriptor : NSCopying { @@ -2054,9 +2214,11 @@ namespace MLCompute { MLCYoloLossDescriptor Create (NSData anchorBoxes, nuint anchorBoxCount); } - [iOS (14,0)][TV (14,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] [NoWatch] - [BaseType (typeof(MLCLossLayer), Name = "MLCYOLOLossLayer")] + [BaseType (typeof (MLCLossLayer), Name = "MLCYOLOLossLayer")] [DisableDefaultCtor] interface MLCYoloLossLayer { @@ -2070,14 +2232,14 @@ namespace MLCompute { delegate void MLCGraphCompletionHandler ([NullAllowed] MLCTensor resultTensor, [NullAllowed] NSError error, /* NSTimeInterval */ double executionTime); - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLCTensorOptimizerDeviceData : NSCopying { } - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -2087,7 +2249,7 @@ namespace MLCompute { MLCDevice Device { get; } [Export ("layers")] - MLCLayer[] Layers { get; } + MLCLayer [] Layers { get; } [Static] [Export ("graph")] @@ -2102,37 +2264,37 @@ namespace MLCompute { [Export ("nodeWithLayer:sources:")] [return: NullAllowed] - MLCTensor CreateNode (MLCLayer layer, MLCTensor[] sources); + MLCTensor CreateNode (MLCLayer layer, MLCTensor [] sources); [Export ("nodeWithLayer:sources:disableUpdate:")] [return: NullAllowed] - MLCTensor CreateNode (MLCLayer layer, MLCTensor[] sources, bool disableUpdate); + MLCTensor CreateNode (MLCLayer layer, MLCTensor [] sources, bool disableUpdate); [Export ("nodeWithLayer:sources:lossLabels:")] [return: NullAllowed] - MLCTensor CreateNode (MLCLayer layer, MLCTensor[] sources, MLCTensor[] lossLabels); + MLCTensor CreateNode (MLCLayer layer, MLCTensor [] sources, MLCTensor [] lossLabels); [Export ("splitWithSource:splitCount:dimension:")] [return: NullAllowed] - MLCTensor[] Split (MLCTensor source, nuint splitCount, nuint dimension); + MLCTensor [] Split (MLCTensor source, nuint splitCount, nuint dimension); [Export ("splitWithSource:splitSectionLengths:dimension:")] [return: NullAllowed] - MLCTensor[] Split (MLCTensor source, [BindAs (typeof (nuint[]))] NSNumber[] splitSectionLengths, nuint dimension); + MLCTensor [] Split (MLCTensor source, [BindAs (typeof (nuint []))] NSNumber [] splitSectionLengths, nuint dimension); [Export ("concatenateWithSources:dimension:")] [return: NullAllowed] - MLCTensor Concatenate (MLCTensor[] sources, nuint dimension); + MLCTensor Concatenate (MLCTensor [] sources, nuint dimension); [Export ("reshapeWithShape:source:")] [return: NullAllowed] // swift `[Int]` - MLCTensor Reshape ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCTensor source); + MLCTensor Reshape ([BindAs (typeof (nint []))] NSNumber [] shape, MLCTensor source); [Export ("transposeWithDimensions:source:")] [return: NullAllowed] // swift `[Int]` - MLCTensor Transpose ([BindAs (typeof (nint[]))] NSNumber[] dimensions, MLCTensor source); + MLCTensor Transpose ([BindAs (typeof (nint []))] NSNumber [] dimensions, MLCTensor source); [Export ("bindAndWriteData:forInputs:toDevice:batchSize:synchronous:")] bool BindAndWrite (NSDictionary inputsData, NSDictionary inputTensors, MLCDevice device, nuint batchSize, bool synchronous); @@ -2141,28 +2303,34 @@ namespace MLCompute { bool BindAndWrite (NSDictionary inputsData, NSDictionary inputTensors, MLCDevice device, bool synchronous); [Export ("sourceTensorsForLayer:")] - MLCTensor[] GetSourceTensors (MLCLayer layer); + MLCTensor [] GetSourceTensors (MLCLayer layer); [Export ("resultTensorsForLayer:")] - MLCTensor[] GetResultTensors (MLCLayer layer); + MLCTensor [] GetResultTensors (MLCLayer layer); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("gatherWithDimension:source:indices:")] [return: NullAllowed] MLCTensor Gather (nuint dimension, MLCTensor source, MLCTensor indices); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("scatterWithDimension:source:indices:copyFrom:reductionType:")] [return: NullAllowed] MLCTensor Scatter (nuint dimension, MLCTensor source, MLCTensor indices, MLCTensor copyFrom, MLCReductionType reductionType); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("selectWithSources:condition:")] [return: NullAllowed] - MLCTensor Select (MLCTensor[] sources, MLCTensor condition); + MLCTensor Select (MLCTensor [] sources, MLCTensor condition); } - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [NoWatch] [BaseType (typeof (MLCGraph))] [DisableDefaultCtor] @@ -2176,7 +2344,7 @@ namespace MLCompute { [Static] [Export ("graphWithGraphObjects:lossLayer:optimizer:")] - MLCTrainingGraph Create (MLCGraph[] graphObjects, [NullAllowed] MLCLayer lossLayer, [NullAllowed] MLCOptimizer optimizer); + MLCTrainingGraph Create (MLCGraph [] graphObjects, [NullAllowed] MLCLayer lossLayer, [NullAllowed] MLCOptimizer optimizer); [Export ("addInputs:lossLabels:")] bool AddInputs (NSDictionary inputs, [NullAllowed] NSDictionary lossLabels); @@ -2188,12 +2356,14 @@ namespace MLCompute { bool AddOutputs (NSDictionary outputs); [Export ("stopGradientForTensors:")] - bool StopGradient (MLCTensor[] tensors); + bool StopGradient (MLCTensor [] tensors); [Export ("compileWithOptions:device:")] bool Compile (MLCGraphCompilationOptions options, MLCDevice device); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("compileWithOptions:device:inputTensors:inputTensorsData:")] bool Compile (MLCGraphCompilationOptions options, MLCDevice device, [NullAllowed] NSDictionary inputTensors, [NullAllowed] NSDictionary inputTensorsData); @@ -2201,13 +2371,13 @@ namespace MLCompute { bool Compile (MLCOptimizer optimizer); [Export ("linkWithGraphs:")] - bool Link (MLCTrainingGraph[] graphs); + bool Link (MLCTrainingGraph [] graphs); [Export ("sourceGradientTensorsForLayer:")] - MLCTensor[] GetSourceGradientTensors (MLCLayer layer); + MLCTensor [] GetSourceGradientTensors (MLCLayer layer); [Export ("resultGradientTensorsForLayer:")] - MLCTensor[] GetResultGradientTensors (MLCLayer layer); + MLCTensor [] GetResultGradientTensors (MLCLayer layer); [Export ("gradientDataForParameter:layer:")] [return: NullAllowed] @@ -2249,18 +2419,19 @@ namespace MLCompute { void SynchronizeUpdates (); [Export ("setTrainingTensorParameters:")] - bool SetTrainingTensorParameters (MLCTensorParameter[] parameters); + bool SetTrainingTensorParameters (MLCTensorParameter [] parameters); [Export ("gradientTensorForInput:")] [return: NullAllowed] MLCTensor GetGradientTensor (MLCTensor input); - [iOS (14,2)][TV (14,2)] + [iOS (14, 2)] + [TV (14, 2)] [Export ("bindOptimizerData:deviceData:withTensor:")] - bool BindOptimizer (MLCTensorData[] data, [NullAllowed] MLCTensorOptimizerDeviceData[] deviceData, MLCTensor tensor); + bool BindOptimizer (MLCTensorData [] data, [NullAllowed] MLCTensorOptimizerDeviceData [] deviceData, MLCTensor tensor); } - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [NoWatch] [BaseType (typeof (MLCGraph))] [DisableDefaultCtor] @@ -2271,7 +2442,7 @@ namespace MLCompute { [Static] [Export ("graphWithGraphObjects:")] - MLCInferenceGraph Create (MLCGraph[] graphObjects); + MLCInferenceGraph Create (MLCGraph [] graphObjects); [Export ("addInputs:")] bool AddInputs (NSDictionary inputs); @@ -2285,12 +2456,14 @@ namespace MLCompute { [Export ("compileWithOptions:device:")] bool Compile (MLCGraphCompilationOptions options, MLCDevice device); - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [Export ("compileWithOptions:device:inputTensors:inputTensorsData:")] bool Compile (MLCGraphCompilationOptions options, MLCDevice device, [NullAllowed] NSDictionary inputTensors, [NullAllowed] NSDictionary inputTensorsData); [Export ("linkWithGraphs:")] - bool Link (MLCInferenceGraph[] graphs); + bool Link (MLCInferenceGraph [] graphs); [Async (ResultTypeName = "MLCGraphCompletionResult")] [Export ("executeWithInputsData:batchSize:options:completionHandler:")] @@ -2309,7 +2482,9 @@ namespace MLCompute { bool Execute (NSDictionary inputsData, [NullAllowed] NSDictionary lossLabelsData, [NullAllowed] NSDictionary lossLabelWeightsData, [NullAllowed] NSDictionary outputsData, nuint batchSize, MLCExecutionOptions options, [NullAllowed] MLCGraphCompletionHandler completionHandler); } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] enum MLCComparisonOperation { Equal = 0, NotEqual = 1, @@ -2325,7 +2500,9 @@ namespace MLCompute { LogicalXor = 11, } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCComparisonLayer { @@ -2338,7 +2515,9 @@ namespace MLCompute { MLCComparisonLayer Create (MLCComparisonOperation operation); } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCGatherLayer { @@ -2351,7 +2530,9 @@ namespace MLCompute { MLCGatherLayer Create (nuint dimension); } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCScatterLayer { @@ -2368,7 +2549,9 @@ namespace MLCompute { MLCScatterLayer Create (nuint dimension, MLCReductionType reductionType); } - [TV (14,5)][Mac (11,3)][iOS (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] [BaseType (typeof (MLCLayer))] [DisableDefaultCtor] interface MLCSelectionLayer { @@ -2378,11 +2561,11 @@ namespace MLCompute { MLCSelectionLayer Create (); } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MLCPlatform { - + [Static] [Export ("setRNGSeedTo:")] void SetRngSeed ([BindAs (typeof (nuint))] NSNumber seed); @@ -2393,11 +2576,10 @@ namespace MLCompute { NSNumber GetRngSeed (); } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (MLCOptimizer))] [DisableDefaultCtor] - interface MLCAdamWOptimizer : NSCopying - { + interface MLCAdamWOptimizer : NSCopying { [Export ("beta1")] float Beta1 { get; } diff --git a/src/mobilecoreservices.cs b/src/mobilecoreservices.cs index 230ee63515..bfff1ae23a 100644 --- a/src/mobilecoreservices.cs +++ b/src/mobilecoreservices.cs @@ -3,446 +3,446 @@ using ObjCRuntime; namespace MobileCoreServices { - [Deprecated (PlatformName.iOS, 14, 0, message : "Use the 'UniformTypeIdentifiers.UTType' API instead.")] - [Deprecated (PlatformName.TvOS, 14, 0, message : "Use the 'UniformTypeIdentifiers.UTType' API instead.")] - [Deprecated (PlatformName.WatchOS, 7, 0, message : "Use the 'UniformTypeIdentifiers.UTType' API instead.")] - [Deprecated (PlatformName.MacOSX, 11, 0, message : "Use the 'UniformTypeIdentifiers.UTType' API instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use the 'UniformTypeIdentifiers.UTType' API instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use the 'UniformTypeIdentifiers.UTType' API instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use the 'UniformTypeIdentifiers.UTType' API instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use the 'UniformTypeIdentifiers.UTType' API instead.")] [Partial] interface UTType { [Field ("kUTTypeItem", "+CoreServices")] NSString Item { get; } - + [Field ("kUTTypeContent", "+CoreServices")] NSString Content { get; } - + [Field ("kUTTypeCompositeContent", "+CoreServices")] NSString CompositeContent { get; } - + [Field ("kUTTypeMessage", "+CoreServices")] NSString Message { get; } - + [Field ("kUTTypeContact", "+CoreServices")] NSString Contact { get; } - + [Field ("kUTTypeArchive", "+CoreServices")] NSString Archive { get; } - + [Field ("kUTTypeDiskImage", "+CoreServices")] NSString DiskImage { get; } - + [Field ("kUTTypeData", "+CoreServices")] NSString Data { get; } - + [Field ("kUTTypeDirectory", "+CoreServices")] NSString Directory { get; } - + [Field ("kUTTypeResolvable", "+CoreServices")] NSString Resolvable { get; } - + [Field ("kUTTypeSymLink", "+CoreServices")] NSString SymLink { get; } - + [Field ("kUTTypeExecutable", "+CoreServices")] - [Mac (10,10), iOS(8,0)] // Symbol not found: _kUTTypeExecutable in 10.9 + [Mac (10, 10), iOS (8, 0)] // Symbol not found: _kUTTypeExecutable in 10.9 NSString Executable { get; } - + [Field ("kUTTypeMountPoint", "+CoreServices")] NSString MountPoint { get; } - + [Field ("kUTTypeAliasFile", "+CoreServices")] NSString AliasFile { get; } - + [Field ("kUTTypeAliasRecord", "+CoreServices")] NSString AliasRecord { get; } - + [Field ("kUTTypeURLBookmarkData", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString URLBookmarkData { get; } - + [Field ("kUTTypeURL", "+CoreServices")] NSString URL { get; } - + [Field ("kUTTypeFileURL", "+CoreServices")] NSString FileURL { get; } - + [Field ("kUTTypeText", "+CoreServices")] NSString Text { get; } - + [Field ("kUTTypePlainText", "+CoreServices")] NSString PlainText { get; } - + [Field ("kUTTypeUTF8PlainText", "+CoreServices")] NSString UTF8PlainText { get; } - + [Field ("kUTTypeUTF16ExternalPlainText", "+CoreServices")] NSString UTF16ExternalPlainText { get; } - + [Field ("kUTTypeUTF16PlainText", "+CoreServices")] NSString UTF16PlainText { get; } - + [Field ("kUTTypeDelimitedText", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString DelimitedText { get; } - + [Field ("kUTTypeCommaSeparatedText", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString CommaSeparatedText { get; } - + [Field ("kUTTypeTabSeparatedText", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString TabSeparatedText { get; } - + [Field ("kUTTypeUTF8TabSeparatedText", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString UTF8TabSeparatedText { get; } - + [Field ("kUTTypeRTF", "+CoreServices")] NSString RTF { get; } - + [Field ("kUTTypeHTML", "+CoreServices")] NSString HTML { get; } - + [Field ("kUTTypeXML", "+CoreServices")] NSString XML { get; } - + [Field ("kUTTypeSourceCode", "+CoreServices")] NSString SourceCode { get; } - + [Field ("kUTTypeAssemblyLanguageSource", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString AssemblyLanguageSource { get; } - + [Field ("kUTTypeCSource", "+CoreServices")] NSString CSource { get; } - + [Field ("kUTTypeObjectiveCSource", "+CoreServices")] NSString ObjectiveCSource { get; } - + [Field ("kUTTypeCPlusPlusSource", "+CoreServices")] NSString CPlusPlusSource { get; } - + [Field ("kUTTypeObjectiveCPlusPlusSource", "+CoreServices")] NSString ObjectiveCPlusPlusSource { get; } - + [Field ("kUTTypeCHeader", "+CoreServices")] NSString CHeader { get; } - + [Field ("kUTTypeCPlusPlusHeader", "+CoreServices")] NSString CPlusPlusHeader { get; } - + [Field ("kUTTypeJavaSource", "+CoreServices")] NSString JavaSource { get; } - + [Field ("kUTTypeScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Script { get; } - + [Field ("kUTTypeAppleScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString AppleScript { get; } - + [Field ("kUTTypeOSAScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString OSAScript { get; } - + [Field ("kUTTypeOSAScriptBundle", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString OSAScriptBundle { get; } - + [Field ("kUTTypeJavaScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString JavaScript { get; } - + [Field ("kUTTypeShellScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ShellScript { get; } - + [Field ("kUTTypePerlScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PerlScript { get; } - + [Field ("kUTTypePythonScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PythonScript { get; } - + [Field ("kUTTypeRubyScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString RubyScript { get; } - + [Field ("kUTTypePHPScript", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PHPScript { get; } - + [Field ("kUTTypeJSON", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString JSON { get; } - + [Field ("kUTTypePropertyList", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PropertyList { get; } - + [Field ("kUTTypeXMLPropertyList", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString XMLPropertyList { get; } - + [Field ("kUTTypeBinaryPropertyList", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString BinaryPropertyList { get; } - + [Field ("kUTTypePDF", "+CoreServices")] NSString PDF { get; } - + [Field ("kUTTypeRTFD", "+CoreServices")] NSString RTFD { get; } - + [Field ("kUTTypeFlatRTFD", "+CoreServices")] NSString FlatRTFD { get; } - + [Field ("kUTTypeTXNTextAndMultimediaData", "+CoreServices")] NSString TXNTextAndMultimediaData { get; } - + [Field ("kUTTypeWebArchive", "+CoreServices")] NSString WebArchive { get; } - + [Field ("kUTTypeImage", "+CoreServices")] NSString Image { get; } - + [Field ("kUTTypeJPEG", "+CoreServices")] NSString JPEG { get; } - + [Field ("kUTTypeJPEG2000", "+CoreServices")] NSString JPEG2000 { get; } - + [Field ("kUTTypeTIFF", "+CoreServices")] NSString TIFF { get; } - + [Field ("kUTTypePICT", "+CoreServices")] NSString PICT { get; } - + [Field ("kUTTypeGIF", "+CoreServices")] NSString GIF { get; } - + [Field ("kUTTypePNG", "+CoreServices")] NSString PNG { get; } - + [Field ("kUTTypeQuickTimeImage", "+CoreServices")] NSString QuickTimeImage { get; } - + [Field ("kUTTypeAppleICNS", "+CoreServices")] NSString AppleICNS { get; } - + [Field ("kUTTypeBMP", "+CoreServices")] NSString BMP { get; } - + [Field ("kUTTypeICO", "+CoreServices")] NSString ICO { get; } - + [Field ("kUTTypeRawImage", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString RawImage { get; } - + [Field ("kUTTypeScalableVectorGraphics", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ScalableVectorGraphics { get; } - + [Field ("kUTTypeAudiovisualContent", "+CoreServices")] NSString AudiovisualContent { get; } - + [Field ("kUTTypeMovie", "+CoreServices")] NSString Movie { get; } - + [Field ("kUTTypeVideo", "+CoreServices")] NSString Video { get; } - + [Field ("kUTTypeAudio", "+CoreServices")] NSString Audio { get; } - + [Field ("kUTTypeQuickTimeMovie", "+CoreServices")] NSString QuickTimeMovie { get; } - + [Field ("kUTTypeMPEG", "+CoreServices")] NSString MPEG { get; } - + [Field ("kUTTypeMPEG2Video", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString MPEG2Video { get; } - + [Field ("kUTTypeMPEG2TransportStream", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString MPEG2TransportStream { get; } - + [Field ("kUTTypeMP3", "+CoreServices")] NSString MP3 { get; } - + [Field ("kUTTypeMPEG4", "+CoreServices")] NSString MPEG4 { get; } - + [Field ("kUTTypeMPEG4Audio", "+CoreServices")] NSString MPEG4Audio { get; } - + [Field ("kUTTypeAppleProtectedMPEG4Audio", "+CoreServices")] NSString AppleProtectedMPEG4Audio { get; } - + [Field ("kUTTypeAppleProtectedMPEG4Video", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString AppleProtectedMPEG4Video { get; } - + [Field ("kUTTypeAVIMovie", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString AVIMovie { get; } - + [Field ("kUTTypeAudioInterchangeFileFormat", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString AudioInterchangeFileFormat { get; } - + [Field ("kUTTypeWaveformAudio", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString WaveformAudio { get; } - + [Field ("kUTTypeMIDIAudio", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString MIDIAudio { get; } - + [Field ("kUTTypePlaylist", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Playlist { get; } - + [Field ("kUTTypeM3UPlaylist", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString M3UPlaylist { get; } - + [Field ("kUTTypeFolder", "+CoreServices")] NSString Folder { get; } - + [Field ("kUTTypeVolume", "+CoreServices")] NSString Volume { get; } - + [Field ("kUTTypePackage", "+CoreServices")] NSString Package { get; } - + [Field ("kUTTypeBundle", "+CoreServices")] NSString Bundle { get; } - + [Field ("kUTTypePluginBundle", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PluginBundle { get; } - + [Field ("kUTTypeSpotlightImporter", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString SpotlightImporter { get; } - + [Field ("kUTTypeQuickLookGenerator", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString QuickLookGenerator { get; } - + [Field ("kUTTypeXPCService", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString XPCService { get; } - + [Field ("kUTTypeFramework", "+CoreServices")] NSString Framework { get; } - + [Field ("kUTTypeApplication", "+CoreServices")] NSString Application { get; } - + [Field ("kUTTypeApplicationBundle", "+CoreServices")] NSString ApplicationBundle { get; } - + [Field ("kUTTypeApplicationFile", "+CoreServices")] NSString ApplicationFile { get; } - + [Field ("kUTTypeUnixExecutable", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString UnixExecutable { get; } - + [Field ("kUTTypeWindowsExecutable", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString WindowsExecutable { get; } - + [Field ("kUTTypeJavaClass", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString JavaClass { get; } - + [Field ("kUTTypeJavaArchive", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString JavaArchive { get; } - + [Field ("kUTTypeSystemPreferencesPane", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString SystemPreferencesPane { get; } - + [Field ("kUTTypeGNUZipArchive", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString GNUZipArchive { get; } - + [Field ("kUTTypeBzip2Archive", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Bzip2Archive { get; } - + [Field ("kUTTypeZipArchive", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ZipArchive { get; } - + [Field ("kUTTypeSpreadsheet", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Spreadsheet { get; } - + [Field ("kUTTypePresentation", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Presentation { get; } - + [Field ("kUTTypeDatabase", "+CoreServices")] - [iOS(8,0)] + [iOS (8, 0)] NSString Database { get; } - + [Field ("kUTTypeVCard", "+CoreServices")] NSString VCard { get; } - + [Field ("kUTTypeToDoItem", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ToDoItem { get; } - + [Field ("kUTTypeCalendarEvent", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString CalendarEvent { get; } - + [Field ("kUTTypeEmailMessage", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString EmailMessage { get; } - + [Field ("kUTTypeInternetLocation", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString InternetLocation { get; } - + [Field ("kUTTypeInkText", "+CoreServices")] NSString InkText { get; } - + [Field ("kUTTypeFont", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Font { get; } - + [Field ("kUTTypeBookmark", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Bookmark { get; } - + [Field ("kUTType3DContent", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ThreeDContent { get; } - + [Field ("kUTTypePKCS12", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString PKCS12 { get; } - + [Field ("kUTTypeX509Certificate", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString X509Certificate { get; } - + [Field ("kUTTypeElectronicPublication", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString ElectronicPublication { get; } - + [Field ("kUTTypeLog", "+CoreServices")] - [Mac (10,10), iOS(8,0)] + [Mac (10, 10), iOS (8, 0)] NSString Log { get; } [Field ("kUTExportedTypeDeclarationsKey", "+CoreServices")] @@ -453,76 +453,88 @@ namespace MobileCoreServices { [Field ("kUTTypeIdentifierKey", "+CoreServices")] NSString IdentifierKey { get; } - + [Field ("kUTTypeTagSpecificationKey", "+CoreServices")] NSString TagSpecificationKey { get; } - + [Field ("kUTTypeConformsToKey", "+CoreServices")] NSString ConformsToKey { get; } - + [Field ("kUTTypeDescriptionKey", "+CoreServices")] NSString DescriptionKey { get; } - + [Field ("kUTTypeIconFileKey", "+CoreServices")] NSString IconFileKey { get; } - + [Field ("kUTTypeReferenceURLKey", "+CoreServices")] NSString ReferenceURLKey { get; } - + [Field ("kUTTypeVersionKey", "+CoreServices")] NSString VersionKey { get; } [Field ("kUTTagClassFilenameExtension", "+CoreServices")] NSString TagClassFilenameExtension { get; } - + [Field ("kUTTagClassMIMEType", "+CoreServices")] NSString TagClassMIMEType { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("kUTTagClassNSPboardType", "+CoreServices")] NSString TagClassNSPboardType { get; } - - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Field ("kUTTagClassOSType", "+CoreServices")] NSString TagClassOSType { get; } - [Mac(10,11), iOS (9,0)] + [Mac (10, 11), iOS (9, 0)] [Field ("kUTTypeSwiftSource", "+CoreServices")] NSString SwiftSource { get; } [NoWatch] - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kUTTypeAlembic", "ModelIO")] NSString Alembic { get; } [NoWatch] - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kUTType3dObject", "ModelIO")] NSString k3dObject { get; } [NoWatch] - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kUTTypePolygon", "ModelIO")] NSString Polygon { get; } [NoWatch] - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kUTTypeStereolithography", "ModelIO")] NSString Stereolithography { get; } [NoWatch] - [iOS (10,0)][Mac(10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Field ("kUTTypeUniversalSceneDescription", "ModelIO")] NSString UniversalSceneDescription { get; } [NoWatch] - [iOS (15,0), Mac(12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("kUTTypeUniversalSceneDescriptionMobile", "ModelIO")] NSString UniversalSceneDescriptionMobile { get; } - [Watch (2,2)] - [iOS (9,1)][TV (9,0)] + [Watch (2, 2)] + [iOS (9, 1)] + [TV (9, 0)] [NoMac] [Field ("kUTTypeLivePhoto", "+CoreServices")] NSString LivePhoto { get; } diff --git a/src/modelio.cs b/src/modelio.cs index 538e9886ea..2a20f15725 100644 --- a/src/modelio.cs +++ b/src/modelio.cs @@ -72,14 +72,14 @@ using NativeHandle = System.IntPtr; namespace ModelIO { - [iOS (11,0), Mac(10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Native] enum MDLAnimatedValueInterpolation : ulong { Constant, Linear, } - [iOS (11,0), Mac(10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Native] enum MDLTransformOpRotationOrder : ulong { Xyz = 1, @@ -90,7 +90,7 @@ namespace ModelIO { Zyx, } - [iOS (11,0), Mac(10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Native] enum MDLDataPrecision : ulong { Undefined, @@ -100,11 +100,11 @@ namespace ModelIO { delegate void MDLObjectHandler (MDLObject mdlObject, ref bool stop); - [iOS (9,0)][Mac(10,11)] - [BaseType (typeof(MDLPhysicallyPlausibleLight))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (MDLPhysicallyPlausibleLight))] [DisableDefaultCtor] - interface MDLAreaLight - { + interface MDLAreaLight { [Export ("areaRadius")] float AreaRadius { get; set; } @@ -120,19 +120,18 @@ namespace ModelIO { float Aspect { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLAsset : NSCopying - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLAsset : NSCopying { [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); [Export ("initWithURL:vertexDescriptor:bufferAllocator:")] NativeHandle Constructor ([NullAllowed] NSUrl url, [NullAllowed] MDLVertexDescriptor vertexDescriptor, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); - [iOS (10,0)] - [TV (10,0)] - [Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Export ("initWithBufferAllocator:")] NativeHandle Constructor ([NullAllowed] IMDLMeshBufferAllocator bufferAllocator); @@ -143,7 +142,7 @@ namespace ModelIO { [Export ("exportAssetToURL:error:")] bool ExportAssetToUrl (NSUrl url, out NSError error); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("objectAtPath:")] MDLObject GetObject (string atPath); @@ -155,37 +154,37 @@ namespace ModelIO { [Export ("canExportFileExtension:")] bool CanExportFileExtension (string extension); - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("components", ArgumentSemantic.Copy)] - IMDLComponent[] Components { get; } + IMDLComponent [] Components { get; } - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("setComponent:forProtocol:")] void SetComponent (IMDLComponent component, Protocol protocol); - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Wrap ("SetComponent (component, new Protocol (type))")] void SetComponent (IMDLComponent component, Type type); - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("componentConformingToProtocol:")] [return: NullAllowed] IMDLComponent GetComponent (Protocol protocol); - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Wrap ("GetComponent (new Protocol (type!))")] [return: NullAllowed] IMDLComponent GetComponent (Type type); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("childObjectsOfClass:")] - MDLObject[] GetChildObjects (Class objectClass); + MDLObject [] GetChildObjects (Class objectClass); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("loadTextures")] void LoadTextures (); @@ -208,7 +207,7 @@ namespace ModelIO { [Export ("endTime")] double EndTime { get; set; } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("upAxis", ArgumentSemantic.Assign)] NVector3 UpAxis { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -220,7 +219,7 @@ namespace ModelIO { [NullAllowed, Export ("URL", ArgumentSemantic.Retain)] NSUrl Url { get; } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("resolver", ArgumentSemantic.Retain)] IMDLAssetResolver Resolver { get; set; } @@ -250,17 +249,17 @@ namespace ModelIO { [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the 'Originals' property instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the 'Originals' property instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the 'Originals' property instead.")] - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("masters", ArgumentSemantic.Retain)] IMDLObjectContainerComponent Masters { get; set; } - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Export ("originals", ArgumentSemantic.Retain)] IMDLObjectContainerComponent Originals { get; set; } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("animations", ArgumentSemantic.Retain)] IMDLObjectContainerComponent Animations { get; set; } @@ -269,7 +268,7 @@ namespace ModelIO { MDLAsset FromScene (SCNScene scene); [iOS (10, 0), Mac (10, 12)] - [TV (10,0)] + [TV (10, 0)] [Static] [Export ("assetWithSCNScene:bufferAllocator:")] MDLAsset FromScene (SCNScene scene, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); @@ -279,19 +278,18 @@ namespace ModelIO { [Static] [Export ("placeLightProbesWithDensity:heuristic:usingIrradianceDataSource:")] [Mac (10, 12)] - [iOS (10,0)] - [TV (10,0)] - MDLLightProbe[] PlaceLightProbes (float density, MDLProbePlacement type, IMDLLightProbeIrradianceDataSource dataSource); + [iOS (10, 0)] + [TV (10, 0)] + MDLLightProbe [] PlaceLightProbes (float density, MDLProbePlacement type, IMDLLightProbeIrradianceDataSource dataSource); } - interface IMDLLightProbeIrradianceDataSource {} + interface IMDLLightProbeIrradianceDataSource { } // Added in iOS 10 SDK but it is supposed to be present in iOS 9. - [Mac (10,12)] + [Mac (10, 12)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface MDLLightProbeIrradianceDataSource - { + [BaseType (typeof (NSObject))] + interface MDLLightProbeIrradianceDataSource { [Abstract] [Export ("boundingBox", ArgumentSemantic.Assign)] MDLAxisAlignedBoundingBox BoundingBox { get; set; } @@ -304,42 +302,43 @@ namespace ModelIO { NSData GetSphericalHarmonicsCoefficients (Vector3 position); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLObject))] - interface MDLCamera - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLObject))] + interface MDLCamera { [Export ("projectionMatrix")] #if !NET [Obsolete ("Use 'ProjectionMatrix4x4' instead.")] #endif Matrix4 ProjectionMatrix { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } #if !NET [Sealed] [Export ("projectionMatrix")] MatrixFloat4x4 ProjectionMatrix4x4 { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } #endif - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("projection", ArgumentSemantic.Assign)] MDLCameraProjection Projection { get; set; } [Export ("frameBoundingBox:setNearAndFar:")] - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void FrameBoundingBox (MDLAxisAlignedBoundingBox boundingBox, bool setNearAndFar); [Export ("lookAt:")] - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void LookAt (Vector3 focusPosition); [Export ("lookAt:from:")] - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void LookAt (Vector3 focusPosition, Vector3 cameraPosition); [Export ("rayTo:forViewPort:")] @@ -372,7 +371,7 @@ namespace ModelIO { [Export ("focusDistance")] float FocusDistance { get; set; } - + [Export ("fieldOfView")] float FieldOfView { get; set; } @@ -400,32 +399,42 @@ namespace ModelIO { [Export ("sensorEnlargement", ArgumentSemantic.Assign)] Vector2 SensorEnlargement { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("sensorShift", ArgumentSemantic.Assign)] Vector2 SensorShift { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("flash", ArgumentSemantic.Assign)] Vector3 Flash { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("exposureCompression", ArgumentSemantic.Assign)] Vector2 ExposureCompression { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("exposure", ArgumentSemantic.Assign)] - Vector3 Exposure { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + Vector3 Exposure { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Static] @@ -433,11 +442,10 @@ namespace ModelIO { MDLCamera FromSceneCamera (SCNCamera sceneCamera); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLTexture))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture))] [DisableDefaultCtor] - interface MDLCheckerboardTexture - { + interface MDLCheckerboardTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -459,11 +467,10 @@ namespace ModelIO { CGColor Color2 { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLTexture))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture))] [DisableDefaultCtor] - interface MDLColorSwatchTexture - { + interface MDLColorSwatchTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -478,10 +485,9 @@ namespace ModelIO { } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLObject))] - interface MDLLight - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLObject))] + interface MDLLight { [Export ("irradianceAtPoint:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] CGColor GetIrradiance (Vector3 point); @@ -493,9 +499,9 @@ namespace ModelIO { [Export ("lightType")] MDLLightType LightType { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("colorSpace")] // No documentation to confirm but this should be a constant (hence NSString). NSString ColorSpace { get; set; } @@ -505,10 +511,9 @@ namespace ModelIO { MDLLight FromSceneLight (SCNLight sceneLight); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLLight))] - interface MDLLightProbe - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLLight))] + interface MDLLightProbe { [Export ("initWithReflectiveTexture:irradianceTexture:")] NativeHandle Constructor ([NullAllowed] MDLTexture reflectiveTexture, [NullAllowed] MDLTexture irradianceTexture); @@ -533,13 +538,12 @@ namespace ModelIO { [Static] [Export ("lightProbeWithTextureSize:forLocation:lightsToConsider:objectsToConsider:reflectiveCubemap:irradianceCubemap:")] [return: NullAllowed] - MDLLightProbe Create (nint textureSize, MDLTransform transform, MDLLight[] lightsToConsider, MDLObject[] objectsToConsider, [NullAllowed] MDLTexture reflectiveCubemap, [NullAllowed] MDLTexture irradianceCubemap); + MDLLightProbe Create (nint textureSize, MDLTransform transform, MDLLight [] lightsToConsider, MDLObject [] objectsToConsider, [NullAllowed] MDLTexture reflectiveCubemap, [NullAllowed] MDLTexture irradianceCubemap); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLMaterial : MDLNamed, INSFastEnumeration - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLMaterial : MDLNamed, INSFastEnumeration { [Export ("initWithName:scatteringFunction:")] NativeHandle Constructor (string name, MDLScatteringFunction scatteringFunction); @@ -557,19 +561,19 @@ namespace ModelIO { [return: NullAllowed] MDLMaterialProperty GetProperty (MDLMaterialSemantic semantic); - [iOS (10,2), Mac (10,12,2)] - [TV (11,0)] // This is what apple's headers say (today) + [iOS (10, 2), Mac (10, 12, 2)] + [TV (11, 0)] // This is what apple's headers say (today) [Export ("propertiesWithSemantic:")] - MDLMaterialProperty[] GetProperties (MDLMaterialSemantic semantic); + MDLMaterialProperty [] GetProperties (MDLMaterialSemantic semantic); [Export ("removeAllProperties")] void RemoveAllProperties (); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("resolveTexturesWithResolver:")] void ResolveTextures (IMDLAssetResolver resolver); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("loadTexturesUsingResolver:")] void LoadTextures (IMDLAssetResolver resolver); @@ -592,9 +596,9 @@ namespace ModelIO { [Export ("count")] nuint Count { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("materialFace", ArgumentSemantic.Assign)] MDLMaterialFace MaterialFace { get; set; } @@ -603,11 +607,11 @@ namespace ModelIO { MDLMaterial FromSceneMaterial (SCNMaterial material); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MDLMaterialProperty : MDLNamed, NSCopying - { + interface MDLMaterialProperty : MDLNamed, NSCopying { [DesignatedInitializer] [Export ("initWithName:semantic:")] NativeHandle Constructor (string name, MDLMaterialSemantic semantic); @@ -663,7 +667,7 @@ namespace ModelIO { [Export ("type", ArgumentSemantic.Assign)] MDLMaterialPropertyType Type { get; } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("setType:")] void SetType (MDLMaterialPropertyType type); @@ -685,20 +689,26 @@ namespace ModelIO { [Export ("float2Value", ArgumentSemantic.Assign)] Vector2 Float2Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("float3Value", ArgumentSemantic.Assign)] Vector3 Float3Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("float4Value", ArgumentSemantic.Assign)] Vector4 Float4Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #if !NET @@ -706,32 +716,35 @@ namespace ModelIO { #endif [Export ("matrix4x4", ArgumentSemantic.Assign)] Matrix4 Matrix4x4 { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #if !NET [Sealed] [Export ("matrix4x4", ArgumentSemantic.Assign)] MatrixFloat4x4 MatrixFloat4x4 { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #endif - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("luminance")] float Luminance { get; set; } } - [iOS (10,0), Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MDLMaterialPropertyConnection : MDLNamed - { + interface MDLMaterialPropertyConnection : MDLNamed { [Export ("initWithOutput:input:")] NativeHandle Constructor (MDLMaterialProperty output, MDLMaterialProperty input); @@ -742,51 +755,48 @@ namespace ModelIO { MDLMaterialProperty Input { get; } } - [iOS (10,0), Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface MDLMaterialPropertyNode : MDLNamed - { + interface MDLMaterialPropertyNode : MDLNamed { [Export ("initWithInputs:outputs:evaluationFunction:")] - NativeHandle Constructor (MDLMaterialProperty[] inputs, MDLMaterialProperty[] outputs, Action function); + NativeHandle Constructor (MDLMaterialProperty [] inputs, MDLMaterialProperty [] outputs, Action function); [Export ("evaluationFunction", ArgumentSemantic.Copy)] Action EvaluationFunction { get; set; } [Export ("inputs")] - MDLMaterialProperty[] Inputs { get; } + MDLMaterialProperty [] Inputs { get; } [Export ("outputs")] - MDLMaterialProperty[] Outputs { get; } + MDLMaterialProperty [] Outputs { get; } } - [iOS (10,0), Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(MDLMaterialPropertyNode))] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (MDLMaterialPropertyNode))] [DisableDefaultCtor] - interface MDLMaterialPropertyGraph - { + interface MDLMaterialPropertyGraph { [Export ("initWithNodes:connections:")] - NativeHandle Constructor (MDLMaterialPropertyNode[] nodes, MDLMaterialPropertyConnection[] connections); + NativeHandle Constructor (MDLMaterialPropertyNode [] nodes, MDLMaterialPropertyConnection [] connections); [Export ("evaluate")] void Evaluate (); [Export ("nodes")] - MDLMaterialPropertyNode[] Nodes { get; } + MDLMaterialPropertyNode [] Nodes { get; } [Export ("connections")] - MDLMaterialPropertyConnection[] Connections { get; } + MDLMaterialPropertyConnection [] Connections { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLObject))] - interface MDLMesh - { - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLObject))] + interface MDLMesh { + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithBufferAllocator:")] NativeHandle Constructor ([NullAllowed] IMDLMeshBufferAllocator bufferAllocator); @@ -794,23 +804,24 @@ namespace ModelIO { NativeHandle Constructor (IMDLMeshBuffer vertexBuffer, nuint vertexCount, MDLVertexDescriptor descriptor, MDLSubmesh [] submeshes); [Export ("initWithVertexBuffers:vertexCount:descriptor:submeshes:")] - NativeHandle Constructor (IMDLMeshBuffer[] vertexBuffers, nuint vertexCount, MDLVertexDescriptor descriptor, MDLSubmesh[] submeshes); + NativeHandle Constructor (IMDLMeshBuffer [] vertexBuffers, nuint vertexCount, MDLVertexDescriptor descriptor, MDLSubmesh [] submeshes); [Internal] [Export ("vertexAttributeDataForAttributeNamed:")] [return: NullAllowed] MDLVertexAttributeData GetVertexAttributeDataForAttribute (string attributeName); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("vertexAttributeDataForAttributeNamed:asFormat:")] [return: NullAllowed] MDLVertexAttributeData GetVertexAttributeData (string attributeName, MDLVertexFormat format); [Export ("boundingBox")] MDLAxisAlignedBoundingBox BoundingBox { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("vertexDescriptor", ArgumentSemantic.Copy)] @@ -819,16 +830,16 @@ namespace ModelIO { [Export ("vertexCount")] nuint VertexCount { get; - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] set; } [Export ("vertexBuffers", ArgumentSemantic.Retain)] - IMDLMeshBuffer[] VertexBuffers { + IMDLMeshBuffer [] VertexBuffers { get; - [iOS (10,2), Mac (10,12,2), TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 1)] set; } @@ -836,15 +847,15 @@ namespace ModelIO { [Export ("submeshes", ArgumentSemantic.Copy)] NSMutableArray Submeshes { get; - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("allocator", ArgumentSemantic.Retain)] IMDLMeshBufferAllocator Allocator { get; } @@ -853,15 +864,15 @@ namespace ModelIO { [Export ("addAttributeWithName:format:")] void AddAttribute (string name, MDLVertexFormat format); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("addAttributeWithName:format:type:data:stride:")] void AddAttribute (string name, MDLVertexFormat format, string type, NSData data, nint stride); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("addAttributeWithName:format:type:data:stride:time:")] void AddAttribute (string name, MDLVertexFormat format, string type, NSData data, nint stride, double time); @@ -874,17 +885,17 @@ namespace ModelIO { [Export ("addTangentBasisForTextureCoordinateAttributeNamed:normalAttributeNamed:tangentAttributeNamed:")] void AddTangentBasisWithNormals (string textureCoordinateAttributeName, string normalAttributeName, string tangentAttributeName); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("addOrthTanBasisForTextureCoordinateAttributeNamed:normalAttributeNamed:tangentAttributeNamed:")] void AddOrthTanBasis (string textureCoordinateAttributeName, string normalAttributeName, string tangentAttributeName); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("addUnwrappedTextureCoordinatesForAttributeNamed:")] void AddUnwrappedTextureCoordinates (string textureCoordinateAttributeName); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("flipTextureCoordinatesInAttributeNamed:")] void FlipTextureCoordinates (string inTextureCoordinateAttributeNamed); @@ -894,25 +905,25 @@ namespace ModelIO { [Export ("makeVerticesUnique")] void MakeVerticesUnique (); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("makeVerticesUniqueAndReturnError:")] bool MakeVerticesUnique (out NSError error); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("replaceAttributeNamed:withData:")] void ReplaceAttribute (string name, MDLVertexAttributeData newData); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("updateAttributeNamed:withData:")] void UpdateAttribute (string name, MDLVertexAttributeData newData); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("removeAttributeNamed:")] void RemoveAttribute (string name); @@ -987,7 +998,7 @@ namespace ModelIO { MDLMesh CreateCylindroid (float height, Vector2 radii, nuint radialSegments, nuint verticalSegments, MDLGeometryType geometryType, bool inwardNormals, [NullAllowed] IMDLMeshBufferAllocator allocator); [Static] - [iOS (10,2), Mac (10,12,2), TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 1)] [Export ("newCapsuleWithHeight:radii:radialSegments:verticalSegments:hemisphereSegments:geometryType:inwardNormals:allocator:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] MDLMesh CreateCapsule (float height, Vector2 radii, nuint radialSegments, nuint verticalSegments, nuint hemisphereSegments, MDLGeometryType geometryType, bool inwardNormals, [NullAllowed] IMDLMeshBufferAllocator allocator); @@ -1002,7 +1013,7 @@ namespace ModelIO { MDLMesh CreateIcosahedron (float radius, bool inwardNormals, [NullAllowed] IMDLMeshBufferAllocator allocator); [Static] - [iOS (10,2), Mac (10,12,2), TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 1)] [Export ("newIcosahedronWithRadius:inwardNormals:geometryType:allocator:")] MDLMesh CreateIcosahedron (float radius, bool inwardNormals, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator); @@ -1040,17 +1051,16 @@ namespace ModelIO { MDLMesh FromGeometry (SCNGeometry geometry); [iOS (10, 0), Mac (10, 12)] - [TV (10,0)] + [TV (10, 0)] [Static] [Export ("meshWithSCNGeometry:bufferAllocator:")] MDLMesh FromGeometry (SCNGeometry geometry, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); } - interface IMDLMeshBuffer {} - [iOS (9,0), Mac(10,11)] + interface IMDLMeshBuffer { } + [iOS (9, 0), Mac (10, 11)] [Protocol] - interface MDLMeshBuffer : NSCopying - { + interface MDLMeshBuffer : NSCopying { [Abstract] [Export ("fillData:offset:")] void FillData (NSData data, nuint offset); @@ -1085,18 +1095,17 @@ namespace ModelIO { MDLMeshBufferType Type { get; } } - interface IMDLMeshBufferAllocator {} - [iOS (9,0), Mac(10,11)] + interface IMDLMeshBufferAllocator { } + [iOS (9, 0), Mac (10, 11)] [Protocol] - interface MDLMeshBufferAllocator - { + interface MDLMeshBufferAllocator { [Abstract] [Export ("newZone:")] IMDLMeshBufferZone CreateZone (nuint capacity); [Abstract] [Export ("newZoneForBuffersWithSize:andType:")] - IMDLMeshBufferZone CreateZone (NSNumber[] sizes, NSNumber[] types); + IMDLMeshBufferZone CreateZone (NSNumber [] sizes, NSNumber [] types); [Abstract] [Export ("newBuffer:type:")] @@ -1117,17 +1126,15 @@ namespace ModelIO { IMDLMeshBuffer CreateBuffer ([NullAllowed] IMDLMeshBufferZone zone, NSData data, MDLMeshBufferType type); } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLMeshBufferDataAllocator : MDLMeshBufferAllocator - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLMeshBufferDataAllocator : MDLMeshBufferAllocator { } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLMeshBufferZoneDefault : MDLMeshBufferZone - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLMeshBufferZoneDefault : MDLMeshBufferZone { // We get Capacity and Allocator from MDLMeshBufferZone // [Export ("capacity")] // nuint Capacity { get; } @@ -1136,10 +1143,9 @@ namespace ModelIO { // IMDLMeshBufferAllocator Allocator { get; } } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLMeshBufferData : MDLMeshBuffer, NSCopying - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLMeshBufferData : MDLMeshBuffer, NSCopying { [Export ("initWithType:length:")] NativeHandle Constructor (MDLMeshBufferType type, nuint length); @@ -1150,11 +1156,10 @@ namespace ModelIO { NSData Data { get; } } - interface IMDLMeshBufferZone {} - [iOS (9,0), Mac(10,11)] + interface IMDLMeshBufferZone { } + [iOS (9, 0), Mac (10, 11)] [Protocol] - interface MDLMeshBufferZone - { + interface MDLMeshBufferZone { #if NET [Abstract] #endif @@ -1168,7 +1173,7 @@ namespace ModelIO { IMDLMeshBufferAllocator Allocator { get; } } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Protocol] interface MDLNamed { [Abstract] @@ -1176,11 +1181,10 @@ namespace ModelIO { string Name { get; set; } } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(MDLTexture))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture))] [DisableDefaultCtor] - interface MDLNoiseTexture - { + interface MDLNoiseTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -1195,17 +1199,16 @@ namespace ModelIO { NativeHandle Constructor (float smoothness, [NullAllowed] string name, Vector2i textureDimensions, int channelCount, MDLTextureChannelEncoding channelEncoding, bool grayscale); [Internal] - [iOS (10,2), Mac (10,12,2)] + [iOS (10, 2), Mac (10, 12, 2)] [Export ("initCellularNoiseWithFrequency:name:textureDimensions:channelEncoding:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] IntPtr InitCellularNoiseWithFrequency (float frequency, [NullAllowed] string name, Vector2i textureDimensions, MDLTextureChannelEncoding channelEncoding); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLTexture))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture))] [DisableDefaultCtor] - interface MDLNormalMapTexture - { + interface MDLNormalMapTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -1214,13 +1217,12 @@ namespace ModelIO { NativeHandle Constructor (MDLTexture sourceTexture, [NullAllowed] string name, float smoothness, float contrast); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLObject : MDLNamed - { - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLObject : MDLNamed { + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("components", ArgumentSemantic.Copy)] - IMDLComponent[] Components { get; } + IMDLComponent [] Components { get; } [Export ("setComponent:forProtocol:")] void SetComponent (IMDLComponent component, Protocol protocol); @@ -1251,25 +1253,25 @@ namespace ModelIO { [NullAllowed, Export ("parent", ArgumentSemantic.Weak)] MDLObject Parent { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [NullAllowed, Export ("instance", ArgumentSemantic.Retain)] MDLObject Instance { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("path")] string Path { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("objectAtPath:")] MDLObject GetObject (string path); - [iOS (10,2), Mac (10,12,2), TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 1)] [Export ("enumerateChildObjectsOfClass:root:usingBlock:stopPointer:")] void EnumerateChildObjects (Class objectClass, MDLObject root, MDLObjectHandler handler, ref bool stop); @@ -1279,9 +1281,9 @@ namespace ModelIO { [Export ("children", ArgumentSemantic.Retain)] IMDLObjectContainerComponent Children { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("hidden")] bool Hidden { get; set; } @@ -1296,24 +1298,22 @@ namespace ModelIO { [Export ("objectWithSCNNode:")] MDLObject FromNode (SCNNode node); - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("objectWithSCNNode:bufferAllocator:")] MDLObject FromNode (SCNNode node, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); } - [iOS (9,0), Mac (10,11)] - [BaseType (typeof(NSObject))] - interface MDLObjectContainer : MDLObjectContainerComponent - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLObjectContainer : MDLObjectContainerComponent { } - interface IMDLObjectContainerComponent {} - [iOS (9,0)] + interface IMDLObjectContainerComponent { } + [iOS (9, 0)] [Protocol] - interface MDLObjectContainerComponent : MDLComponent, INSFastEnumeration - { + interface MDLObjectContainerComponent : MDLComponent, INSFastEnumeration { [Abstract] [Export ("addObject:")] void AddObject (MDLObject @object); @@ -1325,34 +1325,32 @@ namespace ModelIO { #if NET [Abstract] #endif - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("objectAtIndexedSubscript:")] MDLObject GetObject (nuint index); #if NET [Abstract] #endif - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("count")] nuint Count { get; } [Abstract] [Export ("objects", ArgumentSemantic.Retain)] - MDLObject[] Objects { get; } - } - - interface IMDLComponent {} - - [iOS (9,0), Mac(10,11)] - [Protocol] - interface MDLComponent - { + MDLObject [] Objects { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLPhysicallyPlausibleLight))] - interface MDLPhotometricLight - { + interface IMDLComponent { } + + [iOS (9, 0), Mac (10, 11)] + [Protocol] + interface MDLComponent { + } + + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLPhysicallyPlausibleLight))] + interface MDLPhotometricLight { [Export ("initWithIESProfile:")] NativeHandle Constructor (NSUrl url); @@ -1362,7 +1360,7 @@ namespace ModelIO { [Export ("generateCubemapFromLight:")] void GenerateCubemap (nuint textureSize); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("generateTexture:")] MDLTexture GenerateTexture (nuint textureSize); @@ -1376,10 +1374,9 @@ namespace ModelIO { NSData SphericalHarmonicsCoefficients { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLLight))] - interface MDLPhysicallyPlausibleLight - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLLight))] + interface MDLPhysicallyPlausibleLight { [Export ("setColorByTemperature:")] void SetColor (float temperature); @@ -1402,10 +1399,9 @@ namespace ModelIO { float AttenuationEndDistance { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLScatteringFunction))] - interface MDLPhysicallyPlausibleScatteringFunction - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLScatteringFunction))] + interface MDLPhysicallyPlausibleScatteringFunction { [Export ("version")] nint Version { get; } @@ -1443,10 +1439,9 @@ namespace ModelIO { MDLMaterialProperty ClearcoatGloss { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLScatteringFunction : MDLNamed - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLScatteringFunction : MDLNamed { [Export ("baseColor", ArgumentSemantic.Retain)] MDLMaterialProperty BaseColor { get; } @@ -1472,11 +1467,10 @@ namespace ModelIO { MDLMaterialProperty AmbientOcclusionScale { get; } } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(MDLTexture))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture))] [DisableDefaultCtor] - interface MDLSkyCubeTexture - { + interface MDLSkyCubeTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -1485,7 +1479,7 @@ namespace ModelIO { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] string name, MDLTextureChannelEncoding channelEncoding, Vector2i textureDimensions, float turbidity, float sunElevation, float upperAtmosphereScattering, float groundAlbedo); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("initWithName:channelEncoding:textureDimensions:turbidity:sunElevation:sunAzimuth:upperAtmosphereScattering:groundAlbedo:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] string name, MDLTextureChannelEncoding channelEncoding, Vector2i textureDimensions, float turbidity, float sunElevation, float sunAzimuth, float upperAtmosphereScattering, float groundAlbedo); @@ -1499,7 +1493,7 @@ namespace ModelIO { [Export ("sunElevation")] float SunElevation { get; set; } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("sunAzimuth")] float SunAzimuth { get; set; } @@ -1533,15 +1527,16 @@ namespace ModelIO { [Export ("highDynamicRangeCompression", ArgumentSemantic.Assign)] Vector2 HighDynamicRangeCompression { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(MDLCamera))] - interface MDLStereoscopicCamera - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLCamera))] + interface MDLStereoscopicCamera { [Export ("interPupillaryDistance")] float InterPupillaryDistance { get; set; } @@ -1627,10 +1622,9 @@ namespace ModelIO { #endif } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLSubmesh : MDLNamed - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLSubmesh : MDLNamed { [Export ("initWithName:indexBuffer:indexCount:indexType:geometryType:material:")] NativeHandle Constructor (string name, IMDLMeshBuffer indexBuffer, nuint indexCount, MDLIndexBitDepth indexType, MDLGeometryType geometryType, [NullAllowed] MDLMaterial material); @@ -1646,9 +1640,9 @@ namespace ModelIO { [Export ("indexBuffer", ArgumentSemantic.Retain)] IMDLMeshBuffer IndexBuffer { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("indexBufferAsIndexType:")] IMDLMeshBuffer GetIndexBuffer (MDLIndexBitDepth indexType); @@ -1667,7 +1661,7 @@ namespace ModelIO { [NullAllowed, Export ("topology", ArgumentSemantic.Retain)] MDLSubmeshTopology Topology { get; - [iOS (10,2), Mac (10,12,2), TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2), TV (10, 1)] set; } @@ -1676,17 +1670,16 @@ namespace ModelIO { MDLSubmesh FromGeometryElement (SCNGeometryElement element); [iOS (10, 0), Mac (10, 12)] - [TV (10,0)] + [TV (10, 0)] [Static] [Export ("submeshWithSCNGeometryElement:bufferAllocator:")] MDLSubmesh FromGeometryElement (SCNGeometryElement element, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated - interface MDLTexture : MDLNamed - { + interface MDLTexture : MDLNamed { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -1717,7 +1710,7 @@ namespace ModelIO { [return: NullAllowed] MDLTexture CreateTexture (string name, [NullAllowed] NSBundle bundleOrNil); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("textureNamed:assetResolver:")] [return: NullAllowed] @@ -1726,12 +1719,12 @@ namespace ModelIO { [Static] [Export ("textureCubeWithImagesNamed:")] [return: NullAllowed] - MDLTexture CreateTextureCube (string[] imageNames); + MDLTexture CreateTextureCube (string [] imageNames); [Static] [Export ("textureCubeWithImagesNamed:bundle:")] [return: NullAllowed] - MDLTexture CreateTextureCube (string[] imageNames, [NullAllowed] NSBundle bundleOrNil); + MDLTexture CreateTextureCube (string [] imageNames, [NullAllowed] NSBundle bundleOrNil); [Static] [Export ("irradianceTextureCubeWithTexture:name:dimensions:")] @@ -1751,14 +1744,14 @@ namespace ModelIO { [Export ("writeToURL:")] bool WriteToUrl (NSUrl url); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("writeToURL:level:")] bool WriteToUrl (NSUrl url, nuint level); [Export ("writeToURL:type:")] bool WriteToUrl (NSUrl url, string type); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("writeToURL:type:level:")] bool WriteToUrl (NSUrl nsurl, string type, nuint level); @@ -1766,7 +1759,7 @@ namespace ModelIO { [return: NullAllowed] CGImage GetImageFromTexture (); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("imageFromTextureAtLevel:")] [return: NullAllowed] CGImage GetImageFromTexture (nuint level); @@ -1789,7 +1782,8 @@ namespace ModelIO { [Export ("dimensions")] Vector2i Dimensions { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("rowStride")] @@ -1807,15 +1801,16 @@ namespace ModelIO { [Export ("isCube")] bool IsCube { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("hasAlphaValues")] bool HasAlphaValues { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] interface MDLTextureFilter { [Export ("sWrapMode", ArgumentSemantic.Assign)] MDLMaterialTextureWrapMode SWrapMode { get; set; } @@ -1836,10 +1831,9 @@ namespace ModelIO { MDLMaterialMipMapFilterMode MipFilter { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLTextureSampler - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLTextureSampler { [NullAllowed, Export ("texture", ArgumentSemantic.Retain)] MDLTexture Texture { get; set; } @@ -1850,17 +1844,17 @@ namespace ModelIO { MDLTransform Transform { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface MDLTransform : MDLTransformComponent, NSCopying { [Export ("initWithTransformComponent:")] NativeHandle Constructor (IMDLTransformComponent component); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithTransformComponent:resetsTransform:")] NativeHandle Constructor (IMDLTransformComponent component, bool resetsTransform); @@ -1881,16 +1875,16 @@ namespace ModelIO { #if !NET [Obsolete ("Use the '(MatrixFloat4x4, bool)' overload instead.")] #endif - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithMatrix:resetsTransform:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (Matrix4 matrix, bool resetsTransform); #if !NET [Sealed] - [iOS (10,0), Mac (10,12), TV (10,0)] + [iOS (10, 0), Mac (10, 12), TV (10, 0)] [Export ("initWithMatrix:resetsTransform:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (MatrixFloat4x4 matrix, bool resetsTransform); @@ -1945,7 +1939,7 @@ namespace ModelIO { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void SetRotation (Vector3 rotation, double time); - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("setMatrix:forTime:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] #if !NET @@ -1955,7 +1949,7 @@ namespace ModelIO { #if !NET [Sealed] - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("setMatrix:forTime:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void SetMatrix4x4 (MatrixFloat4x4 matrix, double time); @@ -1994,21 +1988,22 @@ namespace ModelIO { } } - interface IMDLTransformComponent {} - [iOS (9,0), Mac(10,11)] + interface IMDLTransformComponent { } + [iOS (9, 0), Mac (10, 11)] [Protocol] - interface MDLTransformComponent : MDLComponent - { + interface MDLTransformComponent : MDLComponent { [Abstract] [Export ("matrix", ArgumentSemantic.Assign)] Matrix4 Matrix { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] #if NET [Abstract] #endif @@ -2024,12 +2019,12 @@ namespace ModelIO { double MaximumTime { get; } // Added in iOS 10 SDK but it is supposed to be present in iOS 9. - [Mac (10,12)] + [Mac (10, 12)] #if NET [Abstract] #endif [Export ("keyTimes", ArgumentSemantic.Copy)] - NSNumber[] KeyTimes { get; } + NSNumber [] KeyTimes { get; } [Export ("setLocalTransform:forTime:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -2052,11 +2047,10 @@ namespace ModelIO { Matrix4 CreateGlobalTransform (MDLObject obj, double atTime); } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(MDLTexture), Name = "MDLURLTexture")] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLTexture), Name = "MDLURLTexture")] [DisableDefaultCtor] - interface MDLUrlTexture - { + interface MDLUrlTexture { [Export ("initWithData:topLeftOrigin:name:dimensions:rowStride:channelCount:channelEncoding:isCube:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor ([NullAllowed] NSData pixelData, bool topLeftOrigin, [NullAllowed] string name, Vector2i dimensions, nint rowStride, nuint channelCount, MDLTextureChannelEncoding channelEncoding, bool isCube); @@ -2068,10 +2062,9 @@ namespace ModelIO { NSUrl Url { get; set; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLVertexAttribute : NSCopying - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLVertexAttribute : NSCopying { [Export ("initWithName:format:offset:bufferIndex:")] NativeHandle Constructor (string name, MDLVertexFormat format, nuint offset, nuint bufferIndex); @@ -2087,24 +2080,26 @@ namespace ModelIO { [Export ("bufferIndex", ArgumentSemantic.Assign)] nuint BufferIndex { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("time")] double Time { get; set; } [Export ("initializationValue", ArgumentSemantic.Assign)] Vector4 InitializationValue { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // apple headers: created by MDLMesh's vertexAttributeData selector - interface MDLVertexAttributeData - { + interface MDLVertexAttributeData { [Export ("map", ArgumentSemantic.Retain)] MDLMeshBufferMap Map { get; set; } @@ -2117,15 +2112,15 @@ namespace ModelIO { [Export ("format", ArgumentSemantic.Assign)] MDLVertexFormat Format { get; set; } - [iOS (10,3), TV (10,2), Mac (10,12,4)] + [iOS (10, 3), TV (10, 2), Mac (10, 12, 4)] [Export ("bufferSize", ArgumentSemantic.Assign)] nuint BufferSize { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] - interface MDLMeshBufferMap - { + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLMeshBufferMap { // FIXME: provide better API. [Export ("initWithBytes:deallocator:")] NativeHandle Constructor (IntPtr bytes, [NullAllowed] Action deallocator); @@ -2134,10 +2129,9 @@ namespace ModelIO { IntPtr Bytes { get; } } - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLVertexDescriptor : NSCopying - { + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLVertexDescriptor : NSCopying { [Export ("initWithVertexDescriptor:")] NativeHandle Constructor (MDLVertexDescriptor vertexDescriptor); @@ -2148,9 +2142,9 @@ namespace ModelIO { [Export ("addOrReplaceAttribute:")] void AddOrReplaceAttribute (MDLVertexAttribute attribute); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("removeAttributeNamed:")] void RemoveAttribute (string name); @@ -2170,11 +2164,10 @@ namespace ModelIO { void SetPackedOffsets (); } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(MDLObject))] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (MDLObject))] [DisableDefaultCtor] - interface MDLVoxelArray - { + interface MDLVoxelArray { [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'new MDLVoxelArray (MDLAsset, int, float)'.")] #if NET @@ -2194,16 +2187,16 @@ namespace ModelIO { [Export ("initWithAsset:divisions:interiorNBWidth:exteriorNBWidth:patchRadius:")] NativeHandle Constructor (MDLAsset asset, int divisions, float interiorNBWidth, float exteriorNBWidth, float patchRadius); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithAsset:divisions:patchRadius:")] NativeHandle Constructor (MDLAsset asset, int divisions, float patchRadius); [Export ("initWithData:boundingBox:voxelExtent:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (NSData voxelData, MDLAxisAlignedBoundingBox boundingBox, float voxelExtent); - + [Export ("meshUsingAllocator:")] [return: NullAllowed] MDLMesh CreateMesh ([NullAllowed] IMDLMeshBufferAllocator allocator); @@ -2216,9 +2209,9 @@ namespace ModelIO { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] void SetVoxel (Vector4i index); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("setVoxelsForMesh:divisions:patchRadius:")] void SetVoxels (MDLMesh mesh, int divisions, float patchRadius); @@ -2311,47 +2304,47 @@ namespace ModelIO { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("convertToSignedShellField")] void ConvertToSignedShellField (); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("isValidSignedShellField")] bool IsValidSignedShellField { get; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("shellFieldInteriorThickness")] float ShellFieldInteriorThickness { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("shellFieldExteriorThickness")] float ShellFieldExteriorThickness { get; set; } - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("coarseMesh")] [return: NullAllowed] MDLMesh GetCoarseMesh (); - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("coarseMeshUsingAllocator:")] [return: NullAllowed] MDLMesh GetCoarseMeshUsingAllocator ([NullAllowed] IMDLMeshBufferAllocator allocator); } [Static] - [Mac(10,11),iOS(9,0)] + [Mac (10, 11), iOS (9, 0)] interface MDLVertexAttributes { [Field ("MDLVertexAttributeAnisotropy")] NSString Anisotropy { get; } @@ -2399,13 +2392,12 @@ namespace ModelIO { NSString TextureCoordinate { get; } } - [iOS (9,0),Mac(10,11)] - [BaseType (typeof(NSObject))] - interface MDLVertexBufferLayout : NSCopying - { - [iOS (10,0)] - [Mac (10,12)] - [TV (10,0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface MDLVertexBufferLayout : NSCopying { + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithStride:")] NativeHandle Constructor (nuint stride); @@ -2413,11 +2405,12 @@ namespace ModelIO { nuint Stride { get; set; } } - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] interface MDLSubmeshTopology { - [iOS (10,2), Mac (10,12,2)] - [TV (10,1)] + [iOS (10, 2), Mac (10, 12, 2)] + [TV (10, 1)] [Export ("initWithSubmesh:")] NativeHandle Constructor (MDLSubmesh submesh); @@ -2452,7 +2445,7 @@ namespace ModelIO { nuint HoleCount { get; set; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLAnimatedValue : NSCopying { @@ -2486,7 +2479,7 @@ namespace ModelIO { nuint _GetTimes (IntPtr timesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedScalarArray { @@ -2529,7 +2522,7 @@ namespace ModelIO { nuint _GetDoubleArray (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedVector3Array { @@ -2572,7 +2565,7 @@ namespace ModelIO { nuint _GetDouble3Array (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedQuaternionArray { @@ -2615,7 +2608,7 @@ namespace ModelIO { nuint _GetDoubleQuaternionArray (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedScalar { @@ -2648,7 +2641,7 @@ namespace ModelIO { nuint _GetDoubleArray (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedVector2 { @@ -2685,7 +2678,7 @@ namespace ModelIO { nuint _GetDouble2Array (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedVector3 { @@ -2722,7 +2715,7 @@ namespace ModelIO { nuint _GetDouble3Array (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedVector4 { @@ -2759,7 +2752,7 @@ namespace ModelIO { nuint _GetDouble4Array (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedMatrix4x4 { @@ -2796,33 +2789,33 @@ namespace ModelIO { nuint _GetDouble4x4Array (IntPtr valuesArray, nuint maxCount); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLObject))] [DisableDefaultCtor] interface MDLSkeleton : NSCopying { [Export ("jointPaths")] - string[] JointPaths { get; } + string [] JointPaths { get; } [Export ("jointBindTransforms")] MDLMatrix4x4Array JointBindTransforms { get; } - [iOS (12,0), Mac (10,14), TV (12,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0)] [Export ("jointRestTransforms")] MDLMatrix4x4Array JointRestTransforms { get; } [Export ("initWithName:jointPaths:")] - NativeHandle Constructor (string name, string[] jointPaths); + NativeHandle Constructor (string name, string [] jointPaths); } interface IMDLJointAnimation { } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Protocol] interface MDLJointAnimation { } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (MDLObject))] [DisableDefaultCtor] interface MDLPackedJointAnimation : NSCopying, MDLJointAnimation { @@ -2843,7 +2836,7 @@ namespace ModelIO { NativeHandle Constructor (string name, string [] jointPaths); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLAnimationBindComponent : NSCopying, MDLComponent { @@ -2865,9 +2858,9 @@ namespace ModelIO { } } - interface IMDLAssetResolver {} + interface IMDLAssetResolver { } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Protocol] interface MDLAssetResolver { @@ -2880,7 +2873,7 @@ namespace ModelIO { NSUrl ResolveAsset (string name); } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MDLRelativeAssetResolver : MDLAssetResolver { @@ -2892,7 +2885,7 @@ namespace ModelIO { MDLAsset Asset { get; set; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MDLPathAssetResolver : MDLAssetResolver { @@ -2904,7 +2897,7 @@ namespace ModelIO { string Path { get; set; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MDLBundleAssetResolver : MDLAssetResolver { @@ -2916,9 +2909,9 @@ namespace ModelIO { string Path { get; set; } } - interface IMDLTransformOp {} + interface IMDLTransformOp { } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [Protocol] interface MDLTransformOp { @@ -2941,7 +2934,7 @@ namespace ModelIO { bool IsInverseOp { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformRotateXOp : MDLTransformOp { @@ -2953,7 +2946,7 @@ namespace ModelIO { MDLAnimatedScalar AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformRotateYOp : MDLTransformOp { @@ -2965,7 +2958,7 @@ namespace ModelIO { MDLAnimatedScalar AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformRotateZOp : MDLTransformOp { @@ -2977,7 +2970,7 @@ namespace ModelIO { MDLAnimatedScalar AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformRotateOp : MDLTransformOp { @@ -2989,7 +2982,7 @@ namespace ModelIO { MDLAnimatedVector3 AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformTranslateOp : MDLTransformOp { @@ -3001,7 +2994,7 @@ namespace ModelIO { MDLAnimatedVector3 AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformScaleOp : MDLTransformOp { @@ -3013,7 +3006,7 @@ namespace ModelIO { MDLAnimatedVector3 AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformMatrixOp : MDLTransformOp { @@ -3025,7 +3018,7 @@ namespace ModelIO { MDLAnimatedMatrix4x4 AnimatedValue { get; } } - [iOS (13,0), Mac (10,15), TV (13,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0)] [BaseType (typeof (NSObject))] interface MDLTransformOrientOp : MDLTransformOp { @@ -3037,7 +3030,7 @@ namespace ModelIO { MDLAnimatedQuaternion AnimatedValue { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] interface MDLTransformStack : NSCopying, MDLTransformComponent { @@ -3062,7 +3055,7 @@ namespace ModelIO { [Export ("addMatrixOp:inverse:")] MDLTransformMatrixOp AddMatrixOp (string animatedValueName, bool inverse); - [iOS (13,0), Mac (10,15), TV (13,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0)] [Export ("addOrientOp:inverse:")] MDLTransformOrientOp AddOrientOp (string animatedValueName, bool inverse); @@ -3088,7 +3081,7 @@ namespace ModelIO { IMDLTransformOp [] TransformOps { get; } } - [iOS (11,0), Mac (10,13), TV (11,0)] + [iOS (11, 0), Mac (10, 13), TV (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MDLMatrix4x4Array : NSCopying { @@ -3122,7 +3115,7 @@ namespace ModelIO { nuint _GetDouble4x4Array (IntPtr valuesArray, nuint maxCount); } - [iOS (13,0), Mac (10,15), TV (13,0)] + [iOS (13, 0), Mac (10, 15), TV (13, 0)] [BaseType (typeof (MDLAnimatedValue))] interface MDLAnimatedQuaternion { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] diff --git a/src/multipeerconnectivity.cs b/src/multipeerconnectivity.cs index 54ba4aaada..eb5957fddf 100644 --- a/src/multipeerconnectivity.cs +++ b/src/multipeerconnectivity.cs @@ -24,8 +24,9 @@ using NativeHandle = System.IntPtr; namespace MultipeerConnectivity { - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[MCPeerID init]: unrecognized selector sent to instance 0x7d721090 partial interface MCPeerID : NSCopying, NSSecureCoding { @@ -40,8 +41,9 @@ namespace MultipeerConnectivity { delegate void MCSessionNearbyConnectionDataForPeerCompletionHandler (NSData connectionData, NSError error); - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash when calling `description` selector partial interface MCSession { @@ -93,7 +95,7 @@ namespace MultipeerConnectivity { [Field ("kMCSessionMaximumNumberOfPeers")] nint MaximumNumberOfPeers { get; } - + [Field ("kMCSessionMinimumNumberOfPeers")] nint MinimumNumberOfPeers { get; } @@ -108,12 +110,13 @@ namespace MultipeerConnectivity { [Export ("cancelConnectPeer:")] void CancelConnectPeer (MCPeerID peerID); - + #endregion } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -139,11 +142,12 @@ namespace MultipeerConnectivity { void DidReceiveStream (MCSession session, NSInputStream stream, string streamName, MCPeerID peerID); [Export ("session:didReceiveCertificate:fromPeer:certificateHandler:")] - bool DidReceiveCertificate (MCSession session, [NullAllowed] SecCertificate[] certificate, MCPeerID peerID, Action certificateHandler); + bool DidReceiveCertificate (MCSession session, [NullAllowed] SecCertificate [] certificate, MCPeerID peerID, Action certificateHandler); } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException -[MCNearbyServiceAdvertiser init]: unrecognized selector sent to instance 0x19195e50 partial interface MCNearbyServiceAdvertiser { @@ -178,8 +182,9 @@ namespace MultipeerConnectivity { delegate void MCNearbyServiceAdvertiserInvitationHandler (bool accept, [NullAllowed] MCSession session); - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -193,8 +198,9 @@ namespace MultipeerConnectivity { void DidNotStartAdvertisingPeer (MCNearbyServiceAdvertiser advertiser, NSError error); } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException -[MCNearbyServiceBrowser init]: unrecognized selector sent to instance 0x15519a70 partial interface MCNearbyServiceBrowser { @@ -226,8 +232,9 @@ namespace MultipeerConnectivity { string ServiceType { get; } } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -245,11 +252,11 @@ namespace MultipeerConnectivity { void DidNotStartBrowsingForPeers (MCNearbyServiceBrowser browser, NSError error); } - interface IMCNearbyServiceBrowserDelegate {} + interface IMCNearbyServiceBrowserDelegate { } - [Mac (10,10)] - [TV (10,0)] - [iOS (7,0)] + [Mac (10, 10)] + [TV (10, 0)] + [iOS (7, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] // NSInvalidArgumentException -[MCPeerPickerViewController initWithNibName:bundle:]: unrecognized selector sent to instance 0x15517b90 partial interface MCBrowserViewController : MCNearbyServiceBrowserDelegate { @@ -287,8 +294,9 @@ namespace MultipeerConnectivity { MCSession Session { get; } } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -308,8 +316,9 @@ namespace MultipeerConnectivity { bool ShouldPresentNearbyPeer (MCBrowserViewController browserViewController, MCPeerID peerID, [NullAllowed] NSDictionary info); } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[MCAdvertiserAssistant init]: unrecognized selector sent to instance 0x7ea7fa40 interface MCAdvertiserAssistant { @@ -342,8 +351,9 @@ namespace MultipeerConnectivity { void Stop (); } - [TV (10,0)] - [iOS (7,0)][Mac (10,10)] + [TV (10, 0)] + [iOS (7, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [Model] [Protocol] diff --git a/src/naturallanguage.cs b/src/naturallanguage.cs index 5227a092ab..6f60383a94 100644 --- a/src/naturallanguage.cs +++ b/src/naturallanguage.cs @@ -32,9 +32,9 @@ using NativeHandle = System.IntPtr; namespace NaturalLanguage { - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] [DisableDefaultCtor] // designated - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface NLLanguageRecognizer { [DesignatedInitializer] @@ -72,9 +72,9 @@ namespace NaturalLanguage { [Internal] [Export ("languageConstraints", ArgumentSemantic.Copy)] - NSString[] _LanguageConstraints { get; set; } + NSString [] _LanguageConstraints { get; set; } - NLLanguage[] LanguageConstraints { + NLLanguage [] LanguageConstraints { [Wrap ("Array.ConvertAll (_LanguageConstraints, e => NLLanguageExtensions.GetValue (e))")] get; [Wrap ("_LanguageConstraints = Array.ConvertAll (value, e => NLLanguageExtensions.GetConstant (e)!)")] @@ -82,8 +82,8 @@ namespace NaturalLanguage { } } - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] - [BaseType (typeof(NSObject))] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] + [BaseType (typeof (NSObject))] interface NLModelConfiguration : NSCopying, NSSecureCoding { [Export ("type")] NLModelType Type { get; } @@ -106,9 +106,9 @@ namespace NaturalLanguage { nuint GetCurrentRevision (NLModelType type); } - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface NLModel { [Static] [Export ("modelWithContentsOfURL:error:")] @@ -128,30 +128,29 @@ namespace NaturalLanguage { string GetPredictedLabel (string @string); [Export ("predictedLabelsForTokens:")] - string[] GetPredictedLabels (string[] tokens); + string [] GetPredictedLabels (string [] tokens); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("predictedLabelHypothesesForString:maximumCount:")] // `Native` added (like existing API) because we provide a better API with manual bindings (to avoid NSNumber) NSDictionary GetNativePredictedLabelHypotheses (string @string, nuint maximumCount); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("predictedLabelHypothesesForTokens:maximumCount:")] // `Native` added (like existing API) because we provide a better API with manual bindings (to avoid NSNumber) - NSDictionary[] GetNativePredictedLabelHypotheses (string[] tokens, nuint maximumCount); + NSDictionary [] GetNativePredictedLabelHypotheses (string [] tokens, nuint maximumCount); } delegate void NLTokenizerEnumerateContinuationHandler (NSRange tokenRange, NLTokenizerAttributes flags, out bool stop); - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface NLTokenizer - { + [BaseType (typeof (NSObject))] + interface NLTokenizer { [Export ("initWithUnit:")] [DesignatedInitializer] NativeHandle Constructor (NLTokenUnit unit); @@ -173,38 +172,37 @@ namespace NaturalLanguage { NSRange GetTokenRange (nuint characterIndex); [Export ("tokensForRange:")] - NSValue[] GetTokens (NSRange range); + NSValue [] GetTokens (NSRange range); [Export ("enumerateTokensInRange:usingBlock:")] void EnumerateTokens (NSRange range, NLTokenizerEnumerateContinuationHandler handler); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("tokenRangeForRange:")] NSRange GetTokenRange (NSRange range); } delegate void NLTaggerEnumerateTagsContinuationHandler (NSString tag, NSRange tokenRange, out bool stop); - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface NLTagger - { + [BaseType (typeof (NSObject))] + interface NLTagger { [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("initWithTagSchemes:")] [DesignatedInitializer] - NativeHandle Constructor ([Params] NSString[] tagSchemes); + NativeHandle Constructor ([Params] NSString [] tagSchemes); [Wrap ("this (Array.ConvertAll (tagSchemes, e => e.GetConstant ()!))")] - NativeHandle Constructor ([Params] NLTagScheme[] tagSchemes); + NativeHandle Constructor ([Params] NLTagScheme [] tagSchemes); [Internal] [Export ("tagSchemes", ArgumentSemantic.Copy)] - NSString[] _TagSchemes { get; } + NSString [] _TagSchemes { get; } [Wrap ("Array.ConvertAll (_TagSchemes, e => NLTagSchemeExtensions.GetValue (e))")] - NLTagScheme[] TagSchemes { get; } + NLTagScheme [] TagSchemes { get; } [NullAllowed, Export ("string", ArgumentSemantic.Retain)] string String { get; set; } @@ -212,11 +210,11 @@ namespace NaturalLanguage { [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("availableTagSchemesForUnit:language:")] - NSString[] GetAvailableTagSchemes (NLTokenUnit unit, NSString language); + NSString [] GetAvailableTagSchemes (NLTokenUnit unit, NSString language); [Static] [Wrap ("Array.ConvertAll (GetAvailableTagSchemes (unit, language.GetConstant()!), e => NLTagSchemeExtensions.GetValue (e))")] - NLTagScheme[] GetAvailableTagSchemes (NLTokenUnit unit, NLLanguage language); + NLTagScheme [] GetAvailableTagSchemes (NLTokenUnit unit, NLLanguage language); [Export ("tokenRangeAtIndex:unit:")] NSRange GetTokenRange (nuint characterIndex, NSString unit); @@ -246,10 +244,10 @@ namespace NaturalLanguage { [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("tagsInRange:unit:scheme:options:tokenRanges:")] - NSString[] GetTags (NSRange range, NLTokenUnit unit, NSString scheme, NLTaggerOptions options, [NullAllowed] out NSValue[] tokenRanges); + NSString [] GetTags (NSRange range, NLTokenUnit unit, NSString scheme, NLTaggerOptions options, [NullAllowed] out NSValue [] tokenRanges); [Wrap ("GetTags (range, unit, scheme.GetConstant ()!, options, out tokenRanges)")] - NSString[] GetTags (NSRange range, NLTokenUnit unit, NLTagScheme scheme, NLTaggerOptions options, [NullAllowed] out NSValue[] tokenRanges); + NSString [] GetTags (NSRange range, NLTokenUnit unit, NLTagScheme scheme, NLTaggerOptions options, [NullAllowed] out NSValue [] tokenRanges); [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("setLanguage:range:")] @@ -263,76 +261,77 @@ namespace NaturalLanguage { [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("setModels:forTagScheme:")] - void SetModels (NLModel[] models, NSString tagScheme); + void SetModels (NLModel [] models, NSString tagScheme); [Wrap ("SetModels (models, tagScheme.GetConstant ()!)")] - void SetModels (NLModel[] models, NLTagScheme tagScheme); + void SetModels (NLModel [] models, NLTagScheme tagScheme); [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("modelsForTagScheme:")] - NLModel[] GetModels (NSString tagScheme); + NLModel [] GetModels (NSString tagScheme); [Wrap ("GetModels (tagScheme.GetConstant ()!)")] - NLModel[] GetModels (NLTagScheme tagScheme); + NLModel [] GetModels (NLTagScheme tagScheme); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("setGazetteers:forTagScheme:")] - void SetGazetteers (NLGazetteer[] gazetteers, NSString tagScheme); + void SetGazetteers (NLGazetteer [] gazetteers, NSString tagScheme); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Wrap ("SetGazetteers (gazetteers, tagScheme.GetConstant ()!)")] - void SetGazetteers (NLGazetteer[] gazetteers, NLTagScheme tagScheme); + void SetGazetteers (NLGazetteer [] gazetteers, NLTagScheme tagScheme); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("gazetteersForTagScheme:")] - NLGazetteer[] GetGazetteers (NSString tagScheme); + NLGazetteer [] GetGazetteers (NSString tagScheme); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Wrap ("GetGazetteers (tagScheme.GetConstant ()!)")] - NLGazetteer[] GetGazetteers (NLTagScheme tagScheme); + NLGazetteer [] GetGazetteers (NLTagScheme tagScheme); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Static] [Async] [Export ("requestAssetsForLanguage:tagScheme:completionHandler:")] void RequestAssets (NSString language, NSString tagScheme, Action completionHandler); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Async] [Wrap ("RequestAssets (language.GetConstant ()!, tagScheme.GetConstant ()!, completionHandler)")] void RequestAssets (NLLanguage language, NLTagScheme tagScheme, Action completionHandler); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("tagHypothesesAtIndex:unit:scheme:maximumCount:tokenRange:")] // `Native` added (like existing API) because we provide a better API with manual bindings (to avoid NSNumber) NSDictionary GetNativeTagHypotheses (nuint characterIndex, NLTokenUnit unit, NSString scheme, nuint maximumCount, out NSRange tokenRange); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] - [Internal][Sealed] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] + [Internal] + [Sealed] [Export ("tagHypothesesAtIndex:unit:scheme:maximumCount:tokenRange:")] NSDictionary GetTagHypotheses (nuint characterIndex, NLTokenUnit unit, NSString scheme, nuint maximumCount, IntPtr tokenRange); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("GetTagHypotheses (characterIndex, unit, scheme, maximumCount, IntPtr.Zero)")] // `Native` added (like existing API) because we provide a better API with manual bindings (to avoid NSNumber) NSDictionary GetNativeTagHypotheses (nuint characterIndex, NLTokenUnit unit, NSString scheme, nuint maximumCount); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("tokenRangeForRange:unit:")] NSRange GetTokenRange (NSRange range, NLTokenUnit unit); } - [iOS (12,0), Mac (10,14), TV (12,0), Watch (5,0)] + [iOS (12, 0), Mac (10, 14), TV (12, 0), Watch (5, 0)] [Static] // only used to compare with NSString not as input/output interface NLTag { [Field ("NLTagWord")] @@ -399,13 +398,13 @@ namespace NaturalLanguage { NSString OrganizationName { get; } } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NLDistanceType : long { Cosine, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum NLTaggerAssetsResult : long { Available, @@ -413,10 +412,10 @@ namespace NaturalLanguage { Error, } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] delegate void NLEnumerateNeighborsHandler (string neighbor, /* NLDistance */ double distance, ref bool stop); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NLEmbedding { @@ -462,33 +461,33 @@ namespace NaturalLanguage { [Export ("neighborsForString:maximumCount:distanceType:")] [return: NullAllowed] - string[] GetNeighbors (string @string, nuint maxCount, NLDistanceType distanceType); + string [] GetNeighbors (string @string, nuint maxCount, NLDistanceType distanceType); [Export ("neighborsForString:maximumCount:maximumDistance:distanceType:")] [return: NullAllowed] - string[] GetNeighbors (string @string, nuint maxCount, double maxDistance, NLDistanceType distanceType); + string [] GetNeighbors (string @string, nuint maxCount, double maxDistance, NLDistanceType distanceType); [Export ("vectorForString:")] [return: NullAllowed] - [return: BindAs (typeof (float[]))] + [return: BindAs (typeof (float []))] // doc says "array of double" but other API uses float ?!? - NSNumber[] GetVector (string @string); + NSNumber [] GetVector (string @string); [Internal] // can't bind float[] without NSArray but it will be better bound using .net pattern `bool TryGetVector (string, out float[] vector)` [Export ("getVector:forString:")] bool GetVector (IntPtr /* float[] */ vector, string @string); [Export ("enumerateNeighborsForVector:maximumCount:distanceType:usingBlock:")] - void EnumerateNeighbors ([BindAs (typeof (float[]))] NSNumber[] vector, nuint maxCount, NLDistanceType distanceType, NLEnumerateNeighborsHandler handler); + void EnumerateNeighbors ([BindAs (typeof (float []))] NSNumber [] vector, nuint maxCount, NLDistanceType distanceType, NLEnumerateNeighborsHandler handler); [Export ("enumerateNeighborsForVector:maximumCount:maximumDistance:distanceType:usingBlock:")] - void EnumerateNeighbors ([BindAs (typeof (float[]))] NSNumber[] vector, nuint maxCount, double maxDistance, NLDistanceType distanceType, NLEnumerateNeighborsHandler handler); + void EnumerateNeighbors ([BindAs (typeof (float []))] NSNumber [] vector, nuint maxCount, double maxDistance, NLDistanceType distanceType, NLEnumerateNeighborsHandler handler); [Export ("neighborsForVector:maximumCount:distanceType:")] - string[] GetNeighbors ([BindAs (typeof (float[]))] NSNumber[] vector, nuint maxCount, NLDistanceType distanceType); + string [] GetNeighbors ([BindAs (typeof (float []))] NSNumber [] vector, nuint maxCount, NLDistanceType distanceType); [Export ("neighborsForVector:maximumCount:maximumDistance:distanceType:")] - string[] GetNeighbors ([BindAs (typeof (float[]))] NSNumber[] vector, nuint maxCount, double maxDistance, NLDistanceType distanceType); + string [] GetNeighbors ([BindAs (typeof (float []))] NSNumber [] vector, nuint maxCount, double maxDistance, NLDistanceType distanceType); [Export ("dimension")] nuint Dimension { get; } @@ -531,63 +530,63 @@ namespace NaturalLanguage { bool Write (NLVectorDictionary dictionary, NLLanguage? language, nuint revision, NSUrl url, [NullAllowed] out NSError error); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("currentSentenceEmbeddingRevisionForLanguage:")] nuint GetCurrentSentenceEmbeddingRevision (NSString language); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Wrap ("GetCurrentSentenceEmbeddingRevision (language.GetConstant ()!)")] nuint GetCurrentSentenceEmbeddingRevision (NLLanguage language); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("sentenceEmbeddingForLanguage:")] [return: NullAllowed] NLEmbedding GetSentenceEmbedding (NSString language); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Wrap ("GetSentenceEmbedding (language.GetConstant ()!)")] [return: NullAllowed] NLEmbedding GetSentenceEmbedding (NLLanguage language); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("sentenceEmbeddingForLanguage:revision:")] [return: NullAllowed] NLEmbedding GetSentenceEmbedding (NSString language, nuint revision); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Wrap ("GetSentenceEmbedding (language.GetConstant ()!, revision)")] [return: NullAllowed] NLEmbedding GetSentenceEmbedding (NLLanguage language, nuint revision); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("supportedSentenceEmbeddingRevisionsForLanguage:")] NSIndexSet GetSupportedSentenceEmbeddingRevisions (NSString language); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Wrap ("GetSupportedSentenceEmbeddingRevisions (language.GetConstant ()!)")] NSIndexSet GetSupportedSentenceEmbeddingRevisions (NLLanguage language); } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NLGazetteer { diff --git a/src/nearbyinteraction.cs b/src/nearbyinteraction.cs index ba2300aad4..0d30159912 100644 --- a/src/nearbyinteraction.cs +++ b/src/nearbyinteraction.cs @@ -31,41 +31,39 @@ using NativeHandle = System.IntPtr; namespace NearbyInteraction { - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NIConfiguration : NSCopying, NSSecureCoding {} + interface NIConfiguration : NSCopying, NSSecureCoding { } - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NIDiscoveryToken : NSCopying, NSSecureCoding {} + interface NIDiscoveryToken : NSCopying, NSSecureCoding { } - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NIConfiguration))] [DisableDefaultCtor] - interface NINearbyPeerConfiguration - { + interface NINearbyPeerConfiguration { [Export ("peerDiscoveryToken", ArgumentSemantic.Copy)] NIDiscoveryToken PeerDiscoveryToken { get; } [Export ("initWithPeerToken:")] NativeHandle Constructor (NIDiscoveryToken peerToken); - [NoWatch, iOS (16,0), MacCatalyst (16,0), NoTV, NoMac] + [NoWatch, iOS (16, 0), MacCatalyst (16, 0), NoTV, NoMac] [Export ("cameraAssistanceEnabled")] bool CameraAssistanceEnabled { [Bind ("isCameraAssistanceEnabled")] get; set; } } - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - partial interface NINearbyObject : NSCopying, NSSecureCoding - { + partial interface NINearbyObject : NSCopying, NSSecureCoding { [Export ("discoveryToken", ArgumentSemantic.Copy)] NIDiscoveryToken DiscoveryToken { get; } @@ -81,24 +79,23 @@ namespace NearbyInteraction { [Field ("NINearbyObjectDistanceNotAvailable")] float DistanceNotAvailable { get; } - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Field ("NINearbyObjectAngleNotAvailable")] float AngleNotAvailable { get; } - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("verticalDirectionEstimate")] NINearbyObjectVerticalDirectionEstimate VerticalDirectionEstimate { get; } - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("horizontalAngle")] float HorizontalAngle { get; } } - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface NISession - { + interface NISession { [Static] [Export ("supported")] bool IsSupported { [Bind ("isSupported")] get; } @@ -128,25 +125,25 @@ namespace NearbyInteraction { [Export ("invalidate")] void Invalidate (); - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("setARSession:")] void SetARSession (ARSession session); - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("worldTransformForObject:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] MatrixFloat4x4 GetWorldTransform (NINearbyObject @object); - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("deviceCapabilities")] INIDeviceCapability DeviceCapabilities { get; } } - interface INISessionDelegate {} + interface INISessionDelegate { } - [Watch (8,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (8, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -154,13 +151,12 @@ namespace NearbyInteraction { [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NISessionDelegate - { + interface NISessionDelegate { [Export ("session:didUpdateNearbyObjects:")] - void DidSessionUpdateNearbyObjects (NISession session, NINearbyObject[] nearbyObjects); + void DidSessionUpdateNearbyObjects (NISession session, NINearbyObject [] nearbyObjects); [Export ("session:didRemoveNearbyObjects:withReason:")] - void DidSessionRemoveNearbyObjects (NISession session, NINearbyObject[] nearbyObjects, NINearbyObjectRemovalReason reason); + void DidSessionRemoveNearbyObjects (NISession session, NINearbyObject [] nearbyObjects, NINearbyObjectRemovalReason reason); [Export ("sessionWasSuspended:")] void SessionWasSuspended (NISession session); @@ -171,42 +167,40 @@ namespace NearbyInteraction { [Export ("session:didInvalidateWithError:")] void DidSessionInvalidate (NISession session, NSError error); - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("session:didGenerateShareableConfigurationData:forObject:")] void DidGenerateShareableConfigurationData (NISession session, NSData shareableConfigurationData, NINearbyObject @object); - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("session:didUpdateAlgorithmConvergence:forObject:")] void DidUpdateAlgorithmConvergence (NISession session, NIAlgorithmConvergence convergence, [NullAllowed] NINearbyObject @object); - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Export ("sessionDidStartRunning:")] void DidSessionStartRunning (NISession session); } - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NIConfiguration))] [DisableDefaultCtor] - interface NINearbyAccessoryConfiguration - { + interface NINearbyAccessoryConfiguration { [Export ("accessoryDiscoveryToken", ArgumentSemantic.Copy)] NIDiscoveryToken AccessoryDiscoveryToken { get; } [Export ("initWithData:error:")] NativeHandle Constructor (NSData data, [NullAllowed] out NSError error); - [iOS (16,0), NoMac, NoWatch, NoTV, MacCatalyst (16,0)] + [iOS (16, 0), NoMac, NoWatch, NoTV, MacCatalyst (16, 0)] [Export ("initWithAccessoryData:bluetoothPeerIdentifier:error:")] NativeHandle Constructor (NSData accessoryData, NSUuid identifier, [NullAllowed] out NSError error); - [iOS (16,0), NoMac, NoWatch, NoTV, MacCatalyst (16,0)] + [iOS (16, 0), NoMac, NoWatch, NoTV, MacCatalyst (16, 0)] [Export ("cameraAssistanceEnabled")] bool CameraAssistanceEnabled { [Bind ("isCameraAssistanceEnabled")] get; set; } } - [iOS (16,0), NoMac, Watch (9,0), NoTV, MacCatalyst (16,0)] - public enum NIAlgorithmConvergenceStatusReason - { + [iOS (16, 0), NoMac, Watch (9, 0), NoTV, MacCatalyst (16, 0)] + public enum NIAlgorithmConvergenceStatusReason { [Field ("NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep")] InsufficientHorizontalSweep, @@ -220,12 +214,11 @@ namespace NearbyInteraction { InsufficientLighting, } - interface INIDeviceCapability {} + interface INIDeviceCapability { } - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface NIDeviceCapability - { + interface NIDeviceCapability { [Abstract] [Export ("supportsPreciseDistanceMeasurement")] bool SupportsPreciseDistanceMeasurement { get; } @@ -239,15 +232,14 @@ namespace NearbyInteraction { bool SupportsCameraAssistance { get; } } - [Watch (9,0), NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NIAlgorithmConvergence : NSCopying, NSSecureCoding - { + interface NIAlgorithmConvergence : NSCopying, NSSecureCoding { [Export ("status")] NIAlgorithmConvergenceStatus Status { get; } [Export ("reasons")] - string[] Reasons { get; } + string [] Reasons { get; } } } diff --git a/src/network.cs b/src/network.cs index 4829f73fbc..cbbb9ad797 100644 --- a/src/network.cs +++ b/src/network.cs @@ -7,8 +7,8 @@ using CoreFoundation; namespace Network { - [TV (12,0), Mac (10,14), iOS (12,0)] - [Watch (6,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] + [Watch (6, 0)] public enum NWErrorDomain { Invalid = 0, [Field ("kNWErrorDomainPOSIX")] @@ -19,14 +19,14 @@ namespace Network { Tls = 3, } - [TV (12,0), Mac (10,14), iOS (12,0)] - [Watch (6,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] + [Watch (6, 0)] [Static] [Internal] partial interface NWContentContextConstants { [Field ("_nw_content_context_default_message")] IntPtr _DefaultMessage { get; } - + [Field ("_nw_content_context_final_send")] IntPtr _FinalSend { get; } @@ -34,8 +34,8 @@ namespace Network { IntPtr _DefaultStream { get; } } - [TV (12,0), Mac (10,14), iOS (12,0)] - [Watch (6,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] + [Watch (6, 0)] [Static] [Internal] partial interface NWConnectionConstants { @@ -44,8 +44,8 @@ namespace Network { IntPtr _SendIdempotentContent { get; } } - [TV (12,0), Mac (10,14), iOS (12,0)] - [Watch (6,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] + [Watch (6, 0)] [Static] [Internal] partial interface NWParametersConstants { @@ -56,17 +56,20 @@ namespace Network { IntPtr _ProtocolDisable { get; } } - + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Internal] partial interface NWPrivacyContextConstants { - + [Field ("_nw_privacy_context_default_context")] IntPtr _DefaultContext { get; } } - [iOS (14,2)][TV (14,2)][Watch (7,1)][Mac (11,0)] + [iOS (14, 2)] + [TV (14, 2)] + [Watch (7, 1)] + [Mac (11, 0)] // untyped `nw_path_unsatisfied_reason_t` enum enum NWPathUnsatisfiedReason { NotAvailable = 0, diff --git a/src/networkextension.cs b/src/networkextension.cs index c01b93bb2b..466018b5e2 100644 --- a/src/networkextension.cs +++ b/src/networkextension.cs @@ -28,8 +28,8 @@ namespace NetworkExtension { interface NWParameters { } [ErrorDomain ("NEDNSProxyErrorDomain")] - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [Native] enum NEDnsProxyManagerError : long { Invalid = 1, @@ -38,8 +38,8 @@ namespace NetworkExtension { CannotBeRemoved = 4, } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [Native] enum NEFilterAction : long { Invalid = 0, @@ -49,7 +49,7 @@ namespace NetworkExtension { FilterData = 4, } - [iOS (11,0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [Native] enum NEVpnIkev2TlsVersion : long { Default = 0, @@ -58,7 +58,7 @@ namespace NetworkExtension { Tls1_2 = 3, } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Native] enum NEHotspotConfigurationEapType : long { Tls = 13, @@ -67,7 +67,7 @@ namespace NetworkExtension { Fast = 43, } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Native] enum NEHotspotConfigurationTtlsInnerAuthenticationType : long { Pap = 0, @@ -77,7 +77,7 @@ namespace NetworkExtension { Eap = 4, } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Native] enum NEHotspotConfigurationEapTlsVersion : long { Tls1_0 = 0, @@ -85,7 +85,7 @@ namespace NetworkExtension { Tls1_2 = 2, } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [Native] [ErrorDomain ("NEHotspotConfigurationErrorDomain")] public enum NEHotspotConfigurationError : long { @@ -108,14 +108,15 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [Native] enum NEFilterManagerGrade : long { Firewall = 1, Inspector = 2, } - [Mac (10,15)][iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Native] enum NETrafficDirection : long { Any = 0, @@ -124,7 +125,7 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [Native] enum NENetworkRuleProtocol : long { Any = 0, @@ -133,7 +134,7 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [Native] enum NEFilterPacketProviderVerdict : long { Allow = 0, @@ -141,17 +142,19 @@ namespace NetworkExtension { Delay = 2, } - [Mac (10,15)][iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Native] enum NEFilterReportEvent : long { NewFlow = 1, DataDecision = 2, FlowClosed = 3, - [Mac (10,15,4)][NoiOS] + [Mac (10, 15, 4)] + [NoiOS] Statistics = 4, } - [NoWatch, NoTV, NoiOS, Mac (10,15,4), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), NoMacCatalyst] [Native] enum NEFilterReportFrequency : long { None, @@ -160,16 +163,15 @@ namespace NetworkExtension { High, } - [NoWatch, NoTV, NoiOS, Mac (10,15,5), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 5), NoMacCatalyst] [Native] public enum NEFilterDataAttribute : long { HasIpHeader = 1, } - [Watch (8,0), NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Native] - enum NEHotspotNetworkSecurityType : long - { + enum NEHotspotNetworkSecurityType : long { Open = 0, Wep = 1, Personal = 2, @@ -177,11 +179,10 @@ namespace NetworkExtension { Unknown = 4, } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] [ErrorDomain ("NEVPNConnectionErrorDomain")] - public enum NEVpnConnectionError : long - { + public enum NEVpnConnectionError : long { Overslept = 1, NoNetworkAvailable = 2, UnrecoverableNetworkChange = 3, @@ -204,7 +205,8 @@ namespace NetworkExtension { } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [Abstract] // documented as such and ... [DisableDefaultCtor] // can't be created (with `init`) without crashing introspection tests @@ -212,31 +214,31 @@ namespace NetworkExtension { [Export ("openWithLocalEndpoint:completionHandler:")] [Async] void OpenWithLocalEndpoint ([NullAllowed] NWHostEndpoint localEndpoint, Action completionHandler); - + [Export ("closeReadWithError:")] void CloseRead ([NullAllowed] NSError error); - + [Export ("closeWriteWithError:")] void CloseWrite ([NullAllowed] NSError error); [Internal] - [NoWatch, NoTV, NoiOS, Mac (10,15,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Export ("setMetadata:")] void SetMetadata (OS_nw_parameters nwparameters); - [NoWatch, NoTV, NoiOS, Mac (10,15,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Wrap ("SetMetadata (parameters.GetHandle ())")] void SetMetadata (NWParameters parameters); - + [Export ("metaData")] NEFlowMetaData MetaData { get; } [Internal] - [NoWatch, NoTV, Mac (10,15,4), iOS (13,4)] + [NoWatch, NoTV, Mac (10, 15, 4), iOS (13, 4)] [NullAllowed, Export ("networkInterface", ArgumentSemantic.Copy)] OS_nw_interface WeakNetworkInterface { get; set; } - [NoWatch, NoTV, Mac (10,15,4), iOS (13,4)] + [NoWatch, NoTV, Mac (10, 15, 4), iOS (13, 4)] NWInterface NetworkInterface { [Wrap ("Runtime.GetINativeObject (WeakNetworkInterface, false)!")] get; @@ -244,14 +246,15 @@ namespace NetworkExtension { set; } - [Mac (11,0)][iOS (14,2)] - [MacCatalyst (14,2)] + [Mac (11, 0)] + [iOS (14, 2)] + [MacCatalyst (14, 2)] [Export ("remoteHostname")] [NullAllowed] string RemoteHostname { get; } - [Mac (11,1), iOS (14, 3)] - [MacCatalyst (14,3)] + [Mac (11, 1), iOS (14, 3)] + [MacCatalyst (14, 3)] [Export ("isBound")] bool IsBound { get; } @@ -260,84 +263,88 @@ namespace NetworkExtension { NSString ErrorDomain { get; } #endif } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NETunnelProvider))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NETunnelProvider))] [DisableDefaultCtor] // no valid handle when `init` is called - interface NEAppProxyProvider - { + interface NEAppProxyProvider { [Export ("startProxyWithOptions:completionHandler:")] [Async] - void StartProxy ([NullAllowed] NSDictionary options, Action completionHandler); - + void StartProxy ([NullAllowed] NSDictionary options, Action completionHandler); + [Export ("stopProxyWithReason:completionHandler:")] [Async] void StopProxy (NEProviderStopReason reason, Action completionHandler); - + [Export ("cancelProxyWithError:")] void CancelProxy ([NullAllowed] NSError error); - + [Export ("handleNewFlow:")] bool HandleNewFlow (NEAppProxyFlow flow); - [Mac (10,15)][ iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("handleNewUDPFlow:initialRemoteEndpoint:")] bool HandleNewUdpFlow (NEAppProxyUdpFlow flow, NWEndpoint remoteEndpoint); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NETunnelProviderManager))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NETunnelProviderManager))] [DisableDefaultCtor] // no valid handle when `init` is called - interface NEAppProxyProviderManager - { + interface NEAppProxyProviderManager { [Static] [Export ("loadAllFromPreferencesWithCompletionHandler:")] [Async] void LoadAllFromPreferences (Action completionHandler); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NEAppProxyFlow), Name="NEAppProxyTCPFlow")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NEAppProxyFlow), Name = "NEAppProxyTCPFlow")] [DisableDefaultCtor] - interface NEAppProxyTcpFlow - { + interface NEAppProxyTcpFlow { [Export ("readDataWithCompletionHandler:")] [Async] void ReadData (Action completionHandler); - + [Export ("writeData:withCompletionHandler:")] [Async] void WriteData (NSData data, Action completionHandler); - + [Export ("remoteEndpoint")] NWEndpoint RemoteEndpoint { get; } } delegate void NEDatagramRead (NSData [] datagrams, NWEndpoint [] remoteEndpoints, NSError error); - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NEAppProxyFlow), Name="NEAppProxyUDPFlow")] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NEAppProxyFlow), Name = "NEAppProxyUDPFlow")] [DisableDefaultCtor] - interface NEAppProxyUdpFlow - { + interface NEAppProxyUdpFlow { [Export ("readDatagramsWithCompletionHandler:")] - [Async (ResultTypeName="NEDatagramReadResult")] + [Async (ResultTypeName = "NEDatagramReadResult")] void ReadDatagrams (NEDatagramRead completionHandler); - + [Export ("writeDatagrams:sentByEndpoints:completionHandler:")] [Async] - void WriteDatagrams (NSData[] datagrams, NWEndpoint[] remoteEndpoints, Action completionHandler); - + void WriteDatagrams (NSData [] datagrams, NWEndpoint [] remoteEndpoints, Action completionHandler); + [NullAllowed, Export ("localEndpoint")] NWEndpoint LocalEndpoint { get; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEAppRule : NSSecureCoding, NSCopying - { - [iOS (9, 0)][MacCatalyst (13, 1)][NoTV][NoWatch] + interface NEAppRule : NSSecureCoding, NSCopying { + [iOS (9, 0)] + [MacCatalyst (13, 1)] + [NoTV] + [NoWatch] #if NET [NoMac] #endif @@ -349,131 +356,128 @@ namespace NetworkExtension { [Export ("initWithSigningIdentifier:designatedRequirement:")] NativeHandle Constructor (string signingIdentifier, string designatedRequirement); - [NoiOS, NoTV, NoWatch, MacCatalyst (15,0)] + [NoiOS, NoTV, NoWatch, MacCatalyst (15, 0)] [Export ("matchDesignatedRequirement")] string MatchDesignatedRequirement { get; } - [iOS (9,3)] + [iOS (9, 3)] [NullAllowed, Export ("matchPath")] string MatchPath { get; set; } - + [Export ("matchSigningIdentifier")] string MatchSigningIdentifier { get; } [NullAllowed, Export ("matchDomains", ArgumentSemantic.Copy)] string [] MatchDomains { get; set; } - [NoWatch, NoTV, NoiOS, Mac (10,15,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [NullAllowed, Export ("matchTools", ArgumentSemantic.Copy)] - NEAppRule[] MatchTools { get; set; } + NEAppRule [] MatchTools { get; set; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject), Name="NEDNSSettings")] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject), Name = "NEDNSSettings")] [DisableDefaultCtor] - interface NEDnsSettings : NSSecureCoding, NSCopying - { + interface NEDnsSettings : NSSecureCoding, NSCopying { [Export ("initWithServers:")] - NativeHandle Constructor (string[] servers); - + NativeHandle Constructor (string [] servers); + [Export ("servers")] - string[] Servers { get; } - + string [] Servers { get; } + [NullAllowed, Export ("searchDomains", ArgumentSemantic.Copy)] - string[] SearchDomains { get; set; } - + string [] SearchDomains { get; set; } + [NullAllowed, Export ("domainName")] string DomainName { get; set; } - + [NullAllowed, Export ("matchDomains", ArgumentSemantic.Copy)] - string[] MatchDomains { get; set; } - + string [] MatchDomains { get; set; } + [Export ("matchDomainsNoSearch")] bool MatchDomainsNoSearch { get; set; } [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("dnsProtocol")] NEDnsProtocol DnsProtocol { get; } - [Mac (11,0), iOS (14,0), NoTV, NoWatch] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0), NoTV, NoWatch] + [MacCatalyst (14, 0)] [Notification] [Field ("NEDNSSettingsConfigurationDidChangeNotification")] NSString ConfigurationDidChangeNotification { get; } } - [iOS (9,0)] + [iOS (9, 0)] [NoMac] - [BaseType (typeof(NEFilterProvider))] + [BaseType (typeof (NEFilterProvider))] [DisableDefaultCtor] // no valid handle when `init` is called - interface NEFilterControlProvider - { + interface NEFilterControlProvider { [NullAllowed, Export ("remediationMap", ArgumentSemantic.Copy)] - NSDictionary> RemediationMap { get; set; } - + NSDictionary> RemediationMap { get; set; } + [NullAllowed, Export ("URLAppendStringMap", ArgumentSemantic.Copy)] - NSDictionary UrlAppendStringMap { get; set; } - - [iOS (11,0)] // also in base type - but only on iOS13+ (so we rre-define it here) + NSDictionary UrlAppendStringMap { get; set; } + + [iOS (11, 0)] // also in base type - but only on iOS13+ (so we rre-define it here) [Export ("handleReport:")] void HandleReport (NEFilterReport report); [Export ("handleRemediationForFlow:completionHandler:")] [Async] void HandleRemediationForFlow (NEFilterFlow flow, Action completionHandler); - + [Export ("handleNewFlow:completionHandler:")] [Async] void HandleNewFlow (NEFilterFlow flow, Action completionHandler); - + [Export ("notifyRulesChanged")] void NotifyRulesChanged (); } - [iOS (9,0)] + [iOS (9, 0)] [NoMac] - [BaseType (typeof(NEFilterNewFlowVerdict))] - interface NEFilterControlVerdict : NSSecureCoding, NSCopying - { + [BaseType (typeof (NEFilterNewFlowVerdict))] + interface NEFilterControlVerdict : NSSecureCoding, NSCopying { [Static] [Export ("allowVerdictWithUpdateRules:")] NEFilterControlVerdict AllowVerdictWithUpdateRules (bool updateRules); - + [Static] [Export ("dropVerdictWithUpdateRules:")] NEFilterControlVerdict DropVerdictWithUpdateRules (bool updateRules); - + [Static] [Export ("updateRules")] NEFilterControlVerdict UpdateRules (); } - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NEFilterProvider))] + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NEFilterProvider))] [DisableDefaultCtor] // no valid handle when `init` is called - interface NEFilterDataProvider - { + interface NEFilterDataProvider { [Export ("handleNewFlow:")] NEFilterNewFlowVerdict HandleNewFlow (NEFilterFlow flow); - + [Export ("handleInboundDataFromFlow:readBytesStartOffset:readBytes:")] NEFilterDataVerdict HandleInboundDataFromFlow (NEFilterFlow flow, nuint offset, NSData readBytes); - + [Export ("handleOutboundDataFromFlow:readBytesStartOffset:readBytes:")] NEFilterDataVerdict HandleOutboundDataFromFlow (NEFilterFlow flow, nuint offset, NSData readBytes); - + [Export ("handleInboundDataCompleteForFlow:")] NEFilterDataVerdict HandleInboundDataCompleteForFlow (NEFilterFlow flow); - + [Export ("handleOutboundDataCompleteForFlow:")] NEFilterDataVerdict HandleOutboundDataCompleteForFlow (NEFilterFlow flow); - + [NoMac] [Export ("handleRemediationForFlow:")] NEFilterRemediationVerdict HandleRemediationForFlow (NEFilterFlow flow); - + [NoMac] [Export ("handleRulesChanged")] void HandleRulesChanged (); @@ -487,75 +491,73 @@ namespace NetworkExtension { [Export ("resumeFlow:withVerdict:")] void ResumeFlow (NEFilterFlow flow, NEFilterVerdict verdict); - [NoWatch, NoTV, NoiOS, Mac (10,15,4), NoMacCatalyst] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), NoMacCatalyst] [Export ("updateFlow:usingVerdict:forDirection:")] void UpdateFlow (NEFilterSocketFlow flow, NEFilterDataVerdict verdict, NETrafficDirection direction); } - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NEFilterVerdict))] - interface NEFilterDataVerdict : NSSecureCoding, NSCopying - { - [NoWatch, NoTV, NoiOS, Mac (10,15,4), NoMacCatalyst] + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NEFilterVerdict))] + interface NEFilterDataVerdict : NSSecureCoding, NSCopying { + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), NoMacCatalyst] [Export ("statisticsReportFrequency", ArgumentSemantic.Assign)] NEFilterReportFrequency StatisticsReportFrequency { get; set; } [Static] [Export ("allowVerdict")] NEFilterDataVerdict AllowVerdict (); - + [Static] [Export ("dropVerdict")] NEFilterDataVerdict DropVerdict (); - + [Static] [Export ("remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:")] NEFilterDataVerdict RemediateVerdict ([NullAllowed] string remediationUrlMapKey, [NullAllowed] string remediationButtonTextMapKey); - + [Static] [Export ("dataVerdictWithPassBytes:peekBytes:")] NEFilterDataVerdict DataVerdict (nuint passBytes, nuint peekBytes); - + [Static] [Export ("needRulesVerdict")] NEFilterDataVerdict NeedRulesVerdict (); - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Static] [Export ("pauseVerdict")] NEFilterDataVerdict PauseVerdict (); } - - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] - interface NEFilterFlow : NSSecureCoding, NSCopying - { + + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] + interface NEFilterFlow : NSSecureCoding, NSCopying { [NullAllowed, Export ("URL")] NSUrl Url { get; } - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("sourceAppUniqueIdentifier")] NSData SourceAppUniqueIdentifier { get; } - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("sourceAppIdentifier")] string SourceAppIdentifier { get; } - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("sourceAppVersion")] string SourceAppVersion { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("direction")] NETrafficDirection Direction { get; } - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [NullAllowed, Export ("sourceAppAuditToken")] NSData SourceAppAuditToken { get; } - [Mac (13,0), NoiOS, NoMacCatalyst, NoWatch, NoTV] + [Mac (13, 0), NoiOS, NoMacCatalyst, NoWatch, NoTV] [NullAllowed] [Export ("sourceProcessAuditToken")] NSData SourceProcessAuditToken { get; } @@ -566,7 +568,8 @@ namespace NetworkExtension { } // according to Xcode7 SDK this was available (in parts) in iOS8 - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NEFilterManager { @@ -589,7 +592,8 @@ namespace NetworkExtension { [NullAllowed, Export ("localizedDescription")] string LocalizedDescription { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("providerConfiguration", ArgumentSemantic.Strong)] NEFilterProviderConfiguration ProviderConfiguration { get; set; } @@ -601,7 +605,7 @@ namespace NetworkExtension { NSString ConfigurationDidChangeNotification { get; } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [Export ("grade", ArgumentSemantic.Assign)] NEFilterManagerGrade Grade { get; set; } @@ -611,11 +615,10 @@ namespace NetworkExtension { #endif } - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NEFilterVerdict))] - interface NEFilterNewFlowVerdict : NSSecureCoding, NSCopying - { + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NEFilterVerdict))] + interface NEFilterNewFlowVerdict : NSSecureCoding, NSCopying { [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), NoMacCatalyst] [Export ("statisticsReportFrequency", ArgumentSemantic.Assign)] NEFilterReportFrequency StatisticsReportFrequency { get; set; } @@ -623,51 +626,50 @@ namespace NetworkExtension { [Static] [Export ("needRulesVerdict")] NEFilterNewFlowVerdict NeedRulesVerdict (); - + [Static] [Export ("allowVerdict")] NEFilterNewFlowVerdict AllowVerdict (); - + [Static] [Export ("dropVerdict")] - NEFilterNewFlowVerdict DropVerdict (); - + NEFilterNewFlowVerdict DropVerdict (); + [Static] [Export ("remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:")] NEFilterNewFlowVerdict RemediateVerdict (string remediationUrlMapKey, string remediationButtonTextMapKey); - + [Static] [Export ("URLAppendStringVerdictWithMapKey:")] NEFilterNewFlowVerdict UrlAppendStringVerdict (string urlAppendMapKey); - + [Static] [Export ("filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:")] NEFilterNewFlowVerdict FilterDataVerdict (bool filterInbound, nuint peekInboundBytes, bool filterOutbound, nuint peekOutboundBytes); - [NoiOS, MacCatalyst (15,0)] + [NoiOS, MacCatalyst (15, 0)] [Static] [Export ("pauseVerdict")] NEFilterDataVerdict PauseVerdict (); } - - [Mac (10,15)] - [iOS (9,0)] - [BaseType (typeof(NEProvider))] + + [Mac (10, 15)] + [iOS (9, 0)] + [BaseType (typeof (NEProvider))] [Abstract] // documented as such - interface NEFilterProvider - { + interface NEFilterProvider { [Export ("startFilterWithCompletionHandler:")] [Async] void StartFilter (Action completionHandler); - + [Export ("stopFilterWithReason:completionHandler:")] [Async] void StopFilter (NEProviderStopReason reason, Action completionHandler); - [iOS (13,0)] // new in this (base) type + [iOS (13, 0)] // new in this (base) type [Export ("handleReport:")] void HandleReport (NEFilterReport report); - + [Export ("filterConfiguration")] NEFilterProviderConfiguration FilterConfiguration { get; } @@ -684,108 +686,107 @@ namespace NetworkExtension { NSString RemediationMapRemediationUrls { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] - interface NEFilterProviderConfiguration : NSSecureCoding, NSCopying - { - [Deprecated (PlatformName.MacOSX, 10,15, message: "Not supported on the platform.")] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface NEFilterProviderConfiguration : NSSecureCoding, NSCopying { + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Not supported on the platform.")] [Export ("filterBrowsers")] bool FilterBrowsers { get; set; } - + [Export ("filterSockets")] bool FilterSockets { get; set; } - + [NullAllowed, Export ("vendorConfiguration", ArgumentSemantic.Copy)] - NSDictionary VendorConfiguration { get; set; } - + NSDictionary VendorConfiguration { get; set; } + [NullAllowed, Export ("serverAddress")] string ServerAddress { get; set; } - + [NullAllowed, Export ("username")] string Username { get; set; } - + [NullAllowed, Export ("organization")] string Organization { get; set; } - + [NullAllowed, Export ("passwordReference", ArgumentSemantic.Copy)] NSData PasswordReference { get; set; } - + [NullAllowed, Export ("identityReference", ArgumentSemantic.Copy)] NSData IdentityReference { get; set; } [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [Export ("filterPackets")] bool FilterPackets { get; set; } [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [NullAllowed, Export ("filterDataProviderBundleIdentifier")] string FilterDataProviderBundleIdentifier { get; set; } [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [NullAllowed, Export ("filterPacketProviderBundleIdentifier")] string FilterPacketProviderBundleIdentifier { get; set; } } - [iOS (9,0)] + [iOS (9, 0)] [NoMac] - [BaseType (typeof(NEFilterVerdict))] - interface NEFilterRemediationVerdict : NSSecureCoding, NSCopying - { + [BaseType (typeof (NEFilterVerdict))] + interface NEFilterRemediationVerdict : NSSecureCoding, NSCopying { [Static] [Export ("allowVerdict")] NEFilterRemediationVerdict AllowVerdict (); - + [Static] [Export ("dropVerdict")] NEFilterRemediationVerdict DropVerdict (); - + [Static] [Export ("needRulesVerdict")] NEFilterRemediationVerdict NeedRulesVerdict (); } - [iOS (9,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] - interface NEFilterVerdict : NSSecureCoding, NSCopying - { - [iOS (11,0)] + [iOS (9, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] + interface NEFilterVerdict : NSSecureCoding, NSCopying { + [iOS (11, 0)] [Export ("shouldReport")] bool ShouldReport { get; set; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] - interface NEFlowMetaData : NSCopying, NSSecureCoding - { + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface NEFlowMetaData : NSCopying, NSSecureCoding { [Export ("sourceAppUniqueIdentifier")] NSData SourceAppUniqueIdentifier { get; } - + [Export ("sourceAppSigningIdentifier")] string SourceAppSigningIdentifier { get; } [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [NullAllowed, Export ("sourceAppAuditToken")] NSData SourceAppAuditToken { get; } - [NoWatch, NoTV, NoiOS, Mac (10,15,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [NullAllowed, Export ("filterFlowIdentifier")] NSUuid FilterFlowIdentifier { get; } } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] delegate void NEHotspotHelperHandler (NEHotspotHelperCommand cmd); [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface NEHotspotHelper { - [Static][Internal] + [Static] + [Internal] [Export ("registerWithOptions:queue:handler:")] bool Register ([NullAllowed] NSDictionary options, DispatchQueue queue, NEHotspotHelperHandler handler); @@ -799,19 +800,19 @@ namespace NetworkExtension { [Static, NullAllowed] [Export ("supportedNetworkInterfaces")] - NEHotspotNetwork[] SupportedNetworkInterfaces { get; } + NEHotspotNetwork [] SupportedNetworkInterfaces { get; } } [Static] [NoMac] - [iOS (9,0)] + [iOS (9, 0)] interface NEHotspotHelperOptionInternal { [Field ("kNEHotspotHelperOptionDisplayName")] NSString DisplayName { get; } } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Category] [BaseType (typeof (NSMutableUrlRequest))] interface NSMutableURLRequest_NEHotspotHelper { @@ -820,7 +821,7 @@ namespace NetworkExtension { } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface NEHotspotHelperCommand { [Export ("commandType")] @@ -830,7 +831,7 @@ namespace NetworkExtension { NEHotspotNetwork Network { get; } [NullAllowed, Export ("networkList")] - NEHotspotNetwork[] NetworkList { get; } + NEHotspotNetwork [] NetworkList { get; } [Export ("createResponse:")] NEHotspotHelperResponse CreateResponse (NEHotspotHelperResult result); @@ -843,22 +844,22 @@ namespace NetworkExtension { } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface NEHotspotHelperResponse { [Export ("setNetwork:")] void SetNetwork (NEHotspotNetwork network); [Export ("setNetworkList:")] - void SetNetworkList (NEHotspotNetwork[] networkList); + void SetNetworkList (NEHotspotNetwork [] networkList); [Export ("deliver")] void Deliver (); } [NoMac] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] interface NEHotspotNetwork { [Export ("SSID")] string Ssid { get; } @@ -888,80 +889,80 @@ namespace NetworkExtension { void SetPassword (string password); [Async] - [Watch (7,0), NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0), NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("fetchCurrentWithCompletionHandler:")] void FetchCurrent (Action completionHandler); - [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("securityType")] NEHotspotNetworkSecurityType SecurityType { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEIPv4Route : NSSecureCoding, NSCopying - { + interface NEIPv4Route : NSSecureCoding, NSCopying { [Export ("initWithDestinationAddress:subnetMask:")] NativeHandle Constructor (string address, string subnetMask); - + [Export ("destinationAddress")] string DestinationAddress { get; } - + [Export ("destinationSubnetMask")] string DestinationSubnetMask { get; } - + [NullAllowed, Export ("gatewayAddress")] string GatewayAddress { get; set; } - + [Static] [Export ("defaultRoute")] NEIPv4Route DefaultRoute { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEIPv6Route : NSSecureCoding, NSCopying - { + interface NEIPv6Route : NSSecureCoding, NSCopying { [Export ("initWithDestinationAddress:networkPrefixLength:")] NativeHandle Constructor (string address, NSNumber networkPrefixLength); - + [Export ("destinationAddress")] string DestinationAddress { get; } - + [Export ("destinationNetworkPrefixLength")] NSNumber DestinationNetworkPrefixLength { get; } - + [NullAllowed, Export ("gatewayAddress")] string GatewayAddress { get; set; } - + [Static] [Export ("defaultRoute")] NEIPv6Route DefaultRoute { get; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEIPv4Settings : NSSecureCoding, NSCopying - { + interface NEIPv4Settings : NSSecureCoding, NSCopying { [Export ("initWithAddresses:subnetMasks:")] - NativeHandle Constructor (string[] addresses, string[] subnetMasks); - + NativeHandle Constructor (string [] addresses, string [] subnetMasks); + [Export ("addresses")] - string[] Addresses { get; } - + string [] Addresses { get; } + [Export ("subnetMasks")] - string[] SubnetMasks { get; } - + string [] SubnetMasks { get; } + [NullAllowed, Export ("includedRoutes", ArgumentSemantic.Copy)] - NEIPv4Route[] IncludedRoutes { get; set; } - + NEIPv4Route [] IncludedRoutes { get; set; } + [NullAllowed, Export ("excludedRoutes", ArgumentSemantic.Copy)] - NEIPv4Route[] ExcludedRoutes { get; set; } + NEIPv4Route [] ExcludedRoutes { get; set; } [NoWatch, NoTV, NoiOS, Mac (13, 0)] [Export ("router")] @@ -969,49 +970,50 @@ namespace NetworkExtension { string Router { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEIPv6Settings : NSSecureCoding, NSCopying - { + interface NEIPv6Settings : NSSecureCoding, NSCopying { [Export ("initWithAddresses:networkPrefixLengths:")] - NativeHandle Constructor (string[] addresses, NSNumber[] networkPrefixLengths); - + NativeHandle Constructor (string [] addresses, NSNumber [] networkPrefixLengths); + [Export ("addresses")] - string[] Addresses { get; } - + string [] Addresses { get; } + [Export ("networkPrefixLengths")] - NSNumber[] NetworkPrefixLengths { get; } - + NSNumber [] NetworkPrefixLengths { get; } + [NullAllowed, Export ("includedRoutes", ArgumentSemantic.Copy)] - NEIPv6Route[] IncludedRoutes { get; set; } - + NEIPv6Route [] IncludedRoutes { get; set; } + [NullAllowed, Export ("excludedRoutes", ArgumentSemantic.Copy)] - NEIPv6Route[] ExcludedRoutes { get; set; } + NEIPv6Route [] ExcludedRoutes { get; set; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init returns nil - interface NEProvider - { + interface NEProvider { [Export ("sleepWithCompletionHandler:")] [Async] void Sleep (Action completionHandler); - + [Export ("wake")] void Wake (); - + [Export ("createTCPConnectionToEndpoint:enableTLS:TLSParameters:delegate:")] NWTcpConnection CreateTcpConnectionToEndpoint (NWEndpoint remoteEndpoint, bool enableTLS, [NullAllowed] NWTlsParameters TLSParameters, [NullAllowed] NSObject connectionDelegate); - + [Export ("createUDPSessionToEndpoint:fromEndpoint:")] NWUdpSession CreateUdpSessionToEndpoint (NWEndpoint remoteEndpoint, [NullAllowed] NWHostEndpoint localEndpoint); - + [NullAllowed, Export ("defaultPath")] NWPath DefaultPath { get; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Deprecated (PlatformName.iOS, 12, 0)] [Deprecated (PlatformName.MacOSX, 10, 14)] [Export ("displayMessage:completionHandler:")] @@ -1019,108 +1021,108 @@ namespace NetworkExtension { void DisplayMessage (string message, Action completionHandler); [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [Static] [Export ("startSystemExtensionMode")] void StartSystemExtensionMode (); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] - interface NEProxySettings : NSSecureCoding, NSCopying - { + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface NEProxySettings : NSSecureCoding, NSCopying { [Export ("autoProxyConfigurationEnabled")] bool AutoProxyConfigurationEnabled { get; set; } - + [NullAllowed, Export ("proxyAutoConfigurationURL", ArgumentSemantic.Copy)] NSUrl ProxyAutoConfigurationUrl { get; set; } - + [NullAllowed, Export ("proxyAutoConfigurationJavaScript")] string ProxyAutoConfigurationJavaScript { get; set; } - + [Export ("HTTPEnabled")] bool HttpEnabled { get; set; } - + [NullAllowed, Export ("HTTPServer", ArgumentSemantic.Copy)] NEProxyServer HttpServer { get; set; } - + [Export ("HTTPSEnabled")] bool HttpsEnabled { get; set; } - + [NullAllowed, Export ("HTTPSServer", ArgumentSemantic.Copy)] NEProxyServer HttpsServer { get; set; } - + [Export ("excludeSimpleHostnames")] bool ExcludeSimpleHostnames { get; set; } - + [NullAllowed, Export ("exceptionList", ArgumentSemantic.Copy)] - string[] ExceptionList { get; set; } - + string [] ExceptionList { get; set; } + [NullAllowed, Export ("matchDomains", ArgumentSemantic.Copy)] - string[] MatchDomains { get; set; } + string [] MatchDomains { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NEProxyServer : NSSecureCoding, NSCopying - { + interface NEProxyServer : NSSecureCoding, NSCopying { [Export ("initWithAddress:port:")] NativeHandle Constructor (string address, nint port); - + [Export ("address")] string Address { get; } - + [Export ("port")] nint Port { get; } - + [Export ("authenticationRequired")] bool AuthenticationRequired { get; set; } - + [NullAllowed, Export ("username")] string Username { get; set; } - + [NullAllowed, Export ("password")] string Password { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NETunnelNetworkSettings : NSSecureCoding, NSCopying - { + interface NETunnelNetworkSettings : NSSecureCoding, NSCopying { [Export ("initWithTunnelRemoteAddress:")] NativeHandle Constructor (string address); - + [Export ("tunnelRemoteAddress")] string TunnelRemoteAddress { get; } - + [NullAllowed, Export ("DNSSettings", ArgumentSemantic.Copy)] NEDnsSettings DnsSettings { get; set; } - + [NullAllowed, Export ("proxySettings", ArgumentSemantic.Copy)] NEProxySettings ProxySettings { get; set; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NEProvider))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NEProvider))] [DisableDefaultCtor] // init returns nil - interface NETunnelProvider - { + interface NETunnelProvider { [Export ("handleAppMessage:completionHandler:")] [Async] void HandleAppMessage (NSData messageData, [NullAllowed] Action completionHandler); - + [Export ("setTunnelNetworkSettings:completionHandler:")] [Async] void SetTunnelNetworkSettings ([NullAllowed] NETunnelNetworkSettings tunnelNetworkSettings, [NullAllowed] Action completionHandler); - + [Export ("protocolConfiguration")] NEVpnProtocol ProtocolConfiguration { get; } - + [NullAllowed, Export ("appRules")] - NEAppRule[] AppRules { get; } - + NEAppRule [] AppRules { get; } + [Export ("routingMethod")] NETunnelProviderRoutingMethod RoutingMethod { get; } @@ -1128,23 +1130,23 @@ namespace NetworkExtension { bool Reasserting { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NEVpnManager))] - interface NETunnelProviderManager - { + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NEVpnManager))] + interface NETunnelProviderManager { [Static] [Export ("loadAllFromPreferencesWithCompletionHandler:")] [Async] void LoadAllFromPreferences (Action completionHandler); - [NoWatch, NoTV, NoiOS, Mac (10,15,4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Static] [Export ("forPerAppVPN")] NETunnelProviderManager CreatePerAppVpn (); [return: NullAllowed] [Export ("copyAppRules")] - NEAppRule[] CopyAppRules (); + NEAppRule [] CopyAppRules (); // CopyAppRules was incorrectly bound to AppRules and it is only available on macOS #if NET || MONOMAC || __MACCATALYST__ @@ -1153,45 +1155,46 @@ namespace NetworkExtension { NEAppRule[] AppRules { get; set; } #else [Obsolete ("Use 'CopyAppRules' instead, this property will be removed in the future.")] - NEAppRule[] AppRules { [Wrap ("CopyAppRules ()!", IsVirtual = true)] get; } + NEAppRule [] AppRules { [Wrap ("CopyAppRules ()!", IsVirtual = true)] get; } #endif [Export ("routingMethod")] NETunnelProviderRoutingMethod RoutingMethod { get; } - [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Export ("safariDomains", ArgumentSemantic.Copy)] - string[] SafariDomains { get; set; } + string [] SafariDomains { get; set; } - [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Export ("mailDomains", ArgumentSemantic.Copy)] - string[] MailDomains { get; set; } + string [] MailDomains { get; set; } - [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Export ("calendarDomains", ArgumentSemantic.Copy)] - string[] CalendarDomains { get; set; } + string [] CalendarDomains { get; set; } - [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (10, 15, 4), MacCatalyst (15, 0)] [Export ("contactsDomains", ArgumentSemantic.Copy)] - string[] ContactsDomains { get; set; } + string [] ContactsDomains { get; set; } #if !NET [Field ("NETunnelProviderErrorDomain")] NSString ErrorDomain { get; } #endif - [NoWatch, NoTV, NoiOS, Mac (11, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (11, 0), MacCatalyst (15, 0)] [Export ("excludedDomains", ArgumentSemantic.Copy)] - string[] ExcludedDomains { get; set; } + string [] ExcludedDomains { get; set; } - [NoWatch, NoTV, NoiOS, Mac (11, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (11, 0), MacCatalyst (15, 0)] [Export ("associatedDomains", ArgumentSemantic.Copy)] - string[] AssociatedDomains { get; set; } + string [] AssociatedDomains { get; set; } } - - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NSObject), Name="NEVPNManager")] + + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NSObject), Name = "NEVPNManager")] [DisableDefaultCtor] // Assertion failed: (0), function -[NEVPNManager init], file /SourceCache/NetworkExtension_Sim/NetworkExtension-168.1.8/Framework/NEVPNManager.m, line 41. interface NEVpnManager { @@ -1208,11 +1211,12 @@ namespace NetworkExtension { [NullAllowed] [Export ("protocol", ArgumentSemantic.Retain)] - [Deprecated (PlatformName.iOS, 9, 0, message : "Use 'ProtocolConfiguration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 11, message : "Use 'ProtocolConfiguration' instead.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'ProtocolConfiguration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'ProtocolConfiguration' instead.")] NEVpnProtocol Protocol { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] [Export ("protocolConfiguration", ArgumentSemantic.Retain)] NEVpnProtocol ProtocolConfiguration { get; set; } @@ -1238,7 +1242,7 @@ namespace NetworkExtension { [Async] void SaveToPreferences ([NullAllowed] Action completionHandler); - [Mac (10,11), NoiOS] + [Mac (10, 11), NoiOS] [Internal] [Export ("setAuthorization:")] void _SetAuthorization (IntPtr auth); @@ -1253,11 +1257,13 @@ namespace NetworkExtension { NSString ConfigurationChangeNotification { get; } } - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NSObject), Name="NEVPNConnection")] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NSObject), Name = "NEVPNConnection")] interface NEVpnConnection { - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("connectedDate")] NSDate ConnectedDate { get; } @@ -1267,19 +1273,22 @@ namespace NetworkExtension { [Export ("startVPNTunnelAndReturnError:")] bool StartVpnTunnel (out NSError error); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Internal] [Export ("startVPNTunnelWithOptions:andReturnError:")] bool StartVpnTunnel ([NullAllowed] NSDictionary options, out NSError error); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Wrap ("StartVpnTunnel (options.GetDictionary (), out error);")] bool StartVpnTunnel ([NullAllowed] NEVpnConnectionStartOptions options, out NSError error); [Export ("stopVPNTunnel")] void StopVpnTunnel (); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("manager")] NEVpnManager Manager { get; } @@ -1288,13 +1297,15 @@ namespace NetworkExtension { NSString StatusDidChangeNotification { get; } [Async] - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] void FetchLastDisconnectError (Action handler); } - [Static][Internal] - [iOS (9,0)][Mac (10,11)] + [Static] + [Internal] + [iOS (9, 0)] + [Mac (10, 11)] interface NEVpnConnectionStartOptionInternal { [Field ("NEVPNConnectionStartOptionPassword")] NSString Password { get; } @@ -1303,9 +1314,10 @@ namespace NetworkExtension { NSString Username { get; } } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Abstract] - [BaseType (typeof (NSObject), Name="NEVPNProtocol")] + [BaseType (typeof (NSObject), Name = "NEVPNProtocol")] interface NEVpnProtocol : NSCopying, NSSecureCoding { [NullAllowed] // by default this property is null @@ -1320,16 +1332,16 @@ namespace NetworkExtension { [Export ("passwordReference", ArgumentSemantic.Copy)] NSData PasswordReference { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("identityReference", ArgumentSemantic.Copy)] NSData IdentityReference { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed] // by default this property is null [Export ("identityData", ArgumentSemantic.Copy)] NSData IdentityData { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed] // by default this property is null [Export ("identityDataPassword")] string IdentityDataPassword { get; set; } @@ -1337,29 +1349,31 @@ namespace NetworkExtension { [Export ("disconnectOnSleep")] bool DisconnectOnSleep { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("proxySettings", ArgumentSemantic.Copy)] NEProxySettings ProxySettings { get; set; } - [Mac (10,15), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (10, 15), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("includeAllNetworks")] bool IncludeAllNetworks { get; set; } - [iOS (14,2)] - [Mac (10,15)] - [MacCatalyst (14,2)] + [iOS (14, 2)] + [Mac (10, 15)] + [MacCatalyst (14, 2)] [Export ("excludeLocalNetworks")] bool ExcludeLocalNetworks { get; set; } - [Mac (11,0)][iOS (14,2)] - [MacCatalyst (14,2)] + [Mac (11, 0)] + [iOS (14, 2)] + [MacCatalyst (14, 2)] [Export ("enforceRoutes")] bool EnforceRoutes { get; set; } } - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NEVpnProtocol), Name="NEVPNProtocolIPSec")] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NEVpnProtocol), Name = "NEVPNProtocolIPSec")] interface NEVpnProtocolIpSec { [Export ("authenticationMethod")] @@ -1381,8 +1395,9 @@ namespace NetworkExtension { string RemoteIdentifier { get; set; } } - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NSObject), Name="NEVPNIKEv2SecurityAssociationParameters")] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NSObject), Name = "NEVPNIKEv2SecurityAssociationParameters")] interface NEVpnIke2SecurityAssociationParameters : NSSecureCoding, NSCopying { [Export ("encryptionAlgorithm")] @@ -1398,8 +1413,9 @@ namespace NetworkExtension { int LifetimeMinutes { get; set; } /* int32_t */ } - [iOS (8,0)][Mac (10,10)] - [BaseType (typeof (NEVpnProtocolIpSec), Name="NEVPNProtocolIKEv2")] + [iOS (8, 0)] + [Mac (10, 10)] + [BaseType (typeof (NEVpnProtocolIpSec), Name = "NEVPNProtocolIKEv2")] interface NEVpnProtocolIke2 { [Export ("deadPeerDetectionRate")] @@ -1419,54 +1435,62 @@ namespace NetworkExtension { [Export ("childSecurityAssociationParameters")] NEVpnIke2SecurityAssociationParameters ChildSecurityAssociationParameters { get; } - [iOS (8,3)][Mac (10,11)] + [iOS (8, 3)] + [Mac (10, 11)] [Export ("certificateType")] NEVpnIke2CertificateType CertificateType { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("useConfigurationAttributeInternalIPSubnet")] bool UseConfigurationAttributeInternalIPSubnet { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("disableMOBIKE")] bool DisableMobike { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("disableRedirect")] bool DisableRedirect { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("enablePFS")] bool EnablePfs { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("enableRevocationCheck")] bool EnableRevocationCheck { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("strictRevocationCheck")] bool StrictRevocationCheck { get; set; } - [iOS (11,0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [Export ("minimumTLSVersion", ArgumentSemantic.Assign)] NEVpnIkev2TlsVersion MinimumTlsVersion { get; set; } - [iOS (11,0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [Export ("maximumTLSVersion", ArgumentSemantic.Assign)] NEVpnIkev2TlsVersion MaximumTlsVersion { get; set; } [NoMac] - [iOS (13,0)] + [iOS (13, 0)] [Export ("enableFallback")] bool EnableFallback { get; set; } [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("mtu")] nuint Mtu { get; set; } } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Abstract] [BaseType (typeof (NSObject))] interface NEOnDemandRule : NSSecureCoding, NSCopying { @@ -1494,22 +1518,26 @@ namespace NetworkExtension { NSUrl ProbeUrl { get; set; } } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NEOnDemandRule))] interface NEOnDemandRuleConnect { } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NEOnDemandRule))] interface NEOnDemandRuleDisconnect { } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NEOnDemandRule))] interface NEOnDemandRuleIgnore { } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NEOnDemandRule))] interface NEOnDemandRuleEvaluateConnection { @@ -1518,7 +1546,8 @@ namespace NetworkExtension { NEEvaluateConnectionRule [] ConnectionRules { get; set; } } - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface NEEvaluateConnectionRule : NSSecureCoding, NSCopying { @@ -1540,29 +1569,31 @@ namespace NetworkExtension { NSUrl ProbeUrl { get; set; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [Abstract] interface NWEndpoint : NSSecureCoding, NSCopying { } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NWEndpoint))] + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NWEndpoint))] [DisableDefaultCtor] - interface NWHostEndpoint - { + interface NWHostEndpoint { [Static] [Export ("endpointWithHostname:port:")] NWHostEndpoint Create (string hostname, string port); - + [Export ("hostname")] string Hostname { get; } - + [Export ("port")] string Port { get; } } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NWEndpoint))] [DisableDefaultCtor] interface NWBonjourServiceEndpoint { @@ -1581,82 +1612,83 @@ namespace NetworkExtension { string Domain { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NWPath - { + interface NWPath { [Export ("status")] NWPathStatus Status { get; } - + [Export ("expensive")] bool Expensive { [Bind ("isExpensive")] get; } - + [Export ("isEqualToPath:")] bool IsEqualToPath (NWPath path); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("constrained")] bool Constrained { [Bind ("isConstrained")] get; } } - - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject), Name="NWTCPConnection")] - interface NWTcpConnection - { + + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject), Name = "NWTCPConnection")] + interface NWTcpConnection { [Export ("initWithUpgradeForConnection:")] NativeHandle Constructor (NWTcpConnection connection); - + [Export ("state")] NWTcpConnectionState State { get; } - + [Export ("viable")] bool Viable { [Bind ("isViable")] get; } - + [Export ("hasBetterPath")] bool HasBetterPath { get; } - + [Export ("endpoint")] NWEndpoint Endpoint { get; } - + [NullAllowed, Export ("connectedPath")] NWPath ConnectedPath { get; } - + [NullAllowed, Export ("localAddress")] NWEndpoint LocalAddress { get; } - + [NullAllowed, Export ("remoteAddress")] NWEndpoint RemoteAddress { get; } - + [NullAllowed, Export ("txtRecord")] NSData TxtRecord { get; } - + [NullAllowed, Export ("error")] NSError Error { get; } - + [Export ("cancel")] void Cancel (); - + [Export ("readLength:completionHandler:")] [Async] void ReadLength (nuint length, Action completion); - + [Export ("readMinimumLength:maximumLength:completionHandler:")] [Async] void ReadMinimumLength (nuint minimum, nuint maximum, Action completion); - + [Export ("write:completionHandler:")] [Async] void Write (NSData data, Action completion); - + [Export ("writeClose")] void WriteClose (); } - interface INWTcpConnectionAuthenticationDelegate {} + interface INWTcpConnectionAuthenticationDelegate { } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Protocol, Model] [BaseType (typeof (NSObject), Name = "NWTCPConnectionAuthenticationDelegate")] interface NWTcpConnectionAuthenticationDelegate { @@ -1676,70 +1708,70 @@ namespace NetworkExtension { // and SecCertificate - both *NOT* NSObject -> because of that NSArray is used above } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject), Name="NWTLSParameters")] - interface NWTlsParameters - { + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject), Name = "NWTLSParameters")] + interface NWTlsParameters { [NullAllowed, Export ("TLSSessionID", ArgumentSemantic.Copy)] NSData TlsSessionID { get; set; } - + [NullAllowed, Export ("SSLCipherSuites", ArgumentSemantic.Copy)] NSSet SslCipherSuites { get; set; } - + [Export ("minimumSSLProtocolVersion", ArgumentSemantic.Assign)] nuint MinimumSslProtocolVersion { get; set; } - + [Export ("maximumSSLProtocolVersion", ArgumentSemantic.Assign)] nuint MaximumSslProtocolVersion { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject), Name="NWUDPSession")] - interface NWUdpSession - { + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject), Name = "NWUDPSession")] + interface NWUdpSession { [Export ("initWithUpgradeForSession:")] NativeHandle Constructor (NWUdpSession session); - + [Export ("state")] NWUdpSessionState State { get; } - + [Export ("endpoint")] NWEndpoint Endpoint { get; } - + [NullAllowed, Export ("resolvedEndpoint")] NWEndpoint ResolvedEndpoint { get; } - + [Export ("viable")] bool Viable { [Bind ("isViable")] get; } - + [Export ("hasBetterPath")] bool HasBetterPath { get; } - + [NullAllowed, Export ("currentPath")] NWPath CurrentPath { get; } - + [Export ("tryNextResolvedEndpoint")] void TryNextResolvedEndpoint (); - + [Export ("maximumDatagramLength")] nuint MaximumDatagramLength { get; } - + [Export ("setReadHandler:maxDatagrams:")] void SetReadHandler (Action handler, nuint maxDatagrams); - + [Export ("writeMultipleDatagrams:completionHandler:")] [Async] - void WriteMultipleDatagrams (NSData[] datagramArray, Action completionHandler); - + void WriteMultipleDatagrams (NSData [] datagramArray, Action completionHandler); + [Export ("writeDatagram:completionHandler:")] [Async] void WriteDatagram (NSData datagram, Action completionHandler); - + [Export ("cancel")] void Cancel (); } - [iOS (9,0)] + [iOS (9, 0)] [NoMac] [BaseType (typeof (NEFilterFlow))] interface NEFilterBrowserFlow { @@ -1756,9 +1788,9 @@ namespace NetworkExtension { [NullAllowed] NSUrl ParentUrl { get; } } - - [iOS (9,0)] - [Mac (10,15)] + + [iOS (9, 0)] + [Mac (10, 15)] [BaseType (typeof (NEFilterFlow))] interface NEFilterSocketFlow { [NullAllowed] @@ -1773,7 +1805,8 @@ namespace NetworkExtension { int SocketFamily { get; #if !NET - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -1781,7 +1814,8 @@ namespace NetworkExtension { int SocketType { get; #if !NET - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -1789,19 +1823,20 @@ namespace NetworkExtension { int SocketProtocol { get; #if !NET - [NotImplemented] set; + [NotImplemented] + set; #endif } [NullAllowed] [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("remoteHostname")] string RemoteHostname { get; } } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] interface NEFilterReport : NSSecureCoding, NSCopying { @@ -1823,8 +1858,9 @@ namespace NetworkExtension { [Export ("bytesOutboundCount")] nuint BytesOutboundCount { get; } } - - [iOS (9,0)][Mac (10,11)] + + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NETunnelNetworkSettings))] [DisableDefaultCtor] interface NEPacketTunnelNetworkSettings { @@ -1848,32 +1884,36 @@ namespace NetworkExtension { NSNumber Mtu { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] interface NEPacketTunnelFlow { [Export ("readPacketsWithCompletionHandler:")] [Async (ResultType = typeof (NEPacketTunnelFlowReadResult))] - void ReadPackets (Action completionHandler); + void ReadPackets (Action completionHandler); [Export ("writePackets:withProtocols:")] - bool WritePackets (NSData[] packets, NSNumber[] protocols); + bool WritePackets (NSData [] packets, NSNumber [] protocols); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Async] [Export ("readPacketObjectsWithCompletionHandler:")] - void ReadPacketObjects (Action completionHandler); + void ReadPacketObjects (Action completionHandler); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("writePacketObjects:")] - bool WritePacketObjects (NEPacket[] packets); + bool WritePacketObjects (NEPacket [] packets); } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NETunnelProvider))] interface NEPacketTunnelProvider { [Export ("startTunnelWithOptions:completionHandler:")] [Async] - void StartTunnel ([NullAllowed] NSDictionary options, Action completionHandler); + void StartTunnel ([NullAllowed] NSDictionary options, Action completionHandler); [Export ("stopTunnelWithReason:completionHandler:")] [Async] @@ -1892,21 +1932,23 @@ namespace NetworkExtension { NWUdpSession CreateUdpSession (NWEndpoint remoteEndpoint, [NullAllowed] NWHostEndpoint localEndpoint); } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NEVpnProtocol))] interface NETunnelProviderProtocol { [NullAllowed, Export ("providerConfiguration", ArgumentSemantic.Copy)] - NSDictionary ProviderConfiguration { get; set; } + NSDictionary ProviderConfiguration { get; set; } [NullAllowed, Export ("providerBundleIdentifier")] string ProviderBundleIdentifier { get; set; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NEVpnConnection))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NEVpnConnection))] interface NETunnelProviderSession { [Export ("startTunnelWithOptions:andReturnError:")] - bool StartTunnel ([NullAllowed] NSDictionary options, [NullAllowed] out NSError error); + bool StartTunnel ([NullAllowed] NSDictionary options, [NullAllowed] out NSError error); [Export ("stopTunnel")] void StopTunnel (); @@ -1915,7 +1957,10 @@ namespace NetworkExtension { bool SendProviderMessage (NSData messageData, [NullAllowed] out NSError error, [NullAllowed] Action responseHandler); } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] interface NEPacket : NSCopying, NSSecureCoding { [Export ("initWithData:protocolFamily:")] @@ -1931,13 +1976,13 @@ namespace NetworkExtension { NEFlowMetaData Metadata { get; } [NoiOS] - [Mac (10,15), MacCatalyst (15,0)] + [Mac (10, 15), MacCatalyst (15, 0)] [Export ("direction")] NETrafficDirection Direction { get; } } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [DisableDefaultCtor] [BaseType (typeof (NSObject), Name = "NEDNSProxyManager")] interface NEDnsProxyManager { @@ -1972,8 +2017,8 @@ namespace NetworkExtension { bool Enabled { [Bind ("isEnabled")] get; set; } } - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [DisableDefaultCtor] [BaseType (typeof (NEProvider), Name = "NEDNSProxyProvider")] interface NEDnsProxyProvider { @@ -1995,12 +2040,12 @@ namespace NetworkExtension { [NullAllowed, Export ("systemDNSSettings")] NEDnsSettings [] SystemDnsSettings { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("handleNewUDPFlow:initialRemoteEndpoint:")] bool HandleNewUdpFlow (NEAppProxyUdpFlow flow, NWEndpoint remoteEndpoint); } - [iOS (11,0), Mac (10,13)] + [iOS (11, 0), Mac (10, 13)] [BaseType (typeof (NEVpnProtocol), Name = "NEDNSProxyProviderProtocol")] interface NEDnsProxyProviderProtocol { @@ -2011,7 +2056,7 @@ namespace NetworkExtension { string ProviderBundleIdentifier { get; set; } } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [BaseType (typeof (NSObject))] interface NEHotspotHS20Settings : NSCopying, NSSecureCoding { @@ -2034,7 +2079,7 @@ namespace NetworkExtension { NativeHandle Constructor (string domainName, bool roamingEnabled); } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [BaseType (typeof (NSObject), Name = "NEHotspotEAPSettings")] interface NEHotspotEapSettings : NSCopying, NSSecureCoding { @@ -2070,7 +2115,7 @@ namespace NetworkExtension { bool SetTrustedServerCertificates (NSObject [] certificates); } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [DisableDefaultCtor] [BaseType (typeof (NSObject))] interface NEHotspotConfiguration : NSCopying, NSSecureCoding { @@ -2097,27 +2142,27 @@ namespace NetworkExtension { [Export ("initWithHS20Settings:eapSettings:")] NativeHandle Constructor (NEHotspotHS20Settings hs20Settings, NEHotspotEapSettings eapSettings); - + [Internal] - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithSSIDPrefix:")] IntPtr initWithSsidPrefix (string ssidPrefix); [Internal] - [iOS (13,0)] + [iOS (13, 0)] [Export ("initWithSSIDPrefix:passphrase:isWEP:")] IntPtr initWithSsidPrefix (string ssidPrefix, string passphrase, bool isWep); - [iOS (13,0)] + [iOS (13, 0)] [Export ("hidden")] bool Hidden { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("SSIDPrefix")] string SsidPrefix { get; } } - [iOS (11,0), NoMac] + [iOS (11, 0), NoMac] [BaseType (typeof (NSObject))] interface NEHotspotConfigurationManager { @@ -2141,7 +2186,7 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NENetworkRule : NSSecureCoding, NSCopying { @@ -2175,7 +2220,7 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NEFilterRule : NSSecureCoding, NSCopying { @@ -2191,33 +2236,33 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NEFilterSettings : NSSecureCoding, NSCopying { [Export ("initWithRules:defaultAction:")] - NativeHandle Constructor (NEFilterRule[] rules, NEFilterAction defaultAction); + NativeHandle Constructor (NEFilterRule [] rules, NEFilterAction defaultAction); [Export ("rules", ArgumentSemantic.Copy)] - NEFilterRule[] Rules { get; } + NEFilterRule [] Rules { get; } [Export ("defaultAction")] NEFilterAction DefaultAction { get; } } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NSObject))] interface NEFilterPacketContext { } [NoiOS] - [Mac (10,15)] + [Mac (10, 15)] delegate NEFilterPacketProviderVerdict NEFilterPacketHandler (NEFilterPacketContext context, IntPtr @interface, NETrafficDirection directiom, IntPtr packetBytes, nuint packetLength); [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NEFilterProvider))] [DisableDefaultCtor] // returns `nil` interface NEFilterPacketProvider { @@ -2232,7 +2277,7 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NEVpnManager))] [DisableDefaultCtor] interface NETransparentProxyManager { @@ -2244,23 +2289,23 @@ namespace NetworkExtension { } [NoiOS] - [Mac (10,15), NoMacCatalyst] + [Mac (10, 15), NoMacCatalyst] [BaseType (typeof (NETunnelNetworkSettings))] interface NETransparentProxyNetworkSettings { [NullAllowed, Export ("includedNetworkRules", ArgumentSemantic.Copy)] - NENetworkRule[] IncludedNetworkRules { get; set; } + NENetworkRule [] IncludedNetworkRules { get; set; } [NullAllowed, Export ("excludedNetworkRules", ArgumentSemantic.Copy)] - NENetworkRule[] ExcludedNetworkRules { get; set; } + NENetworkRule [] ExcludedNetworkRules { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface NEAppPushManager { [Export ("matchSSIDs", ArgumentSemantic.Copy)] - string[] MatchSsids { get; set; } + string [] MatchSsids { get; set; } [Export ("providerConfiguration", ArgumentSemantic.Copy)] NSDictionary ProviderConfiguration { get; set; } @@ -2303,13 +2348,13 @@ namespace NetworkExtension { [Export ("active")] bool Active { [Bind ("isActive")] get; } - [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("matchPrivateLTENetworks", ArgumentSemantic.Copy)] - NEPrivateLteNetwork[] MatchPrivateLteNetworks { get; set; } + NEPrivateLteNetwork [] MatchPrivateLteNetworks { get; set; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NEProvider))] [DisableDefaultCtor] // init returns nil interface NEAppPushProvider { @@ -2317,8 +2362,8 @@ namespace NetworkExtension { [Export ("providerConfiguration")] NSDictionary ProviderConfiguration { get; } - [Deprecated (PlatformName.iOS, 15,0, message: "Use the synchronoys 'Start' method instead..")] - [Deprecated (PlatformName.MacCatalyst, 12,0, message: "Use the synchronoys 'Start' method instead..")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the synchronoys 'Start' method instead..")] + [Deprecated (PlatformName.MacCatalyst, 12, 0, message: "Use the synchronoys 'Start' method instead..")] [Async] [Export ("startWithCompletionHandler:")] void Start (Action completionHandler); @@ -2333,41 +2378,41 @@ namespace NetworkExtension { [Export ("handleTimerEvent")] void HandleTimerEvent (); - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Export ("start")] void Start (); } - [NoWatch, NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NEDnsSettings), Name = "NEDNSOverHTTPSSettings")] interface NEDnsOverHttpsSettings { [NullAllowed] [Export ("serverURL", ArgumentSemantic.Copy)] NSUrl ServerUrl { get; set; } - [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("identityReference", ArgumentSemantic.Copy)] [NullAllowed] NSData IdentityReference { get; set; } } - [NoWatch, NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NEDnsSettings), Name = "NEDNSOverTLSSettings")] interface NEDnsOverTlsSettings { [NullAllowed] [Export ("serverName")] string ServerName { get; set; } - [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("identityReference", ArgumentSemantic.Copy)] [NullAllowed] NSData IdentityReference { get; set; } } - [NoWatch, NoTV, Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject), Name = "NEDNSSettingsManager")] interface NEDnsSettingsManager { @@ -2397,40 +2442,40 @@ namespace NetworkExtension { [NullAllowed] [Export ("onDemandRules", ArgumentSemantic.Copy)] - NEOnDemandRule[] OnDemandRules { get; set; } + NEOnDemandRule [] OnDemandRules { get; set; } [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; } } - interface INEAppPushDelegate {} + interface INEAppPushDelegate { } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NEAppPushDelegate - { + interface NEAppPushDelegate { [Abstract] [Export ("appPushManager:didReceiveIncomingCallWithUserInfo:")] void DidReceiveIncomingCall (NEAppPushManager manager, NSDictionary userInfo); } - [Mac (11,0), NoMacCatalyst] - [NoiOS][NoTV][NoWatch] + [Mac (11, 0), NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] [BaseType (typeof (NEAppProxyProvider))] [DisableDefaultCtor] // `init` returns `nil` interface NETransparentProxyProvider { } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject), Name="NEPrivateLTENetwork")] - interface NEPrivateLteNetwork : NSCopying, NSSecureCoding - { + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "NEPrivateLTENetwork")] + interface NEPrivateLteNetwork : NSCopying, NSSecureCoding { [Export ("mobileCountryCode")] string MobileCountryCode { get; set; } @@ -2442,17 +2487,15 @@ namespace NetworkExtension { string TrackingAreaCode { get; set; } } - [NoWatch, NoTV, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoiOS, Mac (13, 0)] [BaseType (typeof (NEPacketTunnelProvider))] [DisableDefaultCtor] - interface NEEthernetTunnelProvider - { + interface NEEthernetTunnelProvider { } - [NoWatch, NoTV, NoiOS, Mac (13,0)] + [NoWatch, NoTV, NoiOS, Mac (13, 0)] [BaseType (typeof (NEPacketTunnelNetworkSettings))] - interface NEEthernetTunnelNetworkSettings - { + interface NEEthernetTunnelNetworkSettings { [Export ("initWithTunnelRemoteAddress:ethernetAddress:mtu:")] NativeHandle Constructor (string address, string ethernetAddress, nint mtu); diff --git a/src/newsstandkit.cs b/src/newsstandkit.cs index e7501f5ee3..3121c6bb82 100644 --- a/src/newsstandkit.cs +++ b/src/newsstandkit.cs @@ -19,17 +19,17 @@ namespace NewsstandKit { interface NKAssetDownload { [NullAllowed] [Export ("issue", ArgumentSemantic.Weak)] - NKIssue Issue { get; } + NKIssue Issue { get; } [Export ("identifier", ArgumentSemantic.Copy)] - string Identifier { get; } + string Identifier { get; } [NullAllowed] [Export ("userInfo", ArgumentSemantic.Copy)] - NSDictionary UserInfo { get; set; } + NSDictionary UserInfo { get; set; } [Export ("URLRequest", ArgumentSemantic.Copy)] - NSUrlRequest UrlRequest { get; } + NSUrlRequest UrlRequest { get; } [Export ("downloadWithDelegate:")] NSUrlConnection DownloadWithDelegate ([Protocolize] NSUrlConnectionDownloadDelegate downloadDelegate); @@ -43,24 +43,24 @@ namespace NewsstandKit { [DisableDefaultCtor] interface NKIssue { [Export ("downloadingAssets", ArgumentSemantic.Copy)] - NKAssetDownload [] DownloadingAssets { get; } + NKAssetDownload [] DownloadingAssets { get; } [Export ("contentURL", ArgumentSemantic.Copy)] - NSUrl ContentUrl { get; } + NSUrl ContentUrl { get; } [Export ("status")] - NKIssueContentStatus Status { get; } + NKIssueContentStatus Status { get; } [Export ("name", ArgumentSemantic.Copy)] - string Name { get; } + string Name { get; } [Export ("date", ArgumentSemantic.Copy)] - NSDate Date { get; } + NSDate Date { get; } [Export ("addAssetWithRequest:")] NKAssetDownload AddAsset (NSUrlRequest request); - [Deprecated(PlatformName.iOS, 13, 0, message: "Use the Remote Notifications Background Modes instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use the Remote Notifications Background Modes instead.")] [Field ("NKIssueDownloadCompletedNotification")] [Notification] NSString DownloadCompletedNotification { get; } @@ -72,14 +72,14 @@ namespace NewsstandKit { [DisableDefaultCtor] interface NKLibrary { [Export ("issues", ArgumentSemantic.Strong)] - NKIssue [] Issues { get; } + NKIssue [] Issues { get; } [Export ("downloadingAssets", ArgumentSemantic.Strong)] - NKAssetDownload [] DownloadingAssets { get; } + NKAssetDownload [] DownloadingAssets { get; } [NullAllowed] [Export ("currentlyReadingIssue", ArgumentSemantic.Strong)] - NKIssue CurrentlyReadingIssue { get; set; } + NKIssue CurrentlyReadingIssue { get; set; } [Static] [NullAllowed] @@ -96,5 +96,5 @@ namespace NewsstandKit { [Export ("removeIssue:")] void RemoveIssue (NKIssue issue); } - + } diff --git a/src/notificationcenter.cs b/src/notificationcenter.cs index c99d24d6e4..3bae8abeb6 100644 --- a/src/notificationcenter.cs +++ b/src/notificationcenter.cs @@ -19,33 +19,35 @@ using NativeHandle = System.IntPtr; #endif namespace NotificationCenter { - [iOS (8,0)][Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // not meant to be user created - [Deprecated (PlatformName.iOS, 14,0)] - [Deprecated (PlatformName.MacOSX, 11,0)] + [Deprecated (PlatformName.iOS, 14, 0)] + [Deprecated (PlatformName.MacOSX, 11, 0)] interface NCWidgetController { [Static] [Export ("widgetController")] - NCWidgetController GetWidgetController(); + NCWidgetController GetWidgetController (); [Export ("setHasContent:forWidgetWithBundleIdentifier:")] void SetHasContent (bool flag, string bundleID); } - [iOS (8,0)][Mac (10,10)] - [Deprecated (PlatformName.iOS, 14,0)] - [Deprecated (PlatformName.MacOSX, 11,0)] + [iOS (8, 0)] + [Mac (10, 10)] + [Deprecated (PlatformName.iOS, 14, 0)] + [Deprecated (PlatformName.MacOSX, 11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface NCWidgetProviding { [Export ("widgetPerformUpdateWithCompletionHandler:")] - void WidgetPerformUpdate(Action completionHandler); + void WidgetPerformUpdate (Action completionHandler); [Export ("widgetMarginInsetsForProposedMarginInsets:"), DelegateName ("NCWidgetProvidingMarginInsets"), DefaultValueFromArgument ("defaultMarginInsets")] - [Deprecated (PlatformName.iOS, 10,0)] + [Deprecated (PlatformName.iOS, 10, 0)] UIEdgeInsets GetWidgetMarginInsets (UIEdgeInsets defaultMarginInsets); [NoiOS] @@ -67,13 +69,13 @@ namespace NotificationCenter { void WidgetDidEndEditing (); [NoMac] - [iOS (10,0)] + [iOS (10, 0)] [Export ("widgetActiveDisplayModeDidChange:withMaximumSize:")] void WidgetActiveDisplayModeDidChange (NCWidgetDisplayMode activeDisplayMode, CGSize maxSize); } [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIVibrancyEffect))] #if NET [Internal] @@ -85,29 +87,29 @@ namespace NotificationCenter { #endif interface UIVibrancyEffect_NotificationCenter { [Internal] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] [Static, Export ("notificationCenterVibrancyEffect")] UIVibrancyEffect NotificationCenterVibrancyEffect (); } [NoMac] - [Deprecated (PlatformName.iOS, 14,0)] + [Deprecated (PlatformName.iOS, 14, 0)] [Category] [BaseType (typeof (NSExtensionContext))] interface NSExtensionContext_NCWidgetAdditions { - [iOS (10,0)] + [iOS (10, 0)] [Export ("widgetLargestAvailableDisplayMode")] NCWidgetDisplayMode GetWidgetLargestAvailableDisplayMode (); - [iOS (10,0)] + [iOS (10, 0)] [Export ("setWidgetLargestAvailableDisplayMode:")] void SetWidgetLargestAvailableDisplayMode (NCWidgetDisplayMode mode); - [iOS (10,0)] + [iOS (10, 0)] [Export ("widgetActiveDisplayMode")] NCWidgetDisplayMode GetWidgetActiveDisplayMode (); - [iOS (10,0)] + [iOS (10, 0)] [Export ("widgetMaximumSizeForDisplayMode:")] CGSize GetWidgetMaximumSize (NCWidgetDisplayMode displayMode); } @@ -115,41 +117,40 @@ namespace NotificationCenter { [NoMac] [Category] [Internal] // only static methods, which are not _nice_ to use as extension methods - [Deprecated (PlatformName.iOS, 14,0)] + [Deprecated (PlatformName.iOS, 14, 0)] [BaseType (typeof (UIVibrancyEffect))] interface UIVibrancyEffect_NCWidgetAdditions { - [iOS (10,0)] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] + [iOS (10, 0)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] [Static] [Export ("widgetPrimaryVibrancyEffect")] UIVibrancyEffect GetWidgetPrimaryVibrancyEffect (); - [iOS (10,0)] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] + [iOS (10, 0)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")] [Static] [Export ("widgetSecondaryVibrancyEffect")] UIVibrancyEffect GetWidgetSecondaryVibrancyEffect (); - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("widgetEffectForVibrancyStyle:")] UIVibrancyEffect GetWidgetEffect (UIVibrancyEffectStyle vibrancyStyle); } [NoiOS] - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 11,0)] - [BaseType (typeof(NSViewController), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NCWidgetListViewDelegate)})] - interface NCWidgetListViewController - { + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 11, 0)] + [BaseType (typeof (NSViewController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NCWidgetListViewDelegate) })] + interface NCWidgetListViewController { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); - + [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] INCWidgetListViewDelegate Delegate { get; set; } [Export ("contents", ArgumentSemantic.Copy)] - NSViewController[] Contents { get; set; } + NSViewController [] Contents { get; set; } [Export ("minimumVisibleRowCount", ArgumentSemantic.Assign)] nuint MinimumVisibleRowCount { get; set; } @@ -171,15 +172,14 @@ namespace NotificationCenter { } [NoiOS] - interface INCWidgetListViewDelegate {} + interface INCWidgetListViewDelegate { } [NoiOS] [Mac (10, 10)] - [Deprecated (PlatformName.MacOSX, 11,0)] + [Deprecated (PlatformName.MacOSX, 11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NCWidgetListViewDelegate - { + [BaseType (typeof (NSObject))] + interface NCWidgetListViewDelegate { [Abstract] [Export ("widgetList:viewControllerForRow:"), DelegateName ("NCWidgetListViewGetController"), DefaultValue (null)] NSViewController GetViewControllerForRow (NCWidgetListViewController list, nuint row); @@ -201,11 +201,10 @@ namespace NotificationCenter { } [NoiOS] - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 11,0)] - [BaseType (typeof(NSViewController), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NCWidgetSearchViewDelegate)})] - interface NCWidgetSearchViewController - { + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 11, 0)] + [BaseType (typeof (NSViewController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NCWidgetSearchViewDelegate) })] + interface NCWidgetSearchViewController { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); @@ -214,8 +213,8 @@ namespace NotificationCenter { [NullAllowed] [Export ("searchResults", ArgumentSemantic.Copy)] - NSObject[] SearchResults { get; set; } - + NSObject [] SearchResults { get; set; } + [NullAllowed] [Export ("searchDescription")] string SearchDescription { get; set; } @@ -230,15 +229,14 @@ namespace NotificationCenter { } [NoiOS] - interface INCWidgetSearchViewDelegate {} + interface INCWidgetSearchViewDelegate { } [NoiOS] - [Mac (10,10)] - [Deprecated (PlatformName.MacOSX, 11,0)] + [Mac (10, 10)] + [Deprecated (PlatformName.MacOSX, 11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface NCWidgetSearchViewDelegate - { + [BaseType (typeof (NSObject))] + interface NCWidgetSearchViewDelegate { #if !NET [Abstract] [Export ("widgetSearch:searchForTerm:maxResults:"), EventArgs ("NSWidgetSearchForTerm"), DefaultValue (false)] diff --git a/src/opengles.cs b/src/opengles.cs index b7b2fb1fad..d82a4a2d73 100644 --- a/src/opengles.cs +++ b/src/opengles.cs @@ -21,8 +21,8 @@ using NativeHandle = System.IntPtr; namespace OpenGLES { - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] // It is created when an EAGLContext object is initialized and disposed of when the last EAGLContext object that references it is released. [DisableDefaultCtor] @@ -33,8 +33,8 @@ namespace OpenGLES { string DebugLabel { get; set; } } - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init now marked with NS_UNAVAILABLE interface EAGLContext { @@ -45,17 +45,17 @@ namespace OpenGLES { [Export ("initWithAPI:sharegroup:")] NativeHandle Constructor (EAGLRenderingAPI api, EAGLSharegroup sharegroup); - [Static, Export("setCurrentContext:")] - bool SetCurrentContext([NullAllowed] EAGLContext context); + [Static, Export ("setCurrentContext:")] + bool SetCurrentContext ([NullAllowed] EAGLContext context); - [Static, Export("currentContext")] + [Static, Export ("currentContext")] [NullAllowed] EAGLContext CurrentContext { get; } - [Export("API")] + [Export ("API")] EAGLRenderingAPI API { get; } - [Export("sharegroup")] + [Export ("sharegroup")] EAGLSharegroup ShareGroup { get; } [Export ("debugLabel")] @@ -72,31 +72,34 @@ namespace OpenGLES { [Export ("presentRenderbuffer:")] bool PresentRenderBuffer (nuint target); - [iOS (10,0)][TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Internal] [Export ("presentRenderbuffer:atTime:")] bool _PresentRenderbufferAtTime (nuint target, double presentationTime); - [iOS (10,3)][TV (10,2)] + [iOS (10, 3)] + [TV (10, 2)] [Internal] [Export ("presentRenderbuffer:afterMinimumDuration:")] bool _PresentRenderbufferAfterMinimumDuration (nuint target, double duration); - [iOS (7,1)] + [iOS (7, 1)] [Export ("multiThreaded")] bool IsMultiThreaded { [Bind ("isMultiThreaded")] get; set; } // IOSurface (EAGLContext) - [iOS (11,0)] - [TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Export ("texImageIOSurface:target:internalFormat:width:height:format:type:plane:")] bool TexImage (IOSurface.IOSurface ioSurface, nuint target, nuint internalFormat, uint width, uint height, nuint format, nuint type, uint plane); } - [NoMac][NoMacCatalyst] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'Metal' instead.")] - [Deprecated (PlatformName.TvOS, 12,0, message: "Use 'Metal' instead.")] + [NoMac] + [NoMacCatalyst] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Use 'Metal' instead.")] [Protocol] // no [Model] because "The EAGLDrawable protocol is not intended to be implemented by objects outside of the iOS." interface EAGLDrawable { diff --git a/src/oslog.cs b/src/oslog.cs index 7c6f3fd414..d78678cc80 100644 --- a/src/oslog.cs +++ b/src/oslog.cs @@ -9,7 +9,7 @@ using NativeHandle = System.IntPtr; namespace OSLog { - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Native] enum OSLogEntryLogLevel : long { Undefined, @@ -20,7 +20,7 @@ namespace OSLog { Fault, } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Native] enum OSLogEntrySignpostType : long { Undefined, @@ -29,7 +29,7 @@ namespace OSLog { Event, } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Native] enum OSLogEntryStoreCategory : long { Undefined, @@ -43,14 +43,14 @@ namespace OSLog { LongTerm30, } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Flags] [Native] enum OSLogEnumeratorOptions : ulong { Reverse = 0x1, } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Native] enum OSLogMessageComponentArgumentCategory : long { Undefined, @@ -61,7 +61,7 @@ namespace OSLog { UInt64, } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] enum OSLogStoreScope : long { System = 0, @@ -69,7 +69,7 @@ namespace OSLog { } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Protocol] interface OSLogEntryFromProcess { @@ -93,8 +93,8 @@ namespace OSLog { [Export ("threadIdentifier")] ulong ThreadIdentifier { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [Protocol] interface OSLogEntryWithPayload { @@ -104,7 +104,7 @@ namespace OSLog { [Abstract] [Export ("components")] - OSLogMessageComponent[] Components { get; } + OSLogMessageComponent [] Components { get; } [Abstract] [Export ("formatString")] @@ -114,8 +114,8 @@ namespace OSLog { [Export ("subsystem")] string Subsystem { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface OSLogEntry { @@ -129,8 +129,8 @@ namespace OSLog { [Export ("storeCategory")] OSLogEntryStoreCategory StoreCategory { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (OSLogEntry))] [DisableDefaultCtor] interface OSLogEntryActivity : OSLogEntryFromProcess { @@ -138,14 +138,14 @@ namespace OSLog { [Export ("parentActivityIdentifier")] ulong ParentActivityIdentifier { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (OSLogEntry))] [DisableDefaultCtor] interface OSLogEntryBoundary { } - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (OSLogEntry))] [DisableDefaultCtor] interface OSLogEntryLog : OSLogEntryFromProcess, OSLogEntryWithPayload { @@ -153,8 +153,8 @@ namespace OSLog { [Export ("level")] OSLogEntryLogLevel Level { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (OSLogEntry))] [DisableDefaultCtor] interface OSLogEntrySignpost : OSLogEntryFromProcess, OSLogEntryWithPayload { @@ -168,14 +168,14 @@ namespace OSLog { [Export ("signpostType")] OSLogEntrySignpostType SignpostType { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSEnumerator))] [DisableDefaultCtor] interface OSLogEnumerator { } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface OSLogMessageComponent : NSSecureCoding { @@ -207,23 +207,23 @@ namespace OSLog { [Export ("argumentUInt64Value")] ulong ArgumentUInt64Value { get; } } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface OSLogPosition { } - - [Watch (8,0), TV (15,0), iOS (15,0), Mac (11,0), MacCatalyst (15,0)] + + [Watch (8, 0), TV (15, 0), iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // init was added only on macos 12 interface OSLogStore { - [NoWatch, NoTV, NoiOS, Mac (12,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoiOS, Mac (12, 0), MacCatalyst (15, 0)] [Export ("init")] NativeHandle Constructor (); - - [NoWatch, NoTV, NoiOS, MacCatalyst (15,0)] + + [NoWatch, NoTV, NoiOS, MacCatalyst (15, 0)] [Static] [Export ("localStoreAndReturnError:")] [return: NullAllowed] @@ -234,7 +234,7 @@ namespace OSLog { [return: NullAllowed] OSLogStore CreateStore (NSUrl url, [NullAllowed] out NSError error); - [Mac (12,0)] + [Mac (12, 0)] [Static] [Export ("storeWithScope:error:")] [return: NullAllowed] diff --git a/src/passkit.cs b/src/passkit.cs index 8eb1f2449d..c095f1df7d 100644 --- a/src/passkit.cs +++ b/src/passkit.cs @@ -40,53 +40,53 @@ using NativeHandle = System.IntPtr; namespace PassKit { - [Watch (3,0)] - [iOS (9,0)] - [Mac (11,0)] // mention 10.12 but the framework was not available on macOS at that time - [BaseType (typeof(NSObject))] - interface PKContact : NSSecureCoding - { + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (11, 0)] // mention 10.12 but the framework was not available on macOS at that time + [BaseType (typeof (NSObject))] + interface PKContact : NSSecureCoding { [NullAllowed, Export ("name", ArgumentSemantic.Strong)] NSPersonNameComponents Name { get; set; } - + [NullAllowed, Export ("postalAddress", ArgumentSemantic.Retain)] CNPostalAddress PostalAddress { get; set; } - + [NullAllowed, Export ("emailAddress", ArgumentSemantic.Strong)] string EmailAddress { get; set; } - + [NullAllowed, Export ("phoneNumber", ArgumentSemantic.Strong)] CNPhoneNumber PhoneNumber { get; set; } [NoMac] - [iOS (9,2)] - [Deprecated (PlatformName.iOS, 10,3, message:"Use 'SubLocality' and 'SubAdministrativeArea' on 'PostalAddress' instead.")] - [Deprecated (PlatformName.WatchOS, 3,2, message:"Use 'SubLocality' and 'SubAdministrativeArea' on 'PostalAddress' instead.")] + [iOS (9, 2)] + [Deprecated (PlatformName.iOS, 10, 3, message: "Use 'SubLocality' and 'SubAdministrativeArea' on 'PostalAddress' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 2, message: "Use 'SubLocality' and 'SubAdministrativeArea' on 'PostalAddress' instead.")] [NullAllowed, Export ("supplementarySubLocality", ArgumentSemantic.Strong)] string SupplementarySubLocality { get; set; } } - [Mac (11,0)] - [Watch (6,2), iOS (13,4)] + [Mac (11, 0)] + [Watch (6, 2), iOS (13, 4)] delegate void PKPassLibrarySignDataCompletionHandler (NSData signedData, NSData signature, NSError error); - - [Mac (11,0)] + + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface PKPassLibrary { - [Static][Export ("isPassLibraryAvailable")] + [Static] + [Export ("isPassLibraryAvailable")] bool IsAvailable { get; } [Export ("containsPass:")] bool Contains (PKPass pass); [Export ("passes")] - PKPass[] GetPasses (); + PKPass [] GetPasses (); [Export ("passWithPassTypeIdentifier:serialNumber:")] [return: NullAllowed] PKPass GetPass (string identifier, string serialNumber); - [iOS (8,0)] + [iOS (8, 0)] [Export ("passesOfType:")] PKPass [] GetPasses (PKPassType passType); @@ -96,87 +96,87 @@ namespace PassKit { [Export ("replacePassWithPass:")] bool Replace (PKPass pass); - [iOS (7,0)] + [iOS (7, 0)] [Export ("addPasses:withCompletionHandler:")] [Async] - void AddPasses (PKPass[] passes, [NullAllowed] Action completion); + void AddPasses (PKPass [] passes, [NullAllowed] Action completion); [Field ("PKPassLibraryDidChangeNotification")] [Notification] NSString DidChangeNotification { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("PKPassLibraryRemotePaymentPassesDidChangeNotification")] [Notification] NSString RemotePaymentPassesDidChangeNotification { get; } [NoMac] - [iOS (8,0)] - [Static,Export ("isPaymentPassActivationAvailable")] + [iOS (8, 0)] + [Static, Export ("isPaymentPassActivationAvailable")] [Deprecated (PlatformName.iOS, 9, 0, message: "Use the library's instance 'IsLibraryPaymentPassActivationAvailable' property instead.")] bool IsPaymentPassActivationAvailable { get; } [NoMac] [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'SecureElementPassActivationAvailable' instead.")] [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'SecureElementPassActivationAvailable' instead.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("isPaymentPassActivationAvailable")] bool IsLibraryPaymentPassActivationAvailable { get; } - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [Export ("secureElementPassActivationAvailable")] bool SecureElementPassActivationAvailable { [Bind ("isSecureElementPassActivationAvailable")] get; } [NoMac] [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'ActivateSecureElementPass' instead.")] [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Async] [Export ("activatePaymentPass:withActivationData:completion:")] void ActivatePaymentPass (PKPaymentPass paymentPass, NSData activationData, [NullAllowed] Action completion); [Async] - [NoWatch, iOS (13,4)] + [NoWatch, iOS (13, 4)] [Export ("activateSecureElementPass:withActivationData:completion:")] void ActivateSecureElementPass (PKSecureElementPass secureElementPass, NSData activationData, [NullAllowed] Action completion); [NoMac] [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'ActivatePaymentPass (PKPaymentPass, NSData, Action completion)' instead.")] [Async] [Export ("activatePaymentPass:withActivationCode:completion:")] void ActivatePaymentPass (PKPaymentPass paymentPass, string activationCode, [NullAllowed] Action completion); [NoWatch] - [iOS (8,3)] + [iOS (8, 3)] [Export ("openPaymentSetup")] void OpenPaymentSetup (); [NoMac] [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'CanAddSecureElementPass' instead.")] [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'CanAddSecureElementPass' instead.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("canAddPaymentPassWithPrimaryAccountIdentifier:")] bool CanAddPaymentPass (string primaryAccountIdentifier); - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [Export ("canAddSecureElementPassWithPrimaryAccountIdentifier:")] bool CanAddSecureElementPass (string primaryAccountIdentifier); - [iOS (10,1)] - [Watch (3,1)] + [iOS (10, 1)] + [Watch (3, 1)] [Export ("canAddFelicaPass")] bool CanAddFelicaPass { get; } [NoWatch] - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("endAutomaticPassPresentationSuppressionWithRequestToken:")] void EndAutomaticPassPresentationSuppression (nuint requestToken); [NoWatch] - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("isSuppressingAutomaticPassPresentation")] bool IsSuppressingAutomaticPassPresentation { get; } @@ -184,17 +184,17 @@ namespace PassKit { [NoMac] [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'RemoteSecureElementPasses' instead.")] [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'RemoteSecureElementPasses' instead.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("remotePaymentPasses")] - PKPaymentPass[] RemotePaymentPasses { get; } + PKPaymentPass [] RemotePaymentPasses { get; } - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [Export ("remoteSecureElementPasses", ArgumentSemantic.Copy)] - PKSecureElementPass[] RemoteSecureElementPasses { get; } + PKSecureElementPass [] RemoteSecureElementPasses { get; } #if !WATCH [NoWatch] - [iOS(9,0)] + [iOS (9, 0)] [Static] [Export ("requestAutomaticPassPresentationSuppressionWithResponseHandler:")] nuint RequestAutomaticPassPresentationSuppression (Action responseHandler); @@ -202,34 +202,34 @@ namespace PassKit { [NoMac] [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'PresentSecureElementPass' instead.")] - [NoWatch][iOS (10,0)] + [NoWatch] + [iOS (10, 0)] [Export ("presentPaymentPass:")] void PresentPaymentPass (PKPaymentPass pass); - [NoWatch, iOS (13,4)] + [NoWatch, iOS (13, 4)] [Export ("presentSecureElementPass:")] void PresentSecureElementPass (PKSecureElementPass pass); [Async (ResultTypeName = "PKSignDataCompletionResult")] - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [Export ("signData:withSecureElementPass:completion:")] void SignData (NSData signData, PKSecureElementPass secureElementPass, PKPassLibrarySignDataCompletionHandler completion); [Async (ResultTypeName = "PKServiceProviderDataCompletionResult")] - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("serviceProviderDataForSecureElementPass:completion:")] void GetServiceProviderData (PKSecureElementPass secureElementPass, Action completion); [Async] - [Watch (9,0), iOS (16,0), MacCatalyst (16,0), Mac (13,0), NoTV] + [Watch (9, 0), iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0), NoTV] [Export ("encryptedServiceProviderDataForSecureElementPass:completion:")] void GetEncryptedServiceProviderData (PKSecureElementPass secureElementPass, Action completion); } [Static] - [Mac (11,0)] - interface PKPassLibraryUserInfoKey - { + [Mac (11, 0)] + interface PKPassLibraryUserInfoKey { [Field ("PKPassLibraryAddedPassesUserInfoKey")] NSString AddedPasses { get; } @@ -245,14 +245,14 @@ namespace PassKit { [Field ("PKPassLibrarySerialNumberUserInfoKey")] NSString SerialNumber { get; } - [Watch (8,3), iOS (15,2), Mac (12,1), MacCatalyst (15,2)] + [Watch (8, 3), iOS (15, 2), Mac (12, 1), MacCatalyst (15, 2)] [Field ("PKPassLibraryRecoveredPassesUserInfoKey")] NSString RecoveredPasses { get; } } - [Watch (3,0)] - [iOS (8,0)] - [Mac (11,0)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface PKPayment { [Export ("token", ArgumentSemantic.Strong)] @@ -275,27 +275,27 @@ namespace PassKit { [NullAllowed, Export ("shippingMethod", ArgumentSemantic.Strong)] PKShippingMethod ShippingMethod { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [NullAllowed, Export ("shippingContact", ArgumentSemantic.Strong)] PKContact ShippingContact { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("billingContact", ArgumentSemantic.Strong)] PKContact BillingContact { get; } } #if !WATCH delegate void PKPaymentShippingAddressSelected (PKPaymentAuthorizationStatus status, PKShippingMethod [] shippingMethods, PKPaymentSummaryItem [] summaryItems); - delegate void PKPaymentShippingMethodSelected (PKPaymentAuthorizationStatus status, PKPaymentSummaryItem[] summaryItems); + delegate void PKPaymentShippingMethodSelected (PKPaymentAuthorizationStatus status, PKPaymentSummaryItem [] summaryItems); - [Mac (11,0)] + [Mac (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface PKPaymentAuthorizationViewControllerDelegate { - + [NoMac] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidAuthorizePayment2' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidAuthorizePayment2' instead.")] [Export ("paymentAuthorizationViewController:didAuthorizePayment:completion:")] [EventArgs ("PKPaymentAuthorization")] #if !NET @@ -303,7 +303,7 @@ namespace PassKit { #endif void DidAuthorizePayment (PKPaymentAuthorizationViewController controller, PKPayment payment, Action completion); - [iOS (11,0)] + [iOS (11, 0)] [Export ("paymentAuthorizationViewController:didAuthorizePayment:handler:")] [EventArgs ("PKPaymentAuthorizationResult")] void DidAuthorizePayment2 (PKPaymentAuthorizationViewController controller, PKPayment payment, Action completion); @@ -313,12 +313,12 @@ namespace PassKit { void PaymentAuthorizationViewControllerDidFinish (PKPaymentAuthorizationViewController controller); [NoMac] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectShippingMethod2' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectShippingMethod2' instead.")] [Export ("paymentAuthorizationViewController:didSelectShippingMethod:completion:")] [EventArgs ("PKPaymentShippingMethodSelected")] void DidSelectShippingMethod (PKPaymentAuthorizationViewController controller, PKShippingMethod shippingMethod, PKPaymentShippingMethodSelected completion); - [iOS (11,0)] + [iOS (11, 0)] [Export ("paymentAuthorizationViewController:didSelectShippingMethod:handler:")] [EventArgs ("PKPaymentRequestShippingMethodUpdate")] void DidSelectShippingMethod2 (PKPaymentAuthorizationViewController controller, PKShippingMethod shippingMethod, Action completion); @@ -330,7 +330,7 @@ namespace PassKit { [EventArgs ("PKPaymentShippingAddressSelected")] void DidSelectShippingAddress (PKPaymentAuthorizationViewController controller, ABRecord address, PKPaymentShippingAddressSelected completion); - [iOS (8,3)] + [iOS (8, 3)] [Export ("paymentAuthorizationViewControllerWillAuthorizePayment:")] #if !NET [Abstract] @@ -338,44 +338,45 @@ namespace PassKit { void WillAuthorizePayment (PKPaymentAuthorizationViewController controller); [NoMac] - [iOS (9,0)] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectShippingContact' instead.")] + [iOS (9, 0)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectShippingContact' instead.")] [Export ("paymentAuthorizationViewController:didSelectShippingContact:completion:")] [EventArgs ("PKPaymentSelectedContact")] void DidSelectShippingContact (PKPaymentAuthorizationViewController controller, PKContact contact, PKPaymentShippingAddressSelected completion); - [iOS (11,0)] + [iOS (11, 0)] [Export ("paymentAuthorizationViewController:didSelectShippingContact:handler:")] [EventArgs ("PKPaymentRequestShippingContactUpdate")] void DidSelectShippingContact2 (PKPaymentAuthorizationViewController controller, PKContact contact, Action completion); [NoMac] - [iOS (9,0)] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectPaymentMethod2' instead.")] + [iOS (9, 0)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectPaymentMethod2' instead.")] [Export ("paymentAuthorizationViewController:didSelectPaymentMethod:completion:")] [EventArgs ("PKPaymentMethodSelected")] - void DidSelectPaymentMethod (PKPaymentAuthorizationViewController controller, PKPaymentMethod paymentMethod, Action completion); + void DidSelectPaymentMethod (PKPaymentAuthorizationViewController controller, PKPaymentMethod paymentMethod, Action completion); - [iOS (11,0)] + [iOS (11, 0)] [Export ("paymentAuthorizationViewController:didSelectPaymentMethod:handler:")] [EventArgs ("PKPaymentRequestPaymentMethodUpdate")] void DidSelectPaymentMethod2 (PKPaymentAuthorizationViewController controller, PKPaymentMethod paymentMethod, Action completion); - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("paymentAuthorizationViewController:didRequestMerchantSessionUpdate:")] [EventArgs ("PKPaymentRequestMerchantSessionUpdate")] void DidRequestMerchantSessionUpdate (PKPaymentAuthorizationViewController controller, Action updateHandler); - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("paymentAuthorizationViewController:didChangeCouponCode:handler:")] [EventArgs ("PKPaymentRequestCouponCodeUpdate")] void DidChangeCouponCode (PKPaymentAuthorizationViewController controller, string couponCode, Action completion); } - [Mac (11,0)] - [iOS (8,0)] - [BaseType (typeof (UIViewController), Delegates=new string []{"Delegate"}, Events=new Type [] {typeof(PKPaymentAuthorizationViewControllerDelegate)})] + [Mac (11, 0)] + [iOS (8, 0)] + [BaseType (typeof (UIViewController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (PKPaymentAuthorizationViewControllerDelegate) })] [DisableDefaultCtor] interface PKPaymentAuthorizationViewController { [DesignatedInitializer] @@ -397,16 +398,16 @@ namespace PassKit { [Static, Export ("canMakePaymentsUsingNetworks:")] bool CanMakePaymentsUsingNetworks (NSString [] paymentNetworks); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("canMakePaymentsUsingNetworks:capabilities:")] - bool CanMakePaymentsUsingNetworks (string[] supportedNetworks, PKMerchantCapability capabilties); + bool CanMakePaymentsUsingNetworks (string [] supportedNetworks, PKMerchantCapability capabilties); } #endif - [Watch (3,0)] - [iOS (8,0)] - [Mac (11,0)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface PKPaymentSummaryItem { [NullAllowed] // by default this property is null @@ -420,19 +421,19 @@ namespace PassKit { [Static, Export ("summaryItemWithLabel:amount:")] PKPaymentSummaryItem Create (string label, NSDecimalNumber amount); - [iOS (9,0)] + [iOS (9, 0)] [Export ("type", ArgumentSemantic.Assign)] PKPaymentSummaryItemType Type { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("summaryItemWithLabel:amount:type:")] PKPaymentSummaryItem Create (string label, NSDecimalNumber amount, PKPaymentSummaryItemType type); } - [Watch (3,0)] - [iOS (8,0)] - [Mac (11,0)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (PKPaymentSummaryItem))] interface PKShippingMethod { [NullAllowed] // by default this property is null @@ -443,15 +444,15 @@ namespace PassKit { [Export ("detail")] string Detail { get; set; } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [NullAllowed] [Export ("dateComponentsRange", ArgumentSemantic.Copy)] PKDateComponentsRange DateComponentsRange { get; set; } } - [Watch (3,0)] - [iOS (8,0)] - [Mac (11,0)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface PKPaymentRequest { [NullAllowed] // by default this property is null @@ -477,22 +478,22 @@ namespace PassKit { [Export ("currencyCode")] string CurrencyCode { get; set; } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportsCouponCode")] bool SupportsCouponCode { get; set; } [NullAllowed] - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("couponCode")] string CouponCode { get; set; } - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("shippingContactEditingMode", ArgumentSemantic.Assign)] PKShippingContactEditingMode ShippingContactEditingMode { get; set; } [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'RequiredBillingContactFields' instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequiredBillingContactFields' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'RequiredBillingContactFields' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RequiredBillingContactFields' instead.")] [Export ("requiredBillingAddressFields", ArgumentSemantic.UnsafeUnretained)] PKAddressField RequiredBillingAddressFields { get; set; } @@ -505,8 +506,8 @@ namespace PassKit { ABRecord BillingAddress { get; set; } [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'RequiredShippingContactFields' instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequiredShippingContactFields' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'RequiredShippingContactFields' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RequiredShippingContactFields' instead.")] [Export ("requiredShippingAddressFields", ArgumentSemantic.UnsafeUnretained)] PKAddressField RequiredShippingAddressFields { get; set; } @@ -526,98 +527,109 @@ namespace PassKit { [Export ("applicationData", ArgumentSemantic.Copy)] NSData ApplicationData { get; set; } - [iOS (8,3)] + [iOS (8, 3)] [Export ("shippingType", ArgumentSemantic.Assign)] PKShippingType ShippingType { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("shippingContact", ArgumentSemantic.Strong)] PKContact ShippingContact { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("billingContact", ArgumentSemantic.Strong)] PKContact BillingContact { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [Static] [Export ("availableNetworks")] - NSString[] AvailableNetworks { get; } + NSString [] AvailableNetworks { get; } - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("requiredBillingContactFields", ArgumentSemantic.Strong)] NSSet WeakRequiredBillingContactFields { get; set; } - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("requiredShippingContactFields", ArgumentSemantic.Strong)] NSSet WeakRequiredShippingContactFields { get; set; } - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [NullAllowed, Export ("supportedCountries", ArgumentSemantic.Copy)] NSSet SupportedCountries { get; set; } - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("paymentContactInvalidErrorWithContactField:localizedDescription:")] NSError CreatePaymentContactInvalidError (NSString field, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [Wrap ("CreatePaymentContactInvalidError (contactField.GetConstant ()!, localizedDescription)")] NSError CreatePaymentContactInvalidError (PKContactFields contactField, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("paymentShippingAddressInvalidErrorWithKey:localizedDescription:")] NSError CreatePaymentShippingAddressInvalidError (NSString postalAddressKey, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [Wrap ("CreatePaymentShippingAddressInvalidError (postalAddress.GetConstant ()!, localizedDescription)")] NSError CreatePaymentShippingAddressInvalidError (CNPostalAddressKeyOption postalAddress, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("paymentBillingAddressInvalidErrorWithKey:localizedDescription:")] NSError CreatePaymentBillingAddressInvalidError (NSString postalAddressKey, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [Wrap ("CreatePaymentBillingAddressInvalidError (postalAddress.GetConstant ()!, localizedDescription)")] NSError CreatePaymentBillingAddressInvalidError (CNPostalAddressKeyOption postalAddress, [NullAllowed] string localizedDescription); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Static] [Export ("paymentShippingAddressUnserviceableErrorWithLocalizedDescription:")] NSError CreatePaymentShippingAddressUnserviceableError ([NullAllowed] string localizedDescription); - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("paymentCouponCodeInvalidErrorWithLocalizedDescription:")] NSError GetCouponCodeInvalidError ([NullAllowed] string localizedDescription); - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("paymentCouponCodeExpiredErrorWithLocalizedDescription:")] NSError GetCouponCodeExpiredError ([NullAllowed] string localizedDescription); - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [Export ("multiTokenContexts", ArgumentSemantic.Copy)] - PKPaymentTokenContext[] MultiTokenContexts { get; set; } + PKPaymentTokenContext [] MultiTokenContexts { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [NullAllowed, Export ("recurringPaymentRequest", ArgumentSemantic.Strong)] PKRecurringPaymentRequest RecurringPaymentRequest { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [NullAllowed, Export ("automaticReloadPaymentRequest", ArgumentSemantic.Strong)] PKAutomaticReloadPaymentRequest AutomaticReloadPaymentRequest { get; set; } } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] [Flags] enum PKContactFields { None = 0, @@ -638,9 +650,9 @@ namespace PassKit { PhoneticName = 1 << 4, } - [Watch (3,0)] - [iOS (8,0)] - [Mac (11,0)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface PKPaymentToken { @@ -662,14 +674,14 @@ namespace PassKit { [Export ("paymentData", ArgumentSemantic.Copy)] NSData PaymentData { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("paymentMethod", ArgumentSemantic.Strong)] - PKPaymentMethod PaymentMethod { get; } + PKPaymentMethod PaymentMethod { get; } } [NoMac] // under `TARGET_OS_IPHONE` [NoWatch] - [BaseType (typeof (UIViewController), Delegates = new string [] {"WeakDelegate"}, Events = new Type [] { typeof (PKAddPassesViewControllerDelegate) })] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PKAddPassesViewControllerDelegate) })] // invalid null handle for default 'init' [DisableDefaultCtor] interface PKAddPassesViewController { @@ -681,21 +693,21 @@ namespace PassKit { [Export ("initWithPass:")] NativeHandle Constructor (PKPass pass); - [iOS (7,0)] + [iOS (7, 0)] [Export ("initWithPasses:")] - NativeHandle Constructor (PKPass[] pass); + NativeHandle Constructor (PKPass [] pass); - [iOS (8,0)] + [iOS (8, 0)] [Static] [Export ("canAddPasses")] - bool CanAddPasses { get;} - + bool CanAddPasses { get; } + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - PKAddPassesViewControllerDelegate Delegate { get; set; } + PKAddPassesViewControllerDelegate Delegate { get; set; } } [NoMac] // under `TARGET_OS_IPHONE` @@ -709,64 +721,62 @@ namespace PassKit { } [NoWatch] - [iOS (9,0)] - [Mac (11,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated - interface PKAddPaymentPassRequest : NSSecureCoding - { + interface PKAddPaymentPassRequest : NSSecureCoding { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); [NullAllowed, Export ("encryptedPassData", ArgumentSemantic.Copy)] NSData EncryptedPassData { get; set; } - + [NullAllowed, Export ("activationData", ArgumentSemantic.Copy)] NSData ActivationData { get; set; } - + [NullAllowed, Export ("ephemeralPublicKey", ArgumentSemantic.Copy)] NSData EphemeralPublicKey { get; set; } - + [NullAllowed, Export ("wrappedKey", ArgumentSemantic.Copy)] NSData WrappedKey { get; set; } } - [Mac (11,0)] // not explict (no availability macro) but part of macOS headers + [Mac (11, 0)] // not explict (no availability macro) but part of macOS headers [NoWatch] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKAddPaymentPassRequestConfiguration : NSSecureCoding - { + interface PKAddPaymentPassRequestConfiguration : NSSecureCoding { [DesignatedInitializer] [Export ("initWithEncryptionScheme:")] NativeHandle Constructor (NSString encryptionScheme); [Export ("encryptionScheme")] NSString EncryptionScheme { get; } - + [NullAllowed, Export ("cardholderName")] string CardholderName { get; set; } - + [NullAllowed, Export ("primaryAccountSuffix")] string PrimaryAccountSuffix { get; set; } - [iOS (10,1)] + [iOS (10, 1)] [NoWatch] // Radar: https://trello.com/c/MvaHEZlc [Export ("cardDetails", ArgumentSemantic.Copy)] - PKLabeledValue[] CardDetails { get; set; } - + PKLabeledValue [] CardDetails { get; set; } + [NullAllowed, Export ("localizedDescription")] string LocalizedDescription { get; set; } - + [NullAllowed, Export ("primaryAccountIdentifier")] string PrimaryAccountIdentifier { get; set; } - + [NullAllowed, Export ("paymentNetwork")] string PaymentNetwork { get; set; } - [iOS (10,1)] + [iOS (10, 1)] [NoWatch] // Radar: https://trello.com/c/MvaHEZlc [Export ("requiresFelicaSecureElement")] bool RequiresFelicaSecureElement { get; set; } @@ -776,22 +786,21 @@ namespace PassKit { PKAddPaymentPassStyle Style { get; set; } [NoWatch] // https://feedbackassistant.apple.com/feedback/6301809 https://github.com/xamarin/maccore/issues/1819 - [iOS (12,3)] + [iOS (12, 3)] [Export ("productIdentifiers", ArgumentSemantic.Copy)] NSSet ProductIdentifiers { get; set; } } [NoMac] // under `#if TARGET_OS_IPHONE` [NoWatch] - [iOS (9,0)] - [BaseType (typeof(UIViewController))] + [iOS (9, 0)] + [BaseType (typeof (UIViewController))] [DisableDefaultCtor] - interface PKAddPaymentPassViewController - { + interface PKAddPaymentPassViewController { [Static] [Export ("canAddPaymentPass")] bool CanAddPaymentPass { get; } - + [DesignatedInitializer] [Export ("initWithRequestConfiguration:delegate:")] NativeHandle Constructor (PKAddPaymentPassRequestConfiguration configuration, [NullAllowed] IPKAddPaymentPassViewControllerDelegate viewControllerDelegate); @@ -805,29 +814,28 @@ namespace PassKit { [Wrap ("WeakDelegate")] [NullAllowed, Protocolize] PKAddPaymentPassViewControllerDelegate Delegate { get; set; } - + [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } } - interface IPKAddPaymentPassViewControllerDelegate {} - + interface IPKAddPaymentPassViewControllerDelegate { } + [NoWatch] [NoMac] // under `#if TARGET_OS_IPHONE` [Protocol, Model] - [BaseType (typeof(NSObject))] - interface PKAddPaymentPassViewControllerDelegate - { + [BaseType (typeof (NSObject))] + interface PKAddPaymentPassViewControllerDelegate { [Abstract] [Export ("addPaymentPassViewController:generateRequestWithCertificateChain:nonce:nonceSignature:completionHandler:")] - void GenerateRequestWithCertificateChain (PKAddPaymentPassViewController controller, NSData[] certificates, NSData nonce, NSData nonceSignature, Action handler); - + void GenerateRequestWithCertificateChain (PKAddPaymentPassViewController controller, NSData [] certificates, NSData nonce, NSData nonceSignature, Action handler); + [Abstract] [Export ("addPaymentPassViewController:didFinishAddingPaymentPass:error:")] void DidFinishAddingPaymentPass (PKAddPaymentPassViewController controller, [NullAllowed] PKPaymentPass pass, [NullAllowed] NSError error); } - - [Mac (11,0)] + + [Mac (11, 0)] [BaseType (typeof (PKObject))] interface PKPass : NSSecureCoding, NSCopying { [Export ("initWithData:error:")] @@ -877,46 +885,45 @@ namespace PassKit { NSString ErrorDomain { get; } #endif - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed, Export ("userInfo", ArgumentSemantic.Copy)] NSDictionary UserInfo { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("passType")] PKPassType PassType { get; } [Deprecated (PlatformName.iOS, 13, 4, message: "Use 'SecureElementPass' instead.")] [Deprecated (PlatformName.WatchOS, 6, 2, message: "Use 'SecureElementPass' instead.")] [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [Export ("paymentPass")] PKPaymentPass PaymentPass { get; } - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [NullAllowed, Export ("secureElementPass")] PKSecureElementPass SecureElementPass { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("remotePass")] bool RemotePass { [Bind ("isRemotePass")] get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("deviceName")] - string DeviceName { get; } + string DeviceName { get; } } - [Watch (3,0)] - [iOS (9,0)] - [Mac (11,0)] - [BaseType (typeof(NSObject))] - interface PKPaymentMethod : NSSecureCoding - { + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (11, 0)] + [BaseType (typeof (NSObject))] + interface PKPaymentMethod : NSSecureCoding { [NullAllowed, Export ("displayName")] string DisplayName { get; } - + [NullAllowed, Export ("network")] string Network { get; } - + [Export ("type")] PKPaymentMethodType Type { get; } @@ -926,7 +933,7 @@ namespace PassKit { [NullAllowed, Export ("paymentPass", ArgumentSemantic.Copy)] PKPaymentPass PaymentPass { get; } - [Watch (6,2), iOS (13,4)] + [Watch (6, 2), iOS (13, 4)] [NullAllowed, Export ("secureElementPass", ArgumentSemantic.Copy)] PKSecureElementPass SecureElementPass { get; } @@ -935,8 +942,8 @@ namespace PassKit { CNContact BillingAddress { get; } } - [iOS (8,0)] - [Mac (11,0)] + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (PKSecureElementPass))] interface PKPaymentPass { @@ -946,49 +953,51 @@ namespace PassKit { [Export ("activationState")] PKPaymentPassActivationState ActivationState { get; } } - - [iOS (8,0)] - [Mac (11,0)] + + [iOS (8, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] partial interface PKObject : NSCoding, NSSecureCoding, NSCopying { //Empty class in header file } [Static] - [iOS (8,0)] - [Watch (3,0)] - [Mac (11,0)] + [iOS (8, 0)] + [Watch (3, 0)] + [Mac (11, 0)] interface PKPaymentNetwork { [Field ("PKPaymentNetworkAmex")] NSString Amex { get; } [NoMac] - [iOS (10,3), Watch (3,2)] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'CartesBancaires' instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'CartesBancaires' instead.")] + [iOS (10, 3), Watch (3, 2)] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'CartesBancaires' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CartesBancaires' instead.")] [Field ("PKPaymentNetworkCarteBancaire")] NSString CarteBancaire { get; } [NoMac] - [iOS (11,0)][Watch (4,0)] - [Deprecated (PlatformName.WatchOS, 4,2, message: "Use 'CartesBancaires' instead.")] - [Deprecated (PlatformName.iOS, 11,2, message: "Use 'CartesBancaires' instead.")] + [iOS (11, 0)] + [Watch (4, 0)] + [Deprecated (PlatformName.WatchOS, 4, 2, message: "Use 'CartesBancaires' instead.")] + [Deprecated (PlatformName.iOS, 11, 2, message: "Use 'CartesBancaires' instead.")] [Field ("PKPaymentNetworkCarteBancaires")] NSString CarteBancaires { get; } - [iOS (11,2)][Watch (4,2)] + [iOS (11, 2)] + [Watch (4, 2)] [Field ("PKPaymentNetworkCartesBancaires")] NSString CartesBancaires { get; } - [iOS (9,2)] + [iOS (9, 2)] [Field ("PKPaymentNetworkChinaUnionPay")] NSString ChinaUnionPay { get; } - [Watch (8,5), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Watch (8, 5), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Field ("PKPaymentNetworkDankort")] NSString Dankort { get; } - [iOS (9,2)] + [iOS (9, 2)] [Field ("PKPaymentNetworkInterac")] NSString Interac { get; } @@ -998,89 +1007,95 @@ namespace PassKit { [Field ("PKPaymentNetworkVisa")] NSString Visa { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("PKPaymentNetworkDiscover")] NSString Discover { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("PKPaymentNetworkPrivateLabel")] NSString PrivateLabel { get; } - [Watch (3,1), iOS (10,1)] + [Watch (3, 1), iOS (10, 1)] [Field ("PKPaymentNetworkJCB")] NSString Jcb { get; } - [Watch (3,1), iOS (10,1)] + [Watch (3, 1), iOS (10, 1)] [Field ("PKPaymentNetworkSuica")] NSString Suica { get; } - [iOS (10,3), Watch (3,2)] + [iOS (10, 3), Watch (3, 2)] [Field ("PKPaymentNetworkQuicPay")] NSString QuicPay { get; } - [iOS (10,3), Watch (3,2)] + [iOS (10, 3), Watch (3, 2)] [Field ("PKPaymentNetworkIDCredit")] NSString IDCredit { get; } - [iOS (12,0), Watch (5,0)] + [iOS (12, 0), Watch (5, 0)] [Field ("PKPaymentNetworkElectron")] NSString Electron { get; } - [iOS (12,0), Watch (5,0)] + [iOS (12, 0), Watch (5, 0)] [Field ("PKPaymentNetworkMaestro")] NSString Maestro { get; } - [iOS (12,0), Watch (5,0)] + [iOS (12, 0), Watch (5, 0)] [Field ("PKPaymentNetworkVPay")] NSString VPay { get; } - [iOS (12,0), Watch (5,0)] + [iOS (12, 0), Watch (5, 0)] [Field ("PKPaymentNetworkEftpos")] NSString Eftpos { get; } - [Watch (5,1,2)][iOS (12,1,1)] + [Watch (5, 1, 2)] + [iOS (12, 1, 1)] [Field ("PKPaymentNetworkElo")] NSString Elo { get; } - [Watch (5,1,2)][iOS (12,1,1)] + [Watch (5, 1, 2)] + [iOS (12, 1, 1)] [Field ("PKPaymentNetworkMada")] NSString Mada { get; } - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("PKPaymentNetworkBarcode")] NSString Barcode { get; } - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("PKPaymentNetworkGirocard")] NSString Girocard { get; } - [Watch (7,4)][Mac (11,3)][iOS (14, 5)] - [MacCatalyst (14,5)] + [Watch (7, 4)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("PKPaymentNetworkMir")] NSString Mir { get; } - [Watch (9,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (9, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("PKPaymentNetworkNanaco")] NSString Nanaco { get; } - [Watch (9,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (9, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("PKPaymentNetworkWaon")] NSString Waon { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [Field ("PKPaymentNetworkBancomat")] NSString Bancomat { get; } - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [Field ("PKPaymentNetworkBancontact")] NSString Bancontact { get; } } #if !WATCH - [Mac (11,0)] - [iOS (8,3)] + [Mac (11, 0)] + [iOS (8, 3)] [BaseType (typeof (UIButton))] [DisableDefaultCtor] interface PKPaymentButton { @@ -1090,7 +1105,7 @@ namespace PassKit { // note: named like UIButton method PKPaymentButton FromType (PKPaymentButtonType buttonType, PKPaymentButtonStyle buttonStyle); - [iOS (9,0)] + [iOS (9, 0)] [Export ("initWithPaymentButtonType:paymentButtonStyle:")] [DesignatedInitializer] NativeHandle Constructor (PKPaymentButtonType type, PKPaymentButtonStyle style); @@ -1101,7 +1116,7 @@ namespace PassKit { } [NoMac] // under `#if TARGET_OS_IOS` - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UIButton))] [DisableDefaultCtor] interface PKAddPassButton { @@ -1119,21 +1134,22 @@ namespace PassKit { } #endif // !WATCH - [Mac (11,0)] - [iOS(9,0)] + [Mac (11, 0)] + [iOS (9, 0)] [Static] interface PKEncryptionScheme { [Field ("PKEncryptionSchemeECC_V2")] NSString Ecc_V2 { get; } - [iOS (10,0)] - [Watch (3,0)] + [iOS (10, 0)] + [Watch (3, 0)] [Field ("PKEncryptionSchemeRSA_V2")] NSString Rsa_V2 { get; } } - [Mac (11,0)] - [Watch (3,0)][iOS (10,0)] + [Mac (11, 0)] + [Watch (3, 0)] + [iOS (10, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // providing DesignatedInitializer interface PKPaymentAuthorizationController { @@ -1144,11 +1160,11 @@ namespace PassKit { [Static] [Export ("canMakePaymentsUsingNetworks:")] - bool CanMakePaymentsUsingNetworks (string[] supportedNetworks); + bool CanMakePaymentsUsingNetworks (string [] supportedNetworks); [Static] [Export ("canMakePaymentsUsingNetworks:capabilities:")] - bool CanMakePaymentsUsingNetworks (string[] supportedNetworks, PKMerchantCapability capabilties); + bool CanMakePaymentsUsingNetworks (string [] supportedNetworks, PKMerchantCapability capabilties); [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IPKPaymentAuthorizationControllerDelegate Delegate { get; set; } @@ -1166,24 +1182,27 @@ namespace PassKit { void Dismiss ([NullAllowed] Action completion); } - interface IPKPaymentAuthorizationControllerDelegate {} + interface IPKPaymentAuthorizationControllerDelegate { } - [Mac (11,0)] - [Watch (3,0)][iOS (10,0)] - [Protocol][Model] + [Mac (11, 0)] + [Watch (3, 0)] + [iOS (10, 0)] + [Protocol] + [Model] [BaseType (typeof (NSObject))] interface PKPaymentAuthorizationControllerDelegate { [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'DidAuthorizePayment' overload with the 'Action' parameter instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidAuthorizePayment' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'DidAuthorizePayment' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidAuthorizePayment' overload with the 'Action' parameter instead.")] #if !NET [Abstract] #endif [Export ("paymentAuthorizationController:didAuthorizePayment:completion:")] void DidAuthorizePayment (PKPaymentAuthorizationController controller, PKPayment payment, Action completion); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("paymentAuthorizationController:didAuthorizePayment:handler:")] void DidAuthorizePayment (PKPaymentAuthorizationController controller, PKPayment payment, Action completion); @@ -1195,46 +1214,51 @@ namespace PassKit { void WillAuthorizePayment (PKPaymentAuthorizationController controller); [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'DidSelectShippingMethod' overload with the 'Action' parameter instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectShippingMethod' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'DidSelectShippingMethod' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectShippingMethod' overload with the 'Action' parameter instead.")] [Export ("paymentAuthorizationController:didSelectShippingMethod:completion:")] - void DidSelectShippingMethod (PKPaymentAuthorizationController controller, PKShippingMethod shippingMethod, Action completion); + void DidSelectShippingMethod (PKPaymentAuthorizationController controller, PKShippingMethod shippingMethod, Action completion); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("paymentAuthorizationController:didSelectShippingMethod:handler:")] void DidSelectShippingMethod (PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, Action completion); [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'DidSelectShippingContact' overload with the 'Action' parameter instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectShippingContact' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'DidSelectShippingContact' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectShippingContact' overload with the 'Action' parameter instead.")] [Export ("paymentAuthorizationController:didSelectShippingContact:completion:")] - void DidSelectShippingContact (PKPaymentAuthorizationController controller, PKContact contact, Action completion); + void DidSelectShippingContact (PKPaymentAuthorizationController controller, PKContact contact, Action completion); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("paymentAuthorizationController:didSelectShippingContact:handler:")] void DidSelectShippingContact (PKPaymentAuthorizationController controller, PKContact contact, Action completion); [NoMac] - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'DidSelectPaymentMethod' overload with the 'Action' parameter instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'DidSelectPaymentMethod' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'DidSelectPaymentMethod' overload with the 'Action' parameter instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'DidSelectPaymentMethod' overload with the 'Action' parameter instead.")] [Export ("paymentAuthorizationController:didSelectPaymentMethod:completion:")] - void DidSelectPaymentMethod (PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, Action completion); + void DidSelectPaymentMethod (PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, Action completion); - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Export ("paymentAuthorizationController:didSelectPaymentMethod:handler:")] void DidSelectPaymentMethod (PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, Action completion); - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("paymentAuthorizationController:didRequestMerchantSessionUpdate:")] void DidRequestMerchantSessionUpdate (PKPaymentAuthorizationController controller, Action handler); - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("paymentAuthorizationController:didChangeCouponCode:handler:")] void DidChangeCouponCode (PKPaymentAuthorizationController controller, string couponCode, Action completion); - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("presentationWindowForPaymentAuthorizationController:")] [return: NullAllowed] #if MONOMAC || __MACCATALYST__ @@ -1243,13 +1267,12 @@ namespace PassKit { UIWindow GetPresentationWindow (PKPaymentAuthorizationController controller); } - [Mac (11,0)] - [iOS (10,1)] + [Mac (11, 0)] + [iOS (10, 1)] [NoWatch] // Radar: https://trello.com/c/MvaHEZlc - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // there's a designated initializer and it does not accept null - interface PKLabeledValue - { + interface PKLabeledValue { [Export ("initWithLabel:value:")] [DesignatedInitializer] NativeHandle Constructor (string label, string value); @@ -1261,8 +1284,8 @@ namespace PassKit { string Value { get; } } - [Mac (11,0)] - [Watch (4,3), iOS (11,3)] + [Mac (11, 0)] + [Watch (4, 3), iOS (11, 3)] [BaseType (typeof (PKStoredValuePassProperties))] [DisableDefaultCtor] interface PKTransitPassProperties { @@ -1289,16 +1312,17 @@ namespace PassKit { [Export ("inStation")] bool InStation { [Bind ("isInStation")] get; } - [Deprecated (PlatformName.iOS, 14,5, message: "Use 'Blocked' instead.")] - [Deprecated (PlatformName.MacCatalyst, 14,5, message: "Use 'Blocked' instead.")] - [Deprecated (PlatformName.WatchOS, 7,4, message: "Use 'Blocked' instead.")] - [Deprecated (PlatformName.MacOSX, 11,3, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.iOS, 14, 5, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacCatalyst, 14, 5, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 4, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 3, message: "Use 'Blocked' instead.")] [Export ("blacklisted")] bool Blacklisted { [Bind ("isBlacklisted")] get; } - [iOS (14,5)][Watch (7,4)] - [Mac (11,3)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [Watch (7, 4)] + [Mac (11, 3)] + [MacCatalyst (14, 5)] [Export ("blocked")] bool Blocked { [Bind ("isBlocked")] get; } @@ -1306,14 +1330,13 @@ namespace PassKit { NSDate ExpirationDate { get; } } - [Mac (11,0)] - [Watch (3,1), iOS (10,1)] + [Mac (11, 0)] + [Watch (3, 1), iOS (10, 1)] #if NET || MONOMAC [DisableDefaultCtor] // hint: getter only props and a factory method. #endif [BaseType (typeof (PKTransitPassProperties))] - interface PKSuicaPassProperties - { + interface PKSuicaPassProperties { [Static] [Export ("passPropertiesForPass:")] [return: NullAllowed] @@ -1331,11 +1354,11 @@ namespace PassKit { [Export ("inShinkansenStation")] bool InShinkansenStation { [Bind ("isInShinkansenStation")] get; } - [Watch (4,3), iOS (11,3)] + [Watch (4, 3), iOS (11, 3)] [Export ("balanceAllowedForCommute")] bool BalanceAllowedForCommute { [Bind ("isBalanceAllowedForCommute")] get; } - [Watch (4,3), iOS (11,3)] + [Watch (4, 3), iOS (11, 3)] [Export ("lowBalanceGateNotificationEnabled")] bool LowBalanceGateNotificationEnabled { [Bind ("isLowBalanceGateNotificationEnabled")] get; } @@ -1343,85 +1366,89 @@ namespace PassKit { bool GreenCarTicketUsed { [Bind ("isGreenCarTicketUsed")] get; } [Export ("blacklisted")] - [Deprecated (PlatformName.iOS, 14,5, message: "Use 'Blocked' instead.")] // exists in base class - [Deprecated (PlatformName.WatchOS, 7,4, message: "Use 'Blocked' instead.")] - [Deprecated (PlatformName.MacOSX, 11,3, message: "Use 'Blocked' instead.")] - [Deprecated (PlatformName.MacCatalyst, 14,5, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.iOS, 14, 5, message: "Use 'Blocked' instead.")] // exists in base class + [Deprecated (PlatformName.WatchOS, 7, 4, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 3, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacCatalyst, 14, 5, message: "Use 'Blocked' instead.")] bool Blacklisted { [Bind ("isBlacklisted")] get; } } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentAuthorizationResult { [Export ("initWithStatus:errors:")] [DesignatedInitializer] - NativeHandle Constructor (PKPaymentAuthorizationStatus status, [NullAllowed] NSError[] errors); + NativeHandle Constructor (PKPaymentAuthorizationStatus status, [NullAllowed] NSError [] errors); [Export ("status", ArgumentSemantic.Assign)] PKPaymentAuthorizationStatus Status { get; set; } [NullAllowed, Export ("errors", ArgumentSemantic.Copy)] - NSError[] Errors { get; set; } + NSError [] Errors { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [NullAllowed, Export ("orderDetails", ArgumentSemantic.Strong)] PKPaymentOrderDetails OrderDetails { get; set; } } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] - [BaseType (typeof(NSObject))] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentRequestUpdate { [Export ("initWithPaymentSummaryItems:")] [DesignatedInitializer] - NativeHandle Constructor (PKPaymentSummaryItem[] paymentSummaryItems); + NativeHandle Constructor (PKPaymentSummaryItem [] paymentSummaryItems); [Export ("status", ArgumentSemantic.Assign)] PKPaymentAuthorizationStatus Status { get; set; } [Export ("paymentSummaryItems", ArgumentSemantic.Copy)] - PKPaymentSummaryItem[] PaymentSummaryItems { get; set; } + PKPaymentSummaryItem [] PaymentSummaryItems { get; set; } - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("shippingMethods", ArgumentSemantic.Copy)] - PKShippingMethod[] ShippingMethods { get; set; } + PKShippingMethod [] ShippingMethods { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), NoTV, MacCatalyst (16,0)] + [NoWatch, Mac (13, 0), iOS (16, 0), NoTV, MacCatalyst (16, 0)] [NullAllowed, Export ("multiTokenContexts", ArgumentSemantic.Copy)] - PKPaymentTokenContext[] MultiTokenContexts { get; set; } + PKPaymentTokenContext [] MultiTokenContexts { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), NoTV, MacCatalyst (16,0)] + [NoWatch, Mac (13, 0), iOS (16, 0), NoTV, MacCatalyst (16, 0)] [NullAllowed, Export ("recurringPaymentRequest", ArgumentSemantic.Strong)] PKRecurringPaymentRequest RecurringPaymentRequest { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), NoTV, MacCatalyst (16,0)] + [NoWatch, Mac (13, 0), iOS (16, 0), NoTV, MacCatalyst (16, 0)] [NullAllowed, Export ("automaticReloadPaymentRequest", ArgumentSemantic.Strong)] PKAutomaticReloadPaymentRequest AutomaticReloadPaymentRequest { get; set; } } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] [BaseType (typeof (PKPaymentRequestUpdate))] [DisableDefaultCtor] interface PKPaymentRequestShippingContactUpdate { [Export ("initWithErrors:paymentSummaryItems:shippingMethods:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] NSError[] errors, PKPaymentSummaryItem[] paymentSummaryItems, PKShippingMethod[] shippingMethods); + NativeHandle Constructor ([NullAllowed] NSError [] errors, PKPaymentSummaryItem [] paymentSummaryItems, PKShippingMethod [] shippingMethods); [Export ("shippingMethods", ArgumentSemantic.Copy)] - PKShippingMethod[] ShippingMethods { get; set; } + PKShippingMethod [] ShippingMethods { get; set; } [NullAllowed, Export ("errors", ArgumentSemantic.Copy)] - NSError[] Errors { get; set; } + NSError [] Errors { get; set; } } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] [BaseType (typeof (PKPaymentRequestUpdate))] [DisableDefaultCtor] interface PKPaymentRequestShippingMethodUpdate { @@ -1429,39 +1456,42 @@ namespace PassKit { // inlined [Export ("initWithPaymentSummaryItems:")] [DesignatedInitializer] - NativeHandle Constructor (PKPaymentSummaryItem[] paymentSummaryItems); + NativeHandle Constructor (PKPaymentSummaryItem [] paymentSummaryItems); } - [Mac (11,0)] - [Watch (4,0)][iOS (11,0)] + [Mac (11, 0)] + [Watch (4, 0)] + [iOS (11, 0)] [BaseType (typeof (PKPaymentRequestUpdate))] [DisableDefaultCtor] interface PKPaymentRequestPaymentMethodUpdate { - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [Export ("initWithErrors:paymentSummaryItems:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] NSError[] errors, PKPaymentSummaryItem [] paymentSummaryItems); + NativeHandle Constructor ([NullAllowed] NSError [] errors, PKPaymentSummaryItem [] paymentSummaryItems); - [Watch (6,0), iOS (13,0)] + [Watch (6, 0), iOS (13, 0)] [NullAllowed, Export ("errors", ArgumentSemantic.Copy)] NSError [] Errors { get; set; } // inlined [Export ("initWithPaymentSummaryItems:")] [DesignatedInitializer] - NativeHandle Constructor (PKPaymentSummaryItem[] paymentSummaryItems); + NativeHandle Constructor (PKPaymentSummaryItem [] paymentSummaryItems); } - [Mac (11,0)] + [Mac (11, 0)] [Static] // not to enum'ify - exposed as NSString inside NSError interface PKPaymentErrorKeys { - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Field ("PKPaymentErrorContactFieldUserInfoKey")] NSString ContactFieldUserInfoKey { get; } - [Watch (4,0)][iOS (11,0)] + [Watch (4, 0)] + [iOS (11, 0)] [Field ("PKPaymentErrorPostalAddressUserInfoKey")] NSString PostalAddressUserInfoKey { get; } } @@ -1470,7 +1500,7 @@ namespace PassKit { [NoWatch] [NoMac] // both members are not available but, like many times, the protocol is not decorated - [iOS (12,2)] + [iOS (12, 2)] [Protocol, Model] [BaseType (typeof (NSObject))] interface PKDisbursementAuthorizationControllerDelegate { @@ -1485,7 +1515,7 @@ namespace PassKit { [NoWatch] [NoMac] // all members are not available but, like many times, the type is not decorated - [iOS (12,2)] + [iOS (12, 2)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKDisbursementAuthorizationController { @@ -1541,7 +1571,7 @@ namespace PassKit { [NoMac] // all members annoted `API_UNAVAILABLE(...macos)` [NoWatch] - [iOS (12,2)] + [iOS (12, 2)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // given from OS to PKDisbursementAuthorizationControllerDelegate interface PKDisbursementVoucher { @@ -1552,8 +1582,8 @@ namespace PassKit { NSUrl RedemptionUrl { get; } } - [Mac (11,0)] - [Watch (6,2), iOS (13,4)] + [Mac (11, 0)] + [Watch (6, 2), iOS (13, 4)] [BaseType (typeof (PKPass))] [DisableDefaultCtor] interface PKSecureElementPass { @@ -1580,19 +1610,19 @@ namespace PassKit { string PairedTerminalIdentifier { get; } } - [Mac (11,0)] + [Mac (11, 0)] [NoWatch, NoTV] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] public enum PKAddShareablePassConfigurationPrimaryAction : ulong { Add, Share, } - [Mac (11,0)] - [Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [Native] public enum PKBarcodeEventConfigurationDataType : long { @@ -1602,8 +1632,8 @@ namespace PassKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] public enum PKIssuerProvisioningExtensionAuthorizationResult : long { Canceled, @@ -1611,8 +1641,8 @@ namespace PassKit { } [NoWatch, NoTV] - [iOS (13,4)] - [Mac (11,0)] + [iOS (13, 4)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKAddSecureElementPassConfiguration { @@ -1625,8 +1655,8 @@ namespace PassKit { } [NoWatch, NoTV] - [Mac (11,0)] // not explicit (no attribute) but headers are present - [iOS (13,4)] + [Mac (11, 0)] // not explicit (no attribute) but headers are present + [iOS (13, 4)] [BaseType (typeof (PKAddSecureElementPassConfiguration))] // note: `init` is present in headers interface PKAddCarKeyPassConfiguration { @@ -1635,27 +1665,27 @@ namespace PassKit { string Password { get; set; } // headers say [Watch (7,3)] but PKAddSecureElementPassConfiguration is not supported for watch - [iOS (14,5)] - [Mac (11,3)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [Mac (11, 3)] + [MacCatalyst (14, 5)] [Export ("supportedRadioTechnologies", ArgumentSemantic.Assign)] PKRadioTechnology SupportedRadioTechnologies { get; set; } // headers say [Watch (9,0)] but PKAddSecureElementPassConfiguration is not supported for watch - [iOS (16,0), Mac (13,0), NoMacCatalyst, NoTV, NoWatch] + [iOS (16, 0), Mac (13, 0), NoMacCatalyst, NoTV, NoWatch] [Export ("manufacturerIdentifier")] string ManufacturerIdentifier { get; set; } // headers say [Watch (9,0)] but PKAddSecureElementPassConfiguration is not supported for watch - [iOS (16,0), Mac (13,0), NoMacCatalyst, NoTV, NoWatch] + [iOS (16, 0), Mac (13, 0), NoMacCatalyst, NoTV, NoWatch] [NullAllowed, Export ("provisioningTemplateIdentifier", ArgumentSemantic.Strong)] string ProvisioningTemplateIdentifier { get; set; } } - interface IPKAddSecureElementPassViewControllerDelegate {} + interface IPKAddSecureElementPassViewControllerDelegate { } [NoWatch, NoTV, NoMac] // under `#if TARGET_OS_IOS` - [iOS (13,4)] + [iOS (13, 4)] #if NET [Protocol, Model] #else @@ -1664,21 +1694,21 @@ namespace PassKit { [BaseType (typeof (NSObject))] interface PKAddSecureElementPassViewControllerDelegate { - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'DidFinishAddingSecureElementPasses' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'DidFinishAddingSecureElementPasses' instead.")] #if !XAMCORE_5_0 [Abstract] #endif [Export ("addSecureElementPassViewController:didFinishAddingSecureElementPass:error:")] void DidFinishAddingSecureElementPass (PKAddSecureElementPassViewController controller, [NullAllowed] PKSecureElementPass pass, [NullAllowed] NSError error); - + [Abstract] [Export ("addSecureElementPassViewController:didFinishAddingSecureElementPasses:error:")] - void DidFinishAddingSecureElementPasses (PKAddSecureElementPassViewController controller, [NullAllowed] PKSecureElementPass[] passes, [NullAllowed] NSError error); -} + void DidFinishAddingSecureElementPasses (PKAddSecureElementPassViewController controller, [NullAllowed] PKSecureElementPass [] passes, [NullAllowed] NSError error); + } [NoWatch, NoTV, NoMac] // under `#if TARGET_OS_IOS` - [iOS (13,4)] - [MacCatalyst (14,0)] // doc mention 13.4 but we can't load the class + [iOS (13, 4)] + [MacCatalyst (14, 0)] // doc mention 13.4 but we can't load the class [BaseType (typeof (UIViewController))] [DisableDefaultCtor] interface PKAddSecureElementPassViewController { @@ -1699,9 +1729,9 @@ namespace PassKit { } [NoWatch, NoTV] - [iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKShareablePassMetadata { @@ -1713,17 +1743,17 @@ namespace PassKit { [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:")] NativeHandle Constructor (string credentialIdentifier, string sharingInstanceIdentifier, CGImage passThumbnailImage, string ownerDisplayName, string localizedDescription, string accountHash, string templateIdentifier, string relyingPartyIdentifier, bool requiresUnifiedAccessCapableDevice); [Internal] - [iOS (16,0), Mac (13,0), MacCatalyst (16,0), NoWatch, NoTV] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:preview:")] NativeHandle InitWithCardTemplate (string credentialIdentifier, string sharingInstanceIdentifier, string templateIdentifier, PKShareablePassMetadataPreview preview); [Internal] - [iOS (16,0), Mac (13,0), MacCatalyst (16,0), NoWatch, NoTV] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:preview:")] NativeHandle InitWithCardConfiguration (string credentialIdentifier, string sharingInstanceIdentifier, string templateIdentifier, PKShareablePassMetadataPreview preview); @@ -1751,41 +1781,41 @@ namespace PassKit { [Export ("ownerDisplayName", ArgumentSemantic.Strong)] string OwnerDisplayName { get; } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("accountHash", ArgumentSemantic.Strong)] - string AccountHash { get; [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] set; } + string AccountHash { get; [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] set; } [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("templateIdentifier", ArgumentSemantic.Strong)] string TemplateIdentifier { get; } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("relyingPartyIdentifier", ArgumentSemantic.Strong)] - string RelyingPartyIdentifier { get; [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] set; } + string RelyingPartyIdentifier { get; [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] set; } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("requiresUnifiedAccessCapableDevice")] - bool RequiresUnifiedAccessCapableDevice { get; [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] set; } + bool RequiresUnifiedAccessCapableDevice { get; [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] set; } - [NoWatch, NoTV, iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("cardTemplateIdentifier", ArgumentSemantic.Strong)] string CardTemplateIdentifier { get; } - [NoWatch, NoTV, iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("preview", ArgumentSemantic.Strong)] PKShareablePassMetadataPreview Preview { get; } - [NoWatch, NoTV, iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("serverEnvironmentIdentifier", ArgumentSemantic.Strong)] string ServerEnvironmentIdentifier { get; set; } } [NoWatch, NoTV] - [iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (PKAddSecureElementPassConfiguration))] [DisableDefaultCtor] interface PKAddShareablePassConfiguration { @@ -1793,28 +1823,29 @@ namespace PassKit { [Async] [Static] [Export ("configurationForPassMetadata:provisioningPolicyIdentifier:primaryAction:completion:")] - void GetConfiguration (PKShareablePassMetadata[] passMetadata, string provisioningPolicyIdentifier, PKAddShareablePassConfigurationPrimaryAction action, Action completion); + void GetConfiguration (PKShareablePassMetadata [] passMetadata, string provisioningPolicyIdentifier, PKAddShareablePassConfigurationPrimaryAction action, Action completion); [Export ("primaryAction")] PKAddShareablePassConfigurationPrimaryAction PrimaryAction { get; } [Export ("credentialsMetadata", ArgumentSemantic.Strong)] - PKShareablePassMetadata[] CredentialsMetadata { get; } + PKShareablePassMetadata [] CredentialsMetadata { get; } [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] [Export ("provisioningPolicyIdentifier", ArgumentSemantic.Strong)] string ProvisioningPolicyIdentifier { get; } - [NoWatch, NoTV, iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Static, Async] [Export ("configurationForPassMetadata:primaryAction:completion:")] - void GetConfiguration (PKShareablePassMetadata[] passMetadata, PKAddShareablePassConfigurationPrimaryAction action, Action completion); + void GetConfiguration (PKShareablePassMetadata [] passMetadata, PKAddShareablePassConfigurationPrimaryAction action, Action completion); } - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1830,9 +1861,10 @@ namespace PassKit { PKBarcodeEventConfigurationDataType ConfigurationDataType { get; } } - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1845,9 +1877,10 @@ namespace PassKit { string LastUsedBarcodeIdentifier { get; } } - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1860,9 +1893,10 @@ namespace PassKit { NSData PaymentInformation { get; set; } } - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1900,9 +1934,10 @@ namespace PassKit { NSData PartialSignature { get; } } - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1916,9 +1951,9 @@ namespace PassKit { } [NoWatch, NoTV] - [iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface PKIssuerProvisioningExtensionStatus { @@ -1934,9 +1969,9 @@ namespace PassKit { } [NoWatch, NoTV] - [iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKIssuerProvisioningExtensionPassEntry { @@ -1952,7 +1987,7 @@ namespace PassKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] + [iOS (14, 0)] [NoMacCatalyst] // type cannot be loaded, lack of documentation about usage [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1964,20 +1999,20 @@ namespace PassKit { [Async] [Export ("passEntriesWithCompletion:")] - void PassEntries (Action completion); + void PassEntries (Action completion); [Async] [Export ("remotePassEntriesWithCompletion:")] - void RemotePassEntries (Action completion); + void RemotePassEntries (Action completion); [Async] [Export ("generateAddPaymentPassRequestForPassEntryWithIdentifier:configuration:certificateChain:nonce:nonceSignature:completionHandler:")] - void GenerateAddPaymentPassRequest (string identifier, PKAddPaymentPassRequestConfiguration configuration, NSData[] certificates, NSData nonce, NSData nonceSignature, Action completion); + void GenerateAddPaymentPassRequest (string identifier, PKAddPaymentPassRequestConfiguration configuration, NSData [] certificates, NSData nonce, NSData nonceSignature, Action completion); } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface PKIssuerProvisioningExtensionAuthorizationProviding { @@ -1987,19 +2022,20 @@ namespace PassKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void PKInformationRequestCompletionBlock (PKBarcodeEventMetadataResponse response); [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void PKSignatureRequestCompletionBlock (PKBarcodeEventSignatureResponse response); [NoTV] - [Mac (11,0)] - [Watch (7,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [Watch (7, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface PKPaymentInformationRequestHandling { @@ -2017,9 +2053,9 @@ namespace PassKit { } [NoWatch, NoTV] - [iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (PKIssuerProvisioningExtensionPassEntry))] [DisableDefaultCtor] interface PKIssuerProvisioningExtensionPaymentPassEntry { @@ -2033,8 +2069,10 @@ namespace PassKit { } [NoTV] - [Watch (7,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentMerchantSession { @@ -2044,8 +2082,10 @@ namespace PassKit { } [NoTV] - [Watch (7,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface PKPaymentRequestMerchantSessionUpdate { @@ -2059,43 +2099,44 @@ namespace PassKit { PKPaymentMerchantSession Session { get; set; } } - [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(PKPaymentRequestUpdate))] + [NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PKPaymentRequestUpdate))] [DisableDefaultCtor] - interface PKPaymentRequestCouponCodeUpdate - { + interface PKPaymentRequestCouponCodeUpdate { [Export ("initWithPaymentSummaryItems:")] [DesignatedInitializer] - NativeHandle Constructor (PKPaymentSummaryItem[] paymentSummaryItems); + NativeHandle Constructor (PKPaymentSummaryItem [] paymentSummaryItems); [Export ("initWithErrors:paymentSummaryItems:shippingMethods:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] NSError[] errors, PKPaymentSummaryItem[] paymentSummaryItems, PKShippingMethod[] shippingMethods); + NativeHandle Constructor ([NullAllowed] NSError [] errors, PKPaymentSummaryItem [] paymentSummaryItems, PKShippingMethod [] shippingMethods); [NullAllowed, Export ("errors", ArgumentSemantic.Copy)] - NSError[] Errors { get; set; } + NSError [] Errors { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [Export ("multiTokenContexts", ArgumentSemantic.Copy)] - PKPaymentTokenContext[] MultiTokenContexts { get; set; } + PKPaymentTokenContext [] MultiTokenContexts { get; set; } - [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [Export ("recurringPaymentRequest", ArgumentSemantic.Strong)] PKRecurringPaymentRequest RecurringPaymentRequest { get; set; } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [Export ("automaticReloadPaymentRequest", ArgumentSemantic.Strong)] PKAutomaticReloadPaymentRequest AutomaticReloadPaymentRequest { get; set; } } - [Watch (7,0)][Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Watch (7, 0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentInformationEventExtension { } - [iOS (14,5)] + [iOS (14, 5)] [Flags] [Native] enum PKRadioTechnology : ulong { @@ -2104,11 +2145,10 @@ namespace PassKit { Bluetooth = 1 << 1, } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKDateComponentsRange : NSCopying, NSSecureCoding - { + interface PKDateComponentsRange : NSCopying, NSSecureCoding { [Export ("initWithStartDateComponents:endDateComponents:")] [return: NullAllowed] NativeHandle Constructor (NSDateComponents startDateComponents, NSDateComponents endDateComponents); @@ -2120,28 +2160,25 @@ namespace PassKit { NSDateComponents EndDateComponents { get; } } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(PKPaymentSummaryItem))] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PKPaymentSummaryItem))] [DisableDefaultCtor] - interface PKDeferredPaymentSummaryItem - { + interface PKDeferredPaymentSummaryItem { [Export ("deferredDate", ArgumentSemantic.Copy)] NSDate DeferredDate { get; set; } } - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum PKShippingContactEditingMode : ulong - { + public enum PKShippingContactEditingMode : ulong { Enabled = 1, StorePickup, } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(PKPaymentSummaryItem))] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PKPaymentSummaryItem))] [DisableDefaultCtor] - interface PKRecurringPaymentSummaryItem - { + interface PKRecurringPaymentSummaryItem { [NullAllowed, Export ("startDate", ArgumentSemantic.Copy)] NSDate StartDate { get; set; } @@ -2155,20 +2192,18 @@ namespace PassKit { NSDate EndDate { get; set; } } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - public enum PKStoredValuePassBalanceType - { + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + public enum PKStoredValuePassBalanceType { [Field ("PKStoredValuePassBalanceTypeCash")] Cash, [Field ("PKStoredValuePassBalanceTypeLoyaltyPoints")] LoyaltyPoints, } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKStoredValuePassBalance - { + interface PKStoredValuePassBalance { [Export ("amount", ArgumentSemantic.Strong)] NSDecimalNumber Amount { get; } @@ -2185,11 +2220,10 @@ namespace PassKit { bool IsEqual (PKStoredValuePassBalance balance); } - [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [Watch (8, 0), iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKStoredValuePassProperties - { + interface PKStoredValuePassProperties { [Static] [Export ("passPropertiesForPass:")] [return: NullAllowed] @@ -2202,19 +2236,18 @@ namespace PassKit { NSDate ExpirationDate { get; } [Export ("balances", ArgumentSemantic.Copy)] - PKStoredValuePassBalance[] Balances { get; } + PKStoredValuePassBalance [] Balances { get; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] - interface IPKIdentityDocumentDescriptor {} + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] + interface IPKIdentityDocumentDescriptor { } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface PKIdentityDocumentDescriptor - { + interface PKIdentityDocumentDescriptor { [Abstract] [Export ("elements")] - PKIdentityElement[] Elements { get; } + PKIdentityElement [] Elements { get; } [Abstract] [Export ("intentToStoreForElement:")] @@ -2223,20 +2256,19 @@ namespace PassKit { [Abstract] [Export ("addElements:withIntentToStore:")] - void AddElements (PKIdentityElement[] elements, PKIdentityIntentToStore intentToStore); + void AddElements (PKIdentityElement [] elements, PKIdentityIntentToStore intentToStore); } - interface IPKShareSecureElementPassViewControllerDelegate {}; + interface IPKShareSecureElementPassViewControllerDelegate { }; - [iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV, NoMac] + [iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV, NoMac] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface PKShareSecureElementPassViewControllerDelegate - { + interface PKShareSecureElementPassViewControllerDelegate { [Abstract] [Export ("shareSecureElementPassViewController:didFinishWithResult:")] void DidFinish (PKShareSecureElementPassViewController controller, PKShareSecureElementPassResult result); @@ -2245,17 +2277,16 @@ namespace PassKit { void DidCreateShareUrl (PKShareSecureElementPassViewController controller, [NullAllowed] NSUrl universalShareUrl, [NullAllowed] string activationCode); } - interface IPKVehicleConnectionDelegate {} + interface IPKVehicleConnectionDelegate { } - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface PKVehicleConnectionDelegate - { + interface PKVehicleConnectionDelegate { [Abstract] [Export ("sessionDidChangeConnectionState:")] void SessionDidChangeConnectionState (PKVehicleConnectionSessionConnectionState newState); @@ -2265,7 +2296,7 @@ namespace PassKit { void SessionDidReceiveData (NSData data); } - [NoWatch, iOS (16,0), Mac (13,0), MacCatalyst (16,0), NoTV] + [NoWatch, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKAutomaticReloadPaymentRequest // : NSCoding, NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 @@ -2290,7 +2321,7 @@ namespace PassKit { NativeHandle Constructor (string paymentDescription, PKAutomaticReloadPaymentSummaryItem automaticReloadBilling, NSUrl managementUrl); } - [NoWatch, iOS (16,0), Mac (13,0), MacCatalyst (16,0), NoTV] + [NoWatch, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0), NoTV] [BaseType (typeof (PKPaymentSummaryItem))] interface PKAutomaticReloadPaymentSummaryItem // : NSCoding, NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 { @@ -2298,10 +2329,9 @@ namespace PassKit { NSDecimalNumber ThresholdAmount { get; set; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface PKIdentityAuthorizationController - { + interface PKIdentityAuthorizationController { [Async] [Export ("checkCanRequestDocument:completion:")] void CheckCanRequestDocument (IPKIdentityDocumentDescriptor descriptor, Action completion); @@ -2314,10 +2344,9 @@ namespace PassKit { void CancelRequest (); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIControl))] - interface PKIdentityButton - { + interface PKIdentityButton { [Export ("initWithLabel:style:")] [DesignatedInitializer] NativeHandle Constructor (PKIdentityButtonLabel label, PKIdentityButtonStyle style); @@ -2330,27 +2359,24 @@ namespace PassKit { nfloat CornerRadius { get; set; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKIdentityDocument - { + interface PKIdentityDocument { [Export ("encryptedData")] NSData EncryptedData { get; } } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKIdentityDriversLicenseDescriptor : PKIdentityDocumentDescriptor - { + interface PKIdentityDriversLicenseDescriptor : PKIdentityDocumentDescriptor { } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKIdentityElement : NSCopying - { + interface PKIdentityElement : NSCopying { [Static] [Export ("givenNameElement")] PKIdentityElement GivenNameElement { get; } @@ -2400,11 +2426,10 @@ namespace PassKit { PKIdentityElement AgeThresholdElementWithAge (nint age); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKIdentityIntentToStore : NSCopying - { + interface PKIdentityIntentToStore : NSCopying { [Static] [Export ("willNotStoreIntent")] PKIdentityIntentToStore WillNotStoreIntent { get; } @@ -2418,10 +2443,9 @@ namespace PassKit { PKIdentityIntentToStore MayStoreIntentForDays (nint days); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface PKIdentityRequest - { + interface PKIdentityRequest { [NullAllowed, Export ("descriptor", ArgumentSemantic.Assign)] IPKIdentityDocumentDescriptor Descriptor { get; set; } @@ -2432,7 +2456,7 @@ namespace PassKit { string MerchantIdentifier { get; set; } } - [NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoTV] + [NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentOrderDetails // : NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 @@ -2454,7 +2478,7 @@ namespace PassKit { string AuthenticationToken { get; set; } } - [NoWatch, iOS (16,0), MacCatalyst (16,0), Mac (13,0), NoTV] + [NoWatch, iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPaymentTokenContext // : NSCoding, NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 @@ -2479,7 +2503,7 @@ namespace PassKit { NSDecimalNumber Amount { get; set; } } - [NoWatch, iOS (16,0), Mac (13,0), MacCatalyst (16,0), NoTV] + [NoWatch, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0), NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKRecurringPaymentRequest // : NSCoding, NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 @@ -2507,7 +2531,7 @@ namespace PassKit { NSUrl TokenNotificationUrl { get; set; } } - [NoWatch, NoTV, iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKShareablePassMetadataPreview // : NSCoding, NSCopying, NSSecureCoding // https://feedbackassistant.apple.com/feedback/11018799 @@ -2539,11 +2563,10 @@ namespace PassKit { string ProvisioningTemplateIdentifier { get; } } - [iOS (16,0), MacCatalyst (16,0), NoTV, NoWatch, NoMac] + [iOS (16, 0), MacCatalyst (16, 0), NoTV, NoWatch, NoMac] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] - interface PKShareSecureElementPassViewController - { + interface PKShareSecureElementPassViewController { // from UIViewController [DesignatedInitializer] [Export ("initWithNibName:bundle:")] @@ -2564,11 +2587,10 @@ namespace PassKit { bool PromptToShareUrl { get; set; } } - [iOS (16,0), Mac (13,0), Watch (9,0), NoTV, MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), Watch (9, 0), NoTV, MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKVehicleConnectionSession - { + interface PKVehicleConnectionSession { [Wrap ("WeakDelegate")] [NullAllowed] IPKVehicleConnectionDelegate Delegate { get; } diff --git a/src/pdfkit.cs b/src/pdfkit.cs index 0d341af3e1..da4989a9ec 100644 --- a/src/pdfkit.cs +++ b/src/pdfkit.cs @@ -66,8 +66,8 @@ using NativeHandle = System.IntPtr; namespace PdfKit { - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationKey { [Field ("PDFAnnotationKeyAppearanceDictionary", "+PDFKit")] @@ -197,8 +197,8 @@ namespace PdfKit { WidgetValue, } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationSubtype { [Field ("PDFAnnotationSubtypeText", "+PDFKit")] @@ -241,8 +241,8 @@ namespace PdfKit { Widget, } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationWidgetSubtype { [Field ("PDFAnnotationWidgetSubtypeButton", "+PDFKit")] @@ -258,8 +258,8 @@ namespace PdfKit { Text, } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationLineEndingStyle { [Field ("PDFAnnotationLineEndingStyleNone", "+PDFKit")] @@ -281,8 +281,8 @@ namespace PdfKit { ClosedArrow, } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationTextIconType { [Field ("PDFAnnotationTextIconTypeComment", "+PDFKit")] @@ -307,8 +307,8 @@ namespace PdfKit { Insert, } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] enum PdfAnnotationHighlightingMode { [Field ("PDFAnnotationHighlightingModeNone", "+PDFKit")] @@ -325,9 +325,8 @@ namespace PdfKit { } [Native] - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] - public enum PdfAccessPermissions : ulong - { + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] + public enum PdfAccessPermissions : ulong { LowQualityPrinting = (1uL << 0), HighQualityPrinting = (1uL << 1), DocumentChanges = (1uL << 2), @@ -338,8 +337,8 @@ namespace PdfKit { FormFieldEntry = (1uL << 7), } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] [Static] interface PdfAppearanceCharacteristicsKeys { @@ -362,8 +361,8 @@ namespace PdfKit { NSString DownCaptionKey { get; } } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] [Static] interface PdfBorderKeys { @@ -377,7 +376,7 @@ namespace PdfKit { NSString DashPatternKey { get; } } - [iOS (11,0)] + [iOS (11, 0)] [Internal] [Static] interface PdfDocumentAttributeKeys { @@ -407,7 +406,7 @@ namespace PdfKit { NSString KeywordsKey { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [StrongDictionary ("PdfPageImageInitializationOptionKeys")] interface PdfPageImageInitializationOption { CGRect MediaBox { get; set; } @@ -416,7 +415,7 @@ namespace PdfKit { double CompressionQuality { get; set; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Static] interface PdfPageImageInitializationOptionKeys { [Field ("PDFPageImageInitializationOptionMediaBox")] @@ -432,7 +431,7 @@ namespace PdfKit { NSString CompressionQualityKey { get; } } - [iOS (11,0)] + [iOS (11, 0)] [StrongDictionary ("PdfDocumentAttributeKeys")] interface PdfDocumentAttributes { @@ -446,8 +445,8 @@ namespace PdfKit { string [] Keywords { get; set; } } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] [Internal] [Static] interface PdfDocumentWriteOptionKeys { @@ -458,33 +457,33 @@ namespace PdfKit { [Field ("PDFDocumentUserPasswordOption", "+PDFKit")] NSString UserPasswordKey { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Field ("PDFDocumentAccessPermissionsOption", "+PDFKit")] NSString AccessPermissionsKey { get; } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Field ("PDFDocumentBurnInAnnotationsOption", "+PDFKit")] NSString BurnInAnnotationsKey { get; } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Field ("PDFDocumentSaveTextFromOCROption", "+PDFKit")] NSString SaveTextFromOcrKey { get; } } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] [StrongDictionary ("PdfDocumentWriteOptionKeys")] interface PdfDocumentWriteOptions { string OwnerPassword { get; set; } string UserPassword { get; set; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] string AccessPermissions { get; set; } } - [Mac (10,13)] - [iOS (11,0)] + [Mac (10, 13)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFAppearanceCharacteristics")] interface PdfAppearanceCharacteristics : NSCopying { @@ -513,7 +512,7 @@ namespace PdfKit { NSDictionary WeakAppearanceCharacteristicsKeyValues { get; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFAction")] [Abstract] interface PdfAction : NSCopying { @@ -525,8 +524,8 @@ namespace PdfKit { string Type { get; } } - [iOS (11,0)] - [BaseType (typeof (PdfAction), Name="PDFActionGoTo")] + [iOS (11, 0)] + [BaseType (typeof (PdfAction), Name = "PDFActionGoTo")] interface PdfActionGoTo { [DesignatedInitializer] @@ -537,7 +536,7 @@ namespace PdfKit { PdfDestination Destination { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (PdfAction), Name = "PDFActionNamed")] interface PdfActionNamed { @@ -549,7 +548,7 @@ namespace PdfKit { PdfActionNamedName Name { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (PdfAction), Name = "PDFActionRemoteGoTo")] interface PdfActionRemoteGoTo { @@ -567,7 +566,7 @@ namespace PdfKit { NSUrl Url { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (PdfAction), Name = "PDFActionResetForm")] interface PdfActionResetForm { @@ -575,7 +574,7 @@ namespace PdfKit { [Export ("init")] [DesignatedInitializer] NativeHandle Constructor (); - + //NSArray of NSString [Export ("fields"), NullAllowed] string [] Fields { get; set; } @@ -584,7 +583,7 @@ namespace PdfKit { bool FieldsIncludedAreCleared { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (PdfAction), Name = "PDFActionURL")] interface PdfActionUrl { @@ -596,16 +595,16 @@ namespace PdfKit { NSUrl Url { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFAnnotation")] interface PdfAnnotation : NSCoding, NSCopying { - [Mac (10,13)] + [Mac (10, 13)] [Export ("initWithBounds:forType:withProperties:")] [DesignatedInitializer] NativeHandle Constructor (CGRect bounds, NSString annotationType, [NullAllowed] NSDictionary properties); - [Mac (10,13)] + [Mac (10, 13)] [Wrap ("this (bounds, annotationType.GetConstant ()!, properties)")] NativeHandle Constructor (CGRect bounds, PdfAnnotationKey annotationType, [NullAllowed] NSDictionary properties); @@ -632,7 +631,7 @@ namespace PdfKit { [Export ("bounds")] CGRect Bounds { get; set; } - + [Export ("modificationDate")] [NullAllowed] NSDate ModificationDate { get; set; } @@ -651,7 +650,7 @@ namespace PdfKit { [Export ("shouldDisplay")] bool ShouldDisplay { get; set; } - + [Export ("shouldPrint")] bool ShouldPrint { get; set; } @@ -671,7 +670,7 @@ namespace PdfKit { [Export ("contents")] [NullAllowed] string Contents { get; set; } - + [NoiOS] [Deprecated (PlatformName.MacOSX, 10, 12)] [Export ("toolTip")] @@ -691,218 +690,218 @@ namespace PdfKit { [Export ("drawWithBox:")] void Draw (PdfDisplayBox box); - [Mac (10,13)] + [Mac (10, 13)] [Export ("action", ArgumentSemantic.Strong), NullAllowed] PdfAction Action { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } - [Mac (10,12)] + [Mac (10, 12)] [Export ("drawWithBox:inContext:")] void Draw (PdfDisplayBox box, CGContext context); [Internal] - [Mac (10,12)] + [Mac (10, 12)] [Export ("setValue:forAnnotationKey:")] bool _SetValue (IntPtr value, NSString key); [Internal] - [Mac (10,12)] + [Mac (10, 12)] [Export ("valueForAnnotationKey:")] [return: NullAllowed] IntPtr _GetValue (NSString key); [Protected] - [Mac (10,12)] + [Mac (10, 12)] [Export ("setBoolean:forAnnotationKey:")] bool SetValue (bool boolean, NSString key); - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("SetValue (boolean, key.GetConstant ()!)")] bool SetValue (bool boolean, PdfAnnotationKey key); [Protected] - [Mac (10,12)] + [Mac (10, 12)] [Export ("setRect:forAnnotationKey:")] bool SetValue (CGRect rect, NSString key); - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("SetValue (rect, key.GetConstant ()!)")] bool SetValue (CGRect rect, PdfAnnotationKey key); - [Mac (10,13)] + [Mac (10, 13)] [Export ("annotationKeyValues", ArgumentSemantic.Copy)] NSDictionary AnnotationKeyValues { get; } [Protected] - [Mac (10,12)] + [Mac (10, 12)] [Export ("removeValueForAnnotationKey:")] void RemoveValue (NSString key); - [Mac (10,12)] + [Mac (10, 12)] [Wrap ("RemoveValue (key.GetConstant ()!)")] void RemoveValue (PdfAnnotationKey key); // PDFAnnotation (PDFAnnotationUtilities) Category - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("font", ArgumentSemantic.Copy)] NSFont Font { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("fontColor", ArgumentSemantic.Copy)] NSColor FontColor { get; set; } - [Mac (10,13,2), iOS (11,2)] + [Mac (10, 13, 2), iOS (11, 2)] [NullAllowed, Export ("interiorColor", ArgumentSemantic.Copy)] NSColor InteriorColor { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("alignment", ArgumentSemantic.Assign)] NSTextAlignment Alignment { get; set; } - - [Mac (10,13)] + + [Mac (10, 13)] [Export ("startPoint", ArgumentSemantic.Assign)] CGPoint StartPoint { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("endPoint", ArgumentSemantic.Assign)] CGPoint EndPoint { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("startLineStyle", ArgumentSemantic.Assign)] PdfLineStyle StartLineStyle { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("endLineStyle", ArgumentSemantic.Assign)] PdfLineStyle EndLineStyle { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("lineStyleFromName:")] PdfLineStyle GetLineStyle (string fromName); - [Mac (10,13)] + [Mac (10, 13)] [Static] [Export ("nameForLineStyle:")] string GetName (PdfLineStyle style); - [Mac (10,13)] + [Mac (10, 13)] [Export ("iconType", ArgumentSemantic.Assign)] PdfTextAnnotationIconType IconType { get; set; } [Internal] - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("quadrilateralPoints", ArgumentSemantic.Copy)] IntPtr _QuadrilateralPoints { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("markupType", ArgumentSemantic.Assign)] PdfMarkupType MarkupType { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("widgetFieldType")] string WidgetFieldType { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("widgetControlType", ArgumentSemantic.Assign)] PdfWidgetControlType WidgetControlType { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("multiline")] bool Multiline { [Bind ("isMultiline")] get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("isPasswordField")] bool IsPasswordField { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("comb")] bool Comb { [Bind ("hasComb")] get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("maximumLength")] nint MaximumLength { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("widgetStringValue")] string WidgetStringValue { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("widgetDefaultStringValue")] string WidgetDefaultStringValue { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsToggleToOff")] bool AllowsToggleToOff { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("radiosInUnison")] bool RadiosInUnison { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("readOnly")] bool ReadOnly { [Bind ("isReadOnly")] get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("listChoice")] bool ListChoice { [Bind ("isListChoice")] get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("choices", ArgumentSemantic.Copy)] string [] Choices { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("values", ArgumentSemantic.Copy)] string [] Values { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("buttonWidgetState", ArgumentSemantic.Assign)] PdfWidgetCellState ButtonWidgetState { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("buttonWidgetStateString")] string ButtonWidgetStateString { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("open")] bool Open { [Bind ("isOpen")] get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("paths")] NSBezierPath [] Paths { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("addBezierPath:")] void AddBezierPath (NSBezierPath path); - [Mac (10,13)] + [Mac (10, 13)] [Export ("removeBezierPath:")] void RemoveBezierPath (NSBezierPath path); - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("destination", ArgumentSemantic.Strong)] PdfDestination Destination { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("URL", ArgumentSemantic.Copy)] NSUrl Url { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("fieldName")] string FieldName { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("caption")] string Caption { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [NullAllowed, Export ("backgroundColor", ArgumentSemantic.Copy)] NSColor BackgroundColor { get; set; } - [Mac (10,13,2), iOS (11,2)] + [Mac (10, 13, 2), iOS (11, 2)] [NullAllowed, Export ("stampName")] string StampName { get; set; } } @@ -913,7 +912,7 @@ namespace PdfKit { interface PdfAnnotationButtonWidget { [Export ("controlType")] PdfWidgetControlType ControlType { get; set; } - + [Export ("state")] nint State { get; set; } @@ -922,7 +921,7 @@ namespace PdfKit { [Export ("backgroundColor")] NSColor BackgroundColor { get; set; } - + [Export ("allowsToggleToOff")] bool AllowsToggleToOff { get; set; } @@ -963,7 +962,7 @@ namespace PdfKit { [Export ("isListChoice")] bool IsListChoice { get; set; } - + // NSArray of NSString [Export ("choices")] string [] Choices { get; set; } @@ -1042,7 +1041,7 @@ namespace PdfKit { [Export ("URL")] NSUrl Url { get; set; } - + [Export ("setHighlighted:")] void SetHighlighted (bool highlighted); } @@ -1111,7 +1110,7 @@ namespace PdfKit { [Export ("alignment")] NSTextAlignment Alignment { get; set; } - + [Export ("maximumLength")] nint MaximumLength { get; set; } @@ -1125,7 +1124,7 @@ namespace PdfKit { bool IsMultiline { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFBorder")] interface PdfBorder : NSCoding, NSCopying { [Export ("style")] @@ -1137,7 +1136,7 @@ namespace PdfKit { [Export ("dashPattern", ArgumentSemantic.Assign), NullAllowed] NSArray WeakDashPattern { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("borderKeyValues", ArgumentSemantic.Copy)] NSDictionary WeakBorderKeyValues { get; } @@ -1145,11 +1144,11 @@ namespace PdfKit { void Draw (CGRect rect); } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFDestination")] interface PdfDestination : NSCopying { - [Mac (10,13)] // This used to be a calculated macro and promoted to an actual field in 10.13. + [Mac (10, 13)] // This used to be a calculated macro and promoted to an actual field in 10.13. [Field ("kPDFDestinationUnspecifiedValue")] nfloat UnspecifiedValue { get; } @@ -1173,7 +1172,7 @@ namespace PdfKit { } //Add attributes for delegates/events - [iOS (11,0)] + [iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject), Name = "PDFDocument", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PdfDocumentDelegate) })] interface PdfDocument : NSCopying { @@ -1218,11 +1217,11 @@ namespace PdfKit { [Notification] NSString DidEndPageWriteNotification { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Field ("PDFDocumentFoundSelectionKey")] NSString FoundSelectionKey { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Field ("PDFDocumentPageIndexKey")] NSString PageIndexKey { get; } @@ -1252,7 +1251,7 @@ namespace PdfKit { [NullAllowed] NSDictionary DocumentAttributes { get; set; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("accessPermissions")] PdfAccessPermissions AccessPermissions { get; } @@ -1293,23 +1292,23 @@ namespace PdfKit { [Export ("allowsCopying")] bool AllowsCopying { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsDocumentChanges")] bool AllowsDocumentChanges { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsDocumentAssembly")] bool AllowsDocumentAssembly { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsContentAccessibility")] bool AllowsContentAccessibility { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsCommenting")] bool AllowsCommenting { get; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("allowsFormFieldEntry")] bool AllowsFormFieldEntry { get; } @@ -1319,14 +1318,14 @@ namespace PdfKit { [Export ("string")] [NullAllowed] string Text { get; } - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] PdfDocumentDelegate Delegate { get; set; } - + [Export ("dataRepresentation")] [return: NullAllowed] NSData GetDataRepresentation (); @@ -1341,7 +1340,7 @@ namespace PdfKit { [Export ("writeToFile:withOptions:")] bool Write (string path, [NullAllowed] NSDictionary options); - [Mac (10,13)] + [Mac (10, 13)] [Wrap ("Write (path, options.GetDictionary ()!)")] bool Write (string path, PdfDocumentWriteOptions options); @@ -1351,7 +1350,7 @@ namespace PdfKit { [Export ("writeToURL:withOptions:")] bool Write (NSUrl url, [NullAllowed] NSDictionary options); - [Mac (10,13)] + [Mac (10, 13)] [Wrap ("Write (url, options.GetDictionary ()!)")] bool Write (NSUrl url, PdfDocumentWriteOptions options); @@ -1456,7 +1455,7 @@ namespace PdfKit { #pragma warning restore } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFDocumentDelegate")] #if IOS [Protocol] @@ -1478,13 +1477,13 @@ namespace PdfKit { [Export ("classForPage"), IgnoredInDelegate] Class GetClassForPage (); - [Mac (10,13)] + [Mac (10, 13)] [DelegateName ("ClassForAnnotationTypeDelegate"), DefaultValue (null)] [Export ("classForAnnotationType:")] Class GetClassForAnnotationType (string annotationType); [NoiOS] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'GetClassForAnnotationType' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'GetClassForAnnotationType' instead.")] [Export ("classForAnnotationClass:"), DelegateName ("ClassForAnnotationClassDelegate"), DefaultValue (null)] #if NET Class GetClassForAnnotationClass (Class sender); @@ -1505,7 +1504,7 @@ namespace PdfKit { void MatchFound (NSNotification notification); } - [iOS (11,0)] + [iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject), Name = "PDFOutline")] interface PdfOutline { @@ -1548,12 +1547,12 @@ namespace PdfKit { [Export ("destination"), NullAllowed] PdfDestination Destination { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("action"), NullAllowed] PdfAction Action { get; set; } } - [iOS (11,0)] + [iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject), Name = "PDFPage")] interface PdfPage : NSCopying { @@ -1567,12 +1566,12 @@ namespace PdfKit { NativeHandle Constructor (NSImage image); [EditorBrowsable (EditorBrowsableState.Advanced)] - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [DesignatedInitializer] [Export ("initWithImage:options:")] NativeHandle Constructor (NSImage image, NSDictionary options); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Wrap ("this (image, options.GetDictionary ()!)")] NativeHandle Constructor (NSImage image, PdfPageImageInitializationOption options); @@ -1613,7 +1612,7 @@ namespace PdfKit { [return: NullAllowed] PdfAnnotation GetAnnotation (CGPoint point); - [Mac (10,12)] + [Mac (10, 12)] [Export ("transformForBox:")] CGAffineTransform GetTransform (PdfDisplayBox box); @@ -1622,15 +1621,15 @@ namespace PdfKit { [Export ("drawWithBox:")] void Draw (PdfDisplayBox box); - [Mac (10,12)] + [Mac (10, 12)] [Export ("drawWithBox:toContext:")] void Draw (PdfDisplayBox box, CGContext context); - [Mac (10,12)] + [Mac (10, 12)] [Export ("transformContext:forBox:")] void TransformContext (CGContext context, PdfDisplayBox box); - [Mac (10,13)] + [Mac (10, 13)] [Export ("thumbnailOfSize:forBox:")] NSImage GetThumbnail (CGSize size, PdfDisplayBox box); @@ -1680,7 +1679,7 @@ namespace PdfKit { NSData DataRepresentation { get; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFSelection")] [DisableDefaultCtor] // An uncaught exception was raised: init: not a valid initializer for PDFSelection interface PdfSelection : NSCopying { @@ -1725,7 +1724,7 @@ namespace PdfKit { [Export ("extendSelectionAtStart:")] void ExtendSelectionAtStart (nint precede); - [Mac (10,13)] + [Mac (10, 13)] [Export ("extendSelectionForLineBoundaries")] void ExtendSelectionForLineBoundaries (); @@ -1736,7 +1735,7 @@ namespace PdfKit { void Draw (PdfPage page, PdfDisplayBox box, bool active); } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSView), Name = "PDFThumbnailView")] interface PdfThumbnailView : NSCoding { @@ -1787,7 +1786,7 @@ namespace PdfKit { PdfPage [] SelectedPages { get; } } - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSView), Name = "PDFView", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PdfViewDelegate) })] interface PdfView : #if IOS @@ -1804,7 +1803,7 @@ namespace PdfKit { [Export ("canGoToFirstPage")] bool CanGoToFirstPage { get; } - + //Verify [Export ("goToFirstPage:")] void GoToFirstPage ([NullAllowed] NSObject sender); @@ -1862,14 +1861,14 @@ namespace PdfKit { [Export ("displayMode")] PdfDisplayMode DisplayMode { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("displayDirection")] PdfDisplayDirection DisplayDirection { get; set; } [Export ("displaysPageBreaks")] bool DisplaysPageBreaks { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("pageBreakMargins")] NSEdgeInsets PageBreakMargins { get; set; } @@ -1879,7 +1878,7 @@ namespace PdfKit { [Export ("displaysAsBook")] bool DisplaysAsBook { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("displaysRTL")] bool DisplaysRtl { get; set; } @@ -1904,7 +1903,7 @@ namespace PdfKit { [Export ("interpolationQuality", ArgumentSemantic.Assign)] PdfInterpolationQuality InterpolationQuality { get; set; } - [iOS (12,0), Mac (10,14)] + [iOS (12, 0), Mac (10, 14)] [Export ("pageShadowsEnabled")] bool PageShadowsEnabled { get; [Bind ("enablePageShadows:")] set; } @@ -1915,7 +1914,7 @@ namespace PdfKit { [NoMac] [Export ("isUsingPageViewController")] bool IsUsingPageViewController { get; } - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } @@ -1926,11 +1925,11 @@ namespace PdfKit { [Export ("scaleFactor")] nfloat ScaleFactor { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("minScaleFactor")] nfloat MinScaleFactor { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("maxScaleFactor")] nfloat MaxScaleFactor { get; set; } @@ -1949,14 +1948,14 @@ namespace PdfKit { [Export ("autoScales")] bool AutoScales { get; set; } - [Mac (10,13)] + [Mac (10, 13)] [Export ("scaleFactorForSizeToFit")] nfloat ScaleFactorForSizeToFit { get; } [Export ("areaOfInterestForMouse:")] PdfAreaOfInterest GetAreaOfInterest (NSEvent mouseEvent); - [Mac (10,10,3)] + [Mac (10, 10, 3)] [Export ("areaOfInterestForPoint:")] PdfAreaOfInterest GetAreaOfInterest (CGPoint point); @@ -1982,7 +1981,7 @@ namespace PdfKit { [Export ("scrollSelectionToVisible:")] void ScrollSelectionToVisible ([NullAllowed] NSObject sender); - + [Export ("highlightedSelections")] [NullAllowed] PdfSelection [] HighlightedSelections { get; set; } @@ -1997,11 +1996,11 @@ namespace PdfKit { [Export ("drawPage:")] void DrawPage (PdfPage page); - [Mac (10,12)] + [Mac (10, 12)] [Export ("drawPage:toContext:")] void DrawPage (PdfPage page, CGContext context); - [Mac (10,12)] + [Mac (10, 12)] [Export ("drawPagePost:toContext:")] void DrawPagePost (PdfPage page, CGContext context); @@ -2056,18 +2055,18 @@ namespace PdfKit { [Deprecated (PlatformName.MacOSX, 10, 13)] [Export ("allowsDragging")] bool AllowsDragging { get; set; } - + [Export ("visiblePages")] PdfPage [] VisiblePages { get; } [Export ("enableDataDetectors")] bool EnableDataDetectors { get; set; } - [Field("PDFViewChangedHistoryNotification", "+PDFKit")] + [Field ("PDFViewChangedHistoryNotification", "+PDFKit")] [Notification] NSString ChangedHistoryNotification { get; } - [Field("PDFViewDocumentChangedNotification", "+PDFKit")] + [Field ("PDFViewDocumentChangedNotification", "+PDFKit")] [Notification] NSString DocumentChangedNotification { get; } @@ -2112,36 +2111,36 @@ namespace PdfKit { NSString VisiblePagesChangedNotification { get; } [NoiOS] - [Mac (10,13)] + [Mac (10, 13)] [Export ("acceptsDraggedFiles")] bool AcceptsDraggedFiles { get; set; } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("pageOverlayViewProvider", ArgumentSemantic.Weak)] IPdfPageOverlayViewProvider PageOverlayViewProvider { get; set; } - [iOS (16,0), Mac (13,0), MacCatalyst (16,0)] + [iOS (16, 0), Mac (13, 0), MacCatalyst (16, 0)] [Export ("inMarkupMode")] bool InMarkupMode { [Bind ("isInMarkupMode")] get; set; } - [iOS (16,0), NoMac, MacCatalyst (16,0)] + [iOS (16, 0), NoMac, MacCatalyst (16, 0)] [Export ("findInteraction")] UIFindInteraction FindInteraction { get; } - [iOS (16,0), NoMac, MacCatalyst (16,0)] + [iOS (16, 0), NoMac, MacCatalyst (16, 0)] [Export ("findInteractionEnabled")] bool FindInteractionEnabled { [Bind ("isFindInteractionEnabled")] get; set; } } - + [NoiOS] interface PdfViewAnnotationHitEventArgs { [Export ("PDFAnnotationHit")] PdfAnnotation AnnotationHit { get; } } - + //Verify delegate methods. There are default actions (not just return null ) that should occur //if the delegate does not implement the method. - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject), Name = "PDFViewDelegate")] #if IOS [Protocol] @@ -2178,19 +2177,18 @@ namespace PdfKit { [Export ("PDFViewOpenPDF:forRemoteGoToAction:"), EventArgs ("PdfViewAction")] void OpenPdf (PdfView sender, PdfActionRemoteGoTo action); - [iOS (13,0)] + [iOS (13, 0)] [NoMac] [Export ("PDFViewParentViewController")] UIViewController ParentViewController { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] - interface IPdfPageOverlayViewProvider {} + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] + interface IPdfPageOverlayViewProvider { } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol (Name = "PDFPageOverlayViewProvider")] - interface PdfPageOverlayViewProvider - { + interface PdfPageOverlayViewProvider { [Abstract] [Export ("pdfView:overlayViewForPage:")] [return: NullAllowed] diff --git a/src/pencilkit.cs b/src/pencilkit.cs index 262d7e4824..d1d61b24f0 100644 --- a/src/pencilkit.cs +++ b/src/pencilkit.cs @@ -62,8 +62,7 @@ namespace PencilKit { [iOS (14, 0), NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] [Native] - enum PKCanvasViewDrawingPolicy : ulong - { + enum PKCanvasViewDrawingPolicy : ulong { Default, AnyInput, PencilOnly, @@ -75,7 +74,8 @@ namespace PencilKit { #if NET [Protocol, Model] #else - [Model (AutoGeneratedName = true)] [Protocol] + [Model (AutoGeneratedName = true)] + [Protocol] #endif interface PKCanvasViewDelegate : UIScrollViewDelegate { @@ -92,7 +92,7 @@ namespace PencilKit { void EndUsingTool (PKCanvasView canvasView); } - interface IPKCanvasViewDelegate {} + interface IPKCanvasViewDelegate { } [iOS (13, 0), NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] @@ -143,7 +143,7 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Export ("initWithStrokes:")] - NativeHandle Constructor (PKStroke[] strokes); + NativeHandle Constructor (PKStroke [] strokes); [Export ("dataRepresentation")] NSData DataRepresentation { get; } @@ -153,7 +153,7 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Export ("strokes")] - PKStroke[] Strokes { get; } + PKStroke [] Strokes { get; } [Export ("imageFromRect:scale:")] UIImage GetImage (CGRect rect, nfloat scale); @@ -166,7 +166,7 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Export ("drawingByAppendingStrokes:")] - PKDrawing GetDrawing (PKStroke[] strokes); + PKDrawing GetDrawing (PKStroke [] strokes); } [iOS (13, 0), Mac (11, 0)] @@ -236,15 +236,15 @@ namespace PencilKit { [Introduced (PlatformName.MacCatalyst, 14, 0)] [BaseType (typeof (PKTool))] [DesignatedDefaultCtor] - interface PKLassoTool {} + interface PKLassoTool { } [iOS (13, 0), Mac (11, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKTool : NSCopying {} + interface PKTool : NSCopying { } - interface IPKToolPickerObserver {} + interface IPKToolPickerObserver { } [iOS (13, 0), NoMac] [Introduced (PlatformName.MacCatalyst, 14, 0)] @@ -320,9 +320,8 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface PKInk : NSCopying - { + [BaseType (typeof (NSObject))] + interface PKInk : NSCopying { [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("initWithInkType:color:")] [DesignatedInitializer] @@ -345,9 +344,8 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface PKFloatRange : NSCopying - { + [BaseType (typeof (NSObject))] + interface PKFloatRange : NSCopying { [Export ("initWithLowerBound:upperBound:")] NativeHandle Constructor (nfloat lowerBound, nfloat upperBound); @@ -361,13 +359,12 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface PKStroke : NSCopying - { + [BaseType (typeof (NSObject))] + interface PKStroke : NSCopying { [Export ("initWithInk:strokePath:transform:mask:")] NativeHandle Constructor (PKInk ink, PKStrokePath path, CGAffineTransform transform, [NullAllowed] BezierPath mask); - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithInk:strokePath:transform:mask:randomSeed:")] NativeHandle Constructor (PKInk ink, PKStrokePath strokePath, CGAffineTransform transform, [NullAllowed] BezierPath mask, uint randomSeed); @@ -387,9 +384,9 @@ namespace PencilKit { CGRect RenderBounds { get; } [Export ("maskedPathRanges")] - PKFloatRange[] MaskedPathRanges { get; } + PKFloatRange [] MaskedPathRanges { get; } - [Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("randomSeed")] uint RandomSeed { get; } } @@ -399,12 +396,11 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface PKStrokePath : NSCopying - { + [BaseType (typeof (NSObject))] + interface PKStrokePath : NSCopying { [Export ("initWithControlPoints:creationDate:")] [DesignatedInitializer] - NativeHandle Constructor (PKStrokePoint[] controlPoints, NSDate creationDate); + NativeHandle Constructor (PKStrokePoint [] controlPoints, NSDate creationDate); [Export ("count")] nuint Count { get; } @@ -442,10 +438,9 @@ namespace PencilKit { [Mac (11, 0), iOS (14, 0)] [Introduced (PlatformName.MacCatalyst, 14, 0)] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PKStrokePoint : NSCopying - { + interface PKStrokePoint : NSCopying { [Export ("initWithLocation:timeOffset:size:opacity:force:azimuth:altitude:")] [DesignatedInitializer] NativeHandle Constructor (CGPoint location, double timeOffset, CGSize size, nfloat opacity, nfloat force, nfloat azimuth, nfloat altitude); diff --git a/src/phase.cs b/src/phase.cs index 4420c1c4ab..4a5586ff02 100644 --- a/src/phase.cs +++ b/src/phase.cs @@ -24,14 +24,14 @@ using NativeHandle = System.IntPtr; namespace Phase { - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseUpdateMode : long { Automatic = 0, Manual = 1, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseRenderingState : long { Stopped = 0, @@ -39,7 +39,7 @@ namespace Phase { Paused = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseSpatializationMode : long { Automatic = 0, @@ -47,7 +47,7 @@ namespace Phase { AlwaysUseChannelBased = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseReverbPreset : long { None = 1917742958, @@ -65,7 +65,7 @@ namespace Phase { Cathedral = 1917023336, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] [ErrorDomain ("PHASEErrorDomain")] public enum PhaseError : long { @@ -73,7 +73,7 @@ namespace Phase { InvalidObject = 1346913634, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] [ErrorDomain ("PHASESoundEventErrorDomain")] public enum PhaseSoundEventError : long { @@ -85,7 +85,7 @@ namespace Phase { OutOfMemory = 1346925670, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] [ErrorDomain ("PHASEAssetErrorDomain")] public enum PhaseAssetError : long { @@ -97,7 +97,7 @@ namespace Phase { MemoryAllocation = 1346920806, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseSoundEventPrepareHandlerReason : long { Error = 0, @@ -105,7 +105,7 @@ namespace Phase { Terminated = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseSoundEventStartHandlerReason : long { Error = 0, @@ -113,7 +113,7 @@ namespace Phase { Terminated = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseSoundEventSeekHandlerReason : long { Error = 0, @@ -121,7 +121,7 @@ namespace Phase { SeekSuccessful = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseSoundEventPrepareState : long { NotStarted = 0, @@ -129,14 +129,14 @@ namespace Phase { Prepared = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseAssetType : long { Resident = 0, Streamed = 1, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseCurveType : long { Linear = 1668435054, @@ -148,13 +148,13 @@ namespace Phase { InverseSine = 1668434259, Sigmoid = 1668436839, InverseSigmoid = 1668434247, - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] HoldStartValue = 1668434003, - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] JumpToEndValue = 1668434501, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseCullOption : long { Terminate = 0, @@ -164,21 +164,21 @@ namespace Phase { DoNotCull = 4, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhasePlaybackMode : long { OneShot = 0, Looping = 1, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseNormalizationMode : long { None = 0, Dynamic = 1, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseCalibrationMode : long { None = 0, @@ -186,7 +186,7 @@ namespace Phase { AbsoluteSpl = 2, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] public enum PhasePushStreamBufferOptions : ulong { @@ -196,20 +196,19 @@ namespace Phase { InterruptsAtLoop = 1uL << 3, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum PhasePushStreamCompletionCallbackCondition : long - { + public enum PhasePushStreamCompletionCallbackCondition : long { DataRendered = 0, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseMediumPreset : long { PresetAir = 1835286898, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum PhaseMaterialPreset : long { Cardboard = 1833136740, @@ -220,7 +219,7 @@ namespace Phase { Wood = 1834448228, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] public enum PhaseSpatialCategory { [Field ("PHASESpatialCategoryDirectPathTransmission")] DirectPathTransmission, @@ -230,21 +229,19 @@ namespace Phase { LateReverb, } - [Mac (12,0), NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [Mac (12, 0), NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] - public enum PhaseSpatialPipelineFlags : ulong - { + public enum PhaseSpatialPipelineFlags : ulong { DirectPathTransmission = 1uL << 0, EarlyReflections = 1uL << 1, LateReverb = 1uL << 2, } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASENumericPair")] - interface PhaseNumericPair - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASENumericPair")] + interface PhaseNumericPair { [Export ("initWithFirstValue:secondValue:")] NativeHandle Constructor (double first, double second); @@ -255,18 +252,19 @@ namespace Phase { double Second { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEEnvelopeSegment")] - interface PhaseEnvelopeSegment - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEEnvelopeSegment")] + interface PhaseEnvelopeSegment { [Export ("initWithEndPoint:curveType:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (Vector2d endPoint, PhaseCurveType curveType); - [Export ("endPoint", ArgumentSemantic.Assign)] - Vector2d EndPoint { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [Export ("endPoint", ArgumentSemantic.Assign)] + Vector2d EndPoint { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("curveType", ArgumentSemantic.Assign)] @@ -274,26 +272,26 @@ namespace Phase { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEEnvelope")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEEnvelope")] [DisableDefaultCtor] - interface PhaseEnvelope - { + interface PhaseEnvelope { [Export ("initWithStartPoint:segments:")] [DesignatedInitializer] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] - NativeHandle Constructor (Vector2d startPoint, PhaseEnvelopeSegment[] segments); + NativeHandle Constructor (Vector2d startPoint, PhaseEnvelopeSegment [] segments); [Export ("evaluateForValue:")] double Evaluate (double x); - [Export ("startPoint")] - Vector2d StartPoint { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + [Export ("startPoint")] + Vector2d StartPoint { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("segments", ArgumentSemantic.Copy)] - PhaseEnvelopeSegment[] Segments { get; } + PhaseEnvelopeSegment [] Segments { get; } [Export ("domain", ArgumentSemantic.Strong)] PhaseNumericPair Domain { get; } @@ -302,29 +300,26 @@ namespace Phase { PhaseNumericPair Range { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEDefinition")] [DisableDefaultCtor] - interface PhaseDefinition - { + interface PhaseDefinition { [Export ("identifier")] string Identifier { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDefinition), Name="PHASEMetaParameterDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDefinition), Name = "PHASEMetaParameterDefinition")] [DisableDefaultCtor] - interface PhaseMetaParameterDefinition - { + interface PhaseMetaParameterDefinition { [Export ("value", ArgumentSemantic.Strong)] NSObject Value { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMetaParameterDefinition), Name="PHASENumberMetaParameterDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMetaParameterDefinition), Name = "PHASENumberMetaParameterDefinition")] [DisableDefaultCtor] - interface PhaseNumberMetaParameterDefinition - { + interface PhaseNumberMetaParameterDefinition { [Export ("initWithValue:identifier:")] NativeHandle Constructor (double value, string identifier); @@ -345,11 +340,10 @@ namespace Phase { double Maximum { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMetaParameterDefinition), Name="PHASEStringMetaParameterDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMetaParameterDefinition), Name = "PHASEStringMetaParameterDefinition")] [DisableDefaultCtor] - interface PhaseStringMetaParameterDefinition - { + interface PhaseStringMetaParameterDefinition { [Export ("initWithValue:identifier:")] NativeHandle Constructor (string value, string identifier); @@ -358,11 +352,10 @@ namespace Phase { NativeHandle Constructor (string value); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseNumberMetaParameterDefinition), Name="PHASEMappedMetaParameterDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseNumberMetaParameterDefinition), Name = "PHASEMappedMetaParameterDefinition")] [DisableDefaultCtor] - interface PhaseMappedMetaParameterDefinition - { + interface PhaseMappedMetaParameterDefinition { [Export ("initWithValue:identifier:")] NativeHandle Constructor (double value, string identifier); @@ -384,11 +377,10 @@ namespace Phase { PhaseNumberMetaParameterDefinition InputMetaParameterDefinition { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEMetaParameter")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEMetaParameter")] [DisableDefaultCtor] - interface PhaseMetaParameter - { + interface PhaseMetaParameter { [Export ("identifier", ArgumentSemantic.Strong)] string Identifier { get; } @@ -396,16 +388,15 @@ namespace Phase { NSObject Value { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMetaParameter), Name="PHASEStringMetaParameter")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMetaParameter), Name = "PHASEStringMetaParameter")] [DisableDefaultCtor] interface PhaseStringMetaParameter { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMetaParameter), Name="PHASENumberMetaParameter")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMetaParameter), Name = "PHASENumberMetaParameter")] [DisableDefaultCtor] - interface PhaseNumberMetaParameter - { + interface PhaseNumberMetaParameter { [Export ("minimum")] double Minimum { get; } @@ -416,11 +407,10 @@ namespace Phase { void Fade (double value, double duration); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDefinition), Name="PHASEMixerDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDefinition), Name = "PHASEMixerDefinition")] [DisableDefaultCtor] - interface PhaseMixerDefinition - { + interface PhaseMixerDefinition { [Export ("gain")] double Gain { get; set; } @@ -428,11 +418,10 @@ namespace Phase { PhaseNumberMetaParameterDefinition GainMetaParameterDefinition { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMixerDefinition), Name="PHASESpatialMixerDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMixerDefinition), Name = "PHASESpatialMixerDefinition")] [DisableDefaultCtor] - interface PhaseSpatialMixerDefinition - { + interface PhaseSpatialMixerDefinition { [Export ("initWithSpatialPipeline:")] [DesignatedInitializer] NativeHandle Constructor (PhaseSpatialPipeline spatialPipeline); @@ -453,11 +442,10 @@ namespace Phase { PhaseDirectivityModelParameters SourceDirectivityModelParameters { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMixerDefinition), Name="PHASEAmbientMixerDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMixerDefinition), Name = "PHASEAmbientMixerDefinition")] [DisableDefaultCtor] - interface PhaseAmbientMixerDefinition - { + interface PhaseAmbientMixerDefinition { [Export ("initWithChannelLayout:orientation:identifier:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (AVAudioChannelLayout layout, Quaternion orientation, NSString identifier); @@ -477,11 +465,10 @@ namespace Phase { AVAudioChannelLayout InputChannelLayout { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseMixerDefinition), Name="PHASEChannelMixerDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseMixerDefinition), Name = "PHASEChannelMixerDefinition")] [DisableDefaultCtor] - interface PhaseChannelMixerDefinition - { + interface PhaseChannelMixerDefinition { [Export ("initWithChannelLayout:identifier:")] NativeHandle Constructor (AVAudioChannelLayout layout, string identifier); @@ -493,11 +480,10 @@ namespace Phase { AVAudioChannelLayout InputChannelLayout { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEMixer")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEMixer")] [DisableDefaultCtor] - interface PhaseMixer - { + interface PhaseMixer { [Export ("identifier", ArgumentSemantic.Strong)] string Identifier { get; } @@ -508,10 +494,9 @@ namespace Phase { PhaseMetaParameter GainMetaParameter { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEMixerParameters")] - interface PhaseMixerParameters - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEMixerParameters")] + interface PhaseMixerParameters { [Export ("addSpatialMixerParametersWithIdentifier:source:listener:")] void AddSpatialMixerParameters (string identifier, PhaseSource source, PhaseListener listener); @@ -519,11 +504,10 @@ namespace Phase { void AddAmbientMixerParameters (string identifier, PhaseListener listener); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject), Name="PHASEGroup")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEGroup")] [DisableDefaultCtor] - interface PhaseGroup - { + interface PhaseGroup { [Export ("initWithIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (string identifier); @@ -568,20 +552,18 @@ namespace Phase { bool Soloed { [Bind ("isSoloed")] get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDefinition), Name="PHASESoundEventNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDefinition), Name = "PHASESoundEventNodeDefinition")] [DisableDefaultCtor] - interface PhaseSoundEventNodeDefinition - { + interface PhaseSoundEventNodeDefinition { [Export ("children", ArgumentSemantic.Copy)] - PhaseSoundEventNodeDefinition[] Children { get; } + PhaseSoundEventNodeDefinition [] Children { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseSoundEventNodeDefinition), Name="PHASEGeneratorNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseSoundEventNodeDefinition), Name = "PHASEGeneratorNodeDefinition")] [DisableDefaultCtor] - interface PhaseGeneratorNodeDefinition - { + interface PhaseGeneratorNodeDefinition { [Export ("setCalibrationMode:level:")] void SetCalibrationMode (PhaseCalibrationMode calibrationMode, double level); @@ -607,11 +589,10 @@ namespace Phase { PhaseMixerDefinition MixerDefinition { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseGeneratorNodeDefinition), Name="PHASESamplerNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseGeneratorNodeDefinition), Name = "PHASESamplerNodeDefinition")] [DisableDefaultCtor] - interface PhaseSamplerNodeDefinition - { + interface PhaseSamplerNodeDefinition { [Export ("initWithSoundAssetIdentifier:mixerDefinition:identifier:")] NativeHandle Constructor (string soundAssetIdentifier, PhaseMixerDefinition mixerDefinition, string identifier); @@ -629,10 +610,9 @@ namespace Phase { PhasePlaybackMode PlaybackMode { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseSoundEventNodeDefinition), Name="PHASEContainerNodeDefinition")] - interface PhaseContainerNodeDefinition - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseSoundEventNodeDefinition), Name = "PHASEContainerNodeDefinition")] + interface PhaseContainerNodeDefinition { [Static] [Export ("new")] [return: Release] @@ -645,11 +625,10 @@ namespace Phase { void Add (PhaseSoundEventNodeDefinition subtree); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseSoundEventNodeDefinition), Name="PHASEBlendNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseSoundEventNodeDefinition), Name = "PHASEBlendNodeDefinition")] [DisableDefaultCtor] - interface PhaseBlendNodeDefinition - { + interface PhaseBlendNodeDefinition { [Export ("initWithBlendMetaParameterDefinition:identifier:")] NativeHandle Constructor (PhaseNumberMetaParameterDefinition blendMetaParameterDefinition, string identifier); @@ -683,11 +662,10 @@ namespace Phase { void AddRange (PhaseEnvelope envelope, PhaseSoundEventNodeDefinition subtree); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseSoundEventNodeDefinition), Name="PHASESwitchNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseSoundEventNodeDefinition), Name = "PHASESwitchNodeDefinition")] [DisableDefaultCtor] - interface PhaseSwitchNodeDefinition - { + interface PhaseSwitchNodeDefinition { [Export ("initWithSwitchMetaParameterDefinition:identifier:")] NativeHandle Constructor (PhaseStringMetaParameterDefinition switchMetaParameterDefinition, string identifier); @@ -702,11 +680,10 @@ namespace Phase { PhaseStringMetaParameterDefinition SwitchMetaParameterDefinition { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(PhaseSoundEventNodeDefinition), Name="PHASERandomNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseSoundEventNodeDefinition), Name = "PHASERandomNodeDefinition")] [DisableDefaultCtor] - interface PhaseRandomNodeDefinition - { + interface PhaseRandomNodeDefinition { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -721,11 +698,10 @@ namespace Phase { nint UniqueSelectionQueueLength { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(PhaseGeneratorNodeDefinition), Name="PHASEPushStreamNodeDefinition")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseGeneratorNodeDefinition), Name = "PHASEPushStreamNodeDefinition")] [DisableDefaultCtor] - interface PhasePushStreamNodeDefinition - { + interface PhasePushStreamNodeDefinition { [Export ("initWithMixerDefinition:format:identifier:")] NativeHandle Constructor (PhaseMixerDefinition mixerDefinition, AVAudioFormat format, string identifier); @@ -740,11 +716,10 @@ namespace Phase { bool Normalize { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject), Name="PHASEPushStreamNode")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEPushStreamNode")] [DisableDefaultCtor] - interface PhasePushStreamNode - { + interface PhasePushStreamNode { [NullAllowed, Export ("gainMetaParameter", ArgumentSemantic.Strong)] PhaseNumberMetaParameter GainMetaParameter { get; } @@ -772,25 +747,23 @@ namespace Phase { void ScheduleBuffer (AVAudioPcmBuffer buffer, [NullAllowed] AVAudioTime when, PhasePushStreamBufferOptions options, PhasePushStreamCompletionCallbackCondition completionCallbackCondition, Action completionHandler); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEAsset")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEAsset")] [DisableDefaultCtor] - interface PhaseAsset - { + interface PhaseAsset { [Export ("identifier")] string Identifier { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseAsset), Name="PHASEGlobalMetaParameterAsset")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseAsset), Name = "PHASEGlobalMetaParameterAsset")] [DisableDefaultCtor] interface PhaseGlobalMetaParameterAsset { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseAsset), Name="PHASESoundAsset")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseAsset), Name = "PHASESoundAsset")] [DisableDefaultCtor] - interface PhaseSoundAsset - { + interface PhaseSoundAsset { [NullAllowed, Export ("url")] NSUrl Url { get; } @@ -801,16 +774,15 @@ namespace Phase { PhaseAssetType Type { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseAsset), Name="PHASESoundEventNodeAsset")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseAsset), Name = "PHASESoundEventNodeAsset")] [DisableDefaultCtor] - interface PhaseSoundEventNodeAsset {} + interface PhaseSoundEventNodeAsset { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEAssetRegistry")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEAssetRegistry")] [DisableDefaultCtor] - interface PhaseAssetRegistry - { + interface PhaseAssetRegistry { [Export ("registerGlobalMetaParameter:error:")] [return: NullAllowed] PhaseGlobalMetaParameterAsset RegisterGlobalMetaParameter (PhaseMetaParameterDefinition metaParameterDefinition, [NullAllowed] out NSError error); @@ -839,10 +811,9 @@ namespace Phase { NSDictionary GlobalMetaParameters { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject), Name="PHASECardioidDirectivityModelSubbandParameters")] - interface PhaseCardioidDirectivityModelSubbandParameters - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASECardioidDirectivityModelSubbandParameters")] + interface PhaseCardioidDirectivityModelSubbandParameters { [Export ("frequency")] double Frequency { get; set; } @@ -853,10 +824,9 @@ namespace Phase { double Sharpness { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEConeDirectivityModelSubbandParameters")] - interface PhaseConeDirectivityModelSubbandParameters - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEConeDirectivityModelSubbandParameters")] + interface PhaseConeDirectivityModelSubbandParameters { [Export ("setInnerAngle:outerAngle:")] void SetInnerAngle (double innerAngle, double outerAngle); @@ -873,39 +843,36 @@ namespace Phase { double OuterGain { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEDirectivityModelParameters")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEDirectivityModelParameters")] [DisableDefaultCtor] - interface PhaseDirectivityModelParameters {} + interface PhaseDirectivityModelParameters { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDirectivityModelParameters), Name="PHASECardioidDirectivityModelParameters")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDirectivityModelParameters), Name = "PHASECardioidDirectivityModelParameters")] [DisableDefaultCtor] - interface PhaseCardioidDirectivityModelParameters - { + interface PhaseCardioidDirectivityModelParameters { [Export ("initWithSubbandParameters:")] - NativeHandle Constructor (PhaseCardioidDirectivityModelSubbandParameters[] subbandParameters); + NativeHandle Constructor (PhaseCardioidDirectivityModelSubbandParameters [] subbandParameters); [Export ("subbandParameters", ArgumentSemantic.Strong)] - PhaseCardioidDirectivityModelSubbandParameters[] SubbandParameters { get; } + PhaseCardioidDirectivityModelSubbandParameters [] SubbandParameters { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDirectivityModelParameters), Name="PHASEConeDirectivityModelParameters")] - interface PhaseConeDirectivityModelParameters - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDirectivityModelParameters), Name = "PHASEConeDirectivityModelParameters")] + interface PhaseConeDirectivityModelParameters { [Export ("initWithSubbandParameters:")] - NativeHandle Constructor (PhaseConeDirectivityModelSubbandParameters[] subbandParameters); + NativeHandle Constructor (PhaseConeDirectivityModelSubbandParameters [] subbandParameters); [Export ("subbandParameters", ArgumentSemantic.Strong)] - PhaseConeDirectivityModelSubbandParameters[] SubbandParameters { get; } + PhaseConeDirectivityModelSubbandParameters [] SubbandParameters { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEDistanceModelFadeOutParameters")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEDistanceModelFadeOutParameters")] [DisableDefaultCtor] - interface PhaseDistanceModelFadeOutParameters - { + interface PhaseDistanceModelFadeOutParameters { [Export ("initWithCullDistance:")] [DesignatedInitializer] NativeHandle Constructor (double cullDistance); @@ -914,28 +881,25 @@ namespace Phase { double CullDistance { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEDistanceModelParameters")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEDistanceModelParameters")] [DisableDefaultCtor] - interface PhaseDistanceModelParameters - { + interface PhaseDistanceModelParameters { [NullAllowed, Export ("fadeOutParameters", ArgumentSemantic.Strong)] PhaseDistanceModelFadeOutParameters FadeOutParameters { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDistanceModelParameters), Name="PHASEGeometricSpreadingDistanceModelParameters")] - interface PhaseGeometricSpreadingDistanceModelParameters - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDistanceModelParameters), Name = "PHASEGeometricSpreadingDistanceModelParameters")] + interface PhaseGeometricSpreadingDistanceModelParameters { [Export ("rolloffFactor")] double RolloffFactor { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseDistanceModelParameters), Name="PHASEEnvelopeDistanceModelParameters")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseDistanceModelParameters), Name = "PHASEEnvelopeDistanceModelParameters")] [DisableDefaultCtor] - interface PhaseEnvelopeDistanceModelParameters - { + interface PhaseEnvelopeDistanceModelParameters { [Export ("initWithEnvelope:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEnvelope envelope); @@ -944,11 +908,10 @@ namespace Phase { PhaseEnvelope Envelope { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEDucker")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEDucker")] [DisableDefaultCtor] - interface PhaseDucker - { + interface PhaseDucker { [Export ("initWithEngine:sourceGroups:targetGroups:gain:attackTime:releaseTime:attackCurve:releaseCurve:")] NativeHandle Constructor (PhaseEngine engine, NSSet sourceGroups, NSSet targetGroups, double gain, double attackTime, double releaseTime, PhaseCurveType attackCurve, PhaseCurveType releaseCurve); @@ -986,11 +949,10 @@ namespace Phase { string Identifier { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEGroupPresetSetting")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEGroupPresetSetting")] [DisableDefaultCtor] - interface PhaseGroupPresetSetting - { + interface PhaseGroupPresetSetting { [Export ("initWithGain:rate:gainCurveType:rateCurveType:")] NativeHandle Constructor (double gain, double rate, PhaseCurveType gainCurveType, PhaseCurveType rateCurveType); @@ -1007,11 +969,10 @@ namespace Phase { PhaseCurveType RateCurveType { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEGroupPreset")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEGroupPreset")] [DisableDefaultCtor] - interface PhaseGroupPreset - { + interface PhaseGroupPreset { [Export ("initWithEngine:settings:timeToTarget:timeToReset:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine, NSDictionary settings, double timeToTarget, double timeToReset); @@ -1038,20 +999,18 @@ namespace Phase { void Deactivate (double timeToResetOverride); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEMedium")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEMedium")] [DisableDefaultCtor] - interface PhaseMedium - { + interface PhaseMedium { [Export ("initWithEngine:preset:")] NativeHandle Constructor (PhaseEngine engine, PhaseMediumPreset preset); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEObject")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEObject")] [DisableDefaultCtor] - interface PhaseObject : NSCopying - { + interface PhaseObject : NSCopying { [Export ("initWithEngine:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine); @@ -1069,44 +1028,50 @@ namespace Phase { PhaseObject Parent { get; } [Export ("children", ArgumentSemantic.Copy)] - PhaseObject[] Children { get; } + PhaseObject [] Children { get; } [Static] [Export ("right")] - Vector3 Right { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + Vector3 Right { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Static] [Export ("up")] - Vector3 Up { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + Vector3 Up { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Static] [Export ("forward")] - Vector3 Forward { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; + Vector3 Forward { + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; } [Export ("transform", ArgumentSemantic.Assign)] NMatrix4 Transform { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("worldTransform", ArgumentSemantic.Assign)] NMatrix4 WorldTransform { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASESoundEvent")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASESoundEvent")] [DisableDefaultCtor] - interface PhaseSoundEvent - { + interface PhaseSoundEvent { [Export ("initWithEngine:assetIdentifier:mixerParameters:error:")] NativeHandle Constructor (PhaseEngine engine, string assetIdentifier, PhaseMixerParameters mixerParameters, [NullAllowed] out NSError error); @@ -1159,11 +1124,10 @@ namespace Phase { bool Indefinite { [Bind ("isIndefinite")] get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEEngine")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEEngine")] [DisableDefaultCtor] - interface PhaseEngine - { + interface PhaseEngine { [Export ("initWithUpdateMode:")] [DesignatedInitializer] NativeHandle Constructor (PhaseUpdateMode updateMode); @@ -1205,23 +1169,22 @@ namespace Phase { PhaseAssetRegistry AssetRegistry { get; } [Export ("soundEvents", ArgumentSemantic.Copy)] - PhaseSoundEvent[] SoundEvents { get; } + PhaseSoundEvent [] SoundEvents { get; } [Export ("groups", ArgumentSemantic.Copy)] NSDictionary Groups { get; } [Export ("duckers", ArgumentSemantic.Copy)] - PhaseDucker[] Duckers { get; } + PhaseDucker [] Duckers { get; } [NullAllowed, Export ("activeGroupPreset", ArgumentSemantic.Strong)] PhaseGroupPreset ActiveGroupPreset { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseObject), Name="PHASEListener")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseObject), Name = "PHASEListener")] [DisableDefaultCtor] - interface PhaseListener - { + interface PhaseListener { [Export ("initWithEngine:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine); @@ -1230,81 +1193,75 @@ namespace Phase { double Gain { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEMaterial")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEMaterial")] [DisableDefaultCtor] - interface PhaseMaterial - { + interface PhaseMaterial { [Export ("initWithEngine:preset:")] NativeHandle Constructor (PhaseEngine engine, PhaseMaterialPreset preset); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEShapeElement")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEShapeElement")] [DisableDefaultCtor] - interface PhaseShapeElement - { + interface PhaseShapeElement { [NullAllowed, Export ("material", ArgumentSemantic.Strong)] PhaseMaterial Material { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASEShape")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASEShape")] [DisableDefaultCtor] - interface PhaseShape : NSCopying - { + interface PhaseShape : NSCopying { [Export ("initWithEngine:mesh:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine, MDLMesh mesh); [Export ("initWithEngine:mesh:materials:")] - NativeHandle Constructor (PhaseEngine engine, MDLMesh mesh, PhaseMaterial[] materials); + NativeHandle Constructor (PhaseEngine engine, MDLMesh mesh, PhaseMaterial [] materials); [Export ("elements", ArgumentSemantic.Copy)] - PhaseShapeElement[] Elements { get; } + PhaseShapeElement [] Elements { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseObject), Name="PHASEOccluder")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseObject), Name = "PHASEOccluder")] [DisableDefaultCtor] - interface PhaseOccluder - { + interface PhaseOccluder { [Export ("initWithEngine:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine); [Export ("initWithEngine:shapes:")] [DesignatedInitializer] - NativeHandle Constructor (PhaseEngine engine, PhaseShape[] shapes); + NativeHandle Constructor (PhaseEngine engine, PhaseShape [] shapes); [Export ("shapes", ArgumentSemantic.Copy)] - PhaseShape[] Shapes { get; } + PhaseShape [] Shapes { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (PhaseObject), Name="PHASESource")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (PhaseObject), Name = "PHASESource")] [DisableDefaultCtor] - interface PhaseSource - { + interface PhaseSource { [Export ("initWithEngine:")] [DesignatedInitializer] NativeHandle Constructor (PhaseEngine engine); [Export ("initWithEngine:shapes:")] [DesignatedInitializer] - NativeHandle Constructor (PhaseEngine engine, PhaseShape[] shapes); + NativeHandle Constructor (PhaseEngine engine, PhaseShape [] shapes); [Export ("gain")] double Gain { get; set; } [Export ("shapes", ArgumentSemantic.Copy)] - PhaseShape[] Shapes { get; } + PhaseShape [] Shapes { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASESpatialPipelineEntry")] - interface PhaseSpatialPipelineEntry - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASESpatialPipelineEntry")] + interface PhaseSpatialPipelineEntry { [Export ("sendLevel")] double SendLevel { get; set; } @@ -1312,11 +1269,10 @@ namespace Phase { PhaseNumberMetaParameterDefinition SendLevelMetaParameterDefinition { get; set; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof (NSObject), Name="PHASESpatialPipeline")] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject), Name = "PHASESpatialPipeline")] [DisableDefaultCtor] - interface PhaseSpatialPipeline - { + interface PhaseSpatialPipeline { [Export ("initWithFlags:")] [DesignatedInitializer] NativeHandle Constructor (PhaseSpatialPipelineFlags flags); diff --git a/src/photos.cs b/src/photos.cs index a600134b0b..435ef374d0 100644 --- a/src/photos.cs +++ b/src/photos.cs @@ -20,11 +20,10 @@ using UIImage = AppKit.NSImage; using NativeHandle = System.IntPtr; #endif -namespace Photos -{ - [iOS (8,0)] - [TV (10,0)] - [Mac (10,12)] +namespace Photos { + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject))] interface PHAdjustmentData : NSCoding, NSSecureCoding { @@ -41,9 +40,9 @@ namespace Photos NSData Data { get; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] #if MONOMAC [DisableDefaultCtor] // Crashes mac introspection test #endif @@ -81,7 +80,8 @@ namespace Photos bool Hidden { [Bind ("isHidden")] get; } [Deprecated (PlatformName.MacOSX, 10, 15, message: "No longer supported.")] - [NoTV][NoiOS] + [NoTV] + [NoiOS] [Export ("syncFailureHidden")] bool SyncFailureHidden { [Bind ("isSyncFailureHidden")] get; } @@ -101,7 +101,7 @@ namespace Photos [Export ("representsBurst")] bool RepresentsBurst { get; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("canPerformEditOperation:")] bool CanPerformEditOperation (PHAssetEditOperation editOperation); @@ -109,53 +109,54 @@ namespace Photos [Export ("fetchAssetsInAssetCollection:options:")] PHFetchResult FetchAssets (PHAssetCollection assetCollection, [NullAllowed] PHFetchOptions options); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("fetchAssetsWithMediaType:options:")] PHFetchResult FetchAssets (PHAssetMediaType mediaType, [NullAllowed] PHFetchOptions options); [Static] [Export ("fetchAssetsWithLocalIdentifiers:options:")] - PHFetchResult FetchAssetsUsingLocalIdentifiers (string[] identifiers, [NullAllowed] PHFetchOptions options); + PHFetchResult FetchAssetsUsingLocalIdentifiers (string [] identifiers, [NullAllowed] PHFetchOptions options); [Static] [Export ("fetchKeyAssetsInAssetCollection:options:")] [return: NullAllowed] PHFetchResult FetchKeyAssets (PHAssetCollection assetCollection, [NullAllowed] PHFetchOptions options); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("fetchAssetsWithBurstIdentifier:options:")] PHFetchResult FetchAssets (string burstIdentifier, [NullAllowed] PHFetchOptions options); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("fetchAssetsWithOptions:")] PHFetchResult FetchAssets ([NullAllowed] PHFetchOptions options); - [Deprecated (PlatformName.TvOS, 11,0)] - [Deprecated (PlatformName.iOS, 11,0)] + [Deprecated (PlatformName.TvOS, 11, 0)] + [Deprecated (PlatformName.iOS, 11, 0)] [NoMac] [Static] [NoMacCatalyst] [Export ("fetchAssetsWithALAssetURLs:options:")] - PHFetchResult FetchAssets (NSUrl[] assetUrls, [NullAllowed] PHFetchOptions options); + PHFetchResult FetchAssets (NSUrl [] assetUrls, [NullAllowed] PHFetchOptions options); - [iOS (9,0)] + [iOS (9, 0)] [Export ("sourceType", ArgumentSemantic.Assign)] PHAssetSourceType SourceType { get; } - [TV (11,0), iOS (11,0), Mac (10, 15)] + [TV (11, 0), iOS (11, 0), Mac (10, 15)] [Export ("playbackStyle", ArgumentSemantic.Assign)] PHAssetPlaybackStyle PlaybackStyle { get; } [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'PHPhotosError.IdentifierNotFound' instead.")] - [NoTV][NoiOS] + [NoTV] + [NoiOS] [Field ("PHLocalIdentifierNotFound")] NSString LocalIdentifierNotFound { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("adjustmentFormatIdentifier")] string AdjustmentFormatIdentifier { get; } @@ -164,9 +165,9 @@ namespace Photos bool HasAdjustments { get; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[PHAssetChangeRequest init]: unrecognized selector sent to instance 0x8165d150 [BaseType (typeof (PHChangeRequest))] interface PHAssetChangeRequest { @@ -191,7 +192,7 @@ namespace Photos [Static] [Export ("deleteAssets:")] - void DeleteAssets (PHAsset[] assets); + void DeleteAssets (PHAsset [] assets); [Static] [Export ("changeRequestForAsset:")] @@ -220,20 +221,19 @@ namespace Photos } - [iOS (9,0)] - [TV (10,0)] - [Mac (10,15)] - [BaseType (typeof(PHAssetChangeRequest))] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 15)] + [BaseType (typeof (PHAssetChangeRequest))] [DisableDefaultCtor] - interface PHAssetCreationRequest - { + interface PHAssetCreationRequest { [Static] [Export ("creationRequestForAsset")] PHAssetCreationRequest CreationRequestForAsset (); [Static] [Internal, Export ("supportsAssetResourceTypes:")] - bool _SupportsAssetResourceTypes (NSNumber[] types); + bool _SupportsAssetResourceTypes (NSNumber [] types); [Export ("addResourceWithType:fileURL:options:")] void AddResource (PHAssetResourceType type, NSUrl fileURL, [NullAllowed] PHAssetResourceCreationOptions options); @@ -245,13 +245,12 @@ namespace Photos [NoMac] delegate void PHProgressHandler (double progress, ref bool stop); - [iOS (9,0)] - [TV (10,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crashes: -[PHAssetResource init]: unrecognized selector sent to instance 0x7f9e15884e90 - interface PHAssetResource - { + interface PHAssetResource { [Export ("type", ArgumentSemantic.Assign)] PHAssetResourceType ResourceType { get; } @@ -267,12 +266,12 @@ namespace Photos [Static] [Export ("assetResourcesForAsset:")] - PHAssetResource[] GetAssetResources (PHAsset forAsset); + PHAssetResource [] GetAssetResources (PHAsset forAsset); - [iOS (9,1)] + [iOS (9, 1)] [Static] [Export ("assetResourcesForLivePhoto:")] - PHAssetResource[] GetAssetResources (PHLivePhoto livePhoto); + PHAssetResource [] GetAssetResources (PHLivePhoto livePhoto); [TV (16, 0), Mac (13, 0), iOS (16, 0)] [Export ("pixelWidth")] @@ -283,12 +282,11 @@ namespace Photos nint PixelHeight { get; } } - [iOS (9,0)] - [TV (10,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] - interface PHAssetResourceCreationOptions : NSCopying - { + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] + interface PHAssetResourceCreationOptions : NSCopying { [NullAllowed, Export ("originalFilename")] string OriginalFilename { get; set; } @@ -299,9 +297,9 @@ namespace Photos bool ShouldMoveFile { get; set; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] interface PHContentEditingInputRequestOptions { @@ -326,9 +324,9 @@ namespace Photos delegate void PHContentEditingHandler (PHContentEditingInput contentEditingInput, NSDictionary requestStatusInfo); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [Category] [BaseType (typeof (PHAsset))] interface PHAssetContentEditingInputExtensions { @@ -340,12 +338,12 @@ namespace Photos void CancelContentEditingInputRequest (nuint requestID); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (PHChangeRequest))] [DisableDefaultCtor] // fails when calling ToString (see below) and there are (static) API to create them - // NSInternalInconsistencyException Reason: This method can only be called from inside of -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangeAndWait:] + // NSInternalInconsistencyException Reason: This method can only be called from inside of -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangeAndWait:] interface PHAssetCollectionChangeRequest { [Static] @@ -357,7 +355,7 @@ namespace Photos [Static] [Export ("deleteAssetCollections:")] - void DeleteAssetCollections (PHAssetCollection[] assetCollections); + void DeleteAssetCollections (PHAssetCollection [] assetCollections); [Static] [Export ("changeRequestForAssetCollection:")] @@ -379,25 +377,24 @@ namespace Photos void InsertAssets (PHObject [] assets, NSIndexSet indexes); [Export ("removeAssets:")] - void RemoveAssets (PHObject[] assets); + void RemoveAssets (PHObject [] assets); [Export ("removeAssetsAtIndexes:")] void RemoveAssets (NSIndexSet indexes); [Export ("replaceAssetsAtIndexes:withAssets:")] - void ReplaceAssets (NSIndexSet indexes, PHObject[] assets); + void ReplaceAssets (NSIndexSet indexes, PHObject [] assets); [Export ("moveAssetsAtIndexes:toIndex:")] void MoveAssets (NSIndexSet fromIndexes, nuint toIndex); } - [iOS (9,0)] - [TV (10,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHAssetResourceManager - { + interface PHAssetResourceManager { [Static] [Export ("defaultManager")] PHAssetResourceManager DefaultManager { get; } @@ -413,12 +410,11 @@ namespace Photos void CancelDataRequest (int requestID); } - [iOS (9,0)] - [TV (10,0)] - [Mac (10,15)] - [BaseType (typeof(NSObject))] - interface PHAssetResourceRequestOptions : NSCopying - { + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 15)] + [BaseType (typeof (NSObject))] + interface PHAssetResourceRequestOptions : NSCopying { [Export ("networkAccessAllowed")] bool NetworkAccessAllowed { [Bind ("isNetworkAccessAllowed")] get; set; } @@ -426,9 +422,9 @@ namespace Photos Action ProgressHandler { get; set; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHChange { @@ -441,9 +437,9 @@ namespace Photos PHFetchResultChangeDetails GetFetchResultChangeDetails (PHFetchResult obj); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHObjectChangeDetails { @@ -461,21 +457,21 @@ namespace Photos bool ObjectWasDeleted { get; } } - [iOS (8,0)] // This class is introduced in iOS (13,0) but is decorated with iOS(8,0) since PHCollectionListChangeRequest - // supports iOS (8,0) and iOS (13,0) only supports 64 bits, not 32 bits - [TV (13,0)] - [Mac (10,15)] + [iOS (8, 0)] // This class is introduced in iOS (13,0) but is decorated with iOS(8,0) since PHCollectionListChangeRequest + // supports iOS (8,0) and iOS (13,0) only supports 64 bits, not 32 bits + [TV (13, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // include the availability attributes to any new member (and don't trust the type-level ones) - interface PHChangeRequest {} + interface PHChangeRequest { } - [Mac (10,13)] + [Mac (10, 13)] delegate void PHChangeDetailEnumerator (nuint fromIndex, nuint toIndex); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHFetchResultChangeDetails { @@ -493,21 +489,21 @@ namespace Photos NSIndexSet RemovedIndexes { get; } [Export ("removedObjects", ArgumentSemantic.Strong)] - PHObject[] RemovedObjects { get; } + PHObject [] RemovedObjects { get; } [Export ("insertedIndexes", ArgumentSemantic.Strong)] [NullAllowed] NSIndexSet InsertedIndexes { get; } [Export ("insertedObjects", ArgumentSemantic.Strong)] - PHObject[] InsertedObjects { get; } + PHObject [] InsertedObjects { get; } [Export ("changedIndexes", ArgumentSemantic.Strong)] [NullAllowed] NSIndexSet ChangedIndexes { get; } [Export ("changedObjects", ArgumentSemantic.Strong)] - PHObject[] ChangedObjects { get; } + PHObject [] ChangedObjects { get; } [Export ("enumerateMovesWithBlock:")] void EnumerateMoves (PHChangeDetailEnumerator handler); @@ -517,15 +513,15 @@ namespace Photos [Static] [Export ("changeDetailsFromFetchResult:toFetchResult:changedObjects:")] - PHFetchResultChangeDetails ChangeDetails (PHFetchResult fromResult, PHFetchResult toResult, PHObject[] changedObjects); + PHFetchResultChangeDetails ChangeDetails (PHFetchResult fromResult, PHFetchResult toResult, PHObject [] changedObjects); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (PHObject))] [DisableDefaultCtor] // not user createable (calling description fails, see below) must be fetched by API - // NSInternalInconsistencyException Reason: PHCollection has no identifier + // NSInternalInconsistencyException Reason: PHCollection has no identifier #if TVOS || NET [Abstract] // Acording to docs: The abstract superclass for Photos asset collections and collection lists. #endif @@ -537,7 +533,7 @@ namespace Photos [Export ("canContainCollections", ArgumentSemantic.Assign)] bool CanContainCollections { get; } - [Mac (10,15)] + [Mac (10, 15)] [Export ("localizedTitle", ArgumentSemantic.Strong)] [NullAllowed] string LocalizedTitle { get; } @@ -554,9 +550,9 @@ namespace Photos PHFetchResult FetchTopLevelUserCollections ([NullAllowed] PHFetchOptions options); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (PHCollection))] interface PHAssetCollection { @@ -582,11 +578,11 @@ namespace Photos CLLocation ApproximateLocation { get; } [Export ("localizedLocationNames", ArgumentSemantic.Strong)] - string[] LocalizedLocationNames { get; } + string [] LocalizedLocationNames { get; } [Static] [Export ("fetchAssetCollectionsWithLocalIdentifiers:options:")] - PHFetchResult FetchAssetCollections (string[] identifiers, [NullAllowed] PHFetchOptions options); + PHFetchResult FetchAssetCollections (string [] identifiers, [NullAllowed] PHFetchOptions options); [Static] [Export ("fetchAssetCollectionsWithType:subtype:options:")] @@ -601,7 +597,7 @@ namespace Photos [Deprecated (PlatformName.MacOSX, 13, 0, message: "Will be removed in a future release.")] [Static] [Export ("fetchAssetCollectionsWithALAssetGroupURLs:options:")] - PHFetchResult FetchAssetCollections (NSUrl[] assetGroupUrls, [NullAllowed] PHFetchOptions options); + PHFetchResult FetchAssetCollections (NSUrl [] assetGroupUrls, [NullAllowed] PHFetchOptions options); [Deprecated (PlatformName.iOS, 13, 0)] [Deprecated (PlatformName.TvOS, 13, 0)] @@ -619,16 +615,16 @@ namespace Photos [Static] [Export ("transientAssetCollectionWithAssets:title:")] - PHAssetCollection GetTransientAssetCollection (PHAsset[] assets, [NullAllowed] string title); + PHAssetCollection GetTransientAssetCollection (PHAsset [] assets, [NullAllowed] string title); [Static] [Export ("transientAssetCollectionWithAssetFetchResult:title:")] PHAssetCollection GetTransientAssetCollection (PHFetchResult fetchResult, [NullAllowed] string title); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (PHCollection))] interface PHCollectionList { @@ -647,7 +643,7 @@ namespace Photos NSDate EndDate { get; } [Export ("localizedLocationNames", ArgumentSemantic.Strong)] - string[] LocalizedLocationNames { get; } + string [] LocalizedLocationNames { get; } [Static] [Export ("fetchCollectionListsContainingCollection:options:")] @@ -655,7 +651,7 @@ namespace Photos [Static] [Export ("fetchCollectionListsWithLocalIdentifiers:options:")] - PHFetchResult FetchCollectionLists (string[] identifiers, [NullAllowed] PHFetchOptions options); + PHFetchResult FetchCollectionLists (string [] identifiers, [NullAllowed] PHFetchOptions options); [Static] [Export ("fetchCollectionListsWithType:subtype:options:")] @@ -677,20 +673,20 @@ namespace Photos [Static] [Export ("transientCollectionListWithCollections:title:")] - PHCollectionList CreateTransientCollectionList (PHAssetCollection[] collections, [NullAllowed] string title); + PHCollectionList CreateTransientCollectionList (PHAssetCollection [] collections, [NullAllowed] string title); [Static] [Export ("transientCollectionListWithCollectionsFetchResult:title:")] PHCollectionList CreateTransientCollectionList (PHFetchResult fetchResult, [NullAllowed] string title); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (PHChangeRequest))] [DisableDefaultCtor] // sometimes crash when calling 'description' - // This method can only be called from inside of -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangeAndWait:] - // as it ties to get 'title' which was never set (e.g. using FromCreationRequest) + // This method can only be called from inside of -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangeAndWait:] + // as it ties to get 'title' which was never set (e.g. using FromCreationRequest) interface PHCollectionListChangeRequest { [Static] @@ -702,7 +698,7 @@ namespace Photos [Static] [Export ("deleteCollectionLists:")] - void DeleteCollectionLists (PHCollectionList[] collectionLists); + void DeleteCollectionLists (PHCollectionList [] collectionLists); [Static] [Export ("changeRequestForCollectionList:")] @@ -714,8 +710,8 @@ namespace Photos [return: NullAllowed] PHCollectionListChangeRequest ChangeRequest (PHCollectionList collectionList, PHFetchResult childCollections); - [TV (14,2), Mac (11,0), iOS (14,2)] - [MacCatalyst (14,2)] + [TV (14, 2), Mac (11, 0), iOS (14, 2)] + [MacCatalyst (14, 2)] [Static] [Export ("changeRequestForTopLevelCollectionListUserCollections:")] [return: NullAllowed] @@ -725,27 +721,27 @@ namespace Photos string Title { get; set; } [Export ("addChildCollections:")] - void AddChildCollections (PHCollection[] collections); + void AddChildCollections (PHCollection [] collections); [Export ("insertChildCollections:atIndexes:")] - void InsertChildCollections (PHCollection[] collections, NSIndexSet indexes); + void InsertChildCollections (PHCollection [] collections, NSIndexSet indexes); [Export ("removeChildCollections:")] - void RemoveChildCollections (PHCollection[] collections); + void RemoveChildCollections (PHCollection [] collections); [Export ("removeChildCollectionsAtIndexes:")] void RemoveChildCollections (NSIndexSet indexes); [Export ("replaceChildCollectionsAtIndexes:withChildCollections:")] - void ReplaceChildCollection (NSIndexSet indexes, PHCollection[] collections); + void ReplaceChildCollection (NSIndexSet indexes, PHCollection [] collections); [Export ("moveChildCollectionsAtIndexes:toIndex:")] void MoveChildCollections (NSIndexSet indexes, nuint toIndex); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,12)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject))] interface PHContentEditingInput { @@ -791,23 +787,23 @@ namespace Photos [NullAllowed, Export ("avAsset", ArgumentSemantic.Strong)] AVAsset AvAsset { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("audiovisualAsset", ArgumentSemantic.Strong)] AVAsset AudiovisualAsset { get; } - [iOS (10,0), Mac (10,15)] + [iOS (10, 0), Mac (10, 15)] [NullAllowed, Export ("livePhoto", ArgumentSemantic.Strong)] PHLivePhoto LivePhoto { get; } - [TV (11,0), iOS (11,0)] - [Mac (10,13)] + [TV (11, 0), iOS (11, 0)] + [Mac (10, 13)] [Export ("playbackStyle", ArgumentSemantic.Assign)] PHAssetPlaybackStyle PlaybackStyle { get; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,12)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject))] interface PHContentEditingOutput : NSCoding, NSSecureCoding { @@ -825,9 +821,9 @@ namespace Photos NSUrl RenderedContentUrl { get; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHFetchOptions : NSCopying { @@ -837,7 +833,7 @@ namespace Photos [NullAllowed] // by default this property is null [Export ("sortDescriptors", ArgumentSemantic.Strong)] - NSSortDescriptor[] SortDescriptors { get; set; } + NSSortDescriptor [] SortDescriptors { get; set; } [Export ("includeHiddenAssets")] bool IncludeHiddenAssets { get; set; } @@ -849,21 +845,21 @@ namespace Photos [Export ("wantsIncrementalChangeDetails", ArgumentSemantic.Assign)] bool WantsIncrementalChangeDetails { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("includeAssetSourceTypes", ArgumentSemantic.Assign)] PHAssetSourceType IncludeAssetSourceTypes { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("fetchLimit", ArgumentSemantic.Assign)] nuint FetchLimit { get; set; } } - [Mac (10,13)] + [Mac (10, 13)] delegate void PHFetchResultEnumerator (NSObject element, nuint elementIndex, out bool stop); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash when calling 'description' and seems to be only returned from iOS (not user created) interface PHFetchResult : NSCopying { @@ -919,9 +915,9 @@ namespace Photos delegate void PHAssetImageProgressHandler (double progress, NSError error, out bool stop, NSDictionary info); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHImageRequestOptions : NSCopying { @@ -943,15 +939,16 @@ namespace Photos [Export ("synchronous", ArgumentSemantic.Assign)] bool Synchronous { [Bind ("isSynchronous")] get; set; } - [Export ("progressHandler", ArgumentSemantic.Copy)] [NullAllowed] + [Export ("progressHandler", ArgumentSemantic.Copy)] + [NullAllowed] PHAssetImageProgressHandler ProgressHandler { get; set; } } delegate void PHAssetVideoProgressHandler (double progress, NSError error, out bool stop, NSDictionary info); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] interface PHVideoRequestOptions { @@ -969,9 +966,9 @@ namespace Photos PHAssetVideoProgressHandler ProgressHandler { get; set; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [Static] interface PHImageKeys { @@ -1007,9 +1004,9 @@ namespace Photos delegate void PHImageManagerRequestLivePhoto (PHLivePhoto livePhoto, NSDictionary info); delegate void PHImageManagerRequestImageDataHandler ([NullAllowed] NSData imageData, [NullAllowed] string dataUti, CGImagePropertyOrientation orientation, [NullAllowed] NSDictionary info); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] interface PHImageManager { @@ -1029,15 +1026,15 @@ namespace Photos [Export ("requestImageDataForAsset:options:resultHandler:")] int /* PHImageRequestID = int32_t */ RequestImageData (PHAsset asset, [NullAllowed] PHImageRequestOptions options, PHImageDataHandler handler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("requestPlayerItemForVideo:options:resultHandler:")] int /* PHImageRequestID = int32_t */ RequestPlayerItem (PHAsset asset, [NullAllowed] PHVideoRequestOptions options, PHImageManagerRequestPlayerHandler resultHandler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("requestExportSessionForVideo:options:exportPreset:resultHandler:")] int /* PHImageRequestID = int32_t */ RequestExportSession (PHAsset asset, [NullAllowed] PHVideoRequestOptions options, string exportPreset, PHImageManagerRequestExportHandler resultHandler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("requestAVAssetForVideo:options:resultHandler:")] #if NET int /* PHImageRequestID = int32_t */ RequestAVAsset (PHAsset asset, [NullAllowed] PHVideoRequestOptions options, PHImageManagerRequestAVAssetHandler resultHandler); @@ -1048,12 +1045,12 @@ namespace Photos [Field ("PHImageManagerMaximumSize")] CGSize MaximumSize { get; } - [iOS (9,1)] - [Mac (10,15)] + [iOS (9, 1)] + [Mac (10, 15)] [Export ("requestLivePhotoForAsset:targetSize:contentMode:options:resultHandler:")] int /* PHImageRequestID = int32_t */ RequestLivePhoto (PHAsset asset, CGSize targetSize, PHImageContentMode contentMode, [NullAllowed] PHLivePhotoRequestOptions options, PHImageManagerRequestLivePhoto resultHandler); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("requestImageDataAndOrientationForAsset:options:resultHandler:")] int RequestImageDataAndOrientation (PHAsset asset, [NullAllowed] PHImageRequestOptions options, PHImageManagerRequestImageDataHandler resultHandler); } @@ -1064,9 +1061,9 @@ namespace Photos delegate void PHImageDataHandler (NSData data, NSString dataUti, UIImageOrientation orientation, NSDictionary info); #endif - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (PHImageManager))] interface PHCachingImageManager { @@ -1083,12 +1080,12 @@ namespace Photos void StopCaching (); } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // doc -> "abstract base class" - // throws "NSInternalInconsistencyException Reason: PHObject has no identifier" + // throws "NSInternalInconsistencyException Reason: PHObject has no identifier" #if TVOS || NET [Abstract] // Acording to docs: The abstract base class for Photos model objects (assets and collections). #endif @@ -1098,17 +1095,17 @@ namespace Photos string LocalIdentifier { get; } } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,15)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (PHObject))] interface PHObjectPlaceholder { } - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [Protocol] [Model] [BaseType (typeof (NSObject))] @@ -1119,9 +1116,9 @@ namespace Photos void PhotoLibraryDidChange (PHChange changeInstance); } - interface IPHPhotoLibraryAvailabilityObserver {} + interface IPHPhotoLibraryAvailabilityObserver { } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface PHPhotoLibraryAvailabilityObserver { @@ -1132,9 +1129,9 @@ namespace Photos delegate void PHPhotoLibraryCancellableChangeHandler (out bool cancel); - [iOS (8,0)] - [TV (10,0)] - [Mac (10,13)] + [iOS (8, 0)] + [TV (10, 0)] + [Mac (10, 13)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: -[PHPhotoLibrary init] unsupported interface PHPhotoLibrary { @@ -1149,8 +1146,8 @@ namespace Photos [Static, Export ("authorizationStatus")] PHAuthorizationStatus AuthorizationStatus { get; } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("authorizationStatusForAccessLevel:")] PHAuthorizationStatus GetAuthorizationStatus (PHAccessLevel accessLevel); @@ -1162,8 +1159,8 @@ namespace Photos [Async] void RequestAuthorization (Action handler); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static] [Export ("requestAuthorizationForAccessLevel:handler:")] [Async] @@ -1186,19 +1183,19 @@ namespace Photos [NullAllowed, Export ("unavailabilityReason", ArgumentSemantic.Strong)] NSError UnavailabilityReason { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("registerAvailabilityObserver:")] void Register (IPHPhotoLibraryAvailabilityObserver observer); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("unregisterAvailabilityObserver:")] void Unregister (IPHPhotoLibraryAvailabilityObserver observer); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("PHLocalIdentifiersErrorKey")] NSString LocalIdentifiersErrorKey { get; } - [TV (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] [Export ("fetchPersistentChangesSinceToken:error:")] [return: NullAllowed] PHPersistentChangeFetchResult FetchPersistentChanges (PHPersistentChangeToken since, [NullAllowed] out NSError error); @@ -1208,43 +1205,49 @@ namespace Photos PHPersistentChangeToken CurrentChangeToken { get; } } - [Mac (10,13)] - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Mac (10, 13)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Category] [BaseType (typeof (PHPhotoLibrary))] interface PHPhotoLibrary_CloudIdentifiers { - [Mac (12,0)] + [Mac (12, 0)] [Export ("localIdentifierMappingsForCloudIdentifiers:")] - NSDictionary GetLocalIdentifierMappings (PHCloudIdentifier[] cloudIdentifiers); + NSDictionary GetLocalIdentifierMappings (PHCloudIdentifier [] cloudIdentifiers); - [Mac (12,0)] + [Mac (12, 0)] [Export ("cloudIdentifierMappingsForLocalIdentifiers:")] - NSDictionary GetCloudIdentifierMappings (string[] localIdentifiers); + NSDictionary GetCloudIdentifierMappings (string [] localIdentifiers); - [NoTV][NoiOS][NoMacCatalyst] + [NoTV] + [NoiOS] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'localIdentifierMappingsForCloudIdentifiers:' instead.")] [Export ("localIdentifiersForCloudIdentifiers:")] - string[] GetLocalIdentifiers (PHCloudIdentifier[] cloudIdentifiers); + string [] GetLocalIdentifiers (PHCloudIdentifier [] cloudIdentifiers); - [NoTV][NoiOS][NoMacCatalyst] + [NoTV] + [NoiOS] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'cloudIdentifierMappingsForCloudIdentifiers:' instead.")] [Export ("cloudIdentifiersForLocalIdentifiers:")] - PHCloudIdentifier[] GetCloudIdentifiers (string[] localIdentifiers); + PHCloudIdentifier [] GetCloudIdentifiers (string [] localIdentifiers); - [NoTV][NoiOS][NoMacCatalyst] + [NoTV] + [NoiOS] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'PHPhotosError.IdentifierNotFound' instead.")] [Field ("PHLocalIdentifierNotFound")] NSString LocalIdentifierNotFound { get; } } - [iOS (9,1)] - [TV (10,0)] + [iOS (9, 1)] + [TV (10, 0)] #if MONOMAC [DisableDefaultCtor] // NS_UNAVAILABLE #endif - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] interface PHLivePhoto : NSSecureCoding, NSCopying #if IOS , NSItemProviderReading @@ -1253,22 +1256,22 @@ namespace Photos [Export ("size")] CGSize Size { get; } - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("requestLivePhotoWithResourceFileURLs:placeholderImage:targetSize:contentMode:resultHandler:")] - int RequestLivePhoto (NSUrl[] fileUrls, [NullAllowed] UIImage image, CGSize targetSize, PHImageContentMode contentMode, Action resultHandler); + int RequestLivePhoto (NSUrl [] fileUrls, [NullAllowed] UIImage image, CGSize targetSize, PHImageContentMode contentMode, Action resultHandler); - [Mac (10,15)] + [Mac (10, 15)] [Static] [Export ("cancelLivePhotoRequestWithRequestID:")] void CancelLivePhotoRequest (int requestID); } - [iOS (9,1)] - [TV (10,0)] - [Mac (10,15)] + [iOS (9, 1)] + [TV (10, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] - interface PHLivePhotoRequestOptions : NSCopying { + interface PHLivePhotoRequestOptions : NSCopying { [Export ("deliveryMode", ArgumentSemantic.Assign)] PHImageRequestOptionsDeliveryMode DeliveryMode { get; set; } @@ -1278,14 +1281,14 @@ namespace Photos [NullAllowed, Export ("progressHandler", ArgumentSemantic.Copy)] PHAssetImageProgressHandler ProgressHandler { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [Export ("version", ArgumentSemantic.Assign)] PHImageRequestOptionsVersion Version { get; set; } } - [iOS (9,1)] - [TV (10,0)] - [Mac (10,15)] + [iOS (9, 1)] + [TV (10, 0)] + [Mac (10, 15)] [Static] interface PHLivePhotoInfo { [Field ("PHLivePhotoInfoErrorKey")] @@ -1304,9 +1307,9 @@ namespace Photos delegate CIImage PHLivePhotoFrameProcessingBlock2 (IPHLivePhotoFrame frame, ref NSError error); #endif - [iOS (10,0)] - [TV (10,0)] - [Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NS_UNAVAILABLE interface PHLivePhotoEditingContext { @@ -1349,7 +1352,8 @@ namespace Photos void PrepareLivePhotoForPlayback (CGSize targetSize, [NullAllowed] NSDictionary options, Action handler); // the API existed earlier but the key needed to create the strong dictionary did not work - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Async] [Wrap ("_PrepareLivePhotoForPlayback (targetSize, options.GetDictionary (), handler)")] void PrepareLivePhotoForPlayback (CGSize targetSize, [NullAllowed] PHLivePhotoEditingOption options, Action handler); @@ -1367,7 +1371,8 @@ namespace Photos void SaveLivePhoto (PHContentEditingOutput output, [NullAllowed] NSDictionary options, Action handler); // the API existed earlier but the key needed to create the strong dictionary did not work - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Async] [Wrap ("_SaveLivePhoto (output, options.GetDictionary (), handler)")] void SaveLivePhoto (PHContentEditingOutput output, [NullAllowed] PHLivePhotoEditingOption options, Action handler); @@ -1376,11 +1381,11 @@ namespace Photos void Cancel (); } - interface IPHLivePhotoFrame {} + interface IPHLivePhotoFrame { } - [iOS (10,0)] - [TV (10,0)] - [Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (10, 12)] [Protocol] interface PHLivePhotoFrame { [Abstract] @@ -1400,25 +1405,27 @@ namespace Photos nfloat RenderScale { get; } } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,12)] - [Static][Internal] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 12)] + [Static] + [Internal] interface PHLivePhotoEditingOptionKeys { [Field ("PHLivePhotoShouldRenderAtPlaybackTime")] NSString ShouldRenderAtPlaybackTimeKey { get; } } - [iOS (11,0)] - [TV (11,0)] - [Mac (10,12)] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (10, 12)] [StrongDictionary ("PHLivePhotoEditingOptionKeys")] interface PHLivePhotoEditingOption { bool ShouldRenderAtPlaybackTime { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [NoMacCatalyst] [BaseType (typeof (PHAssetCollection))] interface PHProject { @@ -1431,8 +1438,9 @@ namespace Photos bool HasProjectPreview { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [NoMacCatalyst] [BaseType (typeof (PHChangeRequest))] interface PHProjectChangeRequest { @@ -1450,18 +1458,18 @@ namespace Photos [Export ("setKeyAsset:")] void SetKeyAsset ([NullAllowed] PHAsset keyAsset); - [Mac (10,14)] + [Mac (10, 14)] [Export ("setProjectPreviewImage:")] void SetProjectPreviewImage (NSImage previewImage); - [Mac (10,14)] + [Mac (10, 14)] [Export ("removeAssets:")] void RemoveAssets (PHAsset [] /*id*/ assets); //a collection of PHAsset objects } - [Mac (10,13)] - [TV (15,0)] - [iOS (15,0)] + [Mac (10, 13)] + [TV (15, 0)] + [iOS (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHCloudIdentifier : NSSecureCoding { @@ -1479,11 +1487,10 @@ namespace Photos NativeHandle Constructor (string stringValue); } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHCloudIdentifierMapping - { + interface PHCloudIdentifierMapping { [NullAllowed, Export ("cloudIdentifier")] PHCloudIdentifier CloudIdentifier { get; } @@ -1491,11 +1498,10 @@ namespace Photos NSError Error { get; } } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHLocalIdentifierMapping - { + interface PHLocalIdentifierMapping { [NullAllowed, Export ("localIdentifier")] string LocalIdentifier { get; } @@ -1503,11 +1509,10 @@ namespace Photos NSError Error { get; } } - [TV (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHPersistentChange - { + interface PHPersistentChange { [Export ("changeToken")] PHPersistentChangeToken ChangeToken { get; } @@ -1519,27 +1524,24 @@ namespace Photos delegate void PHPersistentChangeFetchResultEnumerator (PHPersistentChange change, ref bool stop); - [TV (16,0), Mac (13,0), iOS (16,0)] - [BaseType (typeof(NSObject))] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHPersistentChangeFetchResult - { + interface PHPersistentChangeFetchResult { [Export ("enumerateChangesWithBlock:")] void EnumerateChanges (PHPersistentChangeFetchResultEnumerator block); } - [TV (16,0), Mac (13,0), iOS (16,0)] - [BaseType (typeof(NSObject))] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHPersistentChangeToken : NSCopying, NSSecureCoding - { + interface PHPersistentChangeToken : NSCopying, NSSecureCoding { } - [TV (16,0), Mac (13,0), iOS (16,0)] - [BaseType (typeof(NSObject))] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PHPersistentObjectChangeDetails - { + interface PHPersistentObjectChangeDetails { [Export ("objectType")] PHObjectType ObjectType { get; } diff --git a/src/photosui.cs b/src/photosui.cs index 16a74fa4d3..e62fdcdc3b 100644 --- a/src/photosui.cs +++ b/src/photosui.cs @@ -27,7 +27,7 @@ namespace PhotosUI { [NoTV] [iOS (8, 0)] [Mac (10, 13)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Protocol] #if !NET && !TVOS && !MONOMAC // According to documentation you're supposed to implement this protocol in a UIViewController subclass, @@ -58,9 +58,9 @@ namespace PhotosUI { bool ShouldShowCancelConfirmation { get; } } - [TV (10,0)] - [iOS (9,1)] - [Mac (10,12)] + [TV (10, 0)] + [iOS (9, 1)] + [Mac (10, 12)] #if MONOMAC [BaseType (typeof (NSView))] #else @@ -122,13 +122,13 @@ namespace PhotosUI { NSView LivePhotoBadgeView { get; } } - [TV (10,0)] - [iOS (9,1)] - [Mac (10,12)] + [TV (10, 0)] + [iOS (9, 1)] + [Mac (10, 12)] [Protocol, Model] [BaseType (typeof (NSObject))] interface PHLivePhotoViewDelegate { - [TV (15,0), iOS (15,0), MacCatalyst (15,0), Mac (12,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0)] [Export ("livePhotoView:canBeginPlaybackWithStyle:")] bool CanBeginPlayback (PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle); @@ -138,20 +138,24 @@ namespace PhotosUI { [Export ("livePhotoView:didEndPlaybackWithStyle:")] void DidEndPlayback (PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle); - [TV (10,0), iOS (9,1), NoMac] + [TV (10, 0), iOS (9, 1), NoMac] [Export ("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:")] double GetExtraMinimumTouchDuration (PHLivePhotoView livePhotoView, UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle); } - [Mac (10,13)][NoiOS][NoTV][NoWatch] + [Mac (10, 13)] + [NoiOS] + [NoTV] + [NoWatch] [Static] interface PHProjectType { [Field ("PHProjectTypeUndefined")] NSString Undefined { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (NSExtensionContext))] interface PHProjectExtensionContext : NSSecureCoding, NSCopying { @@ -162,17 +166,18 @@ namespace PhotosUI { [Export ("project")] PHProject Project { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("showEditorForAsset:")] void ShowEditor (PHAsset asset); - [Mac (10,14)] + [Mac (10, 14)] [Export ("updatedProjectInfoFromProjectInfo:completion:")] NSProgress UpdatedProjectInfo ([NullAllowed] PHProjectInfo existingProjectInfo, Action completionHandler); } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (PHProjectElement))] interface PHProjectJournalEntryElement : NSSecureCoding { @@ -187,8 +192,9 @@ namespace PhotosUI { PHProjectTextElement TextElement { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (PHProjectElement))] interface PHProjectTextElement : NSSecureCoding { @@ -203,8 +209,9 @@ namespace PhotosUI { PHProjectTextElementType TextElementType { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [Protocol] interface PHProjectExtensionController { @@ -225,7 +232,7 @@ namespace PhotosUI { void FinishProject (Action completion); [Protected] - [Mac (10,14)] + [Mac (10, 14)] [Export ("typeDescriptionDataSourceForCategory:invalidator:")] IPHProjectTypeDescriptionDataSource GetTypeDescriptionDataSource (NSString category, IPHProjectTypeDescriptionInvalidator invalidator); @@ -233,8 +240,9 @@ namespace PhotosUI { IPHProjectTypeDescriptionDataSource GetTypeDescriptionDataSource (PHProjectCategory category, IPHProjectTypeDescriptionInvalidator invalidator); } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectTypeDescription : NSSecureCoding { @@ -252,26 +260,26 @@ namespace PhotosUI { UIImage Image { get; } [Export ("subtypeDescriptions", ArgumentSemantic.Copy)] - PHProjectTypeDescription[] SubtypeDescriptions { get; } + PHProjectTypeDescription [] SubtypeDescriptions { get; } [Export ("initWithProjectType:title:description:image:subtypeDescriptions:")] [DesignatedInitializer] - NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] string localizedDescription, [NullAllowed] UIImage image, PHProjectTypeDescription[] subtypeDescriptions); + NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] string localizedDescription, [NullAllowed] UIImage image, PHProjectTypeDescription [] subtypeDescriptions); [Export ("initWithProjectType:title:description:image:")] NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] string localizedDescription, [NullAllowed] UIImage image); - [Mac (10,14)] + [Mac (10, 14)] [Export ("initWithProjectType:title:attributedDescription:image:subtypeDescriptions:")] [DesignatedInitializer] - NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] NSAttributedString localizedAttributedDescription, [NullAllowed] UIImage image, PHProjectTypeDescription[] subtypeDescriptions); + NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] NSAttributedString localizedAttributedDescription, [NullAllowed] UIImage image, PHProjectTypeDescription [] subtypeDescriptions); - [Mac (10,14)] + [Mac (10, 14)] [Export ("initWithProjectType:title:attributedDescription:image:canProvideSubtypes:")] [DesignatedInitializer] NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] NSAttributedString localizedAttributedDescription, [NullAllowed] UIImage image, bool canProvideSubtypes); - [Mac (10,14)] + [Mac (10, 14)] [Export ("initWithProjectType:title:description:image:canProvideSubtypes:")] [DesignatedInitializer] NativeHandle Constructor (NSString projectType, string localizedTitle, [NullAllowed] string localizedDescription, [NullAllowed] UIImage image, bool canProvideSubtypes); @@ -285,8 +293,9 @@ namespace PhotosUI { NSAttributedString LocalizedAttributedDescription { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectRegionOfInterest : NSSecureCoding { @@ -305,8 +314,9 @@ namespace PhotosUI { double Quality { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectElement : NSSecureCoding { @@ -318,8 +328,9 @@ namespace PhotosUI { CGRect Placement { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [DisableDefaultCtor] [BaseType (typeof (PHProjectElement))] interface PHProjectAssetElement : NSSecureCoding { @@ -334,7 +345,7 @@ namespace PhotosUI { CGRect CropRect { get; } [Export ("regionsOfInterest")] - PHProjectRegionOfInterest[] RegionsOfInterest { get; } + PHProjectRegionOfInterest [] RegionsOfInterest { get; } [Mac (10, 14)] [Export ("horizontallyFlipped")] @@ -345,8 +356,9 @@ namespace PhotosUI { bool VerticallyFlipped { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectInfo : NSSecureCoding { @@ -358,7 +370,7 @@ namespace PhotosUI { NSString ProjectType { get; } [Export ("sections")] - PHProjectSection[] Sections { get; } + PHProjectSection [] Sections { get; } [Mac (10, 14)] [Export ("brandingEnabled")] @@ -377,14 +389,15 @@ namespace PhotosUI { string ThemeIdentifier { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectSection : NSSecureCoding { [Export ("sectionContents")] - PHProjectSectionContent[] SectionContents { get; } + PHProjectSectionContent [] SectionContents { get; } [Export ("sectionType")] PHProjectSectionType SectionType { get; } @@ -393,14 +406,15 @@ namespace PhotosUI { string Title { get; } } - [Mac (10,13)] - [NoiOS][NoTV] + [Mac (10, 13)] + [NoiOS] + [NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PHProjectSectionContent : NSSecureCoding { [Export ("elements")] - PHProjectElement[] Elements { get; } + PHProjectElement [] Elements { get; } [Export ("numberOfColumns")] nint NumberOfColumns { get; } @@ -409,19 +423,19 @@ namespace PhotosUI { double AspectRatio { get; } [Export ("cloudAssetIdentifiers")] - PHCloudIdentifier[] CloudAssetIdentifiers { get; } + PHCloudIdentifier [] CloudAssetIdentifiers { get; } [Mac (10, 14)] [NullAllowed, Export ("backgroundColor")] UIColor BackgroundColor { get; } } - [Mac (10,14)] - [NoiOS][NoTV] + [Mac (10, 14)] + [NoiOS] + [NoTV] [DisableDefaultCtor] - [BaseType (typeof(PHProjectElement))] - interface PHProjectMapElement : NSSecureCoding - { + [BaseType (typeof (PHProjectElement))] + interface PHProjectMapElement : NSSecureCoding { [Export ("mapType")] MKMapType MapType { get; } @@ -438,19 +452,19 @@ namespace PhotosUI { double Altitude { get; } [Export ("annotations", ArgumentSemantic.Copy)] - IMKAnnotation[] Annotations { get; } + IMKAnnotation [] Annotations { get; } } - interface IPHProjectTypeDescriptionDataSource {} - [Mac (10,14)] - [NoiOS][NoTV] + interface IPHProjectTypeDescriptionDataSource { } + [Mac (10, 14)] + [NoiOS] + [NoTV] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface PHProjectTypeDescriptionDataSource - { + [BaseType (typeof (NSObject))] + interface PHProjectTypeDescriptionDataSource { [Abstract] [Export ("subtypesForProjectType:")] - PHProjectTypeDescription[] GetSubtypes (NSString projectType); + PHProjectTypeDescription [] GetSubtypes (NSString projectType); [Abstract] [Export ("typeDescriptionForProjectType:")] @@ -466,12 +480,12 @@ namespace PhotosUI { void WillDiscardDataSource (); } - interface IPHProjectTypeDescriptionInvalidator {} - [Mac (10,14)] - [NoiOS][NoTV] + interface IPHProjectTypeDescriptionInvalidator { } + [Mac (10, 14)] + [NoiOS] + [NoTV] [Protocol] - interface PHProjectTypeDescriptionInvalidator - { + interface PHProjectTypeDescriptionInvalidator { [Abstract] [Export ("invalidateTypeDescriptionForProjectType:")] void InvalidateTypeDescription (NSString projectType); @@ -481,8 +495,9 @@ namespace PhotosUI { void InvalidateFooterTextForSubtypes (NSString projectType); } - [iOS (8,0)] - [NoMac][NoTV] + [iOS (8, 0)] + [NoMac] + [NoTV] [DisableDefaultCtor] [NoMacCatalyst] #if !NET // Can't apply Deprecated and Obsoleted to same element @@ -490,34 +505,31 @@ namespace PhotosUI { #endif [Obsoleted (PlatformName.iOS, 14, 0)] // Removed from headers completely [BaseType (typeof (NSExtensionContext))] - interface PHEditingExtensionContext - { + interface PHEditingExtensionContext { } - interface IPHPickerViewControllerDelegate {} + interface IPHPickerViewControllerDelegate { } - [NoWatch, NoTV, Mac (13,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface PHPickerViewControllerDelegate - { + [BaseType (typeof (NSObject))] + interface PHPickerViewControllerDelegate { [Abstract] [Export ("picker:didFinishPicking:")] - void DidFinishPicking (PHPickerViewController picker, PHPickerResult[] results); + void DidFinishPicking (PHPickerViewController picker, PHPickerResult [] results); } - [NoWatch, NoTV, Mac (13,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIViewController))] [Advice ("This type should not be subclassed.")] [DisableDefaultCtor] - interface PHPickerViewController - { + interface PHPickerViewController { [Export ("configuration", ArgumentSemantic.Copy)] PHPickerConfiguration Configuration { get; } @@ -531,25 +543,24 @@ namespace PhotosUI { [DesignatedInitializer] NativeHandle Constructor (PHPickerConfiguration configuration); - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [Export ("deselectAssetsWithIdentifiers:")] - void DeselectAssets (string[] identifiers); + void DeselectAssets (string [] identifiers); - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [Export ("moveAssetWithIdentifier:afterAssetWithIdentifier:")] void MoveAsset (string identifier, [NullAllowed] string afterIdentifier); } - [NoWatch, NoTV, Mac (13,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [Advice ("This type should not be subclassed.")] - interface PHPickerConfiguration : NSCopying - { + interface PHPickerConfiguration : NSCopying { [Export ("preferredAssetRepresentationMode", ArgumentSemantic.Assign)] PHPickerConfigurationAssetRepresentationMode PreferredAssetRepresentationMode { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("selection", ArgumentSemantic.Assign)] PHPickerConfigurationSelection Selection { get; set; } @@ -562,18 +573,17 @@ namespace PhotosUI { [Export ("initWithPhotoLibrary:")] NativeHandle Constructor (PHPhotoLibrary photoLibrary); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("preselectedAssetIdentifiers", ArgumentSemantic.Copy)] - string[] PreselectedAssetIdentifiers { get; set; } + string [] PreselectedAssetIdentifiers { get; set; } } - [NoWatch, NoTV, Mac (13,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [Advice ("This type should not be subclassed.")] [DisableDefaultCtor] - interface PHPickerFilter : NSCopying - { + interface PHPickerFilter : NSCopying { [Static] [Export ("imagesFilter")] PHPickerFilter ImagesFilter { get; } @@ -588,7 +598,7 @@ namespace PhotosUI { [Static] [Export ("anyFilterMatchingSubfilters:")] - PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter[] subfilters); + PHPickerFilter GetAnyFilterMatchingSubfilters (PHPickerFilter [] subfilters); [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [Static] @@ -630,29 +640,28 @@ namespace PhotosUI { [Export ("timelapseVideosFilter")] PHPickerFilter TimelapseVideosFilter { get; } - [NoWatch, NoTV, Mac (13,0), iOS (15,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (15, 0)] [Static] [Export ("playbackStyleFilter:")] PHPickerFilter GetPlaybackStyleFilter (PHAssetPlaybackStyle playbackStyle); - [NoWatch, NoTV, Mac (13,0), iOS (15,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (15, 0)] [Static] [Export ("allFilterMatchingSubfilters:")] - PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter[] subfilters); + PHPickerFilter GetAllFilterMatchingSubfilters (PHPickerFilter [] subfilters); - [NoWatch, NoTV, Mac (13,0), iOS (15,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (15, 0)] [Static] [Export ("notFilterOfSubfilter:")] PHPickerFilter GetNotFilterOfSubfilter (PHPickerFilter subfilter); } - [NoWatch, NoTV, Mac (13,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [Advice ("This type should not be subclassed.")] [DisableDefaultCtor] - interface PHPickerResult - { + interface PHPickerResult { [Export ("itemProvider")] NSItemProvider ItemProvider { get; } @@ -660,24 +669,22 @@ namespace PhotosUI { string AssetIdentifier { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Category] [BaseType (typeof (PHPhotoLibrary))] - interface PHPhotoLibrary_PhotosUISupport - { + interface PHPhotoLibrary_PhotosUISupport { [Export ("presentLimitedLibraryPickerFromViewController:")] void PresentLimitedLibraryPicker (UIViewController controller); [Async] - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("presentLimitedLibraryPickerFromViewController:completionHandler:")] - void PresentLimitedLibraryPicker (UIViewController controller, Action completionHandler); + void PresentLimitedLibraryPicker (UIViewController controller, Action completionHandler); } - [NoWatch, NoTV, Mac (13,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum PHPickerConfigurationSelection : long - { + public enum PHPickerConfigurationSelection : long { Default = 0, Ordered = 1, } diff --git a/src/pushkit.cs b/src/pushkit.cs index e0a1f69637..67d4a08a75 100644 --- a/src/pushkit.cs +++ b/src/pushkit.cs @@ -7,11 +7,10 @@ using System; using NativeHandle = System.IntPtr; #endif -namespace PushKit -{ - [Watch (6,0)] - [Mac (10,15)] - [iOS (8,0)] +namespace PushKit { + [Watch (6, 0)] + [Mac (10, 15)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPushCredentials { @@ -22,9 +21,9 @@ namespace PushKit NSData Token { get; } } - [Watch (6,0)] - [Mac (10,15)] - [iOS (8,0)] + [Watch (6, 0)] + [Mac (10, 15)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPushPayload { @@ -35,9 +34,9 @@ namespace PushKit NSDictionary DictionaryPayload { get; } } - [Watch (6,0)] - [Mac (10,15)] - [iOS (8,0)] + [Watch (6, 0)] + [Mac (10, 15)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface PKPushRegistry { @@ -45,10 +44,12 @@ namespace PushKit [Protocolize] PKPushRegistryDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } - [Export ("desiredPushTypes", ArgumentSemantic.Copy)][NullAllowed] + [Export ("desiredPushTypes", ArgumentSemantic.Copy)] + [NullAllowed] NSSet DesiredPushTypes { get; set; } [Export ("pushTokenForType:")] @@ -59,35 +60,35 @@ namespace PushKit [Export ("initWithQueue:")] NativeHandle Constructor ([NullAllowed] DispatchQueue queue); } - - [iOS (8,0)] + + [iOS (8, 0)] [Static] interface PKPushType { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (9,0)] + [Watch (9, 0)] [NoMac] [Field ("PKPushTypeVoIP")] NSString Voip { get; } - [iOS (9,0)] - [Deprecated (PlatformName.iOS, 13,0, message: "Use directly from watchOS instead.")] - [Watch (6,0)] + [iOS (9, 0)] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use directly from watchOS instead.")] + [Watch (6, 0)] [NoMac] [NoMacCatalyst] [Field ("PKPushTypeComplication")] NSString Complication { get; } - [iOS (11,0)] + [iOS (11, 0)] [NoWatch] - [Mac (10,15)] + [Mac (10, 15)] [Field ("PKPushTypeFileProvider")] NSString FileProvider { get; } } - [iOS (8,0)] - [Watch (6,0)] - [Mac (10,15)] + [iOS (8, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Model] [Protocol] [BaseType (typeof (NSObject))] @@ -101,13 +102,13 @@ namespace PushKit #if !NET [Abstract] // now optional in iOS 11 #endif - [Deprecated (PlatformName.iOS, 11,0, message: "Use the 'DidReceiveIncomingPushWithPayload' overload accepting an 'Action' argument instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use the 'DidReceiveIncomingPushWithPayload' overload accepting an 'Action' argument instead.")] [NoMacCatalyst] [Export ("pushRegistry:didReceiveIncomingPushWithPayload:forType:"), EventArgs ("PKPushRegistryRecieved"), EventName ("IncomingPushReceived")] void DidReceiveIncomingPush (PKPushRegistry registry, PKPushPayload payload, string type); - [iOS (11,0)] - [MacCatalyst (10,13)] + [iOS (11, 0)] + [MacCatalyst (10, 13)] [Export ("pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:")] void DidReceiveIncomingPush (PKPushRegistry registry, PKPushPayload payload, string type, Action completion); diff --git a/src/pushtotalk.cs b/src/pushtotalk.cs index fc7dfb25d3..8da0168965 100644 --- a/src/pushtotalk.cs +++ b/src/pushtotalk.cs @@ -21,14 +21,14 @@ using NativeHandle = System.IntPtr; namespace PushToTalk { - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum PTChannelJoinReason : long { DeveloperRequest = 0, ChannelRestoration = 1, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum PTChannelLeaveReason : long { Unknown = 0, @@ -37,7 +37,7 @@ namespace PushToTalk { SystemPolicy = 3, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum PTChannelTransmitRequestSource : long { Unknown = 0, @@ -46,7 +46,7 @@ namespace PushToTalk { HandsfreeButton = 3, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum PTServiceStatus : long { Ready, @@ -54,7 +54,7 @@ namespace PushToTalk { Unavailable, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum PTTransmissionMode : long { FullDuplex, @@ -62,11 +62,10 @@ namespace PushToTalk { ListenOnly, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] [ErrorDomain ("PTInstantiationErrorDomain")] - public enum PTInstantiationError : long - { + public enum PTInstantiationError : long { Unknown = 0, InvalidPlatform = 1, MissingBackgroundMode = 2, @@ -75,11 +74,10 @@ namespace PushToTalk { InstantiationAlreadyInProgress = 5, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Native] [ErrorDomain ("PTChannelErrorDomain")] - public enum PTChannelError : long - { + public enum PTChannelError : long { Unknown = 0, ChannelNotFound = 1, ChannelLimitReached = 2, @@ -92,11 +90,10 @@ namespace PushToTalk { TransmissionNotAllowed = 9, } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PTParticipant - { + interface PTParticipant { [Export ("name")] string Name { get; } @@ -108,11 +105,10 @@ namespace PushToTalk { NativeHandle Constructor (string name, [NullAllowed] UIImage image); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PTPushResult - { + interface PTPushResult { [Static] [Export ("leaveChannelPushResult")] PTPushResult LeaveChannelPushResult { get; } @@ -122,11 +118,10 @@ namespace PushToTalk { PTPushResult Create (PTParticipant participant); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PTChannelDescriptor - { + interface PTChannelDescriptor { [Export ("initWithName:image:")] [DesignatedInitializer] NativeHandle Constructor (string name, [NullAllowed] UIImage image); @@ -138,13 +133,12 @@ namespace PushToTalk { UIImage Image { get; } } - interface IPTChannelManagerDelegate {} + interface IPTChannelManagerDelegate { } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] [BaseType (typeof (NSObject))] - interface PTChannelManagerDelegate - { + interface PTChannelManagerDelegate { [Abstract] [Export ("channelManager:didJoinChannelWithUUID:reason:")] void DidJoinChannel (PTChannelManager channelManager, NSUuid channelUuid, PTChannelJoinReason reason); @@ -192,23 +186,21 @@ namespace PushToTalk { void FailedToStopTransmittingInChannel (PTChannelManager channelManager, NSUuid channelUuid, NSError error); } - interface IPTChannelRestorationDelegate {} + interface IPTChannelRestorationDelegate { } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] [BaseType (typeof (NSObject))] - interface PTChannelRestorationDelegate - { + interface PTChannelRestorationDelegate { [Abstract] [Export ("channelDescriptorForRestoredChannelUUID:")] PTChannelDescriptor Create (NSUuid channelUuid); } - [NoWatch, NoTV, NoMac, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, NoMac, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface PTChannelManager - { + interface PTChannelManager { [Async] [Static] [Export ("channelManagerWithDelegate:restorationDelegate:completionHandler:")] diff --git a/src/quartzcomposer.cs b/src/quartzcomposer.cs index f463fbc728..58840d6fa6 100644 --- a/src/quartzcomposer.cs +++ b/src/quartzcomposer.cs @@ -38,7 +38,7 @@ using NativeHandle = System.IntPtr; namespace QuartzComposer { - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [BaseType (typeof (NSObject))] interface QCComposition : NSCopying { [Static] @@ -56,14 +56,14 @@ namespace QuartzComposer { NSDictionary Attributes { get; } [Export ("inputKeys")] - string[] InputKeys { get; } + string [] InputKeys { get; } [Export ("outputKeys")] - string[] OutputKeys { get; } + string [] OutputKeys { get; } [Export ("identifier")] string Identifier { get; } - + [Field ("QCCompositionAttributeNameKey")] NSString AttributeNameKey { get; } @@ -72,25 +72,25 @@ namespace QuartzComposer { [Field ("QCCompositionAttributeCopyrightKey")] NSString AttributeCopyrightKey { get; } - + [Field ("QCCompositionAttributeBuiltInKey")] NSString AttributeBuiltInKey { get; } - + [Field ("QCCompositionAttributeIsTimeDependentKey")] NSString AttributeIsTimeDependentKey { get; } - + [Field ("QCCompositionAttributeHasConsumersKey")] NSString AttributeHasConsumersKey { get; } - + [Field ("QCCompositionAttributeCategoryKey")] NSString AttributeCategoryKey { get; } - + [Field ("QCCompositionCategoryDistortion")] NSString CategoryDistortion { get; } - + [Field ("QCCompositionCategoryStylize")] NSString CategoryStylize { get; } - + [Field ("QCCompositionCategoryUtility")] NSString CategoryUtility { get; } @@ -103,11 +103,11 @@ namespace QuartzComposer { [Field ("QCCompositionInputDestinationImageKey")] NSString InputDestinationImageKey { get; } - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [Field ("QCCompositionInputRSSFeedURLKey")] NSString InputRSSFeedURLKey { get; } - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [Field ("QCCompositionInputRSSArticleDurationKey")] NSString InputRSSArticleDurationKey { get; } @@ -165,7 +165,7 @@ namespace QuartzComposer { [Field ("QCCompositionProtocolScreenSaver")] NSString ProtocolScreenSaver { get; } - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [Field ("QCCompositionProtocolRSSVisualizer")] NSString ProtocolRSSVisualizer { get; } @@ -174,11 +174,11 @@ namespace QuartzComposer { } - [Deprecated (PlatformName.MacOSX, 10,14, message: "Use 'Metal' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")] [BaseType (typeof (CAOpenGLLayer))] [DisableDefaultCtor] // return invalid handle interface QCCompositionLayer { - + [Static] [Export ("compositionLayerWithFile:")] QCCompositionLayer Create (string path); @@ -198,7 +198,7 @@ namespace QuartzComposer { } - [Deprecated (PlatformName.MacOSX, 10,15)] + [Deprecated (PlatformName.MacOSX, 10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // crash when used (e.g. description) meant to be used thru sharedCompositionRepository interface QCCompositionRepository { @@ -210,10 +210,10 @@ namespace QuartzComposer { QCComposition GetComposition (string identifier); [Export ("compositionsWithProtocols:andAttributes:")] - QCComposition[] GetCompositions (NSArray protocols, NSDictionary attributes); + QCComposition [] GetCompositions (NSArray protocols, NSDictionary attributes); [Export ("allCompositions")] - QCComposition[] AllCompositions { get; } + QCComposition [] AllCompositions { get; } } diff --git a/src/quicklook.cs b/src/quicklook.cs index 3e0574011a..73aa1f4014 100644 --- a/src/quicklook.cs +++ b/src/quicklook.cs @@ -48,7 +48,7 @@ using NativeHandle = System.IntPtr; namespace QuickLook { #if !MONOMAC [NoMac] - [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events=new Type [] { typeof (QLPreviewControllerDelegate)})] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (QLPreviewControllerDelegate) })] interface QLPreviewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -56,10 +56,10 @@ namespace QuickLook { [Export ("dataSource", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDataSource { get; set; } - + [Wrap ("WeakDataSource")] [Protocolize] - QLPreviewControllerDataSource DataSource { get; set; } + QLPreviewControllerDataSource DataSource { get; set; } [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } @@ -67,14 +67,14 @@ namespace QuickLook { [Wrap ("WeakDelegate")] [Protocolize] QLPreviewControllerDelegate Delegate { get; set; } - + [Export ("currentPreviewItemIndex")] - nint CurrentPreviewItemIndex { get; set; } + nint CurrentPreviewItemIndex { get; set; } [Export ("currentPreviewItem")] [Protocolize] [NullAllowed] - QLPreviewItem CurrentPreviewItem { get; } + QLPreviewItem CurrentPreviewItem { get; } [Static] [Export ("canPreviewItem:")] @@ -98,12 +98,12 @@ namespace QuickLook { [Abstract] [Export ("previewController:previewItemAtIndex:")] - [return:Protocolize] + [return: Protocolize] QLPreviewItem GetPreviewItem (QLPreviewController controller, nint index); } [NoMac] - [iOS (13,0)] + [iOS (13, 0)] [Native] public enum QLPreviewItemEditingMode : long { Disabled = 0, @@ -127,35 +127,35 @@ namespace QuickLook { #if !MONOMAC // UIView and UIImage do not exists in MonoMac - + [Export ("previewController:frameForPreviewItem:inSourceView:"), DelegateName ("QLFrame"), DefaultValue (typeof (CGRect))] CGRect FrameForPreviewItem (QLPreviewController controller, [Protocolize] QLPreviewItem item, ref UIView view); - + [Export ("previewController:transitionImageForPreviewItem:contentRect:"), DelegateName ("QLTransition"), DefaultValue (null)] [return: NullAllowed] UIImage TransitionImageForPreviewItem (QLPreviewController controller, [Protocolize] QLPreviewItem item, CGRect contentRect); - [iOS (10,0)] + [iOS (10, 0)] [Export ("previewController:transitionViewForPreviewItem:"), DelegateName ("QLTransitionView"), DefaultValue (null)] [return: NullAllowed] UIView TransitionViewForPreviewItem (QLPreviewController controller, IQLPreviewItem item); - [iOS (13,0)] - [Export ("previewController:editingModeForPreviewItem:"), DelegateName("QLEditingMode"), DefaultValue ("QLPreviewItemEditingMode.Disabled")] + [iOS (13, 0)] + [Export ("previewController:editingModeForPreviewItem:"), DelegateName ("QLEditingMode"), DefaultValue ("QLPreviewItemEditingMode.Disabled")] QLPreviewItemEditingMode GetEditingMode (QLPreviewController controller, IQLPreviewItem previewItem); - [iOS (13,0)] + [iOS (13, 0)] [Export ("previewController:didUpdateContentsOfPreviewItem:"), EventArgs ("QLPreviewControllerDelegateDidUpdate")] void DidUpdateContents (QLPreviewController controller, IQLPreviewItem previewItem); - [iOS (13,0)] + [iOS (13, 0)] [Export ("previewController:didSaveEditedCopyOfPreviewItem:atURL:"), EventArgs ("QLPreviewControllerDelegateDidSave")] void DidSaveEditedCopy (QLPreviewController controller, IQLPreviewItem previewItem, NSUrl modifiedContentsUrl); #endif } - interface IQLPreviewItem {} + interface IQLPreviewItem { } [NoMac] [BaseType (typeof (NSObject))] @@ -186,10 +186,9 @@ namespace QuickLook { delegate CGPDFDocument QLPreviewReplyUIDocumentCreationHandler (QLPreviewReply reply, out NSError error); [NoMac] - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface QLPreviewReply - { + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface QLPreviewReply { [Export ("stringEncoding")] NSStringEncoding StringEncoding { get; set; } @@ -214,11 +213,10 @@ namespace QuickLook { } [NoMac] - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface QLPreviewReplyAttachment - { + interface QLPreviewReplyAttachment { [Export ("data")] NSData Data { get; } @@ -230,41 +228,39 @@ namespace QuickLook { } [NoMac] - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface QLFilePreviewRequest - { + interface QLFilePreviewRequest { [Export ("fileURL")] NSUrl FileUrl { get; } } [NoMac] - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface QLPreviewProvider : NSExtensionRequestHandling - { + [BaseType (typeof (NSObject))] + interface QLPreviewProvider : NSExtensionRequestHandling { } - [NoWatch][NoTV][NoMac] // availability not mentioned in the header files - [iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface QLPreviewSceneOptions - { + [NoWatch] + [NoTV] + [NoMac] // availability not mentioned in the header files + [iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface QLPreviewSceneOptions { [Export ("initialPreviewIndex")] nint InitialPreviewIndex { get; set; } } [NoMac] - [iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(UIWindowSceneActivationConfiguration))] - interface QLPreviewSceneActivationConfiguration - { + [iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (UIWindowSceneActivationConfiguration))] + interface QLPreviewSceneActivationConfiguration { [Export ("initWithItemsAtURLs:options:")] [DesignatedInitializer] - NativeHandle Constructor (NSUrl[] urls, [NullAllowed] QLPreviewSceneOptions options); + NativeHandle Constructor (NSUrl [] urls, [NullAllowed] QLPreviewSceneOptions options); [Export ("initWithUserActivity:")] [DesignatedInitializer] @@ -272,7 +268,7 @@ namespace QuickLook { } [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface QLPreviewingController { [Export ("preparePreviewOfSearchableItemWithIdentifier:queryString:completionHandler:")] @@ -281,7 +277,7 @@ namespace QuickLook { [Export ("preparePreviewOfFileAtURL:completionHandler:")] void PreparePreviewOfFile (NSUrl url, Action handler); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("providePreviewForFileRequest:completionHandler:")] void ProvidePreview (QLFilePreviewRequest request, Action handler); } diff --git a/src/quicklookUI.cs b/src/quicklookUI.cs index 3b5987bdcd..c20a702ac5 100644 --- a/src/quicklookUI.cs +++ b/src/quicklookUI.cs @@ -28,10 +28,10 @@ namespace QuickLookUI { [Export ("previewPanel:previewItemAtIndex:")] [Abstract] - [return:Protocolize] + [return: Protocolize] QLPreviewItem PreviewItemAtIndex (QLPreviewPanel panel, nint index); } - + [BaseType (typeof (NSObject))] [Protocol, Model] interface QLPreviewPanelDelegate : NSWindowDelegate { @@ -44,8 +44,8 @@ namespace QuickLookUI { [Export ("previewPanel:transitionImageForPreviewItem:contentRect:")] NSObject TransitionImageForPreviewItem (QLPreviewPanel panel, [Protocolize] QLPreviewItem item, CGRect contentRect); } - - interface IQLPreviewItem {} + + interface IQLPreviewItem { } [Protocol, Model] [BaseType (typeof (NSObject))] @@ -66,7 +66,7 @@ namespace QuickLookUI { [Export ("previewItemDisplayState")] NSObject PreviewItemDisplayState { get; } } - + [Category] [BaseType (typeof (NSObject))] interface QLPreviewPanelController { @@ -85,13 +85,15 @@ namespace QuickLookUI { interface QLPreviewPanel { [Export ("currentController")] NSObject CurrentController { get; } - - [Export ("dataSource", ArgumentSemantic.Assign)][NullAllowed] - NSObject WeakDataSource { get; set; } - - [Wrap ("WeakDataSource")][NullAllowed] + + [Export ("dataSource", ArgumentSemantic.Assign)] + [NullAllowed] + NSObject WeakDataSource { get; set; } + + [Wrap ("WeakDataSource")] + [NullAllowed] [Protocolize] - QLPreviewPanelDataSource DataSource { get; set; } + QLPreviewPanelDataSource DataSource { get; set; } [Export ("currentPreviewItemIndex")] nint CurrentPreviewItemIndex { get; set; } @@ -103,10 +105,12 @@ namespace QuickLookUI { [Export ("displayState", ArgumentSemantic.Retain)] NSObject DisplayState { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][NullAllowed] + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] QLPreviewPanelDelegate Delegate { get; set; } @@ -130,11 +134,11 @@ namespace QuickLookUI { // @required - (BOOL)enterFullScreenMode:(NSScreen *)screen withOptions:(NSDictionary *)options; [Export ("enterFullScreenMode:withOptions:")] - bool EnterFullScreenMode ([NullAllowed]NSScreen screen, [NullAllowed]NSDictionary options); + bool EnterFullScreenMode ([NullAllowed] NSScreen screen, [NullAllowed] NSDictionary options); // @required - (void)exitFullScreenModeWithOptions:(NSDictionary *)options; [Export ("exitFullScreenModeWithOptions:")] - void ExitFullScreenModeWithOptions ([NullAllowed]NSDictionary options); + void ExitFullScreenModeWithOptions ([NullAllowed] NSDictionary options); } [BaseType (typeof (NSView))] // Mac 10.6 @@ -165,7 +169,7 @@ namespace QuickLookUI { bool Autostarts { get; set; } } - [Mac (10,13)] + [Mac (10, 13)] [Protocol] interface QLPreviewingController { #if !NET @@ -174,36 +178,33 @@ namespace QuickLookUI { [Export ("preparePreviewOfSearchableItemWithIdentifier:queryString:completionHandler:")] void PreparePreviewOfSearchableItem (string identifier, string queryString, Action ItemLoadingHandler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("preparePreviewOfFileAtURL:completionHandler:")] void PreparePreviewOfFile (NSUrl url, Action completionHandler); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0)] [Export ("providePreviewForFileRequest:completionHandler:")] void ProvidePreview (QLFilePreviewRequest request, Action handler); } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface QLFilePreviewRequest - { + interface QLFilePreviewRequest { [Export ("fileURL")] NSUrl FileUrl { get; } } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [DisableDefaultCtor] - [BaseType (typeof(NSObject))] - interface QLPreviewProvider : NSExtensionRequestHandling - { + [BaseType (typeof (NSObject))] + interface QLPreviewProvider : NSExtensionRequestHandling { } - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface QLPreviewReplyAttachment - { + interface QLPreviewReplyAttachment { [Export ("data")] NSData Data { get; } @@ -218,10 +219,9 @@ namespace QuickLookUI { delegate NSData QLPreviewReplyDataCreationHandler (QLPreviewReply reply, out NSError error); delegate CGPDFDocument QLPreviewReplyUIDocumentCreationHandler (QLPreviewReply reply, out NSError error); - [NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(NSObject))] - interface QLPreviewReply - { + [NoWatch, NoTV, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface QLPreviewReply { [Export ("stringEncoding")] NSStringEncoding StringEncoding { get; set; } diff --git a/src/quicklookthumbnailing.cs b/src/quicklookthumbnailing.cs index 537d22bb15..770572f630 100644 --- a/src/quicklookthumbnailing.cs +++ b/src/quicklookthumbnailing.cs @@ -21,7 +21,7 @@ using NativeHandle = System.IntPtr; namespace QuickLookThumbnailing { - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [Native] [ErrorDomain ("QLThumbnailErrorDomain")] enum QLThumbnailError : long { @@ -33,7 +33,7 @@ namespace QuickLookThumbnailing { RequestCancelled, } - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [Flags] [Native] enum QLThumbnailGenerationRequestRepresentationTypes : ulong { @@ -44,7 +44,7 @@ namespace QuickLookThumbnailing { All = UInt64.MaxValue, } - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [Native] public enum QLThumbnailRepresentationType : long { Icon = 0, @@ -52,7 +52,7 @@ namespace QuickLookThumbnailing { Thumbnail = 2, } - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface QLThumbnailGenerator { @@ -77,7 +77,7 @@ namespace QuickLookThumbnailing { void SaveBestRepresentation (QLThumbnailGenerationRequest request, NSUrl fileUrl, string contentType, Action completionHandler); } - [Mac (10,15), iOS (13,0)] + [Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface QLThumbnailGenerationRequest : NSCopying, NSSecureCoding { @@ -100,12 +100,13 @@ namespace QuickLookThumbnailing { [Export ("representationTypes")] QLThumbnailGenerationRequestRepresentationTypes RepresentationTypes { get; } - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [NullAllowed, Export ("contentType", ArgumentSemantic.Copy)] UTType ContentType { get; set; } } - [Mac (10,15), iOS (13,0), MacCatalyst (13,0)] + [Mac (10, 15), iOS (13, 0), MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] interface QLThumbnailRepresentation { @@ -135,8 +136,8 @@ namespace QuickLook { namespace QuickLookThumbnailing { #endif - [Mac (10,15)] - [iOS (11,0)] + [Mac (10, 15)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] interface QLThumbnailProvider { [Export ("provideThumbnailForFileRequest:completionHandler:")] @@ -144,8 +145,8 @@ namespace QuickLookThumbnailing { } [ThreadSafe] // Members get called inside 'QLThumbnailProvider.ProvideThumbnail' which runs on a background thread. - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface QLThumbnailReply { @@ -168,8 +169,8 @@ namespace QuickLookThumbnailing { } [ThreadSafe] - [iOS (11,0)] - [Mac (10,15)] + [iOS (11, 0)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] interface QLFileThumbnailRequest { [Export ("maximumSize")] diff --git a/src/replaykit.cs b/src/replaykit.cs index e96d46bf4f..ad8e571163 100644 --- a/src/replaykit.cs +++ b/src/replaykit.cs @@ -29,16 +29,17 @@ using NativeHandle = System.IntPtr; namespace ReplayKit { - [iOS (9,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (11, 0)] [BaseType (typeof (UIViewController))] interface RPPreviewViewController { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - [Export ("previewControllerDelegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("previewControllerDelegate", ArgumentSemantic.Weak)] + [NullAllowed] IRPPreviewViewControllerDelegate PreviewControllerDelegate { get; set; } [NoiOS] @@ -49,9 +50,9 @@ namespace ReplayKit { interface IRPPreviewViewControllerDelegate { } - [iOS (9,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface RPPreviewViewControllerDelegate { @@ -64,9 +65,9 @@ namespace ReplayKit { void DidFinish (RPPreviewViewController previewController, NSSet activityTypes); } - [iOS (9,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] #if NET || MONOMAC @@ -84,7 +85,7 @@ namespace ReplayKit { [Export ("startRecordingWithMicrophoneEnabled:handler:")] void StartRecording (bool microphoneEnabled, [NullAllowed] Action handler); - [iOS (10,0)] + [iOS (10, 0)] [Async] [Export ("startRecordingWithHandler:")] void StartRecording ([NullAllowed] Action handler); @@ -97,7 +98,8 @@ namespace ReplayKit { [Export ("discardRecordingWithHandler:")] void DiscardRecording (Action handler); - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] IRPScreenRecorderDelegate Delegate { get; set; } [Export ("recording", ArgumentSemantic.Assign)] @@ -106,73 +108,78 @@ namespace ReplayKit { [NoTV] [Export ("microphoneEnabled", ArgumentSemantic.Assign)] bool MicrophoneEnabled { - [Bind ("isMicrophoneEnabled")] get; - [iOS (10,0)] set; + [Bind ("isMicrophoneEnabled")] + get; + [iOS (10, 0)] + set; } [Export ("available", ArgumentSemantic.Assign)] bool Available { [Bind ("isAvailable")] get; } - [NoTV, iOS (10,0)] + [NoTV, iOS (10, 0)] [Export ("cameraEnabled")] bool CameraEnabled { [Bind ("isCameraEnabled")] get; set; } - [NoTV, iOS (10,0)] + [NoTV, iOS (10, 0)] [NullAllowed, Export ("cameraPreviewView")] UIView CameraPreviewView { get; } - [NoTV][iOS (11,0)] + [NoTV] + [iOS (11, 0)] [Export ("cameraPosition", ArgumentSemantic.Assign)] RPCameraPosition CameraPosition { get; set; } - [TV (11,0)][iOS (11,0)] + [TV (11, 0)] + [iOS (11, 0)] [Async] [Export ("startCaptureWithHandler:completionHandler:")] void StartCapture ([NullAllowed] Action captureHandler, [NullAllowed] Action completionHandler); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Async] [Export ("stopCaptureWithHandler:")] void StopCapture ([NullAllowed] Action handler); - [Introduced (PlatformName.MacCatalyst, 14,0)] - [TV (14,0), iOS (14,0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] + [TV (14, 0), iOS (14, 0)] [Async] [Export ("stopRecordingWithOutputURL:completionHandler:")] void StopRecording (NSUrl url, [NullAllowed] Action completionHandler); [Async] - [TV (15,4), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 4), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("exportClipToURL:duration:completionHandler:")] void ExportClip (NSUrl url, double duration, [NullAllowed] Action completionHandler); [Async] - [TV (15,4), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 4), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("startClipBufferingWithCompletionHandler:")] void StartClipBuffering ([NullAllowed] Action completionHandler); [Async] - [TV (15,4), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 4), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("stopClipBufferingWithCompletionHandler:")] void StopClipBuffering ([NullAllowed] Action completionHandler); } interface IRPScreenRecorderDelegate { } - [iOS (9,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface RPScreenRecorderDelegate { - [Deprecated (PlatformName.TvOS, 10,0, message: "Use 'DidStopRecording(RPScreenRecorder,RPPreviewViewController,NSError)' instead.")] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'DidStopRecording(RPScreenRecorder,RPPreviewViewController,NSError)' instead.")] + [Deprecated (PlatformName.TvOS, 10, 0, message: "Use 'DidStopRecording(RPScreenRecorder,RPPreviewViewController,NSError)' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'DidStopRecording(RPScreenRecorder,RPPreviewViewController,NSError)' instead.")] [NoMac] [Export ("screenRecorder:didStopRecordingWithError:previewViewController:")] void DidStopRecording (RPScreenRecorder screenRecorder, NSError error, [NullAllowed] RPPreviewViewController previewViewController); - [TV (11,0)][iOS (11,0)] + [TV (11, 0)] + [iOS (11, 0)] [Export ("screenRecorder:didStopRecordingWithPreviewViewController:error:")] void DidStopRecording (RPScreenRecorder screenRecorder, [NullAllowed] RPPreviewViewController previewViewController, [NullAllowed] NSError error); @@ -180,8 +187,8 @@ namespace ReplayKit { void DidChangeAvailability (RPScreenRecorder screenRecorder); } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [NoMac] [BaseType (typeof (UIViewController))] interface RPBroadcastActivityViewController { @@ -198,7 +205,7 @@ namespace ReplayKit { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IRPBroadcastActivityViewControllerDelegate Delegate { get; set; } - [iOS (11,0)] + [iOS (11, 0)] [NoTV] [Static] [Async] @@ -206,10 +213,10 @@ namespace ReplayKit { void LoadBroadcastActivityViewController ([NullAllowed] string preferredExtension, Action handler); } - interface IRPBroadcastActivityViewControllerDelegate {} + interface IRPBroadcastActivityViewControllerDelegate { } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [NoMac] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -219,9 +226,9 @@ namespace ReplayKit { void DidFinish (RPBroadcastActivityViewController broadcastActivityViewController, [NullAllowed] RPBroadcastController broadcastController, [NullAllowed] NSError error); } - [iOS (10,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface RPBroadcastController { [Export ("broadcasting")] @@ -239,8 +246,8 @@ namespace ReplayKit { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] IRPBroadcastControllerDelegate Delegate { get; set; } - [Deprecated (PlatformName.TvOS, 11,0)] - [Deprecated (PlatformName.iOS, 11,0)] + [Deprecated (PlatformName.TvOS, 11, 0)] + [Deprecated (PlatformName.iOS, 11, 0)] [NoMac] [Export ("broadcastExtensionBundleID")] [NullAllowed] @@ -261,12 +268,12 @@ namespace ReplayKit { void FinishBroadcast (Action handler); } - interface IRPBroadcastControllerDelegate {} + interface IRPBroadcastControllerDelegate { } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface RPBroadcastControllerDelegate { [Export ("broadcastController:didFinishWithError:")] void DidFinish (RPBroadcastController broadcastController, [NullAllowed] NSError error); @@ -274,15 +281,15 @@ namespace ReplayKit { [Export ("broadcastController:didUpdateServiceInfo:")] void DidUpdateServiceInfo (RPBroadcastController broadcastController, NSDictionary serviceInfo); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("broadcastController:didUpdateBroadcastURL:")] void DidUpdateBroadcastUrl (RPBroadcastController broadcastController, NSUrl broadcastUrl); } - [iOS (10,0)] - [TV (10,0)] - [Deprecated (PlatformName.TvOS, 11,0)] - [Deprecated (PlatformName.iOS, 11,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] + [Deprecated (PlatformName.iOS, 11, 0)] [NoMac] [BaseType (typeof (NSObject))] interface RPBroadcastConfiguration : NSCoding, NSSecureCoding { @@ -295,29 +302,30 @@ namespace ReplayKit { delegate void LoadBroadcastingHandler (string bundleID, string displayName, UIImage appIcon); - [iOS (10,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (11, 0)] [Category] [BaseType (typeof (NSExtensionContext))] interface NSExtensionContext_RPBroadcastExtension { [Export ("loadBroadcastingApplicationInfoWithCompletion:")] void LoadBroadcastingApplicationInfo (LoadBroadcastingHandler handler); - [Deprecated (PlatformName.TvOS, 11,0, message: "Use 'CompleteRequest(NSUrl,NSDictionary)' instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'CompleteRequest(NSUrl,NSDictionary)' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'CompleteRequest(NSUrl,NSDictionary)' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'CompleteRequest(NSUrl,NSDictionary)' instead.")] [NoMac] [Export ("completeRequestWithBroadcastURL:broadcastConfiguration:setupInfo:")] void CompleteRequest (NSUrl broadcastURL, RPBroadcastConfiguration broadcastConfiguration, [NullAllowed] NSDictionary setupInfo); - [TV (11,0)][iOS (11,0)] + [TV (11, 0)] + [iOS (11, 0)] [Export ("completeRequestWithBroadcastURL:setupInfo:")] void CompleteRequest (NSUrl broadcastURL, [NullAllowed] NSDictionary setupInfo); } - [iOS (10,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (11, 0)] [BaseType (typeof (NSObject))] interface RPBroadcastHandler : NSExtensionRequestHandling { [Export ("updateServiceInfo:")] @@ -330,11 +338,11 @@ namespace ReplayKit { //void UpdateBroadcastUrl (NSUrl broadcastUrl); } - [iOS (10,0)] - [TV (10,0)] + [iOS (10, 0)] + [TV (10, 0)] [NoMac] - [Deprecated (PlatformName.TvOS, 11,0, message: "Use 'RPBroadcastSampleHandler' instead.")] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'RPBroadcastSampleHandler' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'RPBroadcastSampleHandler' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RPBroadcastSampleHandler' instead.")] [BaseType (typeof (RPBroadcastHandler))] interface RPBroadcastMP4ClipHandler { [Export ("processMP4ClipWithURL:setupInfo:finished:")] @@ -344,13 +352,13 @@ namespace ReplayKit { void FinishedProcessingMP4Clip ([NullAllowed] RPBroadcastConfiguration broadcastConfiguration, [NullAllowed] NSError error); } - [iOS (10,0)] - [TV (10,0)] - [Mac (11,0)] + [iOS (10, 0)] + [TV (10, 0)] + [Mac (11, 0)] [BaseType (typeof (RPBroadcastHandler))] interface RPBroadcastSampleHandler { - [iOS (11,1), TV (11,1)] + [iOS (11, 1), TV (11, 1)] [Field ("RPVideoSampleOrientationKey")] NSString VideoSampleOrientationKey { get; } @@ -370,19 +378,20 @@ namespace ReplayKit { [Export ("broadcastFinished")] void BroadcastFinished (); - [NoTV, iOS (11,2)] + [NoTV, iOS (11, 2)] [Export ("broadcastAnnotatedWithApplicationInfo:")] void BroadcastAnnotated (NSDictionary applicationInfo); [Export ("processSampleBuffer:withType:")] void ProcessSampleBuffer (CMSampleBuffer sampleBuffer, RPSampleBufferType sampleBufferType); - [iOS (10,2)][TV (10,1)] + [iOS (10, 2)] + [TV (10, 1)] [Export ("finishBroadcastWithError:")] void FinishBroadcast (NSError error); } - [NoTV, iOS (12,0)] + [NoTV, iOS (12, 0)] [NoMac] [BaseType (typeof (UIView))] interface RPSystemBroadcastPickerView : NSCoding { @@ -397,11 +406,11 @@ namespace ReplayKit { bool ShowsMicrophoneButton { get; set; } } - [Mac (11,0)] + [Mac (11, 0)] [NoiOS] [NoTV] [BaseType (typeof (NSObject))] - interface RPBroadcastActivityController { + interface RPBroadcastActivityController { [Static] [Export ("showBroadcastPickerAtPoint:fromWindow:preferredExtensionIdentifier:completionHandler:")] @@ -415,9 +424,9 @@ namespace ReplayKit { NSObject WeakDelegate { get; set; } } - interface IRPBroadcastActivityControllerDelegate {} + interface IRPBroadcastActivityControllerDelegate { } - [Mac (11,0)] + [Mac (11, 0)] [NoiOS] [NoTV] #if NET diff --git a/src/safariservices.cs b/src/safariservices.cs index c7b84006f3..430246f031 100644 --- a/src/safariservices.cs +++ b/src/safariservices.cs @@ -34,16 +34,17 @@ using NativeHandle = System.IntPtr; namespace SafariServices { delegate void SFExtensionValidationHandler (bool shouldHide, NSString text); - [Mac (10,12)][iOS (10,0)] + [Mac (10, 12)] + [iOS (10, 0)] [Introduced (PlatformName.MacCatalyst, 13, 4)] - [BaseType (typeof(NSObject))] - interface SFContentBlockerState - { + [BaseType (typeof (NSObject))] + interface SFContentBlockerState { [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; } } - [iOS (9,0)][Mac (10,12)] + [iOS (9, 0)] + [Mac (10, 12)] [Introduced (PlatformName.MacCatalyst, 13, 4)] [BaseType (typeof (NSObject))] interface SFContentBlockerManager { @@ -51,14 +52,15 @@ namespace SafariServices { [Static, Export ("reloadContentBlockerWithIdentifier:completionHandler:")] void ReloadContentBlocker (string identifier, [NullAllowed] Action completionHandler); - [iOS (10,0)] - [Static][Async] + [iOS (10, 0)] + [Static] + [Async] [Export ("getStateOfContentBlockerWithIdentifier:completionHandler:")] void GetStateOfContentBlocker (string identifier, Action completionHandler); } [NoMac] - [iOS (7,0)] + [iOS (7, 0)] [Introduced (PlatformName.MacCatalyst, 13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Misuse of SSReadingList interface. Use class method defaultReadingList. @@ -83,7 +85,7 @@ namespace SafariServices { } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] // NSGenericException Reason: Misuse of SFSafariViewController interface. Use initWithURL:entersReaderIfAvailable: interface SFSafariViewController { @@ -91,12 +93,12 @@ namespace SafariServices { [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithURL:configuration:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl url, SFSafariViewControllerConfiguration configuration); - [Deprecated (PlatformName.iOS, 11,0, message: "Use '.ctor (NSUrl, SFSafariViewControllerConfiguration)' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use '.ctor (NSUrl, SFSafariViewControllerConfiguration)' instead.")] [DesignatedInitializer] [Export ("initWithURL:entersReaderIfAvailable:")] NativeHandle Constructor (NSUrl url, bool entersReaderIfAvailable); @@ -122,22 +124,22 @@ namespace SafariServices { [Export ("preferredControlTintColor", ArgumentSemantic.Assign)] UIColor PreferredControlTintColor { get; set; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("configuration", ArgumentSemantic.Copy)] SFSafariViewControllerConfiguration Configuration { get; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("dismissButtonStyle", ArgumentSemantic.Assign)] SFSafariViewControllerDismissButtonStyle DismissButtonStyle { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("prewarmConnectionsToURLs:")] - SFSafariViewControllerPrewarmingToken PrewarmConnections (NSUrl[] urls); + SFSafariViewControllerPrewarmingToken PrewarmConnections (NSUrl [] urls); } [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Model] [BaseType (typeof (NSObject))] [Protocol] @@ -151,21 +153,21 @@ namespace SafariServices { [Export ("safariViewController:didCompleteInitialLoad:")] void DidCompleteInitialLoad (SFSafariViewController controller, bool didLoadSuccessfully); - [iOS (11,0)] + [iOS (11, 0)] [Export ("safariViewController:excludedActivityTypesForURL:title:")] - string[] GetExcludedActivityTypes (SFSafariViewController controller, NSUrl url, [NullAllowed] string title); + string [] GetExcludedActivityTypes (SFSafariViewController controller, NSUrl url, [NullAllowed] string title); - [iOS (11,0)] + [iOS (11, 0)] [Export ("safariViewController:initialLoadDidRedirectToURL:")] void InitialLoadDidRedirectToUrl (SFSafariViewController controller, NSUrl url); - [iOS (14,0)] + [iOS (14, 0)] [Export ("safariViewControllerWillOpenInBrowser:")] void WillOpenInBrowser (SFSafariViewController controller); } [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] interface SFSafariViewControllerConfiguration : NSCopying { [Export ("entersReaderIfAvailable")] @@ -175,25 +177,25 @@ namespace SafariServices { bool BarCollapsingEnabled { get; set; } [NullAllowed] - [iOS (15,0), MacCatalyst (15,0), NoMac, NoTV, NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), NoMac, NoTV, NoWatch] [Export ("activityButton", ArgumentSemantic.Copy)] SFSafariViewControllerActivityButton ActivityButton { get; set; } [NullAllowed] - [NoWatch, NoTV, iOS (15,2), MacCatalyst (15,2), NoMac] + [NoWatch, NoTV, iOS (15, 2), MacCatalyst (15, 2), NoMac] [Export ("eventAttribution", ArgumentSemantic.Copy)] UIEventAttribution EventAttribution { get; set; } } [NoMac] - [iOS (11,0)] + [iOS (11, 0)] delegate void SFAuthenticationCompletionHandler ([NullAllowed] NSUrl callbackUrl, [NullAllowed] NSError error); [NoMac] - [iOS (11,0)] + [iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - [Deprecated (PlatformName.iOS, 12,0, message: "Use 'ASWebAuthenticationSession' instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'ASWebAuthenticationSession' instead.")] interface SFAuthenticationSession { [Export ("initWithURL:callbackURLScheme:completionHandler:")] NativeHandle Constructor (NSUrl url, [NullAllowed] string callbackUrlScheme, SFAuthenticationCompletionHandler completionHandler); @@ -205,22 +207,27 @@ namespace SafariServices { void Cancel (); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariApplication - { - [Static][Async] + interface SFSafariApplication { + [Static] + [Async] [Export ("getActiveWindowWithCompletionHandler:")] void GetActiveWindow (Action completionHandler); - [Static][Async] - [Mac (10,14,4)] + [Static] + [Async] + [Mac (10, 14, 4)] [Export ("getAllWindowsWithCompletionHandler:")] void GetAllWindows (Action completionHandler); - [Static][Async] + [Static] + [Async] [Export ("openWindowWithURL:completionHandler:")] void OpenWindow (NSUrl url, [NullAllowed] Action completionHandler); @@ -232,25 +239,28 @@ namespace SafariServices { [Export ("showPreferencesForExtensionWithIdentifier:completionHandler:")] void ShowPreferencesForExtension (string identifier, [NullAllowed] Action completionHandler); - [Mac (10,12,4)] + [Mac (10, 12, 4)] [Advice ("Unavailable to extensions.")] - [Static][Async] + [Static] + [Async] [Export ("dispatchMessageWithName:toExtensionWithIdentifier:userInfo:completionHandler:")] void DispatchMessage (string messageName, string identifier, [NullAllowed] NSDictionary userInfo, [NullAllowed] Action completionHandler); - [Mac (10,13)] + [Mac (10, 13)] [Static] [Async] [Export ("getHostApplicationWithCompletionHandler:")] void GetHostApplication (Action completionHandler); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariPage : NSSecureCoding, NSCopying - { + interface SFSafariPage : NSSecureCoding, NSCopying { [Export ("dispatchMessageToScriptWithName:userInfo:")] void DispatchMessageToScript (string messageName, [NullAllowed] NSDictionary userInfo); @@ -261,29 +271,31 @@ namespace SafariServices { [Export ("getPagePropertiesWithCompletionHandler:")] void GetPageProperties (Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Async] [Export ("getContainingTabWithCompletionHandler:")] void GetContainingTab (Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Async] [Export ("getScreenshotOfVisibleAreaWithCompletionHandler:")] void GetScreenshotOfVisibleArea (Action completionHandler); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] [Protocol] - interface SFSafariExtensionHandling - { + interface SFSafariExtensionHandling { [Export ("messageReceivedWithName:fromPage:userInfo:")] void MessageReceived (string messageName, SFSafariPage page, [NullAllowed] NSDictionary userInfo); [Export ("toolbarItemClickedInWindow:")] void ToolbarItemClicked (SFSafariWindow window); - [Async (ResultTypeName="SFValidationResult")] + [Async (ResultTypeName = "SFValidationResult")] [Export ("validateToolbarItemInWindow:validationHandler:")] void ValidateToolbarItem (SFSafariWindow window, Action validationHandler); @@ -300,42 +312,49 @@ namespace SafariServices { SFSafariExtensionViewController PopoverViewController { get; } [Mac (10, 12, 4)] - [Async (ResultTypeName="SFExtensionValidationResult")][Export ("validateContextMenuItemWithCommand:inPage:userInfo:validationHandler:")] + [Async (ResultTypeName = "SFExtensionValidationResult")] + [Export ("validateContextMenuItemWithCommand:inPage:userInfo:validationHandler:")] void ValidateContextMenuItem (string command, SFSafariPage page, [NullAllowed] NSDictionary userInfo, SFExtensionValidationHandler validationHandler); [Mac (10, 12, 4)] [Export ("messageReceivedFromContainingAppWithName:userInfo:")] void MessageReceivedFromContainingApp (string messageName, [NullAllowed] NSDictionary userInfo); - [Mac (10,13,4)] + [Mac (10, 13, 4)] [Export ("additionalRequestHeadersForURL:completionHandler:")] void AdditionalRequestHeaders (NSUrl url, Action> completionHandler); - [Mac (10,15)] + [Mac (10, 15)] [Export ("contentBlockerWithIdentifier:blockedResourcesWithURLs:onPage:")] - void ContentBlocker (string contentBlockerIdentifier, NSUrl[] urls, SFSafariPage page); + void ContentBlocker (string contentBlockerIdentifier, NSUrl [] urls, SFSafariPage page); - [Mac (10,15)] + [Mac (10, 15)] [Export ("page:willNavigateToURL:")] void WillNavigate (SFSafariPage page, [NullAllowed] NSUrl url); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,14,4)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 14, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SFSafariExtension { - [Static][Async] + [Static] + [Async] [Export ("getBaseURIWithCompletionHandler:")] void GetBaseUri (Action completionHandler); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] - interface SFSafariPageProperties - { + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface SFSafariPageProperties { [NullAllowed] [Export ("url")] NSUrl Url { get; } @@ -351,21 +370,23 @@ namespace SafariServices { bool Active { [Bind ("isActive")] get; } } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariTab : NSSecureCoding, NSCopying - { + interface SFSafariTab : NSSecureCoding, NSCopying { [Async] [Export ("getActivePageWithCompletionHandler:")] void GetActivePage (Action completionHandler); [Async] [Export ("getPagesWithCompletionHandler:")] - void GetPages (Action completionHandler); + void GetPages (Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Async] [Export ("getContainingWindowWithCompletionHandler:")] void GetContainingWindow (Action completionHandler); @@ -374,57 +395,61 @@ namespace SafariServices { [Export ("activateWithCompletionHandler:")] void Activate ([NullAllowed] Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Export ("navigateToURL:")] void NavigateTo (NSUrl url); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Export ("close")] void Close (); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariToolbarItem : NSSecureCoding, NSCopying - { - [Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'SetEnabled (bool)' or 'SetBadgeText' instead.")] + interface SFSafariToolbarItem : NSSecureCoding, NSCopying { + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'SetEnabled (bool)' or 'SetBadgeText' instead.")] [Export ("setEnabled:withBadgeText:")] void SetEnabled (bool enabled, [NullAllowed] string badgeText); - [Mac (10,12,4)] + [Mac (10, 12, 4)] [Export ("setEnabled:")] void SetEnabled (bool enabled); - [Mac (10,12,4)] + [Mac (10, 12, 4)] [Export ("setBadgeText:")] void SetBadgeText ([NullAllowed] string badgeText); - [Mac (10,12,4)] + [Mac (10, 12, 4)] [Export ("setImage:")] void SetImage ([NullAllowed] NSImage image); - [Mac (10,13)] + [Mac (10, 13)] [Export ("setLabel:")] void SetLabel ([NullAllowed] string label); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Export ("showPopover")] void ShowPopover (); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariWindow : NSSecureCoding, NSCopying - { + interface SFSafariWindow : NSSecureCoding, NSCopying { [Async] [Export ("getActiveTabWithCompletionHandler:")] void GetActiveTab (Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Async] [Export ("getAllTabsWithCompletionHandler:")] void GetAllTabs (Action completionHandler); @@ -437,51 +462,58 @@ namespace SafariServices { [Export ("getToolbarItemWithCompletionHandler:")] void GetToolbarItem (Action completionHandler); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Export ("close")] void Close (); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSViewController))] - interface SFSafariExtensionViewController - { + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSViewController))] + interface SFSafariExtensionViewController { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); - [Mac (10,14,4)] + [Mac (10, 14, 4)] [Export ("dismissPopover")] void DismissPopover (); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,12)] - [BaseType (typeof(NSObject))] - interface SFSafariExtensionHandler : NSExtensionRequestHandling, SFSafariExtensionHandling - { + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 12)] + [BaseType (typeof (NSObject))] + interface SFSafariExtensionHandler : NSExtensionRequestHandling, SFSafariExtensionHandling { } -// TODO - Needs Safari Extension support to test -// [Mac (10,12)] -// [BaseType (typeof(NSObject))] -// interface SFSafariExtensionManager -// { -// [Static] -// [Export ("getStateOfSafariExtensionWithIdentifier:completionHandler:")] -// void GetStateOfSafariExtension (string identifier, Action completionHandler); -// } -// -// [Mac (10,12)] -// [BaseType (typeof(NSObject))] -// interface SFSafariExtensionState -// { -// [Export ("enabled")] -// bool Enabled { [Bind ("isEnabled")] get; } -// } + // TODO - Needs Safari Extension support to test + // [Mac (10,12)] + // [BaseType (typeof(NSObject))] + // interface SFSafariExtensionManager + // { + // [Static] + // [Export ("getStateOfSafariExtensionWithIdentifier:completionHandler:")] + // void GetStateOfSafariExtension (string identifier, Action completionHandler); + // } + // + // [Mac (10,12)] + // [BaseType (typeof(NSObject))] + // interface SFSafariExtensionState + // { + // [Export ("enabled")] + // bool Enabled { [Bind ("isEnabled")] get; } + // } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac (10,15)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SFUniversalLink { @@ -500,18 +532,17 @@ namespace SafariServices { } [Static] - [iOS (15,0), Mac (11,0), MacCatalyst (15,0), NoTV, NoWatch] + [iOS (15, 0), Mac (11, 0), MacCatalyst (15, 0), NoTV, NoWatch] [DisableDefaultCtor] interface SFExtension { [Field ("SFExtensionMessageKey")] NSString MessageKey { get; } } - [iOS (15,0), MacCatalyst (15,0), NoMac, NoTV, NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), NoMac, NoTV, NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariViewControllerActivityButton : NSCopying, NSSecureCoding - { + interface SFSafariViewControllerActivityButton : NSCopying, NSSecureCoding { [Export ("initWithTemplateImage:extensionIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (UIImage templateImage, string extensionIdentifier); @@ -523,7 +554,7 @@ namespace SafariServices { string ExtensionIdentifier { get; } } - [iOS (15,0), MacCatalyst (15,0), NoMac, NoTV, NoWatch] + [iOS (15, 0), MacCatalyst (15, 0), NoMac, NoTV, NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SFSafariViewControllerPrewarmingToken /* Privately conforms to NSCoding and NSSecureCoding */ @@ -532,11 +563,10 @@ namespace SafariServices { void Invalidate (); } - [iOS (16,0), MacCatalyst (16,0), NoMac, NoTV, NoWatch] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoTV, NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSafariViewControllerDataStore - { + interface SFSafariViewControllerDataStore { [Static] [Export ("defaultDataStore", ArgumentSemantic.Strong)] SFSafariViewControllerDataStore DefaultDataStore { get; } diff --git a/src/scenekit.cs b/src/scenekit.cs index d7890a21f6..70d5391d51 100644 --- a/src/scenekit.cs +++ b/src/scenekit.cs @@ -128,7 +128,7 @@ namespace SceneKit { interface MTLRenderPassDescriptor {} #endif - [iOS (8,0)] + [iOS (8, 0)] delegate void SCNSceneSourceStatusHandler (float /* float, not CGFloat */ totalProgress, SCNSceneSourceStatus status, NSError error, ref bool stopLoading); #if NET @@ -149,10 +149,10 @@ namespace SceneKit { delegate void SCNAnimationDidStopHandler2 (SCNAnimation animation, ISCNAnimatable receiver, bool completed); #endif - interface ISCNAnimatable {} + interface ISCNAnimatable { } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Model, Protocol] [BaseType (typeof (NSObject))] interface SCNAnimatable { @@ -168,7 +168,7 @@ namespace SceneKit { #if NET [Abstract] #endif - [iOS (11,0), TV (11,0), Watch (4,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Watch (4, 0), Mac (10, 13)] [Export ("addAnimationPlayer:forKey:")] void AddAnimation (SCNAnimationPlayer player, [NullAllowed] NSString key); @@ -179,7 +179,7 @@ namespace SceneKit { #if NET [Abstract] #endif - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("removeAllAnimationsWithBlendOutDuration:")] void RemoveAllAnimationsWithBlendOutDuration (nfloat duration); @@ -195,14 +195,14 @@ namespace SceneKit { [Abstract] #endif [return: NullAllowed] - [iOS (11,0), TV (11,0), Watch (4,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Watch (4, 0), Mac (10, 13)] [Export ("animationPlayerForKey:")] SCNAnimationPlayer GetAnimationPlayer (NSString key); [Abstract] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'GetAnimationPlayer' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'GetAnimationPlayer' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'GetAnimationPlayer' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'GetAnimationPlayer' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'GetAnimationPlayer' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'GetAnimationPlayer' instead.")] [NoWatch] [Export ("animationForKey:")] [return: NullAllowed] @@ -210,45 +210,45 @@ namespace SceneKit { [Abstract] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Mac (10, 9)] [Export ("pauseAnimationForKey:")] void PauseAnimation (NSString key); [Abstract] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Mac (10, 9)] [Export ("resumeAnimationForKey:")] void ResumeAnimation (NSString key); [Abstract] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] [TV (9, 0)] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Paused' instead.")] [Mac (10, 9)] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'SCNAnimationPlayer.Paused' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'SCNAnimationPlayer.Paused' instead.")] [Export ("isAnimationForKeyPaused:")] bool IsAnimationPaused (NSString key); [Abstract] [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] - [Mac (10,10)] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'RemoveAnimationUsingBlendOutDuration' instead.")] + [Mac (10, 10)] [Export ("removeAnimationForKey:fadeOutDuration:")] void RemoveAnimation (NSString key, nfloat duration); #if NET [Abstract] #endif - [iOS (11,0), TV (11,0), Watch (4,0), Mac (10,13)] + [iOS (11, 0), TV (11, 0), Watch (4, 0), Mac (10, 13)] [Export ("removeAnimationForKey:blendOutDuration:")] void RemoveAnimationUsingBlendOutDuration (NSString key, nfloat blendOutDuration); @@ -256,95 +256,93 @@ namespace SceneKit { [Abstract] #endif [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'SCNAnimationPlayer.Speed' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Speed' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Speed' instead.")] - [Deprecated (PlatformName.MacOSX, 10, 13,message: "Use 'SCNAnimationPlayer.Speed' instead.")] - [TV (10, 0), Mac (10, 12), iOS (10, 0), Watch (3,0)] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'SCNAnimationPlayer.Speed' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'SCNAnimationPlayer.Speed' instead.")] + [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'SCNAnimationPlayer.Speed' instead.")] + [TV (10, 0), Mac (10, 12), iOS (10, 0), Watch (3, 0)] [Export ("setSpeed:forAnimationKey:")] void SetSpeed (nfloat speed, NSString key); } - [Watch (3,0)] - [iOS(9,0),Mac(10,11)] - [BaseType (typeof(NSObject))] + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SCNAudioPlayer - { + interface SCNAudioPlayer { [Export ("initWithSource:")] [DesignatedInitializer] NativeHandle Constructor (SCNAudioSource source); - + [Export ("initWithAVAudioNode:")] [DesignatedInitializer] NativeHandle Constructor (AVAudioNode audioNode); - + [Static] [Export ("audioPlayerWithSource:")] SCNAudioPlayer FromSource (SCNAudioSource source); - + [Static] [Export ("audioPlayerWithAVAudioNode:")] SCNAudioPlayer AVAudioNode (AVAudioNode audioNode); - + [Export ("willStartPlayback")] [NullAllowed] Action WillStartPlayback { get; set; } - + [Export ("didFinishPlayback")] [NullAllowed] Action DidFinishPlayback { get; set; } - + [NullAllowed, Export ("audioNode")] AVAudioNode AudioNode { get; } - + [NullAllowed, Export ("audioSource")] SCNAudioSource AudioSource { get; } } - - [Watch (3,0)] - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + + [Watch (3, 0)] + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SCNAudioSource : NSCopying, NSSecureCoding - { + interface SCNAudioSource : NSCopying, NSSecureCoding { [Export ("initWithFileNamed:")] NativeHandle Constructor (string filename); - + [Export ("initWithURL:")] [DesignatedInitializer] NativeHandle Constructor (NSUrl url); - + [Static] [Export ("audioSourceNamed:")] [return: NullAllowed] SCNAudioSource FromFile (string fileName); - + [Export ("positional")] bool Positional { [Bind ("isPositional")] get; set; } - + [Export ("volume")] float Volume { get; set; } - + [Export ("rate")] float Rate { get; set; } - + [Export ("reverbBlend")] float ReverbBlend { get; set; } - + [Export ("loops")] bool Loops { get; set; } - + [Export ("shouldStream")] bool ShouldStream { get; set; } - + [Export ("load")] void Load (); } - - [Watch (3,0)] - [iOS (8,0)] + + [Watch (3, 0)] + [iOS (8, 0)] [Model, Protocol] [BaseType (typeof (NSObject))] interface SCNBoundingVolume { @@ -352,7 +350,7 @@ namespace SceneKit { [Export ("getBoundingBoxMin:max:")] bool GetBoundingBox (ref SCNVector3 min, ref SCNVector3 max); - [Mac (10,9)] // Yep, Apple broke backwards compatibility in 10.9 by introducing a new required member. + [Mac (10, 9)] // Yep, Apple broke backwards compatibility in 10.9 by introducing a new required member. [Abstract] [Export ("setBoundingBoxMin:max:")] void SetBoundingBox (ref SCNVector3 min, ref SCNVector3 max); @@ -362,113 +360,113 @@ namespace SceneKit { bool GetBoundingSphere (ref SCNVector3 center, ref nfloat radius); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNBox { [Export ("width")] - nfloat Width { get; set; } + nfloat Width { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("length")] - nfloat Length { get; set; } + nfloat Length { get; set; } [Export ("chamferRadius")] - nfloat ChamferRadius { get; set; } + nfloat ChamferRadius { get; set; } [Export ("widthSegmentCount")] - nint WidthSegmentCount { get; set; } + nint WidthSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Export ("lengthSegmentCount")] - nint LengthSegmentCount { get; set; } + nint LengthSegmentCount { get; set; } [Export ("chamferSegmentCount")] - nint ChamferSegmentCount { get; set; } + nint ChamferSegmentCount { get; set; } [Static, Export ("boxWithWidth:height:length:chamferRadius:")] SCNBox Create (nfloat width, nfloat height, nfloat length, nfloat chamferRadius); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNCamera : SCNAnimatable, SCNTechniqueSupport, NSCopying, NSSecureCoding { [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] [Export ("xFov")] - double XFov { get; set; } + double XFov { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FieldOfView' or 'FocalLength' instead.")] [Export ("yFov")] - double YFov { get; set; } + double YFov { get; set; } [Export ("zNear")] - double ZNear { get; set; } + double ZNear { get; set; } [Export ("zFar")] - double ZFar { get; set; } + double ZFar { get; set; } [Export ("usesOrthographicProjection")] - bool UsesOrthographicProjection { get; set; } + bool UsesOrthographicProjection { get; set; } [Static, Export ("camera")] SCNCamera Create (); - [Mac (10,9)] + [Mac (10, 9)] [Export ("projectionTransform")] SCNMatrix4 ProjectionTransform { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("automaticallyAdjustsZRange")] bool AutomaticallyAdjustsZRange { get; set; } - - [Mac (10,9)] + + [Mac (10, 9)] [Export ("orthographicScale")] double OrthographicScale { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FocusDistance' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FocusDistance' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FocusDistance' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FocusDistance' instead.")] + [Mac (10, 9)] [Export ("focalDistance")] nfloat FocalDistance { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FocusDistance' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FocusDistance' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FocusDistance' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FocusDistance' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FocusDistance' instead.")] + [Mac (10, 9)] [Export ("focalSize")] nfloat FocalSize { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FStop' instead.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FStop' instead.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FStop' instead.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FStop' instead.")] - [Mac (10,9)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FStop' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FStop' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FStop' instead.")] + [Mac (10, 9)] [Export ("focalBlurRadius")] nfloat FocalBlurRadius { get; set; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] - [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] - [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] - [Mac (10,9)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'FStop' instead with FStop = SensorHeight / Aperture.")] + [Mac (10, 9)] [Export ("aperture")] nfloat Aperture { get; set; } @@ -552,12 +550,12 @@ namespace SceneKit { [Export ("colorGrading")] SCNMaterialProperty ColorGrading { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("categoryBitMask")] nuint CategoryBitMask { get; set; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("cameraWithMDLCamera:")] SCNCamera FromModelCamera (MDLCamera modelCamera); @@ -565,27 +563,27 @@ namespace SceneKit { [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("fieldOfView")] nfloat FieldOfView { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("projectionDirection", ArgumentSemantic.Assign)] SCNCameraProjectionDirection ProjectionDirection { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("focalLength")] nfloat FocalLength { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("sensorHeight")] nfloat SensorHeight { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("wantsDepthOfField")] bool WantsDepthOfField { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("focusDistance")] nfloat FocusDistance { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("focalBlurSampleCount")] nint FocalBlurSampleCount { get; set; } @@ -593,271 +591,268 @@ namespace SceneKit { [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("fStop")] nfloat FStop { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("apertureBladeCount")] nint ApertureBladeCount { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("screenSpaceAmbientOcclusionIntensity")] nfloat ScreenSpaceAmbientOcclusionIntensity { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("screenSpaceAmbientOcclusionRadius")] nfloat ScreenSpaceAmbientOcclusionRadius { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("screenSpaceAmbientOcclusionBias")] nfloat ScreenSpaceAmbientOcclusionBias { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("screenSpaceAmbientOcclusionDepthThreshold")] nfloat ScreenSpaceAmbientOcclusionDepthThreshold { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("screenSpaceAmbientOcclusionNormalThreshold")] nfloat ScreenSpaceAmbientOcclusionNormalThreshold { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("projectionTransformWithViewportSize:")] SCNMatrix4 GetProjectionTransform (CGSize viewportSize); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("bloomIterationCount")] nint BloomIterationCount { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("bloomIterationSpread")] nfloat BloomIterationSpread { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("grainIntensity")] nfloat GrainIntensity { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("grainScale")] nfloat GrainScale { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("grainIsColored")] bool GrainIsColored { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("whiteBalanceTemperature")] nfloat WhiteBalanceTemperature { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("whiteBalanceTint")] nfloat WhiteBalanceTint { get; set; } } - interface ISCNCameraControlConfiguration {} + interface ISCNCameraControlConfiguration { } [NoWatch] - [TV (11,0), Mac (10, 13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] - interface SCNCameraControlConfiguration - { + interface SCNCameraControlConfiguration { [Abstract] [Export ("autoSwitchToFreeCamera")] bool AutoSwitchToFreeCamera { get; set; } - + [Abstract] [Export ("allowsTranslation")] bool AllowsTranslation { get; set; } - + [Abstract] [Export ("flyModeVelocity")] nfloat FlyModeVelocity { get; set; } - + [Abstract] [Export ("panSensitivity")] nfloat PanSensitivity { get; set; } - + [Abstract] [Export ("truckSensitivity")] nfloat TruckSensitivity { get; set; } - + [Abstract] [Export ("rotationSensitivity")] nfloat RotationSensitivity { get; set; } } - interface ISCNCameraControllerDelegate {} - - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + interface ISCNCameraControllerDelegate { } + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] [Model] // Figured I would keep the model for convenience, as all the methods here are optional - [BaseType (typeof(NSObject))] - interface SCNCameraControllerDelegate - { + [BaseType (typeof (NSObject))] + interface SCNCameraControllerDelegate { [Export ("cameraInertiaWillStartForController:")] void CameraInertiaWillStart (SCNCameraController cameraController); - + [Export ("cameraInertiaDidEndForController:")] void CameraInertiaDidEnd (SCNCameraController cameraController); } - - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface SCNCameraController - { + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface SCNCameraController { [Export ("delegate", ArgumentSemantic.Assign)] [NullAllowed] [Protocolize] SCNCameraControllerDelegate Delegate { get; set; } - + [NullAllowed, Export ("pointOfView", ArgumentSemantic.Retain)] SCNNode PointOfView { get; set; } - + [Export ("interactionMode", ArgumentSemantic.Assign)] SCNInteractionMode InteractionMode { get; set; } - + [Export ("target", ArgumentSemantic.Assign)] SCNVector3 Target { get; set; } - + [Export ("automaticTarget")] bool AutomaticTarget { get; set; } - + [Export ("worldUp", ArgumentSemantic.Assign)] SCNVector3 WorldUp { get; set; } - + [Export ("inertiaEnabled")] bool InertiaEnabled { get; set; } [Export ("inertiaFriction")] float InertiaFriction { get; set; } - + [Export ("inertiaRunning")] bool InertiaRunning { [Bind ("isInertiaRunning")] get; } - + [Export ("minimumVerticalAngle")] float MinimumVerticalAngle { get; set; } - + [Export ("maximumVerticalAngle")] float MaximumVerticalAngle { get; set; } - + [Export ("minimumHorizontalAngle")] float MinimumHorizontalAngle { get; set; } - + [Export ("maximumHorizontalAngle")] float MaximumHorizontalAngle { get; set; } - + [Export ("translateInCameraSpaceByX:Y:Z:")] void TranslateInCameraSpace (float deltaX, float deltaY, float deltaZ); - + [Export ("frameNodes:")] - void FrameNodes (SCNNode[] nodes); - + void FrameNodes (SCNNode [] nodes); + [Export ("rotateByX:Y:")] void Rotate (float deltaX, float deltaY); - + [Export ("rollBy:aroundScreenPoint:viewport:")] void Roll (float delta, CGPoint screenPoint, CGSize viewport); - + [Export ("dollyBy:onScreenPoint:viewport:")] void Dolly (float delta, CGPoint screenPoint, CGSize viewport); - + [Export ("rollAroundTarget:")] void RollAroundTarget (float delta); - + [Export ("dollyToTarget:")] void DollyToTarget (float delta); - + [Export ("clearRoll")] void ClearRoll (); - + [Export ("stopInertia")] void StopInertia (); - + [Export ("beginInteraction:withViewport:")] void BeginInteraction (CGPoint location, CGSize viewport); - + [Export ("continueInteraction:withViewport:sensitivity:")] void ContinueInteraction (CGPoint location, CGSize viewport, nfloat sensitivity); - + [Export ("endInteraction:withViewport:velocity:")] void EndInteraction (CGPoint location, CGSize viewport, CGPoint velocity); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNCapsule { [Export ("capRadius")] - nfloat CapRadius { get; set; } + nfloat CapRadius { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("radialSegmentCount")] - nint RadialSegmentCount { get; set; } + nint RadialSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Export ("capSegmentCount")] - nint CapSegmentCount { get; set; } + nint CapSegmentCount { get; set; } [Static, Export ("capsuleWithCapRadius:height:")] SCNCapsule Create (nfloat capRadius, nfloat height); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNCone { [Export ("topRadius")] - nfloat TopRadius { get; set; } + nfloat TopRadius { get; set; } [Export ("bottomRadius")] - nfloat BottomRadius { get; set; } + nfloat BottomRadius { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("radialSegmentCount")] - nint RadialSegmentCount { get; set; } + nint RadialSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Static, Export ("coneWithTopRadius:bottomRadius:height:")] SCNCone Create (nfloat topRadius, nfloat bottomRadius, nfloat height); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNCylinder { [Export ("radius")] - nfloat Radius { get; set; } + nfloat Radius { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("radialSegmentCount")] - nint RadialSegmentCount { get; set; } + nint RadialSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Static, Export ("cylinderWithRadius:height:")] SCNCylinder Create (nfloat radius, nfloat height); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNFloor { [Export ("reflectivity")] - nfloat Reflectivity { get; set; } + nfloat Reflectivity { get; set; } [Export ("reflectionFalloffStart")] - nfloat ReflectionFalloffStart { get; set; } + nfloat ReflectionFalloffStart { get; set; } [Export ("reflectionFalloffEnd")] - nfloat ReflectionFalloffEnd { get; set; } + nfloat ReflectionFalloffEnd { get; set; } [TV (10, 0), Mac (10, 12), iOS (10, 0)] [Export ("reflectionCategoryBitMask")] @@ -871,7 +866,7 @@ namespace SceneKit { [Export ("length")] nfloat Length { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("reflectionResolutionScaleFactor")] nfloat ReflectionResolutionScaleFactor { get; set; } @@ -879,32 +874,34 @@ namespace SceneKit { SCNFloor Create (); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface SCNGeometry : SCNAnimatable, SCNBoundingVolume, SCNShadable, NSCopying, NSSecureCoding { [Export ("materials", ArgumentSemantic.Copy)] - SCNMaterial [] Materials { get; set; } + SCNMaterial [] Materials { get; set; } [Export ("geometryElementCount")] - nint GeometryElementCount { get; } + nint GeometryElementCount { get; } [Export ("firstMaterial", ArgumentSemantic.Retain)] [NullAllowed] - SCNMaterial FirstMaterial { get; set; } + SCNMaterial FirstMaterial { get; set; } - [iOS (9,0)][Mac(10,11)] // header mistake (10,10) as tests shows it does not exists + [iOS (9, 0)] + [Mac (10, 11)] // header mistake (10,10) as tests shows it does not exists [Export ("geometryElements")] SCNGeometryElement [] GeometryElements { get; } - [iOS (9,0)][Mac(10,11)] // header mistake (10,10) as tests shows it does not exists + [iOS (9, 0)] + [Mac (10, 11)] // header mistake (10,10) as tests shows it does not exists [Export ("geometrySources")] SCNGeometrySource [] GeometrySources { get; } - + [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [Export ("insertMaterial:atIndex:")] void InsertMaterial (SCNMaterial material, nint index); @@ -922,79 +919,79 @@ namespace SceneKit { [Static] [Export ("geometryWithSources:elements:")] SCNGeometry Create (SCNGeometrySource [] sources, [NullAllowed] SCNGeometryElement [] elements); - + [Export ("geometrySourcesForSemantic:")] SCNGeometrySource [] GetGeometrySourcesForSemantic (string semantic); [Export ("geometryElementAtIndex:")] SCNGeometryElement GetGeometryElement (nint elementIndex); - [Mac (10,9)] + [Mac (10, 9)] [NullAllowed] // by default this property is null [Export ("levelsOfDetail", ArgumentSemantic.Copy)] SCNLevelOfDetail [] LevelsOfDetail { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("geometry")] SCNGeometry Create (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("subdivisionLevel")] nuint SubdivisionLevel { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("edgeCreasesElement", ArgumentSemantic.Retain)] SCNGeometryElement EdgeCreasesElement { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("edgeCreasesSource", ArgumentSemantic.Retain)] SCNGeometrySource EdgeCreasesSource { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("wantsAdaptiveSubdivision")] bool WantsAdaptiveSubdivision { get; set; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("geometryWithMDLMesh:")] SCNGeometry FromMesh (MDLMesh mesh); - [NoWatch, Mac (10,13), iOS (11,0)] - [TV (12,0)] + [NoWatch, Mac (10, 13), iOS (11, 0)] + [TV (12, 0)] [NullAllowed, Export ("tessellator", ArgumentSemantic.Retain)] SCNGeometryTessellator Tessellator { get; set; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNGeometrySource : NSSecureCoding { [Export ("data")] - NSData Data { get; } + NSData Data { get; } [Export ("semantic")] - NSString Semantic { get; } + NSString Semantic { get; } [Export ("vectorCount")] - nint VectorCount { get; } + nint VectorCount { get; } [Export ("floatComponents")] - bool FloatComponents { get; } + bool FloatComponents { get; } [Export ("componentsPerVector")] - nint ComponentsPerVector { get; } + nint ComponentsPerVector { get; } [Export ("bytesPerComponent")] - nint BytesPerComponent { get; } + nint BytesPerComponent { get; } [Export ("dataOffset")] - nint DataOffset { get; } + nint DataOffset { get; } [Export ("dataStride")] - nint DataStride { get; } + nint DataStride { get; } [Export ("geometrySourceWithData:semantic:vectorCount:floatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:")] [Static] @@ -1013,25 +1010,26 @@ namespace SceneKit { SCNGeometrySource FromTextureCoordinates (IntPtr texcoords, nint count); [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("geometrySourceWithBuffer:vertexFormat:semantic:vertexCount:dataOffset:dataStride:")] SCNGeometrySource FromMetalBuffer (IMTLBuffer mtlBuffer, MTLVertexFormat vertexFormat, NSString geometrySourceSemantic, nint vertexCount, nint offset, nint stride); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNGeometrySourceSemantic { [Field ("SCNGeometrySourceSemanticVertex")] NSString Vertex { get; } - + [Field ("SCNGeometrySourceSemanticNormal")] NSString Normal { get; } - + [Field ("SCNGeometrySourceSemanticColor")] NSString Color { get; } - + [Field ("SCNGeometrySourceSemanticTexcoord")] NSString Texcoord { get; } @@ -1039,131 +1037,130 @@ namespace SceneKit { [Field ("SCNGeometrySourceSemanticTangent")] NSString Tangent { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("SCNGeometrySourceSemanticVertexCrease")] NSString VertexCrease { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("SCNGeometrySourceSemanticEdgeCrease")] NSString EdgeCrease { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("SCNGeometrySourceSemanticBoneWeights")] NSString BoneWeights { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("SCNGeometrySourceSemanticBoneIndices")] NSString BoneIndices { get; } } - - [Watch (3,0)] - [iOS (8,0)] + + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNGeometryElement : NSSecureCoding { [Export ("data")] - NSData Data { get; } + NSData Data { get; } [Export ("primitiveType")] - SCNGeometryPrimitiveType PrimitiveType { get; } + SCNGeometryPrimitiveType PrimitiveType { get; } [Export ("primitiveCount")] - nint PrimitiveCount { get; } + nint PrimitiveCount { get; } [Export ("bytesPerIndex")] - nint BytesPerIndex { get; } + nint BytesPerIndex { get; } [Static] [Export ("geometryElementWithData:primitiveType:primitiveCount:bytesPerIndex:")] SCNGeometryElement FromData ([NullAllowed] NSData data, SCNGeometryPrimitiveType primitiveType, nint primitiveCount, nint bytesPerIndex); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("primitiveRange", ArgumentSemantic.Assign)] NSRange PrimitiveRange { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("pointSize")] nfloat PointSize { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("minimumPointScreenSpaceRadius")] nfloat MinimumPointScreenSpaceRadius { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("maximumPointScreenSpaceRadius")] nfloat MaximumPointScreenSpaceRadius { get; set; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("geometryElementWithMDLSubmesh:")] SCNGeometryElement FromSubmesh (MDLSubmesh submesh); [NoWatch] // marked as 7,0 but there's no Metal support on the platform - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] [Export ("geometryElementWithBuffer:primitiveType:primitiveCount:bytesPerIndex:")] SCNGeometryElement FromBuffer (IMTLBuffer buffer, SCNGeometryPrimitiveType primitiveType, nint primitiveCount, nint bytesPerIndex); } #if !WATCH - [NoWatch, Mac (10, 13), iOS (11,0)] - [TV (12,0)] - [BaseType (typeof(NSObject))] + [NoWatch, Mac (10, 13), iOS (11, 0)] + [TV (12, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SCNGeometryTessellator : NSCopying, NSSecureCoding - { + interface SCNGeometryTessellator : NSCopying, NSSecureCoding { [Export ("tessellationFactorScale")] nfloat TessellationFactorScale { get; set; } - + [Export ("tessellationPartitionMode", ArgumentSemantic.Assign)] MTLTessellationPartitionMode TessellationPartitionMode { get; set; } - + [Export ("adaptive")] bool Adaptive { [Bind ("isAdaptive")] get; set; } - + [Export ("screenSpace")] bool ScreenSpace { [Bind ("isScreenSpace")] get; set; } - + [Export ("edgeTessellationFactor")] nfloat EdgeTessellationFactor { get; set; } - + [Export ("insideTessellationFactor")] nfloat InsideTessellationFactor { get; set; } - + [Export ("maximumEdgeLength")] nfloat MaximumEdgeLength { get; set; } - + [Export ("smoothingMode", ArgumentSemantic.Assign)] SCNTessellationSmoothingMode SmoothingMode { get; set; } } #endif - - [Watch (3,0)] - [iOS (8,0)] + + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNHitTest { [Field ("SCNHitTestFirstFoundOnlyKey")] NSString FirstFoundOnlyKey { get; } - + [Field ("SCNHitTestSortResultsKey")] NSString SortResultsKey { get; } - + [Field ("SCNHitTestClipToZRangeKey")] NSString ClipToZRangeKey { get; } - + [Field ("SCNHitTestBackFaceCullingKey")] NSString BackFaceCullingKey { get; } - + [Field ("SCNHitTestBoundingBoxOnlyKey")] NSString BoundingBoxOnlyKey { get; } - + [Field ("SCNHitTestIgnoreChildNodesKey")] NSString IgnoreChildNodesKey { get; } - + [Field ("SCNHitTestRootNodeKey")] NSString RootNodeKey { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("SCNHitTestIgnoreHiddenNodesKey")] NSString IgnoreHiddenNodesKey { get; } @@ -1178,41 +1175,41 @@ namespace SceneKit { NSString OptionSearchModeKey { get; } #endif - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Field ("SCNHitTestOptionSearchMode")] NSString SearchModeKey { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("SCNHitTestOptionIgnoreLightArea")] NSString IgnoreLightAreaKey { get; } } - - [Watch (3,0)] - [iOS (8,0)] + + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] // quote: The SCNHitTestResult class is exposed as the return object from the hitTest:options: method, as an array of SCNHitTestResult objects. [DisableDefaultCtor] // crash when calling description interface SCNHitTestResult { [Export ("geometryIndex")] - nint GeometryIndex { get; } + nint GeometryIndex { get; } [Export ("faceIndex")] - nint FaceIndex { get; } + nint FaceIndex { get; } [Export ("localCoordinates")] - SCNVector3 LocalCoordinates { get; } + SCNVector3 LocalCoordinates { get; } [Export ("worldCoordinates")] - SCNVector3 WorldCoordinates { get; } + SCNVector3 WorldCoordinates { get; } [Export ("localNormal")] - SCNVector3 LocalNormal { get; } + SCNVector3 LocalNormal { get; } [Export ("worldNormal")] - SCNVector3 WorldNormal { get; } + SCNVector3 WorldNormal { get; } [Export ("modelTransform")] - SCNMatrix4 ModelTransform { get; } + SCNMatrix4 ModelTransform { get; } [TV (10, 0), Mac (10, 12), iOS (10, 0)] [Export ("boneNode")] @@ -1226,27 +1223,30 @@ namespace SceneKit { CGPoint GetTextureCoordinatesWithMappingChannel (nint channel); } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [BaseType (typeof (CAOpenGLLayer))] interface SCNLayer : SCNSceneRenderer, SCNTechniqueSupport { -// We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. -// [Export ("scene", ArgumentSemantic.Retain)] -// SCNScene Scene { get; set; } + // We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. + // [Export ("scene", ArgumentSemantic.Retain)] + // SCNScene Scene { get; set; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNLight : SCNAnimatable, SCNTechniqueSupport, NSCopying, NSSecureCoding { [Export ("type", ArgumentSemantic.Copy)] - NSString LightType { get; set; } + NSString LightType { get; set; } [Export ("color", ArgumentSemantic.Retain)] NSObject WeakColor { get; set; } [Wrap ("WeakColor")] - NSColor Color { get; set; } + NSColor Color { get; set; } [TV (10, 0), Mac (10, 12), iOS (10, 0)] [Export ("temperature")] @@ -1258,23 +1258,23 @@ namespace SceneKit { [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [Export ("castsShadow")] - bool CastsShadow { get; set; } + bool CastsShadow { get; set; } [Export ("shadowColor", ArgumentSemantic.Retain)] - NSObject WeakShadowColor { get; set; } + NSObject WeakShadowColor { get; set; } [Wrap ("WeakShadowColor")] NSColor ShadowColor { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("shadowBias")] nfloat ShadowBias { get; set; } [Export ("shadowRadius")] - nfloat ShadowRadius { get; set; } + nfloat ShadowRadius { get; set; } [Static, Export ("light")] SCNLight Create (); @@ -1300,7 +1300,7 @@ namespace SceneKit { [Export ("setAttribute:forKey:")] void SetAttribute ([NullAllowed] NSObject value, NSString attribuetKey); - [Mac (10,9)] + [Mac (10, 9)] [Export ("gobo")] [NullAllowed] SCNMaterialProperty Gobo { get; } @@ -1309,97 +1309,97 @@ namespace SceneKit { [NullAllowed, Export ("IESProfileURL", ArgumentSemantic.Retain)] NSUrl IesProfileUrl { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("shadowMapSize")] CGSize ShadowMapSize { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("shadowSampleCount")] nuint ShadowSampleCount { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("shadowMode")] SCNShadowMode ShadowMode { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("attenuationStartDistance")] nfloat AttenuationStartDistance { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("attenuationEndDistance")] nfloat AttenuationEndDistance { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("attenuationFalloffExponent")] nfloat AttenuationFalloffExponent { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("spotInnerAngle")] nfloat SpotInnerAngle { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("spotOuterAngle")] nfloat SpotOuterAngle { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("orthographicScale")] nfloat OrthographicScale { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("zNear")] nfloat ZNear { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("zFar")] nfloat ZFar { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("categoryBitMask")] nuint CategoryBitMask { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("automaticallyAdjustsShadowProjection")] bool AutomaticallyAdjustsShadowProjection { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("maximumShadowDistance")] nfloat MaximumShadowDistance { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("forcesBackFaceCasters")] bool ForcesBackFaceCasters { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("sampleDistributedShadowMaps")] bool SampleDistributedShadowMaps { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("shadowCascadeCount")] nuint ShadowCascadeCount { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("shadowCascadeSplittingFactor")] nfloat ShadowCascadeSplittingFactor { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("sphericalHarmonicsCoefficients", ArgumentSemantic.Copy)] NSData SphericalHarmonicsCoefficients { get; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("lightWithMDLLight:")] SCNLight FromModelLight (MDLLight mdllight); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("probeType", ArgumentSemantic.Assign)] SCNLightProbeType ProbeType { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("probeUpdateType", ArgumentSemantic.Assign)] SCNLightProbeUpdateType ProbeUpdateType { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("probeExtents", ArgumentSemantic.Assign)] Vector3 ProbeExtents { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1408,7 +1408,7 @@ namespace SceneKit { set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("probeOffset", ArgumentSemantic.Assign)] Vector3 ProbeOffset { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1417,11 +1417,11 @@ namespace SceneKit { set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("parallaxCorrectionEnabled")] bool ParallaxCorrectionEnabled { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("parallaxExtentsFactor", ArgumentSemantic.Assign)] Vector3 ParallaxExtentsFactor { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1430,7 +1430,7 @@ namespace SceneKit { set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("parallaxCenterOffset", ArgumentSemantic.Assign)] Vector3 ParallaxCenterOffset { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1439,15 +1439,15 @@ namespace SceneKit { set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("probeEnvironment")] SCNMaterialProperty ProbeEnvironment { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("areaType", ArgumentSemantic.Assign)] SCNLightAreaType AreaType { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("areaExtents", ArgumentSemantic.Assign)] Vector3 AreaExtents { [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1456,32 +1456,32 @@ namespace SceneKit { set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("areaPolygonVertices", ArgumentSemantic.Copy)] - NSValue[] AreaPolygonVertices { get; set; } + NSValue [] AreaPolygonVertices { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("drawsArea")] bool DrawsArea { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("doubleSided")] bool DoubleSided { get; set; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNLightType { [Field ("SCNLightTypeAmbient")] NSString Ambient { get; } - + [Field ("SCNLightTypeOmni")] NSString Omni { get; } - + [Field ("SCNLightTypeDirectional")] NSString Directional { get; } - + [Field ("SCNLightTypeSpot")] NSString Spot { get; } @@ -1493,50 +1493,53 @@ namespace SceneKit { [Field ("SCNLightTypeProbe")] NSString Probe { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("SCNLightTypeArea")] NSString Area { get; } } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 10)] [Static] interface SCNLightAttribute { [Field ("SCNLightAttenuationStartKey")] NSString AttenuationStartKey { get; } - + [Field ("SCNLightAttenuationEndKey")] NSString AttenuationEndKey { get; } - + [Field ("SCNLightAttenuationFalloffExponentKey")] NSString AttenuationFalloffExponentKey { get; } - + [Field ("SCNLightSpotInnerAngleKey")] NSString SpotInnerAngleKey { get; } - + [Field ("SCNLightSpotOuterAngleKey")] NSString SpotOuterAngleKey { get; } - + [Field ("SCNLightShadowNearClippingKey")] NSString ShadowNearClippingKey { get; } - + [Field ("SCNLightShadowFarClippingKey")] NSString ShadowFarClippingKey { get; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNLightingModel { [Field ("SCNLightingModelPhong")] NSString Phong { get; } - + [Field ("SCNLightingModelBlinn")] NSString Blinn { get; } - + [Field ("SCNLightingModelLambert")] NSString Lambert { get; } - + [Field ("SCNLightingModelConstant")] NSString Constant { get; } @@ -1544,90 +1547,90 @@ namespace SceneKit { [Field ("SCNLightingModelPhysicallyBased")] NSString PhysicallyBased { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Field ("SCNLightingModelShadowOnly")] NSString ShadowOnly { get; } } - - [Watch (3,0)] - [iOS (8,0)] + + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNMaterial : SCNAnimatable, SCNShadable, NSCopying, NSSecureCoding { [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [Export ("diffuse")] - SCNMaterialProperty Diffuse { get; } + SCNMaterialProperty Diffuse { get; } [Export ("ambient")] - SCNMaterialProperty Ambient { get; } + SCNMaterialProperty Ambient { get; } [Export ("specular")] - SCNMaterialProperty Specular { get; } + SCNMaterialProperty Specular { get; } [Export ("emission")] - SCNMaterialProperty Emission { get; } + SCNMaterialProperty Emission { get; } [Export ("transparent")] - SCNMaterialProperty Transparent { get; } + SCNMaterialProperty Transparent { get; } [Export ("reflective")] - SCNMaterialProperty Reflective { get; } + SCNMaterialProperty Reflective { get; } [Export ("multiply")] - SCNMaterialProperty Multiply { get; } + SCNMaterialProperty Multiply { get; } [Export ("normal")] - SCNMaterialProperty Normal { get; } + SCNMaterialProperty Normal { get; } [Export ("shininess")] - nfloat Shininess { get; set; } + nfloat Shininess { get; set; } [Export ("transparency")] - nfloat Transparency { get; set; } + nfloat Transparency { get; set; } [Export ("lightingModelName", ArgumentSemantic.Copy)] - NSString LightingModelName { get; set; } + NSString LightingModelName { get; set; } [Export ("litPerPixel")] - bool LitPerPixel { [Bind ("isLitPerPixel")] get; set; } + bool LitPerPixel { [Bind ("isLitPerPixel")] get; set; } [Export ("doubleSided")] - bool DoubleSided { [Bind ("isDoubleSided")] get; set; } + bool DoubleSided { [Bind ("isDoubleSided")] get; set; } [Export ("cullMode")] - SCNCullMode CullMode { get; set; } + SCNCullMode CullMode { get; set; } [Export ("transparencyMode")] - SCNTransparencyMode TransparencyMode { get; set; } + SCNTransparencyMode TransparencyMode { get; set; } [Export ("locksAmbientWithDiffuse")] - bool LocksAmbientWithDiffuse { get; set; } + bool LocksAmbientWithDiffuse { get; set; } [Export ("writesToDepthBuffer")] - bool WritesToDepthBuffer { get; set; } + bool WritesToDepthBuffer { get; set; } [Static, Export ("material")] SCNMaterial Create (); - [Mac (10,9)] + [Mac (10, 9)] [Export ("readsFromDepthBuffer")] - bool ReadsFromDepthBuffer { get; set; } + bool ReadsFromDepthBuffer { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("fresnelExponent")] nfloat FresnelExponent { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("blendMode", ArgumentSemantic.Assign)] SCNBlendMode BlendMode { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("ambientOcclusion")] SCNMaterialProperty AmbientOcclusion { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("selfIllumination")] SCNMaterialProperty SelfIllumination { get; } @@ -1640,7 +1643,7 @@ namespace SceneKit { SCNMaterialProperty Roughness { get; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("materialWithMDLMaterial:")] SCNMaterial FromMaterial (MDLMaterial material); @@ -1648,50 +1651,50 @@ namespace SceneKit { [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("displacement")] SCNMaterialProperty Displacement { get; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("fillMode", ArgumentSemantic.Assign)] SCNFillMode FillMode { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("colorBufferWriteMask", ArgumentSemantic.Assign)] SCNColorMask ColorBufferWriteMask { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("clearCoat")] SCNMaterialProperty ClearCoat { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("clearCoatRoughness")] SCNMaterialProperty ClearCoatRoughness { get; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("clearCoatNormal")] SCNMaterialProperty ClearCoatNormal { get; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // runtime -> [SCNKit ERROR] Do not instantiate SCNMaterialProperty objects directly interface SCNMaterialProperty : SCNAnimatable, NSSecureCoding { [Export ("minificationFilter")] - SCNFilterMode MinificationFilter { get; set; } + SCNFilterMode MinificationFilter { get; set; } [Export ("magnificationFilter")] - SCNFilterMode MagnificationFilter { get; set; } + SCNFilterMode MagnificationFilter { get; set; } [Export ("mipFilter")] - SCNFilterMode MipFilter { get; set; } + SCNFilterMode MipFilter { get; set; } [Export ("contentsTransform")] - SCNMatrix4 ContentsTransform { get; set; } + SCNMatrix4 ContentsTransform { get; set; } [Export ("wrapS")] - SCNWrapMode WrapS { get; set; } + SCNWrapMode WrapS { get; set; } [Export ("wrapT")] - SCNWrapMode WrapT { get; set; } + SCNWrapMode WrapT { get; set; } [Deprecated (PlatformName.iOS, 10, 0)] [Deprecated (PlatformName.MacOSX, 10, 12)] @@ -1701,7 +1704,7 @@ namespace SceneKit { NSObject BorderColor { get; set; } [Export ("mappingChannel")] - nint MappingChannel { get; set; } + nint MappingChannel { get; set; } [Export ("contents", ArgumentSemantic.Retain), NullAllowed] NSObject Contents { get; set; } @@ -1731,19 +1734,19 @@ namespace SceneKit { [Wrap ("Contents")] NSImage [] ContentImageCube { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("intensity")] nfloat Intensity { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("maxAnisotropy")] nfloat MaxAnisotropy { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("textureComponents", ArgumentSemantic.Assign)] SCNColorMask TextureComponents { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Static, Export ("materialPropertyWithContents:")] SCNMaterialProperty Create (NSObject contents); } @@ -1756,7 +1759,7 @@ namespace SceneKit { } #endif - [Watch (3,0)] + [Watch (3, 0)] [StrongDictionary ("SCNHitTest")] interface SCNHitTestOptions { bool FirstFoundOnly { get; set; } @@ -1768,11 +1771,11 @@ namespace SceneKit { [NullAllowed] SCNNode RootNode { get; set; } SCNHitTestSearchMode SearchMode { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] bool IgnoreLightArea { get; set; } } - [Watch (3,0)] + [Watch (3, 0)] [StrongDictionary ("SCNSceneSourceLoading")] interface SCNSceneLoadingOptions { NSUrl [] AssetDirectoryUrls { get; set; } @@ -1799,57 +1802,57 @@ namespace SceneKit { NSString _AnimationImportPolicyKey { get; set; } } - [iOS (8,0)] + [iOS (8, 0)] delegate bool SCNNodePredicate (SCNNode node, out bool stop); [iOS (8, 0)] delegate void SCNNodeHandler (SCNNode node, out bool stop); - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] - interface SCNNode : SCNAnimatable, SCNBoundingVolume, SCNActionable, NSCopying, NSSecureCoding + interface SCNNode : SCNAnimatable, SCNBoundingVolume, SCNActionable, NSCopying, NSSecureCoding #if IOS || TVOS , UIFocusItem #endif { [Export ("transform")] - SCNMatrix4 Transform { get; set; } + SCNMatrix4 Transform { get; set; } [Export ("position")] - SCNVector3 Position { get; set; } + SCNVector3 Position { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("worldPosition", ArgumentSemantic.Assign)] SCNVector3 WorldPosition { get; set; } [Export ("rotation")] - SCNVector4 Rotation { get; set; } + SCNVector4 Rotation { get; set; } [Export ("scale")] - SCNVector3 Scale { get; set; } + SCNVector3 Scale { get; set; } [Export ("pivot")] - SCNMatrix4 Pivot { get; set; } + SCNMatrix4 Pivot { get; set; } [Export ("worldTransform")] - SCNMatrix4 WorldTransform { get; [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] set; } + SCNMatrix4 WorldTransform { get; [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] set; } [Export ("hidden")] - bool Hidden { [Bind ("isHidden")] get; set; } + bool Hidden { [Bind ("isHidden")] get; set; } [Export ("opacity")] - nfloat Opacity { get; set; } + nfloat Opacity { get; set; } [Export ("renderingOrder")] - nint RenderingOrder { get; set; } + nint RenderingOrder { get; set; } [Export ("parentNode")] [NullAllowed] - SCNNode ParentNode { get; } + SCNNode ParentNode { get; } [Export ("childNodes")] - SCNNode [] ChildNodes { get; } + SCNNode [] ChildNodes { get; } [Export ("light", ArgumentSemantic.Retain)] [NullAllowedAttribute] @@ -1857,7 +1860,7 @@ namespace SceneKit { [NullAllowed] // by default this property is null [Export ("camera", ArgumentSemantic.Retain)] - SCNCamera Camera { get; set; } + SCNCamera Camera { get; set; } [Export ("geometry", ArgumentSemantic.Retain)] [NullAllowed] @@ -1865,11 +1868,11 @@ namespace SceneKit { [NullAllowed] // by default this property is null [Export ("name", ArgumentSemantic.Copy)] - string Name { get; set; } + string Name { get; set; } [NoWatch] [Export ("rendererDelegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakRendererDelegate { get; set; } + NSObject WeakRendererDelegate { get; set; } [NoWatch] [Wrap ("WeakRendererDelegate")] @@ -1908,25 +1911,25 @@ namespace SceneKit { [Export ("clone")] SCNNode Clone (); - [Mac (10,9)] + [Mac (10, 9)] [NullAllowed] // by default this property is null [Export ("skinner", ArgumentSemantic.Retain)] SCNSkinner Skinner { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [NullAllowed] // by default this property is null [Export ("morpher", ArgumentSemantic.Retain)] SCNMorpher Morpher { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("worldOrientation", ArgumentSemantic.Assign)] SCNQuaternion WorldOrientation { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("orientation")] SCNQuaternion Orientation { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("constraints", ArgumentSemantic.Copy)] [NullAllowed] SCNConstraint [] Constraints { get; set; } @@ -1936,35 +1939,35 @@ namespace SceneKit { [Export ("filters", ArgumentSemantic.Copy)] CIFilter [] Filters { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("flattenedClone")] SCNNode FlattenedClone (); - [Mac (10,9)] + [Mac (10, 9)] [Export ("convertPosition:toNode:")] SCNVector3 ConvertPositionToNode (SCNVector3 position, [NullAllowed] SCNNode node); - [Mac (10,9)] + [Mac (10, 9)] [Export ("convertPosition:fromNode:")] SCNVector3 ConvertPositionFromNode (SCNVector3 position, [NullAllowed] SCNNode node); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("convertVector:toNode:")] SCNVector3 ConvertVectorToNode (SCNVector3 vector, [NullAllowed] SCNNode node); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("convertVector:fromNode:")] SCNVector3 ConvertVectorFromNode (SCNVector3 vector, [NullAllowed] SCNNode node); - [Mac (10,9)] + [Mac (10, 9)] [Export ("convertTransform:fromNode:")] SCNMatrix4 ConvertTransformFromNode (SCNMatrix4 transform, [NullAllowed] SCNNode node); - [Mac (10,9)] + [Mac (10, 9)] [Export ("convertTransform:toNode:")] SCNMatrix4 ConvertTransformToNode (SCNMatrix4 transform, [NullAllowed] SCNNode node); - [Mac (10,9)] + [Mac (10, 9)] [Export ("hitTestWithSegmentFromPoint:toPoint:options:")] [EditorBrowsable (EditorBrowsableState.Advanced)] SCNHitTestResult [] HitTest (SCNVector3 pointA, SCNVector3 pointB, [NullAllowed] NSDictionary options); @@ -1972,11 +1975,11 @@ namespace SceneKit { [Wrap ("HitTest (pointA, pointB, options.GetDictionary ())")] SCNHitTestResult [] HitTest (SCNVector3 pointA, SCNVector3 pointB, [NullAllowed] SCNHitTestOptions options); - [Mac (10,10)] + [Mac (10, 10)] [Export ("eulerAngles")] SCNVector3 EulerAngles { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("castsShadow")] bool CastsShadow { get; set; } @@ -1984,24 +1987,24 @@ namespace SceneKit { [Export ("movabilityHint", ArgumentSemantic.Assign)] SCNMovabilityHint MovabilityHint { get; set; } - [Mac (10,10)] // More broken 32-bit code, 17710842 + [Mac (10, 10)] // More broken 32-bit code, 17710842 [Export ("physicsBody", ArgumentSemantic.Retain), NullAllowed] SCNPhysicsBody PhysicsBody { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("physicsField", ArgumentSemantic.Retain)] SCNPhysicsField PhysicsField { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("paused")] bool Paused { [Bind ("isPaused")] get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("categoryBitMask")] nuint CategoryBitMask { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("enumerateChildNodesUsingBlock:")] void EnumerateChildNodes (SCNNodeHandler handler); @@ -2009,26 +2012,26 @@ namespace SceneKit { [Export ("enumerateHierarchyUsingBlock:")] void EnumerateHierarchy (SCNNodeHandler handler); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("focusBehavior", ArgumentSemantic.Assign)] SCNNodeFocusBehavior FocusBehavior { get; set; } #region SCNParticleSystemSupport (SCNNode) category - [Mac (10,10)] + [Mac (10, 10)] [Export ("particleSystems")] [NullAllowed] SCNParticleSystem [] ParticleSystems { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("addParticleSystem:")] void AddParticleSystem (SCNParticleSystem system); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeAllParticleSystems")] void RemoveAllParticleSystems (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeParticleSystem:")] void RemoveParticleSystem (SCNParticleSystem system); @@ -2036,76 +2039,76 @@ namespace SceneKit { #region SCNAudioSupport (SCNNode) category - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("audioPlayers")] SCNAudioPlayer [] AudioPlayers { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("addAudioPlayer:")] void AddAudioPlayer (SCNAudioPlayer player); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("removeAllAudioPlayers")] void RemoveAllAudioPlayers (); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("removeAudioPlayer:")] void RemoveAudioPlayer (SCNAudioPlayer player); #endregion [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("nodeWithMDLObject:")] SCNNode FromModelObject (MDLObject mdlObject); // From SCNNode (Transforms) Category - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("localUp")] SCNVector3 LocalUp { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("localRight")] SCNVector3 LocalRight { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("localFront")] SCNVector3 LocalFront { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("worldUp")] SCNVector3 WorldUp { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("worldRight")] SCNVector3 WorldRight { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("worldFront")] SCNVector3 WorldFront { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("lookAt:")] void Look (SCNVector3 worldTarget); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("lookAt:up:localFront:")] void Look (SCNVector3 worldTarget, SCNVector3 worldUp, SCNVector3 localFront); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("localTranslateBy:")] void LocalTranslate (SCNVector3 translation); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("localRotateBy:")] void LocalRotate (SCNQuaternion rotation); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("rotateBy:aroundTarget:")] void Rotate (SCNQuaternion worldRotation, SCNVector3 worldTarget); @@ -2369,7 +2372,7 @@ namespace SceneKit { } [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [Model, Protocol] interface SCNNodeRendererDelegate { @@ -2377,30 +2380,30 @@ namespace SceneKit { void Render (SCNNode node, SCNRenderer renderer, NSDictionary arguments); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNPlane { [Export ("width")] - nfloat Width { get; set; } + nfloat Width { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("widthSegmentCount")] - nint WidthSegmentCount { get; set; } + nint WidthSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Static, Export ("planeWithWidth:height:")] SCNPlane Create (nfloat width, nfloat height); - [Mac (10,9)] + [Mac (10, 9)] [Export ("cornerRadius")] nfloat CornerRadius { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("cornerSegmentCount")] nint CornerSegmentCount { get; set; } } @@ -2414,23 +2417,25 @@ namespace SceneKit { delegate void SCNBufferBindingHandler2 (ISCNBufferStream buffer, SCNNode node, ISCNShadable shadable, SCNRenderer renderer); #endif // NET - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] interface SCNProgram : NSCopying, NSSecureCoding { [NullAllowed] [Export ("vertexShader", ArgumentSemantic.Copy)] - string VertexShader { get; set; } + string VertexShader { get; set; } [NullAllowed] [Export ("fragmentShader", ArgumentSemantic.Copy)] - string FragmentShader { get; set; } + string FragmentShader { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] [Export ("vertexFunctionName")] string VertexFunctionName { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] [Export ("fragmentFunctionName")] string FragmentFunctionName { get; set; } @@ -2441,18 +2446,20 @@ namespace SceneKit { void HandleBinding (string name, SCNBufferFrequency frequency, SCNBufferBindingHandler handler); #else [Obsolete ("Use 'HandleBinding' overload with 'SCNBufferBindingHandler2' parameter instead.")] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("handleBindingOfBufferNamed:frequency:usingBlock:")] void HandleBinding (string name, SCNBufferFrequency frequency, SCNBufferBindingHandler handler); [Sealed] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("handleBindingOfBufferNamed:frequency:usingBlock:")] void HandleBinding (string name, SCNBufferFrequency frequency, SCNBufferBindingHandler2 handler); #endif // NET [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] @@ -2484,30 +2491,33 @@ namespace SceneKit { [EditorBrowsable (EditorBrowsableState.Advanced)] NSString MappingChannelKey { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("opaque")] bool Opaque { [Bind ("isOpaque")] get; set; } [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed] [Export ("library", ArgumentSemantic.Retain)] IMTLLibrary Library { get; set; } } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [Model, Protocol] interface SCNProgramDelegate { [Unavailable (PlatformName.iOS)] - [NoTV][NoMacCatalyst] + [NoTV] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("program:bindValueForSymbol:atLocation:programID:renderer:")] bool BindValue (SCNProgram program, string symbol, uint /* unsigned int */ location, uint /* unsigned int */ programID, SCNRenderer renderer); [Unavailable (PlatformName.iOS)] - [NoTV][NoMacCatalyst] + [NoTV] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 10)] [Export ("program:unbindValueForSymbol:atLocation:programID:renderer:")] void UnbindValue (SCNProgram program, string symbol, uint /* unsigned int */ location, uint /* unsigned int */ programID, SCNRenderer renderer); @@ -2523,39 +2533,39 @@ namespace SceneKit { bool IsProgramOpaque (SCNProgram program); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNPyramid { [Export ("width")] - nfloat Width { get; set; } + nfloat Width { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("length")] - nfloat Length { get; set; } + nfloat Length { get; set; } [Export ("widthSegmentCount")] - nint WidthSegmentCount { get; set; } + nint WidthSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Export ("lengthSegmentCount")] - nint LengthSegmentCount { get; set; } + nint LengthSegmentCount { get; set; } [Static, Export ("pyramidWithWidth:height:length:")] SCNPyramid Create (nfloat width, nfloat height, nfloat length); } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: -[SCNRenderer init]: unrecognized selector sent to instance 0x7ce85a30 interface SCNRenderer : SCNSceneRenderer, SCNTechniqueSupport { -// We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. -// [Export ("scene", ArgumentSemantic.Retain)] -// SCNScene Scene { get; set; } + // We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. + // [Export ("scene", ArgumentSemantic.Retain)] + // SCNScene Scene { get; set; } // options: nothing today, it is reserved for future use [NoMacCatalyst] @@ -2577,7 +2587,7 @@ namespace SceneKit { [NoMacCatalyst] void Render (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("renderAtTime:")] void Render (double timeInSeconds); @@ -2585,22 +2595,24 @@ namespace SceneKit { [Export ("snapshotAtTime:withSize:antialiasingMode:")] NSImage GetSnapshot (double time, CGSize size, SCNAntialiasingMode antialiasingMode); - [Mac (10,10)] + [Mac (10, 10)] [Export ("nextFrameTime")] double NextFrameTimeInSeconds { get; } [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("rendererWithDevice:options:")] SCNRenderer FromDevice ([NullAllowed] IMTLDevice device, [NullAllowed] NSDictionary options); [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("renderAtTime:viewport:commandBuffer:passDescriptor:")] void Render (double timeInSeconds, CGRect viewport, IMTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor); - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("renderWithViewport:commandBuffer:passDescriptor:")] void Render (CGRect viewport, IMTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor); @@ -2608,14 +2620,14 @@ namespace SceneKit { [Export ("updateProbes:atTime:")] void Update (SCNNode [] lightProbes, double time); - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("updateAtTime:")] void Update (double time); - + } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNRenderingArguments { [Field ("SCNModelTransform")] @@ -2623,29 +2635,29 @@ namespace SceneKit { [Field ("SCNViewTransform")] NSString ViewTransform { get; } - + [Field ("SCNProjectionTransform")] NSString ProjectionTransform { get; } - + [Field ("SCNNormalTransform")] NSString NormalTransform { get; } - + [Field ("SCNModelViewTransform")] NSString ModelViewTransform { get; } - + [Field ("SCNModelViewProjectionTransform")] NSString ModelViewProjectionTransform { get; } } - [Mac (10,9), iOS (8,0)] + [Mac (10, 9), iOS (8, 0)] delegate void SCNSceneExportProgressHandler (float /* float, not CGFloat */ totalProgress, NSError error, out bool stop); - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNScene : #if !WATCH - GKSceneRootNodeType , + GKSceneRootNodeType, #endif NSSecureCoding { @@ -2674,16 +2686,16 @@ namespace SceneKit { [return: NullAllowed] SCNScene FromUrl (NSUrl url, [NullAllowed] SCNSceneLoadingOptions options, out NSError error); - + [Field ("SCNSceneExportDestinationURL")] NSString ExportDestinationUrl { get; } - [Mac (10,10)] // More 32-bit brokenness - 17710842 + [Mac (10, 10)] // More 32-bit brokenness - 17710842 [Export ("physicsWorld")] SCNPhysicsWorld PhysicsWorld { get; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("background")] SCNMaterialProperty Background { get; } @@ -2691,23 +2703,23 @@ namespace SceneKit { [Export ("lightingEnvironment")] SCNMaterialProperty LightingEnvironment { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("fogStartDistance")] nfloat FogStartDistance { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("fogEndDistance")] nfloat FogEndDistance { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("fogDensityExponent")] nfloat FogDensityExponent { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("fogColor", ArgumentSemantic.Retain)] NSObject FogColor { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("paused")] bool Paused { [Bind ("isPaused")] get; set; } @@ -2715,13 +2727,13 @@ namespace SceneKit { [return: NullAllowed] SCNScene FromFile (string name); - [Mac (10,10)] + [Mac (10, 10)] [Static, Export ("sceneNamed:inDirectory:options:")] [EditorBrowsable (EditorBrowsableState.Advanced)] [return: NullAllowed] SCNScene FromFile (string name, [NullAllowed] string directory, [NullAllowed] NSDictionary options); - [Mac (10,10)] + [Mac (10, 10)] [Static, Wrap ("FromFile (name, directory, options.GetDictionary ())")] [return: NullAllowed] SCNScene FromFile (string name, string directory, SCNSceneLoadingOptions options); @@ -2742,20 +2754,20 @@ namespace SceneKit { #region SCNParticleSystemSupport (SCNNode) category - [Mac (10,10)] + [Mac (10, 10)] [Export ("particleSystems")] [NullAllowed] SCNParticleSystem [] ParticleSystems { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("addParticleSystem:withTransform:")] void AddParticleSystem (SCNParticleSystem system, SCNMatrix4 transform); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeAllParticleSystems")] void RemoveAllParticleSystems (); - [Mac (10,10)] + [Mac (10, 10)] [Export ("removeParticleSystem:")] void RemoveParticleSystem (SCNParticleSystem system); @@ -2770,29 +2782,29 @@ namespace SceneKit { [Field ("SCNSceneFrameRateAttributeKey")] NSString FrameRateAttributeKey { get; } - [Mac (10,10)] + [Mac (10, 10)] [Field ("SCNSceneUpAxisAttributeKey")] NSString UpAxisAttributeKey { get; } [NoWatch] - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("sceneWithMDLAsset:")] SCNScene FromAsset (MDLAsset asset); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("wantsScreenSpaceReflection")] bool WantsScreenSpaceReflection { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("screenSpaceReflectionSampleCount")] nint ScreenSpaceReflectionSampleCount { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("screenSpaceReflectionMaximumDistance")] nfloat ScreenSpaceReflectionMaximumDistance { get; set; } - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("screenSpaceReflectionStride")] nfloat ScreenSpaceReflectionStride { get; set; } } @@ -2809,18 +2821,18 @@ namespace SceneKit { NSUrl WriteImage (NSImage image, NSUrl documentUrl, [NullAllowed] NSUrl originalImageUrl); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNSceneSource { [Export ("url")] [NullAllowed] - NSUrl Url { get; } + NSUrl Url { get; } [Export ("data")] [NullAllowed] - NSData Data { get; } + NSData Data { get; } [Static, Export ("sceneSourceWithURL:options:")] [EditorBrowsable (EditorBrowsableState.Advanced)] @@ -2855,7 +2867,7 @@ namespace SceneKit { [Wrap ("this (data, options.GetDictionary ())")] NativeHandle Constructor (NSData data, SCNSceneLoadingOptions options); - + [Export ("sceneWithOptions:statusHandler:")] [EditorBrowsable (EditorBrowsableState.Advanced)] [return: NullAllowed] @@ -2885,70 +2897,70 @@ namespace SceneKit { [Export ("identifiersOfEntriesWithClass:")] string [] GetIdentifiersOfEntries (Class entryClass); - [Mac (10,9)] + [Mac (10, 9)] [Export ("entriesPassingTest:")] - NSObject [] EntriesPassingTest (SCNSceneSourceFilter predicate); + NSObject [] EntriesPassingTest (SCNSceneSourceFilter predicate); } delegate bool SCNSceneSourceFilter (NSObject entry, NSString identifier, ref bool stop); - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNSceneSourceLoading { [Field ("SCNSceneSourceAssetDirectoryURLsKey")] NSString AssetDirectoryUrlsKey { get; } - + [Field ("SCNSceneSourceCreateNormalsIfAbsentKey")] NSString CreateNormalsIfAbsentKey { get; } - + [Field ("SCNSceneSourceFlattenSceneKey")] NSString FlattenSceneKey { get; } - + [Field ("SCNSceneSourceCheckConsistencyKey")] NSString CheckConsistencyKey { get; } - + [Field ("SCNSceneSourceOverrideAssetURLsKey")] NSString OverrideAssetUrlsKey { get; } [Field ("SCNSceneSourceStrictConformanceKey")] NSString StrictConformanceKey { get; } - + [Deprecated (PlatformName.WatchOS, 4, 0)] [Deprecated (PlatformName.TvOS, 11, 0)] [Deprecated (PlatformName.iOS, 11, 0)] [Deprecated (PlatformName.MacOSX, 10, 13)] [Field ("SCNSceneSourceUseSafeModeKey")] - NSString UseSafeModeKey { get; } + NSString UseSafeModeKey { get; } - [Mac(10,10)] + [Mac (10, 10)] // header said NA and docs says "Available in iOS 8.0 through iOS 8.2." but it's back on iOS11 - [TV (11,0), Watch (4,0)] + [TV (11, 0), Watch (4, 0)] [Field ("SCNSceneSourceConvertUnitsToMetersKey")] NSString ConvertUnitsToMetersKey { get; } - [Mac(10,10)] + [Mac (10, 10)] // header said NA and docs says "Available in iOS 8.0 through iOS 8.2." but it's back on iOS11 - [TV (11,0), Watch (4,0)] + [TV (11, 0), Watch (4, 0)] [Field ("SCNSceneSourceConvertToYUpKey")] NSString ConvertToYUpKey { get; } - [Mac(10,10)] + [Mac (10, 10)] [Field ("SCNSceneSourceAnimationImportPolicyKey")] NSString AnimationImportPolicyKey { get; } - - [Mac(10,10)] + + [Mac (10, 10)] [Field ("SCNSceneSourceAnimationImportPolicyPlay")] NSString AnimationImportPolicyPlay { get; } - - [Mac(10,10)] + + [Mac (10, 10)] [Field ("SCNSceneSourceAnimationImportPolicyPlayRepeatedly")] NSString AnimationImportPolicyPlayRepeatedly { get; } - - [Mac(10,10)] + + [Mac (10, 10)] [Field ("SCNSceneSourceAnimationImportPolicyDoNotPlay")] NSString AnimationImportPolicyDoNotPlay { get; } - - [Mac(10,10)] + + [Mac (10, 10)] [Field ("SCNSceneSourceAnimationImportPolicyPlayUsingSceneTimeBase")] NSString AnimationImportPolicyPlayUsingSceneTimeBase { get; } @@ -2957,39 +2969,39 @@ namespace SceneKit { NSString OptionPreserveOriginalTopology { get; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNSceneSourceLoadErrors { [Field ("SCNConsistencyElementIDErrorKey")] NSString ConsistencyElementIDErrorKey { get; } - + [Field ("SCNConsistencyElementTypeErrorKey")] NSString ConsistencyElementTypeErrorKey { get; } - + [Field ("SCNConsistencyLineNumberErrorKey")] NSString ConsistencyLineNumberErrorKey { get; } - + [Field ("SCNDetailedErrorsKey")] NSString DetailedErrorsKey { get; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Static] interface SCNSceneSourceProperties { [Field ("SCNSceneSourceAssetContributorsKey")] NSString AssetContributorsKey { get; } - + [Field ("SCNSceneSourceAssetCreatedDateKey")] NSString AssetCreatedDateKey { get; } - + [Field ("SCNSceneSourceAssetModifiedDateKey")] NSString AssetModifiedDateKey { get; } - + [Field ("SCNSceneSourceAssetUpAxisKey")] NSString AssetUpAxisKey { get; } - + [Field ("SCNSceneSourceAssetUnitKey")] NSString AssetUnitKey { get; } @@ -3006,10 +3018,10 @@ namespace SceneKit { NSString AssetUnitMeterKey { get; } } - interface ISCNSceneRenderer {} + interface ISCNSceneRenderer { } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [MacCatalyst (13, 0)] [TV (9, 0)] [Mac (10, 8)] @@ -3018,7 +3030,7 @@ namespace SceneKit { interface SCNSceneRenderer { [Abstract] [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] - NSObject WeakSceneRendererDelegate { get; set; } + NSObject WeakSceneRendererDelegate { get; set; } [Wrap ("WeakSceneRendererDelegate")] [Protocolize] @@ -3026,24 +3038,24 @@ namespace SceneKit { [Abstract] [Export ("playing")] - bool Playing { [Bind ("isPlaying")] get; set; } + bool Playing { [Bind ("isPlaying")] get; set; } [Abstract] [Export ("loops")] - bool Loops { get; set; } + bool Loops { get; set; } [Abstract] [Export ("pointOfView", ArgumentSemantic.Retain)] [NullAllowed] - SCNNode PointOfView { get; set; } + SCNNode PointOfView { get; set; } [Abstract] [Export ("autoenablesDefaultLighting")] - bool AutoenablesDefaultLighting { get; set; } + bool AutoenablesDefaultLighting { get; set; } [Abstract] [Export ("jitteringEnabled")] - bool JitteringEnabled { [Bind ("isJitteringEnabled")] get; set; } + bool JitteringEnabled { [Bind ("isJitteringEnabled")] get; set; } [Abstract] #if NET @@ -3053,12 +3065,14 @@ namespace SceneKit { #endif [NoMacCatalyst] [Export ("context")] - IntPtr Context { get; } + IntPtr Context { get; } #if NET [Abstract] #endif - [NoTV][NoWatch][NoMacCatalyst] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 10)] [NoiOS] [Export ("currentTime")] @@ -3073,17 +3087,17 @@ namespace SceneKit { SCNHitTestResult [] HitTest (CGPoint thePoint, SCNHitTestOptions options); [Abstract] - [Mac (10,9)] + [Mac (10, 9)] [Export ("showsStatistics")] bool ShowsStatistics { get; set; } [Abstract] - [Mac (10,10)] + [Mac (10, 10)] [Export ("sceneTime")] double SceneTimeInSeconds { get; set; } [Abstract] - [Mac (10,10)] + [Mac (10, 10)] [NullAllowed] [Export ("scene", ArgumentSemantic.Retain)] SCNScene Scene { get; set; } @@ -3093,40 +3107,41 @@ namespace SceneKit { // [0]: https://developer.apple.com/documentation/scenekit/scnscenerenderer/1524051-overlayskscene // [1]: https://github.com/xamarin/xamarin-macios/issues/3392 [NullAllowed] - [Mac (10,10)] + [Mac (10, 10)] [Export ("overlaySKScene", ArgumentSemantic.Retain)] SKScene OverlayScene { get; set; } [Abstract] - [Mac (10,9)] + [Mac (10, 9)] [Export ("isNodeInsideFrustum:withPointOfView:")] bool IsNodeInsideFrustum (SCNNode node, SCNNode pointOfView); [Abstract] - [Mac (10,9)] + [Mac (10, 9)] [Export ("projectPoint:")] SCNVector3 ProjectPoint (SCNVector3 point); [Abstract] - [Mac (10,9)] + [Mac (10, 9)] [Export ("unprojectPoint:")] SCNVector3 UnprojectPoint (SCNVector3 point); [Abstract] - [Mac (10,9)] + [Mac (10, 9)] [Export ("prepareObject:shouldAbortBlock:")] bool Prepare (NSObject obj, [NullAllowed] Func abortHandler); [Abstract] - [Mac (10,10)] + [Mac (10, 10)] [Async] [Export ("prepareObjects:withCompletionHandler:")] void Prepare (NSObject [] objects, [NullAllowed] Action completionHandler); - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif - [iOS (9,0)][Mac (10,11)] // SKTransition -> SpriteKit -> only on 64 bits +#endif + [iOS (9, 0)] + [Mac (10, 11)] // SKTransition -> SpriteKit -> only on 64 bits [Async] [Export ("presentScene:withTransition:incomingPointOfView:completionHandler:")] void PresentScene (SCNScene scene, SKTransition transition, [NullAllowed] SCNNode pointOfView, [NullAllowed] Action completionHandler); @@ -3134,76 +3149,86 @@ namespace SceneKit { #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("nodesInsideFrustumWithPointOfView:")] - SCNNode[] GetNodesInsideFrustum (SCNNode pointOfView); + SCNNode [] GetNodesInsideFrustum (SCNNode pointOfView); #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("debugOptions", ArgumentSemantic.Assign)] SCNDebugOptions DebugOptions { get; set; } #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("renderingAPI")] SCNRenderingApi RenderingApi { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] // IMTLRenderCommandEncoder -> Metal -> only on 64 bits + [iOS (9, 0)] + [Mac (10, 11)] // IMTLRenderCommandEncoder -> Metal -> only on 64 bits [NullAllowed, Export ("currentRenderCommandEncoder")] IMTLRenderCommandEncoder CurrentRenderCommandEncoder { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("device")] IMTLDevice Device { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("colorPixelFormat")] MTLPixelFormat ColorPixelFormat { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("depthPixelFormat")] MTLPixelFormat DepthPixelFormat { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("stencilPixelFormat")] MTLPixelFormat StencilPixelFormat { get; } - #if NET +#if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) - #endif +#endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("commandQueue")] IMTLCommandQueue CommandQueue { get; } #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("audioEngine")] AVAudioEngine AudioEngine { get; } @@ -3211,7 +3236,8 @@ namespace SceneKit { [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("audioEnvironmentNode")] [DebuggerBrowsable (DebuggerBrowsableState.Never)] AVAudioEnvironmentNode AudioEnvironmentNode { get; } @@ -3219,7 +3245,8 @@ namespace SceneKit { #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [NullAllowed, Export ("audioListener", ArgumentSemantic.Retain)] [DebuggerBrowsable (DebuggerBrowsableState.Never)] SCNNode AudioListener { get; set; } @@ -3227,26 +3254,28 @@ namespace SceneKit { #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("temporalAntialiasingEnabled")] bool TemporalAntialiasingEnabled { [Bind ("isTemporalAntialiasingEnabled")] get; set; } #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("currentViewport")] CGRect CurrentViewport { get; } #if NET [Abstract] // this protocol existed before iOS 9 (or OSX 10.11) and we cannot add abstract members to it (breaking changes) #endif - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("usesReverseZ")] bool UsesReverseZ { get; set; } [NoWatch] - [TV (14,0)][Mac (10,11)][iOS (14,0)] + [TV (14, 0)] + [Mac (10, 11)] + [iOS (14, 0)] #if NET [Abstract] #endif @@ -3254,8 +3283,8 @@ namespace SceneKit { MTLRenderPassDescriptor CurrentRenderPassDescriptor { get; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNSceneRendererDelegate { @@ -3266,71 +3295,74 @@ namespace SceneKit { [Export ("renderer:didRenderScene:atTime:")] void DidRenderScene (ISCNSceneRenderer renderer, SCNScene scene, double timeInSeconds); - [Mac (10,10)] + [Mac (10, 10)] [Export ("renderer:updateAtTime:")] void Update (ISCNSceneRenderer renderer, double timeInSeconds); - [Mac (10,10)] + [Mac (10, 10)] [Export ("renderer:didApplyAnimationsAtTime:")] void DidApplyAnimations (ISCNSceneRenderer renderer, double timeInSeconds); - [Mac (10,10)] + [Mac (10, 10)] [Export ("renderer:didSimulatePhysicsAtTime:")] void DidSimulatePhysics (ISCNSceneRenderer renderer, double timeInSeconds); - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("renderer:didApplyConstraintsAtTime:")] void DidApplyConstraints (ISCNSceneRenderer renderer, double atTime); - - } - [Watch (3,0)] - [iOS (8,0)] + } + + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface SCNSphere { [Export ("radius")] - nfloat Radius { get; set; } + nfloat Radius { get; set; } [Export ("geodesic")] - bool Geodesic { [Bind ("isGeodesic")] get; set; } + bool Geodesic { [Bind ("isGeodesic")] get; set; } [Export ("segmentCount")] - nint SegmentCount { get; set; } + nint SegmentCount { get; set; } [Static, Export ("sphereWithRadius:")] SCNSphere Create (nfloat radius); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface SCNText { [Export ("extrusionDepth")] - nfloat ExtrusionDepth { get; set; } + nfloat ExtrusionDepth { get; set; } [Export ("string", ArgumentSemantic.Copy)] [NullAllowed] - NSObject String { get; set; } + NSObject String { get; set; } [Export ("containerFrame")] - CGRect ContainerFrame { get; set; } + CGRect ContainerFrame { get; set; } // removed in iOS8 beta 5 - but it was already existing in 10.8 ? - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Export ("textSize")] - CGSize TextSize { get; } + CGSize TextSize { get; } [Export ("truncationMode", ArgumentSemantic.Copy)] - string TruncationMode { get; set; } + string TruncationMode { get; set; } [Export ("alignmentMode", ArgumentSemantic.Copy)] - string AlignmentMode { get; set; } + string AlignmentMode { get; set; } [Export ("chamferRadius")] - nfloat ChamferRadius { get; set; } + nfloat ChamferRadius { get; set; } [Static, Export ("textWithString:extrusionDepth:")] SCNText Create ([NullAllowed] NSObject str, nfloat extrusionDepth); @@ -3342,39 +3374,39 @@ namespace SceneKit { [Export ("wrapped")] bool Wrapped { [Bind ("isWrapped")] get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("chamferProfile", ArgumentSemantic.Copy)] [NullAllowed] NSBezierPath ChamferProfile { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("flatness")] nfloat Flatness { get; set; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface SCNTorus { [Export ("ringRadius")] - nfloat RingRadius { get; set; } + nfloat RingRadius { get; set; } [Export ("pipeRadius")] - nfloat PipeRadius { get; set; } + nfloat PipeRadius { get; set; } [Export ("ringSegmentCount")] - nint RingSegmentCount { get; set; } + nint RingSegmentCount { get; set; } [Export ("pipeSegmentCount")] - nint PipeSegmentCount { get; set; } + nint PipeSegmentCount { get; set; } [Static, Export ("torusWithRingRadius:pipeRadius:")] SCNTorus Create (nfloat ringRadius, nfloat pipeRadius); } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNTransaction { [Static] @@ -3424,31 +3456,32 @@ namespace SceneKit { bool DisableActions { get; set; } } - [Watch (3,0)] - [iOS (8,0)] + [Watch (3, 0)] + [iOS (8, 0)] [BaseType (typeof (SCNGeometry))] interface SCNTube { [Export ("innerRadius")] - nfloat InnerRadius { get; set; } + nfloat InnerRadius { get; set; } [Export ("outerRadius")] - nfloat OuterRadius { get; set; } + nfloat OuterRadius { get; set; } [Export ("height")] - nfloat Height { get; set; } + nfloat Height { get; set; } [Export ("radialSegmentCount")] - nint RadialSegmentCount { get; set; } + nint RadialSegmentCount { get; set; } [Export ("heightSegmentCount")] - nint HeightSegmentCount { get; set; } + nint HeightSegmentCount { get; set; } [Static, Export ("tubeWithInnerRadius:outerRadius:height:")] SCNTube Create (nfloat innerRadius, nfloat outerRadius, nfloat height); } [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Internal] // we'll make it public if there's a need for them (beside the strong dictionary we provide) interface SCNRenderingOptionsKeys { @@ -3466,44 +3499,55 @@ namespace SceneKit { #if !WATCH [NoWatch] - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [StrongDictionary ("SCNRenderingOptionsKeys")] - interface SCNRenderingOptions - { + interface SCNRenderingOptions { IMTLDevice Device { get; set; } bool LowPowerDevice { get; set; } } #endif - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSView))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface SCNView : SCNSceneRenderer, SCNTechniqueSupport { -// We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. -// [Export ("scene", ArgumentSemantic.Retain)] -// SCNScene Scene { get; set; } + // We already pull in the Scene property from the SCNSceneRenderer protocol, no need to redefine it here. + // [Export ("scene", ArgumentSemantic.Retain)] + // SCNScene Scene { get; set; } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Export ("backgroundColor", ArgumentSemantic.Copy)] - NSColor BackgroundColor { get; set; } + NSColor BackgroundColor { get; set; } [Export ("allowsCameraControl")] - bool AllowsCameraControl { get; set; } + bool AllowsCameraControl { get; set; } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [Export ("openGLContext", ArgumentSemantic.Retain)] [NullAllowed] - NSOpenGLContext OpenGLContext { get; set; } + NSOpenGLContext OpenGLContext { get; set; } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [Export ("pixelFormat", ArgumentSemantic.Retain)] [NullAllowed] - NSOpenGLPixelFormat PixelFormat { get; set; } + NSOpenGLPixelFormat PixelFormat { get; set; } - [NoMac][NoWatch][NoMacCatalyst] + [NoMac] + [NoWatch] + [NoMacCatalyst] [Deprecated (PlatformName.iOS, 12, 0, message: "Please use Metal instead of OpenGL API.")] [Deprecated (PlatformName.TvOS, 12, 0, message: "Please use Metal instead of OpenGL API.")] [Export ("eaglContext", ArgumentSemantic.Retain)] @@ -3511,7 +3555,8 @@ namespace SceneKit { EAGLContext EAGLContext { get; set; } #if !WATCH - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Wrap ("this (frame, options.GetDictionary ())")] NativeHandle Constructor (CGRect frame, [NullAllowed] SCNRenderingOptions options); #endif @@ -3531,15 +3576,15 @@ namespace SceneKit { [Export ("stop:")] void Stop ([NullAllowed] NSObject sender); - [Mac (10,10)] + [Mac (10, 10)] [Export ("snapshot")] NSImage Snapshot (); - [Mac (10,12)] + [Mac (10, 12)] [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("antialiasingMode")] SCNAntialiasingMode AntialiasingMode { get; set; } @@ -3551,11 +3596,11 @@ namespace SceneKit { [Export ("defaultCameraController")] SCNCameraController DefaultCameraController { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("rendersContinuously")] bool RendersContinuously { get; set; } - [NoWatch, NoTV, Mac (10,15), NoiOS] + [NoWatch, NoTV, Mac (10, 15), NoiOS] [NoMacCatalyst] [Export ("drawableResizesAsynchronously")] bool DrawableResizesAsynchronously { get; set; } @@ -3566,8 +3611,8 @@ namespace SceneKit { delegate void SCNAnimationEventHandler (AnimationType animation, NSObject animatedObject, bool playingBackward); #endif - [Watch (4,0)] - [Mac (10,9), iOS (8,0)] + [Watch (4, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNAnimationEvent { @@ -3582,8 +3627,8 @@ namespace SceneKit { #endif } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (SCNGeometry))] partial interface SCNShape { [NullAllowed] // by default this property is null @@ -3607,8 +3652,8 @@ namespace SceneKit { SCNShape Create ([NullAllowed] NSBezierPath path, nfloat extrusionDepth); } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNMorpher : SCNAnimatable, NSSecureCoding { @@ -3618,31 +3663,31 @@ namespace SceneKit { [Export ("calculationMode")] SCNMorpherCalculationMode CalculationMode { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("weights", ArgumentSemantic.Retain)] NSNumber [] Weights { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("unifiesNormals")] bool UnifiesNormals { get; set; } [Export ("setWeight:forTargetAtIndex:")] void SetWeight (nfloat weight, nuint targetIndex); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("setWeight:forTargetNamed:")] void SetWeight (nfloat weight, string targetName); [Export ("weightForTargetAtIndex:")] nfloat GetWeight (nuint targetIndex); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("weightForTargetNamed:")] nfloat GetWeight (string targetName); } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNSkinner : NSSecureCoding { @@ -3654,45 +3699,46 @@ namespace SceneKit { [NullAllowed] SCNGeometry BaseGeometry { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("baseGeometryBindTransform")] SCNMatrix4 BaseGeometryBindTransform { get; set; } - [Mac (10,10)] + [Mac (10, 10)] [Internal, Export ("boneInverseBindTransforms")] [NullAllowed] NSArray _BoneInverseBindTransforms { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("bones")] SCNNode [] Bones { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("boneWeights")] SCNGeometrySource BoneWeights { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("boneIndices")] SCNGeometrySource BoneIndices { get; } - [Mac (10,10)] + [Mac (10, 10)] [Static, Internal, Export ("skinnerWithBaseGeometry:bones:boneInverseBindTransforms:boneWeights:boneIndices:")] SCNSkinner _Create ([NullAllowed] SCNGeometry baseGeometry, SCNNode [] bones, [NullAllowed] NSArray boneInverseBindTransforms, SCNGeometrySource boneWeights, SCNGeometrySource boneIndices); } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (NSObject))] [Abstract] [DisableDefaultCtor] interface SCNConstraint : SCNAnimatable, NSCopying, NSSecureCoding { - [Mac (10,10)] + [Mac (10, 10)] [Export ("influenceFactor")] nfloat InfluenceFactor { get; set; } [Mac (10, 10)] - [TV (11,0)][Watch (4,0)] + [TV (11, 0)] + [Watch (4, 0)] [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } @@ -3701,8 +3747,8 @@ namespace SceneKit { bool Incremental { [Bind ("isIncremental")] get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (SCNConstraint))] [DisableDefaultCtor] interface SCNIKConstraint { @@ -3722,14 +3768,15 @@ namespace SceneKit { [Export ("maxAllowedRotationAngleForJoint:")] nfloat GetMaxAllowedRotationAngle (SCNNode node); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("initWithChainRootNode:")] NativeHandle Constructor (SCNNode chainRootNode); - + } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (SCNConstraint))] [DisableDefaultCtor] interface SCNLookAtConstraint { @@ -3745,7 +3792,7 @@ namespace SceneKit { [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("targetOffset", ArgumentSemantic.Assign)] SCNVector3 TargetOffset { get; set; } - + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("localFront", ArgumentSemantic.Assign)] SCNVector3 LocalFront { get; set; } @@ -3755,31 +3802,31 @@ namespace SceneKit { SCNVector3 WorldUp { get; set; } } - [Mac (10,9), iOS (8,0)] + [Mac (10, 9), iOS (8, 0)] delegate SCNMatrix4 SCNTransformConstraintHandler (SCNNode node, SCNMatrix4 transform); - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (SCNConstraint))] [DisableDefaultCtor] interface SCNTransformConstraint { [Static, Export ("transformConstraintInWorldSpace:withBlock:")] SCNTransformConstraint Create (bool inWorldSpace, SCNTransformConstraintHandler transformHandler); - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("positionConstraintInWorldSpace:withBlock:")] SCNTransformConstraint CreatePositionConstraint (bool inWorldSpace, Func transformHandler); - - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("orientationConstraintInWorldSpace:withBlock:")] SCNTransformConstraint CreateOrientationConstraint (bool inWorldSpace, Func transformHandler); - + } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNLevelOfDetail : NSCopying, NSSecureCoding { @@ -3800,8 +3847,8 @@ namespace SceneKit { SCNLevelOfDetail CreateWithWorldSpaceDistance ([NullAllowed] SCNGeometry geometry, nfloat worldSpaceDistance); } - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [Static] interface _SCNShaderModifiers { [Internal, Field ("SCNShaderModifierEntryPointGeometry")] @@ -3818,8 +3865,8 @@ namespace SceneKit { } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNActionable { @@ -3859,16 +3906,16 @@ namespace SceneKit { #if NET [Abstract] #endif - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("actionKeys")] string [] ActionKeys { get; } } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] delegate void SCNActionNodeWithElapsedTimeHandler (SCNNode node, nfloat elapsedTime); - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] interface SCNAction : NSCopying, NSSecureCoding { @@ -3882,7 +3929,7 @@ namespace SceneKit { #if NET Func TimingFunction { get; set; } #else - Func TimingFunction2 { get; set; } + Func TimingFunction2 { get; set; } #endif [Export ("speed")] @@ -3966,23 +4013,23 @@ namespace SceneKit { [Static, Export ("customActionWithDuration:actionBlock:")] SCNAction CustomAction (double seconds, SCNActionNodeWithElapsedTimeHandler handler); - [Mac (10,11), iOS (9,0)] + [Mac (10, 11), iOS (9, 0)] [Static, Export ("hide")] SCNAction Hide (); - [Mac (10,11), iOS (9,0)] + [Mac (10, 11), iOS (9, 0)] [Static, Export ("unhide")] SCNAction Unhide (); - [Mac (10,11), iOS (9,0)] + [Mac (10, 11), iOS (9, 0)] [Static, Export ("playAudioSource:waitForCompletion:")] SCNAction PlayAudioSource (SCNAudioSource source, bool wait); } - [iOS (8,0)] + [iOS (8, 0)] delegate void SCNBindingHandler (uint /* unsigned int */ programId, uint /* unsigned int */ location, SCNNode renderedNode, SCNRenderer renderer); - [Watch (3,0)] + [Watch (3, 0)] [StrongDictionary ("_SCNShaderModifiers")] interface SCNShaderModifiers { string EntryPointGeometry { get; set; } @@ -3990,26 +4037,26 @@ namespace SceneKit { string EntryPointLightingModel { get; set; } string EntryPointFragment { get; set; } } - - interface ISCNShadable {} - [Watch (3,0)] - [Mac (10,9), iOS (8,0)] + interface ISCNShadable { } + + [Watch (3, 0)] + [Mac (10, 9), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNShadable { - [Mac (10,9)] // Not marked, but crashes 32-bit - 17695192 + [Mac (10, 9)] // Not marked, but crashes 32-bit - 17695192 [NullAllowed] // by default this property is null [Export ("shaderModifiers", ArgumentSemantic.Copy)] NSDictionary WeakShaderModifiers { get; set; } - [Mac (10,9)] // Not marked, but crashes 32-bit - 17695192 + [Mac (10, 9)] // Not marked, but crashes 32-bit - 17695192 [NullAllowed] // by default this property is null [Wrap ("WeakShaderModifiers")] SCNShaderModifiers ShaderModifiers { get; set; } - [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0)] + [Mac (12, 0), iOS (15, 0), TV (15, 0), Watch (8, 0)] [NullAllowed] // by default this property is null [Export ("minimumLanguageVersion", ArgumentSemantic.Retain)] NSNumber MinimumLanguageVersion { get; set; } @@ -4019,17 +4066,17 @@ namespace SceneKit { [Export ("program", ArgumentSemantic.Retain)] SCNProgram Program { get; set; } - [Mac (10,9), NoWatch] + [Mac (10, 9), NoWatch] [Export ("handleBindingOfSymbol:usingBlock:")] void HandleBinding (string symbol, [NullAllowed] SCNBindingHandler handler); - [Mac (10,9), NoWatch] + [Mac (10, 9), NoWatch] [Export ("handleUnbindingOfSymbol:usingBlock:")] - void HandleUnbinding (string symbol, [NullAllowed] SCNBindingHandler handler); + void HandleUnbinding (string symbol, [NullAllowed] SCNBindingHandler handler); } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNTechnique : SCNAnimatable, NSCopying, NSSecureCoding { @@ -4049,35 +4096,37 @@ namespace SceneKit { [Export ("handleBindingOfSymbol:usingBlock:")] void HandleBinding (string symbol, [NullAllowed] SCNBindingHandler handler); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Internal, Export ("objectForKeyedSubscript:")] [return: NullAllowed] NSObject _GetObject (NSObject key); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Internal, Export ("setObject:forKeyedSubscript:")] void _SetObject ([NullAllowed] NSObject obj, INSCopying key); [NoWatch] - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("library", ArgumentSemantic.Strong)] IMTLLibrary Library { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNTechniqueSupport { [Abstract] - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Export ("technique", ArgumentSemantic.Copy)] [NullAllowed] SCNTechnique Technique { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Static] interface SCNPhysicsTestKeys { @@ -4091,8 +4140,8 @@ namespace SceneKit { NSString BackfaceCullingKey { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Static] interface SCNPhysicsTestSearchModeKeys { @@ -4106,8 +4155,8 @@ namespace SceneKit { NSString All { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNPhysicsBody : NSCopying, NSSecureCoding { @@ -4191,48 +4240,48 @@ namespace SceneKit { [Export ("resetTransform")] void ResetTransform (); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("momentOfInertia", ArgumentSemantic.Assign)] SCNVector3 MomentOfInertia { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("usesDefaultMomentOfInertia")] bool UsesDefaultMomentOfInertia { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("contactTestBitMask", ArgumentSemantic.Assign)] - nuint ContactTestBitMask { get; set; } + nuint ContactTestBitMask { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("affectedByGravity")] bool AffectedByGravity { [Bind ("isAffectedByGravity")] get; set; } - - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("setResting:")] void SetResting (bool resting); - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("continuousCollisionDetectionThreshold")] nfloat ContinuousCollisionDetectionThreshold { get; set; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("centerOfMassOffset", ArgumentSemantic.Assign)] SCNVector3 CenterOfMassOffset { get; set; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("linearRestingThreshold")] nfloat LinearRestingThreshold { get; set; } - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("angularRestingThreshold")] nfloat AngularRestingThreshold { get; set; } } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] delegate SCNVector3 SCNFieldForceEvaluator (SCNVector3 position, SCNVector3 velocity, float /* float, not CGFloat */ mass, float /* float, not CGFloat */ charge, double timeInSeconds); - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNPhysicsField : NSCopying, NSSecureCoding { @@ -4301,7 +4350,7 @@ namespace SceneKit { nuint CategoryBitMask { get; set; } } - [Watch (3,0)] + [Watch (3, 0)] [StrongDictionary ("SCNPhysicsTestKeys")] interface SCNPhysicsTest { nuint CollisionBitMask { get; set; } @@ -4311,9 +4360,9 @@ namespace SceneKit { [Internal, Export ("SCNPhysicsTestKeys.SearchModeKey")] NSString _SearchMode { get; set; } } - - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject), Delegates = new [] { "WeakContactDelegate" }, Events = new [] { typeof (SCNPhysicsContactDelegate) } @@ -4382,8 +4431,8 @@ namespace SceneKit { void UpdateCollisionPairs (); } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNPhysicsShape : NSCopying, NSSecureCoding { @@ -4399,21 +4448,21 @@ namespace SceneKit { [EditorBrowsable (EditorBrowsableState.Advanced)] SCNPhysicsShape Create (SCNNode node, [NullAllowed] NSDictionary options); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed, Export ("options"), Internal] NSDictionary _Options { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("sourceObject")] NSObject SourceObject { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed, Export ("transforms")] - NSValue[] Transforms { get; } + NSValue [] Transforms { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface SCNPhysicsShapeOptionsKeys { @@ -4432,8 +4481,8 @@ namespace SceneKit { NSString Type { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] interface SCNPhysicsShapeOptionsTypes { @@ -4448,8 +4497,8 @@ namespace SceneKit { NSString ConcavePolyhedron { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNPhysicsContact { @@ -4472,13 +4521,13 @@ namespace SceneKit { [Export ("penetrationDistance")] nfloat PenetrationDistance { get; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("sweepTestFraction")] nfloat SweepTestFraction { get; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNPhysicsContactDelegate { @@ -4493,8 +4542,8 @@ namespace SceneKit { void DidEndContact (SCNPhysicsWorld world, SCNPhysicsContact contact); } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [Abstract] [DisableDefaultCtor] @@ -4502,8 +4551,8 @@ namespace SceneKit { } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (SCNPhysicsBehavior))] [DisableDefaultCtor] interface SCNPhysicsHingeJoint { @@ -4535,8 +4584,8 @@ namespace SceneKit { SCNVector3 AnchorB { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (SCNPhysicsBehavior))] [DisableDefaultCtor] interface SCNPhysicsBallSocketJoint { @@ -4561,8 +4610,8 @@ namespace SceneKit { SCNVector3 AnchorB { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (SCNPhysicsBehavior))] [DisableDefaultCtor] interface SCNPhysicsSliderJoint { @@ -4618,8 +4667,8 @@ namespace SceneKit { nfloat MotorMaximumTorque { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (SCNPhysicsBehavior))] [DisableDefaultCtor] interface SCNPhysicsVehicle { @@ -4646,8 +4695,8 @@ namespace SceneKit { void ApplyBrakingForce (nfloat value, nint index); } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNPhysicsVehicleWheel : NSCopying, NSSecureCoding { @@ -4692,8 +4741,8 @@ namespace SceneKit { nfloat SuspensionRestLength { get; set; } } - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNParticleSystem : NSCopying, NSSecureCoding, SCNAnimatable { @@ -4872,10 +4921,10 @@ namespace SceneKit { [Export ("particleCharge")] nfloat ParticleCharge { get; set; } - + [Export ("particleChargeVariation")] nfloat ParticleChargeVariation { get; set; } - + [Export ("dampingFactor")] nfloat DampingFactor { get; set; } @@ -4889,7 +4938,7 @@ namespace SceneKit { nfloat FresnelExponent { get; set; } [Introduced (PlatformName.MacCatalyst, 15, 0)] - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0)] [Export ("writesToDepthBuffer")] bool WritesToDepthBuffer { get; set; } @@ -4911,75 +4960,75 @@ namespace SceneKit { [Export ("removeAllModifiers")] void RemoveAllModifiers (); - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("orientationDirection", ArgumentSemantic.Assign)] SCNVector3 OrientationDirection { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("particleIntensity")] nfloat ParticleIntensity { get; set; } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Export ("particleIntensityVariation")] nfloat ParticleIntensityVariation { get; set; } } - [Watch (3,0)] + [Watch (3, 0)] [Static] interface SCNParticleProperty { - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyPosition")] NSString Position { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyAngle")] NSString Angle { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyRotationAxis")] NSString RotationAxis { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyVelocity")] NSString Velocity { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyAngularVelocity")] NSString AngularVelocity { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyLife")] NSString Life { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyColor")] NSString Color { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyOpacity")] NSString Opacity { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertySize")] NSString Size { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyFrame")] NSString Frame { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyFrameRate")] NSString FrameRate { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyBounce")] NSString Bounce { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyCharge")] NSString Charge { get; } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Field ("SCNParticlePropertyFriction")] NSString Friction { get; } @@ -4991,15 +5040,15 @@ namespace SceneKit { [Field ("SCNParticlePropertyContactNormal")] NSString ContactNormal { get; } } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] delegate void SCNParticleEventHandler (IntPtr data, IntPtr dataStride, IntPtr indices, nint count); - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] delegate void SCNParticleModifierHandler (IntPtr data, IntPtr dataStride, nint start, nint end, float /* float, not CGFloat */ deltaTime); - [Watch (3,0)] - [Mac (10,10), iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10), iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCNParticlePropertyController : NSSecureCoding, NSCopying { @@ -5030,8 +5079,9 @@ namespace SceneKit { NSString InputProperty { get; set; } } - [Watch (3,0)] - [iOS (9,0)][Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (SCNConstraint))] interface SCNBillboardConstraint { [Static] @@ -5042,8 +5092,9 @@ namespace SceneKit { SCNBillboardAxis FreeAxes { get; set; } } - [Watch (3,0)] - [iOS (9,0)][Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (SCNNode))] [DisableDefaultCtor] interface SCNReferenceNode : NSCoding { @@ -5074,8 +5125,9 @@ namespace SceneKit { interface ISCNBufferStream { } - [Watch (3,0)] - [iOS (9,0)][Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [Protocol] interface SCNBufferStream { [Abstract] @@ -5083,84 +5135,82 @@ namespace SceneKit { unsafe void Length (IntPtr bytes, nuint length); } - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface SCNTimingFunction : NSSecureCoding - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface SCNTimingFunction : NSSecureCoding { [Static] [Export ("functionWithTimingMode:")] SCNTimingFunction Create (SCNActionTimingMode timingMode); - + [Static, NoWatch] [Export ("functionWithCAMediaTimingFunction:")] SCNTimingFunction Create (CAMediaTimingFunction caTimingFunction); } // Use the Swift name SCNAnimationProtocol since it conflicts with the type name - [Protocol (Name="SCNAnimation")] + [Protocol (Name = "SCNAnimation")] interface SCNAnimationProtocol { } - interface ISCNAnimationProtocol {} + interface ISCNAnimationProtocol { } - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface SCNAnimation : SCNAnimationProtocol, NSCopying, NSSecureCoding - { + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface SCNAnimation : SCNAnimationProtocol, NSCopying, NSSecureCoding { [Static] [Export ("animationWithContentsOfURL:")] SCNAnimation FromUrl (NSUrl animationUrl); - + [Static] [Export ("animationNamed:")] SCNAnimation FromName (string animationName); - + [Static, NoWatch] [Export ("animationWithCAAnimation:")] SCNAnimation FromCAAnimation (CAAnimation caAnimation); - + [Export ("duration")] double Duration { get; set; } - + [NullAllowed, Export ("keyPath")] string KeyPath { get; set; } - + [Export ("timingFunction", ArgumentSemantic.Retain)] SCNTimingFunction TimingFunction { get; set; } - + [Export ("blendInDuration")] double BlendInDuration { get; set; } - + [Export ("blendOutDuration")] double BlendOutDuration { get; set; } - + [Export ("removedOnCompletion")] bool RemovedOnCompletion { [Bind ("isRemovedOnCompletion")] get; set; } - + [Export ("appliedOnCompletion")] bool AppliedOnCompletion { [Bind ("isAppliedOnCompletion")] get; set; } - + [Export ("repeatCount")] nfloat RepeatCount { get; set; } - + [Export ("autoreverses")] bool Autoreverses { get; set; } - + [Export ("startDelay")] double StartDelay { get; set; } - + [Export ("timeOffset")] double TimeOffset { get; set; } - + [Export ("fillsForward")] bool FillsForward { get; set; } - + [Export ("fillsBackward")] bool FillsBackward { get; set; } - + [Export ("usesSceneTimeBase")] bool UsesSceneTimeBase { get; set; } - + #if !NET [Sealed] [NullAllowed, Export ("animationDidStart", ArgumentSemantic.Copy)] @@ -5170,7 +5220,7 @@ namespace SceneKit { #endif [NullAllowed, Export ("animationDidStart", ArgumentSemantic.Copy)] SCNAnimationDidStartHandler AnimationDidStart { get; set; } - + #if !NET [Sealed] [NullAllowed, Export ("animationDidStop", ArgumentSemantic.Copy)] @@ -5182,46 +5232,45 @@ namespace SceneKit { SCNAnimationDidStopHandler AnimationDidStop { get; set; } [NullAllowed, Export ("animationEvents", ArgumentSemantic.Copy)] - SCNAnimationEvent[] AnimationEvents { get; set; } - + SCNAnimationEvent [] AnimationEvents { get; set; } + [Export ("additive")] bool Additive { [Bind ("isAdditive")] get; set; } - + [Export ("cumulative")] bool Cumulative { [Bind ("isCumulative")] get; set; } } - - [Watch (4,0), TV (11,0), Mac (10, 13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface SCNAnimationPlayer : SCNAnimatable, NSCopying, NSSecureCoding - { + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface SCNAnimationPlayer : SCNAnimatable, NSCopying, NSSecureCoding { [Static] [Export ("animationPlayerWithAnimation:")] SCNAnimationPlayer FromAnimation (SCNAnimation animation); - + [Export ("animation")] SCNAnimation Animation { get; } - + [Export ("speed")] nfloat Speed { get; set; } - + [Export ("blendFactor")] nfloat BlendFactor { get; set; } - + [Export ("paused")] bool Paused { get; set; } - + [Export ("play")] void Play (); - + [Export ("stop")] void Stop (); - + [Export ("stopWithBlendOutDuration:")] void StopWithBlendOutDuration (double seconds); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (SCNConstraint))] interface SCNDistanceConstraint { @@ -5239,7 +5288,7 @@ namespace SceneKit { nfloat MaximumDistance { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (SCNConstraint))] interface SCNReplicatorConstraint { @@ -5269,7 +5318,7 @@ namespace SceneKit { SCNVector3 ScaleOffset { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (SCNConstraint))] interface SCNAccelerationConstraint { @@ -5290,7 +5339,7 @@ namespace SceneKit { nfloat Damping { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (SCNConstraint))] interface SCNSliderConstraint { @@ -5310,7 +5359,7 @@ namespace SceneKit { interface ISCNAvoidOccluderConstraintDelegate { } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SCNAvoidOccluderConstraintDelegate { @@ -5322,7 +5371,7 @@ namespace SceneKit { void DidAvoidOccluder (SCNAvoidOccluderConstraint constraint, SCNNode occluder, SCNNode node); } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (SCNConstraint))] interface SCNAvoidOccluderConstraint { @@ -5343,8 +5392,8 @@ namespace SceneKit { nfloat Bias { get; set; } } - [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(SCNPhysicsBehavior))] + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (SCNPhysicsBehavior))] interface SCNPhysicsConeTwistJoint { [Static] diff --git a/src/screencapturekit.cs b/src/screencapturekit.cs index e141dbd195..1ef5e066ce 100644 --- a/src/screencapturekit.cs +++ b/src/screencapturekit.cs @@ -21,7 +21,7 @@ using NativeHandle = System.IntPtr; namespace ScreenCaptureKit { - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [ErrorDomain ("SCStreamErrorDomain")] [Native] enum SCStreamErrorCode : long { @@ -46,7 +46,7 @@ namespace ScreenCaptureKit { FailedToStopAudioCapture = -3819, } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [Native] enum SCFrameStatus : long { Complete, @@ -57,15 +57,15 @@ namespace ScreenCaptureKit { Stopped, } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [Native] enum SCStreamOutputType : long { Screen, - [Mac (13,0)] + [Mac (13, 0)] Audio, } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [Static] interface SCStreamFrameInfoKeys { @@ -88,7 +88,7 @@ namespace ScreenCaptureKit { NSString DirtyRects { get; } } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCRunningApplication { @@ -103,7 +103,7 @@ namespace ScreenCaptureKit { int ProcessId { get; } } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCWindow { @@ -128,7 +128,7 @@ namespace ScreenCaptureKit { } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCDisplay { @@ -146,7 +146,7 @@ namespace ScreenCaptureKit { CGRect Frame { get; } } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCShareableContent { @@ -181,7 +181,7 @@ namespace ScreenCaptureKit { SCRunningApplication [] Applications { get; } } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCContentFilter { @@ -206,7 +206,7 @@ namespace ScreenCaptureKit { NativeHandle InitWithDisplayExcludingApplications (SCDisplay display, SCRunningApplication [] excludingApplications, SCWindow [] exceptingWindows); } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] interface SCStreamConfiguration { @@ -267,7 +267,7 @@ namespace ScreenCaptureKit { bool ExcludesCurrentProcessAudio { get; set; } } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SCStream { @@ -302,9 +302,9 @@ namespace ScreenCaptureKit { CMClock SynchronizationClock { [return: NullAllowed] get; } } - interface ISCStreamDelegate {} + interface ISCStreamDelegate { } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [Protocol] #if NET [Model] @@ -318,9 +318,9 @@ namespace ScreenCaptureKit { void DidStop (SCStream stream, NSError error); } - interface ISCStreamOutput {} + interface ISCStreamOutput { } - [NoiOS, NoTV, NoWatch, Mac (12,3), NoMacCatalyst] + [NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst] [Protocol] interface SCStreamOutput { diff --git a/src/screentime.cs b/src/screentime.cs index 4f16f3cfd7..76e72521f2 100644 --- a/src/screentime.cs +++ b/src/screentime.cs @@ -17,7 +17,7 @@ using NativeHandle = System.IntPtr; namespace ScreenTime { [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface STScreenTimeConfiguration : NSSecureCoding { @@ -25,8 +25,8 @@ namespace ScreenTime { bool EnforcesChildRestrictions { get; } } - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface STScreenTimeConfigurationObserver { @@ -45,7 +45,7 @@ namespace ScreenTime { } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface STWebHistory { @@ -64,11 +64,10 @@ namespace ScreenTime { } [Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] - interface STWebpageController - { + interface STWebpageController { [DesignatedInitializer] [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibNameOrNull, [NullAllowed] NSBundle nibBundleOrNull); diff --git a/src/scriptingbridge.cs b/src/scriptingbridge.cs index 15b80c5ee1..5c824dee1e 100644 --- a/src/scriptingbridge.cs +++ b/src/scriptingbridge.cs @@ -35,8 +35,8 @@ using NativeHandle = System.IntPtr; #endif namespace ScriptingBridge { - - + + [BaseType (typeof (NSObject))] interface SBObject : NSCoding { @@ -81,30 +81,30 @@ namespace ScriptingBridge { } #pragma warning restore 0618 - + // TODO: The documentation says these are rarely used so will clean these up later -// interface SBObject { -// [Export ("initWithElementCode:properties:data:")] -// NSObject InitWithElementCodepropertiesdata (DescType code, NSDictionary properties, NSObject data); -// -// [Export ("propertyWithCode:")] -// SBObject PropertyWithCode (AEKeyword code); -// -// [Export ("propertyWithClass:code:")] -// SBObject PropertyWithClasscode (Class cls, AEKeyword code); -// -// [Export ("elementArrayWithCode:")] -// SBElementArray ElementArrayWithCode (DescType code); -// -// [Export ("sendEvent:id:parameters:...")] -// NSObject SendEventidparameters... (AEEventClass eventClass, AEEventID eventID, DescType firstParamCode,, ); -// -// [Export ("setTo:")] -// void SetTo (NSObject value); -// -// } - - [BaseType (typeof (SBObject),Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (SBApplicationDelegate)})] + // interface SBObject { + // [Export ("initWithElementCode:properties:data:")] + // NSObject InitWithElementCodepropertiesdata (DescType code, NSDictionary properties, NSObject data); + // + // [Export ("propertyWithCode:")] + // SBObject PropertyWithCode (AEKeyword code); + // + // [Export ("propertyWithClass:code:")] + // SBObject PropertyWithClasscode (Class cls, AEKeyword code); + // + // [Export ("elementArrayWithCode:")] + // SBElementArray ElementArrayWithCode (DescType code); + // + // [Export ("sendEvent:id:parameters:...")] + // NSObject SendEventidparameters... (AEEventClass eventClass, AEEventID eventID, DescType firstParamCode,, ); + // + // [Export ("setTo:")] + // void SetTo (NSObject value); + // + // } + + [BaseType (typeof (SBObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (SBApplicationDelegate) })] [DisableDefaultCtor] // An uncaught exception was raised: *** -[SBApplication init]: should never be used. interface SBApplication : NSCoding { [Export ("initWithURL:")] @@ -119,20 +119,20 @@ namespace ScriptingBridge { [Internal] [Static] [Export ("applicationWithBundleIdentifier:")] - IntPtr _FromBundleIdentifier (string ident ); + IntPtr _FromBundleIdentifier (string ident); [Internal] [Static] [Export ("applicationWithURL:")] - IntPtr _FromURL (NSUrl url ); + IntPtr _FromURL (NSUrl url); [Internal] [Static] [Export ("applicationWithProcessIdentifier:")] - IntPtr _FromProcessIdentifier (int /* pid_t = int */ pid ); + IntPtr _FromProcessIdentifier (int /* pid_t = int */ pid); [Export ("classForScriptingClass:")] - Class ClassForScripting (string className ); + Class ClassForScripting (string className); [Export ("isRunning")] bool IsRunning { get; } @@ -172,5 +172,5 @@ namespace ScriptingBridge { NSObject EventFailed (IntPtr appleEvent, NSError error); #endif } - + } diff --git a/src/searchkit.cs b/src/searchkit.cs index 2a6750bcbb..c1dfb96041 100644 --- a/src/searchkit.cs +++ b/src/searchkit.cs @@ -11,25 +11,25 @@ namespace SearchKit { interface SKTextAnalysisKeys { [Field ("kSKMinTermLength")] NSString MinTermLengthKey { get; } - + [Field ("kSKStopWords")] NSString StopWordsKey { get; } - + [Field ("kSKSubstitutions")] NSString SubstitutionsKey { get; } - + [Field ("kSKMaximumTerms")] NSString MaximumTermsKey { get; } - + [Field ("kSKProximityIndexing")] NSString ProximityIndexingKey { get; } - + [Field ("kSKTermChars")] NSString TermCharsKey { get; } - + [Field ("kSKStartTermChars")] NSString StartTermCharsKey { get; } - + [Field ("kSKEndTermChars")] NSString EndTermCharsKey { get; } } @@ -37,7 +37,7 @@ namespace SearchKit { [StrongDictionary ("SKTextAnalysisKeys")] interface SKTextAnalysis { int MinTermLength { get; set; } - NSSet StopWords { get; set; } + NSSet StopWords { get; set; } NSDictionary Substitutions { get; set; } NSNumber MaximumTerms { get; set; } bool ProximityIndexing { get; set; } diff --git a/src/security.cs b/src/security.cs index cb7ff96dd2..364c2fffcb 100644 --- a/src/security.cs +++ b/src/security.cs @@ -15,7 +15,7 @@ using CoreFoundation; namespace Security { [Static] - [iOS (7,0)] + [iOS (7, 0)] interface SecPolicyIdentifier { // they are CFString -> https://github.com/Apple-FOSS-Mirror/libsecurity_keychain/blob/master/lib/SecPolicy.cpp @@ -29,31 +29,37 @@ namespace Security { [Field ("kSecPolicyAppleSMIME")] NSString AppleSMIME { get; } - + [Field ("kSecPolicyAppleEAP")] NSString AppleEAP { get; } - + [Field ("kSecPolicyAppleIPsec")] NSString AppleIPsec { get; } - [NoiOS][NoWatch][NoTV][NoMacCatalyst] + [NoiOS] + [NoWatch] + [NoTV] + [NoMacCatalyst] [Field ("kSecPolicyApplePKINITClient")] NSString ApplePKINITClient { get; } - - [NoiOS][NoWatch][NoTV][NoMacCatalyst] + + [NoiOS] + [NoWatch] + [NoTV] + [NoMacCatalyst] [Field ("kSecPolicyApplePKINITServer")] NSString ApplePKINITServer { get; } [Field ("kSecPolicyAppleCodeSigning")] NSString AppleCodeSigning { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("kSecPolicyMacAppStoreReceipt")] NSString MacAppStoreReceipt { get; } [Field ("kSecPolicyAppleIDValidation")] NSString AppleIDValidation { get; } - + [Field ("kSecPolicyAppleTimeStamping")] NSString AppleTimeStamping { get; } @@ -61,17 +67,17 @@ namespace Security { [Field ("kSecPolicyAppleRevocation")] NSString AppleRevocation { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecPolicyApplePassbookSigning")] NSString ApplePassbookSigning { get; } - [Mac(10,11), iOS (9,0)] + [Mac (10, 11), iOS (9, 0)] [Field ("kSecPolicyApplePayIssuerEncryption")] NSString ApplePayIssuerEncryption { get; } } [Static] - [iOS (7,0)] + [iOS (7, 0)] interface SecPolicyPropertyKey { [Field ("kSecPolicyOid")] NSString Oid { get; } @@ -86,24 +92,24 @@ namespace Security { [Field ("kSecPolicyRevocationFlags")] NSString RevocationFlags { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecPolicyTeamIdentifier")] NSString TeamIdentifier { get; } } - + [Static] - [iOS (8,0), NoWatch] - [Mac (11,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [iOS (8, 0), NoWatch] + [Mac (11, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [NoTV] // removed in tvOS 10 interface SecSharedCredential { [Field ("kSecSharedPassword")] NSString SharedPassword { get; } } - + [Static] - [iOS (7,0)] + [iOS (7, 0)] interface SecTrustPropertyKey { [Field ("kSecPropertyTypeTitle")] NSString Title { get; } @@ -113,35 +119,39 @@ namespace Security { } [Static] - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] interface SecTrustResultKey { [Field ("kSecTrustEvaluationDate")] NSString EvaluationDate { get; } [Field ("kSecTrustExtendedValidation")] NSString ExtendedValidation { get; } - + [Field ("kSecTrustOrganizationName")] NSString OrganizationName { get; } - + [Field ("kSecTrustResultValue")] NSString ResultValue { get; } [Field ("kSecTrustRevocationChecked")] NSString RevocationChecked { get; } - + [Field ("kSecTrustRevocationValidUntilDate")] NSString RevocationValidUntilDate { get; } - [iOS (9,0)] - [Mac (10,12)] // headers says 10.11 but it's not present in 10.11 + [iOS (9, 0)] + [Mac (10, 12)] // headers says 10.11 but it's not present in 10.11 [Field ("kSecTrustCertificateTransparency")] NSString CertificateTransparency { get; } - [iOS (10,0)][Deprecated (PlatformName.iOS, 11,0)] - [Mac (10,12)][Deprecated (PlatformName.MacOSX, 10,13)] - [Watch (3,0)][Deprecated (PlatformName.WatchOS, 4,0)] - [TV (10,0)][Deprecated (PlatformName.TvOS, 11,0)] + [iOS (10, 0)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Mac (10, 12)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Watch (3, 0)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [TV (10, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSecTrustCertificateTransparencyWhiteList")] NSString CertificateTransparencyWhiteList { get; } } @@ -161,14 +171,14 @@ namespace Security { [Field ("kSecAttrKeyTypeRSA")] RSA = 0, - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrKeyTypeEC")] EC = 1, - [iOS (10,0)] - [Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kSecAttrKeyTypeECSECPrimeRandom")] ECSecPrimeRandom = 2, } @@ -186,7 +196,8 @@ namespace Security { Symmetric = 2, } - [Static][Internal] + [Static] + [Internal] interface KeysAuthenticationType { [Field ("kSecAttrAuthenticationTypeNTLM")] IntPtr NTLM { get; } @@ -213,7 +224,8 @@ namespace Security { IntPtr Default { get; } } - [Static][Internal] + [Static] + [Internal] interface SecProtocolKeys { [Field ("kSecAttrProtocolFTP")] IntPtr FTP { get; } @@ -309,34 +321,35 @@ namespace Security { IntPtr POP3S { get; } } - [Static][Internal] + [Static] + [Internal] interface KeysAccessible { - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleWhenUnlocked")] IntPtr WhenUnlocked { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleAfterFirstUnlock")] IntPtr AfterFirstUnlock { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleAlways")] IntPtr Always { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleWhenUnlockedThisDeviceOnly")] IntPtr WhenUnlockedThisDeviceOnly { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly")] IntPtr AfterFirstUnlockThisDeviceOnly { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessibleAlwaysThisDeviceOnly")] IntPtr AlwaysThisDeviceOnly { get; } - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly")] IntPtr WhenPasscodeSetThisDeviceOnly { get; } } @@ -379,7 +392,8 @@ namespace Security { bool CanUnwrap { get; set; } } - [Static][Internal] + [Static] + [Internal] interface SecAttributeKeys { [Field ("kSecAttrLabel")] NSString LabelKey { get; } @@ -416,7 +430,8 @@ namespace Security { NSString CanUnwrapKey { get; } } - [Static][Internal] + [Static] + [Internal] interface SecKeyGenerationAttributeKeys : SecAttributeKeys { [Field ("kSecAttrKeyType")] NSString KeyTypeKey { get; } @@ -496,28 +511,29 @@ namespace Security { bool CanUnwrap { get; set; } } - [Static][Internal] + [Static] + [Internal] interface SecAttributeKey { - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessible")] IntPtr Accessible { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("kSecAttrSynchronizableAny")] IntPtr SynchronizableAny { get; } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Field ("kSecAttrSynchronizable")] IntPtr Synchronizable { get; } - [iOS (9,0)] - [Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kSecAttrSyncViewHint")] IntPtr SyncViewHint { get; } - [Mac (10,9)] + [Mac (10, 9)] [Field ("kSecAttrAccessGroup")] IntPtr AccessGroup { get; } @@ -605,25 +621,29 @@ namespace Security { [Field ("kSecAttrIsExtractable")] IntPtr IsExtractable { get; } - [iOS (9,0)] - [Mac (10,12)] + [iOS (9, 0)] + [Mac (10, 12)] [Field ("kSecAttrTokenIDSecureEnclave")] IntPtr SecureEnclave { get; } - [iOS (10,0)] - [Mac (10,12)] - [Watch (3,0)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [Watch (3, 0)] + [TV (10, 0)] [Field ("kSecAttrAccessGroupToken")] IntPtr AccessGroupToken { get; } // note: 'kSecAttrPersistantReference' with the word "persistent" (correct) written with an 'a', so "persistant" (incorrect) was a typo in Xcode 9 beta 1 - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecAttrPersistentReference")] IntPtr PersistentReference { get; } } - [Static][Internal] + [Static] + [Internal] interface SecClass { [Field ("kSecClass")] IntPtr SecClassKey { get; } @@ -667,7 +687,8 @@ namespace Security { NSString Identity { get; } } - [Static][Internal] + [Static] + [Internal] interface SecItem { [Field ("kSecMatchPolicy")] IntPtr MatchPolicy { get; } @@ -723,15 +744,19 @@ namespace Security { [Field ("kSecUseItemList")] IntPtr UseItemList { get; } - [iOS (13,0)][TV (13,0)][Watch (6,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Mac (10, 15)] [Field ("kSecUseDataProtectionKeychain")] IntPtr UseDataProtectionKeychain { get; } - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] - [iOS (8,0)][Mac (10,10)] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'LAContext.InteractionNotAllowed' instead.")] + [iOS (8, 0)] + [Mac (10, 10)] [Field ("kSecUseOperationPrompt")] IntPtr UseOperationPrompt { get; } @@ -740,27 +765,33 @@ namespace Security { [Field ("kSecUseNoAuthenticationUI")] IntPtr UseNoAuthenticationUI { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kSecUseAuthenticationUI")] IntPtr UseAuthenticationUI { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Field ("kSecUseAuthenticationContext")] IntPtr UseAuthenticationContext { get; } } - [NoiOS][NoTV][NoWatch] - [Static][Internal] - interface SecCertificateOIDs - { + [NoiOS] + [NoTV] + [NoWatch] + [Static] + [Internal] + interface SecCertificateOIDs { [Field ("kSecOIDX509V1SubjectPublicKey")] IntPtr SubjectPublicKey { get; } } - [NoiOS][NoTV][NoWatch] - [Static][Internal] - interface SecPropertyKey - { + [NoiOS] + [NoTV] + [NoWatch] + [Static] + [Internal] + interface SecPropertyKey { [Field ("kSecPropertyKeyType")] IntPtr Type { get; } @@ -774,7 +805,10 @@ namespace Security { IntPtr Value { get; } } - [Watch (3,0)][TV (10,0)][Mac (10,12)][iOS (10,0)] + [Watch (3, 0)] + [TV (10, 0)] + [Mac (10, 12)] + [iOS (10, 0)] enum SecKeyAlgorithm { [Field ("kSecKeyAlgorithmRSASignatureRaw")] RsaSignatureRaw, @@ -950,85 +984,142 @@ namespace Security { [Field ("kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512")] EcdhKeyExchangeCofactorX963Sha512, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureDigestPSSSHA1")] RsaSignatureDigestPssSha1, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureDigestPSSSHA224")] RsaSignatureDigestPssSha224, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureDigestPSSSHA256")] RsaSignatureDigestPssSha256, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureDigestPSSSHA384")] RsaSignatureDigestPssSha384, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureDigestPSSSHA512")] RsaSignatureDigestPssSha512, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureMessagePSSSHA1")] RsaSignatureMessagePssSha1, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureMessagePSSSHA224")] RsaSignatureMessagePssSha224, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureMessagePSSSHA256")] RsaSignatureMessagePssSha256, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureMessagePSSSHA384")] RsaSignatureMessagePssSha384, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmRSASignatureMessagePSSSHA512")] RsaSignatureMessagePssSha512, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM")] EciesEncryptionStandardVariableIvx963Sha224AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM")] EciesEncryptionStandardVariableIvx963Sha256AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM")] EciesEncryptionStandardVariableIvx963Sha384AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM")] EciesEncryptionStandardVariableIvx963Sha512AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM")] EciesEncryptionCofactorVariableIvx963Sha224AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM")] EciesEncryptionCofactorVariableIvx963Sha256AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM")] EciesEncryptionCofactorVariableIvx963Sha384AesGcm, - [iOS (11,0)][TV (11,0)][Watch (4,0)][Mac (10,13)] + [iOS (11, 0)] + [TV (11, 0)] + [Watch (4, 0)] + [Mac (10, 13)] [Field ("kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM")] EciesEncryptionCofactorVariableIvx963Sha512AesGcm, } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] enum SslSessionConfig { - [Deprecated (PlatformName.iOS, 11,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] - [Deprecated (PlatformName.WatchOS, 4,0)] - [Deprecated (PlatformName.TvOS, 11,0)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSSLSessionConfig_default")] Default, @@ -1041,20 +1132,20 @@ namespace Security { [Field ("kSSLSessionConfig_standard")] Standard, - [Deprecated (PlatformName.iOS, 11,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] - [Deprecated (PlatformName.WatchOS, 4,0)] - [Deprecated (PlatformName.TvOS, 11,0)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSSLSessionConfig_RC4_fallback")] RC4Fallback, [Field ("kSSLSessionConfig_TLSv1_fallback")] Tls1Fallback, - [Deprecated (PlatformName.iOS, 11,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] - [Deprecated (PlatformName.WatchOS, 4,0)] - [Deprecated (PlatformName.TvOS, 11,0)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSSLSessionConfig_TLSv1_RC4_fallback")] Tls1RC4Fallback, @@ -1067,27 +1158,35 @@ namespace Security { [Field ("kSSLSessionConfig_anonymous")] Anonymous, - [iOS (10,2)][TV (10,1)][Mac (10,12,2)] - [Watch (3,2)] - [Deprecated (PlatformName.iOS, 11,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] - [Deprecated (PlatformName.WatchOS, 4,0)] - [Deprecated (PlatformName.TvOS, 11,0)] + [iOS (10, 2)] + [TV (10, 1)] + [Mac (10, 12, 2)] + [Watch (3, 2)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSSLSessionConfig_3DES_fallback")] ThreeDesFallback, - [iOS (10,2)][TV (10,1)][Mac (10,12,2)] - [Watch (3,2)] - [Deprecated (PlatformName.iOS, 11,0)] - [Deprecated (PlatformName.MacOSX, 10,13)] - [Deprecated (PlatformName.WatchOS, 4,0)] - [Deprecated (PlatformName.TvOS, 11,0)] + [iOS (10, 2)] + [TV (10, 1)] + [Mac (10, 12, 2)] + [Watch (3, 2)] + [Deprecated (PlatformName.iOS, 11, 0)] + [Deprecated (PlatformName.MacOSX, 10, 13)] + [Deprecated (PlatformName.WatchOS, 4, 0)] + [Deprecated (PlatformName.TvOS, 11, 0)] [Field ("kSSLSessionConfig_TLSv1_3DES_fallback")] Tls1ThreeDesFallback, } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] - [Internal][Static] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] + [Internal] + [Static] interface SecKeyKeyExchangeParameterKey { [Field ("kSecKeyKeyExchangeParameterRequestedSize")] NSString RequestedSizeKey { get; } @@ -1096,7 +1195,10 @@ namespace Security { NSString SharedInfoKey { get; } } - [iOS (10,0)][TV (10,0)][Watch (3,0)][Mac (10,12)] + [iOS (10, 0)] + [TV (10, 0)] + [Watch (3, 0)] + [Mac (10, 12)] [StrongDictionary ("SecKeyKeyExchangeParameterKey")] interface SecKeyKeyExchangeParameter { @@ -1105,9 +1207,13 @@ namespace Security { NSData SharedInfo { get; set; } } - [iOS (8,0)][NoTV][NoWatch] - [Mac (11,0)][MacCatalyst (13,1)] - [Internal][Static] + [iOS (8, 0)] + [NoTV] + [NoWatch] + [Mac (11, 0)] + [MacCatalyst (13, 1)] + [Internal] + [Static] interface SecSharedCredentialKeys { [Field ("kSecAttrServer")] NSString ServerKey { get; } @@ -1115,7 +1221,7 @@ namespace Security { [Field ("kSecAttrAccount")] NSString AccountKey { get; } - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("kSecSharedPassword")] NSString PasswordKey { get; } @@ -1123,8 +1229,10 @@ namespace Security { NSString PortKey { get; } } - [iOS (8,0)][NoTV][NoWatch] - [Mac (11,0)] + [iOS (8, 0)] + [NoTV] + [NoWatch] + [Mac (11, 0)] [StrongDictionary ("SecSharedCredentialKeys")] interface SecSharedCredentialInfo { diff --git a/src/sensorkit.cs b/src/sensorkit.cs index 1cf7f4dcbd..c2f9c2d1ca 100644 --- a/src/sensorkit.cs +++ b/src/sensorkit.cs @@ -16,8 +16,8 @@ namespace SensorKit { interface NSUnitLength : NSUnit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum SRAmbientLightSensorPlacement : long { Unknown, @@ -32,8 +32,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] public enum SRAuthorizationStatus : long { NotDetermined = 0, @@ -42,21 +42,19 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] - enum SRCrownOrientation : long - { + enum SRCrownOrientation : long { Left, Right, } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] - enum SRDeletionReason : long - { + enum SRDeletionReason : long { UserInitiated, LowDiskSpace, AgeLimit, @@ -65,12 +63,11 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] [ErrorDomain ("SRErrorDomain")] - enum SRErrorCode : long - { + enum SRErrorCode : long { InvalidEntitlement, NoAuthorization, DataInaccessible, @@ -79,11 +76,10 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] - enum SRLocationCategory : long - { + enum SRLocationCategory : long { Unknown, Home, Work, @@ -92,11 +88,10 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] - enum SRNotificationEvent : long - { + enum SRNotificationEvent : long { Unknown, Received, DefaultAction, @@ -117,19 +112,17 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] - enum SRWristLocation : long - { + enum SRWristLocation : long { Left, Right, } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum SRKeyboardMetricsSentimentCategory : long - { + public enum SRKeyboardMetricsSentimentCategory : long { Absolutist, Down, Death, @@ -142,10 +135,9 @@ namespace SensorKit { Confused, } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum SRTextInputSessionType : long - { + public enum SRTextInputSessionType : long { Keyboard = 1, ThirdPartyKeyboard, Pencil, @@ -153,8 +145,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] enum SRDeviceUsageCategory { [Field ("SRDeviceUsageCategoryGames")] Games, @@ -245,8 +237,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRAmbientLightSample { @@ -262,8 +254,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRApplicationUsage { @@ -274,18 +266,18 @@ namespace SensorKit { [Export ("usageTime")] double /* NSTimeInterval */ UsageTime { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("reportApplicationIdentifier")] string ReportApplicationIdentifier { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("textInputSessions", ArgumentSemantic.Copy)] - SRTextInputSession[] TextInputSessions { get; } + SRTextInputSession [] TextInputSessions { get; } } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRDeletionRecord : NSSecureCoding { @@ -301,8 +293,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRDevice : NSSecureCoding, NSCopying { @@ -324,8 +316,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRDeviceUsageReport { @@ -353,8 +345,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface SRFetchRequest { @@ -369,8 +361,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRFetchResult : NSCopying where SampleType : NSObject { @@ -383,18 +375,18 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRKeyboardProbabilityMetric where UnitType : NSUnit { [Export ("distributionSampleValues", ArgumentSemantic.Copy)] - NSMeasurement[] DistributionSampleValues { get; } + NSMeasurement [] DistributionSampleValues { get; } } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRKeyboardMetrics { @@ -414,9 +406,9 @@ namespace SensorKit { [Export ("height")] NSMeasurement Height { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("inputModes", ArgumentSemantic.Copy)] - string[] InputModes { get; } + string [] InputModes { get; } // SRKeyboardMetrics_ScalarMetrics @@ -582,7 +574,7 @@ namespace SensorKit { SRKeyboardProbabilityMetric PlaneChangeKeyToCharKey { get; } [Export ("pathErrorDistanceRatio", ArgumentSemantic.Strong)] - NSNumber[] PathErrorDistanceRatio { get; } + NSNumber [] PathErrorDistanceRatio { get; } [Export ("deleteToPath", ArgumentSemantic.Strong)] SRKeyboardProbabilityMetric DeleteToPath { get; } @@ -602,54 +594,54 @@ namespace SensorKit { // SRKeyboardMetrics_PositionalMetrics [Export ("longWordUpErrorDistance", ArgumentSemantic.Strong)] - SRKeyboardProbabilityMetric[] LongWordUpErrorDistance { get; } + SRKeyboardProbabilityMetric [] LongWordUpErrorDistance { get; } [Export ("longWordDownErrorDistance", ArgumentSemantic.Strong)] - SRKeyboardProbabilityMetric[] LongWordDownErrorDistance { get; } + SRKeyboardProbabilityMetric [] LongWordDownErrorDistance { get; } [Export ("longWordTouchDownUp", ArgumentSemantic.Strong)] - SRKeyboardProbabilityMetric[] LongWordTouchDownUp { get; } + SRKeyboardProbabilityMetric [] LongWordTouchDownUp { get; } [Export ("longWordTouchDownDown", ArgumentSemantic.Strong)] - SRKeyboardProbabilityMetric[] LongWordTouchDownDown { get; } + SRKeyboardProbabilityMetric [] LongWordTouchDownDown { get; } [Export ("deleteToDeletes", ArgumentSemantic.Strong)] - SRKeyboardProbabilityMetric[] DeleteToDeletes { get; } + SRKeyboardProbabilityMetric [] DeleteToDeletes { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("pathTypingSpeed")] double PathTypingSpeed { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("totalPathPauses")] nint TotalPathPauses { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("totalPauses")] nint TotalPauses { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("totalTypingEpisodes")] nint TotalTypingEpisodes { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("typingSpeed")] double TypingSpeed { get; } // SRKeyboardMetrics_SentimentCounts - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("wordCountForSentimentCategory:")] nint WordCount (SRKeyboardMetricsSentimentCategory category); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("emojiCountForSentimentCategory:")] nint EmojiCount (SRKeyboardMetricsSentimentCategory category); } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRMessagesUsageReport { @@ -668,8 +660,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRNotificationUsage { @@ -682,8 +674,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRPhoneUsageReport { @@ -704,11 +696,11 @@ namespace SensorKit { double /* NSTimeInterval */ TotalPhoneCallDuration { get; } } - interface ISRSensorReaderDelegate {} + interface ISRSensorReaderDelegate { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -742,15 +734,15 @@ namespace SensorKit { void StopRecordingFailed (SRSensorReader reader, NSError error); [Export ("sensorReader:didFetchDevices:")] - void DidFetchDevices (SRSensorReader reader, SRDevice[] devices); + void DidFetchDevices (SRSensorReader reader, SRDevice [] devices); [Export ("sensorReader:fetchDevicesDidFailWithError:")] void FetchDevicesFailed (SRSensorReader reader, NSError error); } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] enum SRSensor { [Field (null)] Invalid = -1, @@ -785,22 +777,22 @@ namespace SensorKit { [Field ("SRSensorKeyboardMetrics")] KeyboardMetrics, - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("SRSensorSiriSpeechMetrics")] SiriSpeechMetrics, - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("SRSensorTelephonySpeechMetrics")] TelephonySpeechMetrics, - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Field ("SRSensorAmbientPressure")] AmbientPressure, } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRSensorReader { @@ -848,8 +840,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRVisit { @@ -871,8 +863,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRWebUsage { @@ -882,8 +874,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SRWristDetection { @@ -899,8 +891,8 @@ namespace SensorKit { } [NoWatch, NoTV, NoMac] - [iOS (14,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Category] [BaseType (typeof (NSString))] [Internal] // exposed thru SRSensor @@ -910,7 +902,7 @@ namespace SensorKit { NSString _GetSensorForDeletionRecordsFromSensor (); } - [NoWatch, NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, NoMac, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] interface SRTextInputSession /* privately conforms to NSCoding and NSSecureCoding */ { diff --git a/src/sharedwithyou.cs b/src/sharedwithyou.cs index 4342fb0dfd..5ed7485cc5 100644 --- a/src/sharedwithyou.cs +++ b/src/sharedwithyou.cs @@ -13,7 +13,7 @@ using AVFoundation; using CoreFoundation; using CoreGraphics; using Foundation; -using SharedWithYouCore; +using SharedWithYouCore; using UniformTypeIdentifiers; using ObjCRuntime; @@ -25,9 +25,9 @@ using UIMenu=AppKit.NSMenu; using UIImage=AppKit.NSImage; using ICloudSharingControllerDelegate=AppKit.INSCloudSharingServiceDelegate; using UIWindow=AppKit.NSWindow; -#else +#else using UIKit; -using ICloudSharingControllerDelegate=UIKit.IUICloudSharingControllerDelegate; +using ICloudSharingControllerDelegate = UIKit.IUICloudSharingControllerDelegate; #endif #if !NET @@ -36,7 +36,7 @@ using NativeHandle = System.IntPtr; namespace SharedWithYou { - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWAttributionViewBackgroundStyle : long { Default = 0, @@ -44,14 +44,14 @@ namespace SharedWithYou { Material, } - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWAttributionViewDisplayContext : long { Summary = 0, Detail, } - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWAttributionViewHorizontalAlignment : long { Default = 0, @@ -60,7 +60,7 @@ namespace SharedWithYou { Trailing, } - [TV (16,0), Mac (13,0), iOS (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0)] [Native] public enum SWHighlightCenterErrorCode : long { NoError = 0, @@ -69,21 +69,21 @@ namespace SharedWithYou { AccessDenied, } - [NoTV, NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWHighlightChangeEventTrigger : long { Edit = 1, Comment = 2, } - [NoTV, NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWHighlightMembershipEventTrigger : long { AddedCollaborator = 1, RemovedCollaborator = 2, } - [NoTV, NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoTV, NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum SWHighlightPersistenceEventTrigger : long { Created = 1, @@ -92,10 +92,9 @@ namespace SharedWithYou { Moved = 4, } - [NoWatch, Mac (13,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, Mac (13, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIView))] - interface SWAttributionView - { + interface SWAttributionView { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -130,11 +129,10 @@ namespace SharedWithYou { bool EnablesMarquee { get; set; } } - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWHighlight : NSSecureCoding, NSCopying - { + interface SWHighlight : NSSecureCoding, NSCopying { [NoTV] [Field ("SWCollaborationMetadataTypeIdentifier")] @@ -147,26 +145,24 @@ namespace SharedWithYou { NSUrl Url { get; } } - interface ISWHighlightCenterDelegate {} + interface ISWHighlightCenterDelegate { } - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface SWHighlightCenterDelegate - { + interface SWHighlightCenterDelegate { [Abstract] [Export ("highlightCenterHighlightsDidChange:")] void HighlightsDidChange (SWHighlightCenter highlightCenter); } - [NoWatch, TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface SWHighlightCenter - { + interface SWHighlightCenter { [Wrap ("WeakDelegate")] [NullAllowed] ISWHighlightCenterDelegate Delegate { get; set; } @@ -175,7 +171,7 @@ namespace SharedWithYou { NSObject WeakDelegate { get; set; } [Export ("highlights", ArgumentSemantic.Copy)] - SWHighlight[] Highlights { get; } + SWHighlight [] Highlights { get; } [Static] [Export ("highlightCollectionTitle")] @@ -203,7 +199,7 @@ namespace SharedWithYou { [Export ("postNoticeForHighlightEvent:")] void PostNotice (ISWHighlightEvent @event); - [iOS (16,1), NoTV] + [iOS (16, 1), NoTV] [Export ("clearNoticesForHighlight:")] void ClearNotices (SWCollaborationHighlight highlight); @@ -213,37 +209,34 @@ namespace SharedWithYou { void GetSignedIdentityProof (SWCollaborationHighlight collaborationHighlight, NSData data, Action completionHandler); } - [NoWatch, Mac (13,0), NoTV, NoiOS, NoMacCatalyst] + [NoWatch, Mac (13, 0), NoTV, NoiOS, NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWRemoveParticipantAlert - { + interface SWRemoveParticipantAlert { [Static] [Export ("showAlertWithParticipant:highlight:inWindow:")] void ShowAlert (SWPerson participant, SWCollaborationHighlight highlight, [NullAllowed] UIWindow window); } - [NoWatch, NoMac, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoMac, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] - interface SWRemoveParticipantAlertController - { + interface SWRemoveParticipantAlertController { [Static] [Export ("alertControllerWithParticipant:highlight:")] SWRemoveParticipantAlertController Create (SWPerson participant, SWCollaborationHighlight highlight); } - interface ISWCollaborationViewDelegate {} + interface ISWCollaborationViewDelegate { } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface SWCollaborationViewDelegate - { + interface SWCollaborationViewDelegate { // [DesignatedInitializer] // [Export ("initWithFrame:")] @@ -259,10 +252,9 @@ namespace SharedWithYou { void DidDismissPopover (SWCollaborationView collaborationView); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIView))] - interface SWCollaborationView - { + interface SWCollaborationView { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -329,10 +321,9 @@ namespace SharedWithYou { void SetShowManageButton (bool showManageButton); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (SWHighlight))] - interface SWCollaborationHighlight : NSSecureCoding, NSCopying - { + interface SWCollaborationHighlight : NSSecureCoding, NSCopying { [Export ("collaborationIdentifier")] string CollaborationIdentifier { get; } @@ -346,22 +337,20 @@ namespace SharedWithYou { UTType ContentType { get; } } - interface ISWHighlightEvent {} + interface ISWHighlightEvent { } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface SWHighlightEvent : NSSecureCoding, NSCopying - { + interface SWHighlightEvent : NSSecureCoding, NSCopying { [Abstract] [Export ("highlightURL", ArgumentSemantic.Copy)] NSUrl HighlightUrl { get; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWHighlightChangeEvent : SWHighlightEvent - { + interface SWHighlightChangeEvent : SWHighlightEvent { [Export ("changeEventTrigger", ArgumentSemantic.Assign)] SWHighlightChangeEventTrigger ChangeEventTrigger { get; } @@ -369,11 +358,10 @@ namespace SharedWithYou { NativeHandle Constructor (SWHighlight highlight, SWHighlightChangeEventTrigger trigger); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWHighlightMembershipEvent : SWHighlightEvent - { + interface SWHighlightMembershipEvent : SWHighlightEvent { [Export ("membershipEventTrigger", ArgumentSemantic.Assign)] SWHighlightMembershipEventTrigger MembershipEventTrigger { get; } @@ -381,11 +369,10 @@ namespace SharedWithYou { NativeHandle Constructor (SWHighlight highlight, SWHighlightMembershipEventTrigger trigger); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWHighlightMentionEvent : SWHighlightEvent - { + interface SWHighlightMentionEvent : SWHighlightEvent { [Export ("mentionedPersonHandle", ArgumentSemantic.Strong)] string MentionedPersonHandle { get; } @@ -396,11 +383,10 @@ namespace SharedWithYou { NativeHandle Constructor (SWHighlight highlight, SWPersonIdentity identity); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWHighlightPersistenceEvent : SWHighlightEvent - { + interface SWHighlightPersistenceEvent : SWHighlightEvent { [Export ("persistenceEventTrigger", ArgumentSemantic.Assign)] SWHighlightPersistenceEventTrigger PersistenceEventTrigger { get; } diff --git a/src/sharedwithyoucore.cs b/src/sharedwithyoucore.cs index 1c87789201..4fcf3a90a0 100644 --- a/src/sharedwithyoucore.cs +++ b/src/sharedwithyoucore.cs @@ -20,7 +20,7 @@ using NativeHandle = System.IntPtr; namespace SharedWithYouCore { - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] interface SWAction : NSCopying, NSSecureCoding { [Export ("uuid")] @@ -36,9 +36,9 @@ namespace SharedWithYouCore { void Fail (); } - interface ISWCollaborationActionHandler {} + interface ISWCollaborationActionHandler { } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol] [DisableDefaultCtor] interface SWCollaborationActionHandler { @@ -51,7 +51,7 @@ namespace SharedWithYouCore { void HandleUpdateCollaborationParticipantsAction (SWCollaborationCoordinator coordinator, SWUpdateCollaborationParticipantsAction action); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWCollaborationCoordinator { @@ -63,7 +63,7 @@ namespace SharedWithYouCore { ISWCollaborationActionHandler ActionHandler { get; set; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWCollaborationOption : NSCopying, NSSecureCoding { @@ -80,7 +80,7 @@ namespace SharedWithYouCore { bool Selected { [Bind ("isSelected")] get; set; } [Export ("requiredOptionsIdentifiers", ArgumentSemantic.Copy)] - string[] RequiredOptionsIdentifiers { get; set; } + string [] RequiredOptionsIdentifiers { get; set; } [Export ("initWithTitle:identifier:")] [DesignatedInitializer] @@ -91,7 +91,7 @@ namespace SharedWithYouCore { SWCollaborationOption Create (string title, string identifier); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWCollaborationOptionsGroup : NSCopying, NSSecureCoding { @@ -109,59 +109,59 @@ namespace SharedWithYouCore { string Footer { get; set; } [Export ("options", ArgumentSemantic.Copy)] - SWCollaborationOption[] Options { get; set; } + SWCollaborationOption [] Options { get; set; } [Export ("initWithIdentifier:options:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, SWCollaborationOption[] options); + NativeHandle Constructor (string identifier, SWCollaborationOption [] options); [Static] [Export ("optionsGroupWithIdentifier:options:")] - SWCollaborationOptionsGroup Create (string identifier, SWCollaborationOption[] options); + SWCollaborationOptionsGroup Create (string identifier, SWCollaborationOption [] options); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (SWCollaborationOptionsGroup))] interface SWCollaborationOptionsPickerGroup { [Export ("initWithIdentifier:options:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, SWCollaborationOption[] options); + NativeHandle Constructor (string identifier, SWCollaborationOption [] options); [Export ("selectedOptionIdentifier", ArgumentSemantic.Strong)] string SelectedOptionIdentifier { get; set; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWCollaborationShareOptions : NSCopying, NSSecureCoding { [Export ("optionsGroups", ArgumentSemantic.Copy)] - SWCollaborationOptionsGroup[] OptionsGroups { get; set; } + SWCollaborationOptionsGroup [] OptionsGroups { get; set; } [Export ("summary")] string Summary { get; set; } [Export ("initWithOptionsGroups:summary:")] [DesignatedInitializer] - NativeHandle Constructor (SWCollaborationOptionsGroup[] optionsGroups, string summary); + NativeHandle Constructor (SWCollaborationOptionsGroup [] optionsGroups, string summary); [Export ("initWithOptionsGroups:")] - NativeHandle Constructor (SWCollaborationOptionsGroup[] optionsGroups); + NativeHandle Constructor (SWCollaborationOptionsGroup [] optionsGroups); [Static] [Export ("shareOptionsWithOptionsGroups:summary:")] - SWCollaborationShareOptions Create (SWCollaborationOptionsGroup[] optionsGroups, string summary); + SWCollaborationShareOptions Create (SWCollaborationOptionsGroup [] optionsGroups, string summary); [Static] [Export ("shareOptionsWithOptionsGroups:")] - SWCollaborationShareOptions Create (SWCollaborationOptionsGroup[] optionsGroups); + SWCollaborationShareOptions Create (SWCollaborationOptionsGroup [] optionsGroups); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SWCollaborationMetadata : NSSecureCoding, NSCopying, NSMutableCopying + interface SWCollaborationMetadata : NSSecureCoding, NSCopying, NSMutableCopying #if IOS || MONOMAC , NSItemProviderReading , NSItemProviderWriting @@ -192,13 +192,13 @@ namespace SharedWithYouCore { [Export ("initWithLocalIdentifier:")] NativeHandle _InitWithLocalIdentifier (string localIdentifier); - [iOS (16,1), MacCatalyst (16,1)] + [iOS (16, 1), MacCatalyst (16, 1)] [Internal] [Export ("initWithCollaborationIdentifier:")] NativeHandle _InitWithCollaborationIdentifier (string collaborationIdentifier); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWPerson : NSSecureCoding { @@ -206,7 +206,7 @@ namespace SharedWithYouCore { NativeHandle Constructor ([NullAllowed] string handle, [NullAllowed] SWPersonIdentity identity, string displayName, [NullAllowed] NSData thumbnailImageData); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWPersonIdentity : NSSecureCoding, NSCopying { @@ -217,12 +217,12 @@ namespace SharedWithYouCore { NativeHandle Constructor (NSData rootHash); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SWPersonIdentityProof : NSSecureCoding, NSCopying { [Export ("inclusionHashes", ArgumentSemantic.Copy)] - NSData[] InclusionHashes { get; } + NSData [] InclusionHashes { get; } [Export ("publicKey", ArgumentSemantic.Copy)] NSData PublicKey { get; } @@ -231,7 +231,7 @@ namespace SharedWithYouCore { nuint PublicKeyIndex { get; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [BaseType (typeof (SWPersonIdentityProof))] interface SWSignedPersonIdentityProof { [Export ("initWithPersonIdentityProof:signatureData:")] @@ -241,7 +241,7 @@ namespace SharedWithYouCore { NSData SignatureData { get; } } - [NoWatch, NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (SWAction))] [DisableDefaultCtor] interface SWStartCollaborationAction : NSSecureCoding, NSCopying { @@ -252,7 +252,7 @@ namespace SharedWithYouCore { void Fulfill (NSUrl url, string collaborationIdentifier); } - [NoWatch, NoTV, Mac (13,0), iOS (16,0)] + [NoWatch, NoTV, Mac (13, 0), iOS (16, 0)] [BaseType (typeof (SWAction))] [DisableDefaultCtor] interface SWUpdateCollaborationParticipantsAction : NSSecureCoding, NSCopying { @@ -260,10 +260,10 @@ namespace SharedWithYouCore { SWCollaborationMetadata CollaborationMetadata { get; } [Export ("addedIdentities")] - SWPersonIdentity[] AddedIdentities { get; } + SWPersonIdentity [] AddedIdentities { get; } [Export ("removedIdentities")] - SWPersonIdentity[] RemovedIdentities { get; } + SWPersonIdentity [] RemovedIdentities { get; } } } diff --git a/src/shazamkit.cs b/src/shazamkit.cs index 18d273f7c3..5212eec90f 100644 --- a/src/shazamkit.cs +++ b/src/shazamkit.cs @@ -11,10 +11,9 @@ using NativeHandle = System.IntPtr; namespace ShazamKit { [Native] - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [ErrorDomain ("SHErrorDomain")] - public enum SHErrorCode : long - { + public enum SHErrorCode : long { InvalidAudioFormat = 100, AudioDiscontinuity = 101, SignatureInvalid = 200, @@ -26,10 +25,9 @@ namespace ShazamKit { InternalError = 500, } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [Static] - enum SHMediaItemProperty - { + enum SHMediaItemProperty { [Field ("SHMediaItemShazamID")] ShazamId, [Field ("SHMediaItemTitle")] @@ -58,19 +56,18 @@ namespace ShazamKit { MatchOffset, [Field ("SHMediaItemFrequencySkew")] FrequencySkew, - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Field ("SHMediaItemTimeRanges")] TimeRanges, - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Field ("SHMediaItemFrequencySkewRanges")] FrequencySkewRanges, } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHCatalog - { + interface SHCatalog { [Export ("minimumQuerySignatureDuration")] double MinimumQuerySignatureDuration { get; } @@ -78,12 +75,11 @@ namespace ShazamKit { double MaximumQuerySignatureDuration { get; } } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (SHCatalog))] - interface SHCustomCatalog - { + interface SHCustomCatalog { [Export ("addReferenceSignature:representingMediaItems:error:")] - bool Add (SHSignature signature, SHMediaItem[] mediaItems, [NullAllowed] out NSError error); + bool Add (SHSignature signature, SHMediaItem [] mediaItems, [NullAllowed] out NSError error); [Export ("addCustomCatalogFromURL:error:")] bool Add (NSUrl url, [NullAllowed] out NSError error); @@ -97,23 +93,21 @@ namespace ShazamKit { SHCustomCatalog Create (); } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHMatch : NSSecureCoding - { + interface SHMatch : NSSecureCoding { [Export ("mediaItems", ArgumentSemantic.Strong)] - SHMatchedMediaItem[] MediaItems { get; } + SHMatchedMediaItem [] MediaItems { get; } [Export ("querySignature", ArgumentSemantic.Strong)] SHSignature QuerySignature { get; } } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (SHMediaItem))] [DisableDefaultCtor] - interface SHMatchedMediaItem : NSSecureCoding - { + interface SHMatchedMediaItem : NSSecureCoding { [Export ("frequencySkew")] float FrequencySkew { get; } @@ -124,11 +118,10 @@ namespace ShazamKit { double PredictedCurrentMatchOffset { get; } } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHMediaItem : NSSecureCoding, NSCopying - { + interface SHMediaItem : NSSecureCoding, NSCopying { [NullAllowed] [Export ("shazamID")] string ShazamId { get; } @@ -146,7 +139,7 @@ namespace ShazamKit { string Artist { get; } [Export ("genres", ArgumentSemantic.Strong)] - string[] Genres { get; } + string [] Genres { get; } [NullAllowed] [Export ("appleMusicID")] @@ -190,33 +183,31 @@ namespace ShazamKit { [Export ("objectForKeyedSubscript:")] NSObject GetObject (string key); - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("timeRanges", ArgumentSemantic.Strong)] - SHRange[] TimeRanges { get; } + SHRange [] TimeRanges { get; } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("frequencySkewRanges", ArgumentSemantic.Strong)] - SHRange[] FrequencySkewRanges { get; } + SHRange [] FrequencySkewRanges { get; } } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHMediaLibrary - { + interface SHMediaLibrary { [Static] [Export ("defaultLibrary", ArgumentSemantic.Strong)] SHMediaLibrary DefaultLibrary { get; } [Async] [Export ("addMediaItems:completionHandler:")] - void Add (SHMediaItem[] mediaItems, Action completionHandler); + void Add (SHMediaItem [] mediaItems, Action completionHandler); } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface SHSession - { + interface SHSession { [Export ("catalog", ArgumentSemantic.Strong)] SHCatalog Catalog { get; } @@ -237,11 +228,10 @@ namespace ShazamKit { void Match (SHSignature signature); } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHSignature : NSSecureCoding, NSCopying - { + interface SHSignature : NSSecureCoding, NSCopying { [Export ("initWithDataRepresentation:error:")] [DesignatedInitializer] NativeHandle Constructor (NSData dataRepresentation, [NullAllowed] out NSError error); @@ -258,10 +248,9 @@ namespace ShazamKit { SHSignature GetSignature (NSData dataRepresentation, [NullAllowed] out NSError error); } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface SHSignatureGenerator - { + interface SHSignatureGenerator { [Export ("appendBuffer:atTime:error:")] bool Append (AVAudioPcmBuffer buffer, [NullAllowed] AVAudioTime time, [NullAllowed] out NSError error); @@ -269,22 +258,21 @@ namespace ShazamKit { SHSignature Signature { get; } [Static, Async] - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("generateSignatureFromAsset:completionHandler:")] void GenerateSignature (AVAsset asset, Action completionHandler); } - interface ISHSessionDelegate {} + interface ISHSessionDelegate { } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface SHSessionDelegate - { + interface SHSessionDelegate { [Export ("session:didFindMatch:")] void DidFindMatch (SHSession session, SHMatch match); @@ -292,11 +280,10 @@ namespace ShazamKit { void DidNotFindMatch (SHSession session, SHSignature signature, [NullAllowed] NSError error); } - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SHRange : NSSecureCoding, NSCopying - { + interface SHRange : NSSecureCoding, NSCopying { [Export ("initWithLowerBound:upperBound:")] [DesignatedInitializer] NativeHandle Constructor (double lowerBound, double upperBound); diff --git a/src/social.cs b/src/social.cs index 7f5b74f6a1..9c411adebd 100644 --- a/src/social.cs +++ b/src/social.cs @@ -53,18 +53,19 @@ namespace Social { [Deprecated (PlatformName.iOS, 11, 0, message: "Use Tencent Weibo SDK instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Tencent Weibo SDK instead.")] - [iOS (7,0)] + [iOS (7, 0)] [Field ("SLServiceTypeTencentWeibo")] - [Mac (10,9)] + [Mac (10, 9)] NSString TencentWeibo { get; } [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use LinkedIn SDK instead.")] [Field ("SLServiceTypeLinkedIn")] - [NoiOS][NoMacCatalyst] - [Mac (10,9)] + [NoiOS] + [NoMacCatalyst] + [Mac (10, 9)] NSString LinkedIn { get; } } - + [BaseType (typeof (NSObject))] // init -> Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: SLRequestMultiPart must be obtained through! [DisableDefaultCtor] @@ -76,16 +77,16 @@ namespace Social { [Deprecated (PlatformName.iOS, 15, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the non-Apple SDK relating to your account type instead.")] [Export ("account", ArgumentSemantic.Retain), NullAllowed] - ACAccount Account { get; set; } + ACAccount Account { get; set; } [Export ("requestMethod")] - SLRequestMethod RequestMethod { get; } + SLRequestMethod RequestMethod { get; } [Export ("URL")] - NSUrl Url { get; } + NSUrl Url { get; } [Export ("parameters")] - NSDictionary Parameters { get; } + NSDictionary Parameters { get; } [NoiOS] // just macOS [Export ("addMultipartData:withName:type:")] @@ -100,7 +101,7 @@ namespace Social { // async [Export ("performRequestWithHandler:")] [Async (ResultTypeName = "SLRequestResult")] - void PerformRequest (Action handler); + void PerformRequest (Action handler); } [NoMac] @@ -112,10 +113,10 @@ namespace Social { NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); [Export ("serviceType")] - NSString ServiceType { get; } + NSString ServiceType { get; } [Export ("completionHandler", ArgumentSemantic.Copy)] - Action CompletionHandler { get; set; } + Action CompletionHandler { get; set; } [Static] [Export ("composeViewControllerForServiceType:")] @@ -142,8 +143,8 @@ namespace Social { bool RemoveAllUrls (); } - [Mac (10,10)] - [iOS (8,0)] + [Mac (10, 10)] + [iOS (8, 0)] [BaseType (typeof (SocialViewController))] interface SLComposeServiceViewController : SocialTextViewDelegate { [Export ("initWithNibName:bundle:")] @@ -200,7 +201,7 @@ namespace Social { [NoMac] [Export ("loadPreviewView")] - SocialView LoadPreviewView(); + SocialView LoadPreviewView (); [NoMac] [NullAllowed] // by default this property is null @@ -210,7 +211,7 @@ namespace Social { [NoMac] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated interface SLComposeSheetConfigurationItem { diff --git a/src/soundanalysis.cs b/src/soundanalysis.cs index 338ae94bf5..1d59f16a73 100644 --- a/src/soundanalysis.cs +++ b/src/soundanalysis.cs @@ -31,10 +31,9 @@ namespace SoundAnalysis { InvalidFile, } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum SNTimeDurationConstraintType : long - { + public enum SNTimeDurationConstraintType : long { Enumerated = 1, Range = 2, } @@ -118,7 +117,7 @@ namespace SoundAnalysis { [Export ("timeRange")] CMTimeRange TimeRange { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("classificationForIdentifier:")] [return: NullAllowed] SNClassification GetClassification (string identifier); @@ -135,36 +134,36 @@ namespace SoundAnalysis { [Export ("initWithMLModel:error:")] NativeHandle Constructor (MLModel mlModel, [NullAllowed] out NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("initWithClassifierIdentifier:error:")] NativeHandle Constructor (string classifierIdentifier, [NullAllowed] out NSError error); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("knownClassifications", ArgumentSemantic.Copy)] - string[] KnownClassifications { get; } + string [] KnownClassifications { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("windowDuration", ArgumentSemantic.Assign)] CMTime WindowDuration { get; set; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("windowDurationConstraint", ArgumentSemantic.Strong)] SNTimeDurationConstraint WindowDurationConstraint { get; } } - interface ISNRequest {} + interface ISNRequest { } [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] - interface SNRequest {} + interface SNRequest { } - interface ISNResult {} + interface ISNResult { } [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] - interface SNResult {} + interface SNResult { } - interface ISNResultsObserving {} + interface ISNResultsObserving { } [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] @@ -181,19 +180,19 @@ namespace SoundAnalysis { void DidComplete (ISNRequest request); } - [iOS (15,0), Mac (12,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)] enum SNClassifierIdentifier { [Field ("SNClassifierIdentifierVersion1")] Version1, } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SNTimeDurationConstraint /* privately conforms to NSCoding, NSCopying, and NSSecureCoding */ { [Export ("initWithEnumeratedDurations:")] - NativeHandle Constructor ([BindAs (typeof (CMTime[]))] NSValue[] enumeratedDurations); + NativeHandle Constructor ([BindAs (typeof (CMTime []))] NSValue [] enumeratedDurations); [Export ("initWithDurationRange:")] NativeHandle Constructor (CMTimeRange durationRange); @@ -205,7 +204,7 @@ namespace SoundAnalysis { [BindAs (typeof (CMTime[]))] #endif [Export ("enumeratedDurations", ArgumentSemantic.Strong)] - NSValue[] EnumeratedDurations { get; } + NSValue [] EnumeratedDurations { get; } [Export ("durationRange", ArgumentSemantic.Assign)] CMTimeRange DurationRange { get; } diff --git a/src/speech.cs b/src/speech.cs index 5f38b4768e..43dd23b281 100644 --- a/src/speech.cs +++ b/src/speech.cs @@ -72,7 +72,7 @@ namespace Speech { [Export ("requiresOnDeviceRecognition")] bool RequiresOnDeviceRecognition { get; set; } - [Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("addsPunctuation")] bool AddsPunctuation { get; set; } } @@ -121,7 +121,7 @@ namespace Speech { bool Final { [Bind ("isFinal")] get; } [iOS (14, 5), Mac (11, 3)] - [MacCatalyst (14,5)] + [MacCatalyst (14, 5)] [NullAllowed, Export ("speechRecognitionMetadata")] SFSpeechRecognitionMetadata SpeechRecognitionMetadata { get; } } @@ -149,7 +149,7 @@ namespace Speech { NSError Error { get; } } - interface ISFSpeechRecognitionTaskDelegate {} + interface ISFSpeechRecognitionTaskDelegate { } [iOS (10, 0), Mac (10, 15)] [Protocol, Model] @@ -175,7 +175,7 @@ namespace Speech { void DidFinishSuccessfully (SFSpeechRecognitionTask task, bool successfully); } - interface ISFSpeechRecognizerDelegate {} + interface ISFSpeechRecognizerDelegate { } [iOS (10, 0), Mac (10, 15)] [Protocol, Model] @@ -233,12 +233,11 @@ namespace Speech { NSOperationQueue Queue { get; set; } } - [iOS (14,5), Mac (11,3)] - [MacCatalyst (14,5)] - [BaseType (typeof(NSObject))] + [iOS (14, 5), Mac (11, 3)] + [MacCatalyst (14, 5)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SFSpeechRecognitionMetadata : NSCopying, NSSecureCoding - { + interface SFSpeechRecognitionMetadata : NSCopying, NSSecureCoding { [Export ("speakingRate")] double SpeakingRate { get; } @@ -314,7 +313,7 @@ namespace Speech { interface SFAcousticFeature : NSCopying, NSSecureCoding { [Export ("acousticFeatureValuePerFrame", ArgumentSemantic.Copy)] - NSNumber[] AcousticFeatureValuePerFrame { get; } + NSNumber [] AcousticFeatureValuePerFrame { get; } [Export ("frameDuration")] double FrameDuration { get; } diff --git a/src/spritekit.cs b/src/spritekit.cs index 44325f8b4b..eba02fe019 100644 --- a/src/spritekit.cs +++ b/src/spritekit.cs @@ -95,8 +95,8 @@ namespace SpriteKit { delegate void SKNodeChildEnumeratorHandler (SKNode node, out bool stop); delegate float SKActionTimingFunction2 (float /* float, not CGFloat */ time); - [Watch (3,0)] - [iOS (8,0), Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (SKNode))] interface SK3DNode { [DesignatedInitializer] @@ -149,7 +149,10 @@ namespace SpriteKit { [DisableDefaultCtor] // DesignatedInitializer below - [Mac (10,9)][Watch (3,0)][iOS (7,0)][MacCatalyst (13,1)] + [Mac (10, 9)] + [Watch (3, 0)] + [iOS (7, 0)] + [MacCatalyst (13, 1)] #if MONOMAC [BaseType (typeof (NSResponder))] partial interface SKNode : NSSecureCoding, NSCopying { @@ -167,14 +170,14 @@ namespace SpriteKit { [Static, Export ("node")] SKNode Create (); - [iOS (8,0)] + [iOS (8, 0)] [Mac (10, 10)] [Static] [Export ("nodeWithFileNamed:")] [return: NullAllowed] SKNode Create (string filename); - [Watch (5,0), TV (12,0), Mac (10,14), iOS (12,0)] + [Watch (5, 0), TV (12, 0), Mac (10, 14), iOS (12, 0)] [Internal] [Static] [Export ("nodeWithFileNamed:securelyWithClasses:andError:")] @@ -222,7 +225,7 @@ namespace SpriteKit { bool UserInteractionEnabled { [Bind ("isUserInteractionEnabled")] get; set; } [NoMac] - [TV (11,0), iOS (11,0), Watch (9,0)] + [TV (11, 0), iOS (11, 0), Watch (9, 0)] [Export ("focusBehavior", ArgumentSemantic.Assign)] SKNodeFocusBehavior FocusBehavior { get; set; } @@ -318,97 +321,102 @@ namespace SpriteKit { [Export ("intersectsNode:")] bool IntersectsNode (SKNode node); - [iOS (8,3)][TV (9,0)][Mac (10,11)] + [iOS (8, 3)] + [TV (9, 0)] + [Mac (10, 11)] [Export ("isEqualToNode:")] bool IsEqual (SKNode node); [Export ("inParentHierarchy:")] bool InParentHierarchy (SKNode node); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [NullAllowed] // by default this property is null [Export ("reachConstraints", ArgumentSemantic.Copy)] SKReachConstraints ReachConstraints { get; set; } - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [NullAllowed] // by default this property is null [Export ("constraints", ArgumentSemantic.Copy)] SKConstraint [] Constraints { get; set; } - [iOS (8,0),Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("objectForKeyedSubscript:")] SKNode GetObjectsMatching (string nameExpression); - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("moveToParent:")] void MoveToParent (SKNode parent); // Moved from SpriteKit to GameplayKit header in iOS 10 beta 1 [NoWatch] - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("obstaclesFromNodeBounds:")] - GKPolygonObstacle[] ObstaclesFromNodeBounds (SKNode[] nodes); - + GKPolygonObstacle [] ObstaclesFromNodeBounds (SKNode [] nodes); + // Moved from SpriteKit to GameplayKit header in iOS 10 beta 1 [NoWatch] - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("obstaclesFromNodePhysicsBodies:")] - GKPolygonObstacle[] ObstaclesFromNodePhysicsBodies (SKNode[] nodes); + GKPolygonObstacle [] ObstaclesFromNodePhysicsBodies (SKNode [] nodes); // Moved from SpriteKit to GameplayKit header in iOS 10 beta 1 [NoWatch] - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("obstaclesFromSpriteTextures:accuracy:")] - GKPolygonObstacle[] ObstaclesFromSpriteTextures (SKNode[] sprites, float accuracy); + GKPolygonObstacle [] ObstaclesFromSpriteTextures (SKNode [] sprites, float accuracy); #if !NET - [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.WatchOS, 3,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [iOS (9,0),Mac(10,11)] + [Deprecated (PlatformName.iOS, 10, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [iOS (9, 0), Mac (10, 11)] [Export ("attributeValues", ArgumentSemantic.Copy)] NSDictionary AttributeValues { get; set; } - [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.WatchOS, 3,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [iOS (9,0),Mac(10,11)] + [Deprecated (PlatformName.iOS, 10, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [iOS (9, 0), Mac (10, 11)] [Export ("valueForAttributeNamed:")] [return: NullAllowed] SKAttributeValue GetValue (string key); - [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [Deprecated (PlatformName.WatchOS, 3,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] - [iOS (9,0),Mac(10,11)] + [Deprecated (PlatformName.iOS, 10, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] + [iOS (9, 0), Mac (10, 11)] [Export ("setValue:forAttributeNamed:")] void SetValue (SKAttributeValue value, string key); #endif #if !WATCH // Extensions from GameplayKit, inlined to avoid ugly static extension syntax - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Static] [Export ("obstaclesFromSpriteTextures:accuracy:")] GKPolygonObstacle [] GetObstaclesFromSpriteTextures (SKNode [] sprites, float accuracy); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Static] [Export ("obstaclesFromNodeBounds:")] GKPolygonObstacle [] GetObstaclesFromNodeBounds (SKNode [] nodes); - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Static] [Export ("obstaclesFromNodePhysicsBodies:")] GKPolygonObstacle [] GetObstaclesFromNodePhysicsBodies (SKNode [] nodes); #endif } - [NoiOS][NoTV][NoWatch][NoMacCatalyst] - [Mac(10,9)] + [NoiOS] + [NoTV] + [NoWatch] + [NoMacCatalyst] + [Mac (10, 9)] [Category, BaseType (typeof (NSEvent))] partial interface SKNodeEvent_NSEvent { @@ -416,9 +424,10 @@ namespace SpriteKit { CGPoint LocationInNode (SKNode node); } - [NoMac][MacCatalyst (13,1)] + [NoMac] + [MacCatalyst (13, 1)] [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Category, BaseType (typeof (UITouch))] partial interface SKNodeTouches_UITouch { @@ -429,9 +438,9 @@ namespace SpriteKit { CGPoint PreviousLocationInNode (SKNode node); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKEffectNode : SKWarpable { @@ -452,29 +461,29 @@ namespace SpriteKit { [Export ("blendMode")] SKBlendMode BlendMode { get; set; } - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [NullAllowed] // by default this property is null [Export ("shader", ArgumentSemantic.Retain)] SKShader Shader { get; set; } - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("attributeValues", ArgumentSemantic.Copy)] NSDictionary AttributeValues { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("valueForAttributeNamed:")] [return: NullAllowed] SKAttributeValue GetValue (string key); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setValue:forAttributeNamed:")] void SetValue (SKAttributeValue value, string key); } delegate Vector3 SKFieldForceEvaluator (/* vector_float3 */ Vector4 position, /* vector_float3 */ Vector4 velocity, float /* float, not CGFloat */ mass, float /* float, not CGFloat */ charge, double time); - - [Watch (3,0)] - [iOS (8,0), Mac(10,10)] + + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (SKNode))] interface SKFieldNode { [Export ("region", ArgumentSemantic.Retain)] @@ -503,8 +512,10 @@ namespace SpriteKit { [Export ("direction")] /* This was typed as Vector4 since sizeof the native type (vector_float3) = 16 */ Vector4 Direction { - [MarshalDirective (NativePrefix = "xamarin_vector_float3__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_vector_float3__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_vector_float3__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_vector_float3__", Library = "__Internal")] + set; } [Export ("smoothness")] @@ -556,9 +567,9 @@ namespace SpriteKit { SKFieldNode CreateCustomField (SKFieldForceEvaluator evaluator); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKEffectNode))] interface SKScene #if !WATCH @@ -571,8 +582,9 @@ namespace SpriteKit { [Static, Export ("sceneWithSize:")] SKScene FromSize (CGSize size); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("sceneDidLoad")] void SceneDidLoad (); @@ -624,38 +636,38 @@ namespace SpriteKit { [Export ("didChangeSize:")] void DidChangeSize (CGSize oldSize); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("didApplyConstraints")] void DidApplyConstraints (); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("didFinishUpdate")] void DidFinishUpdate (); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] - NSObject WeakDelegate { get; set;} + NSObject WeakDelegate { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Wrap ("WeakDelegate")] [Protocolize] SKSceneDelegate Delegate { get; set; } - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("audioEngine", ArgumentSemantic.Retain)] AVAudioEngine AudioEngine { get; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed, Export ("camera", ArgumentSemantic.Weak)] SKCameraNode Camera { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [NullAllowed, Export ("listener", ArgumentSemantic.Weak)] SKNode Listener { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac(10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [Protocol, Model] [BaseType (typeof (NSObject))] interface SKSceneDelegate { @@ -675,9 +687,9 @@ namespace SpriteKit { void DidFinishUpdate (SKScene scene); } - [Watch (3,0)] - [Mac (10,10)] - [iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SKShader : NSCopying, NSSecureCoding { [Export ("initWithSource:")] @@ -717,14 +729,15 @@ namespace SpriteKit { [Export ("removeUniformNamed:")] void RemoveUniform (string uniforName); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("attributes", ArgumentSemantic.Copy)] - SKAttribute[] Attributes { get; set; } + SKAttribute [] Attributes { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKSpriteNode : SKWarpable { @@ -781,58 +794,58 @@ namespace SpriteKit { // iOS 8 // - - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("spriteNodeWithTexture:normalMap:")] SKSpriteNode Create ([NullAllowed] SKTexture texture, [NullAllowed] SKTexture normalMap); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("spriteNodeWithImageNamed:normalMapped:")] SKSpriteNode Create (string imageName, bool generateNormalMap); - - [iOS (8,0), Mac (10,10)] + + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("normalTexture", ArgumentSemantic.Retain)] SKTexture NormalTexture { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("lightingBitMask")] uint LightingBitMask { get; set; } /* uint32_t */ - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("shadowCastBitMask")] uint ShadowCastBitMask { get; set; } /* uint32_t */ - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("shadowedBitMask")] uint ShadowedBitMask { get; set; } /* uint32_t */ - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("shader", ArgumentSemantic.Retain), NullAllowed] - SKShader Shader { get; set; } + SKShader Shader { get; set; } - [iOS (10,0), Mac (10,12)] - [TV (10,0)] + [iOS (10, 0), Mac (10, 12)] + [TV (10, 0)] [Export ("scaleToSize:")] void ScaleTo (CGSize size); - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("attributeValues", ArgumentSemantic.Copy)] NSDictionary AttributeValues { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("valueForAttributeNamed:")] [return: NullAllowed] SKAttributeValue GetValue (string key); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setValue:forAttributeNamed:")] void SetValue (SKAttributeValue value, string key); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] partial interface SKKeyframeSequence : NSSecureCoding, NSCopying { @@ -882,9 +895,9 @@ namespace SpriteKit { SKRepeatMode RepeatMode { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKEmitterNode { @@ -1039,7 +1052,7 @@ namespace SpriteKit { // // iOS 8 // - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("fieldBitMask")] uint FieldBitMask { get; set; } /* uint32_t */ @@ -1049,32 +1062,33 @@ namespace SpriteKit { [Export ("particleZPositionSpeed")] nfloat ParticleZPositionSpeed { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("shader", ArgumentSemantic.Retain)] SKShader Shader { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("particleRenderOrder", ArgumentSemantic.Assign)] SKParticleRenderOrder ParticleRenderOrder { get; set; } - [iOS (9,0),Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("attributeValues", ArgumentSemantic.Copy)] NSDictionary AttributeValues { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("valueForAttributeNamed:")] [return: NullAllowed] SKAttributeValue GetValue (string key); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setValue:forAttributeNamed:")] void SetValue (SKAttributeValue value, string key); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKShapeNode { @@ -1103,108 +1117,108 @@ namespace SpriteKit { // // iOS 8 // - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("fillTexture", ArgumentSemantic.Retain)] SKTexture FillTexture { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("fillShader", ArgumentSemantic.Retain)] SKShader FillShader { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("strokeTexture", ArgumentSemantic.Retain)] SKTexture StrokeTexture { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed] // by default this property is null [Export ("strokeShader", ArgumentSemantic.Retain)] SKShader StrokeShader { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithPath:")] SKShapeNode FromPath (CGPath path); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithPath:centered:")] SKShapeNode FromPath (CGPath path, bool centered); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithRect:")] SKShapeNode FromRect (CGRect rect); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithRectOfSize:")] SKShapeNode FromRect (CGSize size); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithRect:cornerRadius:")] SKShapeNode FromRect (CGRect rect, nfloat cornerRadius); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithRectOfSize:cornerRadius:")] SKShapeNode FromRect (CGSize size, nfloat cornerRadius); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithCircleOfRadius:")] SKShapeNode FromCircle (nfloat radius); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithEllipseInRect:")] SKShapeNode FromEllipse (CGRect rect); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithEllipseOfSize:")] SKShapeNode FromEllipse (CGSize size); #if XAMCORE_3_0 // Hide this ugly api fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39706 [Internal] #endif - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithPoints:count:")] SKShapeNode FromPoints (ref CGPoint points, nuint numPoints); #if XAMCORE_3_0 // Hide this ugly api fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39706 [Internal] #endif - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("shapeNodeWithSplinePoints:count:")] SKShapeNode FromSplinePoints (ref CGPoint points, nuint numPoints); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("lineCap")] CGLineCap LineCap { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("lineJoin")] CGLineJoin LineJoin { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("miterLimit")] nfloat MiterLimit { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("lineLength")] nfloat LineLength { get; } - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("attributeValues", ArgumentSemantic.Copy)] NSDictionary AttributeValues { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("valueForAttributeNamed:")] [return: NullAllowed] SKAttributeValue GetValue (string key); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("setValue:forAttributeNamed:")] void SetValue (SKAttributeValue value, string key); } - [Watch (3,0)] - [iOS (8,0), Mac(10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] interface SKReachConstraints : NSSecureCoding { [DesignatedInitializer] @@ -1218,8 +1232,8 @@ namespace SpriteKit { nfloat UpperAngleLimit { get; set; } } - [Watch (3,0)] - [iOS(8,0), Mac(10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (NSObject))] interface SKRegion : NSCopying, NSSecureCoding { [Export ("initWithRadius:")] @@ -1236,7 +1250,7 @@ namespace SpriteKit { CGPath Path { get; } [Static, Export ("infiniteRegion")] - SKRegion InfiniteRegion { get; } + SKRegion InfiniteRegion { get; } [Export ("inverseRegion")] SKRegion InverseRegion (); @@ -1254,9 +1268,9 @@ namespace SpriteKit { bool ContainsPoint (CGPoint point); } - [Watch (3,0)] - [iOS (7,0)] - [Mac (10,9)] + [Watch (3, 0)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (SKNode))] partial interface SKLabelNode { @@ -1266,11 +1280,11 @@ namespace SpriteKit { [Export ("initWithFontNamed:")] NativeHandle Constructor ([NullAllowed] string fontName); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("labelNodeWithText:")] SKLabelNode FromText ([NullAllowed] string text); - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Static] [Export ("labelNodeWithAttributedText:")] SKLabelNode FromText ([NullAllowed] NSAttributedString attributedText); @@ -1281,15 +1295,15 @@ namespace SpriteKit { [Export ("horizontalAlignmentMode")] SKLabelHorizontalAlignmentMode HorizontalAlignmentMode { get; set; } - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Export ("numberOfLines")] nint NumberOfLines { get; set; } - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Export ("lineBreakMode", ArgumentSemantic.Assign)] NSLineBreakMode LineBreakMode { get; set; } - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] [Export ("preferredMaxLayoutWidth")] nfloat PreferredMaxLayoutWidth { get; set; } @@ -1301,7 +1315,7 @@ namespace SpriteKit { [NullAllowed] // nullable in Xcode7 headers and caught by introspection tests string Text { get; set; } - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] [NullAllowed, Export ("attributedText", ArgumentSemantic.Copy)] NSAttributedString AttributedText { get; set; } @@ -1323,8 +1337,8 @@ namespace SpriteKit { SKBlendMode BlendMode { get; set; } } - [Watch (3,0)] - [iOS (8,0), Mac(10,10)] + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (SKNode))] interface SKLightNode { [Export ("enabled")] @@ -1346,9 +1360,9 @@ namespace SpriteKit { uint CategoryBitMask { get; set; } /* uint32_t */ } - [Watch (4,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (4, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKVideoNode { @@ -1412,9 +1426,9 @@ namespace SpriteKit { CGPoint AnchorPoint { get; set; } } - [Watch (3,0)] - [iOS (8,0)] - [Mac (10,10)] + [Watch (3, 0)] + [iOS (8, 0)] + [Mac (10, 10)] [BaseType (typeof (NSObject))] interface SKConstraint : NSSecureCoding, NSCopying { [Export ("enabled")] @@ -1455,9 +1469,9 @@ namespace SpriteKit { SKConstraint CreateOrientToPoint (CGPoint point, SKNode node, SKRange radians); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKNode))] partial interface SKCropNode { @@ -1467,8 +1481,8 @@ namespace SpriteKit { } [NoWatch] - [Mac (10,9)] - [iOS (7,0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (UIView))] #if XAMCORE_3_0 [DisableDefaultCtor] @@ -1493,7 +1507,7 @@ namespace SpriteKit { [Export ("showsNodeCount")] bool ShowsNodeCount { get; set; } - [iOS (7,1), Mac(10,10)] + [iOS (7, 1), Mac (10, 10)] [Export ("showsPhysics")] bool ShowsPhysics { get; set; } @@ -1532,58 +1546,62 @@ namespace SpriteKit { // // iOS 8 // - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("allowsTransparency")] bool AllowsTransparency { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("shouldCullNonVisibleNodes")] bool ShouldCullNonVisibleNodes { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("showsFields")] bool ShowsFields { get; set; } - - [iOS (8,0), Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Export ("showsQuadCount")] bool ShowsQuadCount { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("textureFromNode:crop:")] [return: NullAllowed] SKTexture TextureFromNode (SKNode node, CGRect crop); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] ISKViewDelegate Delegate { get; set; } - [iOS (14,0)][TV (14,0)][Mac (11,0)] - [MacCatalyst (14,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Mac (11, 0)] + [MacCatalyst (14, 0)] [Export ("disableDepthStencilBuffer")] bool DisableDepthStencilBuffer { get; set; } } - interface ISKViewDelegate {} + interface ISKViewDelegate { } [NoWatch] - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface SKViewDelegate - { + [BaseType (typeof (NSObject))] + interface SKViewDelegate { [Export ("view:shouldRenderAtTime:")] bool ShouldRender (SKView view, double time); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] partial interface SKTransition : NSCopying { @@ -1638,9 +1656,9 @@ namespace SpriteKit { bool PausesOutgoingScene { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] partial interface SKTexture : NSSecureCoding, NSCopying { @@ -1690,33 +1708,33 @@ namespace SpriteKit { // note: unlike SKTextureAtlas completion can't be null (or it crash) void Preload (Action completion); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("textureByGeneratingNormalMap")] SKTexture CreateTextureByGeneratingNormalMap (); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("textureByGeneratingNormalMapWithSmoothness:contrast:")] SKTexture CreateTextureByGeneratingNormalMap (nfloat smoothness, nfloat contrast); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("textureVectorNoiseWithSmoothness:size:")] SKTexture FromTextureVectorNoise (nfloat smoothness, CGSize size); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("textureNoiseWithSmoothness:size:grayscale:")] SKTexture FromTextureNoise (nfloat smoothness, CGSize size, bool grayscale); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("textureWithData:size:flipped:")] SKTexture FromData (NSData pixelData, CGSize size, bool flipped); - [iOS (9,0), Mac (10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("CGImage")] CGImage CGImage { get; } #if !WATCH // Static Category from GameplayKit - [iOS (10,0), TV (10,0), NoWatch, Mac (10,12)] + [iOS (10, 0), TV (10, 0), NoWatch, Mac (10, 12)] [Static] [Export ("textureWithNoiseMap:")] SKTexture FromNoiseMap (GKNoiseMap noiseMap); @@ -1724,9 +1742,9 @@ namespace SpriteKit { } delegate void SKTextureModify (IntPtr pixelData, nuint lengthInBytes); - - [Watch (3,0)] - [iOS (8,0), Mac(10,10)] + + [Watch (3, 0)] + [iOS (8, 0), Mac (10, 10)] [BaseType (typeof (SKTexture))] [DisableDefaultCtor] // cannot be created (like SKTexture) by calling `init` interface SKMutableTexture { @@ -1744,10 +1762,10 @@ namespace SpriteKit { } delegate void SKTextureAtlasLoadCallback (NSError error, SKTextureAtlas foundAtlases); - - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] partial interface SKTextureAtlas : NSSecureCoding { @@ -1766,25 +1784,25 @@ namespace SpriteKit { // Unfortunate name, should have been PreloadTextureAtlases void PreloadTextures (SKTextureAtlas [] textures, Action completion); - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] [Export ("preloadTextureAtlasesNamed:withCompletionHandler:")] - [Async(ResultTypeName="SKTextureAtlasLoadResult")] - void PreloadTextureAtlases (string[] atlasNames, SKTextureAtlasLoadCallback completionHandler); + [Async (ResultTypeName = "SKTextureAtlasLoadResult")] + void PreloadTextureAtlases (string [] atlasNames, SKTextureAtlasLoadCallback completionHandler); [Export ("preloadWithCompletionHandler:")] [Async] void Preload (Action completion); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("atlasWithDictionary:")] SKTextureAtlas FromDictionary (NSDictionary properties); - + } - [Watch (3,0)] - [Mac (10,10)] - [iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SKUniform : NSCopying, NSSecureCoding { [Export ("initWithName:")] @@ -1803,8 +1821,9 @@ namespace SpriteKit { [Export ("initWithName:floatVector2:")] IntPtr InitWithNameFloatVector2 (string name, Vector2 value); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:vectorFloat2:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] [MarshalNativeExceptions] @@ -1822,8 +1841,9 @@ namespace SpriteKit { [Export ("initWithName:floatVector3:")] IntPtr InitWithNameFloatVector3 (string name, Vector3 value); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:vectorFloat3:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] #if WATCH @@ -1832,7 +1852,7 @@ namespace SpriteKit { [Internal] IntPtr InitWithNameVectorFloat3 (string name, Vector3 value); #endif - + [Internal] [NoWatch] [Deprecated (PlatformName.iOS, 10, 0)] @@ -1840,8 +1860,9 @@ namespace SpriteKit { [Export ("initWithName:floatVector4:")] IntPtr InitWithNameFloatVector4 (string name, Vector4 value); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:vectorFloat4:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] #if WATCH @@ -1862,8 +1883,9 @@ namespace SpriteKit { #if !NET [Obsolete ("Use the '(string, MatrixFloat2x2)' overload instead.")] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Sealed] [Export ("initWithName:matrixFloat2x2:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1875,8 +1897,9 @@ namespace SpriteKit { #endif // WATCH #endif // !NET - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:matrixFloat2x2:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (string name, MatrixFloat2x2 value); @@ -1890,8 +1913,9 @@ namespace SpriteKit { IntPtr InitWithNameFloatMatrix3 (string name, Matrix3 value); [Obsolete ("Use the '(string, MatrixFloat3x3)' overload instead.")] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Sealed] [Export ("initWithName:matrixFloat3x3:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1903,8 +1927,9 @@ namespace SpriteKit { #endif // WATCH #endif // !NET - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:matrixFloat3x3:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (string name, MatrixFloat3x3 value); @@ -1920,8 +1945,9 @@ namespace SpriteKit { #if !NET [Obsolete ("Use the '(string, MatrixFloat4x4)' overload instead.")] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:matrixFloat4x4:")] [Sealed] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] @@ -1933,8 +1959,9 @@ namespace SpriteKit { #endif // WATCH #endif // !NET - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("initWithName:matrixFloat4x4:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] NativeHandle Constructor (string name, MatrixFloat4x4 value); @@ -1959,8 +1986,9 @@ namespace SpriteKit { [Export ("floatVector2Value")] Vector2 _FloatVector2Value { get; set; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("vectorFloat2Value", ArgumentSemantic.Assign)] #if WATCH Vector2 FloatVector2Value { @@ -1968,8 +1996,10 @@ namespace SpriteKit { [Internal] Vector2 _VectorFloat2Value { #endif - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Internal] @@ -1979,8 +2009,9 @@ namespace SpriteKit { [Export ("floatVector3Value")] Vector3 _FloatVector3Value { get; set; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("vectorFloat3Value", ArgumentSemantic.Assign)] #if WATCH Vector3 FloatVector3Value { @@ -1988,8 +2019,10 @@ namespace SpriteKit { [Internal] Vector3 _VectorFloat3Value { #endif - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Internal] @@ -1999,8 +2032,9 @@ namespace SpriteKit { [Export ("floatVector4Value")] Vector4 _FloatVector4Value { get; set; } - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("vectorFloat4Value", ArgumentSemantic.Assign)] #if WATCH Vector4 FloatVector4Value { @@ -2008,8 +2042,10 @@ namespace SpriteKit { [Internal] Vector4 _VectorFloat4Value { #endif - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #if !NET @@ -2035,12 +2071,15 @@ namespace SpriteKit { #if !NET && WATCH [Sealed] // The selector is already used in the 'FloatMatrix2x2Value' property. #endif - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("matrixFloat2x2Value", ArgumentSemantic.Assign)] MatrixFloat2x2 MatrixFloat2x2Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #if !NET @@ -2066,12 +2105,15 @@ namespace SpriteKit { #if !NET && WATCH [Sealed] // The selector is already used in the 'FloatMatrix3x3Value' property. #endif - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("matrixFloat3x3Value", ArgumentSemantic.Assign)] MatrixFloat3x3 MatrixFloat3x3Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } #if !NET @@ -2097,12 +2139,15 @@ namespace SpriteKit { #if !NET && WATCH [Sealed] // The selector is already used in the 'FloatMatrix4x4Value' property. #endif - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Export ("matrixFloat4x4Value", ArgumentSemantic.Assign)] MatrixFloat4x4 MatrixFloat4x4Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Static, Export ("uniformWithName:")] @@ -2114,7 +2159,8 @@ namespace SpriteKit { [Static, Export ("uniformWithName:float:")] SKUniform Create (string name, float /* float, not CGFloat */ value); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:vectorFloat2:")] @@ -2122,14 +2168,16 @@ namespace SpriteKit { [MarshalNativeExceptions] SKUniform Create (string name, Vector2 value); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:vectorFloat3:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] SKUniform Create (string name, Vector3 value); - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:vectorFloat4:")] @@ -2138,7 +2186,8 @@ namespace SpriteKit { #if !NET [Obsolete ("Use the '(string, MatrixFloat2x2)' overload instead.")] - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat2x2:")] @@ -2146,7 +2195,8 @@ namespace SpriteKit { SKUniform Create (string name, Matrix2 value); #endif // !NET - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat2x2:")] @@ -2155,7 +2205,8 @@ namespace SpriteKit { #if !NET [Obsolete ("Use the '(string, MatrixFloat3x3)' overload instead.")] - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat3x3:")] @@ -2163,7 +2214,8 @@ namespace SpriteKit { SKUniform Create (string name, Matrix3 value); #endif - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat3x3:")] @@ -2172,7 +2224,8 @@ namespace SpriteKit { #if !NET [Obsolete ("Use 'the '(string, MatrixFloat4x4)' overload instead.")] - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat4x4:")] @@ -2180,7 +2233,8 @@ namespace SpriteKit { SKUniform Create (string name, Matrix4 value); #endif // !NET - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [TV (10, 0)] [Static] [Export ("uniformWithName:matrixFloat4x4:")] @@ -2190,9 +2244,9 @@ namespace SpriteKit { delegate void SKActionDurationHandler (SKNode node, nfloat elapsedTime); - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // To create an action, call the class method for the action you are interested in. partial interface SKAction : NSSecureCoding, NSCopying { @@ -2208,7 +2262,7 @@ namespace SpriteKit { [Export ("reversedAction")] SKAction ReversedAction { get; } - + // These are in a category [Static, Export ("moveByX:y:duration:")] SKAction MoveBy (nfloat deltaX, nfloat deltaY, double sec); @@ -2264,8 +2318,9 @@ namespace SpriteKit { [Static, Export ("scaleYTo:duration:")] SKAction ScaleYTo (nfloat scale, double sec); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("scaleToSize:duration:")] SKAction ScaleTo (CGSize size, double sec); @@ -2294,11 +2349,11 @@ namespace SpriteKit { [Static, Export ("fadeAlphaTo:duration:")] SKAction FadeAlphaTo (nfloat alpha, double sec); - [iOS (7,1), Mac (10,10)] + [iOS (7, 1), Mac (10, 10)] [Static, Export ("setTexture:")] SKAction SetTexture (SKTexture texture); - [iOS (7,1), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (7, 1), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("setTexture:resize:")] SKAction SetTexture (SKTexture texture, bool resize); @@ -2323,11 +2378,11 @@ namespace SpriteKit { [Static, Export ("followPath:asOffset:orientToPath:duration:")] SKAction FollowPath (CGPath path, bool offset, bool orient, double sec); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("followPath:speed:")] SKAction FollowPath (CGPath path, nfloat speed); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("followPath:asOffset:orientToPath:speed:")] SKAction FollowPath (CGPath path, bool offset, bool orient, nfloat speed); @@ -2364,269 +2419,305 @@ namespace SpriteKit { // // iOS 8 cluster (a few more are above, as part of their family // - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("hide")] SKAction Hide (); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("unhide")] - SKAction Unhide (); + SKAction Unhide (); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("reachTo:rootNode:duration:")] SKAction ReachTo (CGPoint position, SKNode rootNode, double secs); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("reachTo:rootNode:velocity:")] SKAction ReachTo (CGPoint position, SKNode rootNode, nfloat velocity); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("reachToNode:rootNode:duration:")] SKAction ReachToNode (SKNode node, SKNode rootNode, double sec); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("reachToNode:rootNode:velocity:")] SKAction ReachToNode (SKNode node, SKNode rootNode, nfloat velocity); - - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("strengthTo:duration:")] SKAction StrengthTo (float /* float, not CGFloat */ strength, double sec); - [iOS (8,0), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. + [iOS (8, 0), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk. [Static, Export ("strengthBy:duration:")] SKAction StrengthBy (float /* float, not CGFloat */ strength, double sec); - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [NullAllowed, Export ("timingFunction", ArgumentSemantic.Assign)] SKActionTimingFunction2 TimingFunction2 { get; set; } - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("falloffBy:duration:")] SKAction FalloffBy (float /* float, not CGFloat */ to, double duration); - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static] [Export ("falloffTo:duration:")] SKAction FalloffTo (float falloff, double sec); // iOS 9 cluster - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("actionNamed:")] [return: NullAllowed] SKAction Create (string name); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("actionNamed:duration:")] [return: NullAllowed] SKAction Create (string name, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("actionNamed:fromURL:")] [return: NullAllowed] SKAction Create (string name, NSUrl url); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("actionNamed:fromURL:duration:")] [return: NullAllowed] SKAction Create (string name, NSUrl url, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("setNormalTexture:")] SKAction SetNormalTexture (SKTexture texture); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("setNormalTexture:resize:")] SKAction SetNormalTexture (SKTexture texture, bool resize); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("animateWithNormalTextures:timePerFrame:")] - SKAction AnimateWithNormalTextures (SKTexture[] textures, double secondsPerFrame); - - [iOS (9,0)][Mac (10,11)] + SKAction AnimateWithNormalTextures (SKTexture [] textures, double secondsPerFrame); + + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("animateWithNormalTextures:timePerFrame:resize:restore:")] - SKAction AnimateWithNormalTextures (SKTexture[] textures, double secondsPerFrame, bool resize, bool restore); + SKAction AnimateWithNormalTextures (SKTexture [] textures, double secondsPerFrame, bool resize, bool restore); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("play")] SKAction CreatePlay (); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("pause")] SKAction CreatePause (); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("stop")] SKAction CreateStop (); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changePlaybackRateTo:duration:")] SKAction CreateChangePlaybackRate (float playbackRate, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changePlaybackRateBy:duration:")] SKAction CreateChangePlaybackRateBy (float playbackRate, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeVolumeTo:duration:")] SKAction CreateChangeVolume (float newVolume, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeVolumeBy:duration:")] SKAction CreateChangeVolumeBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeChargeTo:duration:")] SKAction CreateChangeChargeTo (float newCharge, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeChargeBy:duration:")] SKAction CreateChangeChargeBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeMassTo:duration:")] SKAction CreateChangeMassTo (float newMass, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeMassBy:duration:")] SKAction CreateChangeMassBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyForce:duration:")] SKAction CreateApplyForce (CGVector force, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyForce:atPoint:duration:")] SKAction CreateApplyForce (CGVector force, CGPoint point, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyTorque:duration:")] SKAction CreateApplyTorque (nfloat torque, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyImpulse:duration:")] SKAction CreateApplyImpulse (CGVector impulse, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyImpulse:atPoint:duration:")] SKAction CreateApplyImpulse (CGVector impulse, CGPoint point, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("applyAngularImpulse:duration:")] SKAction CreateApplyAngularImpulse (nfloat impulse, double duration); // SKAction_SKAudioNode inlined - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("stereoPanTo:duration:")] SKAction CreateStereoPanTo (float target, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("stereoPanBy:duration:")] SKAction CreateStereoPanBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeReverbTo:duration:")] SKAction CreateChangeReverbTo (float target, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeReverbBy:duration:")] SKAction CreateChangeReverbBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeObstructionTo:duration:")] SKAction CreateChangeObstructionTo (float target, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeObstructionBy:duration:")] SKAction CreateChangeObstructionBy (float by, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeOcclusionTo:duration:")] SKAction CreateChangeOcclusionTo (float target, double duration); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Static] [Export ("changeOcclusionBy:duration:")] SKAction CreateChangeOcclusionBy (float by, double duration); // SKAction_SKWarpable - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("warpTo:duration:")] [return: NullAllowed] SKAction WarpTo (SKWarpGeometry warp, double duration); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("animateWithWarps:times:")] [return: NullAllowed] - SKAction Animate (SKWarpGeometry[] warps, NSNumber[] times); + SKAction Animate (SKWarpGeometry [] warps, NSNumber [] times); - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Static] [Export ("animateWithWarps:times:restore:")] [return: NullAllowed] - SKAction Animate (SKWarpGeometry[] warps, NSNumber[] times, bool restore); + SKAction Animate (SKWarpGeometry [] warps, NSNumber [] times, bool restore); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [DisableDefaultCtor] // see https://bugzilla.xamarin.com/show_bug.cgi?id=14502 [BaseType (typeof (NSObject))] partial interface SKPhysicsBody : NSSecureCoding, NSCopying { - [iOS (7,1), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] + [iOS (7, 1), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] [Static, Export ("bodyWithBodies:")] SKPhysicsBody FromBodies (SKPhysicsBody [] bodies); [Static, Export ("bodyWithCircleOfRadius:")] SKPhysicsBody CreateCircularBody (nfloat radius); - [iOS (7,1), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] + [iOS (7, 1), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] [Static, Export ("bodyWithCircleOfRadius:center:")] SKPhysicsBody CreateCircularBody (nfloat radius, CGPoint center); [Static, Export ("bodyWithRectangleOfSize:")] SKPhysicsBody CreateRectangularBody (CGSize size); - [iOS (7,1), Mac (10,10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] + [iOS (7, 1), Mac (10, 10)] // this method is missing the NS_AVAILABLE macro, but it shows up in the 10.10 sdk, but not the 10.9 sdk.] [Static, Export ("bodyWithRectangleOfSize:center:")] SKPhysicsBody CreateRectangularBody (CGSize size, CGPoint center); @@ -2727,30 +2818,30 @@ namespace SpriteKit { // // iOS 8 // - [iOS(8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("bodyWithTexture:size:")] SKPhysicsBody Create (SKTexture texture, CGSize size); - [iOS(8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Static, Export ("bodyWithTexture:alphaThreshold:size:")] SKPhysicsBody Create (SKTexture texture, float /* float, not CGFloat */ alphaThreshold, CGSize size); - [iOS(8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("charge")] nfloat Charge { get; set; } - [iOS(8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("fieldBitMask")] uint FieldBitMask { get; set; } /* uint32_t */ - - [iOS(8,0), Mac(10,10)] + + [iOS (8, 0), Mac (10, 10)] [Export ("pinned")] bool Pinned { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // An SKPhysicsContact object is created automatically by Scene Kit partial interface SKPhysicsContact { @@ -2767,15 +2858,15 @@ namespace SpriteKit { [Export ("collisionImpulse")] nfloat CollisionImpulse { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("contactNormal")] CGVector ContactNormal { get; } - + } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -2791,12 +2882,12 @@ namespace SpriteKit { delegate void SKPhysicsWorldBodiesEnumeratorHandler (SKPhysicsBody body, out bool stop); delegate void SKPhysicsWorldBodiesAlongRayStartEnumeratorHandler (SKPhysicsBody body, CGPoint point, CGVector normal, out bool stop); - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject), - Delegates=new string [] {"WeakContactDelegate"}, - Events=new Type [] {typeof (SKPhysicsContactDelegate)})] + Delegates = new string [] { "WeakContactDelegate" }, + Events = new Type [] { typeof (SKPhysicsContactDelegate) })] [DisableDefaultCtor] // You do not create SKPhysicsWorld objects directly; instead, read the physicsWorld property of an SKScene object. partial interface SKPhysicsWorld : NSSecureCoding { @@ -2846,15 +2937,15 @@ namespace SpriteKit { // // iOS 8 // - [iOS (8,0), Mac(10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("sampleFieldsAt:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Vector3 SampleFields (/* vector_float3 */ Vector3 position); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [Abstract] // You never instantiate objects of this class directly partial interface SKPhysicsJoint : NSSecureCoding { @@ -2865,18 +2956,18 @@ namespace SpriteKit { [Export ("bodyB", ArgumentSemantic.Retain)] SKPhysicsBody BodyB { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("reactionForce")] CGVector ReactionForce { get; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("reactionTorque")] - nfloat ReactionTorque { get; } + nfloat ReactionTorque { get; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKPhysicsJoint))] [DisableDefaultCtor] // impossible to set the `anchor` using the default ctor (see #14511) partial interface SKPhysicsJointPin { @@ -2896,14 +2987,14 @@ namespace SpriteKit { [Export ("frictionTorque")] nfloat FrictionTorque { get; set; } - [iOS (8,0), Mac (10,10)] + [iOS (8, 0), Mac (10, 10)] [Export ("rotationSpeed")] - nfloat RotationSpeed { get; set; } + nfloat RotationSpeed { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKPhysicsJoint))] [DisableDefaultCtor] // impossible to set the `anchorA` and `anchorB` using the default ctor (see #14511) partial interface SKPhysicsJointSpring { @@ -2918,9 +3009,9 @@ namespace SpriteKit { nfloat Frequency { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKPhysicsJoint))] [DisableDefaultCtor] // https://bugzilla.xamarin.com/show_bug.cgi?id=14511 partial interface SKPhysicsJointFixed { @@ -2929,9 +3020,9 @@ namespace SpriteKit { SKPhysicsJointFixed Create (SKPhysicsBody bodyA, SKPhysicsBody bodyB, CGPoint anchor); } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKPhysicsJoint))] [DisableDefaultCtor] // impossible to set the `anchor` and `axis` using the default ctor (see #14511) partial interface SKPhysicsJointSliding { @@ -2949,9 +3040,9 @@ namespace SpriteKit { nfloat UpperDistanceLimit { get; set; } } - [Watch (3,0)] - [Mac (10,9)] - [iOS (7,0)] + [Watch (3, 0)] + [Mac (10, 9)] + [iOS (7, 0)] [BaseType (typeof (SKPhysicsJoint))] [DisableDefaultCtor] // impossible to set the `anchorA` and `anchorB` using the default ctor (see #14511) partial interface SKPhysicsJointLimit { @@ -2963,9 +3054,9 @@ namespace SpriteKit { SKPhysicsJointLimit Create (SKPhysicsBody bodyA, SKPhysicsBody bodyB, CGPoint anchorA, CGPoint anchorB); } - [Watch (3,0)] - [Mac (10,10)] - [iOS (8,0)] + [Watch (3, 0)] + [Mac (10, 10)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] interface SKRange : NSSecureCoding, NSCopying { [DesignatedInitializer] @@ -2997,9 +3088,9 @@ namespace SpriteKit { SKRange CreateUnlimited (); } - [Watch (3,0)] - [iOS (9,0)] - [Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (SKNode))] [DisableDefaultCtor] interface SKAudioNode : NSSecureCoding { @@ -3023,9 +3114,9 @@ namespace SpriteKit { bool Positional { [Bind ("isPositional")] get; set; } } - [Watch (3,0)] - [iOS (9,0)] - [Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (SKNode))] interface SKCameraNode { [Export ("containsNode:")] @@ -3035,9 +3126,9 @@ namespace SpriteKit { NSSet ContainedNodeSet { get; } } - [Watch (3,0)] - [iOS (9,0)] - [Mac (10,11)] + [Watch (3, 0)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (SKNode))] [DisableDefaultCtor] interface SKReferenceNode { @@ -3064,11 +3155,11 @@ namespace SpriteKit { void Resolve (); } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SKAttribute : NSSecureCoding - { + interface SKAttribute : NSSecureCoding { [Static] [Export ("attributeWithName:type:")] SKAttribute Create (string name, SKAttributeType type); @@ -3084,11 +3175,11 @@ namespace SpriteKit { SKAttributeType Type { get; } } - [iOS (9,0)][Mac (10,11)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // DesignatedInitializer below - interface SKAttributeValue : NSSecureCoding - { + interface SKAttributeValue : NSSecureCoding { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -3117,30 +3208,36 @@ namespace SpriteKit { [Export ("vectorFloat2Value", ArgumentSemantic.Assign)] Vector2 VectorFloat2Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("vectorFloat3Value", ArgumentSemantic.Assign)] Vector3 VectorFloat3Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("vectorFloat4Value", ArgumentSemantic.Assign)] Vector4 VectorFloat4Value { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface SKTileDefinition : NSCopying, NSSecureCoding - { + interface SKTileDefinition : NSCopying, NSSecureCoding { [Static] [Export ("tileDefinitionWithTexture:")] SKTileDefinition Create (SKTexture texture); @@ -3155,11 +3252,11 @@ namespace SpriteKit { [Static] [Export ("tileDefinitionWithTextures:size:timePerFrame:")] - SKTileDefinition Create (SKTexture[] textures, CGSize size, nfloat timePerFrame); + SKTileDefinition Create (SKTexture [] textures, CGSize size, nfloat timePerFrame); [Static] [Export ("tileDefinitionWithTextures:normalTextures:size:timePerFrame:")] - SKTileDefinition Create (SKTexture[] textures, SKTexture[] normalTextures, CGSize size, nfloat timePerFrame); + SKTileDefinition Create (SKTexture [] textures, SKTexture [] normalTextures, CGSize size, nfloat timePerFrame); [Export ("initWithTexture:")] NativeHandle Constructor (SKTexture texture); @@ -3171,16 +3268,16 @@ namespace SpriteKit { NativeHandle Constructor (SKTexture texture, SKTexture normalTexture, CGSize size); [Export ("initWithTextures:size:timePerFrame:")] - NativeHandle Constructor (SKTexture[] textures, CGSize size, nfloat timePerFrame); + NativeHandle Constructor (SKTexture [] textures, CGSize size, nfloat timePerFrame); [Export ("initWithTextures:normalTextures:size:timePerFrame:")] - NativeHandle Constructor (SKTexture[] textures, SKTexture[] normalTextures, CGSize size, nfloat timePerFrame); + NativeHandle Constructor (SKTexture [] textures, SKTexture [] normalTextures, CGSize size, nfloat timePerFrame); [Export ("textures", ArgumentSemantic.Copy)] - SKTexture[] Textures { get; set; } + SKTexture [] Textures { get; set; } [Export ("normalTextures", ArgumentSemantic.Copy)] - SKTexture[] NormalTextures { get; set; } + SKTexture [] NormalTextures { get; set; } [NullAllowed, Export ("userData", ArgumentSemantic.Retain)] NSMutableDictionary UserData { get; set; } @@ -3207,12 +3304,12 @@ namespace SpriteKit { bool FlipHorizontally { get; set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(SKNode))] - interface SKTileMapNode : NSCopying, NSSecureCoding - { + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (SKNode))] + interface SKTileMapNode : NSCopying, NSSecureCoding { [Static] [Export ("tileMapNodeWithTileSet:columns:rows:tileSize:")] SKTileMapNode Create (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize); @@ -3223,7 +3320,7 @@ namespace SpriteKit { [Static] [Export ("tileMapNodeWithTileSet:columns:rows:tileSize:tileGroupLayout:")] - SKTileMapNode Create (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, SKTileGroup[] tileGroupLayout); + SKTileMapNode Create (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, SKTileGroup [] tileGroupLayout); [Export ("initWithTileSet:columns:rows:tileSize:")] NativeHandle Constructor (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize); @@ -3232,7 +3329,7 @@ namespace SpriteKit { NativeHandle Constructor (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, SKTileGroup tileGroup); [Export ("initWithTileSet:columns:rows:tileSize:tileGroupLayout:")] - NativeHandle Constructor (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, SKTileGroup[] tileGroupLayout); + NativeHandle Constructor (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, SKTileGroup [] tileGroupLayout); [Export ("numberOfColumns")] nuint NumberOfColumns { get; set; } @@ -3301,7 +3398,7 @@ namespace SpriteKit { [NoWatch] [Static] [Export ("tileMapNodesWithTileSet:columns:rows:tileSize:fromNoiseMap:tileTypeNoiseMapThresholds:")] - SKTileMapNode[] FromTileSet (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, GKNoiseMap noiseMap, NSNumber[] thresholds); + SKTileMapNode [] FromTileSet (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, GKNoiseMap noiseMap, NSNumber [] thresholds); #endif [Export ("attributeValues", ArgumentSemantic.Copy)] @@ -3315,25 +3412,25 @@ namespace SpriteKit { void SetValue (SKAttributeValue value, string key); } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] - interface SKTileSet : NSCopying, NSSecureCoding - { + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] + interface SKTileSet : NSCopying, NSSecureCoding { [Static] [Export ("tileSetWithTileGroups:")] - SKTileSet Create (SKTileGroup[] tileGroups); + SKTileSet Create (SKTileGroup [] tileGroups); [Static] [Export ("tileSetWithTileGroups:tileSetType:")] - SKTileSet Create (SKTileGroup[] tileGroups, SKTileSetType tileSetType); + SKTileSet Create (SKTileGroup [] tileGroups, SKTileSetType tileSetType); [Export ("initWithTileGroups:")] - NativeHandle Constructor (SKTileGroup[] tileGroups); + NativeHandle Constructor (SKTileGroup [] tileGroups); [Export ("initWithTileGroups:tileSetType:")] - NativeHandle Constructor (SKTileGroup[] tileGroups, SKTileSetType tileSetType); + NativeHandle Constructor (SKTileGroup [] tileGroups, SKTileSetType tileSetType); [Static] [Export ("tileSetNamed:")] @@ -3346,7 +3443,7 @@ namespace SpriteKit { SKTileSet FromUrl (NSUrl url); [Export ("tileGroups", ArgumentSemantic.Copy)] - SKTileGroup[] TileGroups { get; set; } + SKTileGroup [] TileGroups { get; set; } [NullAllowed, Export ("name")] string Name { get; set; } @@ -3361,19 +3458,19 @@ namespace SpriteKit { CGSize DefaultTileSize { get; set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] - interface SKTileGroup : NSCopying, NSSecureCoding - { + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] + interface SKTileGroup : NSCopying, NSSecureCoding { [Static] [Export ("tileGroupWithTileDefinition:")] SKTileGroup Create (SKTileDefinition tileDefinition); [Static] [Export ("tileGroupWithRules:")] - SKTileGroup Create (SKTileGroupRule[] rules); + SKTileGroup Create (SKTileGroupRule [] rules); [Static] [Export ("emptyTileGroup")] @@ -3383,50 +3480,51 @@ namespace SpriteKit { NativeHandle Constructor (SKTileDefinition tileDefinition); [Export ("initWithRules:")] - NativeHandle Constructor (SKTileGroupRule[] rules); + NativeHandle Constructor (SKTileGroupRule [] rules); [Export ("rules", ArgumentSemantic.Copy)] - SKTileGroupRule[] Rules { get; set; } + SKTileGroupRule [] Rules { get; set; } [NullAllowed, Export ("name")] string Name { get; set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] - interface SKTileGroupRule : NSCopying, NSSecureCoding - { + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] + interface SKTileGroupRule : NSCopying, NSSecureCoding { [Static] [Export ("tileGroupRuleWithAdjacency:tileDefinitions:")] - SKTileGroupRule Create (SKTileAdjacencyMask adjacency, SKTileDefinition[] tileDefinitions); + SKTileGroupRule Create (SKTileAdjacencyMask adjacency, SKTileDefinition [] tileDefinitions); [Export ("initWithAdjacency:tileDefinitions:")] - NativeHandle Constructor (SKTileAdjacencyMask adjacency, SKTileDefinition[] tileDefinitions); + NativeHandle Constructor (SKTileAdjacencyMask adjacency, SKTileDefinition [] tileDefinitions); [Export ("adjacency", ArgumentSemantic.Assign)] SKTileAdjacencyMask Adjacency { get; set; } [Export ("tileDefinitions", ArgumentSemantic.Copy)] - SKTileDefinition[] TileDefinitions { get; set; } + SKTileDefinition [] TileDefinitions { get; set; } [NullAllowed, Export ("name")] string Name { get; set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(NSObject))] - interface SKWarpGeometry : NSCopying, NSSecureCoding {} + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (NSObject))] + interface SKWarpGeometry : NSCopying, NSSecureCoding { } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] [Protocol] - interface SKWarpable - { + interface SKWarpable { [Abstract] [NullAllowed, Export ("warpGeometry", ArgumentSemantic.Assign)] SKWarpGeometry WarpGeometry { get; set; } @@ -3436,13 +3534,13 @@ namespace SpriteKit { nint SubdivisionLevels { get; set; } } - [Watch (3,0)] - [iOS (10,0)][Mac (10,12)] - [TV (10,0)] - [BaseType (typeof(SKWarpGeometry))] + [Watch (3, 0)] + [iOS (10, 0)] + [Mac (10, 12)] + [TV (10, 0)] + [BaseType (typeof (SKWarpGeometry))] [DisableDefaultCtor] - interface SKWarpGeometryGrid : NSSecureCoding - { + interface SKWarpGeometryGrid : NSSecureCoding { [Static] [Export ("grid")] SKWarpGeometryGrid GetGrid (); @@ -3489,8 +3587,8 @@ namespace SpriteKit { // SKRenderer is not available for WatchKit apps and the iOS simulator [NoWatch] - [TV (11,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SKRenderer { [Static] @@ -3531,8 +3629,8 @@ namespace SpriteKit { bool ShowsFields { get; set; } } - [TV (11,0), Watch (4,0), Mac (10,13), iOS (11,0)] - [BaseType (typeof(SKNode))] + [TV (11, 0), Watch (4, 0), Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (SKNode))] interface SKTransformNode { [Export ("xRotation")] nfloat XRotation { get; set; } @@ -3542,20 +3640,26 @@ namespace SpriteKit { [Export ("eulerAngles")] VectorFloat3 EulerAngles { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("rotationMatrix")] MatrixFloat3x3 RotationMatrix { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } [Export ("quaternion")] Quaternion Quaternion { - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] get; - [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + get; + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + set; } } } diff --git a/src/storekit.cs b/src/storekit.cs index d84ef7fe9f..056f991389 100644 --- a/src/storekit.cs +++ b/src/storekit.cs @@ -35,7 +35,7 @@ using NativeHandle = System.IntPtr; namespace StoreKit { [ErrorDomain ("SKANErrorDomain")] - [NoWatch, NoTV, NoMac, iOS (15,4), NoMacCatalyst] + [NoWatch, NoTV, NoMac, iOS (15, 4), NoMacCatalyst] [Native] public enum SKANError : long { ImpressionMissingRequiredValue = 0, @@ -60,8 +60,8 @@ namespace StoreKit { [BaseType (typeof (NSObject))] partial interface SKDownload { - [iOS (12,0)] - [TV (12,0)] + [iOS (12, 0)] + [TV (12, 0)] [Export ("state")] SKDownloadState State { get; } #if MONOMAC @@ -79,13 +79,13 @@ namespace StoreKit { [NoWatch] [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'State' instead.")] [Export ("downloadState")] - SKDownloadState DownloadState { get; } + SKDownloadState DownloadState { get; } [NoMac] [NoWatch] - [Deprecated (PlatformName.iOS, 13,0, message: "Use 'ExpectedContentLength' instead.")] + [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'ExpectedContentLength' instead.")] [Export ("contentLength")] - long ContentLength { get; } + long ContentLength { get; } #endif [TV (13, 0), Mac (10, 15), iOS (13, 0)] @@ -93,43 +93,49 @@ namespace StoreKit { long ExpectedContentLength { get; } [Export ("contentIdentifier")] - string ContentIdentifier { get; } + string ContentIdentifier { get; } [NullAllowed] [Export ("contentURL", ArgumentSemantic.Copy)] - NSUrl ContentUrl { get; } + NSUrl ContentUrl { get; } [Export ("contentVersion", ArgumentSemantic.Copy)] - string ContentVersion { get; } + string ContentVersion { get; } [NullAllowed] [Export ("error", ArgumentSemantic.Copy)] - NSError Error { get; } + NSError Error { get; } [Export ("progress")] - float Progress { get; } /* float, not CGFloat */ + float Progress { get; } /* float, not CGFloat */ [Export ("timeRemaining")] - double TimeRemaining { get; } + double TimeRemaining { get; } - [NoWatch][NoTV][NoiOS][MacCatalyst (13,0)] + [NoWatch] + [NoTV] + [NoiOS] + [MacCatalyst (13, 0)] [return: NullAllowed] [Export ("contentURLForProductID:")] [Static] NSUrl GetContentUrlForProduct (string productId); - [NoWatch][NoTV][NoiOS][MacCatalyst (13,0)] + [NoWatch] + [NoTV] + [NoiOS] + [MacCatalyst (13, 0)] [Export ("deleteContentForProductID:")] [Static] void DeleteContentForProduct (string productId); - [Mac (10,14)] + [Mac (10, 14)] [Field ("SKDownloadTimeRemainingUnknown")] double TimeRemainingUnknown { get; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("transaction")] - SKPaymentTransaction Transaction { get; } + SKPaymentTransaction Transaction { get; } } [Watch (6, 2)] @@ -139,7 +145,7 @@ namespace StoreKit { #endif partial interface SKPayment : NSMutableCopying { [Static] - [Export("paymentWithProduct:")] + [Export ("paymentWithProduct:")] SKPayment CreateFrom (SKProduct product); [NoMac] @@ -154,23 +160,23 @@ namespace StoreKit { [Export ("requestData", ArgumentSemantic.Copy)] [NullAllowed] - NSData RequestData { get; [NotImplemented ("Not available on SKPayment, only available on SKMutablePayment")] set; } + NSData RequestData { get; [NotImplemented ("Not available on SKPayment, only available on SKMutablePayment")] set; } [Export ("quantity")] nint Quantity { get; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [NullAllowed] [Export ("applicationUsername", ArgumentSemantic.Copy)] string ApplicationUsername { get; } - [iOS (8,3), Mac (10,14)] + [iOS (8, 3), Mac (10, 14)] [Export ("simulatesAskToBuyInSandbox")] bool SimulatesAskToBuyInSandbox { get; [NotImplemented ("Not available on SKPayment, only available on SKMutablePayment")] set; } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [NullAllowed, Export ("paymentDiscount", ArgumentSemantic.Copy)] SKPaymentDiscount PaymentDiscount { get; [NotImplemented ("Not available on SKPayment, only available on SKMutablePayment")] set; } } @@ -182,7 +188,7 @@ namespace StoreKit { #endif interface SKMutablePayment { [Static] - [Export("paymentWithProduct:")] + [Export ("paymentWithProduct:")] SKMutablePayment PaymentWithProduct (SKProduct product); [NoWatch] @@ -191,10 +197,12 @@ namespace StoreKit { [Deprecated (PlatformName.iOS, 5, 0, message: "Use 'PaymentWithProduct (SKProduct)' after fetching the list of available products from 'SKProductRequest' instead.")] SKMutablePayment PaymentWithProduct (string identifier); - [Export ("productIdentifier", ArgumentSemantic.Copy)][New] + [Export ("productIdentifier", ArgumentSemantic.Copy)] + [New] string ProductIdentifier { get; set; } - [Export ("quantity")][New] + [Export ("quantity")] + [New] nint Quantity { get; set; } [NullAllowed] @@ -202,18 +210,19 @@ namespace StoreKit { [Override] NSData RequestData { get; set; } - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [NullAllowed] // by default this property is null - [Export ("applicationUsername", ArgumentSemantic.Copy)][New] + [Export ("applicationUsername", ArgumentSemantic.Copy)] + [New] string ApplicationUsername { get; set; } - [iOS (8,3), Mac (10,14)] + [iOS (8, 3), Mac (10, 14)] [Export ("simulatesAskToBuyInSandbox")] bool SimulatesAskToBuyInSandbox { get; set; } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [NullAllowed, Export ("paymentDiscount", ArgumentSemantic.Copy)] SKPaymentDiscount PaymentDiscount { get; set; } } @@ -221,10 +230,12 @@ namespace StoreKit { [Watch (6, 2)] [BaseType (typeof (NSObject))] interface SKPaymentQueue { - [Export ("defaultQueue")][Static] + [Export ("defaultQueue")] + [Static] SKPaymentQueue DefaultQueue { get; } - [Export ("canMakePayments")][Static] + [Export ("canMakePayments")] + [Static] bool CanMakePayments { get; } [Export ("addPayment:")] @@ -233,7 +244,7 @@ namespace StoreKit { [Export ("restoreCompletedTransactions")] void RestoreCompletedTransactions (); - [iOS (7,0), Mac (10, 9)] + [iOS (7, 0), Mac (10, 9)] [Export ("restoreCompletedTransactionsWithApplicationUsername:")] void RestoreCompletedTransactions ([NullAllowed] string username); @@ -241,10 +252,10 @@ namespace StoreKit { void FinishTransaction (SKPaymentTransaction transaction); [Export ("addTransactionObserver:")] - void AddTransactionObserver ([Protocolize]SKPaymentTransactionObserver observer); + void AddTransactionObserver ([Protocolize] SKPaymentTransactionObserver observer); [Export ("removeTransactionObserver:")] - void RemoveTransactionObserver ([Protocolize]SKPaymentTransactionObserver observer); + void RemoveTransactionObserver ([Protocolize] SKPaymentTransactionObserver observer); [Export ("transactions")] SKPaymentTransaction [] Transactions { get; } @@ -286,31 +297,31 @@ namespace StoreKit { ISKPaymentQueueDelegate Delegate { get; set; } [Mac (10, 15), iOS (13, 0)] - [TV (13,0)] + [TV (13, 0)] [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; set; } [Mac (10, 15), iOS (13, 0)] - [TV (13,0)] + [TV (13, 0)] [NullAllowed, Export ("storefront")] SKStorefront Storefront { get; } - [NoWatch, NoTV, NoMac, iOS (13,4)] + [NoWatch, NoTV, NoMac, iOS (13, 4)] [NoMacCatalyst] [Export ("showPriceConsentIfNeeded")] void ShowPriceConsentIfNeeded (); - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [NoMacCatalyst] [Export ("presentCodeRedemptionSheet")] void PresentCodeRedemptionSheet (); [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("transactionObservers")] - ISKPaymentTransactionObserver[] TransactionObservers { get; } + ISKPaymentTransactionObserver [] TransactionObservers { get; } } - + [Watch (6, 2)] [BaseType (typeof (NSObject))] interface SKProduct { @@ -343,7 +354,7 @@ namespace StoreKit { } #endif - [Mac (10,15)] + [Mac (10, 15)] [Export ("isDownloadable")] bool IsDownloadable { get; } @@ -358,45 +369,45 @@ namespace StoreKit { [Export ("contentLengths")] NSNumber [] ContentLengths { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("downloadContentLengths")] - NSNumber [] DownloadContentLengths { get; } + NSNumber [] DownloadContentLengths { get; } - [iOS (13,0)] - [TV (13,0)] + [iOS (13, 0)] + [TV (13, 0)] [Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'DownloadContentVersion' instead.")] [Export ("contentVersion")] string ContentVersion { get; } - [Mac (10,14)] + [Mac (10, 14)] [Export ("downloadContentVersion")] - string DownloadContentVersion { get; } + string DownloadContentVersion { get; } - [iOS (11,2), TV (11,2), Mac (10,13,2)] + [iOS (11, 2), TV (11, 2), Mac (10, 13, 2)] [NullAllowed, Export ("subscriptionPeriod")] SKProductSubscriptionPeriod SubscriptionPeriod { get; } - [iOS (11,2), TV (11,2), Mac (10,13,2)] + [iOS (11, 2), TV (11, 2), Mac (10, 13, 2)] [NullAllowed, Export ("introductoryPrice")] SKProductDiscount IntroductoryPrice { get; } - [iOS (12,0), TV (12,0), Mac (10,14)] + [iOS (12, 0), TV (12, 0), Mac (10, 14)] [NullAllowed, Export ("subscriptionGroupIdentifier")] string SubscriptionGroupIdentifier { get; } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [Export ("discounts")] SKProductDiscount [] Discounts { get; } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Export ("isFamilyShareable")] bool IsFamilyShareable { get; } } - interface ISKPaymentTransactionObserver {} + interface ISKPaymentTransactionObserver { } [Watch (6, 2)] [BaseType (typeof (NSObject))] @@ -404,7 +415,8 @@ namespace StoreKit { [Protocol] interface SKPaymentTransactionObserver { - [Export ("paymentQueue:updatedTransactions:")][Abstract] + [Export ("paymentQueue:updatedTransactions:")] + [Abstract] void UpdatedTransactions (SKPaymentQueue queue, SKPaymentTransaction [] transactions); [Export ("paymentQueue:removedTransactions:")] @@ -423,19 +435,22 @@ namespace StoreKit { [Export ("paymentQueue:updatedDownloads:")] void UpdatedDownloads (SKPaymentQueue queue, SKDownload [] downloads); - [iOS (11,0)][TV (11,0)][Mac (11,0)][NoWatch] + [iOS (11, 0)] + [TV (11, 0)] + [Mac (11, 0)] + [NoWatch] [Export ("paymentQueue:shouldAddStorePayment:forProduct:")] bool ShouldAddStorePayment (SKPaymentQueue queue, SKPayment payment, SKProduct product); - [Mac (10,15)] - [iOS (13,0)] - [TV (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] [Export ("paymentQueueDidChangeStorefront:")] void DidChangeStorefront (SKPaymentQueue queue); - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Export ("paymentQueue:didRevokeEntitlementsForProductIdentifiers:")] - void DidRevokeEntitlements (SKPaymentQueue queue, string[] productIdentifiers); + void DidRevokeEntitlements (SKPaymentQueue queue, string [] productIdentifiers); } [Watch (6, 2)] @@ -450,7 +465,7 @@ namespace StoreKit { SKPaymentTransaction OriginalTransaction { get; } [Export ("payment")] - SKPayment Payment { get; } + SKPayment Payment { get; } [NullAllowed] [Export ("transactionDate")] @@ -475,13 +490,14 @@ namespace StoreKit { [Deprecated (PlatformName.TvOS, 16, 0)] [Deprecated (PlatformName.WatchOS, 9, 0)] [Export ("downloads")] - SKDownload [] Downloads { get; } + SKDownload [] Downloads { get; } } [Watch (6, 2)] - [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (SKRequestDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (SKRequestDelegate) })] interface SKRequest { - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -502,14 +518,14 @@ namespace StoreKit { interface SKRequestDelegate { [Export ("requestDidFinish:")] void RequestFinished (SKRequest request); - + [Export ("request:didFailWithError:"), EventArgs ("SKRequestError")] void RequestFailed (SKRequest request, NSError error); } [Watch (6, 2)] - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [BaseType (typeof (SKRequest))] interface SKReceiptRefreshRequest { [Export ("initWithReceiptProperties:")] @@ -527,8 +543,8 @@ namespace StoreKit { SKReceiptProperties ReceiptProperties { get; } } - [iOS (7,0)] - [Mac (10,9)] + [iOS (7, 0)] + [Mac (10, 9)] [Watch (6, 2)] [Static, Internal] interface _SKReceiptProperty { @@ -543,19 +559,22 @@ namespace StoreKit { } [Watch (6, 2)] - [BaseType (typeof (SKRequest), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (SKProductsRequestDelegate)})] + [BaseType (typeof (SKRequest), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (SKProductsRequestDelegate) })] interface SKProductsRequest { [Export ("initWithProductIdentifiers:")] NativeHandle Constructor (NSSet productIdentifiersStringSet); - - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed][New] + + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] + [New] NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][New] + [Wrap ("WeakDelegate")] + [New] [Protocolize] SKProductsRequestDelegate Delegate { get; set; } } - + [Watch (6, 2)] [BaseType (typeof (NSObject))] interface SKProductsResponse { @@ -571,14 +590,16 @@ namespace StoreKit { [Model] [Protocol] interface SKProductsRequestDelegate { - [Export ("productsRequest:didReceiveResponse:")][Abstract][EventArgs ("SKProductsRequestResponse")] + [Export ("productsRequest:didReceiveResponse:")] + [Abstract] + [EventArgs ("SKProductsRequestResponse")] void ReceivedResponse (SKProductsRequest request, SKProductsResponse response); } [Mac (11, 0), NoTV, NoWatch] [BaseType (typeof (UIViewController), - Delegates=new string [] { "WeakDelegate" }, - Events =new Type [] { typeof (SKStoreProductViewControllerDelegate) })] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (SKStoreProductViewControllerDelegate) })] interface SKStoreProductViewController { #if !NET // SKStoreProductViewController is an OS View Controller which can't be customized @@ -588,32 +609,33 @@ namespace StoreKit { #endif [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] SKStoreProductViewControllerDelegate Delegate { get; set; } - [Export ("loadProductWithParameters:completionBlock:")][Internal] + [Export ("loadProductWithParameters:completionBlock:")] + [Internal] [Async] - void LoadProduct (NSDictionary parameters, [NullAllowed] Action callback); + void LoadProduct (NSDictionary parameters, [NullAllowed] Action callback); [Wrap ("LoadProduct (parameters.GetDictionary ()!, callback)")] [Async] - void LoadProduct (StoreProductParameters parameters, [NullAllowed] Action callback); + void LoadProduct (StoreProductParameters parameters, [NullAllowed] Action callback); [Async] - [NoMac, iOS (16,0)] + [NoMac, iOS (16, 0)] [Export ("loadProductWithParameters:impression:completionBlock:")] void LoadProduct (NSDictionary parameters, SKAdImpression impression, [NullAllowed] Action callback); [Async] - [NoMac, iOS (16,0)] + [NoMac, iOS (16, 0)] [Wrap ("LoadProduct (parameters.GetDictionary ()!, impression, callback)")] void LoadProduct (StoreProductParameters parameters, SKAdImpression impression, [NullAllowed] Action callback); } - [Mac (11,0), NoTV, NoWatch] + [Mac (11, 0), NoTV, NoWatch] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -623,122 +645,122 @@ namespace StoreKit { } [NoWatch] - [Mac (11,0)] + [Mac (11, 0)] [StrongDictionary ("SKStoreProductParameterKey")] interface StoreProductParameters { - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Export ("ProductIdentifier")] string ProductIdentifier { get; } - [iOS (8,3)] + [iOS (8, 3)] [Export ("ProviderToken")] string ProviderToken { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Export ("AdNetworkAttributionSignature")] string AdNetworkAttributionSignature { get; set; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Export ("AdNetworkCampaignIdentifier")] uint AdNetworkCampaignIdentifier { get; set; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Export ("AdNetworkIdentifier")] string AdNetworkIdentifier { get; set; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Export ("AdNetworkNonce")] NSUuid AdNetworkNonce { get; set; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Export ("AdNetworkTimestamp")] uint AdNetworkTimestamp { get; set; } - [NoWatch, NoMac, TV (14,0), iOS (14, 0)] + [NoWatch, NoMac, TV (14, 0), iOS (14, 0)] [Export ("AdNetworkSourceAppStoreIdentifier")] string AdNetworkSourceAppStoreIdentifier { get; } - [NoWatch, NoMac, TV (14,0), iOS (14, 0)] + [NoWatch, NoMac, TV (14, 0), iOS (14, 0)] [Export ("AdNetworkVersion")] string AdNetworkVersion { get; } } [NoWatch] - [Mac (11,0)] + [Mac (11, 0)] [Static] - interface SKStoreProductParameterKey - { + interface SKStoreProductParameterKey { [Field ("SKStoreProductParameterITunesItemIdentifier")] NSString ITunesItemIdentifier { get; } - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Field ("SKStoreProductParameterProductIdentifier")] NSString ProductIdentifier { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("SKStoreProductParameterAffiliateToken")] NSString AffiliateToken { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("SKStoreProductParameterCampaignToken")] NSString CampaignToken { get; } - [iOS (8,3)] + [iOS (8, 3)] [Field ("SKStoreProductParameterProviderToken")] NSString ProviderToken { get; } - [iOS (9,3)] - [TV (9,2)] + [iOS (9, 3)] + [TV (9, 2)] [Field ("SKStoreProductParameterAdvertisingPartnerToken")] NSString AdvertisingPartnerToken { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Field ("SKStoreProductParameterAdNetworkAttributionSignature")] NSString AdNetworkAttributionSignature { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Field ("SKStoreProductParameterAdNetworkCampaignIdentifier")] NSString AdNetworkCampaignIdentifier { get; } - [NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Field ("SKStoreProductParameterAdNetworkSourceIdentifier")] NSString AdNetworkSourceIdentifier { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Field ("SKStoreProductParameterAdNetworkIdentifier")] NSString AdNetworkIdentifier { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Field ("SKStoreProductParameterAdNetworkNonce")] NSString AdNetworkNonce { get; } - [iOS (11,3), TV (11,3), NoMac] + [iOS (11, 3), TV (11, 3), NoMac] [Field ("SKStoreProductParameterAdNetworkTimestamp")] NSString AdNetworkTimestamp { get; } [NoWatch, NoMac, TV (14, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("SKStoreProductParameterAdNetworkSourceAppStoreIdentifier")] NSString AdNetworkSourceAppStoreIdentifier { get; } [NoWatch, NoMac, TV (14, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("SKStoreProductParameterAdNetworkVersion")] NSString AdNetworkVersion { get; } - + [Mac (12, 0), iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("SKStoreProductParameterCustomProductPageIdentifier")] NSString CustomProductPageIdentifier { get; } } - [iOS (10,1)] + [iOS (10, 1)] [NoMac] [NoWatch] [NoTV] // __TVOS_PROHIBITED - [BaseType (typeof(UIViewController))] - interface SKCloudServiceSetupViewController - { + [BaseType (typeof (UIViewController))] + interface SKCloudServiceSetupViewController { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] ISKCloudServiceSetupViewControllerDelegate Delegate { get; set; } @@ -752,25 +774,23 @@ namespace StoreKit { } [NoMac] - interface ISKCloudServiceSetupViewControllerDelegate {} + interface ISKCloudServiceSetupViewControllerDelegate { } - [iOS (10,1)] + [iOS (10, 1)] [NoMac] [NoWatch] [NoTV] // __TVOS_PROHIBITED on the only member + SKCloudServiceSetupViewController is not in tvOS [Protocol, Model] - [BaseType (typeof(NSObject))] - interface SKCloudServiceSetupViewControllerDelegate - { + [BaseType (typeof (NSObject))] + interface SKCloudServiceSetupViewControllerDelegate { [Export ("cloudServiceSetupViewControllerDidDismiss:")] void DidDismiss (SKCloudServiceSetupViewController cloudServiceSetupViewController); } [NoMac] - [NoWatch, NoTV, iOS (10,1)] + [NoWatch, NoTV, iOS (10, 1)] [StrongDictionary ("SKCloudServiceSetupOptionsKeys")] - interface SKCloudServiceSetupOptions - { + interface SKCloudServiceSetupOptions { // Headers comment: Action for setup entry point (of type SKCloudServiceSetupAction). // FIXME: Once https://bugzilla.xamarin.com/show_bug.cgi?id=57870 is fixed we should have a wrapper on a new property // `SKCloudServiceSetupAction Action { get; set; }` and avoid manual code. @@ -781,50 +801,48 @@ namespace StoreKit { // Headers comment: Identifier of the iTunes Store item the user is trying to access which requires cloud service setup (NSNumber). nint ITunesItemIdentifier { get; set; } - [iOS (10,3)] + [iOS (10, 3)] string AffiliateToken { get; set; } - [iOS (10,3)] + [iOS (10, 3)] string CampaignToken { get; set; } - [iOS (11,0)] + [iOS (11, 0)] string MessageIdentifier { get; set; } } [NoMac] - [NoWatch, NoTV, iOS (10,1)] + [NoWatch, NoTV, iOS (10, 1)] [Internal, Static] - interface SKCloudServiceSetupOptionsKeys - { + interface SKCloudServiceSetupOptionsKeys { [Field ("SKCloudServiceSetupOptionsActionKey")] NSString ActionKey { get; } [Field ("SKCloudServiceSetupOptionsITunesItemIdentifierKey")] NSString ITunesItemIdentifierKey { get; } - [iOS (10,3)] + [iOS (10, 3)] [Field ("SKCloudServiceSetupOptionsAffiliateTokenKey")] NSString AffiliateTokenKey { get; } - [iOS (10,3)] + [iOS (10, 3)] [Field ("SKCloudServiceSetupOptionsCampaignTokenKey")] NSString CampaignTokenKey { get; } - [iOS (11,0)] + [iOS (11, 0)] [Field ("SKCloudServiceSetupOptionsMessageIdentifierKey")] NSString MessageIdentifierKey { get; } } [NoMac] - [NoWatch, NoTV, iOS (10,1)] - enum SKCloudServiceSetupAction - { + [NoWatch, NoTV, iOS (10, 1)] + enum SKCloudServiceSetupAction { [Field ("SKCloudServiceSetupActionSubscribe")] Subscribe, } [NoMac] - [NoWatch, iOS (11,0), TV (11,0)] + [NoWatch, iOS (11, 0), TV (11, 0)] enum SKCloudServiceSetupMessageIdentifier { [Field ("SKCloudServiceSetupMessageIdentifierJoin")] Join, @@ -836,7 +854,7 @@ namespace StoreKit { PlayMusic, } - [Mac (11,0), Watch (7,0), iOS (9,3), TV (9,2)] + [Mac (11, 0), Watch (7, 0), iOS (9, 3), TV (9, 2)] [BaseType (typeof (NSObject))] #if XAMCORE_3_0 // Avoid breaking change in iOS [DisableDefaultCtor] @@ -855,7 +873,8 @@ namespace StoreKit { [Export ("requestStorefrontIdentifierWithCompletionHandler:")] void RequestStorefrontIdentifier (Action completionHandler); - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Async] [Export ("requestStorefrontCountryCodeWithCompletionHandler:")] void RequestStorefrontCountryCode (Action completionHandler); @@ -864,14 +883,15 @@ namespace StoreKit { [Export ("requestCapabilitiesWithCompletionHandler:")] void RequestCapabilities (Action completionHandler); - [iOS (10,3), TV (10,2)] - [Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequestUserToken' instead.")] - [Deprecated (PlatformName.TvOS, 11,0, message: "Use 'RequestUserToken' instead.")] + [iOS (10, 3), TV (10, 2)] + [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'RequestUserToken' instead.")] + [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'RequestUserToken' instead.")] [Async] [Export ("requestPersonalizationTokenForClientToken:withCompletionHandler:")] void RequestPersonalizationToken (string clientToken, Action completionHandler); - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Async] [Export ("requestUserTokenForDeveloperToken:completionHandler:")] void RequestUserToken (string developerToken, Action completionHandler); @@ -884,7 +904,8 @@ namespace StoreKit { [Field ("SKCloudServiceCapabilitiesDidChangeNotification")] NSString CloudServiceCapabilitiesDidChangeNotification { get; } - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Notification] [Field ("SKStorefrontCountryCodeDidChangeNotification")] NSString StorefrontCountryCodeDidChangeNotification { get; } @@ -892,7 +913,7 @@ namespace StoreKit { [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, iOS (11,0), TV (11,0), Mac (11,0)] + [NoWatch, iOS (11, 0), TV (11, 0), Mac (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // static Default property is the only documented way to get the controller interface SKProductStorePromotionController { @@ -914,29 +935,29 @@ namespace StoreKit { [Async] [Export ("updateStorePromotionOrder:completionHandler:")] - void Update (SKProduct[] storePromotionOrder, [NullAllowed] Action completionHandler); + void Update (SKProduct [] storePromotionOrder, [NullAllowed] Action completionHandler); } - [iOS (10,3), Mac (10,14)] + [iOS (10, 3), Mac (10, 14)] [NoTV] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Not specified but very likely interface SKStoreReviewController { - [Deprecated (PlatformName.iOS, 14, 0, message : "Use the 'RequestReview (UIWindowScene windowScene)' API instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use the 'RequestReview (UIWindowScene windowScene)' API instead.")] [Static] [Export ("requestReview")] void RequestReview (); [Introduced (PlatformName.MacCatalyst, 14, 0)] - [NoWatch, NoTV, iOS (14,0), NoMac] + [NoWatch, NoTV, iOS (14, 0), NoMac] [Static] [Export ("requestReviewInScene:")] void RequestReview (UIWindowScene windowScene); } - [Watch (6, 2), iOS (11,2), TV (11,2), Mac (10,13,2)] + [Watch (6, 2), iOS (11, 2), TV (11, 2), Mac (10, 13, 2)] [BaseType (typeof (NSObject))] interface SKProductSubscriptionPeriod { @@ -947,7 +968,7 @@ namespace StoreKit { SKProductPeriodUnit Unit { get; } } - [Watch (6, 2), iOS (11,2), TV (11,2), Mac (10,13,2)] + [Watch (6, 2), iOS (11, 2), TV (11, 2), Mac (10, 13, 2)] [BaseType (typeof (NSObject))] interface SKProductDiscount { @@ -957,9 +978,9 @@ namespace StoreKit { [Export ("priceLocale")] NSLocale PriceLocale { get; } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [NullAllowed, Export ("identifier")] string Identifier { get; } @@ -972,14 +993,14 @@ namespace StoreKit { [Export ("paymentMode")] SKProductDiscountPaymentMode PaymentMode { get; } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [Export ("type")] SKProductDiscountType Type { get; } } - [iOS (11,3), NoTV, NoMac, NoWatch] + [iOS (11, 3), NoTV, NoMac, NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SKAdNetwork { @@ -990,49 +1011,49 @@ namespace StoreKit { void RegisterAppForAdNetworkAttribution (); [Deprecated (PlatformName.iOS, 15, 4, message: "Use 'UpdatePostback' instead.")] - [NoWatch, NoTV, NoMac, iOS (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] [Static] [Export ("updateConversionValue:")] void UpdateConversionValue (nint conversionValue); [NoWatch, NoTV, NoMac] - [iOS (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Static] [Async] [Export ("startImpression:completionHandler:")] void StartImpression (SKAdImpression impression, [NullAllowed] Action completion); [NoWatch, NoTV, NoMac] - [iOS (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Static] [Async] [Export ("endImpression:completionHandler:")] void EndImpression (SKAdImpression impression, [NullAllowed] Action completion); - [NoWatch, NoTV, NoMac, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, NoTV, NoMac, iOS (15, 4), MacCatalyst (15, 4)] [Static] [Async] [Export ("updatePostbackConversionValue:completionHandler:")] void UpdatePostback (nint conversionValue, [NullAllowed] Action completion); - [NoMac, iOS (16,1), MacCatalyst (16,1), NoWatch, NoTV] + [NoMac, iOS (16, 1), MacCatalyst (16, 1), NoWatch, NoTV] [Static] [Async] [Export ("updatePostbackConversionValue:coarseValue:completionHandler:")] void UpdatePostback (nint conversionValue, [BindAs (typeof (SKAdNetworkCoarseConversionValue))] NSString coarseValue, [NullAllowed] Action completion); - [NoMac, iOS (16,1), MacCatalyst (16,1), NoWatch, NoTV] + [NoMac, iOS (16, 1), MacCatalyst (16, 1), NoWatch, NoTV] [Static] [Async] [Export ("updatePostbackConversionValue:coarseValue:lockWindow:completionHandler:")] void UpdatePostback (nint conversionValue, [BindAs (typeof (SKAdNetworkCoarseConversionValue))] NSString coarseValue, bool lockWindow, [NullAllowed] Action completion); } - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [Watch (6, 2)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -1057,18 +1078,18 @@ namespace StoreKit { } [Watch (6, 2)] - [iOS (12,2)] - [TV (12,2)] - [Mac (10,14,4)] + [iOS (12, 2)] + [TV (12, 2)] + [Mac (10, 14, 4)] [Native] public enum SKProductDiscountType : long { Introductory, Subscription, } - [Mac (10,15)] - [iOS (13,0)] - [TV (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] [Watch (6, 2)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no `init` but non-null properties @@ -1081,21 +1102,21 @@ namespace StoreKit { string Identifier { get; } } - interface ISKPaymentQueueDelegate {} + interface ISKPaymentQueueDelegate { } - [Watch (6, 2), Mac (10,15), iOS (13,0)] + [Watch (6, 2), Mac (10, 15), iOS (13, 0)] #if NET [Protocol, Model] #else [Protocol] [Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface SKPaymentQueueDelegate { [Export ("paymentQueue:shouldContinueTransaction:inStorefront:")] bool ShouldContinueTransaction (SKPaymentQueue paymentQueue, SKPaymentTransaction transaction, SKStorefront newStorefront); - [NoWatch, NoMac, NoTV, iOS (13,4)] + [NoWatch, NoMac, NoTV, iOS (13, 4)] [Export ("paymentQueueShouldShowPriceConsent:")] bool ShouldShowPriceConsent (SKPaymentQueue paymentQueue); } @@ -1104,17 +1125,21 @@ namespace StoreKit { // in Xcode 11 GM is was added - but only for macOS ?!? // https://feedbackassistant.apple.com/feedback/7017660 - https://github.com/xamarin/maccore/issues/1913 - [NoWatch][NoiOS][NoTV] - [Mac (10,15)] + [NoWatch] + [NoiOS] + [NoTV] + [Mac (10, 15)] delegate void SKArcadeServiceRegisterHandler (NSData randomFromFP, uint /* uint32_t */ randomFromFPLength, NSData cmacOfAppPid, uint /* uint32_t */ cmacOfAppPidLength, NSError error); - [NoWatch][NoiOS][NoTV] - [Mac (10,15)] + [NoWatch] + [NoiOS] + [NoTV] + [Mac (10, 15)] delegate void SKArcadeServiceSubscriptionHandler (NSData subscriptionStatus, uint /* uint32_t */ subscriptionStatusLength, NSData cmacOfNonce, uint /* uint32_t */ cmacOfNonceLength, NSError error); - [Mac (10,15)] - [iOS (13,0)] - [TV (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] + [TV (13, 0)] [NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // all static members so far @@ -1136,8 +1161,8 @@ namespace StoreKit { } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SKOverlayTransitionContext { @@ -1151,14 +1176,14 @@ namespace StoreKit { CGRect EndFrame { get; } } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [DisableDefaultCtor] [BaseType (typeof (NSObject))] - interface SKOverlayConfiguration {} + interface SKOverlayConfiguration { } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (SKOverlayConfiguration))] [DisableDefaultCtor] interface SKOverlayAppConfiguration { @@ -1198,13 +1223,13 @@ namespace StoreKit { [return: NullAllowed] NSObject GetAdditionalValue (string key); - [iOS (16,0)] + [iOS (16, 0)] [Export ("setAdImpression:")] void SetAdImpression (SKAdImpression impression); } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (SKOverlayConfiguration))] [DisableDefaultCtor] interface SKOverlayAppClipConfiguration { @@ -1239,10 +1264,10 @@ namespace StoreKit { NSObject GetAdditionalValue (string key); } - interface ISKOverlayDelegate {} + interface ISKOverlayDelegate { } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -1266,8 +1291,8 @@ namespace StoreKit { void DidFinishDismissal (SKOverlay overlay, SKOverlayTransitionContext transitionContext); } - [NoWatch, NoTV, NoMac, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, NoMac, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface SKOverlay { @@ -1294,12 +1319,12 @@ namespace StoreKit { } [NoWatch, NoTV, NoMac] - [iOS (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] interface SKAdImpression { - [iOS (16,0)] + [iOS (16, 0)] [Export ("initWithSourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:")] NativeHandle Constructor (NSNumber sourceAppStoreItemIdentifier, NSNumber advertisedAppStoreItemIdentifier, string adNetworkIdentifier, NSNumber adCampaignIdentifier, string adImpressionIdentifier, NSNumber timestamp, string signature, string version); @@ -1315,7 +1340,7 @@ namespace StoreKit { [Export ("adCampaignIdentifier", ArgumentSemantic.Strong)] NSNumber AdCampaignIdentifier { get; set; } - [NoMac, iOS (16, 0), MacCatalyst (16,0), NoWatch, NoTV] + [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("sourceIdentifier", ArgumentSemantic.Strong)] NSNumber SourceIdentifier { get; set; } diff --git a/src/systemconfiguration.cs b/src/systemconfiguration.cs index 47503717c2..ea62385ada 100644 --- a/src/systemconfiguration.cs +++ b/src/systemconfiguration.cs @@ -16,15 +16,21 @@ namespace SystemConfiguration { [Static] interface CaptiveNetwork { - [NoTV][NoWatch][NoMac] + [NoTV] + [NoWatch] + [NoMac] [Field ("kCNNetworkInfoKeyBSSID")] NSString NetworkInfoKeyBSSID { get; } - [NoTV][NoWatch][NoMac] + [NoTV] + [NoWatch] + [NoMac] [Field ("kCNNetworkInfoKeySSID")] NSString NetworkInfoKeySSID { get; } - [NoTV][NoWatch][NoMac] + [NoTV] + [NoWatch] + [NoMac] [Field ("kCNNetworkInfoKeySSIDData")] NSString NetworkInfoKeySSIDData { get; } } diff --git a/src/threadnetwork.cs b/src/threadnetwork.cs index 9ea63fffe5..b93c3fb73b 100644 --- a/src/threadnetwork.cs +++ b/src/threadnetwork.cs @@ -6,10 +6,9 @@ using System; namespace ThreadNetwork { - [iOS (15,0), Mac (13,0), MacCatalyst (16,1), NoWatch, NoTV] + [iOS (15, 0), Mac (13, 0), MacCatalyst (16, 1), NoWatch, NoTV] [BaseType (typeof (NSObject))] - interface THClient - { + interface THClient { [Async] [Export ("retrieveAllCredentials:")] void RetrieveAllCredentials (Action, NSError> completion); @@ -34,17 +33,16 @@ namespace ThreadNetwork { [Export ("retrieveCredentialsForExtendedPANID:completion:")] void RetrieveCredentialsForExtendedPanId (NSData extendedPanId, Action completion); - [iOS (16,0)] // was added in xcode14 targeting iOS 15, intro says otherthings. + [iOS (16, 0)] // was added in xcode14 targeting iOS 15, intro says otherthings. [Async] [Export ("checkPreferredNetworkForActiveOperationalDataset:completion:")] void CheckPreferredNetwork (NSData activeOperationalDataSet, Action completion); } - [iOS (15,0), Mac (13,0), MacCatalyst (16,1), NoWatch, NoTV] + [iOS (15, 0), Mac (13, 0), MacCatalyst (16, 1), NoWatch, NoTV] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface THCredentials : NSSecureCoding - { + interface THCredentials : NSSecureCoding { [NullAllowed, Export ("networkName")] string NetworkName { get; } diff --git a/src/tvmlkit.cs b/src/tvmlkit.cs index 1a22d645f1..c4b16cac0d 100644 --- a/src/tvmlkit.cs +++ b/src/tvmlkit.cs @@ -15,7 +15,7 @@ using NativeHandle = System.IntPtr; namespace TVMLKit { - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVColorType : long { None, @@ -24,20 +24,20 @@ namespace TVMLKit { LinearGradientLeftToRight } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementAlignment : long { Undefined, Left, Center, Right, - [TV (11,0)] + [TV (11, 0)] Leading, [TV (11, 0)] Trailing, } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementContentAlignment : long { Undefined, @@ -46,7 +46,7 @@ namespace TVMLKit { Bottom } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementPosition : long { Undefined, @@ -75,7 +75,7 @@ namespace TVMLKit { BottomTrailing, } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementEventType : long { Play = 1, @@ -85,7 +85,7 @@ namespace TVMLKit { Change } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementUpdateType : long { None, @@ -98,19 +98,19 @@ namespace TVMLKit { #else Children, Self, - [TV (10,0)] + [TV (10, 0)] Styles, #endif } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVElementResettableProperty : long { UpdateType, AutoHighlightIdentifier } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVImageType : long { Image, @@ -119,7 +119,7 @@ namespace TVMLKit { Hero } - [TV (9,0)] + [TV (9, 0)] [Native] [ErrorDomain ("TVMLKitErrorDomain")] public enum TVMLKitError : long { @@ -129,7 +129,7 @@ namespace TVMLKit { Last } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVViewElementStyleType : long { Integer = 1, @@ -142,7 +142,7 @@ namespace TVMLKit { EdgeInsets } - [TV (9,0)] + [TV (9, 0)] [Native] public enum TVTextElementStyle : long { None, @@ -152,7 +152,7 @@ namespace TVMLKit { Decoration } - [TV (12,0)] + [TV (12, 0)] [Native] public enum TVPlaybackState : long { Undefined, @@ -166,7 +166,7 @@ namespace TVMLKit { End, } - [TV (12,0)] + [TV (12, 0)] [Native] public enum TVPlaylistRepeatMode : long { None = 0, @@ -174,7 +174,7 @@ namespace TVMLKit { One, } - [TV (12,0)] + [TV (12, 0)] [Native] public enum TVPlaylistEndAction : long { Stop = 0, @@ -182,7 +182,7 @@ namespace TVMLKit { WaitForMoreItems, } - [TV (12,0)] + [TV (12, 0)] public enum TVMediaItemType { // NS_TYPED_EXTENSIBLE_ENUM [DefaultEnumValue] @@ -194,7 +194,7 @@ namespace TVMLKit { Video, } - [TV (12,0)] + [TV (12, 0)] public enum TVMediaItemContentRatingDomain { // NS_TYPED_EXTENSIBLE_ENUM [DefaultEnumValue] @@ -209,7 +209,7 @@ namespace TVMLKit { Music, } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface TVApplicationControllerContext : NSCopying { [Export ("javaScriptApplicationURL", ArgumentSemantic.Copy)] @@ -219,14 +219,14 @@ namespace TVMLKit { string StorageIdentifier { get; set; } [Export ("launchOptions", ArgumentSemantic.Copy)] - NSDictionary LaunchOptions { get; set; } + NSDictionary LaunchOptions { get; set; } - [TV (14,0)] + [TV (14, 0)] [Export ("supportsPictureInPicturePlayback")] bool SupportsPictureInPicturePlayback { get; set; } } - [TV (9,0)] + [TV (9, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface TVApplicationControllerDelegate { @@ -242,14 +242,14 @@ namespace TVMLKit { [Export ("appController:didStopWithOptions:")] void DidStop (TVApplicationController appController, [NullAllowed] NSDictionary options); - [TV (12,0)] + [TV (12, 0)] [Export ("playerForAppController:")] [return: NullAllowed] TVPlayer GetPlayer (TVApplicationController appController); } - interface ITVApplicationControllerDelegate {} - + interface ITVApplicationControllerDelegate { } + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVApplicationController { @@ -281,8 +281,8 @@ namespace TVMLKit { void Stop (); } - [TV (9,0)] - [BaseType (typeof(NSObject))] + [TV (9, 0)] + [BaseType (typeof (NSObject))] interface TVColor : NSCopying { [Export ("colorType")] TVColorType ColorType { get; } @@ -291,10 +291,10 @@ namespace TVMLKit { UIColor Color { get; } [NullAllowed, Export ("gradientColors")] - UIColor[] GradientColors { get; } + UIColor [] GradientColors { get; } [NullAllowed, Export ("gradientPoints")] - NSNumber[] GradientPoints { get; } + NSNumber [] GradientPoints { get; } } #if false // TVMLKit/TVElementTypes.h was removed from Xcode 7.1 beta 3 (mistake?) @@ -706,7 +706,7 @@ namespace TVMLKit { } #endif - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface TVElementFactory { // FIXME: provide System.Type overload @@ -715,8 +715,8 @@ namespace TVMLKit { void RegisterViewElementClass (Class elementClass, string elementName); } - [TV (9,0)] - [BaseType (typeof(NSObject))] + [TV (9, 0)] + [BaseType (typeof (NSObject))] interface TVViewElementStyle : NSCopying { // FIXME: badly named, unsure of return value [Export ("valueForStyleProperty:")] @@ -742,7 +742,7 @@ namespace TVMLKit { [Export ("margin")] UIEdgeInsets Margin { get; } - [TV (10,0)] + [TV (10, 0)] [Export ("focusMargin")] UIEdgeInsets FocusMargin { get; } @@ -804,7 +804,7 @@ namespace TVMLKit { TVColor TintColor { get; } } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface TVViewElement : NSCopying { [Export ("elementIdentifier")] @@ -817,7 +817,7 @@ namespace TVMLKit { TVViewElement ParentViewElement { get; } [NullAllowed, Export ("childViewElements")] - TVViewElement[] ChildViewElements { get; } + TVViewElement [] ChildViewElements { get; } [NullAllowed, Export ("attributes")] NSDictionary Attributes { get; } @@ -830,11 +830,13 @@ namespace TVMLKit { [Export ("disabled")] bool Disabled { - [Bind ("isDisabled")] get; + [Bind ("isDisabled")] + get; set; } - [Internal][Sealed] + [Internal] + [Sealed] [Export ("updateType")] TVElementUpdateType _UpdateType { get; } @@ -849,13 +851,13 @@ namespace TVMLKit { [Async (ResultType = typeof (TVViewElementDispatchResult))] void DispatchEvent (string eventName, bool canBubble, bool isCancellable, [NullAllowed] NSDictionary extraInfo, [NullAllowed] Action completion); - [TV (13,0)] + [TV (13, 0)] [Export ("elementData")] NSDictionary ElementData { get; } } - [TV (9,0)] - [BaseType (typeof(TVViewElement))] + [TV (9, 0)] + [BaseType (typeof (TVViewElement))] interface TVImageElement { [NullAllowed, Export ("URL")] NSUrl Url { get; } @@ -867,7 +869,7 @@ namespace TVMLKit { TVImageType ImageType { get; } } - [TV (9,0)] + [TV (9, 0)] [Protocol] interface TVInterfaceCreating { [Export ("viewForElement:existingView:")] @@ -882,25 +884,25 @@ namespace TVMLKit { [return: NullAllowed] NSUrl GetUrlForResource (string resourceName); - [TV (9,2)] + [TV (9, 2)] [Export ("imageForResource:")] [return: NullAllowed] UIImage GetImageForResource (string resourceName); - [TV (10,0)] + [TV (10, 0)] [Export ("collectionViewCellClassForElement:")] [return: NullAllowed] Class GetCollectionViewCellClass (TVViewElement element); - [TV (12,0)] + [TV (12, 0)] [Export ("playerViewControllerForPlayer:")] [return: NullAllowed] UIViewController GetPlayerViewController (TVPlayer player); } - interface ITVInterfaceCreating {} + interface ITVInterfaceCreating { } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface TVInterfaceFactory : TVInterfaceCreating { [Static] @@ -911,7 +913,7 @@ namespace TVMLKit { ITVInterfaceCreating ExtendedInterfaceCreator { get; set; } } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] interface TVStyleFactory { [Static] @@ -919,7 +921,7 @@ namespace TVMLKit { void RegisterStyle (string styleName, TVViewElementStyleType type, bool inherited); } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (TVViewElement))] interface TVTextElement { [NullAllowed, Export ("attributedText")] @@ -935,9 +937,9 @@ namespace TVMLKit { NSAttributedString GetAttributedString (UIFont font, [NullAllowed] UIColor foregroundColor, UITextAlignment alignment); } - interface ITVPlaybackEventMarshaling {} + interface ITVPlaybackEventMarshaling { } - [TV (12,0)] + [TV (12, 0)] [Protocol] interface TVPlaybackEventMarshaling { [Abstract] @@ -948,7 +950,7 @@ namespace TVMLKit { void ProcessReturn (JSValue value, JSContext jsContext); } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVPlaybackCustomEventUserInfo : TVPlaybackEventMarshaling { @@ -962,12 +964,12 @@ namespace TVMLKit { NSObject ReturnValue { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVPlaylist { [Export ("mediaItems", ArgumentSemantic.Copy)] - TVMediaItem[] MediaItems { get; } + TVMediaItem [] MediaItems { get; } [Export ("endAction", ArgumentSemantic.Assign)] TVPlaylistEndAction EndAction { get; } @@ -979,7 +981,7 @@ namespace TVMLKit { NSDictionary UserInfo { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMediaItem { @@ -1019,33 +1021,37 @@ namespace TVMLKit { bool ExplicitContent { get; } [Export ("resumeTime")] - /* NSInterval */ double ResumeTime { get; } + /* NSInterval */ + double ResumeTime { get; } [Export ("interstitials", ArgumentSemantic.Strong)] - TVTimeRange[] Interstitials { get; } + TVTimeRange [] Interstitials { get; } [Export ("highlightGroups", ArgumentSemantic.Strong)] - TVHighlightGroup[] HighlightGroups { get; } + TVHighlightGroup [] HighlightGroups { get; } [Export ("userInfo", ArgumentSemantic.Strong)] NSDictionary UserInfo { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTimeRange { [Export ("startTime")] - /* NSInterval */ double StartTime { get; } + /* NSInterval */ + double StartTime { get; } [Export ("endTime")] - /* NSInterval */ double EndTime { get; } + /* NSInterval */ + double EndTime { get; } [Export ("duration")] - /* NSInterval */ double Duration { get; } + /* NSInterval */ + double Duration { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVHighlightGroup { @@ -1053,10 +1059,10 @@ namespace TVMLKit { string LocalizedName { get; } [Export ("highlights", ArgumentSemantic.Strong)] - TVHighlight[] Highlights { get; } + TVHighlight [] Highlights { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVHighlight { @@ -1073,7 +1079,7 @@ namespace TVMLKit { NSUrl ImageUrl { get; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVPlayer { @@ -1114,12 +1120,12 @@ namespace TVMLKit { [Export ("changeToMediaItemAtIndex:")] void ChangeToMediaItem (nint index); - [TV (13,0)] + [TV (13, 0)] [Export ("presentWithAnimation:")] void Present (bool animated); } - [TV (13,0)] + [TV (13, 0)] [Native] [ErrorDomain ("TVDocumentErrorDomain")] public enum TVDocumentError : long { @@ -1129,11 +1135,12 @@ namespace TVMLKit { interface ITVBrowserViewControllerDataSource { } - [TV (13,0)] + [TV (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface TVBrowserViewControllerDataSource { @@ -1145,11 +1152,12 @@ namespace TVMLKit { interface ITVBrowserViewControllerDelegate { } - [TV (13,0)] + [TV (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface TVBrowserViewControllerDelegate { @@ -1160,7 +1168,7 @@ namespace TVMLKit { void DidCenterOnViewElement (TVBrowserViewController browserViewController, TVViewElement viewElement); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] interface TVBrowserViewController { @@ -1207,11 +1215,12 @@ namespace TVMLKit { interface ITVDocumentViewControllerDelegate { } - [TV (13,0)] + [TV (13, 0)] #if NET [Protocol][Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] interface TVDocumentViewControllerDelegate { @@ -1252,7 +1261,7 @@ namespace TVMLKit { Disappear, } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] interface TVDocumentViewController { @@ -1280,7 +1289,7 @@ namespace TVMLKit { void Update (NSDictionary context); } - [TV(13, 0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVBrowserTransitionAnimator : UIViewControllerAnimatedTransitioning { diff --git a/src/tvservices.cs b/src/tvservices.cs index 27fa8dc23e..7c5f7b5dce 100644 --- a/src/tvservices.cs +++ b/src/tvservices.cs @@ -12,8 +12,8 @@ using NativeHandle = System.IntPtr; namespace TVServices { - [TV (9,0)] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'TVTopShelfContentProvider' instead.")] + [TV (9, 0)] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'TVTopShelfContentProvider' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVContentIdentifier : NSCopying, NSSecureCoding { @@ -28,9 +28,9 @@ namespace TVServices { NativeHandle Constructor (string identifier, [NullAllowed] TVContentIdentifier container); } - [TV (9,0)] + [TV (9, 0)] [BaseType (typeof (NSObject))] - [Deprecated (PlatformName.TvOS, 13,0, message: "Use 'TVTopShelfItem' instead.")] + [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'TVTopShelfItem' instead.")] [DisableDefaultCtor] interface TVContentItem : NSCopying, NSSecureCoding { [Export ("contentIdentifier", ArgumentSemantic.Copy)] @@ -74,23 +74,23 @@ namespace TVServices { NSUrl DisplayUrl { get; set; } [NullAllowed, Export ("topShelfItems", ArgumentSemantic.Copy)] - TVContentItem[] TopShelfItems { get; set; } + TVContentItem [] TopShelfItems { get; set; } [Export ("initWithContentIdentifier:")] [DesignatedInitializer] NativeHandle Constructor (TVContentIdentifier ident); - [TV (11,0)] + [TV (11, 0)] [Export ("imageURLForTraits:")] [return: NullAllowed] NSUrl GetImageUrl (TVContentItemImageTrait traits); - [TV (11,0)] + [TV (11, 0)] [Export ("setImageURL:forTraits:")] void SetImageUrl ([NullAllowed] NSUrl aUrl, TVContentItemImageTrait traits); } - [TV (9,0)] + [TV (9, 0)] [Protocol] interface TVTopShelfProvider { [Abstract] @@ -99,10 +99,10 @@ namespace TVServices { [Abstract] [Export ("topShelfItems")] - TVContentItem[] TopShelfItems { get; } + TVContentItem [] TopShelfItems { get; } } - [TV (9,0)] + [TV (9, 0)] [Static] interface TVTopShelfItems { [Notification] @@ -111,19 +111,19 @@ namespace TVServices { } [Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user-with-user-independent-keychain entitlement instead.")] - [TV (13,0)] - [BaseType (typeof(NSObject))] + [TV (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Name property can't be null interface TVAppProfileDescriptor : NSCopying, NSSecureCoding { - [Export("initWithName:")] + [Export ("initWithName:")] NativeHandle Constructor (string name); - [Export("name")] + [Export ("name")] string Name { get; set; } } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTopShelfAction { @@ -135,20 +135,20 @@ namespace TVServices { NativeHandle Constructor (NSUrl url); } - [TV (13,0)] + [TV (13, 0)] [Native] enum TVTopShelfCarouselContentStyle : long { Actions, Details, } - interface ITVTopShelfContent {} + interface ITVTopShelfContent { } - [TV (13,0)] + [TV (13, 0)] [Protocol] interface TVTopShelfContent { } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTopShelfCarouselContent : TVTopShelfContent { @@ -156,14 +156,14 @@ namespace TVServices { TVTopShelfCarouselContentStyle Style { get; } [Export ("items", ArgumentSemantic.Copy)] - TVTopShelfCarouselItem[] Items { get; } + TVTopShelfCarouselItem [] Items { get; } [Export ("initWithStyle:items:")] [DesignatedInitializer] - NativeHandle Constructor (TVTopShelfCarouselContentStyle style, TVTopShelfCarouselItem[] items); + NativeHandle Constructor (TVTopShelfCarouselContentStyle style, TVTopShelfCarouselItem [] items); } - [TV (13,0)] + [TV (13, 0)] [Flags] [Native] public enum TVTopShelfCarouselItemMediaOptions : ulong { @@ -177,7 +177,7 @@ namespace TVServices { AudioDescription = 1uL << 15, } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (TVTopShelfItem))] [DisableDefaultCtor] // -[TVTopShelfCarouselItem init]: unrecognized selector sent to instance 0x600000eb18c0 interface TVTopShelfCarouselItem { @@ -193,29 +193,29 @@ namespace TVServices { [NullAllowed, Export ("summary")] string Summary { get; set; } - [NullAllowed, Export("genre")] + [NullAllowed, Export ("genre")] string Genre { get; set; } - [Export("duration")] + [Export ("duration")] double /* NSTimeInterval */ Duration { get; set; } - [NullAllowed, Export("creationDate", ArgumentSemantic.Copy)] + [NullAllowed, Export ("creationDate", ArgumentSemantic.Copy)] NSDate CreationDate { get; set; } - [Export("mediaOptions", ArgumentSemantic.Assign)] + [Export ("mediaOptions", ArgumentSemantic.Assign)] TVTopShelfCarouselItemMediaOptions MediaOptions { get; set; } - [NullAllowed, Export("previewVideoURL", ArgumentSemantic.Copy)] + [NullAllowed, Export ("previewVideoURL", ArgumentSemantic.Copy)] NSUrl PreviewVideoUrl { get; set; } - [NullAllowed, Export("cinemagraphURL", ArgumentSemantic.Copy)] + [NullAllowed, Export ("cinemagraphURL", ArgumentSemantic.Copy)] NSUrl CinemagraphUrl { get; set; } - [Export("namedAttributes", ArgumentSemantic.Copy)] - TVTopShelfNamedAttribute[] NamedAttributes { get; set; } + [Export ("namedAttributes", ArgumentSemantic.Copy)] + TVTopShelfNamedAttribute [] NamedAttributes { get; set; } } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] interface TVTopShelfContentProvider { [Async] @@ -227,22 +227,22 @@ namespace TVServices { void DidChange (); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTopShelfInsetContent : TVTopShelfContent { [Export ("items", ArgumentSemantic.Copy)] - TVTopShelfItem[] Items { get; } + TVTopShelfItem [] Items { get; } [Static] [Export ("imageSize")] CGSize ImageSize { get; } [Export ("initWithItems:")] - NativeHandle Constructor (TVTopShelfItem[] items); + NativeHandle Constructor (TVTopShelfItem [] items); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (TVTopShelfObject))] [DisableDefaultCtor] // identifier can't be null and we have a designated initializer interface TVTopShelfItem { @@ -271,7 +271,7 @@ namespace TVServices { NativeHandle Constructor (string identifier); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTopShelfNamedAttribute { @@ -280,14 +280,14 @@ namespace TVServices { string Name { get; } [Export ("values", ArgumentSemantic.Copy)] - string[] Values { get; } + string [] Values { get; } [Export ("initWithName:values:")] [DesignatedInitializer] - NativeHandle Constructor (string name, string[] values); + NativeHandle Constructor (string name, string [] values); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [Abstract] [DisableDefaultCtor] @@ -296,7 +296,7 @@ namespace TVServices { string Title { get; set; } } - [TV (13,0)] + [TV (13, 0)] [Flags] [Native] enum TVTopShelfItemImageTraits : ulong { @@ -304,7 +304,7 @@ namespace TVServices { Scale2x = 2, } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] interface TVUserManager { @@ -314,12 +314,12 @@ namespace TVServices { [Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user-with-user-independent-keychain entitlement instead.")] [Export ("userIdentifiersForCurrentProfile", ArgumentSemantic.Copy)] - string[] UserIdentifiersForCurrentProfile { get; set; } + string [] UserIdentifiersForCurrentProfile { get; set; } [Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user-with-user-independent-keychain entitlement instead.")] [Async] [Export ("presentProfilePreferencePanelWithCurrentSettings:availableProfiles:completion:")] - void PresentProfilePreferencePanel (NSDictionary currentSettings, TVAppProfileDescriptor[] availableProfiles, Action> completion); + void PresentProfilePreferencePanel (NSDictionary currentSettings, TVAppProfileDescriptor [] availableProfiles, Action> completion); [Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user-with-user-independent-keychain entitlement instead.")] [Async] @@ -336,36 +336,36 @@ namespace TVServices { bool ShouldStorePreferencesForCurrentUser { get; } } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (TVTopShelfObject))] [DisableDefaultCtor] // null is not allowed for items interface TVTopShelfItemCollection { [Export ("items", ArgumentSemantic.Copy)] - TVTopShelfItem[] Items { get; } + TVTopShelfItem [] Items { get; } [Export ("initWithItems:")] - NativeHandle Constructor (TVTopShelfItem[] items); + NativeHandle Constructor (TVTopShelfItem [] items); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVTopShelfSectionedContent : TVTopShelfContent { [Export ("sections", ArgumentSemantic.Copy)] - TVTopShelfItemCollection[] Sections { get; } + TVTopShelfItemCollection [] Sections { get; } - [Export("initWithSections:")] + [Export ("initWithSections:")] [DesignatedInitializer] - NativeHandle Constructor (TVTopShelfItemCollection[] sections); + NativeHandle Constructor (TVTopShelfItemCollection [] sections); [Static] - [Export("imageSizeForImageShape:")] + [Export ("imageSizeForImageShape:")] CGSize GetImageSize (TVTopShelfSectionedItemImageShape shape); } - [TV (13,0)] + [TV (13, 0)] [Native] public enum TVTopShelfSectionedItemImageShape : long { Square, @@ -373,7 +373,7 @@ namespace TVServices { Hdtv, } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (TVTopShelfItem))] [DisableDefaultCtor] // -[TVTopShelfSectionedItem init]: unrecognized selector sent to instance 0x600001f251a0 interface TVTopShelfSectionedItem { @@ -390,7 +390,7 @@ namespace TVServices { double PlaybackProgress { get; set; } } - [TV (14,3)] + [TV (14, 3)] [Static] interface TVUserActivityType { diff --git a/src/tvuikit.cs b/src/tvuikit.cs index 539b72f24b..d6a3c7ac42 100644 --- a/src/tvuikit.cs +++ b/src/tvuikit.cs @@ -13,7 +13,7 @@ using NativeHandle = System.IntPtr; namespace TVUIKit { - [TV (12,0)] + [TV (12, 0)] [Native] public enum TVCaptionButtonViewMotionDirection : long { None = 0, @@ -22,7 +22,7 @@ namespace TVUIKit { All, } - [TV (15,0)] + [TV (15, 0)] [Native] public enum TVMediaItemContentTextTransform : long { None, @@ -31,7 +31,7 @@ namespace TVUIKit { Capitalized, } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (UIControl))] [DisableDefaultCtor] // initWithFrame is the designated initializer interface TVLockupView { @@ -61,7 +61,7 @@ namespace TVUIKit { NSDirectionalEdgeInsets FocusSizeIncrease { get; set; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (TVLockupView))] interface TVCaptionButtonView { @@ -85,7 +85,7 @@ namespace TVUIKit { string Subtitle { get; set; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (TVLockupView))] interface TVCardView { @@ -97,7 +97,7 @@ namespace TVUIKit { UIColor CardBackgroundColor { get; set; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (UIViewController))] // note: full screen so the default init makes sense interface TVDigitEntryViewController { @@ -120,14 +120,14 @@ namespace TVUIKit { void ClearEntry (bool animated); } - [TV (12,0)] + [TV (12, 0)] [Protocol] interface TVLockupViewComponent { [Export ("updateAppearanceForLockupViewState:")] void UpdateAppearanceForLockupView (UIControlState state); } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (UIView))] [DisableDefaultCtor] // initWithFrame is the designated initializer interface TVLockupHeaderFooterView : TVLockupViewComponent { @@ -146,8 +146,8 @@ namespace TVUIKit { bool ShowsOnlyWhenAncestorFocused { get; set; } } - [Deprecated (PlatformName.TvOS, 15, 0, message:"Use 'TVMonogramContentConfiguration' APIs instead.")] - [TV (12,0)] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'TVMonogramContentConfiguration' APIs instead.")] + [TV (12, 0)] [BaseType (typeof (TVLockupView))] interface TVMonogramView { @@ -168,7 +168,7 @@ namespace TVUIKit { string Subtitle { get; set; } } - [TV (12,0)] + [TV (12, 0)] [BaseType (typeof (TVLockupView))] interface TVPosterView { @@ -192,7 +192,7 @@ namespace TVUIKit { string Subtitle { get; set; } } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (UICollectionViewCell))] interface TVCollectionViewFullScreenCell { @@ -234,7 +234,7 @@ namespace TVUIKit { void NormalizedPositionDidChange (); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (UICollectionViewLayoutAttributes))] [DisableDefaultCtor] interface TVCollectionViewFullScreenLayoutAttributes { @@ -255,24 +255,28 @@ namespace TVUIKit { // inlined from base type - [Static][New] + [Static] + [New] [Export ("layoutAttributesForCellWithIndexPath:")] TVCollectionViewFullScreenLayoutAttributes CreateForCell (NSIndexPath indexPath); - [Static][New] + [Static] + [New] [Export ("layoutAttributesForDecorationViewOfKind:withIndexPath:")] TVCollectionViewFullScreenLayoutAttributes CreateForDecorationView (NSString kind, NSIndexPath indexPath); - [Static][New] + [Static] + [New] [Export ("layoutAttributesForSupplementaryViewOfKind:withIndexPath:")] TVCollectionViewFullScreenLayoutAttributes CreateForSupplementaryView (NSString kind, NSIndexPath indexPath); } - [TV (13,0)] + [TV (13, 0)] #if NET [Protocol, Model] #else - [Protocol][Model (AutoGeneratedName = true)] + [Protocol] + [Model (AutoGeneratedName = true)] #endif [BaseType (typeof (UICollectionViewDelegate))] interface TVCollectionViewDelegateFullScreenLayout { @@ -283,7 +287,7 @@ namespace TVUIKit { void DidCenterCell (UICollectionView collectionView, UICollectionViewLayout collectionViewLayout, NSIndexPath indexPath); } - [TV (13,0)] + [TV (13, 0)] [BaseType (typeof (UICollectionViewLayout))] [DesignatedDefaultCtor] // same as base type interface TVCollectionViewFullScreenLayout { @@ -309,7 +313,7 @@ namespace TVUIKit { bool TransitioningToCenterIndexPath { [Bind ("isTransitioningToCenterIndexPath")] get; } } - [TV (15,0), NoWatch, NoMac, NoiOS] + [TV (15, 0), NoWatch, NoMac, NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMediaItemContentConfiguration : UIContentConfiguration, NSSecureCoding { @@ -346,7 +350,7 @@ namespace TVUIKit { UIView OverlayView { get; set; } } - [TV (15,0), NoWatch, NoMac, NoiOS] + [TV (15, 0), NoWatch, NoMac, NoiOS] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface TVMediaItemContentView : UIContentView { @@ -364,7 +368,7 @@ namespace TVUIKit { UILayoutGuide FocusedFrameGuide { get; } } - [TV (15,0)] + [TV (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMediaItemContentTextProperties : NSCopying, NSSecureCoding { @@ -379,7 +383,7 @@ namespace TVUIKit { TVMediaItemContentTextTransform Transform { get; set; } } - [TV (15,0)] + [TV (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMediaItemContentBadgeProperties : NSCopying, NSSecureCoding { @@ -405,8 +409,9 @@ namespace TVUIKit { TVMediaItemContentTextTransform Transform { get; set; } } - [NoiOS][NoMacCatalyst] - [TV (15,0)] + [NoiOS] + [NoMacCatalyst] + [TV (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMonogramContentConfiguration : UIContentConfiguration, NSSecureCoding { @@ -434,8 +439,9 @@ namespace TVUIKit { NSPersonNameComponents PersonNameComponents { get; set; } } - [NoiOS][NoMacCatalyst] - [TV (15,0)] + [NoiOS] + [NoMacCatalyst] + [TV (15, 0)] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface TVMonogramContentView : UIContentView { @@ -453,7 +459,7 @@ namespace TVUIKit { UILayoutGuide FocusedFrameGuide { get; } } - [TV (15,0)] + [TV (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface TVMonogramContentTextProperties : NSCopying, NSSecureCoding { diff --git a/src/twitter.cs b/src/twitter.cs index 6972c93fa3..4c27508e94 100644 --- a/src/twitter.cs +++ b/src/twitter.cs @@ -23,19 +23,19 @@ namespace Twitter { [Deprecated (PlatformName.iOS, 6, 0, message: "Use the 'Social' framework.")] [BaseType (typeof (NSObject))] interface TWRequest { - + [NullAllowed] // by default this property is null [Export ("account")] - ACAccount Account { get; set; } + ACAccount Account { get; set; } [Export ("requestMethod")] TWRequestMethod RequestMethod { get; } [Export ("URL")] - NSUrl Url { get; } + NSUrl Url { get; } [Export ("parameters")] - NSDictionary Parameters { get; } + NSDictionary Parameters { get; } [Export ("initWithURL:parameters:requestMethod:")] NativeHandle Constructor (NSUrl url, [NullAllowed] NSDictionary parameters, TWRequestMethod requestMethod); diff --git a/src/uikit.cs b/src/uikit.cs index 89a8a51dba..d74d191ffa 100644 --- a/src/uikit.cs +++ b/src/uikit.cs @@ -117,7 +117,7 @@ using AppKit; #else using NSTouchBarProvider = Foundation.NSObject; using NSTouchBar = Foundation.NSObject; -using NSToolbar = Foundation.NSObject; +using NSToolbar = Foundation.NSObject; #endif #if !NET @@ -134,7 +134,7 @@ using NativeHandle = System.IntPtr; namespace UIKit { [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [Native] [Flags] public enum UIFocusHeading : ulong { @@ -145,27 +145,29 @@ namespace UIKit { Right = 1 << 3, Next = 1 << 4, Previous = 1 << 5, - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] First = 1uL << 8, - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] Last = 1uL << 9, } [Native] // NSInteger -> UIApplication.h [NoWatch] - [TV (11,0)] + [TV (11, 0)] public enum UIBackgroundRefreshStatus : long { Restricted, Denied, Available } - [TV (10,0)][NoWatch] + [TV (10, 0)] + [NoWatch] [Native] // NSUInteger -> UIApplication.h public enum UIBackgroundFetchResult : ulong { NewData, NoData, Failed } - [NoTV][NoWatch] - [iOS (9,0)] + [NoTV] + [NoWatch] + [iOS (9, 0)] [Native] public enum UIApplicationShortcutIconType : long { Compose, @@ -200,19 +202,19 @@ namespace UIKit { Update } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [Native] public enum UIImpactFeedbackStyle : long { Light, Medium, Heavy, - [iOS (13,0)] + [iOS (13, 0)] Soft, - [iOS (13,0)] + [iOS (13, 0)] Rigid, } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [Native] public enum UINotificationFeedbackType : long { Success, @@ -222,13 +224,13 @@ namespace UIKit { [Native] [ErrorDomain ("UIGuidedAccessErrorDomain")] - [NoWatch, NoTV, iOS (12,2)] + [NoWatch, NoTV, iOS (12, 2)] public enum UIGuidedAccessErrorCode : long { PermissionDenied, Failed = long.MaxValue, } - [Flags, NoWatch, NoTV, iOS (12,2)] + [Flags, NoWatch, NoTV, iOS (12, 2)] [Native] public enum UIGuidedAccessAccessibilityFeature : ulong { VoiceOver = 1uL << 0, @@ -238,15 +240,15 @@ namespace UIKit { GrayscaleDisplay = 1uL << 4, } - [NoWatch, NoTV, iOS (14,5)] + [NoWatch, NoTV, iOS (14, 5)] [Native] public enum UIPrintRenderingQuality : long { Best, Responsive, } - [NoWatch, TV (14,5), iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, TV (14, 5), iOS (14, 5)] + [MacCatalyst (14, 5)] [Native] public enum UISplitViewControllerDisplayModeButtonVisibility : long { Automatic, @@ -254,7 +256,7 @@ namespace UIKit { Always, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIButtonConfigurationIndicator : long { Automatic, @@ -262,7 +264,7 @@ namespace UIKit { Popup, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UISearchControllerScopeBarActivation : long { Automatic, @@ -300,7 +302,7 @@ namespace UIKit { } #endif - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [DisableDefaultCtor] [Abstract] // abstract class that should not be used directly [BaseType (typeof (NSObject))] @@ -310,7 +312,7 @@ namespace UIKit { void Prepare (); } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [DisableDefaultCtor] [BaseType (typeof (UIFeedbackGenerator))] interface UIImpactFeedbackGenerator { @@ -321,12 +323,12 @@ namespace UIKit { [Export ("impactOccurred")] void ImpactOccurred (); - [iOS (13,0)] + [iOS (13, 0)] [Export ("impactOccurredWithIntensity:")] void ImpactOccurred (nfloat intensity); } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [BaseType (typeof (UIFeedbackGenerator))] interface UINotificationFeedbackGenerator { @@ -334,7 +336,7 @@ namespace UIKit { void NotificationOccurred (UINotificationFeedbackType notificationType); } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [BaseType (typeof (UIFeedbackGenerator))] interface UISelectionFeedbackGenerator { @@ -342,9 +344,9 @@ namespace UIKit { void SelectionChanged (); } - interface IUISheetPresentationControllerDelegate {} + interface IUISheetPresentationControllerDelegate { } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] #if NET [Protocol, Model] @@ -357,7 +359,7 @@ namespace UIKit { void DidChangeSelectedDetentIdentifier (UISheetPresentationController sheetPresentationController); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UIPresentationController))] [DisableDefaultCtor] interface UISheetPresentationController { @@ -405,14 +407,14 @@ namespace UIKit { [Export ("animateChanges:")] void AnimateChanges (Action changes); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("invalidateDetents")] void InvalidateDetents (); } interface IUICloudSharingControllerDelegate { } - [iOS (10,0), NoTV, NoWatch] + [iOS (10, 0), NoTV, NoWatch] [Protocol, Model] [BaseType (typeof (NSObject))] interface UICloudSharingControllerDelegate { @@ -440,13 +442,13 @@ namespace UIKit { void DidStopSharing (UICloudSharingController csc); } - [iOS (10,0), NoTV, NoWatch] + [iOS (10, 0), NoTV, NoWatch] delegate void UICloudSharingControllerPreparationHandler (UICloudSharingController controller, [BlockCallback] UICloudSharingControllerPreparationCompletionHandler completion); - [iOS (10,0), NoTV, NoWatch] + [iOS (10, 0), NoTV, NoWatch] delegate void UICloudSharingControllerPreparationCompletionHandler ([NullAllowed] CKShare share, [NullAllowed] CKContainer container, [NullAllowed] NSError error); - [iOS (10,0), NoTV, NoWatch] + [iOS (10, 0), NoTV, NoWatch] [BaseType (typeof (UIViewController))] interface UICloudSharingController { @@ -477,21 +479,21 @@ namespace UIKit { [Category] [BaseType (typeof (NSAttributedString))] interface NSAttributedString_NSAttributedStringKitAdditions { - [iOS (9,0)] + [iOS (9, 0)] [Export ("containsAttachmentsInRange:")] bool ContainsAttachments (NSRange range); } [Category, BaseType (typeof (NSMutableAttributedString))] interface NSMutableAttributedStringKitAdditions { - [iOS (7,0)] + [iOS (7, 0)] [Export ("fixAttributesInRange:")] void FixAttributesInRange (NSRange range); } [NoWatch] - [iOS (7,0)] // Yup, it is declared as appearing in 7.0, even if it shipped with 8.0 - [Category, BaseType(typeof(NSLayoutConstraint))] + [iOS (7, 0)] // Yup, it is declared as appearing in 7.0, even if it shipped with 8.0 + [Category, BaseType (typeof (NSLayoutConstraint))] interface NSIdentifier { [Export ("identifier")] string GetIdentifier (); @@ -505,53 +507,53 @@ namespace UIKit { interface NSCoder_UIGeometryKeyedCoding { [Export ("encodeCGPoint:forKey:")] void Encode (CGPoint point, string forKey); - - [iOS(8,0)] + + [iOS (8, 0)] [Export ("encodeCGVector:forKey:")] void Encode (CGVector vector, string forKey); - + [Export ("encodeCGSize:forKey:")] void Encode (CGSize size, string forKey); - + [Export ("encodeCGRect:forKey:")] void Encode (CGRect rect, string forKey); - + [Export ("encodeCGAffineTransform:forKey:")] void Encode (CGAffineTransform transform, string forKey); - + [Export ("encodeUIEdgeInsets:forKey:")] void Encode (UIEdgeInsets edgeInsets, string forKey); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("encodeDirectionalEdgeInsets:forKey:")] void Encode (NSDirectionalEdgeInsets directionalEdgeInsets, string forKey); - + [Export ("encodeUIOffset:forKey:")] void Encode (UIOffset uiOffset, string forKey); - + [Export ("decodeCGPointForKey:")] CGPoint DecodeCGPoint (string key); - [iOS(8,0)] + [iOS (8, 0)] [Export ("decodeCGVectorForKey:")] CGVector DecodeCGVector (string key); - + [Export ("decodeCGSizeForKey:")] CGSize DecodeCGSize (string key); - + [Export ("decodeCGRectForKey:")] CGRect DecodeCGRect (string key); - + [Export ("decodeCGAffineTransformForKey:")] CGAffineTransform DecodeCGAffineTransform (string key); - + [Export ("decodeUIEdgeInsetsForKey:")] UIEdgeInsets DecodeUIEdgeInsets (string key); - [Watch (4,0), TV (11,0), iOS (11,0)] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] [Export ("decodeDirectionalEdgeInsetsForKey:")] NSDirectionalEdgeInsets DecodeDirectionalEdgeInsets (string key); - + [Export ("decodeUIOffsetForKey:")] UIOffset DecodeUIOffsetForKey (string key); } @@ -574,10 +576,11 @@ namespace UIKit { } [NoTV, NoWatch] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIAccelerometerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIAccelerometerDelegate) })] [Deprecated (PlatformName.iOS, 5, 0, message: "Use 'CoreMotion' instead.")] interface UIAccelerometer { - [Static] [Export ("sharedAccelerometer")] + [Static] + [Export ("sharedAccelerometer")] UIAccelerometer SharedAccelerometer { get; } [Export ("updateInterval")] @@ -587,7 +590,8 @@ namespace UIKit { [Protocolize] UIAccelerometerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } } @@ -611,7 +615,7 @@ namespace UIKit { string AccessibilityLabel { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("accessibilityAttributedLabel", ArgumentSemantic.Copy)] NSAttributedString AccessibilityAttributedLabel { get; set; } @@ -620,7 +624,7 @@ namespace UIKit { string AccessibilityHint { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("accessibilityAttributedHint", ArgumentSemantic.Copy)] NSAttributedString AccessibilityAttributedHint { get; set; } @@ -629,7 +633,7 @@ namespace UIKit { string AccessibilityValue { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("accessibilityAttributedValue", ArgumentSemantic.Copy)] NSAttributedString AccessibilityAttributedValue { get; set; } @@ -655,23 +659,23 @@ namespace UIKit { [Export ("shouldGroupAccessibilityChildren")] bool ShouldGroupAccessibilityChildren { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("accessibilityNavigationStyle")] UIAccessibilityNavigationStyle AccessibilityNavigationStyle { get; set; } - [TV (13,0), iOS (13,0), Watch (6,0)] + [TV (13, 0), iOS (13, 0), Watch (6, 0)] [Export ("accessibilityRespondsToUserInteraction")] bool AccessibilityRespondsToUserInteraction { get; set; } - [TV (13,0), iOS (13,0), Watch (6,0)] + [TV (13, 0), iOS (13, 0), Watch (6, 0)] [Export ("accessibilityUserInputLabels", ArgumentSemantic.Strong)] string [] AccessibilityUserInputLabels { get; set; } - [TV (13,0), iOS (13,0), Watch (6,0)] + [TV (13, 0), iOS (13, 0), Watch (6, 0)] [Export ("accessibilityAttributedUserInputLabels", ArgumentSemantic.Copy)] NSAttributedString [] AccessibilityAttributedUserInputLabels { get; set; } - [TV (13,0), iOS (13,0), Watch (6,0)] + [TV (13, 0), iOS (13, 0), Watch (6, 0)] [NullAllowed, Export ("accessibilityTextualContext", ArgumentSemantic.Strong)] string AccessibilityTextualContext { get; set; } @@ -726,10 +730,10 @@ namespace UIKit { [Field ("UIAccessibilityTraitCausesPageTurn")] long TraitCausesPageTurn { get; } - [iOS (10,0), TV (10,0), Watch (3,0)] + [iOS (10, 0), TV (10, 0), Watch (3, 0)] [Field ("UIAccessibilityTraitTabBar")] long TraitTabBar { get; } - + [Field ("UIAccessibilityAnnouncementDidFinishNotification")] [Notification (typeof (UIAccessibilityAnnouncementFinishedEventArgs))] NSString AnnouncementDidFinishNotification { get; } @@ -740,7 +744,7 @@ namespace UIKit { [Field ("UIAccessibilityVoiceOverStatusChanged")] NSString VoiceOverStatusChanged { get; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Field ("UIAccessibilityVoiceOverStatusDidChangeNotification")] [Notification] NSString VoiceOverStatusDidChangeNotification { get; } @@ -774,107 +778,107 @@ namespace UIKit { [Field ("UIAccessibilityPageScrolledNotification")] int PageScrolledNotification { get; } // This is int, not nint - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed] // by default this property is null [Export ("accessibilityPath", ArgumentSemantic.Copy)] UIBezierPath AccessibilityPath { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("accessibilityActivate")] bool AccessibilityActivate (); - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIAccessibilitySpeechAttributePunctuation")] NSString SpeechAttributePunctuation { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIAccessibilitySpeechAttributeLanguage")] NSString SpeechAttributeLanguage { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("UIAccessibilitySpeechAttributePitch")] NSString SpeechAttributePitch { get; } #if !WATCH - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilityBoldTextStatusDidChangeNotification")] NSString BoldTextStatusDidChangeNotification { get; } - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Notification] [Field ("UIAccessibilityButtonShapesEnabledStatusDidChangeNotification")] NSString ButtonShapesEnabledStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilityDarkerSystemColorsStatusDidChangeNotification")] NSString DarkerSystemColorsStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilityGrayscaleStatusDidChangeNotification")] NSString GrayscaleStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilityReduceMotionStatusDidChangeNotification")] NSString ReduceMotionStatusDidChangeNotification { get; } - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Notification] [Field ("UIAccessibilityPrefersCrossFadeTransitionsStatusDidChangeNotification")] NSString PrefersCrossFadeTransitionsStatusDidChangeNotification { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Notification] [Field ("UIAccessibilityVideoAutoplayStatusDidChangeNotification")] NSString VideoAutoplayStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilityReduceTransparencyStatusDidChangeNotification")] NSString ReduceTransparencyStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilitySwitchControlStatusDidChangeNotification")] NSString SwitchControlStatusDidChangeNotification { get; } #endif - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIAccessibilityNotificationSwitchControlIdentifier")] NSString NotificationSwitchControlIdentifier { get; } // Chose int because this should be UIAccessibilityNotifications type // just like UIAccessibilityAnnouncementNotification field - [iOS (8,0)] + [iOS (8, 0)] //[Notification] // int ScreenChangedNotification doesn't use this attr either [Field ("UIAccessibilityPauseAssistiveTechnologyNotification")] int PauseAssistiveTechnologyNotification { get; } // UIAccessibilityNotifications => uint32_t // Chose int because this should be UIAccessibilityNotifications type // just like UIAccessibilityAnnouncementNotification field - [iOS (8,0)] + [iOS (8, 0)] //[Notification] // int ScreenChangedNotification doesn't use this attr either [Field ("UIAccessibilityResumeAssistiveTechnologyNotification")] int ResumeAssistiveTechnologyNotification { get; } // UIAccessibilityNotifications => uint32_t #if !WATCH - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilitySpeakScreenStatusDidChangeNotification")] NSString SpeakScreenStatusDidChangeNotification { get; } - [iOS (8,0)] + [iOS (8, 0)] [Notification] [Field ("UIAccessibilitySpeakSelectionStatusDidChangeNotification")] NSString SpeakSelectionStatusDidChangeNotification { get; } - [iOS (9,0)] + [iOS (9, 0)] [Notification] [Field ("UIAccessibilityShakeToUndoDidChangeNotification")] NSString ShakeToUndoDidChangeNotification { get; } @@ -882,9 +886,9 @@ namespace UIKit { // FIXME: we only used this on a few types before, none of them available on tvOS // but a new member was added to the platform... - [TV (9,0), NoWatch, NoiOS] + [TV (9, 0), NoWatch, NoiOS] [NullAllowed, Export ("accessibilityHeaderElements", ArgumentSemantic.Copy)] - NSObject[] AccessibilityHeaderElements { get; set; } + NSObject [] AccessibilityHeaderElements { get; set; } [iOS (9, 0)] [Notification] @@ -912,48 +916,48 @@ namespace UIKit { #if !WATCH [NoTV] - [iOS (10,0)] + [iOS (10, 0)] [Notification] [Field ("UIAccessibilityHearingDevicePairedEarDidChangeNotification")] NSString HearingDevicePairedEarDidChangeNotification { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Notification] [Field ("UIAccessibilityAssistiveTouchStatusDidChangeNotification")] NSString AssistiveTouchStatusDidChangeNotification { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Notification] [Field ("UIAccessibilityShouldDifferentiateWithoutColorDidChangeNotification")] NSString ShouldDifferentiateWithoutColorDidChangeNotification { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Notification] [Field ("UIAccessibilityOnOffSwitchLabelsDidChangeNotification")] NSString OnOffSwitchLabelsDidChangeNotification { get; } #endif - [iOS (11,0), TV (11,0), Watch (4,0)] + [iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("UIAccessibilitySpeechAttributeQueueAnnouncement")] NSString SpeechAttributeQueueAnnouncement { get; } - [iOS (11,0), TV (11,0), Watch (4,0)] + [iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("UIAccessibilitySpeechAttributeIPANotation")] NSString SpeechAttributeIpaNotation { get; } - [iOS (11,0), TV (11,0), Watch (4,0)] + [iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("UIAccessibilityTextAttributeHeadingLevel")] NSString TextAttributeHeadingLevel { get; } - [iOS (11,0), TV (11,0), Watch (4,0)] + [iOS (11, 0), TV (11, 0), Watch (4, 0)] [Field ("UIAccessibilityTextAttributeCustom")] NSString TextAttributeCustom { get; } - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Field ("UIAccessibilityTextAttributeContext")] NSString TextAttributeContext { get; } - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Field ("UIAccessibilitySpeechAttributeSpellOut")] NSString SpeechAttributeSpellOut { get; } } @@ -979,21 +983,21 @@ namespace UIKit { nint GetIndexOfAccessibilityElement (NSObject element); [Export ("accessibilityElements")] - [iOS (8,0)] + [iOS (8, 0)] NSObject GetAccessibilityElements (); - [iOS (8,0)] + [iOS (8, 0)] [Export ("setAccessibilityElements:")] void SetAccessibilityElements ([NullAllowed] NSObject elements); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("accessibilityContainerType", ArgumentSemantic.Assign)] UIAccessibilityContainerType AccessibilityContainerType { get; set; } } - interface IUIAccessibilityContainerDataTableCell {} + interface IUIAccessibilityContainerDataTableCell { } - [iOS (11,0), TV (11,0), NoWatch] + [iOS (11, 0), TV (11, 0), NoWatch] [Protocol] interface UIAccessibilityContainerDataTableCell { [Abstract] @@ -1005,9 +1009,9 @@ namespace UIKit { NSRange GetAccessibilityColumnRange (); } - [iOS (11,0), TV (11,0), NoWatch] + [iOS (11, 0), TV (11, 0), NoWatch] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UIAccessibilityContainerDataTable { [Abstract] [Export ("accessibilityDataTableCellElementForRow:column:")] @@ -1024,109 +1028,109 @@ namespace UIKit { [Export ("accessibilityHeaderElementsForRow:")] [return: NullAllowed] - IUIAccessibilityContainerDataTableCell[] GetAccessibilityHeaderElementsForRow (nuint row); + IUIAccessibilityContainerDataTableCell [] GetAccessibilityHeaderElementsForRow (nuint row); [Export ("accessibilityHeaderElementsForColumn:")] [return: NullAllowed] - IUIAccessibilityContainerDataTableCell[] GetAccessibilityHeaderElementsForColumn (nuint column); + IUIAccessibilityContainerDataTableCell [] GetAccessibilityHeaderElementsForColumn (nuint column); } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] delegate bool UIAccessibilityCustomActionHandler (UIAccessibilityCustomAction customAction); - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Please use the designated initializer partial interface UIAccessibilityCustomAction { - [Export ("initWithName:target:selector:")] - NativeHandle Constructor (string name, NSObject target, Selector selector); - - [TV (11,0), iOS (11,0)] + [Export ("initWithName:target:selector:")] + NativeHandle Constructor (string name, NSObject target, Selector selector); + + [TV (11, 0), iOS (11, 0)] [Export ("initWithAttributedName:target:selector:")] NativeHandle Constructor (NSAttributedString attributedName, [NullAllowed] NSObject target, Selector selector); - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("initWithName:actionHandler:")] NativeHandle Constructor (string name, [NullAllowed] UIAccessibilityCustomActionHandler actionHandler); - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("initWithAttributedName:actionHandler:")] NativeHandle Constructor (NSAttributedString attributedName, [NullAllowed] UIAccessibilityCustomActionHandler actionHandler); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithName:image:target:selector:")] NativeHandle Constructor (string name, [NullAllowed] UIImage image, [NullAllowed] NSObject target, Selector selector); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithAttributedName:image:target:selector:")] NativeHandle Constructor (NSAttributedString attributedName, [NullAllowed] UIImage image, [NullAllowed] NSObject target, Selector selector); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithName:image:actionHandler:")] NativeHandle Constructor (string name, [NullAllowed] UIImage image, UIAccessibilityCustomActionHandler actionHandler); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithAttributedName:image:actionHandler:")] NativeHandle Constructor (NSAttributedString attributedName, [NullAllowed] UIImage image, UIAccessibilityCustomActionHandler actionHandler); [NullAllowed] // by default this property is null [Export ("name")] string Name { get; set; } - - [TV (11,0), iOS (11,0)] + + [TV (11, 0), iOS (11, 0)] [Export ("attributedName", ArgumentSemantic.Copy)] NSAttributedString AttributedName { get; set; } [NullAllowed] // by default this property is null [Export ("target", ArgumentSemantic.Weak)] NSObject Target { get; set; } - + [NullAllowed] // by default this property is null [Export ("selector", ArgumentSemantic.UnsafeUnretained)] Selector Selector { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("actionHandler", ArgumentSemantic.Copy)] UIAccessibilityCustomActionHandler ActionHandler { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("image", ArgumentSemantic.Strong)] UIImage Image { get; set; } } delegate UIAccessibilityCustomRotorItemResult UIAccessibilityCustomRotorSearch (UIAccessibilityCustomRotorSearchPredicate predicate); - - [iOS (10,0), TV (10,0), NoWatch] + + [iOS (10, 0), TV (10, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIAccessibilityCustomRotor { [Export ("initWithName:itemSearchBlock:")] NativeHandle Constructor (string name, UIAccessibilityCustomRotorSearch itemSearchHandler); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("initWithAttributedName:itemSearchBlock:")] NativeHandle Constructor (NSAttributedString attributedName, UIAccessibilityCustomRotorSearch itemSearchBlock); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("initWithSystemType:itemSearchBlock:")] NativeHandle Constructor (UIAccessibilityCustomSystemRotorType type, UIAccessibilityCustomRotorSearch itemSearchBlock); [Export ("name")] string Name { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("attributedName", ArgumentSemantic.Copy)] NSAttributedString AttributedName { get; set; } [Export ("itemSearchBlock", ArgumentSemantic.Copy)] UIAccessibilityCustomRotorSearch ItemSearchHandler { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("systemRotorType")] UIAccessibilityCustomSystemRotorType SystemRotorType { get; } } - [iOS (10,0), TV (10,0), NoWatch] + [iOS (10, 0), TV (10, 0), NoWatch] [Category] [BaseType (typeof (NSObject))] interface NSObject_UIAccessibilityCustomRotor { @@ -1138,9 +1142,9 @@ namespace UIKit { [Export ("setAccessibilityCustomRotors:")] void SetAccessibilityCustomRotors ([NullAllowed] UIAccessibilityCustomRotor [] customRotors); } - - [iOS (10,0), TV (10,0), NoWatch] - [BaseType (typeof(NSObject))] + + [iOS (10, 0), TV (10, 0), NoWatch] + [BaseType (typeof (NSObject))] interface UIAccessibilityCustomRotorItemResult { [Export ("initWithTargetElement:targetRange:")] @@ -1152,9 +1156,9 @@ namespace UIKit { [NullAllowed, Export ("targetRange", ArgumentSemantic.Retain)] UITextRange TargetRange { get; set; } } - - [iOS (10,0), TV (10,0), NoWatch] - [BaseType (typeof(NSObject))] + + [iOS (10, 0), TV (10, 0), NoWatch] + [BaseType (typeof (NSObject))] interface UIAccessibilityCustomRotorSearchPredicate { [Export ("currentItem", ArgumentSemantic.Retain)] @@ -1163,7 +1167,7 @@ namespace UIKit { [Export ("searchDirection", ArgumentSemantic.Assign)] UIAccessibilityCustomRotorDirection SearchDirection { get; set; } } - + [NoWatch] [BaseType (typeof (UIResponder))] // only happens on the simulator (not devices) on iOS8 (still make sense) @@ -1197,7 +1201,7 @@ namespace UIKit { [Export ("accessibilityTraits", ArgumentSemantic.UnsafeUnretained)] ulong AccessibilityTraits { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("accessibilityFrameInContainerSpace", ArgumentSemantic.Assign)] CGRect AccessibilityFrameInContainerSpace { get; set; } } @@ -1213,7 +1217,7 @@ namespace UIKit { [Export ("accessibilityElementIsFocused")] bool AccessibilityElementIsFocused (); - [iOS (9,0)] + [iOS (9, 0)] [Export ("accessibilityAssistiveTechnologyFocusedIdentifiers")] NSSet AccessibilityAssistiveTechnologyFocusedIdentifiers { get; } } @@ -1236,25 +1240,25 @@ namespace UIKit { [Export ("accessibilityPerformMagicTap")] bool AccessibilityPerformMagicTap (); - [iOS (8,0)] + [iOS (8, 0)] [Export ("accessibilityCustomActions"), NullAllowed] UIAccessibilityCustomAction [] AccessibilityCustomActions { get; set; } } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] // NSObject category inlined in UIResponder interface UIAccessibilityDragging { [NullAllowed, Export ("accessibilityDragSourceDescriptors", ArgumentSemantic.Copy)] - UIAccessibilityLocationDescriptor[] AccessibilityDragSourceDescriptors { get; set; } + UIAccessibilityLocationDescriptor [] AccessibilityDragSourceDescriptors { get; set; } [NullAllowed, Export ("accessibilityDropPointDescriptors", ArgumentSemantic.Copy)] - UIAccessibilityLocationDescriptor[] AccessibilityDropPointDescriptors { get; set; } + UIAccessibilityLocationDescriptor [] AccessibilityDropPointDescriptors { get; set; } } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIAccessibilityLocationDescriptor { [Export ("initWithName:view:")] @@ -1280,7 +1284,9 @@ namespace UIKit { NSAttributedString AttributedName { get; } } - [TV (11,0), iOS (11,0)][NoMac][NoWatch] + [TV (11, 0), iOS (11, 0)] + [NoMac] + [NoWatch] [Protocol] interface UIAccessibilityContentSizeCategoryImageAdjusting { [Abstract] @@ -1289,38 +1295,41 @@ namespace UIKit { } [NoTV, NoWatch] - [BaseType (typeof (UIView), KeepRefUntil="Dismissed", Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIActionSheetDelegate)})] + [BaseType (typeof (UIView), KeepRefUntil = "Dismissed", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIActionSheetDelegate) })] [Deprecated (PlatformName.iOS, 8, 3, message: "Use 'UIAlertController' with 'UIAlertControllerStyle.ActionSheet' instead.")] interface UIActionSheet { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'UIAlertController' instead.")] - [Export ("initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:")][Internal][PostGet ("WeakDelegate")] + [Export ("initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:")] + [Internal] + [PostGet ("WeakDelegate")] NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] IUIActionSheetDelegate Delegate, [NullAllowed] string cancelTitle, [NullAllowed] string destroy, [NullAllowed] string other); - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UIActionSheetDelegate Delegate { get; set; } - + [NullAllowed] // by default this property is null [Export ("title", ArgumentSemantic.Copy)] - string Title { get; set; } + string Title { get; set; } [Export ("actionSheetStyle")] UIActionSheetStyle Style { get; set; } [Export ("addButtonWithTitle:")] nint AddButton (string title); - + [Export ("buttonTitleAtIndex:")] string ButtonTitle (nint index); - + [Export ("numberOfButtons")] - nint ButtonCount { get; } + nint ButtonCount { get; } [Export ("cancelButtonIndex")] nint CancelButtonIndex { get; set; } @@ -1335,7 +1344,7 @@ namespace UIKit { bool Visible { [Bind ("isVisible")] get; } [Export ("showFromToolbar:")] - void ShowFromToolbar (UIToolbar view); + void ShowFromToolbar (UIToolbar view); [Export ("showFromTabBar:")] void ShowFromTabBar (UITabBar view); @@ -1355,7 +1364,7 @@ namespace UIKit { delegate void UIActionHandler (UIAction action); - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UIMenuElement))] [DisableDefaultCtor] interface UIAction : UIMenuLeaf { @@ -1378,12 +1387,12 @@ namespace UIKit { [Export ("state", ArgumentSemantic.Assign)] new UIMenuElementState State { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [NullAllowed] [Export ("sender")] new NSObject Sender { get; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("actionWithHandler:")] UIAction Create (UIActionHandler handler); @@ -1394,14 +1403,14 @@ namespace UIKit { // From UIAction (UICaptureTextFromCameraSupporting) category - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("captureTextFromCameraActionForResponder:identifier:")] UIAction CaptureTextFromCameraAction (IUIKeyInput responder, [NullAllowed] string identifier); } - interface IUIActionSheetDelegate {} + interface IUIActionSheetDelegate { } [NoTV, NoWatch] [BaseType (typeof (NSObject))] @@ -1415,7 +1424,7 @@ namespace UIKit { [Export ("actionSheetCancel:"), EventArgs ("UIActionSheet")] void Canceled (UIActionSheet actionSheet); - + [Export ("willPresentActionSheet:"), EventArgs ("UIActionSheet")] void WillPresent (UIActionSheet actionSheet); @@ -1456,15 +1465,14 @@ namespace UIKit { [Export ("activityDidFinish:")] void Finished (bool completed); - [iOS (7,0)] + [iOS (7, 0)] [Export ("activityCategory"), Static] - UIActivityCategory Category { get; } + UIActivityCategory Category { get; } } [NoTV, NoWatch] [Static] - interface UIActivityType - { + interface UIActivityType { [Field ("UIActivityTypePostToFacebook")] NSString PostToFacebook { get; } @@ -1492,43 +1500,43 @@ namespace UIKit { [Field ("UIActivityTypeSaveToCameraRoll")] NSString SaveToCameraRoll { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIActivityTypeAddToReadingList")] NSString AddToReadingList { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("UIActivityTypePostToFlickr")] NSString PostToFlickr { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("UIActivityTypePostToVimeo")] NSString PostToVimeo { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("UIActivityTypePostToTencentWeibo")] NSString PostToTencentWeibo { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("UIActivityTypeAirDrop")] NSString AirDrop { get; } - [iOS (9,0)] + [iOS (9, 0)] [Field ("UIActivityTypeOpenInIBooks")] NSString OpenInIBooks { get; } - [iOS (11,0)] + [iOS (11, 0)] [Field ("UIActivityTypeMarkupAsPDF")] NSString MarkupAsPdf { get; } - [iOS (15,4), MacCatalyst (15,4)] + [iOS (15, 4), MacCatalyst (15, 4)] [Field ("UIActivityTypeSharePlay")] NSString UIActivityTypeSharePlay { get; } - [NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Field ("UIActivityTypeCollaborationInviteWithLink")] NSString CollaborationInviteWithLink { get; } - [NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Field ("UIActivityTypeCollaborationCopyLink")] NSString CollaborationCopyLink { get; } } @@ -1556,16 +1564,16 @@ namespace UIKit { [Export ("initWithPlaceholderItem:")] [PostGet ("PlaceholderItem")] NativeHandle Constructor (NSObject placeholderItem); - + [Export ("placeholderItem", ArgumentSemantic.Retain)] - NSObject PlaceholderItem { get; } + NSObject PlaceholderItem { get; } [Export ("activityType")] - NSString ActivityType { get; } + NSString ActivityType { get; } [Export ("item")] NSObject Item { get; } - + } interface IUIActivityItemSource { } @@ -1583,19 +1591,19 @@ namespace UIKit { [Export ("activityViewController:itemForActivityType:")] NSObject GetItemForActivity (UIActivityViewController activityViewController, [NullAllowed] NSString activityType); - [iOS (7,0)] + [iOS (7, 0)] [Export ("activityViewController:dataTypeIdentifierForActivityType:")] string GetDataTypeIdentifierForActivity (UIActivityViewController activityViewController, [NullAllowed] NSString activityType); - [iOS (7,0)] + [iOS (7, 0)] [Export ("activityViewController:subjectForActivityType:")] string GetSubjectForActivity (UIActivityViewController activityViewController, [NullAllowed] NSString activityType); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("activityViewController:thumbnailImageForActivityType:suggestedSize:")] UIImage GetThumbnailImageForActivity (UIActivityViewController activityViewController, [NullAllowed] NSString activityType, CGSize suggestedSize); - [iOS (13,0)] + [iOS (13, 0)] [Export ("activityViewControllerLinkMetadata:")] [return: NullAllowed] LPLinkMetadata GetLinkMetadata (UIActivityViewController activityViewController); @@ -1608,48 +1616,48 @@ namespace UIKit { [DesignatedInitializer] [Export ("initWithActivityItems:applicationActivities:")] NativeHandle Constructor (NSObject [] activityItems, [NullAllowed] UIActivity [] applicationActivities); - + [NullAllowed] // by default this property is null [Export ("completionHandler", ArgumentSemantic.Copy)] [Deprecated (PlatformName.iOS, 8, 0, message: "Use the 'CompletionWithItemsHandler' property instead.")] - Action CompletionHandler { get; set; } + Action CompletionHandler { get; set; } [Export ("excludedActivityTypes", ArgumentSemantic.Copy)] [NullAllowed] - NSString [] ExcludedActivityTypes { get; set; } + NSString [] ExcludedActivityTypes { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed, Export ("completionWithItemsHandler", ArgumentSemantic.Copy)] UIActivityViewControllerCompletion CompletionWithItemsHandler { get; set; } - [NoWatch, iOS (15,4), MacCatalyst (15,4)] + [NoWatch, iOS (15, 4), MacCatalyst (15, 4)] [Export ("allowsProminentActivity")] bool AllowsProminentActivity { get; set; } // UIActivityViewController (UIActivityItemsConfiguration) category - [iOS (14,0)] + [iOS (14, 0)] [Export ("initWithActivityItemsConfiguration:")] NativeHandle Constructor (IUIActivityItemsConfigurationReading activityItemsConfiguration); } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] partial interface UIAlertAction : NSCopying, UIAccessibilityIdentification { [Export ("title")] string Title { get; } - + [Export ("style")] UIAlertActionStyle Style { get; } - + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } - + [Static, Export ("actionWithTitle:style:handler:")] UIAlertAction Create (string title, UIAlertActionStyle style, [NullAllowed] Action handler); } - - [iOS (8,0), NoWatch] + + [iOS (8, 0), NoWatch] [BaseType (typeof (UIViewController))] partial interface UIAlertController #if IOS @@ -1662,50 +1670,52 @@ namespace UIKit { [Export ("actions")] UIAlertAction [] Actions { get; } - + [Export ("textFields")] UITextField [] TextFields { get; } - + [Export ("title", ArgumentSemantic.Copy), NullAllowed] string Title { get; set; } - + [Export ("message", ArgumentSemantic.Copy), NullAllowed] string Message { get; set; } - + [Export ("preferredStyle")] UIAlertControllerStyle PreferredStyle { get; } - + [Static, Export ("alertControllerWithTitle:message:preferredStyle:")] UIAlertController Create ([NullAllowed] string title, [NullAllowed] string message, UIAlertControllerStyle preferredStyle); - + [Export ("addAction:")] void AddAction (UIAlertAction action); - + [Export ("addTextFieldWithConfigurationHandler:")] void AddTextField (Action configurationHandler); - [iOS(9,0)] + [iOS (9, 0)] [Export ("preferredAction")] [NullAllowed] UIAlertAction PreferredAction { get; set; } - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("severity", ArgumentSemantic.Assign)] UIAlertControllerSeverity Severity { get; set; } } - interface IUIAlertViewDelegate {} + interface IUIAlertViewDelegate { } [NoTV, NoWatch] - [BaseType (typeof (UIView), KeepRefUntil="Dismissed", Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIAlertViewDelegate)})] + [BaseType (typeof (UIView), KeepRefUntil = "Dismissed", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIAlertViewDelegate) })] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'UIAlertController' with a 'UIAlertControllerStyle.Alert' type instead.")] interface UIAlertView : NSCoding { [DesignatedInitializer] [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - + [Sealed] - [Export ("initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:", IsVariadic = true)][Internal][PostGet ("WeakDelegate")] + [Export ("initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:", IsVariadic = true)] + [Internal] + [PostGet ("WeakDelegate")] // The native function takes a variable number of arguments (otherButtonTitles), terminated with a nil value. // Unfortunately iOS/ARM64 (not the general ARM64 ABI as published by ARM) has a different calling convention for varargs methods // than regular methods: all variable arguments are passed on the stack, no matter how many normal arguments there are. @@ -1720,7 +1730,8 @@ namespace UIKit { [Protocolize] UIAlertViewDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [NullAllowed] // by default this property is null @@ -1739,13 +1750,13 @@ namespace UIKit { [Export ("numberOfButtons")] nint ButtonCount { get; } - + [Export ("cancelButtonIndex")] nint CancelButtonIndex { get; set; } [Export ("firstOtherButtonIndex")] nint FirstOtherButtonIndex { get; } - + [Export ("visible")] bool Visible { [Bind ("isVisible")] get; } @@ -1756,7 +1767,7 @@ namespace UIKit { void DismissWithClickedButtonIndex (nint index, bool animated); [Export ("alertViewStyle", ArgumentSemantic.Assign)] - UIAlertViewStyle AlertViewStyle { get; set; } + UIAlertViewStyle AlertViewStyle { get; set; } [Export ("textFieldAtIndex:")] UITextField GetTextField (nint textFieldIndex); @@ -1806,7 +1817,7 @@ namespace UIKit { interface UIAppearance { } - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [BaseType (typeof (UIView))] interface UIStackView { [Export ("initWithFrame:")] @@ -1817,25 +1828,25 @@ namespace UIKit { NativeHandle Constructor (UIView [] views); [Export ("arrangedSubviews")] - UIView[] ArrangedSubviews { get; } + UIView [] ArrangedSubviews { get; } [Export ("axis")] - UILayoutConstraintAxis Axis { get; set; } + UILayoutConstraintAxis Axis { get; set; } [Export ("distribution")] - UIStackViewDistribution Distribution { get; set; } + UIStackViewDistribution Distribution { get; set; } [Export ("alignment")] - UIStackViewAlignment Alignment { get; set; } + UIStackViewAlignment Alignment { get; set; } [Export ("spacing")] - nfloat Spacing { get; set; } + nfloat Spacing { get; set; } [Export ("baselineRelativeArrangement")] - bool BaselineRelativeArrangement { [Bind ("isBaselineRelativeArrangement")] get; set; } + bool BaselineRelativeArrangement { [Bind ("isBaselineRelativeArrangement")] get; set; } [Export ("layoutMarginsRelativeArrangement")] - bool LayoutMarginsRelativeArrangement { [Bind ("isLayoutMarginsRelativeArrangement")] get; set; } + bool LayoutMarginsRelativeArrangement { [Bind ("isLayoutMarginsRelativeArrangement")] get; set; } [Export ("addArrangedSubview:")] void AddArrangedSubview (UIView view); @@ -1846,15 +1857,15 @@ namespace UIKit { [Export ("insertArrangedSubview:atIndex:")] void InsertArrangedSubview (UIView view, nuint stackIndex); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("setCustomSpacing:afterView:")] void SetCustomSpacing (nfloat spacing, UIView arrangedSubview); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("customSpacingAfterView:")] nfloat GetCustomSpacing (UIView arrangedSubview); } - + [NoWatch] [Static] interface UIStateRestoration { @@ -1863,16 +1874,16 @@ namespace UIKit { } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (NSObject))] [Model] [Protocol] interface UIStateRestoring { [Export ("restorationParent")] - IUIStateRestoring RestorationParent { get; } + IUIStateRestoring RestorationParent { get; } [Export ("objectRestorationClass")] - Class ObjectRestorationClass { get; } + Class ObjectRestorationClass { get; } [Export ("encodeRestorableStateWithCoder:")] void EncodeRestorableState (NSCoder coder); @@ -1884,12 +1895,12 @@ namespace UIKit { void ApplicationFinishedRestoringState (); } - interface IUIStateRestoring {} + interface IUIStateRestoring { } [BaseType (typeof (NSObject))] [Model] [Protocol] - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] interface UIObjectRestoration { #if false // a bit hard to support *static* as part of an interface / extension methods @@ -1898,12 +1909,11 @@ namespace UIKit { #endif } - interface IUIViewAnimating {} + interface IUIViewAnimating { } - [iOS(10,0), NoWatch] + [iOS (10, 0), NoWatch] [Protocol] - interface UIViewAnimating - { + interface UIViewAnimating { [Abstract] [Export ("state")] UIViewAnimatingState State { get; } @@ -1941,76 +1951,74 @@ namespace UIKit { void FinishAnimation (UIViewAnimatingPosition finalPosition); } - interface IUIViewImplicitlyAnimating {} - [iOS(10,0), NoWatch] + interface IUIViewImplicitlyAnimating { } + [iOS (10, 0), NoWatch] [Protocol] - interface UIViewImplicitlyAnimating : UIViewAnimating - { + interface UIViewImplicitlyAnimating : UIViewAnimating { [Export ("addAnimations:delayFactor:")] void AddAnimations (Action animation, nfloat delayFactor); - + [Export ("addAnimations:")] void AddAnimations (Action animation); - + [Export ("addCompletion:")] void AddCompletion (Action completion); - + [Export ("continueAnimationWithTimingParameters:durationFactor:")] void ContinueAnimation ([NullAllowed] IUITimingCurveProvider parameters, nfloat durationFactor); } - - [iOS (10,0), TV (10,0), NoWatch] - [BaseType (typeof(NSObject))] - interface UIViewPropertyAnimator : UIViewImplicitlyAnimating, NSCopying - { + + [iOS (10, 0), TV (10, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface UIViewPropertyAnimator : UIViewImplicitlyAnimating, NSCopying { [NullAllowed, Export ("timingParameters", ArgumentSemantic.Copy)] IUITimingCurveProvider TimingParameters { get; } - + [Export ("duration")] double Duration { get; } [Export ("delay")] double Delay { get; } - + [Export ("userInteractionEnabled")] bool UserInteractionEnabled { [Bind ("isUserInteractionEnabled")] get; set; } [Export ("manualHitTestingEnabled")] bool ManualHitTestingEnabled { [Bind ("isManualHitTestingEnabled")] get; set; } - + [Export ("interruptible")] bool Interruptible { [Bind ("isInterruptible")] get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("scrubsLinearly")] bool ScrubsLinearly { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("pausesOnCompletion")] bool PausesOnCompletion { get; set; } - + [Export ("initWithDuration:timingParameters:")] [DesignatedInitializer] NativeHandle Constructor (double duration, IUITimingCurveProvider parameters); - + [Export ("initWithDuration:curve:animations:")] NativeHandle Constructor (double duration, UIViewAnimationCurve curve, [NullAllowed] Action animations); - + [Export ("initWithDuration:controlPoint1:controlPoint2:animations:")] NativeHandle Constructor (double duration, CGPoint point1, CGPoint point2, [NullAllowed] Action animations); - + [Export ("initWithDuration:dampingRatio:animations:")] NativeHandle Constructor (double duration, nfloat ratio, [NullAllowed] Action animations); - + [Static] [Export ("runningPropertyAnimatorWithDuration:delay:options:animations:completion:")] UIViewPropertyAnimator CreateRunningPropertyAnimator (double duration, double delay, UIViewAnimationOptions options, Action animations, [NullAllowed] Action completion); } - - interface IUIViewControllerPreviewing {} + + interface IUIViewControllerPreviewing { } [Protocol] - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] interface UIViewControllerPreviewing { [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] @@ -2024,7 +2032,8 @@ namespace UIKit { NSObject WeakDelegate { get; // readonly #if !XAMCORE_3_0 - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -2042,11 +2051,11 @@ namespace UIKit { CGRect SourceRect { get; set; } } - interface IUIViewControllerPreviewingDelegate {} - + interface IUIViewControllerPreviewingDelegate { } + [Protocol] [Model] - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIViewControllerPreviewingDelegate { [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] @@ -2061,7 +2070,7 @@ namespace UIKit { [Export ("previewingContext:commitViewController:")] void CommitViewController (IUIViewControllerPreviewing previewingContext, UIViewController viewControllerToCommit); } - + [NoWatch] [Protocol] interface UIViewControllerRestoration { @@ -2117,7 +2126,7 @@ namespace UIKit { bool UniversalLinksOnly { get; set; } } - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [Static] [Internal] // we'll make it public if there's a need for them (beside the strong dictionary we provide) interface UIApplicationOpenUrlOptionKeys { @@ -2130,17 +2139,17 @@ namespace UIKit { [Field ("UIApplicationOpenURLOptionsOpenInPlaceKey")] NSString OpenInPlaceKey { get; } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("UIApplicationOpenURLOptionsEventAttributionKey")] NSString OpenUrlOptionsEventAttributionKey { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Field ("UIApplicationOpenURLOptionUniversalLinksOnly")] NSString UniversalLinksOnlyKey { get; } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("UIApplicationOpenExternalURLOptionsEventAttributionKey")] NSString OpenExternalUrlOptionsEventAttributionKey { get; } } @@ -2152,7 +2161,8 @@ namespace UIKit { [Export ("sharedApplication")] UIApplication SharedApplication { get; } - [Export ("delegate", ArgumentSemantic.Assign)][ThreadSafe, NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [ThreadSafe, NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -2163,7 +2173,7 @@ namespace UIKit { [Deprecated (PlatformName.TvOS, 13, 0, message: "Use UIView's 'UserInteractionEnabled' property instead.")] [Export ("beginIgnoringInteractionEvents")] void BeginIgnoringInteractionEvents (); - + [Deprecated (PlatformName.iOS, 13, 0, message: "Use UIView's 'UserInteractionEnabled' property instead.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use UIView's 'UserInteractionEnabled' property instead.")] [Export ("endIgnoringInteractionEvents")] @@ -2182,11 +2192,11 @@ namespace UIKit { [Export ("openURL:")] bool OpenUrl (NSUrl url); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("openURL:options:completionHandler:")] void OpenUrl (NSUrl url, NSDictionary options, [NullAllowed] Action completion); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Wrap ("OpenUrl (url, options.GetDictionary ()!, completion)")] [Async] void OpenUrl (NSUrl url, UIApplicationOpenUrlOptions options, [NullAllowed] Action completion); @@ -2194,7 +2204,7 @@ namespace UIKit { [Export ("canOpenURL:")] [PreSnippet ("if (url is null) return false;", Optimizable = true)] // null not really allowed (but it's a behaviour change with known bug reports) bool CanOpenUrl ([NullAllowed] NSUrl url); - + [Export ("sendEvent:")] void SendEvent (UIEvent uievent); @@ -2209,7 +2219,7 @@ namespace UIKit { [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'UIWindowScene.Windows' in the desired window scene object instead.")] [Export ("windows")] [Transient] - UIWindow [] Windows { get; } + UIWindow [] Windows { get; } [Export ("sendAction:to:from:forEvent:")] bool SendAction (Selector action, [NullAllowed] NSObject target, [NullAllowed] NSObject sender, [NullAllowed] UIEvent forEvent); @@ -2223,7 +2233,7 @@ namespace UIKit { [Export ("statusBarStyle")] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'UIViewController.PreferredStatusBarStyle' instead.")] UIStatusBarStyle StatusBarStyle { get; set; } - + [NoTV] [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'UIViewController.PreferredStatusBarStyle' instead.")] [Export ("setStatusBarStyle:animated:")] @@ -2248,7 +2258,7 @@ namespace UIKit { [Export ("statusBarOrientation")] [Deprecated (PlatformName.iOS, 9, 0)] UIInterfaceOrientation StatusBarOrientation { get; set; } - + [NoTV] [Export ("setStatusBarOrientation:animated:")] [Deprecated (PlatformName.iOS, 9, 0)] @@ -2263,7 +2273,7 @@ namespace UIKit { [Export ("statusBarFrame")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use the 'StatusBarManager' property of the window scene instead.")] CGRect StatusBarFrame { get; } - + [TV (10, 0)] [Export ("applicationIconBadgeNumber")] nint ApplicationIconBadgeNumber { get; set; } @@ -2291,23 +2301,23 @@ namespace UIKit { [Field ("UIApplicationDidFinishLaunchingNotification")] [Notification (typeof (UIApplicationLaunchEventArgs))] NSString DidFinishLaunchingNotification { get; } - + [Field ("UIApplicationDidBecomeActiveNotification")] [Notification] NSString DidBecomeActiveNotification { get; } - + [Field ("UIApplicationWillResignActiveNotification")] [Notification] NSString WillResignActiveNotification { get; } - + [Field ("UIApplicationDidReceiveMemoryWarningNotification")] [Notification] NSString DidReceiveMemoryWarningNotification { get; } - + [Field ("UIApplicationWillTerminateNotification")] [Notification] NSString WillTerminateNotification { get; } - + [Field ("UIApplicationSignificantTimeChangeNotification")] [Notification] NSString SignificantTimeChangeNotification { get; } @@ -2345,10 +2355,10 @@ namespace UIKit { [Field ("UIApplicationStatusBarFrameUserInfoKey")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'ViewWillTransitionToSize' instead.")] NSString StatusBarFrameUserInfoKey { get; } - + [Field ("UIApplicationLaunchOptionsURLKey")] NSString LaunchOptionsUrlKey { get; } - + [Field ("UIApplicationLaunchOptionsSourceApplicationKey")] NSString LaunchOptionsSourceApplicationKey { get; } @@ -2358,7 +2368,7 @@ namespace UIKit { [Field ("UIApplicationLaunchOptionsAnnotationKey")] NSString LaunchOptionsAnnotationKey { get; } - + [Export ("applicationState")] UIApplicationState ApplicationState { get; } @@ -2385,7 +2395,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'PushKit' instead.")] [Export ("clearKeepAliveTimeout")] void ClearKeepAliveTimeout (); - + [Export ("protectedDataAvailable")] bool ProtectedDataAvailable { [Bind ("isProtectedDataAvailable")] get; } @@ -2438,22 +2448,22 @@ namespace UIKit { [Field ("UIApplicationProtectedDataWillBecomeUnavailable")] [Notification] NSString ProtectedDataWillBecomeUnavailable { get; } - + [Field ("UIApplicationProtectedDataDidBecomeAvailable")] [Notification] NSString ProtectedDataDidBecomeAvailable { get; } - + [Field ("UIApplicationLaunchOptionsLocationKey")] NSString LaunchOptionsLocationKey { get; } - + [Field ("UIApplicationDidEnterBackgroundNotification")] [Notification] NSString DidEnterBackgroundNotification { get; } - + [Field ("UIApplicationWillEnterForegroundNotification")] [Notification] NSString WillEnterForegroundNotification { get; } - + [NoTV] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")] [Field ("UIApplicationLaunchOptionsLocalNotificationKey")] @@ -2472,21 +2482,21 @@ namespace UIKit { [Field ("UIApplicationLaunchOptionsNewsstandDownloadsKey")] NSString LaunchOptionsNewsstandDownloadsKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIApplicationLaunchOptionsBluetoothCentralsKey")] NSString LaunchOptionsBluetoothCentralsKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIApplicationLaunchOptionsBluetoothPeripheralsKey")] NSString LaunchOptionsBluetoothPeripheralsKey { get; } [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Field ("UIApplicationLaunchOptionsShortcutItemKey")] NSString LaunchOptionsShortcutItemKey { get; } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("UIApplicationLaunchOptionsEventAttributionKey")] NSString LaunchOptionsEventAttributionKey { get; } @@ -2518,98 +2528,98 @@ namespace UIKit { // // 7.0 // - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIContentSizeCategoryDidChangeNotification")] [Notification (typeof (UIContentSizeCategoryChangedEventArgs))] NSString ContentSizeCategoryChangedNotification { get; } - + [ThreadSafe] - [iOS (7,0)] + [iOS (7, 0)] [RequiresSuper] [Export ("beginBackgroundTaskWithName:expirationHandler:")] nint BeginBackgroundTask (string taskName, Action expirationHandler); - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Field ("UIApplicationBackgroundFetchIntervalMinimum")] double BackgroundFetchIntervalMinimum { get; } - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Field ("UIApplicationBackgroundFetchIntervalNever")] double BackgroundFetchIntervalNever { get; } - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Export ("setMinimumBackgroundFetchInterval:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Use a 'BGAppRefreshTask' from 'BackgroundTasks' framework.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use a 'BGAppRefreshTask' from 'BackgroundTasks' framework.")] void SetMinimumBackgroundFetchInterval (double minimumBackgroundFetchInterval); [EditorBrowsable (EditorBrowsableState.Advanced)] - [iOS (7,0)] + [iOS (7, 0)] [Export ("preferredContentSizeCategory")] NSString PreferredContentSizeCategory { get; } - [iOS (7,0)] + [iOS (7, 0)] [Wrap ("UIContentSizeCategoryExtensions.GetValue (SharedApplication.PreferredContentSizeCategory)")] UIContentSizeCategory GetPreferredContentSizeCategory (); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("connectedScenes")] NSSet ConnectedScenes { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("openSessions")] NSSet OpenSessions { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("supportsMultipleScenes")] bool SupportsMultipleScenes { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("requestSceneSessionActivation:userActivity:options:errorHandler:")] void RequestSceneSessionActivation ([NullAllowed] UISceneSession sceneSession, [NullAllowed] NSUserActivity userActivity, [NullAllowed] UISceneActivationRequestOptions options, [NullAllowed] Action errorHandler); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("requestSceneSessionDestruction:options:errorHandler:")] void RequestSceneSessionDestruction (UISceneSession sceneSession, [NullAllowed] UISceneDestructionRequestOptions options, [NullAllowed] Action errorHandler); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("requestSceneSessionRefresh:")] void RequestSceneSessionRefresh (UISceneSession sceneSession); // from @interface UIApplication (UIStateRestoration) - [iOS (7,0)] + [iOS (7, 0)] [Export ("ignoreSnapshotOnNextApplicationLaunch")] void IgnoreSnapshotOnNextApplicationLaunch (); // from @interface UIApplication (UIStateRestoration) [Export ("registerObjectForStateRestoration:restorationIdentifier:")] - [iOS (7,0)] + [iOS (7, 0)] [Static] void RegisterObjectForStateRestoration (IUIStateRestoring uistateRestoringObject, string restorationIdentifier); - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIApplicationStateRestorationTimestampKey")] NSString StateRestorationTimestampKey { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIApplicationStateRestorationSystemVersionKey")] NSString StateRestorationSystemVersionKey { get; } - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Export ("backgroundRefreshStatus")] UIBackgroundRefreshStatus BackgroundRefreshStatus { get; } - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Notification] [Field ("UIApplicationBackgroundRefreshStatusDidChangeNotification")] NSString BackgroundRefreshStatusDidChangeNotification { get; } - [iOS (7,0)] + [iOS (7, 0)] [Notification] [Field ("UIApplicationUserDidTakeScreenshotNotification")] NSString UserDidTakeScreenshotNotification { get; } @@ -2617,141 +2627,143 @@ namespace UIKit { // // 8.0 // - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIApplicationOpenSettingsURLString")] NSString OpenSettingsUrlString { get; } - [iOS (15,4), MacCatalyst (15,4), TV (15,4), NoWatch] + [iOS (15, 4), MacCatalyst (15, 4), TV (15, 4), NoWatch] [Field ("UIApplicationOpenNotificationSettingsURLString")] NSString OpenNotificationSettingsUrl { get; } // from @interface UIApplication (UIUserNotificationSettings) [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenter.GetNotificationSettings' and 'UNUserNotificationCenter.GetNotificationCategories' instead.")] [Export ("currentUserNotificationSettings")] UIUserNotificationSettings CurrentUserNotificationSettings { get; } // from @interface UIApplication (UIRemoteNotifications) - [iOS (8,0)] + [iOS (8, 0)] [Export ("isRegisteredForRemoteNotifications")] bool IsRegisteredForRemoteNotifications { get; } // from @interface UIApplication (UIRemoteNotifications) - [iOS (8,0)] + [iOS (8, 0)] [Export ("registerForRemoteNotifications")] void RegisterForRemoteNotifications (); // from @interface UIApplication (UIUserNotificationSettings) [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenter.RequestAuthorization' and 'UNUserNotificationCenter.SetNotificationCategories' instead.")] [Export ("registerUserNotificationSettings:")] void RegisterUserNotificationSettings (UIUserNotificationSettings notificationSettings); - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIApplicationLaunchOptionsUserActivityDictionaryKey")] NSString LaunchOptionsUserActivityDictionaryKey { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIApplicationLaunchOptionsUserActivityTypeKey")] NSString LaunchOptionsUserActivityTypeKey { get; } - [iOS (10,0), NoTV, NoWatch] + [iOS (10, 0), NoTV, NoWatch] [Field ("UIApplicationLaunchOptionsCloudKitShareMetadataKey")] NSString LaunchOptionsCloudKitShareMetadataKey { get; } [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("shortcutItems", ArgumentSemantic.Copy)] - UIApplicationShortcutItem[] ShortcutItems { get; set; } + UIApplicationShortcutItem [] ShortcutItems { get; set; } // // 10.0 // // from @interface UIApplication (UIAlternateApplicationIcons) - [iOS (10,3)][TV (10,2)] + [iOS (10, 3)] + [TV (10, 2)] [Export ("supportsAlternateIcons")] bool SupportsAlternateIcons { get; } - [iOS (10,3)][TV (10,2)] + [iOS (10, 3)] + [TV (10, 2)] [Async] [Export ("setAlternateIconName:completionHandler:")] void SetAlternateIconName ([NullAllowed] string alternateIconName, [NullAllowed] Action completionHandler); - [iOS (10,3)][TV (10,2)] + [iOS (10, 3)] + [TV (10, 2)] [Export ("alternateIconName"), NullAllowed] string AlternateIconName { get; } } [NoTV, NoWatch] - [iOS (9,0)] - [BaseType (typeof(NSObject))] - interface UIApplicationShortcutIcon : NSCopying - { + [iOS (9, 0)] + [BaseType (typeof (NSObject))] + interface UIApplicationShortcutIcon : NSCopying { [Static] [Export ("iconWithType:")] UIApplicationShortcutIcon FromType (UIApplicationShortcutIconType type); - + [Static] [Export ("iconWithTemplateImageName:")] UIApplicationShortcutIcon FromTemplateImageName (string templateImageName); - [iOS (13,0)] + [iOS (13, 0)] [Static] [Export ("iconWithSystemImageName:")] UIApplicationShortcutIcon FromSystemImageName (string systemImageName); // This is inside ContactsUI.framework - [NoMac][NoTV][NoWatch] + [NoMac] + [NoTV] + [NoWatch] [NoMacCatalyst] [Static, Export ("iconWithContact:")] UIApplicationShortcutIcon FromContact (CNContact contact); } [NoTV, NoWatch] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIApplicationShortcutItem : NSMutableCopying - { + interface UIApplicationShortcutItem : NSMutableCopying { [Export ("initWithType:localizedTitle:localizedSubtitle:icon:userInfo:")] [DesignatedInitializer] - NativeHandle Constructor (string type, string localizedTitle, [NullAllowed] string localizedSubtitle, [NullAllowed] UIApplicationShortcutIcon icon, [NullAllowed] NSDictionary userInfo); - + NativeHandle Constructor (string type, string localizedTitle, [NullAllowed] string localizedSubtitle, [NullAllowed] UIApplicationShortcutIcon icon, [NullAllowed] NSDictionary userInfo); + [Export ("initWithType:localizedTitle:")] NativeHandle Constructor (string type, string localizedTitle); - + [Export ("type")] string Type { get; [NotImplemented] set; } - + [Export ("localizedTitle")] string LocalizedTitle { get; [NotImplemented] set; } - + [NullAllowed, Export ("localizedSubtitle")] string LocalizedSubtitle { get; [NotImplemented] set; } - + [NullAllowed, Export ("icon", ArgumentSemantic.Copy)] UIApplicationShortcutIcon Icon { get; [NotImplemented] set; } - - [NullAllowed, Export ("userInfo", ArgumentSemantic.Copy)] - NSDictionary UserInfo { get; [NotImplemented] set; } - [iOS (13,0)] + [NullAllowed, Export ("userInfo", ArgumentSemantic.Copy)] + NSDictionary UserInfo { get; [NotImplemented] set; } + + [iOS (13, 0)] [NullAllowed, Export ("targetContentIdentifier", ArgumentSemantic.Copy)] NSObject TargetContentIdentifier { get; [NotImplemented] set; } } [NoTV, NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UIApplicationShortcutItem))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: Don't call -[UIApplicationShortcutItem init]. - interface UIMutableApplicationShortcutItem - { + interface UIMutableApplicationShortcutItem { // inlined [Export ("initWithType:localizedTitle:localizedSubtitle:icon:userInfo:")] - NativeHandle Constructor (string type, string localizedTitle, [NullAllowed] string localizedSubtitle, [NullAllowed] UIApplicationShortcutIcon icon, [NullAllowed] NSDictionary userInfo); + NativeHandle Constructor (string type, string localizedTitle, [NullAllowed] string localizedSubtitle, [NullAllowed] UIApplicationShortcutIcon icon, [NullAllowed] NSDictionary userInfo); // inlined [Export ("initWithType:localizedTitle:")] @@ -2775,34 +2787,34 @@ namespace UIKit { [NullAllowed, Export ("userInfo", ArgumentSemantic.Copy)] [Override] - NSDictionary UserInfo { get; set; } + NSDictionary UserInfo { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("targetContentIdentifier", ArgumentSemantic.Copy)] NSObject TargetContentIdentifier { get; set; } } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (UIDynamicBehavior))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: init is undefined for objects of type UIAttachmentBehavior interface UIAttachmentBehavior { [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem [] Items { get; } + IUIDynamicItem [] Items { get; } [Export ("attachedBehaviorType")] - UIAttachmentBehaviorType AttachedBehaviorType { get; } + UIAttachmentBehaviorType AttachedBehaviorType { get; } [Export ("anchorPoint")] - CGPoint AnchorPoint { get; set; } + CGPoint AnchorPoint { get; set; } [Export ("length")] - nfloat Length { get; set; } + nfloat Length { get; set; } [Export ("damping")] - nfloat Damping { get; set; } + nfloat Damping { get; set; } [Export ("frequency")] - nfloat Frequency { get; set; } + nfloat Frequency { get; set; } [Export ("initWithItem:attachedToAnchor:")] NativeHandle Constructor (IUIDynamicItem item, CGPoint anchorPoint); @@ -2819,45 +2831,45 @@ namespace UIKit { NativeHandle Constructor (IUIDynamicItem item, UIOffset offsetFromCenter, IUIDynamicItem attachedToItem, UIOffset attachOffsetFromCenter); [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("slidingAttachmentWithItem:attachedToItem:attachmentAnchor:axisOfTranslation:")] UIAttachmentBehavior CreateSlidingAttachment (IUIDynamicItem item1, IUIDynamicItem item2, CGPoint attachmentAnchor, CGVector translationAxis); [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("slidingAttachmentWithItem:attachmentAnchor:axisOfTranslation:")] UIAttachmentBehavior CreateSlidingAttachment (IUIDynamicItem item, CGPoint attachmentAnchor, CGVector translationAxis); -// +(instancetype __nonnull)limitAttachmentWithItem:(id __nonnull)item1 offsetFromCenter:(UIOffset)offset1 attachedToItem:(id __nonnull)item2 offsetFromCenter:(UIOffset)offset2; + // +(instancetype __nonnull)limitAttachmentWithItem:(id __nonnull)item1 offsetFromCenter:(UIOffset)offset1 attachedToItem:(id __nonnull)item2 offsetFromCenter:(UIOffset)offset2; [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("limitAttachmentWithItem:offsetFromCenter:attachedToItem:offsetFromCenter:")] UIAttachmentBehavior CreateLimitAttachment (IUIDynamicItem item1, UIOffset offsetFromCenter, IUIDynamicItem item2, UIOffset offsetFromCenter2); [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("fixedAttachmentWithItem:attachedToItem:attachmentAnchor:")] UIAttachmentBehavior CreateFixedAttachment (IUIDynamicItem item1, IUIDynamicItem item2, CGPoint attachmentAnchor); [Static] - [iOS (9,0)] + [iOS (9, 0)] [Export ("pinAttachmentWithItem:attachedToItem:attachmentAnchor:")] UIAttachmentBehavior CreatePinAttachment (IUIDynamicItem item1, IUIDynamicItem item2, CGPoint attachmentAnchor); [Export ("attachmentRange")] - [iOS (9,0)] + [iOS (9, 0)] UIFloatRange AttachmentRange { get; set; } [Export ("frictionTorque")] - [iOS (9,0)] + [iOS (9, 0)] nfloat FrictionTorque { get; set; } } - [iOS (10,0), TV (10,0), NoWatch] + [iOS (10, 0), TV (10, 0), NoWatch] [Protocol] interface UIContentSizeCategoryAdjusting { [Abstract] - [iOS (10,0), TV (10,0)] // Repeated because of generator bug + [iOS (10, 0), TV (10, 0)] // Repeated because of generator bug [Export ("adjustsFontForContentSizeCategory")] bool AdjustsFontForContentSizeCategory { get; set; } } @@ -2868,17 +2880,17 @@ namespace UIKit { NSString WeakNewValue { get; } } - [iOS (7,0)] + [iOS (7, 0)] [Static] [NoWatch] public enum UIContentSizeCategory { - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Field ("UIContentSizeCategoryUnspecified")] Unspecified, [Field ("UIContentSizeCategoryExtraSmall")] ExtraSmall, - + [Field ("UIContentSizeCategorySmall")] Small, @@ -2890,37 +2902,37 @@ namespace UIKit { [Field ("UIContentSizeCategoryExtraLarge")] ExtraLarge, - + [Field ("UIContentSizeCategoryExtraExtraLarge")] ExtraExtraLarge, - + [Field ("UIContentSizeCategoryExtraExtraExtraLarge")] ExtraExtraExtraLarge, [Field ("UIContentSizeCategoryAccessibilityMedium")] AccessibilityMedium, - + [Field ("UIContentSizeCategoryAccessibilityLarge")] AccessibilityLarge, - + [Field ("UIContentSizeCategoryAccessibilityExtraLarge")] AccessibilityExtraLarge, - + [Field ("UIContentSizeCategoryAccessibilityExtraExtraLarge")] AccessibilityExtraExtraLarge, - + [Field ("UIContentSizeCategoryAccessibilityExtraExtraExtraLarge")] AccessibilityExtraExtraExtraLarge } - [iOS (16,0), MacCatalyst (16,0), TV (16,0), NoWatch] + [iOS (16, 0), MacCatalyst (16, 0), TV (16, 0), NoWatch] [Native] public enum UIAlertControllerSeverity : long { Default = 0, Critical, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UICalendarViewDecorationSize : long { Small = 0, @@ -2928,7 +2940,7 @@ namespace UIKit { Large = 2, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UICollectionViewSelfSizingInvalidation : long { Disabled, @@ -2936,7 +2948,7 @@ namespace UIKit { EnabledIncludingConstraints, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIContextMenuConfigurationElementOrder : long { Automatic = 0, @@ -2944,7 +2956,7 @@ namespace UIKit { Fixed, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIEditMenuArrowDirection : long { Automatic = 0, @@ -2954,7 +2966,7 @@ namespace UIKit { Right = 4, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIFindSessionSearchResultDisplayStyle : long { CurrentAndTotal, @@ -2962,7 +2974,7 @@ namespace UIKit { None, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIMenuElementSize : long { Small = 0, @@ -2970,7 +2982,7 @@ namespace UIKit { Large, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UINavigationBarNSToolbarSection : long { None, @@ -2979,7 +2991,7 @@ namespace UIKit { Content, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UINavigationItemSearchBarPlacement : long { Automatic, @@ -2987,7 +2999,7 @@ namespace UIKit { Stacked, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UINavigationItemStyle : long { Navigator, @@ -2995,7 +3007,7 @@ namespace UIKit { Editor, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UINSToolbarItemPresentationSize : long { Unspecified = -1, @@ -3004,7 +3016,7 @@ namespace UIKit { Large = 3, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIPageControlDirection : long { Natural = 0, @@ -3014,7 +3026,7 @@ namespace UIKit { BottomToTop = 4, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIPasteControlDisplayMode : ulong { IconAndLabel, @@ -3022,7 +3034,7 @@ namespace UIKit { LabelOnly, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UIScreenReferenceDisplayModeStatus : long { NotSupported, @@ -3031,7 +3043,7 @@ namespace UIKit { Enabled, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UITableViewSelfSizingInvalidation : long { Disabled, @@ -3039,7 +3051,7 @@ namespace UIKit { EnabledIncludingConstraints, } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UITextSearchFoundTextStyle : long { Normal, @@ -3047,7 +3059,7 @@ namespace UIKit { Highlighted, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum UITextSearchMatchMethod : long { Contains, @@ -3058,7 +3070,7 @@ namespace UIKit { delegate UIViewController UIContextMenuContentPreviewProvider (); delegate UIMenu UIContextMenuActionProvider (UIMenuElement [] suggestedActions); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] interface UIContextMenuConfiguration { @@ -3069,22 +3081,22 @@ namespace UIKit { [Export ("configurationWithIdentifier:previewProvider:actionProvider:")] UIContextMenuConfiguration Create ([NullAllowed] INSCopying identifier, [NullAllowed] UIContextMenuContentPreviewProvider previewProvider, [NullAllowed] UIContextMenuActionProvider actionProvider); - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("secondaryItemIdentifiers", ArgumentSemantic.Copy)] NSSet SecondaryItemIdentifiers { get; set; } - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("badgeCount")] nint BadgeCount { get; set; } - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredMenuElementOrder", ArgumentSemantic.Assign)] UIContextMenuConfigurationElementOrder PreferredMenuElementOrder { get; set; } } interface IUIContextMenuInteractionDelegate { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] #if NET [Protocol, Model] #else @@ -3119,18 +3131,18 @@ namespace UIKit { [Export ("contextMenuInteraction:willEndForConfiguration:animator:")] void WillEnd (UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [iOS (16,0)] + [iOS (16, 0)] [Export ("contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:")] [return: NullAllowed] UITargetedPreview GetHighlightPreview (UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, INSCopying identifier); - [iOS (16,0)] + [iOS (16, 0)] [Export ("contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:")] [return: NullAllowed] UITargetedPreview GetDismissalPreview (UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, INSCopying identifier); } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIContextMenuInteraction : UIInteraction { @@ -3141,7 +3153,7 @@ namespace UIKit { [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)] NSObject WeakDelegate { get; } - [iOS (14,0)] + [iOS (14, 0)] [Export ("menuAppearance")] UIContextMenuInteractionAppearance MenuAppearance { get; } @@ -3152,18 +3164,18 @@ namespace UIKit { [Export ("locationInView:")] CGPoint GetLocation ([NullAllowed] UIView inView); - [iOS (14,0)] + [iOS (14, 0)] [Export ("updateVisibleMenuWithBlock:")] void UpdateVisibleMenu (Func handler); - [iOS (14,0)] + [iOS (14, 0)] [Export ("dismissMenu")] void DismissMenu (); } interface IUIContextMenuInteractionCommitAnimating { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Protocol] interface UIContextMenuInteractionCommitAnimating : UIContextMenuInteractionAnimating { [Abstract] @@ -3171,13 +3183,13 @@ namespace UIKit { UIContextMenuInteractionCommitStyle PreferredCommitStyle { get; set; } } - interface IUICoordinateSpace {} - + interface IUICoordinateSpace { } + [Protocol] [Model] [BaseType (typeof (NSObject))] [Abstract] - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] interface UICoordinateSpace { [Abstract] [Export ("bounds")] @@ -3208,13 +3220,13 @@ namespace UIKit { [Export ("applicationDidFinishLaunching:")] void FinishedLaunching (UIApplication application); - + [Export ("application:didFinishLaunchingWithOptions:")] bool FinishedLaunching (UIApplication application, NSDictionary launchOptions); [Export ("applicationDidBecomeActive:")] void OnActivated (UIApplication application); - + [Export ("applicationWillResignActive:")] void OnResignActivation (UIApplication application); @@ -3222,13 +3234,13 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 9, 0, message: "Override 'OpenUrl (UIApplication, NSUrl, NSDictionary)'. The later will be called if both are implemented.")] [Export ("application:handleOpenURL:")] bool HandleOpenURL (UIApplication application, NSUrl url); - + [Export ("applicationDidReceiveMemoryWarning:")] void ReceiveMemoryWarning (UIApplication application); - + [Export ("applicationWillTerminate:")] void WillTerminate (UIApplication application); - + [Export ("applicationSignificantTimeChange:")] void ApplicationSignificantTimeChange (UIApplication application); @@ -3270,13 +3282,13 @@ namespace UIKit { [Export ("applicationDidEnterBackground:")] void DidEnterBackground (UIApplication application); - + [Export ("applicationWillEnterForeground:")] void WillEnterForeground (UIApplication application); - + [Export ("applicationProtectedDataWillBecomeUnavailable:")] void ProtectedDataWillBecomeUnavailable (UIApplication application); - + [Export ("applicationProtectedDataDidBecomeAvailable:")] void ProtectedDataDidBecomeAvailable (UIApplication application); @@ -3285,14 +3297,14 @@ namespace UIKit { [Export ("application:openURL:sourceApplication:annotation:")] bool OpenUrl (UIApplication application, NSUrl url, string sourceApplication, NSObject annotation); - [iOS (9,0)] + [iOS (9, 0)] [Export ("application:openURL:options:")] bool OpenUrl (UIApplication app, NSUrl url, NSDictionary options); - [iOS (9,0)] + [iOS (9, 0)] [Wrap ("OpenUrl(app, url, options.GetDictionary ())")] bool OpenUrl (UIApplication app, NSUrl url, UIApplicationOpenUrlOptions options); - + [Export ("window", ArgumentSemantic.Retain), NullAllowed] UIWindow Window { get; set; } @@ -3314,8 +3326,8 @@ namespace UIKit { [Export ("application:shouldSaveApplicationState:")] bool ShouldSaveApplicationState (UIApplication application, NSCoder coder); - [iOS (13,2)] - [TV (13,2)] + [iOS (13, 2)] + [TV (13, 2)] [Export ("application:shouldSaveSecureApplicationState:")] bool ShouldSaveSecureApplicationState (UIApplication application, NSCoder coder); @@ -3324,8 +3336,8 @@ namespace UIKit { [Export ("application:shouldRestoreApplicationState:")] bool ShouldRestoreApplicationState (UIApplication application, NSCoder coder); - [iOS (13,2)] - [TV (13,2)] + [iOS (13, 2)] + [TV (13, 2)] [Export ("application:shouldRestoreSecureApplicationState:")] bool ShouldRestoreSecureApplicationState (UIApplication application, NSCoder coder); @@ -3333,7 +3345,7 @@ namespace UIKit { void WillEncodeRestorableState (UIApplication application, NSCoder coder); [Export ("application:didDecodeRestorableStateWithCoder:")] - void DidDecodeRestorableState (UIApplication application, NSCoder coder); + void DidDecodeRestorableState (UIApplication application, NSCoder coder); // special case from UIAccessibilityAction. we added it (completly) on UIResponser but magic tap is also: // "If you’d like the Magic Tap gesture to perform the same action from anywhere within your app, it is more @@ -3345,16 +3357,16 @@ namespace UIKit { bool AccessibilityPerformMagicTap (); [TV (10, 0)] - [iOS (7,0)] + [iOS (7, 0)] [Export ("application:didReceiveRemoteNotification:fetchCompletionHandler:")] void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, Action completionHandler); - [iOS (7,0)] + [iOS (7, 0)] [Export ("application:handleEventsForBackgroundURLSession:completionHandler:")] void HandleEventsForBackgroundUrl (UIApplication application, string sessionIdentifier, Action completionHandler); - [TV (11,0)] - [iOS (7,0)] + [TV (11, 0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use a 'BGAppRefreshTask' from 'BackgroundTasks' framework.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Use a 'BGAppRefreshTask' from 'BackgroundTasks' framework.")] [Export ("application:performFetchWithCompletionHandler:")] @@ -3363,11 +3375,11 @@ namespace UIKit { // // 8.0 // - [iOS (8,0)] + [iOS (8, 0)] [Export ("application:continueUserActivity:restorationHandler:")] bool ContinueUserActivity (UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler); - [iOS (8,0)] + [iOS (8, 0)] [Export ("application:didFailToContinueUserActivityWithType:error:")] #if NET void DidFailToContinueUserActivity (UIApplication application, string userActivityType, NSError error); @@ -3376,85 +3388,85 @@ namespace UIKit { #endif [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenter.RequestAuthorization' instead.")] [Export ("application:didRegisterUserNotificationSettings:")] void DidRegisterUserNotificationSettings (UIApplication application, UIUserNotificationSettings notificationSettings); [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")] [Export ("application:handleActionWithIdentifier:forLocalNotification:completionHandler:")] void HandleAction (UIApplication application, string actionIdentifier, UILocalNotification localNotification, Action completionHandler); [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")] [Export ("application:handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:")] void HandleAction (UIApplication application, string actionIdentifier, UILocalNotification localNotification, NSDictionary responseInfo, Action completionHandler); - + [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")] [Export ("application:handleActionWithIdentifier:forRemoteNotification:completionHandler:")] void HandleAction (UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, Action completionHandler); [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")] [Export ("application:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:")] void HandleAction (UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, NSDictionary responseInfo, Action completionHandler); [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Export ("application:performActionForShortcutItem:completionHandler:")] void PerformActionForShortcutItem (UIApplication application, UIApplicationShortcutItem shortcutItem, UIOperationHandler completionHandler); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("application:willContinueUserActivityWithType:")] bool WillContinueUserActivity (UIApplication application, string userActivityType); - [iOS (8,0)] + [iOS (8, 0)] [Export ("application:didUpdateUserActivity:")] void UserActivityUpdated (UIApplication application, NSUserActivity userActivity); - [iOS (8,0)] + [iOS (8, 0)] [Export ("application:shouldAllowExtensionPointIdentifier:")] bool ShouldAllowExtensionPointIdentifier (UIApplication application, NSString extensionPointIdentifier); - [iOS (8,2)] + [iOS (8, 2)] [Export ("application:handleWatchKitExtensionRequest:reply:")] void HandleWatchKitExtensionRequest (UIApplication application, NSDictionary userInfo, Action reply); - [iOS (9,0)] + [iOS (9, 0)] [Export ("applicationShouldRequestHealthAuthorization:")] void ShouldRequestHealthAuthorization (UIApplication application); - [iOS (10,0), TV (10,0), NoWatch] + [iOS (10, 0), TV (10, 0), NoWatch] [Export ("application:userDidAcceptCloudKitShareWithMetadata:")] void UserDidAcceptCloudKitShare (UIApplication application, CKShareMetadata cloudKitShareMetadata); [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'GetHandlerForIntent' instead.")] [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'GetHandlerForIntent' instead.")] [NoTV] - [iOS (11,0), Watch (4,0)] + [iOS (11, 0), Watch (4, 0)] [Export ("application:handleIntent:completionHandler:")] void HandleIntent (UIApplication application, INIntent intent, Action completionHandler); - [iOS (14,0), TV (14,0), Watch (7,0)] + [iOS (14, 0), TV (14, 0), Watch (7, 0)] [Export ("application:handlerForIntent:")] [return: NullAllowed] NSObject GetHandlerForIntent (UIApplication application, INIntent intent); - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Export ("application:configurationForConnectingSceneSession:options:")] UISceneConfiguration GetConfiguration (UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options); - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Export ("application:didDiscardSceneSessions:")] void DidDiscardSceneSessions (UIApplication application, NSSet sceneSessions); - [iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), Watch (8, 0), MacCatalyst (15, 0)] [Export ("applicationShouldAutomaticallyLocalizeKeyCommands:")] bool ShouldAutomaticallyLocalizeKeyCommands (UIApplication application); } @@ -3462,40 +3474,45 @@ namespace UIKit { [NoWatch] [Static] interface UIExtensionPointIdentifier { - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIApplicationKeyboardExtensionPointIdentifier")] NSString Keyboard { get; } } - + [NoWatch] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UIBarItem : NSCoding, UIAppearance, UIAccessibility, UIAccessibilityIdentification { - [Export ("enabled")][Abstract] + [Export ("enabled")] + [Abstract] bool Enabled { [Bind ("isEnabled")] get; set; } [NullAllowed] - [Export ("title", ArgumentSemantic.Copy)][Abstract] - string Title { get;set; } + [Export ("title", ArgumentSemantic.Copy)] + [Abstract] + string Title { get; set; } [NullAllowed] - [Export ("image", ArgumentSemantic.Retain)][Abstract] + [Export ("image", ArgumentSemantic.Retain)] + [Abstract] UIImage Image { get; set; } - [Export ("imageInsets")][Abstract] + [Export ("imageInsets")] + [Abstract] UIEdgeInsets ImageInsets { get; set; } - [Export ("tag")][Abstract] + [Export ("tag")] + [Abstract] nint Tag { get; set; } [NoTV] [NullAllowed] // by default this property is null [Export ("landscapeImagePhone", ArgumentSemantic.Retain)] - UIImage LandscapeImagePhone { get; set; } + UIImage LandscapeImagePhone { get; set; } [NoTV] [Export ("landscapeImagePhoneInsets")] - UIEdgeInsets LandscapeImagePhoneInsets { get; set; } + UIEdgeInsets LandscapeImagePhoneInsets { get; set; } [Export ("setTitleTextAttributes:forState:"), Internal] [Appearance] @@ -3505,15 +3522,15 @@ namespace UIKit { [Appearance] NSDictionary _GetTitleTextAttributes (UIControlState state); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [NullAllowed, Export ("largeContentSizeImage", ArgumentSemantic.Strong)] UIImage LargeContentSizeImage { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("largeContentSizeImageInsets", ArgumentSemantic.Assign)] UIEdgeInsets LargeContentSizeImageInsets { get; set; } } - + [NoWatch] [BaseType (typeof (UIBarItem))] [DesignatedDefaultCtor] @@ -3526,7 +3543,7 @@ namespace UIKit { [PostGet ("Image")] [PostGet ("Target")] NativeHandle Constructor ([NullAllowed] UIImage image, UIBarButtonItemStyle style, [NullAllowed] NSObject target, [NullAllowed] Selector action); - + [Export ("initWithTitle:style:target:action:")] [PostGet ("Target")] NativeHandle Constructor ([NullAllowed] string title, UIBarButtonItemStyle style, [NullAllowed] NSObject target, [NullAllowed] Selector action); @@ -3539,44 +3556,44 @@ namespace UIKit { [PostGet ("CustomView")] NativeHandle Constructor (UIView customView); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithBarButtonSystemItem:primaryAction:")] NativeHandle Constructor (UIBarButtonSystemItem systemItem, [NullAllowed] UIAction primaryAction); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithPrimaryAction:")] NativeHandle Constructor ([NullAllowed] UIAction primaryAction); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithBarButtonSystemItem:menu:")] NativeHandle Constructor (UIBarButtonSystemItem systemItem, [NullAllowed] UIMenu menu); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithTitle:menu:")] NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] UIMenu menu); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithImage:menu:")] NativeHandle Constructor ([NullAllowed] UIImage image, [NullAllowed] UIMenu menu); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithPrimaryAction:menu:")] NativeHandle Constructor ([NullAllowed] UIAction primaryAction, [NullAllowed] UIMenu menu); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithBarButtonSystemItem:primaryAction:menu:")] NativeHandle Constructor (UIBarButtonSystemItem systemItem, [NullAllowed] UIAction primaryAction, [NullAllowed] UIMenu menu); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithTitle:image:target:action:menu:")] NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] UIImage image, [NullAllowed] NSObject target, [NullAllowed] Selector action, [NullAllowed] UIMenu menu); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("fixedSpaceItemOfWidth:")] UIBarButtonItem GetFixedSpaceItem (nfloat width); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("flexibleSpaceItem")] UIBarButtonItem FlexibleSpaceItem { get; } @@ -3586,59 +3603,65 @@ namespace UIKit { [Export ("width")] nfloat Width { get; set; } - + [NullAllowed] // by default this property is null [Export ("possibleTitles", ArgumentSemantic.Copy)] NSSet PossibleTitles { get; set; } - + [Export ("customView", ArgumentSemantic.Retain), NullAllowed] UIView CustomView { get; set; } - - [Export ("action")][NullAllowed] + + [Export ("action")] + [NullAllowed] Selector Action { get; set; } [NullAllowed] // by default this property is null [Export ("target", ArgumentSemantic.Assign)] NSObject Target { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [NullAllowed] [Export ("primaryAction", ArgumentSemantic.Copy)] UIAction PrimaryAction { get; set; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [NullAllowed] [Export ("menu", ArgumentSemantic.Copy)] UIMenu Menu { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("changesSelectionAsPrimaryAction")] bool ChangesSelectionAsPrimaryAction { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("selected")] bool Selected { [Bind ("isSelected")] get; set; } - [Export ("enabled")][Override] + [Export ("enabled")] + [Override] bool Enabled { [Bind ("isEnabled")] get; set; } [NullAllowed] - [Export ("title", ArgumentSemantic.Copy)][Override] - string Title { get;set; } + [Export ("title", ArgumentSemantic.Copy)] + [Override] + string Title { get; set; } [NullAllowed] - [Export ("image", ArgumentSemantic.Retain)][Override] + [Export ("image", ArgumentSemantic.Retain)] + [Override] UIImage Image { get; set; } - [Export ("imageInsets")][Override] + [Export ("imageInsets")] + [Override] UIEdgeInsets ImageInsets { get; set; } - [Export ("tag")][Override] + [Export ("tag")] + [Override] nint Tag { get; set; } [Export ("tintColor", ArgumentSemantic.Retain), NullAllowed] [Appearance] - UIColor TintColor { get; set; } + UIColor TintColor { get; set; } [Export ("initWithImage:landscapeImagePhone:style:target:action:"), PostGet ("Image")] #if !TVOS @@ -3703,97 +3726,96 @@ namespace UIKit { [Appearance] [Export ("setBackgroundImage:forState:style:barMetrics:")] - void SetBackgroundImage ([NullAllowed] UIImage backgroundImage, UIControlState state, UIBarButtonItemStyle style, UIBarMetrics barMetrics); + void SetBackgroundImage ([NullAllowed] UIImage backgroundImage, UIControlState state, UIBarButtonItemStyle style, UIBarMetrics barMetrics); [Appearance] [Export ("backgroundImageForState:style:barMetrics:")] UIImage GetBackgroundImage (UIControlState state, UIBarButtonItemStyle style, UIBarMetrics barMetrics); - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("buttonGroup", ArgumentSemantic.Weak)] UIBarButtonItemGroup ButtonGroup { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredMenuElementOrder", ArgumentSemantic.Assign)] UIContextMenuConfigurationElementOrder PreferredMenuElementOrder { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("hidden")] bool Hidden { [Bind ("isHidden")] get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("menuRepresentation", ArgumentSemantic.Copy)] [NullAllowed] UIMenuElement MenuRepresentation { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("creatingFixedGroup")] UIBarButtonItemGroup CreatingFixedGroup { get; } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("creatingMovableGroupWithCustomizationIdentifier:")] UIBarButtonItemGroup CreatingMovableGroup (string customizationIdentifier); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("creatingOptionalGroupWithCustomizationIdentifier:inDefaultCustomization:")] UIBarButtonItemGroup CreatingOptionalGroup (string customizationIdentifier, bool inDefaultCustomization); } - [iOS (9,0), NoWatch] - [BaseType (typeof(NSObject))] - interface UIBarButtonItemGroup : NSCoding - { + [iOS (9, 0), NoWatch] + [BaseType (typeof (NSObject))] + interface UIBarButtonItemGroup : NSCoding { [DesignatedInitializer] [Export ("initWithBarButtonItems:representativeItem:")] - NativeHandle Constructor (UIBarButtonItem[] barButtonItems, [NullAllowed] UIBarButtonItem representativeItem); - + NativeHandle Constructor (UIBarButtonItem [] barButtonItems, [NullAllowed] UIBarButtonItem representativeItem); + [Export ("barButtonItems", ArgumentSemantic.Copy)] - UIBarButtonItem[] BarButtonItems { get; set; } - + UIBarButtonItem [] BarButtonItems { get; set; } + [NullAllowed, Export ("representativeItem", ArgumentSemantic.Strong)] UIBarButtonItem RepresentativeItem { get; set; } - + [Export ("displayingRepresentativeItem")] bool DisplayingRepresentativeItem { [Bind ("isDisplayingRepresentativeItem")] get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("alwaysAvailable")] bool AlwaysAvailable { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("hidden")] bool Hidden { [Bind ("isHidden")] get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("menuRepresentation", ArgumentSemantic.Copy)] [NullAllowed] UIMenuElement MenuRepresentation { get; set; } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("optionalGroupWithCustomizationIdentifier:inDefaultCustomization:representativeItem:items:")] - UIBarButtonItemGroup GetOptionalGroup (string customizationIdentifier, bool inDefaultCustomization, [NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem[] items); + UIBarButtonItemGroup GetOptionalGroup (string customizationIdentifier, bool inDefaultCustomization, [NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem [] items); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("movableGroupWithCustomizationIdentifier:representativeItem:items:")] - UIBarButtonItemGroup GetMovableGroup (string customizationIdentifier, [NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem[] items); + UIBarButtonItemGroup GetMovableGroup (string customizationIdentifier, [NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem [] items); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("fixedGroupWithRepresentativeItem:items:")] - UIBarButtonItemGroup GetFixedGroup ([NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem[] items); + UIBarButtonItemGroup GetFixedGroup ([NullAllowed] UIBarButtonItem representativeItem, UIBarButtonItem [] items); } - + [NoWatch] [BaseType (typeof (UIView))] interface UICollectionReusableView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - + [Export ("reuseIdentifier", ArgumentSemantic.Copy)] - NSString ReuseIdentifier { get; } + NSString ReuseIdentifier { get; } [RequiresSuper] [Export ("prepareForReuse")] @@ -3808,7 +3830,7 @@ namespace UIKit { [Export ("didTransitionFromLayout:toLayout:")] void DidTransition (UICollectionViewLayout oldLayout, UICollectionViewLayout newLayout); - [iOS (8,0)] + [iOS (8, 0)] [Export ("preferredLayoutAttributesFittingAttributes:")] UICollectionViewLayoutAttributes PreferredLayoutAttributesFittingAttributes (UICollectionViewLayoutAttributes layoutAttributes); } @@ -3827,17 +3849,17 @@ namespace UIKit { NativeHandle Constructor (CGRect frame, UICollectionViewLayout layout); [Export ("collectionViewLayout", ArgumentSemantic.Retain)] - UICollectionViewLayout CollectionViewLayout { get; set; } + UICollectionViewLayout CollectionViewLayout { get; set; } [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UICollectionViewDelegate Delegate { get; set; } [Export ("dataSource", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDataSource { get; set; } + NSObject WeakDataSource { get; set; } [Wrap ("WeakDataSource")] [Protocolize] @@ -3848,10 +3870,10 @@ namespace UIKit { UIView BackgroundView { get; set; } [Export ("allowsSelection")] - bool AllowsSelection { get; set; } + bool AllowsSelection { get; set; } [Export ("allowsMultipleSelection")] - bool AllowsMultipleSelection { get; set; } + bool AllowsMultipleSelection { get; set; } [Export ("registerClass:forCellWithReuseIdentifier:"), Internal] void RegisterClassForCell (IntPtr /* Class */cellClass, NSString reuseIdentifier); @@ -3871,11 +3893,11 @@ namespace UIKit { [Export ("dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:")] UICollectionReusableView DequeueReusableSupplementaryView (NSString kind, NSString identifier, NSIndexPath indexPath); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("dequeueConfiguredReusableCellWithRegistration:forIndexPath:item:")] UICollectionViewCell DequeueConfiguredReusableCell (UICollectionViewCellRegistration registration, NSIndexPath indexPath, NSObject item); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("dequeueConfiguredReusableSupplementaryViewWithRegistration:forIndexPath:")] UICollectionReusableView DequeueConfiguredReusableSupplementaryView (UICollectionViewSupplementaryRegistration registration, NSIndexPath indexPath); @@ -3951,7 +3973,7 @@ namespace UIKit { [Export ("reloadItemsAtIndexPaths:")] void ReloadItems (NSIndexPath [] indexPaths); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reconfigureItemsAtIndexPaths:")] void ReconfigureItems (NSIndexPath [] indexPaths); @@ -3965,56 +3987,56 @@ namespace UIKit { // // 7.0 // - [iOS (7,0)] + [iOS (7, 0)] [Export ("startInteractiveTransitionToCollectionViewLayout:completion:")] - [Async (ResultTypeName="UICollectionViewTransitionResult")] + [Async (ResultTypeName = "UICollectionViewTransitionResult")] UICollectionViewTransitionLayout StartInteractiveTransition (UICollectionViewLayout newCollectionViewLayout, - [NullAllowed] UICollectionViewLayoutInteractiveTransitionCompletion completion); + [NullAllowed] UICollectionViewLayoutInteractiveTransitionCompletion completion); - [iOS (7,0)] + [iOS (7, 0)] [Export ("setCollectionViewLayout:animated:completion:")] [Async] void SetCollectionViewLayout (UICollectionViewLayout layout, bool animated, [NullAllowed] UICompletionHandler completion); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("finishInteractiveTransition")] void FinishInteractiveTransition (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("cancelInteractiveTransition")] void CancelInteractiveTransition (); - [iOS (9,0)] + [iOS (9, 0)] [Export ("beginInteractiveMovementForItemAtIndexPath:")] bool BeginInteractiveMovementForItem (NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("updateInteractiveMovementTargetPosition:")] void UpdateInteractiveMovement (CGPoint targetPosition); - [iOS (9,0)] + [iOS (9, 0)] [Export ("endInteractiveMovement")] void EndInteractiveMovement (); - [iOS (9,0)] + [iOS (9, 0)] [Export ("cancelInteractiveMovement")] void CancelInteractiveMovement (); - [iOS (9,0)] - [return : NullAllowed] + [iOS (9, 0)] + [return: NullAllowed] [Export ("supplementaryViewForElementKind:atIndexPath:")] UICollectionReusableView GetSupplementaryView (NSString elementKind, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("visibleSupplementaryViewsOfKind:")] - UICollectionReusableView[] GetVisibleSupplementaryViews (NSString elementKind); + UICollectionReusableView [] GetVisibleSupplementaryViews (NSString elementKind); - [iOS (9,0)] + [iOS (9, 0)] [Export ("indexPathsForVisibleSupplementaryElementsOfKind:")] - NSIndexPath[] GetIndexPathsForVisibleSupplementaryElements (NSString elementKind); + NSIndexPath [] GetIndexPathsForVisibleSupplementaryElements (NSString elementKind); - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("remembersLastFocusedIndexPath")] bool RemembersLastFocusedIndexPath { get; set; } @@ -4022,70 +4044,70 @@ namespace UIKit { [Export ("selectionFollowsFocus")] bool SelectionFollowsFocus { get; set; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsFocus")] bool AllowsFocus { get; set; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsFocusDuringEditing")] bool AllowsFocusDuringEditing { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("prefetchDataSource", ArgumentSemantic.Weak)] IUICollectionViewDataSourcePrefetching PrefetchDataSource { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("prefetchingEnabled")] bool PrefetchingEnabled { [Bind ("isPrefetchingEnabled")] get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("dragDelegate", ArgumentSemantic.Weak)] IUICollectionViewDragDelegate DragDelegate { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("dropDelegate", ArgumentSemantic.Weak)] IUICollectionViewDropDelegate DropDelegate { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("dragInteractionEnabled")] bool DragInteractionEnabled { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("contextMenuInteraction")] UIContextMenuInteraction ContextMenuInteraction { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("reorderingCadence", ArgumentSemantic.Assign)] UICollectionViewReorderingCadence ReorderingCadence { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("hasUncommittedUpdates")] bool HasUncommittedUpdates { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("hasActiveDrag")] bool HasActiveDrag { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("hasActiveDrop")] bool HasActiveDrop { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("editing")] bool Editing { [Bind ("isEditing")] get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("allowsSelectionDuringEditing")] bool AllowsSelectionDuringEditing { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("allowsMultipleSelectionDuringEditing")] bool AllowsMultipleSelectionDuringEditing { get; set; } @@ -4094,20 +4116,20 @@ namespace UIKit { UICollectionViewSelfSizingInvalidation SelfSizingInvalidation { get; set; } } - interface IUICollectionViewDataSourcePrefetching {} - + interface IUICollectionViewDataSourcePrefetching { } + [Protocol] [iOS (10, 0), NoWatch] interface UICollectionViewDataSourcePrefetching { - + [Abstract] [Export ("collectionView:prefetchItemsAtIndexPaths:")] - void PrefetchItems (UICollectionView collectionView, NSIndexPath[] indexPaths); - + void PrefetchItems (UICollectionView collectionView, NSIndexPath [] indexPaths); + [Export ("collectionView:cancelPrefetchingForItemsAtIndexPaths:")] - void CancelPrefetching (UICollectionView collectionView, NSIndexPath[] indexPaths); + void CancelPrefetching (UICollectionView collectionView, NSIndexPath [] indexPaths); } - + // // Combined version of UICollectionViewDataSource, UICollectionViewDelegate // @@ -4116,9 +4138,9 @@ namespace UIKit { [BaseType (typeof (NSObject))] [Protocol (IsInformal = true)] interface UICollectionViewSource : UICollectionViewDataSource, UICollectionViewDelegate { - + } - + [NoWatch] [BaseType (typeof (NSObject))] [Model] @@ -4138,20 +4160,20 @@ namespace UIKit { [Export ("collectionView:viewForSupplementaryElementOfKind:atIndexPath:")] UICollectionReusableView GetViewForSupplementaryElement (UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:canMoveItemAtIndexPath:")] bool CanMoveItem (UICollectionView collectionView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:moveItemAtIndexPath:toIndexPath:")] void MoveItem (UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath); - [iOS (10,3), TV (10,2)] + [iOS (10, 3), TV (10, 2)] [return: NullAllowed] [Export ("indexTitlesForCollectionView:")] string [] GetIndexTitles (UICollectionView collectionView); - [iOS (10,3), TV (10,2)] + [iOS (10, 3), TV (10, 2)] [return: NullAllowed] [Export ("collectionView:indexPathForIndexTitle:atIndex:")] NSIndexPath GetIndexPath (UICollectionView collectionView, string title, nint atIndex); @@ -4190,11 +4212,11 @@ namespace UIKit { [Export ("collectionView:didDeselectItemAtIndexPath:")] void ItemDeselected (UICollectionView collectionView, NSIndexPath indexPath); - [iOS (8,0)] + [iOS (8, 0)] [Export ("collectionView:willDisplayCell:forItemAtIndexPath:")] void WillDisplayCell (UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath); - [iOS (8,0)] + [iOS (8, 0)] [Export ("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:")] void WillDisplaySupplementaryView (UICollectionView collectionView, UICollectionReusableView view, string elementKind, NSIndexPath indexPath); @@ -4219,127 +4241,127 @@ namespace UIKit { [Export ("collectionView:performAction:forItemAtIndexPath:withSender:")] void PerformAction (UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender); - [iOS (7,0)] + [iOS (7, 0)] [Export ("collectionView:transitionLayoutForOldLayout:newLayout:")] UICollectionViewTransitionLayout TransitionLayout (UICollectionView collectionView, UICollectionViewLayout fromLayout, UICollectionViewLayout toLayout); [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'GetTargetIndexPathForMoveOfItemFromOriginalIndexPath' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'GetTargetIndexPathForMoveOfItemFromOriginalIndexPath' instead.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")] NSIndexPath GetTargetIndexPathForMove (UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath proposedIndexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:targetContentOffsetForProposedContentOffset:")] CGPoint GetTargetContentOffset (UICollectionView collectionView, CGPoint proposedContentOffset); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("collectionView:canEditItemAtIndexPath:")] bool CanEditItem (UICollectionView collectionView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:canFocusItemAtIndexPath:")] bool CanFocusItem (UICollectionView collectionView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:shouldUpdateFocusInContext:")] bool ShouldUpdateFocus (UICollectionView collectionView, UICollectionViewFocusUpdateContext context); - [iOS (9,0)] + [iOS (9, 0)] [Export ("collectionView:didUpdateFocusInContext:withAnimationCoordinator:")] void DidUpdateFocus (UICollectionView collectionView, UICollectionViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator); - [iOS (9,0)] + [iOS (9, 0)] [Export ("indexPathForPreferredFocusedViewInCollectionView:")] [return: NullAllowed] NSIndexPath GetIndexPathForPreferredFocusedView (UICollectionView collectionView); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("collectionView:selectionFollowsFocusForItemAtIndexPath:")] bool GetSelectionFollowsFocusForItem (UICollectionView collectionView, NSIndexPath indexPath); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("collectionView:targetIndexPathForMoveOfItemFromOriginalIndexPath:atCurrentIndexPath:toProposedIndexPath:")] NSIndexPath GetTargetIndexPathForMoveOfItemFromOriginalIndexPath (UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath currentIndexPath, NSIndexPath proposedIndexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("collectionView:shouldSpringLoadItemAtIndexPath:withContext:")] bool ShouldSpringLoadItem (UICollectionView collectionView, NSIndexPath indexPath, IUISpringLoadedInteractionContext context); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:shouldBeginMultipleSelectionInteractionAtIndexPath:")] bool ShouldBeginMultipleSelectionInteraction (UICollectionView collectionView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:didBeginMultipleSelectionInteractionAtIndexPath:")] void DidBeginMultipleSelectionInteraction (UICollectionView collectionView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionViewDidEndMultipleSelectionInteraction:")] void DidEndMultipleSelectionInteraction (UICollectionView collectionView); [Deprecated (PlatformName.iOS, 16, 0)] [Deprecated (PlatformName.MacCatalyst, 16, 0)] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:contextMenuConfigurationForItemAtIndexPath:point:")] [return: NullAllowed] UIContextMenuConfiguration GetContextMenuConfiguration (UICollectionView collectionView, NSIndexPath indexPath, CGPoint point); [Deprecated (PlatformName.iOS, 16, 0)] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:previewForHighlightingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForHighlightingContextMenu (UICollectionView collectionView, UIContextMenuConfiguration configuration); [Deprecated (PlatformName.iOS, 16, 0)] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:previewForDismissingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForDismissingContextMenu (UICollectionView collectionView, UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("collectionView:willPerformPreviewActionForMenuWithConfiguration:animator:")] void WillPerformPreviewAction (UICollectionView collectionView, UIContextMenuConfiguration configuration, IUIContextMenuInteractionCommitAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("collectionView:willDisplayContextMenuWithConfiguration:animator:")] void WillDisplayContextMenu (UICollectionView collectionView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("collectionView:willEndContextMenuInteractionWithConfiguration:animator:")] void WillEndContextMenuInteraction (UICollectionView collectionView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("collectionView:sceneActivationConfigurationForItemAtIndexPath:point:")] [return: NullAllowed] UIWindowSceneActivationConfiguration GetSceneActivationConfigurationForItem (UICollectionView collectionView, NSIndexPath indexPath, CGPoint point); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("collectionView:canPerformPrimaryActionForItemAtIndexPath:")] bool CanPerformPrimaryActionForItem (UICollectionView collectionView, NSIndexPath indexPath); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("collectionView:performPrimaryActionForItemAtIndexPath:")] void PerformPrimaryActionForItem (UICollectionView collectionView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:")] [return: NullAllowed] - UIContextMenuConfiguration GetContextMenuConfiguration (UICollectionView collectionView, NSIndexPath[] indexPaths, CGPoint point); + UIContextMenuConfiguration GetContextMenuConfiguration (UICollectionView collectionView, NSIndexPath [] indexPaths, CGPoint point); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:")] [return: NullAllowed] UITargetedPreview GetContextMenuConfigurationHighlightPreview (UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:")] [return: NullAllowed] UITargetedPreview GetContextMenuConfigurationDismissalPreview (UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void UICollectionViewCellConfigurationUpdateHandler (UICollectionViewCell cell, UICellConfigurationState state); [NoWatch] @@ -4348,57 +4370,57 @@ namespace UIKit { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("configurationState")] UICellConfigurationState ConfigurationState { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("setNeedsUpdateConfiguration")] void SetNeedsUpdateConfiguration (); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("updateConfigurationUsingState:")] void UpdateConfiguration (UICellConfigurationState state); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("configurationUpdateHandler", ArgumentSemantic.Copy)] UICollectionViewCellConfigurationUpdateHandler ConfigurationUpdateHandler { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("contentConfiguration", ArgumentSemantic.Copy)] IUIContentConfiguration ContentConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesContentConfiguration")] bool AutomaticallyUpdatesContentConfiguration { get; set; } [Export ("contentView")] - UIView ContentView { get; } + UIView ContentView { get; } [Export ("selected")] - bool Selected { [Bind ("isSelected")] get; set; } + bool Selected { [Bind ("isSelected")] get; set; } [Export ("highlighted")] - bool Highlighted { [Bind ("isHighlighted")] get; set; } + bool Highlighted { [Bind ("isHighlighted")] get; set; } [NullAllowed] // by default this property is null [Export ("backgroundView", ArgumentSemantic.Retain)] - UIView BackgroundView { get; set; } + UIView BackgroundView { get; set; } [NullAllowed] // by default this property is null [Export ("selectedBackgroundView", ArgumentSemantic.Retain)] - UIView SelectedBackgroundView { get; set; } + UIView SelectedBackgroundView { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("dragStateDidChange:")] void DragStateDidChange (UICollectionViewCellDragState dragState); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("backgroundConfiguration", ArgumentSemantic.Copy)] UIBackgroundConfiguration BackgroundConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesBackgroundConfiguration")] bool AutomaticallyUpdatesBackgroundConfiguration { get; set; } @@ -4416,10 +4438,10 @@ namespace UIKit { NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); [Export ("collectionView", ArgumentSemantic.Retain)] - UICollectionView CollectionView { get; set; } + UICollectionView CollectionView { get; set; } [Export ("clearsSelectionOnViewWillAppear")] - bool ClearsSelectionOnViewWillAppear { get; set; } + bool ClearsSelectionOnViewWillAppear { get; set; } // The PostSnippet is there to ensure that "layout" is alive // note: we can't use [PostGet] since it would not work before iOS7 so the hack must remain... @@ -4427,19 +4449,19 @@ namespace UIKit { [Export ("initWithCollectionViewLayout:")] NativeHandle Constructor (UICollectionViewLayout layout); - [iOS (7,0)] + [iOS (7, 0)] [Export ("collectionViewLayout")] UICollectionViewLayout Layout { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("useLayoutToLayoutNavigationTransitions", ArgumentSemantic.Assign)] bool UseLayoutToLayoutNavigationTransitions { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("installsStandardGestureForInteractiveMovement")] - bool InstallsStandardGestureForInteractiveMovement { get; set; } + bool InstallsStandardGestureForInteractiveMovement { get; set; } } - + [NoWatch] [BaseType (typeof (UICollectionViewDelegate))] [Model] @@ -4468,45 +4490,45 @@ namespace UIKit { [BaseType (typeof (UICollectionViewLayout))] interface UICollectionViewFlowLayout { [Export ("minimumLineSpacing")] - nfloat MinimumLineSpacing { get; set; } + nfloat MinimumLineSpacing { get; set; } [Export ("minimumInteritemSpacing")] - nfloat MinimumInteritemSpacing { get; set; } + nfloat MinimumInteritemSpacing { get; set; } [Export ("itemSize")] - CGSize ItemSize { get; set; } + CGSize ItemSize { get; set; } // Default value of this property is CGSize.Zero, setting to any other value causes each cell to be queried - [iOS (8,0)] + [iOS (8, 0)] [Export ("estimatedItemSize")] CGSize EstimatedItemSize { get; set; } [Export ("scrollDirection")] - UICollectionViewScrollDirection ScrollDirection { get; set; } + UICollectionViewScrollDirection ScrollDirection { get; set; } [Export ("headerReferenceSize")] - CGSize HeaderReferenceSize { get; set; } + CGSize HeaderReferenceSize { get; set; } [Export ("footerReferenceSize")] - CGSize FooterReferenceSize { get; set; } + CGSize FooterReferenceSize { get; set; } [Export ("sectionInset")] - UIEdgeInsets SectionInset { get; set; } + UIEdgeInsets SectionInset { get; set; } [NoWatch] - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("sectionInsetReference", ArgumentSemantic.Assign)] UICollectionViewFlowLayoutSectionInsetReference SectionInsetReference { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("sectionHeadersPinToVisibleBounds")] bool SectionHeadersPinToVisibleBounds { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("sectionFootersPinToVisibleBounds")] bool SectionFootersPinToVisibleBounds { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Field ("UICollectionViewFlowLayoutAutomaticSize")] CGSize AutomaticSize { get; } } @@ -4516,12 +4538,12 @@ namespace UIKit { [DesignatedDefaultCtor] interface UICollectionViewLayout : NSCoding { - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("UICollectionViewLayoutAutomaticDimension")] nfloat AutomaticDimension { get; } [Export ("collectionView")] - UICollectionView CollectionView { get; } + UICollectionView CollectionView { get; } [Export ("invalidateLayout")] void InvalidateLayout (); @@ -4548,7 +4570,7 @@ namespace UIKit { UICollectionViewLayoutAttributes LayoutAttributesForSupplementaryView (NSString kind, NSIndexPath indexPath); [Export ("layoutAttributesForDecorationViewOfKind:atIndexPath:")] - UICollectionViewLayoutAttributes LayoutAttributesForDecorationView (NSString kind, NSIndexPath indexPath); + UICollectionViewLayoutAttributes LayoutAttributesForDecorationView (NSString kind, NSIndexPath indexPath); [Export ("shouldInvalidateLayoutForBoundsChange:")] bool ShouldInvalidateLayoutForBoundsChange (CGRect newBounds); @@ -4563,11 +4585,11 @@ namespace UIKit { [Export ("prepareForAnimatedBoundsChange:")] void PrepareForAnimatedBoundsChange (CGRect oldBounds); - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidationContextForPreferredLayoutAttributes:withOriginalAttributes:")] UICollectionViewLayoutInvalidationContext GetInvalidationContext (UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes); - [iOS (8,0)] + [iOS (8, 0)] [Export ("shouldInvalidateLayoutForPreferredLayoutAttributes:withOriginalAttributes:")] bool ShouldInvalidateLayout (UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes); @@ -4605,103 +4627,103 @@ namespace UIKit { [Static, Export ("layoutAttributesClass")] Class LayoutAttributesClass { get; } - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("invalidationContextClass")] Class InvalidationContextClass (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("invalidationContextForBoundsChange:")] UICollectionViewLayoutInvalidationContext GetInvalidationContextForBoundsChange (CGRect newBounds); - [iOS (7,0)] + [iOS (7, 0)] [Export ("indexPathsToDeleteForSupplementaryViewOfKind:")] NSIndexPath [] GetIndexPathsToDeleteForSupplementaryView (NSString kind); - [iOS (7,0)] + [iOS (7, 0)] [Export ("indexPathsToDeleteForDecorationViewOfKind:")] NSIndexPath [] GetIndexPathsToDeleteForDecorationViewOfKind (NSString kind); - [iOS (7,0)] + [iOS (7, 0)] [Export ("indexPathsToInsertForSupplementaryViewOfKind:")] NSIndexPath [] GetIndexPathsToInsertForSupplementaryView (NSString kind); - [iOS (7,0)] + [iOS (7, 0)] [Export ("indexPathsToInsertForDecorationViewOfKind:")] NSIndexPath [] GetIndexPathsToInsertForDecorationView (NSString kind); - [iOS (7,0)] + [iOS (7, 0)] [Export ("invalidateLayoutWithContext:")] void InvalidateLayout (UICollectionViewLayoutInvalidationContext context); - [iOS (7,0)] + [iOS (7, 0)] [Export ("finalizeLayoutTransition")] void FinalizeLayoutTransition (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("prepareForTransitionFromLayout:")] void PrepareForTransitionFromLayout (UICollectionViewLayout oldLayout); - [iOS (7,0)] + [iOS (7, 0)] [Export ("prepareForTransitionToLayout:")] void PrepareForTransitionToLayout (UICollectionViewLayout newLayout); - [iOS (7,0)] + [iOS (7, 0)] [Export ("targetContentOffsetForProposedContentOffset:")] CGPoint TargetContentOffsetForProposedContentOffset (CGPoint proposedContentOffset); - [iOS (9,0)] + [iOS (9, 0)] [Export ("targetIndexPathForInteractivelyMovingItem:withPosition:")] NSIndexPath GetTargetIndexPathForInteractivelyMovingItem (NSIndexPath previousIndexPath, CGPoint position); - [iOS (9,0)] + [iOS (9, 0)] [Export ("layoutAttributesForInteractivelyMovingItemAtIndexPath:withTargetPosition:")] UICollectionViewLayoutAttributes GetLayoutAttributesForInteractivelyMovingItem (NSIndexPath indexPath, CGPoint targetPosition); - [iOS (9,0)] + [iOS (9, 0)] [Export ("invalidationContextForInteractivelyMovingItems:withTargetPosition:previousIndexPaths:previousPosition:")] - UICollectionViewLayoutInvalidationContext GetInvalidationContextForInteractivelyMovingItems (NSIndexPath[] targetIndexPaths, CGPoint targetPosition, NSIndexPath[] previousIndexPaths, CGPoint previousPosition); + UICollectionViewLayoutInvalidationContext GetInvalidationContextForInteractivelyMovingItems (NSIndexPath [] targetIndexPaths, CGPoint targetPosition, NSIndexPath [] previousIndexPaths, CGPoint previousPosition); - [iOS (9,0)] + [iOS (9, 0)] [Export ("invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPaths:previousIndexPaths:movementCancelled:")] - UICollectionViewLayoutInvalidationContext GetInvalidationContextForEndingInteractiveMovementOfItems (NSIndexPath[] finalIndexPaths, NSIndexPath[] previousIndexPaths, bool movementCancelled); - + UICollectionViewLayoutInvalidationContext GetInvalidationContextForEndingInteractiveMovementOfItems (NSIndexPath [] finalIndexPaths, NSIndexPath [] previousIndexPaths, bool movementCancelled); + [NoWatch] - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("developmentLayoutDirection")] UIUserInterfaceLayoutDirection DevelopmentLayoutDirection { get; } [NoWatch] - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("flipsHorizontallyInOppositeLayoutDirection")] bool FlipsHorizontallyInOppositeLayoutDirection { get; } } - + [NoWatch] [BaseType (typeof (NSObject))] interface UICollectionViewLayoutAttributes : UIDynamicItem, NSCopying { [Export ("frame")] - CGRect Frame { get; set; } + CGRect Frame { get; set; } [Export ("center")] - new CGPoint Center { get; set; } + new CGPoint Center { get; set; } [Export ("size")] - CGSize Size { get; set; } + CGSize Size { get; set; } [Export ("transform3D")] - CATransform3D Transform3D { get; set; } + CATransform3D Transform3D { get; set; } [Export ("alpha")] - nfloat Alpha { get; set; } + nfloat Alpha { get; set; } [Export ("zIndex")] - nint ZIndex { get; set; } + nint ZIndex { get; set; } [Export ("hidden")] - bool Hidden { [Bind ("isHidden")] get; set; } + bool Hidden { [Bind ("isHidden")] get; set; } [Export ("indexPath", ArgumentSemantic.Retain)] - NSIndexPath IndexPath { get; set; } + NSIndexPath IndexPath { get; set; } [Export ("representedElementCategory")] UICollectionElementCategory RepresentedElementCategory { get; } @@ -4721,17 +4743,17 @@ namespace UIKit { [Export ("layoutAttributesForSupplementaryViewOfKind:withIndexPath:")] UICollectionViewLayoutAttributes CreateForSupplementaryView (NSString kind, NSIndexPath indexPath); - [iOS (7,0)] + [iOS (7, 0)] [Export ("bounds")] new CGRect Bounds { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("transform")] new CGAffineTransform Transform { get; set; } - + } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (NSObject))] interface UICollectionViewLayoutInvalidationContext { [Export ("invalidateDataSourceCounts")] @@ -4740,70 +4762,70 @@ namespace UIKit { [Export ("invalidateEverything")] bool InvalidateEverything { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidatedItemIndexPaths")] NSIndexPath [] InvalidatedItemIndexPaths { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidatedSupplementaryIndexPaths")] NSDictionary InvalidatedSupplementaryIndexPaths { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidatedDecorationIndexPaths")] NSDictionary InvalidatedDecorationIndexPaths { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("contentOffsetAdjustment")] CGPoint ContentOffsetAdjustment { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("contentSizeAdjustment")] CGSize ContentSizeAdjustment { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidateItemsAtIndexPaths:")] void InvalidateItems (NSIndexPath [] indexPaths); - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidateSupplementaryElementsOfKind:atIndexPaths:")] void InvalidateSupplementaryElements (NSString elementKind, NSIndexPath [] indexPaths); - [iOS (8,0)] + [iOS (8, 0)] [Export ("invalidateDecorationElementsOfKind:atIndexPaths:")] void InvalidateDecorationElements (NSString elementKind, NSIndexPath [] indexPaths); - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("previousIndexPathsForInteractivelyMovingItems")] - NSIndexPath[] PreviousIndexPathsForInteractivelyMovingItems { get; } + NSIndexPath [] PreviousIndexPathsForInteractivelyMovingItems { get; } - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed, Export ("targetIndexPathsForInteractivelyMovingItems")] - NSIndexPath[] TargetIndexPathsForInteractivelyMovingItems { get; } + NSIndexPath [] TargetIndexPathsForInteractivelyMovingItems { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("interactiveMovementTarget")] CGPoint InteractiveMovementTarget { get; } } - - [iOS (7,0), NoWatch] + + [iOS (7, 0), NoWatch] [BaseType (typeof (UICollectionViewLayoutInvalidationContext))] partial interface UICollectionViewFlowLayoutInvalidationContext { [Export ("invalidateFlowLayoutDelegateMetrics")] bool InvalidateFlowLayoutDelegateMetrics { get; set; } - + [Export ("invalidateFlowLayoutAttributes")] bool InvalidateFlowLayoutAttributes { get; set; } } - - [iOS (7,0), NoWatch] + + [iOS (7, 0), NoWatch] [BaseType (typeof (UICollectionViewLayout))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: -[UICollectionViewTransitionLayout init] is not a valid initializer - use -initWithCurrentLayout:nextLayout: instead interface UICollectionViewTransitionLayout : NSCoding { [Export ("currentLayout")] - UICollectionViewLayout CurrentLayout { get; } + UICollectionViewLayout CurrentLayout { get; } [Export ("nextLayout")] - UICollectionViewLayout NextLayout { get; } + UICollectionViewLayout NextLayout { get; } [DesignatedInitializer] [Export ("initWithCurrentLayout:nextLayout:")] @@ -4820,33 +4842,32 @@ namespace UIKit { [Export ("transitionProgress", ArgumentSemantic.Assign)] nfloat TransitionProgress { get; set; } } - + [NoWatch] [BaseType (typeof (NSObject))] interface UICollectionViewUpdateItem { [NullAllowed] [Export ("indexPathBeforeUpdate")] - NSIndexPath IndexPathBeforeUpdate { get; } + NSIndexPath IndexPathBeforeUpdate { get; } [NullAllowed] [Export ("indexPathAfterUpdate")] - NSIndexPath IndexPathAfterUpdate { get; } + NSIndexPath IndexPathAfterUpdate { get; } [Export ("updateAction")] - UICollectionUpdateAction UpdateAction { get; } + UICollectionUpdateAction UpdateAction { get; } } [NoWatch] [Static] - interface UICollectionElementKindSectionKey - { + interface UICollectionElementKindSectionKey { [Field ("UICollectionElementKindSectionHeader")] NSString Header { get; } [Field ("UICollectionElementKindSectionFooter")] NSString Footer { get; } } - + [BaseType (typeof (NSObject))] [ThreadSafe] // returns NIL handle causing exceptions in further calls, e.g. ToString @@ -4857,37 +4878,42 @@ namespace UIKit { , NSItemProviderWriting, NSItemProviderReading #endif { - [Export ("colorWithWhite:alpha:")][Static] + [Export ("colorWithWhite:alpha:")] + [Static] UIColor FromWhiteAlpha (nfloat white, nfloat alpha); - [Export ("colorWithHue:saturation:brightness:alpha:")][Static] + [Export ("colorWithHue:saturation:brightness:alpha:")] + [Static] UIColor FromHSBA (nfloat hue, nfloat saturation, nfloat brightness, nfloat alpha); - - [Export ("colorWithRed:green:blue:alpha:")][Static] + + [Export ("colorWithRed:green:blue:alpha:")] + [Static] UIColor FromRGBA (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [Export ("colorWithCGColor:")][Static] + [Export ("colorWithCGColor:")] + [Static] UIColor FromCGColor (CGColor color); - [iOS (11,0), TV (11,0)] - [Watch (4,0)] + [iOS (11, 0), TV (11, 0)] + [Watch (4, 0)] [Static] [Export ("colorNamed:")] [return: NullAllowed] UIColor FromName (string name); - [NoWatch, iOS (11,0), TV (11,0)] + [NoWatch, iOS (11, 0), TV (11, 0)] [Static] [Export ("colorNamed:inBundle:compatibleWithTraitCollection:")] [return: NullAllowed] UIColor FromName (string name, [NullAllowed] NSBundle inBundle, [NullAllowed] UITraitCollection compatibleWithTraitCollection); - - [iOS (10,0), TV (10,0), Watch (3,0)] + + [iOS (10, 0), TV (10, 0), Watch (3, 0)] [Static] [Export ("colorWithDisplayP3Red:green:blue:alpha:")] UIColor FromDisplayP3 (nfloat red, nfloat green, nfloat blue, nfloat alpha); - [Export ("colorWithPatternImage:")][Static] + [Export ("colorWithPatternImage:")] + [Static] UIColor FromPatternImage (UIImage image); [Export ("initWithRed:green:blue:alpha:")] @@ -4906,53 +4932,68 @@ namespace UIKit { // takes 4 doubles (RGBA constructor) meaning that we would need to use an enum to diff between them making the API // uglier when it is not needed. The developer can use colorWithHue:saturation:brightness:alpha: // instead. - + [Export ("initWithCGColor:")] NativeHandle Constructor (CGColor color); - [Static] [Export ("clearColor")] + [Static] + [Export ("clearColor")] UIColor Clear { get; } - [Static] [Export ("blackColor")] + [Static] + [Export ("blackColor")] UIColor Black { get; } - [Static] [Export ("darkGrayColor")] + [Static] + [Export ("darkGrayColor")] UIColor DarkGray { get; } - [Static] [Export ("lightGrayColor")] + [Static] + [Export ("lightGrayColor")] UIColor LightGray { get; } - [Static] [Export ("whiteColor")] + [Static] + [Export ("whiteColor")] UIColor White { get; } - [Static] [Export ("grayColor")] + [Static] + [Export ("grayColor")] UIColor Gray { get; } - [Static] [Export ("redColor")] + [Static] + [Export ("redColor")] UIColor Red { get; } - [Static] [Export ("greenColor")] + [Static] + [Export ("greenColor")] UIColor Green { get; } - [Static] [Export ("blueColor")] + [Static] + [Export ("blueColor")] UIColor Blue { get; } - [Static] [Export ("cyanColor")] + [Static] + [Export ("cyanColor")] UIColor Cyan { get; } - [Static] [Export ("yellowColor")] + [Static] + [Export ("yellowColor")] UIColor Yellow { get; } - [Static] [Export ("magentaColor")] + [Static] + [Export ("magentaColor")] UIColor Magenta { get; } - [Static] [Export ("orangeColor")] + [Static] + [Export ("orangeColor")] UIColor Orange { get; } - [Static] [Export ("purpleColor")] + [Static] + [Export ("purpleColor")] UIColor Purple { get; } - [Static] [Export ("brownColor")] + [Static] + [Export ("brownColor")] UIColor Brown { get; } [Export ("set")] @@ -4976,78 +5017,96 @@ namespace UIKit { #if !NET [Obsolete ("Use 'LightText' instead.")] - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("lightTextColor")] [Static] UIColor LightTextColor { get; } #endif - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("lightTextColor")] [Static] UIColor LightText { get; } #if !NET [Obsolete ("Use 'DarkText' instead.")] - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("darkTextColor")] [Static] UIColor DarkTextColor { get; } #endif - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Export ("darkTextColor")] [Static] UIColor DarkText { get; } #if !NET [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'SystemGroupedBackground' instead.")] - [NoWatch][NoTV] - [Export ("groupTableViewBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("groupTableViewBackgroundColor")] + [Static] UIColor GroupTableViewBackgroundColor { get; } #endif [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'SystemGroupedBackground' instead.")] - [NoWatch][NoTV] - [Export ("groupTableViewBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("groupTableViewBackgroundColor")] + [Static] UIColor GroupTableViewBackground { get; } #if !NET [Obsolete ("Use 'ViewFlipsideBackground' instead.")] [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] - [Export ("viewFlipsideBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("viewFlipsideBackgroundColor")] + [Static] UIColor ViewFlipsideBackgroundColor { get; } #endif [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] - [Export ("viewFlipsideBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("viewFlipsideBackgroundColor")] + [Static] UIColor ViewFlipsideBackground { get; } #if !NET [Obsolete ("Use 'ScrollViewTexturedBackground' instead.")] [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] - [Export ("scrollViewTexturedBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("scrollViewTexturedBackgroundColor")] + [Static] UIColor ScrollViewTexturedBackgroundColor { get; } #endif [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] - [Export ("scrollViewTexturedBackgroundColor")][Static] + [NoWatch] + [NoTV] + [Export ("scrollViewTexturedBackgroundColor")] + [Static] UIColor ScrollViewTexturedBackground { get; } #if !NET [Obsolete ("Use 'UnderPageBackground' instead.")] [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Static, Export ("underPageBackgroundColor")] UIColor UnderPageBackgroundColor { get; } #endif [Deprecated (PlatformName.iOS, 7, 0)] - [NoWatch][NoTV] + [NoWatch] + [NoTV] [Static, Export ("underPageBackgroundColor")] UIColor UnderPageBackground { get; } @@ -5061,7 +5120,7 @@ namespace UIKit { [Export ("getWhite:alpha:")] bool GetWhite (out nfloat white, out nfloat alpha); - + #if false // for testing the managed implementations [Export ("getHue:saturation:brightness:alpha:")] @@ -5073,15 +5132,15 @@ namespace UIKit { // From the NSItemProviderReading protocol, a static method. [Static] - [iOS (11,0), NoWatch, NoTV] + [iOS (11, 0), NoWatch, NoTV] [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] #if !WATCH && !TVOS new #endif - string[] ReadableTypeIdentifiers { get; } + string [] ReadableTypeIdentifiers { get; } // From the NSItemProviderReading protocol, a static method. - [iOS (11,0), NoWatch, NoTV] + [iOS (11, 0), NoWatch, NoTV] [Static] [Export ("objectWithItemProviderData:typeIdentifier:error:")] [return: NullAllowed] @@ -5092,26 +5151,26 @@ namespace UIKit { // From the NSItemProviderWriting protocol, a static method. // NSItemProviderWriting doesn't seem to be implemented for tvOS/watchOS, even though the headers say otherwise. - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Static] [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] #if !WATCH && !TVOS new #endif - string[] WritableTypeIdentifiers { get; } + string [] WritableTypeIdentifiers { get; } // From UIColor (DynamicColors) - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("colorWithDynamicProvider:")] UIColor FromDynamicProvider (Func dynamicProvider); - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("initWithDynamicProvider:")] NativeHandle Constructor (Func dynamicProvider); - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("resolvedColorWithTraitCollection:")] UIColor GetResolvedColor (UITraitCollection traitCollection); @@ -5122,515 +5181,515 @@ namespace UIKit { #if !NET [Obsolete ("Use 'SystemRed' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemRedColor")] UIColor SystemRedColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemRedColor")] UIColor SystemRed { get; } #if !NET [Obsolete ("Use 'SystemGreen' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemGreenColor")] UIColor SystemGreenColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemGreenColor")] UIColor SystemGreen { get; } #if !NET [Obsolete ("Use 'SystemBlue' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemBlueColor")] UIColor SystemBlueColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemBlueColor")] UIColor SystemBlue { get; } #if !NET [Obsolete ("Use 'SystemOrange' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemOrangeColor")] UIColor SystemOrangeColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemOrangeColor")] UIColor SystemOrange { get; } #if !NET [Obsolete ("Use 'SystemYellow' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemYellowColor")] UIColor SystemYellowColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemYellowColor")] UIColor SystemYellow { get; } #if !NET [Obsolete ("Use 'SystemPink' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemPinkColor")] UIColor SystemPinkColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemPinkColor")] UIColor SystemPink { get; } #if !NET [Obsolete ("Use 'SystemPurple' instead.")] - [TV (9,0), NoWatch, iOS (9,0)] + [TV (9, 0), NoWatch, iOS (9, 0)] [Static] [Export ("systemPurpleColor")] UIColor SystemPurpleColor { get; } #endif - [TV (9,0), NoWatch, iOS (9,0)] + [TV (9, 0), NoWatch, iOS (9, 0)] [Static] [Export ("systemPurpleColor")] UIColor SystemPurple { get; } #if !NET [Obsolete ("Use 'SystemTeal' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemTealColor")] UIColor SystemTealColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemTealColor")] UIColor SystemTeal { get; } #if !NET [Obsolete ("Use 'SystemIndigo' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("systemIndigoColor")] UIColor SystemIndigoColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("systemIndigoColor")] UIColor SystemIndigo { get; } #if !NET [Obsolete ("Use 'SystemBrown' instead.")] - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemBrownColor")] UIColor SystemBrownColor { get; } #endif - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemBrownColor")] UIColor SystemBrown { get; } #if !NET [Obsolete ("Use 'SystemMint' instead.")] - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemMintColor")] UIColor SystemMintColor { get; } #endif - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemMintColor")] UIColor SystemMint { get; } #if !NET [Obsolete ("Use 'SystemCyan' instead.")] - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemCyanColor")] UIColor SystemCyanColor { get; } #endif - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemCyanColor")] UIColor SystemCyan { get; } #if !NET [Obsolete ("Use 'SystemGray' instead.")] - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemGrayColor")] UIColor SystemGrayColor { get; } #endif - [TV (9,0), NoWatch, iOS (7,0)] + [TV (9, 0), NoWatch, iOS (7, 0)] [Static] [Export ("systemGrayColor")] UIColor SystemGray { get; } #if !NET [Obsolete ("Use 'SystemGray2' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray2Color")] UIColor SystemGray2Color { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray2Color")] UIColor SystemGray2 { get; } #if !NET [Obsolete ("Use 'SystemGray3' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray3Color")] UIColor SystemGray3Color { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray3Color")] UIColor SystemGray3 { get; } #if !NET [Obsolete ("Use 'SystemGray4' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray4Color")] UIColor SystemGray4Color { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray4Color")] UIColor SystemGray4 { get; } #if !NET [Obsolete ("Use 'SystemGray5' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray5Color")] UIColor SystemGray5Color { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray5Color")] UIColor SystemGray5 { get; } #if !NET [Obsolete ("Use 'SystemGray6' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray6Color")] UIColor SystemGray6Color { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGray6Color")] UIColor SystemGray6 { get; } #if !NET [Obsolete ("Use 'Tint' instead.")] - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("tintColor")] UIColor TintColor { get; } #endif - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("tintColor")] UIColor Tint { get; } #if !NET [Obsolete ("Use 'Label' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("labelColor")] UIColor LabelColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("labelColor")] UIColor Label { get; } #if !NET [Obsolete ("Use 'SecondaryLabel' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("secondaryLabelColor")] UIColor SecondaryLabelColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("secondaryLabelColor")] UIColor SecondaryLabel { get; } #if !NET [Obsolete ("Use 'TertiaryLabel' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("tertiaryLabelColor")] UIColor TertiaryLabelColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("tertiaryLabelColor")] UIColor TertiaryLabel { get; } #if !NET [Obsolete ("Use 'QuaternaryLabel' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("quaternaryLabelColor")] UIColor QuaternaryLabelColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("quaternaryLabelColor")] UIColor QuaternaryLabel { get; } #if !NET [Obsolete ("Use 'Link' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("linkColor")] UIColor LinkColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("linkColor")] UIColor Link { get; } #if !NET [Obsolete ("Use 'PlaceholderText' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("placeholderTextColor")] UIColor PlaceholderTextColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("placeholderTextColor")] UIColor PlaceholderText { get; } #if !NET [Obsolete ("Use 'Separator' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("separatorColor")] UIColor SeparatorColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("separatorColor")] UIColor Separator { get; } #if !NET [Obsolete ("Use 'OpaqueSeparator' instead.")] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("opaqueSeparatorColor")] UIColor OpaqueSeparatorColor { get; } #endif - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("opaqueSeparatorColor")] UIColor OpaqueSeparator { get; } #if !NET [Obsolete ("Use 'SystemBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemBackgroundColor")] UIColor SystemBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemBackgroundColor")] UIColor SystemBackground { get; } #if !NET [Obsolete ("Use 'SecondarySystemBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemBackgroundColor")] UIColor SecondarySystemBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemBackgroundColor")] UIColor SecondarySystemBackground { get; } #if !NET [Obsolete ("Use 'TertiarySystemBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemBackgroundColor")] UIColor TertiarySystemBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemBackgroundColor")] UIColor TertiarySystemBackground { get; } #if !NET [Obsolete ("Use 'SystemGroupedBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGroupedBackgroundColor")] UIColor SystemGroupedBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemGroupedBackgroundColor")] UIColor SystemGroupedBackground { get; } #if !NET [Obsolete ("Use 'SecondarySystemGroupedBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemGroupedBackgroundColor")] UIColor SecondarySystemGroupedBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemGroupedBackgroundColor")] UIColor SecondarySystemGroupedBackground { get; } #if !NET [Obsolete ("Use 'TertiarySystemGroupedBackground' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemGroupedBackgroundColor")] UIColor TertiarySystemGroupedBackgroundColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemGroupedBackgroundColor")] UIColor TertiarySystemGroupedBackground { get; } #if !NET [Obsolete ("Use 'SystemFill' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemFillColor")] UIColor SystemFillColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("systemFillColor")] UIColor SystemFill { get; } #if !NET [Obsolete ("Use 'SecondarySystemFill' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemFillColor")] UIColor SecondarySystemFillColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("secondarySystemFillColor")] UIColor SecondarySystemFill { get; } #if !NET [Obsolete ("Use 'TertiarySystemFill' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemFillColor")] UIColor TertiarySystemFillColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("tertiarySystemFillColor")] UIColor TertiarySystemFill { get; } #if !NET [Obsolete ("Use 'QuaternarySystemFill' instead.")] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("quaternarySystemFillColor")] UIColor QuaternarySystemFillColor { get; } #endif - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("quaternarySystemFillColor")] UIColor QuaternarySystemFill { get; } // UIColor (UIAccessibility) Category - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("accessibilityName")] string AccessibilityName { get; } } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (UIDynamicBehavior), - Delegates=new string [] { "CollisionDelegate" }, - Events=new Type [] { typeof (UICollisionBehaviorDelegate)})] + Delegates = new string [] { "CollisionDelegate" }, + Events = new Type [] { typeof (UICollisionBehaviorDelegate) })] interface UICollisionBehavior { [DesignatedInitializer] [Export ("initWithItems:")] NativeHandle Constructor ([Params] IUIDynamicItem [] items); - + [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem [] Items { get; } + IUIDynamicItem [] Items { get; } [Export ("collisionMode")] - UICollisionBehaviorMode CollisionMode { get; set; } + UICollisionBehaviorMode CollisionMode { get; set; } [Export ("translatesReferenceBoundsIntoBoundary")] - bool TranslatesReferenceBoundsIntoBoundary { get; set; } + bool TranslatesReferenceBoundsIntoBoundary { get; set; } [Export ("boundaryIdentifiers", ArgumentSemantic.Copy)] - NSObject [] BoundaryIdentifiers { get; } + NSObject [] BoundaryIdentifiers { get; } [Export ("collisionDelegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakCollisionDelegate { get; set; } + NSObject WeakCollisionDelegate { get; set; } [Wrap ("WeakCollisionDelegate")] [Protocolize] @@ -5662,22 +5721,26 @@ namespace UIKit { [Export ("removeAllBoundaries")] void RemoveAllBoundaries (); } - - [NoWatch, iOS (7,0)] + + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] [Protocol] [Model] interface UICollisionBehaviorDelegate { - [Export ("collisionBehavior:beganContactForItem:withItem:atPoint:")][EventArgs ("UICollisionBeganContact")] + [Export ("collisionBehavior:beganContactForItem:withItem:atPoint:")] + [EventArgs ("UICollisionBeganContact")] void BeganContact (UICollisionBehavior behavior, IUIDynamicItem firstItem, IUIDynamicItem secondItem, CGPoint atPoint); - [Export ("collisionBehavior:endedContactForItem:withItem:")][EventArgs ("UICollisionEndedContact")] + [Export ("collisionBehavior:endedContactForItem:withItem:")] + [EventArgs ("UICollisionEndedContact")] void EndedContact (UICollisionBehavior behavior, IUIDynamicItem firstItem, IUIDynamicItem secondItem); - [Export ("collisionBehavior:beganContactForItem:withBoundaryIdentifier:atPoint:")][EventArgs ("UICollisionBeganBoundaryContact")] + [Export ("collisionBehavior:beganContactForItem:withBoundaryIdentifier:atPoint:")] + [EventArgs ("UICollisionBeganBoundaryContact")] void BeganBoundaryContact (UICollisionBehavior behavior, IUIDynamicItem dynamicItem, [NullAllowed] NSObject boundaryIdentifier, CGPoint atPoint); - [Export ("collisionBehavior:endedContactForItem:withBoundaryIdentifier:")][EventArgs ("UICollisionEndedBoundaryContact")] + [Export ("collisionBehavior:endedContactForItem:withBoundaryIdentifier:")] + [EventArgs ("UICollisionEndedBoundaryContact")] void EndedBoundaryContact (UICollisionBehavior behavior, IUIDynamicItem dynamicItem, [NullAllowed] NSObject boundaryIdentifier); } @@ -5688,16 +5751,16 @@ namespace UIKit { [ThreadSafe] interface UIDocument : NSFilePresenter, NSProgressReporting, UIUserActivityRestoring { [Export ("localizedName", ArgumentSemantic.Copy)] - string LocalizedName { get; } + string LocalizedName { get; } [Export ("fileType", ArgumentSemantic.Copy)] - string FileType { get; } + string FileType { get; } [Export ("fileModificationDate", ArgumentSemantic.Copy)] - NSDate FileModificationDate { get; set; } + NSDate FileModificationDate { get; set; } [Export ("documentState")] - UIDocumentState DocumentState { get; } + UIDocumentState DocumentState { get; } [DesignatedInitializer] [Export ("initWithFileURL:")] @@ -5790,15 +5853,15 @@ namespace UIKit { NSString StateChangedNotification { get; } // ActivityContinuation Category - [iOS (8,0)] + [iOS (8, 0)] [Export ("userActivity", ArgumentSemantic.Retain)] NSUserActivity UserActivity { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("updateUserActivityState:")] void UpdateUserActivityState (NSUserActivity userActivity); - [iOS (8,0)] + [iOS (8, 0)] [Field ("NSUserActivityDocumentURLKey")] NSString UserActivityDocumentUrlKey { get; } @@ -5822,18 +5885,18 @@ namespace UIKit { void DidPause (UIDynamicAnimator animator); } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] interface UIDynamicAnimator { [DesignatedInitializer] [Export ("initWithReferenceView:")] NativeHandle Constructor (UIView referenceView); - + [Export ("referenceView")] - UIView ReferenceView { get; } + UIView ReferenceView { get; } [Export ("behaviors", ArgumentSemantic.Copy)] - UIDynamicBehavior [] Behaviors { get; } + UIDynamicBehavior [] Behaviors { get; } [Export ("running")] bool Running { [Bind ("isRunning")] get; } @@ -5843,7 +5906,7 @@ namespace UIKit { [Wrap ("WeakDelegate")] [Protocolize] - UIDynamicAnimatorDelegate Delegate { get; set; } + UIDynamicAnimatorDelegate Delegate { get; set; } [Export ("addBehavior:")] [PostGet ("Behaviors")] @@ -5871,7 +5934,7 @@ namespace UIKit { // [Export ("initWithCollectionViewLayout:")] NativeHandle Constructor (UICollectionViewLayout layout); - + [Export ("layoutAttributesForCellAtIndexPath:")] UICollectionViewLayoutAttributes GetLayoutAttributesForCell (NSIndexPath cellIndexPath); @@ -5883,33 +5946,33 @@ namespace UIKit { } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (UIDynamicBehavior))] interface UIDynamicItemBehavior { [DesignatedInitializer] [Export ("initWithItems:")] NativeHandle Constructor ([Params] IUIDynamicItem [] items); - + [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem [] Items { get; } + IUIDynamicItem [] Items { get; } [Export ("elasticity")] - nfloat Elasticity { get; set; } + nfloat Elasticity { get; set; } [Export ("friction")] - nfloat Friction { get; set; } + nfloat Friction { get; set; } [Export ("density")] - nfloat Density { get; set; } + nfloat Density { get; set; } [Export ("resistance")] - nfloat Resistance { get; set; } + nfloat Resistance { get; set; } [Export ("angularResistance")] - nfloat AngularResistance { get; set; } + nfloat AngularResistance { get; set; } [Export ("allowsRotation")] - bool AllowsRotation { get; set; } + bool AllowsRotation { get; set; } [Export ("addItem:")] [PostGet ("Items")] @@ -5931,60 +5994,59 @@ namespace UIKit { [Export ("angularVelocityForItem:")] nfloat GetAngularVelocityForItem (IUIDynamicItem dynamicItem); - [iOS (9,0)] + [iOS (9, 0)] [Export ("charge", ArgumentSemantic.Assign)] nfloat Charge { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("anchored")] bool Anchored { [Bind ("isAnchored")] get; set; } } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] [Protocol] [Model] interface UIDynamicItem { [Abstract] [Export ("center")] - CGPoint Center { get; set; } + CGPoint Center { get; set; } [Abstract] [Export ("bounds")] - CGRect Bounds { get; } + CGRect Bounds { get; } [Abstract] [Export ("transform")] - CGAffineTransform Transform { get; set; } + CGAffineTransform Transform { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("collisionBoundsType")] UIDynamicItemCollisionBoundsType CollisionBoundsType { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("collisionBoundingPath")] - UIBezierPath CollisionBoundingPath { get; } + UIBezierPath CollisionBoundingPath { get; } } - [NoWatch, iOS (9,0)] - [BaseType (typeof(NSObject))] - interface UIDynamicItemGroup : UIDynamicItem - { + [NoWatch, iOS (9, 0)] + [BaseType (typeof (NSObject))] + interface UIDynamicItemGroup : UIDynamicItem { [Export ("initWithItems:")] - NativeHandle Constructor (IUIDynamicItem[] items); - + NativeHandle Constructor (IUIDynamicItem [] items); + [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem[] Items { get; } + IUIDynamicItem [] Items { get; } } - - interface IUIDynamicItem {} - [NoWatch, iOS (7,0)] + interface IUIDynamicItem { } + + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] interface UIDynamicBehavior { [Export ("childBehaviors", ArgumentSemantic.Copy)] - UIDynamicBehavior [] ChildBehaviors { get; } + UIDynamicBehavior [] ChildBehaviors { get; } [NullAllowed] // by default this property is null [Export ("action", ArgumentSemantic.Copy)] @@ -5993,105 +6055,104 @@ namespace UIKit { [Export ("addChildBehavior:")] [PostGet ("ChildBehaviors")] void AddChildBehavior (UIDynamicBehavior behavior); - + [Export ("removeChildBehavior:")] [PostGet ("ChildBehaviors")] void RemoveChildBehavior (UIDynamicBehavior behavior); - + [Export ("dynamicAnimator")] UIDynamicAnimator DynamicAnimator { get; } - + [Export ("willMoveToAnimator:")] void WillMoveToAnimator ([NullAllowed] UIDynamicAnimator targetAnimator); } - [NoWatch, iOS (9,0)] - [BaseType (typeof(UIDynamicBehavior))] + [NoWatch, iOS (9, 0)] + [BaseType (typeof (UIDynamicBehavior))] [DisableDefaultCtor] - interface UIFieldBehavior - { + interface UIFieldBehavior { [Export ("addItem:")] void AddItem (IUIDynamicItem item); - + [Export ("removeItem:")] void RemoveItem (IUIDynamicItem item); - + [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem[] Items { get; } - + IUIDynamicItem [] Items { get; } + [Export ("position", ArgumentSemantic.Assign)] CGPoint Position { get; set; } - + [Export ("region", ArgumentSemantic.Strong)] UIRegion Region { get; set; } - + [Export ("strength", ArgumentSemantic.Assign)] nfloat Strength { get; set; } - + [Export ("falloff", ArgumentSemantic.Assign)] nfloat Falloff { get; set; } - + [Export ("minimumRadius", ArgumentSemantic.Assign)] nfloat MinimumRadius { get; set; } - + [Export ("direction", ArgumentSemantic.Assign)] CGVector Direction { get; set; } - + [Export ("smoothness", ArgumentSemantic.Assign)] nfloat Smoothness { get; set; } - + [Export ("animationSpeed", ArgumentSemantic.Assign)] nfloat AnimationSpeed { get; set; } - + [Static] [Export ("dragField")] UIFieldBehavior CreateDragField (); - + [Static] [Export ("vortexField")] UIFieldBehavior CreateVortexField (); - + [Static] [Export ("radialGravityFieldWithPosition:")] UIFieldBehavior CreateRadialGravityField (CGPoint position); - + [Static] [Export ("linearGravityFieldWithVector:")] UIFieldBehavior CreateLinearGravityField (CGVector direction); - + [Static] [Export ("velocityFieldWithVector:")] UIFieldBehavior CreateVelocityField (CGVector direction); - + [Static] [Export ("noiseFieldWithSmoothness:animationSpeed:")] UIFieldBehavior CreateNoiseField (nfloat smoothness, nfloat speed); - + [Static] [Export ("turbulenceFieldWithSmoothness:animationSpeed:")] UIFieldBehavior CreateTurbulenceField (nfloat smoothness, nfloat speed); - + [Static] [Export ("springField")] UIFieldBehavior CreateSpringField (); - + [Static] [Export ("electricField")] UIFieldBehavior CreateElectricField (); - + [Static] [Export ("magneticField")] UIFieldBehavior CreateMagneticField (); - + [Static] [Export ("fieldWithEvaluationBlock:")] UIFieldBehavior CreateCustomField (UIFieldCustomEvaluator evaluator); } - + delegate CGVector UIFieldCustomEvaluator (UIFieldBehavior field, CGPoint position, CGVector velocity, nfloat mass, nfloat charge, double deltaTime); - - [Static][Internal] - [iOS (8,2)] + + [Static] + [iOS (8, 2)] interface UIFontWeightConstants { [Field ("UIFontWeightUltraLight")] nfloat UltraLight { get; } @@ -6104,7 +6165,7 @@ namespace UIKit { [Field ("UIFontWeightMedium")] nfloat Medium { get; } [Field ("UIFontWeightSemibold")] - nfloat Semibold { get; } + nfloat Semibold { get; } [Field ("UIFontWeightBold")] nfloat Bold { get; } [Field ("UIFontWeightHeavy")] @@ -6116,62 +6177,76 @@ namespace UIKit { [BaseType (typeof (NSObject))] [ThreadSafe] [DisableDefaultCtor] // iOS7 -> Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UIFont ctFontRef]: unrecognized selector sent to instance 0x15b283c0 - // note: because of bug 25511 (managed Dispose / native semi-factory) we need to return a copy of the UIFont for every static method that returns an UIFont + // note: because of bug 25511 (managed Dispose / native semi-factory) we need to return a copy of the UIFont for every static method that returns an UIFont interface UIFont : NSCopying, NSSecureCoding { - [Static] [Export ("systemFontOfSize:")] + [Static] + [Export ("systemFontOfSize:")] [Internal] // bug 25511 IntPtr _SystemFontOfSize (nfloat size); - [iOS (8,2)] + [iOS (8, 2)] [EditorBrowsable (EditorBrowsableState.Advanced)] // we prefer to show the one using the enum [Internal] // bug 25511 - [Static][Export ("systemFontOfSize:weight:")] + [Static] + [Export ("systemFontOfSize:weight:")] IntPtr _SystemFontOfSize (nfloat size, nfloat weight); - [iOS (9,0)] + [iOS (9, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] // we prefer to show the one using the enum [Internal] // bug 25511 - [Static][Export ("monospacedDigitSystemFontOfSize:weight:")] + [Static] + [Export ("monospacedDigitSystemFontOfSize:weight:")] IntPtr _MonospacedDigitSystemFontOfSize (nfloat fontSize, nfloat weight); - [Static] [Export ("boldSystemFontOfSize:")] + [Static] + [Export ("boldSystemFontOfSize:")] [Internal] // bug 25511 IntPtr _BoldSystemFontOfSize (nfloat size); - [Static] [Export ("italicSystemFontOfSize:")] + [Static] + [Export ("italicSystemFontOfSize:")] [Internal] // bug 25511 IntPtr _ItalicSystemFontOfSize (nfloat size); - [Static] [Export ("fontWithName:size:")] + [Static] + [Export ("fontWithName:size:")] [Internal] // bug 25511 IntPtr _FromName (string name, nfloat size); - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Static] [Internal] // bug https://xamarin.github.io/bugzilla-archives/25/25511/bug.html [Export ("monospacedSystemFontOfSize:weight:")] IntPtr _MonospacedSystemFontOfSize (nfloat fontSize, nfloat weight); - [NoWatch][NoTV] - [Static] [Export ("labelFontSize")] + [NoWatch] + [NoTV] + [Static] + [Export ("labelFontSize")] nfloat LabelFontSize { get; } - [NoWatch][NoTV] - [Static] [Export ("buttonFontSize")] + [NoWatch] + [NoTV] + [Static] + [Export ("buttonFontSize")] nfloat ButtonFontSize { get; } - [NoWatch][NoTV] - [Static] [Export ("smallSystemFontSize")] + [NoWatch] + [NoTV] + [Static] + [Export ("smallSystemFontSize")] nfloat SmallSystemFontSize { get; } - [NoWatch][NoTV] - [Static] [Export ("systemFontSize")] + [NoWatch] + [NoTV] + [Static] + [Export ("systemFontSize")] nfloat SystemFontSize { get; } - + [Export ("fontWithSize:")] [Internal] // bug 25511 IntPtr _WithSize (nfloat size); - + [Export ("familyName", ArgumentSemantic.Retain)] string FamilyName { get; } @@ -6205,34 +6280,36 @@ namespace UIKit { [Export ("lineHeight")] nfloat LineHeight { get; } - [Static] [Export ("familyNames")] + [Static] + [Export ("familyNames")] string [] FamilyNames { get; } - [Static] [Export ("fontNamesForFamilyName:")] + [Static] + [Export ("fontNamesForFamilyName:")] string [] FontNamesForFamilyName (string familyName); - [iOS (7,0)] + [iOS (7, 0)] [Export ("fontDescriptor")] UIFontDescriptor FontDescriptor { get; } - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("fontWithDescriptor:size:")] [Internal] // bug 25511 IntPtr _FromDescriptor (UIFontDescriptor descriptor, nfloat pointSize); - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("preferredFontForTextStyle:")] [Internal] // bug 25511 IntPtr _GetPreferredFontForTextStyle (NSString uiFontTextStyle); // FIXME [Watch (3,0)] the API is present but UITraitCollection is not exposed / rdar 27785753 - [NoWatch, iOS (10,0), TV (10,0)] + [NoWatch, iOS (10, 0), TV (10, 0)] [Static] [Export ("preferredFontForTextStyle:compatibleWithTraitCollection:")] [Internal] IntPtr _GetPreferredFontForTextStyle (NSString uiFontTextStyle, [NullAllowed] UITraitCollection traitCollection); - [Watch (9,0), iOS (16,0), TV (16,0), MacCatalyst (16,0)] + [Watch (9, 0), iOS (16, 0), TV (16, 0), MacCatalyst (16, 0)] [Static] [Internal] [Export ("systemFontOfSize:weight:width:")] @@ -6241,93 +6318,93 @@ namespace UIKit { } public enum UIFontTextStyle { - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleHeadline")] Headline, - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleBody")] Body, - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleSubheadline")] Subheadline, - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleFootnote")] Footnote, - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleCaption1")] Caption1, - [iOS (7,0)] + [iOS (7, 0)] [Field ("UIFontTextStyleCaption2")] Caption2, - [iOS (9,0)] + [iOS (9, 0)] [Field ("UIFontTextStyleTitle1")] Title1, - - [iOS (9,0)] + + [iOS (9, 0)] [Field ("UIFontTextStyleTitle2")] Title2, - - [iOS (9,0)] + + [iOS (9, 0)] [Field ("UIFontTextStyleTitle3")] Title3, - - [iOS (9,0)] + + [iOS (9, 0)] [Field ("UIFontTextStyleCallout")] Callout, [NoTV] - [iOS (11,0), Watch (5,0)] + [iOS (11, 0), Watch (5, 0)] [Field ("UIFontTextStyleLargeTitle")] LargeTitle, } - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [ThreadSafe] partial interface UIFontDescriptor : NSSecureCoding, NSCopying { - + [Export ("postscriptName")] string PostscriptName { get; } - + [Export ("pointSize")] nfloat PointSize { get; } - + [Export ("matrix")] CGAffineTransform Matrix { get; } - + [Export ("symbolicTraits")] UIFontDescriptorSymbolicTraits SymbolicTraits { get; } - + [Export ("objectForKey:")] NSObject GetObject (NSString anAttribute); - + [Export ("fontAttributes")] NSDictionary WeakFontAttributes { get; } - + [Wrap ("WeakFontAttributes")] UIFontAttributes FontAttributes { get; } - + [Export ("matchingFontDescriptorsWithMandatoryKeys:")] UIFontDescriptor [] GetMatchingFontDescriptors ([NullAllowed] NSSet mandatoryKeys); - + [Static, Export ("fontDescriptorWithFontAttributes:")] UIFontDescriptor FromAttributes (NSDictionary attributes); [Static, Wrap ("FromAttributes (attributes.GetDictionary ()!)")] UIFontDescriptor FromAttributes (UIFontAttributes attributes); - + [Static, Export ("fontDescriptorWithName:size:")] UIFontDescriptor FromName (string fontName, nfloat size); - + [Static, Export ("fontDescriptorWithName:matrix:")] UIFontDescriptor FromName (string fontName, CGAffineTransform matrix); - + [Static, Export ("preferredFontDescriptorWithTextStyle:")] UIFontDescriptor GetPreferredDescriptorForTextStyle (NSString uiFontTextStyle); @@ -6336,107 +6413,107 @@ namespace UIKit { UIFontDescriptor GetPreferredDescriptorForTextStyle (UIFontTextStyle uiFontTextStyle); // FIXME [Watch (3,0)] the API is present but UITraitCollection is not exposed / rdar #27785753 - [NoWatch, iOS (10,0), TV (10,0)] + [NoWatch, iOS (10, 0), TV (10, 0)] [Static] [Export ("preferredFontDescriptorWithTextStyle:compatibleWithTraitCollection:")] UIFontDescriptor GetPreferredDescriptorForTextStyle (NSString uiFontTextStyle, [NullAllowed] UITraitCollection traitCollection); - [NoWatch, iOS (10,0), TV (10,0)] + [NoWatch, iOS (10, 0), TV (10, 0)] [Static] [Wrap ("GetPreferredDescriptorForTextStyle (uiFontTextStyle.GetConstant ()!, traitCollection)")] UIFontDescriptor GetPreferredDescriptorForTextStyle (UIFontTextStyle uiFontTextStyle, [NullAllowed] UITraitCollection traitCollection); - + [DesignatedInitializer] [Export ("initWithFontAttributes:")] NativeHandle Constructor (NSDictionary attributes); - + [DesignatedInitializer] [Wrap ("this (attributes.GetDictionary ()!)")] NativeHandle Constructor (UIFontAttributes attributes); [Export ("fontDescriptorByAddingAttributes:")] UIFontDescriptor CreateWithAttributes (NSDictionary attributes); - + [Wrap ("CreateWithAttributes (attributes.GetDictionary ()!)")] UIFontDescriptor CreateWithAttributes (UIFontAttributes attributes); [Export ("fontDescriptorWithSymbolicTraits:")] UIFontDescriptor CreateWithTraits (UIFontDescriptorSymbolicTraits symbolicTraits); - [iOS (13,0), TV (13,0)] - [Watch (5,2)] + [iOS (13, 0), TV (13, 0)] + [Watch (5, 2)] [Export ("fontDescriptorWithDesign:")] [return: NullAllowed] [EditorBrowsable (EditorBrowsableState.Advanced)] UIFontDescriptor CreateWithDesign (NSString design); - [iOS (13,0), TV (13,0)] - [Watch (5,2)] + [iOS (13, 0), TV (13, 0)] + [Watch (5, 2)] [return: NullAllowed] [Wrap ("CreateWithDesign (design.GetConstant ()!)")] UIFontDescriptor CreateWithDesign (UIFontDescriptorSystemDesign design); [Export ("fontDescriptorWithSize:")] UIFontDescriptor CreateWithSize (nfloat newPointSize); - + [Export ("fontDescriptorWithMatrix:")] UIFontDescriptor CreateWithMatrix (CGAffineTransform matrix); - + [Export ("fontDescriptorWithFace:")] UIFontDescriptor CreateWithFace (string newFace); - + [Export ("fontDescriptorWithFamily:")] UIFontDescriptor CreateWithFamily (string newFamily); - + // // Internal fields // [Internal, Field ("UIFontDescriptorFamilyAttribute")] NSString FamilyAttribute { get; } - + [Internal, Field ("UIFontDescriptorNameAttribute")] NSString NameAttribute { get; } - + [Internal, Field ("UIFontDescriptorFaceAttribute")] NSString FaceAttribute { get; } - + [Internal, Field ("UIFontDescriptorSizeAttribute")] NSString SizeAttribute { get; } - + [Internal, Field ("UIFontDescriptorVisibleNameAttribute")] NSString VisibleNameAttribute { get; } - + [Internal, Field ("UIFontDescriptorMatrixAttribute")] NSString MatrixAttribute { get; } [Internal, Field ("UIFontDescriptorCharacterSetAttribute")] NSString CharacterSetAttribute { get; } - + [Internal, Field ("UIFontDescriptorCascadeListAttribute")] NSString CascadeListAttribute { get; } - + [Internal, Field ("UIFontDescriptorTraitsAttribute")] NSString TraitsAttribute { get; } - + [Internal, Field ("UIFontDescriptorFixedAdvanceAttribute")] NSString FixedAdvanceAttribute { get; } - + [Internal, Field ("UIFontDescriptorFeatureSettingsAttribute")] NSString FeatureSettingsAttribute { get; } - + [Internal, Field ("UIFontDescriptorTextStyleAttribute")] NSString TextStyleAttribute { get; } [Internal, Field ("UIFontSymbolicTrait")] NSString SymbolicTrait { get; } - + [Internal, Field ("UIFontWeightTrait")] NSString WeightTrait { get; } - + [Internal, Field ("UIFontWidthTrait")] NSString WidthTrait { get; } - + [Internal, Field ("UIFontSlantTrait")] NSString SlantTrait { get; } @@ -6449,7 +6526,7 @@ namespace UIKit { } [NoWatch] - [BaseType (typeof(NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type[] {typeof (UIGestureRecognizerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIGestureRecognizerDelegate) })] [Dispose ("OnDispose ();", Optimizable = true)] interface UIGestureRecognizer { [DesignatedInitializer] @@ -6460,68 +6537,70 @@ namespace UIKit { [Sealed] [Internal] NativeHandle Constructor (NSObject target, IntPtr /* SEL */ action); - + [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UIGestureRecognizerDelegate Delegate { get; set; } - + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } - + [Export ("state")] UIGestureRecognizerState State { get; [Advice ("Only subclasses of 'UIGestureRecognizer' can set this property.")] set; } - + [Export ("view")] [Transient] UIView View { get; } - + [Export ("addTarget:action:")] void AddTarget (NSObject target, Selector action); [Export ("addTarget:action:")] - [Internal] [Sealed] + [Internal] + [Sealed] void AddTarget (NSObject target, IntPtr action); [Export ("removeTarget:action:")] void RemoveTarget ([NullAllowed] NSObject target, [NullAllowed] Selector action); [Export ("removeTarget:action:")] - [Internal] [Sealed] + [Internal] + [Sealed] void RemoveTarget ([NullAllowed] NSObject target, IntPtr action); [Export ("locationInView:")] CGPoint LocationInView ([NullAllowed] UIView view); - + [Export ("cancelsTouchesInView")] bool CancelsTouchesInView { get; set; } - + [Export ("delaysTouchesBegan")] bool DelaysTouchesBegan { get; set; } - + [Export ("delaysTouchesEnded")] bool DelaysTouchesEnded { get; set; } - + [Export ("locationOfTouch:inView:")] CGPoint LocationOfTouch (nint touchIndex, [NullAllowed] UIView inView); - + [Export ("numberOfTouches")] nint NumberOfTouches { get; } - + [Export ("requireGestureRecognizerToFail:")] void RequireGestureRecognizerToFail (UIGestureRecognizer otherGestureRecognizer); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("name")] string Name { get; set; } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [Export ("modifierFlags")] UIKeyModifierFlags ModifierFlags { get; } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [Export ("buttonMask")] UIEventButtonMask ButtonMask { get; } @@ -6533,7 +6612,7 @@ namespace UIKit { [Export ("ignoreTouch:forEvent:")] void IgnoreTouch (UITouch touch, UIEvent forEvent); - [iOS (9,0)] + [iOS (9, 0)] [Sealed] // Docs: This method is intended to be called, not overridden. [Export ("ignorePress:forEvent:")] void IgnorePress (UIPress button, UIPressesEvent @event); @@ -6559,57 +6638,57 @@ namespace UIKit { [Export ("touchesCancelled:withEvent:")] void TouchesCancelled (NSSet touches, UIEvent evt); - [iOS (7,0)] + [iOS (7, 0)] [Export ("shouldRequireFailureOfGestureRecognizer:")] bool ShouldRequireFailureOfGestureRecognizer (UIGestureRecognizer otherGestureRecognizer); - [iOS (7,0)] + [iOS (7, 0)] [Export ("shouldBeRequiredToFailByGestureRecognizer:")] bool ShouldBeRequiredToFailByGestureRecognizer (UIGestureRecognizer otherGestureRecognizer); - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Export ("shouldReceiveEvent:")] bool ShouldReceive (UIEvent @event); - [iOS (9,1)] + [iOS (9, 1)] [Export ("touchesEstimatedPropertiesUpdated:")] void TouchesEstimatedPropertiesUpdated (NSSet touches); // FIXME: likely an array of UITouchType - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("allowedTouchTypes", ArgumentSemantic.Copy)] - NSNumber[] AllowedTouchTypes { get; set; } + NSNumber [] AllowedTouchTypes { get; set; } // FIXME: likely an array of UIPressType - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("allowedPressTypes", ArgumentSemantic.Copy)] - NSNumber[] AllowedPressTypes { get; set; } + NSNumber [] AllowedPressTypes { get; set; } - [iOS (9,2)] - [TV (9,1)] + [iOS (9, 2)] + [TV (9, 1)] [Export ("requiresExclusiveTouchType")] bool RequiresExclusiveTouchType { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesBegan:withEvent:")] void PressesBegan (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesChanged:withEvent:")] void PressesChanged (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesEnded:withEvent:")] void PressesEnded (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesCancelled:withEvent:")] void PressesCancelled (NSSet presses, UIPressesEvent evt); } [NoWatch] [NoMac] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] [Model] [Protocol] interface UIGestureRecognizerDelegate { @@ -6622,82 +6701,79 @@ namespace UIKit { [Export ("gestureRecognizerShouldBegin:"), DelegateName ("UIGestureProbe"), DefaultValue (true)] bool ShouldBegin (UIGestureRecognizer recognizer); - [iOS (7,0)] + [iOS (7, 0)] [Export ("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:"), DelegateName ("UIGesturesProbe"), DefaultValue (false)] bool ShouldBeRequiredToFailBy (UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer); - [iOS (7,0)] + [iOS (7, 0)] [Export ("gestureRecognizer:shouldRequireFailureOfGestureRecognizer:"), DelegateName ("UIGesturesProbe"), DefaultValue (false)] bool ShouldRequireFailureOf (UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer); - [iOS (9,0)] + [iOS (9, 0)] [Export ("gestureRecognizer:shouldReceivePress:"), DelegateName ("UIGesturesPress"), DefaultValue (false)] bool ShouldReceivePress (UIGestureRecognizer gestureRecognizer, UIPress press); - [TV (13,4), iOS (13,4)] + [TV (13, 4), iOS (13, 4)] [Export ("gestureRecognizer:shouldReceiveEvent:"), DelegateName ("UIGesturesEvent"), DefaultValue (true)] bool ShouldReceiveEvent (UIGestureRecognizer gestureRecognizer, UIEvent @event); } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(NSObject))] - interface UIGraphicsRendererFormat : NSCopying - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (NSObject))] + interface UIGraphicsRendererFormat : NSCopying { [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'PreferredFormat' instead.")] [Static] [Export ("defaultFormat")] UIGraphicsRendererFormat DefaultFormat { get; } - + [Export ("bounds")] CGRect Bounds { get; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Static] [Export ("preferredFormat")] UIGraphicsRendererFormat PreferredFormat { get; } } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(NSObject))] - interface UIGraphicsRendererContext - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (NSObject))] + interface UIGraphicsRendererContext { [Export ("CGContext")] CGContext CGContext { get; } - + [Export ("format")] UIGraphicsRendererFormat Format { get; } - + [Export ("fillRect:")] void FillRect (CGRect rect); - + [Export ("fillRect:blendMode:")] void FillRect (CGRect rect, CGBlendMode blendMode); - + [Export ("strokeRect:")] void StrokeRect (CGRect rect); - + [Export ("strokeRect:blendMode:")] void StrokeRect (CGRect rect, CGBlendMode blendMode); - + [Export ("clipToRect:")] void ClipToRect (CGRect rect); } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(NSObject))] + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (NSObject))] [Abstract] // quote form headers "An abstract base class for creating graphics renderers. Do not use this class directly." - interface UIGraphicsRenderer - { + interface UIGraphicsRenderer { [Export ("initWithBounds:")] NativeHandle Constructor (CGRect bounds); - + [Export ("initWithBounds:format:")] [DesignatedInitializer] NativeHandle Constructor (CGRect bounds, UIGraphicsRendererFormat format); - + [Export ("format")] UIGraphicsRendererFormat Format { get; } - + [Export ("allowsImageOutput")] bool AllowsImageOutput { get; } @@ -6719,14 +6795,13 @@ namespace UIKit { [Export ("runDrawingActions:completionActions:error:")] bool Run (Action drawingActions, [NullAllowed] Action completionActions, [NullAllowed] out NSError error); } - + // Not worth it, Action conveys more data //delegate void UIGraphicsImageDrawingActions (UIGraphicsImageRendererContext context); - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(UIGraphicsRendererFormat))] - interface UIGraphicsImageRendererFormat - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (UIGraphicsRendererFormat))] + interface UIGraphicsImageRendererFormat { [Export ("scale")] nfloat Scale { get; set; } @@ -6743,7 +6818,7 @@ namespace UIKit { [Export ("defaultFormat")] UIGraphicsImageRendererFormat DefaultFormat { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Static] [Export ("formatForTraitCollection:")] UIGraphicsImageRendererFormat GetFormat (UITraitCollection traitCollection); @@ -6753,18 +6828,16 @@ namespace UIKit { UIGraphicsImageRendererFormatRange PreferredRange { get; set; } } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(UIGraphicsRendererContext))] - interface UIGraphicsImageRendererContext - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (UIGraphicsRendererContext))] + interface UIGraphicsImageRendererContext { [Export ("currentImage")] UIImage CurrentImage { get; } } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof(UIGraphicsRenderer))] - interface UIGraphicsImageRenderer - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (UIGraphicsRenderer))] + interface UIGraphicsImageRenderer { [Export ("initWithSize:")] NativeHandle Constructor (CGSize size); @@ -6778,10 +6851,10 @@ namespace UIKit { [Export ("imageWithActions:")] UIImage CreateImage (Action actions); - + [Export ("PNGDataWithActions:")] NSData CreatePng (Action actions); - + [Export ("JPEGDataWithCompressionQuality:actions:")] NSData CreateJpeg (nfloat compressionQuality, Action actions); } @@ -6790,10 +6863,9 @@ namespace UIKit { //delegate void UIGraphicsPdfDrawingActions (UIGraphicsPdfRendererContext context); // Action - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof (UIGraphicsRendererFormat), Name="UIGraphicsPDFRendererFormat")] - interface UIGraphicsPdfRendererFormat - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (UIGraphicsRendererFormat), Name = "UIGraphicsPDFRendererFormat")] + interface UIGraphicsPdfRendererFormat { [Export ("documentInfo", ArgumentSemantic.Copy)] // TODO: add strongly typed binding NSDictionary DocumentInfo { get; set; } @@ -6804,10 +6876,9 @@ namespace UIKit { UIGraphicsPdfRendererFormat DefaultFormat { get; } } - [NoWatch, iOS (10,0), TV (10,0)] - [BaseType (typeof (UIGraphicsRendererContext), Name="UIGraphicsPDFRendererContext")] - interface UIGraphicsPdfRendererContext - { + [NoWatch, iOS (10, 0), TV (10, 0)] + [BaseType (typeof (UIGraphicsRendererContext), Name = "UIGraphicsPDFRendererContext")] + interface UIGraphicsPdfRendererContext { [Export ("pdfContextBounds")] CGRect PdfContextBounds { get; } @@ -6828,10 +6899,9 @@ namespace UIKit { } - [NoWatch, iOS (10,0), TV (10,0)] + [NoWatch, iOS (10, 0), TV (10, 0)] [BaseType (typeof (UIGraphicsRenderer), Name = "UIGraphicsPDFRenderer")] - interface UIGraphicsPdfRenderer - { + interface UIGraphicsPdfRenderer { [Export ("initWithBounds:format:")] [DesignatedInitializer] NativeHandle Constructor (CGRect bounds, UIGraphicsPdfRendererFormat format); @@ -6844,14 +6914,14 @@ namespace UIKit { } [BaseType (typeof (UIDynamicBehavior))] - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] interface UIGravityBehavior { [DesignatedInitializer] [Export ("initWithItems:")] NativeHandle Constructor ([Params] IUIDynamicItem [] items); - + [Export ("items", ArgumentSemantic.Copy)] - IUIDynamicItem [] Items { get; } + IUIDynamicItem [] Items { get; } [Export ("addItem:")] [PostGet ("Items")] @@ -6888,42 +6958,42 @@ namespace UIKit { #endif [Export ("autocapitalizationType")] UITextAutocapitalizationType AutocapitalizationType { get; set; } - + #if !NET [Abstract] #endif [Export ("autocorrectionType")] - UITextAutocorrectionType AutocorrectionType { get; set; } - + UITextAutocorrectionType AutocorrectionType { get; set; } + #if !NET [Abstract] #endif [Export ("keyboardType")] - UIKeyboardType KeyboardType { get; set; } - + UIKeyboardType KeyboardType { get; set; } + #if !NET [Abstract] #endif [Export ("keyboardAppearance")] - UIKeyboardAppearance KeyboardAppearance { get; set; } - + UIKeyboardAppearance KeyboardAppearance { get; set; } + #if !NET [Abstract] #endif [Export ("returnKeyType")] - UIReturnKeyType ReturnKeyType { get; set; } - + UIReturnKeyType ReturnKeyType { get; set; } + #if !NET [Abstract] #endif [Export ("enablesReturnKeyAutomatically")] - bool EnablesReturnKeyAutomatically { get; set; } - + bool EnablesReturnKeyAutomatically { get; set; } + #if !NET [Abstract] #endif [Export ("secureTextEntry")] - bool SecureTextEntry { [Bind ("isSecureTextEntry")] get; set; } + bool SecureTextEntry { [Bind ("isSecureTextEntry")] get; set; } #if !NET [Abstract] @@ -6935,15 +7005,15 @@ namespace UIKit { [Export ("textContentType")] NSString TextContentType { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("smartQuotesType", ArgumentSemantic.Assign)] UITextSmartQuotesType SmartQuotesType { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("smartDashesType", ArgumentSemantic.Assign)] UITextSmartDashesType SmartDashesType { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("smartInsertDeleteType", ArgumentSemantic.Assign)] UITextSmartInsertDeleteType SmartInsertDeleteType { get; set; } @@ -6969,7 +7039,7 @@ namespace UIKit { [Export ("UIKeyboardAnimationCurveUserInfoKey")] UIViewAnimationCurve AnimationCurve { get; } } - + [NoTV, NoWatch] [Static] interface UIKeyboard { @@ -6994,12 +7064,12 @@ namespace UIKit { NSString DidHideNotification { get; } [NoTV] - [Field("UIKeyboardWillChangeFrameNotification")] + [Field ("UIKeyboardWillChangeFrameNotification")] [Notification (typeof (UIKeyboardEventArgs))] NSString WillChangeFrameNotification { get; } - + [NoTV] - [Field("UIKeyboardDidChangeFrameNotification")] + [Field ("UIKeyboardDidChangeFrameNotification")] [Notification (typeof (UIKeyboardEventArgs))] NSString DidChangeFrameNotification { get; } @@ -7043,21 +7113,21 @@ namespace UIKit { NSString FrameBeginUserInfoKey { get; } [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Field ("UIKeyboardIsLocalUserInfoKey")] NSString IsLocalUserInfoKey { get; } } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (UICommand))] [DesignatedDefaultCtor] interface UIKeyCommand { - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("title")] string Title { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [NullAllowed, Export ("image", ArgumentSemantic.Copy)] UIImage Image { get; set; } @@ -7067,159 +7137,159 @@ namespace UIKit { [Export ("modifierFlags")] UIKeyModifierFlags ModifierFlags { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [NullAllowed, Export ("propertyList")] NSObject PropertyList { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("attributes", ArgumentSemantic.Assign)] UIMenuElementAttributes Attributes { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("state", ArgumentSemantic.Assign)] UIMenuElementState State { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("alternates")] UICommandAlternate [] Alternates { get; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [Export ("wantsPriorityOverSystemBehavior")] bool WantsPriorityOverSystemBehavior { get; set; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [Export ("allowsAutomaticLocalization")] bool AllowsAutomaticLocalization { get; set; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [Export ("allowsAutomaticMirroring")] bool AllowsAutomaticMirroring { get; set; } [Static, Export ("keyCommandWithInput:modifierFlags:action:")] UIKeyCommand Create (NSString keyCommandInput, UIKeyModifierFlags modifierFlags, Selector action); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Static] [Export ("commandWithTitle:image:action:input:modifierFlags:propertyList:")] UIKeyCommand Create (string title, [NullAllowed] UIImage image, Selector action, string input, UIKeyModifierFlags modifierFlags, [NullAllowed] NSObject propertyList); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Static] [Export ("commandWithTitle:image:action:input:modifierFlags:propertyList:alternates:")] UIKeyCommand Create (string title, [NullAllowed] UIImage image, Selector action, string input, UIKeyModifierFlags modifierFlags, [NullAllowed] NSObject propertyList, UICommandAlternate [] alternates); [Field ("UIKeyInputUpArrow")] NSString UpArrow { get; } - + [Field ("UIKeyInputDownArrow")] NSString DownArrow { get; } - + [Field ("UIKeyInputLeftArrow")] NSString LeftArrow { get; } - + [Field ("UIKeyInputRightArrow")] NSString RightArrow { get; } - + [Field ("UIKeyInputEscape")] NSString Escape { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputPageUp")] NSString PageUp { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputPageDown")] NSString PageDown { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputHome")] NSString Home { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputEnd")] NSString End { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF1")] NSString F1 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF2")] NSString F2 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF3")] NSString F3 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF4")] NSString F4 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF5")] NSString F5 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF6")] NSString F6 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF7")] NSString F7 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF8")] NSString F8 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF9")] NSString F9 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF10")] NSString F10 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF11")] NSString F11 { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [Field ("UIKeyInputF12")] NSString F12 { get; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("UIKeyInputDelete")] NSString Delete { get; } - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'UIKeyCommand.Create (NSString, UIKeyModifierFlags, Selector)' overload instead.")] [Static] [Export ("keyCommandWithInput:modifierFlags:action:discoverabilityTitle:")] UIKeyCommand Create (NSString keyCommandInput, UIKeyModifierFlags modifierFlags, Selector action, NSString discoverabilityTitle); - [iOS (9,0)] + [iOS (9, 0)] [NullAllowed] [Export ("discoverabilityTitle")] NSString DiscoverabilityTitle { get; set; } } - interface IUIKeyInput {} + interface IUIKeyInput { } [NoWatch] [Protocol] @@ -7249,40 +7319,40 @@ namespace UIKit { bool IsEmpty { get; } [Export ("start")] - UITextPosition Start { get; } + UITextPosition Start { get; } [Export ("end")] - UITextPosition End { get; } + UITextPosition End { get; } } - interface IUITextInput {} + interface IUITextInput { } [NoWatch] [Protocol] interface UITextInput : UIKeyInput { [Abstract] [NullAllowed] // by default this property is null - // This is declared as ArgumentSemantic.Copy, but UITextRange doesn't conform to NSCopying. - // Also declaring it as ArgumentSemantic.Copy makes UIKIt crash: https://github.com/xamarin/xamarin-macios/issues/15677 + // This is declared as ArgumentSemantic.Copy, but UITextRange doesn't conform to NSCopying. + // Also declaring it as ArgumentSemantic.Copy makes UIKIt crash: https://github.com/xamarin/xamarin-macios/issues/15677 [Export ("selectedTextRange")] - UITextRange SelectedTextRange { get; set; } + UITextRange SelectedTextRange { get; set; } [Abstract] [NullAllowed] // by default this property is null [Export ("markedTextStyle", ArgumentSemantic.Copy)] - NSDictionary MarkedTextStyle { get; set; } + NSDictionary MarkedTextStyle { get; set; } [Abstract] [Export ("beginningOfDocument")] - UITextPosition BeginningOfDocument { get; } + UITextPosition BeginningOfDocument { get; } [Abstract] [Export ("endOfDocument")] - UITextPosition EndOfDocument { get; } + UITextPosition EndOfDocument { get; } [Abstract] [Export ("inputDelegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakInputDelegate { get; set; } + NSObject WeakInputDelegate { get; set; } [Wrap ("WeakInputDelegate")] [Protocolize] @@ -7290,18 +7360,18 @@ namespace UIKit { [Abstract] [Export ("tokenizer")] - NSObject WeakTokenizer { get; } + NSObject WeakTokenizer { get; } [Wrap ("WeakTokenizer")] [Protocolize] UITextInputTokenizer Tokenizer { get; } [Export ("textInputView")] - UIView TextInputView { get; } + UIView TextInputView { get; } [Export ("selectionAffinity")] UITextStorageDirection SelectionAffinity { get; set; } - + [Abstract] [Export ("textInRange:")] string TextInRange (UITextRange range); @@ -7405,13 +7475,13 @@ namespace UIKit { [Field ("UITextInputCurrentInputModeDidChangeNotification")] [Notification] NSString CurrentInputModeDidChangeNotification { get; } - + [Export ("dictationRecognitionFailed")] void DictationRecognitionFailed (); - + [Export ("dictationRecordingDidEnd")] void DictationRecordingDidEnd (); - + [Export ("insertDictationResult:")] void InsertDictationResult (NSArray dictationResult); @@ -7431,63 +7501,62 @@ namespace UIKit { [Export ("removeDictationResultPlaceholder:willInsertResult:")] void RemoveDictationResultPlaceholder (NSObject placeholder, bool willInsertResult); - [iOS (9,0)] + [iOS (9, 0)] [Export ("beginFloatingCursorAtPoint:")] void BeginFloatingCursor (CGPoint point); - [iOS (9,0)] + [iOS (9, 0)] [Export ("updateFloatingCursorAtPoint:")] void UpdateFloatingCursor (CGPoint point); - [iOS (9,0)] + [iOS (9, 0)] [Export ("endFloatingCursor")] void EndFloatingCursor (); - [iOS (13,0)] + [iOS (13, 0)] [Export ("insertText:alternatives:style:")] - void InsertText (string text, string[] alternatives, UITextAlternativeStyle style); + void InsertText (string text, string [] alternatives, UITextAlternativeStyle style); - [iOS (13,0)] + [iOS (13, 0)] [Export ("setAttributedMarkedText:selectedRange:")] void SetAttributedMarkedText ([NullAllowed] NSAttributedString markedText, NSRange selectedRange); - [iOS (13,0)] + [iOS (13, 0)] [Export ("insertTextPlaceholderWithSize:")] UITextPlaceholder InsertTextPlaceholder (CGSize size); - [iOS (13,0)] + [iOS (13, 0)] [Export ("removeTextPlaceholder:")] void RemoveTextPlaceholder (UITextPlaceholder textPlaceholder); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("willPresentEditMenuWithAnimator:")] void WillPresentEditMenu (IUIEditMenuInteractionAnimating animator); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("willDismissEditMenuWithAnimator:")] void WillDismissEditMenu (IUIEditMenuInteractionAnimating animator); - [iOS (16,0)] + [iOS (16, 0)] [Export ("editMenuForTextRange:suggestedActions:")] [return: NullAllowed] - UIMenu GetEditMenu (UITextRange textRange, UIMenuElement[] suggestedActions); + UIMenu GetEditMenu (UITextRange textRange, UIMenuElement [] suggestedActions); } [NoWatch, NoTV] - [iOS (9,0)] - [BaseType (typeof(NSObject))] - interface UITextInputAssistantItem - { + [iOS (9, 0)] + [BaseType (typeof (NSObject))] + interface UITextInputAssistantItem { [Export ("allowsHidingShortcuts")] bool AllowsHidingShortcuts { get; set; } [Export ("leadingBarButtonGroups", ArgumentSemantic.Copy), NullAllowed] - UIBarButtonItemGroup[] LeadingBarButtonGroups { get; set; } - + UIBarButtonItemGroup [] LeadingBarButtonGroups { get; set; } + [Export ("trailingBarButtonGroups", ArgumentSemantic.Copy), NullAllowed] - UIBarButtonItemGroup[] TrailingBarButtonGroups { get; set; } + UIBarButtonItemGroup [] TrailingBarButtonGroups { get; set; } } - + [NoWatch] [BaseType (typeof (NSObject))] [Model] @@ -7513,7 +7582,7 @@ namespace UIKit { [NoWatch] [BaseType (typeof (NSObject))] - interface UITextInputStringTokenizer : UITextInputTokenizer{ + interface UITextInputStringTokenizer : UITextInputTokenizer { [Export ("initWithTextInput:")] NativeHandle Constructor (IUITextInput textInput); } @@ -7545,49 +7614,49 @@ namespace UIKit { interface UITextSelectionRect { [Export ("rect")] CGRect Rect { get; } - + [Export ("writingDirection")] - NSWritingDirection WritingDirection { get; } + NSWritingDirection WritingDirection { get; } [Export ("containsStart")] - bool ContainsStart { get; } + bool ContainsStart { get; } [Export ("containsEnd")] - bool ContainsEnd { get; } + bool ContainsEnd { get; } [Export ("isVertical")] - bool IsVertical { get; } + bool IsVertical { get; } } [NoWatch, NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] partial interface UILexicon : NSCopying { - - [Export ("entries")] - UILexiconEntry [] Entries { get; } + + [Export ("entries")] + UILexiconEntry [] Entries { get; } } - + [NoWatch, NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] partial interface UILexiconEntry : NSCopying { - - [Export ("documentText")] - string DocumentText { get; } - - [Export ("userInput")] - string UserInput { get; } + + [Export ("documentText")] + string DocumentText { get; } + + [Export ("userInput")] + string UserInput { get; } } [NoWatch] [BaseType (typeof (NSObject))] interface UILocalizedIndexedCollation { [Export ("sectionTitles")] - string [] SectionTitles { get; } + string [] SectionTitles { get; } [Export ("sectionIndexTitles")] - string [] SectionIndexTitles { get; } + string [] SectionIndexTitles { get; } [Static] [Export ("currentCollation")] @@ -7615,71 +7684,71 @@ namespace UIKit { [Export ("fireDate", ArgumentSemantic.Copy)] [NullAllowed] - NSDate FireDate { get; set; } + NSDate FireDate { get; set; } [Export ("timeZone", ArgumentSemantic.Copy)] [NullAllowed] - NSTimeZone TimeZone { get; set; } + NSTimeZone TimeZone { get; set; } [Export ("repeatInterval")] - NSCalendarUnit RepeatInterval { get; set; } + NSCalendarUnit RepeatInterval { get; set; } [Export ("repeatCalendar", ArgumentSemantic.Copy)] [NullAllowed] - NSCalendar RepeatCalendar { get; set; } + NSCalendar RepeatCalendar { get; set; } [Export ("alertBody", ArgumentSemantic.Copy)] [NullAllowed] - string AlertBody { get; set; } + string AlertBody { get; set; } [Export ("hasAction")] - bool HasAction { get; set; } + bool HasAction { get; set; } [Export ("alertAction", ArgumentSemantic.Copy)] [NullAllowed] - string AlertAction { get; set; } + string AlertAction { get; set; } [Export ("alertLaunchImage", ArgumentSemantic.Copy)] [NullAllowed] - string AlertLaunchImage { get; set; } + string AlertLaunchImage { get; set; } [Export ("soundName", ArgumentSemantic.Copy)] [NullAllowed] - string SoundName { get; set; } + string SoundName { get; set; } [Export ("applicationIconBadgeNumber")] - nint ApplicationIconBadgeNumber { get; set; } + nint ApplicationIconBadgeNumber { get; set; } [Export ("userInfo", ArgumentSemantic.Copy)] [NullAllowed] - NSDictionary UserInfo { get; set; } + NSDictionary UserInfo { get; set; } [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNNotificationSound.DefaultSound' instead.")] [Field ("UILocalNotificationDefaultSoundName")] NSString DefaultSoundName { get; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("region", ArgumentSemantic.Copy)] CLRegion Region { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("regionTriggersOnce", ArgumentSemantic.UnsafeUnretained)] bool RegionTriggersOnce { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("category")] string Category { get; set; } - [iOS (8,2)] + [iOS (8, 2)] [NullAllowed] [Export ("alertTitle")] string AlertTitle { get; set; } } - + [NoWatch] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UILongPressGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7699,7 +7768,7 @@ namespace UIKit { } [NoWatch] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UITapGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7711,13 +7780,13 @@ namespace UIKit { [Export ("numberOfTouchesRequired")] nuint NumberOfTouchesRequired { get; set; } - [NoTV, iOS (13,4)] + [NoTV, iOS (13, 4)] [Export ("buttonMaskRequired", ArgumentSemantic.Assign)] UIEventButtonMask ButtonMaskRequired { get; set; } } [NoWatch] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UIPanGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7739,13 +7808,13 @@ namespace UIKit { [Export ("velocityInView:")] CGPoint VelocityInView ([NullAllowed] UIView view); - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [Export ("allowedScrollTypesMask", ArgumentSemantic.Assign)] UIScrollTypeMask AllowedScrollTypesMask { get; set; } } [NoWatch, NoTV] - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (UIPanGestureRecognizer))] interface UIScreenEdgePanGestureRecognizer { @@ -7765,12 +7834,12 @@ namespace UIKit { [BaseType (typeof (UIControl))] interface UIRefreshControl : UIAppearance { [Export ("refreshing")] - bool Refreshing { [Bind ("isRefreshing")] get; } + bool Refreshing { [Bind ("isRefreshing")] get; } [NullAllowed] // by default this property is null [Export ("attributedTitle", ArgumentSemantic.Retain)] [Appearance] - NSAttributedString AttributedTitle { get; set; } + NSAttributedString AttributedTitle { get; set; } [Export ("beginRefreshing")] void BeginRefreshing (); @@ -7779,7 +7848,7 @@ namespace UIKit { void EndRefreshing (); } - [NoWatch, iOS (9,0)] + [NoWatch, iOS (9, 0)] [BaseType (typeof (NSObject))] interface UIRegion : NSCopying, NSCoding { [Static] @@ -7809,7 +7878,7 @@ namespace UIKit { } [NoWatch, NoTV] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UIRotationGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7822,7 +7891,7 @@ namespace UIKit { } [NoWatch, NoTV] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UIPinchGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7835,7 +7904,7 @@ namespace UIKit { } [NoWatch] - [BaseType (typeof(UIGestureRecognizer))] + [BaseType (typeof (UIGestureRecognizer))] interface UISwipeGestureRecognizer { [Export ("initWithTarget:action:")] NativeHandle Constructor (NSObject target, Selector action); @@ -7847,9 +7916,9 @@ namespace UIKit { [Export ("numberOfTouchesRequired")] nuint NumberOfTouchesRequired { get; set; } } - + [NoWatch] - [BaseType (typeof(UIView))] + [BaseType (typeof (UIView))] interface UIActivityIndicatorView : NSCoding { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -7880,7 +7949,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UIItemProviderPresentationSizeProviding { [Abstract] @@ -7904,7 +7973,7 @@ namespace UIKit { [ThreadSafe] [Export ("initWithData:")] NativeHandle Constructor (NSData data); - + [ThreadSafe] [Export ("size")] [Autorelease] @@ -7916,7 +7985,9 @@ namespace UIKit { [Advice ("This API is thread-safe only on 9.0 and later.")] #endif [ThreadSafe] - [Static] [Export ("imageNamed:")][Autorelease] + [Static] + [Export ("imageNamed:")] + [Autorelease] [return: NullAllowed] UIImage FromBundle (string name); @@ -7927,48 +7998,58 @@ namespace UIKit { [Advice ("This API is thread-safe only on 9.0 and later.")] #endif [ThreadSafe] - [iOS (8,0)] + [iOS (8, 0)] [Static, Export ("imageNamed:inBundle:compatibleWithTraitCollection:")] [return: NullAllowed] UIImage FromBundle (string name, [NullAllowed] NSBundle bundle, [NullAllowed] UITraitCollection traitCollection); #endif // !WATCH - [Static] [Export ("imageWithContentsOfFile:")][Autorelease] + [Static] + [Export ("imageWithContentsOfFile:")] + [Autorelease] [ThreadSafe] [return: NullAllowed] UIImage FromFile (string filename); - - [Static] [Export ("imageWithData:")][Autorelease] + + [Static] + [Export ("imageWithData:")] + [Autorelease] [ThreadSafe] [return: NullAllowed] UIImage LoadFromData (NSData data); - [Static] [Export ("imageWithCGImage:")][Autorelease] + [Static] + [Export ("imageWithCGImage:")] + [Autorelease] [ThreadSafe] UIImage FromImage (CGImage image); - [Static][Export ("imageWithCGImage:scale:orientation:")][Autorelease] - [ThreadSafe] + [Static] + [Export ("imageWithCGImage:scale:orientation:")] + [Autorelease] + [ThreadSafe] UIImage FromImage (CGImage image, nfloat scale, UIImageOrientation orientation); [NoWatch] - [Static][Export ("imageWithCIImage:")][Autorelease] - [ThreadSafe] + [Static] + [Export ("imageWithCIImage:")] + [Autorelease] + [ThreadSafe] UIImage FromImage (CIImage image); // From the NSItemProviderReading protocol, a static method. [Static] - [iOS (11,0), NoWatch, NoTV] + [iOS (11, 0), NoWatch, NoTV] [Export ("readableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] #if !WATCH && !TVOS new #endif - string[] ReadableTypeIdentifiers { get; } - + string [] ReadableTypeIdentifiers { get; } + // From the NSItemProviderReading protocol, a static method. [Static] [Export ("objectWithItemProviderData:typeIdentifier:error:")] - [iOS (11,0), NoWatch, NoTV] + [iOS (11, 0), NoWatch, NoTV] [return: NullAllowed] #if !WATCH && !TVOS new @@ -7977,12 +8058,12 @@ namespace UIKit { [Export ("renderingMode")] [ThreadSafe] - [iOS (7,0)] - UIImageRenderingMode RenderingMode { get; } + [iOS (7, 0)] + UIImageRenderingMode RenderingMode { get; } [Export ("imageWithRenderingMode:")] [ThreadSafe] - [iOS (7,0)] + [iOS (7, 0)] UIImage ImageWithRenderingMode (UIImageRenderingMode renderingMode); [Export ("CGImage")] @@ -7992,7 +8073,7 @@ namespace UIKit { [Export ("imageOrientation")] [ThreadSafe] - UIImageOrientation Orientation { get; } + UIImageOrientation Orientation { get; } [Export ("drawAtPoint:")] [ThreadSafe] @@ -8015,7 +8096,8 @@ namespace UIKit { void DrawAsPatternInRect (CGRect rect); [NoTV] - [Export ("stretchableImageWithLeftCapWidth:topCapHeight:")][Autorelease] + [Export ("stretchableImageWithLeftCapWidth:topCapHeight:")] + [Autorelease] [ThreadSafe] UIImage StretchableImage (nint leftCapWidth, nint topCapHeight); @@ -8033,17 +8115,20 @@ namespace UIKit { [ThreadSafe] nfloat CurrentScale { get; } - [Static, Export ("animatedImageNamed:duration:")][Autorelease] + [Static, Export ("animatedImageNamed:duration:")] + [Autorelease] [ThreadSafe] [return: NullAllowed] UIImage CreateAnimatedImage (string name, double duration); - [Static, Export ("animatedImageWithImages:duration:")][Autorelease] + [Static, Export ("animatedImageWithImages:duration:")] + [Autorelease] [ThreadSafe] [return: NullAllowed] UIImage CreateAnimatedImage (UIImage [] images, double duration); - [Static, Export ("animatedResizableImageNamed:capInsets:duration:")][Autorelease] + [Static, Export ("animatedResizableImageNamed:capInsets:duration:")] + [Autorelease] [ThreadSafe] [return: NullAllowed] UIImage CreateAnimatedImage (string name, UIEdgeInsets capInsets, double duration); @@ -8059,14 +8144,14 @@ namespace UIKit { [Export ("initWithCGImage:scale:orientation:")] [ThreadSafe] - NativeHandle Constructor (CGImage cgImage, nfloat scale, UIImageOrientation orientation); + NativeHandle Constructor (CGImage cgImage, nfloat scale, UIImageOrientation orientation); [NoWatch] [Export ("CIImage")] [ThreadSafe] [NullAllowed] CIImage CIImage { get; } - + [Export ("images")] [ThreadSafe] [NullAllowed] @@ -8076,7 +8161,8 @@ namespace UIKit { [ThreadSafe] double Duration { get; } - [Export ("resizableImageWithCapInsets:")][Autorelease] + [Export ("resizableImageWithCapInsets:")] + [Autorelease] [ThreadSafe] UIImage CreateResizableImage (UIEdgeInsets capInsets); @@ -8089,7 +8175,7 @@ namespace UIKit { // [Export ("alignmentRectInsets")] [ThreadSafe] - UIEdgeInsets AlignmentRectInsets { get; } + UIEdgeInsets AlignmentRectInsets { get; } [Static] [Export ("imageWithData:scale:")] @@ -8111,7 +8197,7 @@ namespace UIKit { [Export ("initWithCIImage:scale:orientation:")] [ThreadSafe] NativeHandle Constructor (CIImage ciImage, nfloat scale, UIImageOrientation orientation); - + [Export ("resizableImageWithCapInsets:resizingMode:")] [ThreadSafe] UIImage CreateResizableImage (UIEdgeInsets capInsets, UIImageResizingMode resizingMode); @@ -8121,7 +8207,7 @@ namespace UIKit { [ThreadSafe] [return: NullAllowed] UIImage CreateAnimatedImage (string name, UIEdgeInsets capInsets, UIImageResizingMode resizingMode, double duration); - + [Export ("imageWithAlignmentRectInsets:")] [ThreadSafe, Autorelease] UIImage ImageWithAlignmentRectInsets (UIEdgeInsets alignmentInsets); @@ -8130,176 +8216,176 @@ namespace UIKit { [ThreadSafe] UIImageResizingMode ResizingMode { get; } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [Export ("traitCollection")] [ThreadSafe] UITraitCollection TraitCollection { get; } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [Export ("imageAsset")] [ThreadSafe] [NullAllowed] UIImageAsset ImageAsset { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("imageFlippedForRightToLeftLayoutDirection")] UIImage GetImageFlippedForRightToLeftLayoutDirection (); - [iOS (9,0)] + [iOS (9, 0)] [Export ("flipsForRightToLeftLayoutDirection")] bool FlipsForRightToLeftLayoutDirection { get; } - [NoWatch, iOS (10,0), TV (10,0)] + [NoWatch, iOS (10, 0), TV (10, 0)] [Export ("imageRendererFormat")] UIGraphicsImageRendererFormat ImageRendererFormat { get; } - [Watch (3,0)] - [iOS (10,0), TV (10,0)] + [Watch (3, 0)] + [iOS (10, 0), TV (10, 0)] [Export ("imageWithHorizontallyFlippedOrientation")] UIImage GetImageWithHorizontallyFlippedOrientation (); // From the NSItemProviderWriting protocol, a static method. // NSItemProviderWriting doesn't seem to be implemented for tvOS/watchOS, even though the headers say otherwise. - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Static] [Export ("writableTypeIdentifiersForItemProvider", ArgumentSemantic.Copy)] #if !WATCH && !TVOS new #endif - string[] WritableTypeIdentifiers { get; } + string [] WritableTypeIdentifiers { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("systemImageNamed:")] [return: NullAllowed] UIImage GetSystemImage (string name); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("systemImageNamed:withConfiguration:")] [return: NullAllowed] UIImage GetSystemImage (string name, [NullAllowed] UIImageConfiguration configuration); - [NoWatch, TV (13,0), iOS (13,0)] // UITraitCollection is not available on watch, it has been reported before. + [NoWatch, TV (13, 0), iOS (13, 0)] // UITraitCollection is not available on watch, it has been reported before. [Static] [Export ("systemImageNamed:compatibleWithTraitCollection:")] [return: NullAllowed] UIImage GetSystemImage (string name, [NullAllowed] UITraitCollection traitCollection); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [ThreadSafe] [Export ("imageNamed:inBundle:withConfiguration:")] [return: NullAllowed] UIImage FromBundle (string name, [NullAllowed] NSBundle bundle, [NullAllowed] UIImageConfiguration configuration); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("symbolImage")] bool SymbolImage { [Bind ("isSymbolImage")] get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("baselineOffsetFromBottom")] nfloat BaselineOffsetFromBottom { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("hasBaseline")] bool HasBaseline { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageWithBaselineOffsetFromBottom:")] UIImage GetImageFromBottom (nfloat baselineOffset); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageWithoutBaseline")] UIImage GetImageWithoutBaseline (); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("configuration", ArgumentSemantic.Copy)] [NullAllowed] UIImageConfiguration Configuration { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageWithConfiguration:")] UIImage ApplyConfiguration (UIImageConfiguration configuration); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("symbolConfiguration", ArgumentSemantic.Copy)] UIImageSymbolConfiguration SymbolConfiguration { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageByApplyingSymbolConfiguration:")] [return: NullAllowed] UIImage ApplyConfiguration (UIImageSymbolConfiguration configuration); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageWithTintColor:")] UIImage ApplyTintColor (UIColor color); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("imageWithTintColor:renderingMode:")] UIImage ApplyTintColor (UIColor color, UIImageRenderingMode renderingMode); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("imageByPreparingForDisplay")] [return: NullAllowed] UIImage GetImageByPreparingForDisplay (); [Async] - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("prepareForDisplayWithCompletionHandler:")] void PrepareForDisplay (Action completionHandler); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("imageByPreparingThumbnailOfSize:")] [return: NullAllowed] UIImage GetImageByPreparingThumbnail (CGSize ofSize); [Async] - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("prepareThumbnailOfSize:completionHandler:")] void PrepareThumbnail (CGSize OfSize, Action completionHandler); // Inlined from UIImage (PreconfiguredSystemImages) - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("actionsImage", ArgumentSemantic.Strong)] UIImage ActionsImage { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("addImage", ArgumentSemantic.Strong)] UIImage AddImage { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("removeImage", ArgumentSemantic.Strong)] UIImage RemoveImage { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("checkmarkImage", ArgumentSemantic.Strong)] UIImage CheckmarkImage { get; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("strokedCheckmarkImage", ArgumentSemantic.Strong)] UIImage StrokedCheckmarkImage { get; } - [Watch (9,0), TV (16,0), MacCatalyst (16,0), iOS (16,0)] + [Watch (9, 0), TV (16, 0), MacCatalyst (16, 0), iOS (16, 0)] [Static] [Export ("systemImageNamed:variableValue:withConfiguration:")] [return: NullAllowed] UIImage GetSystemImage (string name, double value, [NullAllowed] UIImageConfiguration configuration); - [Watch (9,0), TV (16,0), MacCatalyst (16,0), iOS (16,0)] + [Watch (9, 0), TV (16, 0), MacCatalyst (16, 0), iOS (16, 0)] [Static] [Export ("imageNamed:inBundle:variableValue:withConfiguration:")] [return: NullAllowed] UIImage FromBundle (string name, [NullAllowed] NSBundle bundle, double value, [NullAllowed] UIImageConfiguration configuration); } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIImageConfiguration : NSCopying, NSSecureCoding { @@ -8315,7 +8401,7 @@ namespace UIKit { UIImageConfiguration GetConfiguration ([NullAllowed] UIImageConfiguration otherConfiguration); } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [BaseType (typeof (UIImageConfiguration))] interface UIImageSymbolConfiguration { @@ -8359,17 +8445,17 @@ namespace UIKit { [Export ("configurationWithFont:scale:")] UIImageSymbolConfiguration Create (UIFont font, UIImageSymbolScale scale); - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("configurationWithHierarchicalColor:")] UIImageSymbolConfiguration Create (UIColor hierarchicalColor); - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("configurationWithPaletteColors:")] - UIImageSymbolConfiguration Create (UIColor[] paletteColors); + UIImageSymbolConfiguration Create (UIColor [] paletteColors); - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("configurationPreferringMulticolor")] UIImageSymbolConfiguration ConfigurationPreferringMulticolor { get; } @@ -8389,13 +8475,13 @@ namespace UIKit { [Export ("isEqualToConfiguration:")] bool IsEqualTo ([NullAllowed] UIImageSymbolConfiguration otherConfiguration); - [Watch (9,0), TV (16,0), MacCatalyst (16,0), iOS (16,0)] + [Watch (9, 0), TV (16, 0), MacCatalyst (16, 0), iOS (16, 0)] [Static] [Export ("configurationPreferringMonochrome")] UIImageSymbolConfiguration GetConfigurationPreferringMonochrome (); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UIMenuElement))] [DisableDefaultCtor] interface UIMenu { @@ -8407,17 +8493,17 @@ namespace UIKit { [Export ("options")] UIMenuOptions Options { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("selectedElements")] UIMenuElement [] SelectedElements { get; } [Export ("children")] UIMenuElement [] Children { get; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("menuWithChildren:")] - UIMenu Create (UIMenuElement[] children); + UIMenu Create (UIMenuElement [] children); [Static] [Export ("menuWithTitle:children:")] @@ -8425,17 +8511,17 @@ namespace UIKit { [Static] [Export ("menuWithTitle:image:identifier:options:children:")] - UIMenu Create (string title, [NullAllowed] UIImage image, [NullAllowed] [BindAs (typeof (UIMenuIdentifier))] NSString identifier, UIMenuOptions options, UIMenuElement [] children); + UIMenu Create (string title, [NullAllowed] UIImage image, [NullAllowed][BindAs (typeof (UIMenuIdentifier))] NSString identifier, UIMenuOptions options, UIMenuElement [] children); [Export ("menuByReplacingChildren:")] UIMenu GetMenuByReplacingChildren (UIMenuElement [] newChildren); - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredElementSize", ArgumentSemantic.Assign)] UIMenuElementSize PreferredElementSize { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIMenuElement : NSCopying, NSSecureCoding, UIAccessibilityIdentification { @@ -8443,7 +8529,7 @@ namespace UIKit { [Export ("title")] string Title { get; } - [iOS (15,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("subtitle")] string Subtitle { get; set; } @@ -8451,7 +8537,7 @@ namespace UIKit { UIImage Image { get; } } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UIPreviewParameters : NSCopying { @@ -8462,7 +8548,7 @@ namespace UIKit { [NullAllowed, Export ("visiblePath", ArgumentSemantic.Copy)] UIBezierPath VisiblePath { get; set; } - [iOS (14,0)] + [iOS (14, 0)] [NullAllowed, Export ("shadowPath", ArgumentSemantic.Copy)] UIBezierPath ShadowPath { get; set; } @@ -8523,26 +8609,26 @@ namespace UIKit { UITargetedPreview GetRetargetedPreview (UIPreviewTarget newTarget); } - [NoWatch, iOS (8,0)] + [NoWatch, iOS (8, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] partial interface UIImageAsset : NSSecureCoding { - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("imageWithConfiguration:")] UIImage FromConfiguration (UIImageConfiguration configuration); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("registerImage:withConfiguration:")] void RegisterImage (UIImage image, UIImageConfiguration configuration); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("unregisterImageWithConfiguration:")] void UnregisterImage (UIImageConfiguration configuration); - + [Export ("imageWithTraitCollection:")] UIImage FromTraitCollection (UITraitCollection traitCollection); - + [Export ("registerImage:withTraitCollection:")] void RegisterImage (UIImage image, UITraitCollection traitCollection); @@ -8558,15 +8644,15 @@ namespace UIKit { [Export ("subtype")] UIEventSubtype Subtype { get; } - + [Export ("timestamp")] double Timestamp { get; } - [TV (13,4), NoWatch, iOS (13,4)] + [TV (13, 4), NoWatch, iOS (13, 4)] [Export ("modifierFlags")] UIKeyModifierFlags ModifierFlags { get; } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [Export ("buttonMask")] UIEventButtonMask ButtonMask { get; } @@ -8578,20 +8664,20 @@ namespace UIKit { [Export ("touchesForWindow:")] NSSet TouchesForWindow (UIWindow window); - + [Export ("touchesForGestureRecognizer:")] NSSet TouchesForGestureRecognizer (UIGestureRecognizer window); - [iOS (9,0)] + [iOS (9, 0)] [Export ("coalescedTouchesForTouch:")] [return: NullAllowed] - UITouch[] GetCoalescedTouches (UITouch touch); + UITouch [] GetCoalescedTouches (UITouch touch); - [iOS (9,0)] + [iOS (9, 0)] [Export ("predictedTouchesForTouch:")] [return: NullAllowed] - UITouch[] GetPredictedTouches (UITouch touch); + UITouch [] GetPredictedTouches (UITouch touch); } // that's one of the few enums based on CGFloat - we expose the [n]float directly in the API @@ -8609,20 +8695,20 @@ namespace UIKit { [Field ("UIWindowLevelStatusBar")] nfloat StatusBar { get; } } - + [NoWatch] [BaseType (typeof (UIView))] interface UIWindow { - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("initWithWindowScene:")] NativeHandle Constructor (UIWindowScene windowScene); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [NullAllowed, Export ("windowScene", ArgumentSemantic.Weak)] UIWindowScene WindowScene { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [NullAllowed, Export ("canResizeToFitContent")] bool CanResizeToFitContent { get; [Bind ("setCanResizeToFitContent:")] set; } @@ -8631,7 +8717,7 @@ namespace UIKit { [Export ("makeKeyAndVisible")] void MakeKeyAndVisible (); - + [Export ("makeKeyWindow")] void MakeKeyWindow (); @@ -8640,14 +8726,14 @@ namespace UIKit { [Export ("resignKeyWindow")] void ResignKeyWindow (); - + [Export ("isKeyWindow")] bool IsKeyWindow { get; } [Export ("windowLevel")] nfloat WindowLevel { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("canBecomeKeyWindow")] bool CanBecomeKeyWindow { get; } @@ -8683,20 +8769,20 @@ namespace UIKit { [Field ("UIWindowDidBecomeVisibleNotification")] [Notification] NSString DidBecomeVisibleNotification { get; } - + [Field ("UIWindowDidBecomeHiddenNotification")] [Notification] NSString DidBecomeHiddenNotification { get; } - + [Field ("UIWindowDidBecomeKeyNotification")] [Notification] NSString DidBecomeKeyNotification { get; } - + [Field ("UIWindowDidResignKeyNotification")] [Notification] NSString DidResignKeyNotification { get; } - [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("safeAreaAspectFitLayoutGuide", ArgumentSemantic.Strong)] IUILayoutGuideAspectFitting SafeAreaAspectFitLayoutGuide { get; } } @@ -8714,7 +8800,7 @@ namespace UIKit { [DesignatedInitializer] NativeHandle Constructor (CGRect frame); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithFrame:primaryAction:")] NativeHandle Constructor (CGRect frame, [NullAllowed] UIAction primaryAction); @@ -8722,7 +8808,7 @@ namespace UIKit { bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("selected")] - bool Selected { [Bind("isSelected")] get; set; } + bool Selected { [Bind ("isSelected")] get; set; } [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } @@ -8734,13 +8820,13 @@ namespace UIKit { UIControlContentHorizontalAlignment HorizontalAlignment { get; set; } [NoWatch] - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("effectiveContentHorizontalAlignment")] UIControlContentHorizontalAlignment EffectiveContentHorizontalAlignment { get; } [Export ("state")] UIControlState State { get; } - + [Export ("isTracking")] bool Tracking { get; } @@ -8752,20 +8838,20 @@ namespace UIKit { [Export ("continueTrackingWithTouch:withEvent:")] bool ContinueTracking (UITouch uitouch, [NullAllowed] UIEvent uievent); - + [Export ("endTrackingWithTouch:withEvent:")] void EndTracking (UITouch uitouch, [NullAllowed] UIEvent uievent); - + [Export ("cancelTrackingWithEvent:")] void CancelTracking ([NullAllowed] UIEvent uievent); [Export ("addTarget:action:forControlEvents:")] - void AddTarget ([NullAllowed] NSObject target, Selector sel, UIControlEvent events); + void AddTarget ([NullAllowed] NSObject target, Selector sel, UIControlEvent events); [Sealed] [Internal] [Export ("addTarget:action:forControlEvents:")] - void AddTarget ([NullAllowed] NSObject target, IntPtr sel, UIControlEvent events); + void AddTarget ([NullAllowed] NSObject target, IntPtr sel, UIControlEvent events); [Export ("removeTarget:action:forControlEvents:")] void RemoveTarget ([NullAllowed] NSObject target, [NullAllowed] Selector sel, UIControlEvent events); @@ -8775,88 +8861,89 @@ namespace UIKit { [Export ("removeTarget:action:forControlEvents:")] void RemoveTarget ([NullAllowed] NSObject target, IntPtr sel, UIControlEvent events); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("addAction:forControlEvents:")] void AddAction (UIAction action, UIControlEvent controlEvents); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("removeAction:forControlEvents:")] void RemoveAction (UIAction action, UIControlEvent controlEvents); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("removeActionForIdentifier:forControlEvents:")] void RemoveAction (string actionIdentifier, UIControlEvent controlEvents); [Export ("allTargets")] NSSet AllTargets { get; } - + [Export ("allControlEvents")] UIControlEvent AllControlEvents { get; } [Export ("actionsForTarget:forControlEvent:")] string [] GetActions ([NullAllowed] NSObject target, UIControlEvent events); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("enumerateEventHandlers:")] void EnumerateEventHandlers (UIControlEnumerateEventsIteratorHandler iteratorHandler); - + [Export ("sendAction:to:forEvent:")] void SendAction (Selector action, [NullAllowed] NSObject target, [NullAllowed] UIEvent uievent); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("sendAction:")] void SendAction (UIAction action); [Export ("sendActionsForControlEvents:")] void SendActionForControlEvents (UIControlEvent events); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [NullAllowed, Export ("contextMenuInteraction", ArgumentSemantic.Strong)] UIContextMenuInteraction ContextMenuInteraction { get; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("contextMenuInteractionEnabled")] bool ContextMenuInteractionEnabled { [Bind ("isContextMenuInteractionEnabled")] get; set; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("showsMenuAsPrimaryAction")] bool ShowsMenuAsPrimaryAction { get; set; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("menuAttachmentPointForConfiguration:")] CGPoint GetMenuAttachmentPoint (UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("toolTip")] string ToolTip { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("toolTipInteraction", ArgumentSemantic.Strong)] UIToolTipInteraction ToolTipInteraction { get; } } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] interface UIBarPositioning { [Abstract] - [iOS (7,0)] + [iOS (7, 0)] [Export ("barPosition")] UIBarPosition BarPosition { get; } } - interface IUIBarPositioning {} + interface IUIBarPositioning { } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] interface UIBarPositioningDelegate { - [Export ("positionForBar:")][DelegateName ("Func"), NoDefaultValue] + [Export ("positionForBar:")] + [DelegateName ("Func"), NoDefaultValue] UIBarPosition GetPositionForBar (IUIBarPositioning barPositioning); } - + [BaseType (typeof (NSObject))] [ThreadSafe] [DisableDefaultCtor] // designated @@ -8870,22 +8957,22 @@ namespace UIKit { [Export ("bezierPath"), Static] UIBezierPath Create (); - + [Export ("bezierPathWithArcCenter:radius:startAngle:endAngle:clockwise:"), Static] UIBezierPath FromArc (CGPoint center, nfloat radius, nfloat startAngle, nfloat endAngle, bool clockwise); - + [Export ("bezierPathWithCGPath:"), Static] UIBezierPath FromPath (CGPath path); - + [Export ("bezierPathWithOvalInRect:"), Static] UIBezierPath FromOval (CGRect inRect); - + [Export ("bezierPathWithRect:"), Static] UIBezierPath FromRect (CGRect rect); - + [Export ("bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:"), Static] UIBezierPath FromRoundedRect (CGRect rect, UIRectCorner corners, CGSize radii); - + [Export ("bezierPathWithRoundedRect:cornerRadius:"), Static] UIBezierPath FromRoundedRect (CGRect rect, nfloat cornerRadius); @@ -8895,7 +8982,7 @@ namespace UIKit { [Export ("moveToPoint:")] void MoveTo (CGPoint point); - + [Export ("addLineToPoint:")] void AddLineTo (CGPoint point); @@ -8977,12 +9064,12 @@ namespace UIKit { UIBezierPath BezierPathByReversingPath (); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] delegate UIPointerStyle UIButtonPointerStyleProvider (UIButton button, UIPointerEffect proposedEffect, UIPointerShape proposedShape); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] delegate void UIButtonConfigurationUpdateHandler (UIButton button); - + [NoWatch] [BaseType (typeof (UIControl))] interface UIButton : UIAccessibilityContentSizeCategoryImageAdjusting @@ -8994,58 +9081,59 @@ namespace UIKit { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("initWithFrame:primaryAction:")] NativeHandle Constructor (CGRect frame, [NullAllowed] UIAction primaryAction); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("systemButtonWithImage:target:action:")] UIButton GetSystemButton (UIImage image, [NullAllowed] NSObject target, [NullAllowed] Selector action); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Static] [Export ("systemButtonWithPrimaryAction:")] UIButton GetSystemButton ([NullAllowed] UIAction primaryAction); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Static] [Export ("buttonWithType:primaryAction:")] UIButton FromType (UIButtonType buttonType, [NullAllowed] UIAction primaryAction); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("buttonWithConfiguration:primaryAction:")] UIButton GetButton (UIButtonConfiguration configuration, [NullAllowed] UIAction primaryAction); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("configuration", ArgumentSemantic.Copy)] UIButtonConfiguration Configuration { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("setNeedsUpdateConfiguration")] void SetNeedsUpdateConfiguration (); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("updateConfiguration")] void UpdateConfiguration (); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("configurationUpdateHandler", ArgumentSemantic.Copy)] UIButtonConfigurationUpdateHandler ConfigurationUpdateHandler { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("automaticallyUpdatesConfiguration")] bool AutomaticallyUpdatesConfiguration { get; set; } - [Export ("buttonWithType:")] [Static] + [Export ("buttonWithType:")] + [Static] UIButton FromType (UIButtonType type); [Deprecated (PlatformName.iOS, 15, 0, message: "Ignored when 'UIButtonConfiguration' is used.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Ignored when 'UIButtonConfiguration' is used.")] [Appearance] [Export ("contentEdgeInsets")] - UIEdgeInsets ContentEdgeInsets {get;set;} + UIEdgeInsets ContentEdgeInsets { get; set; } [Deprecated (PlatformName.iOS, 15, 0, message: "Ignored when 'UIButtonConfiguration' is used.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Ignored when 'UIButtonConfiguration' is used.")] @@ -9080,11 +9168,11 @@ namespace UIKit { [Export ("buttonType")] UIButtonType ButtonType { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("hovered")] bool Hovered { [Bind ("isHovered")] get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("held")] bool Held { [Bind ("isHeld")] get; } @@ -9092,20 +9180,20 @@ namespace UIKit { [Export ("role", ArgumentSemantic.Assign)] UIButtonRole Role { get; set; } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [Export ("pointerInteractionEnabled")] bool PointerInteractionEnabled { [Bind ("isPointerInteractionEnabled")] get; set; } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [NullAllowed, Export ("pointerStyleProvider", ArgumentSemantic.Copy)] UIButtonPointerStyleProvider PointerStyleProvider { get; set; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [NullAllowed] [Export ("menu", ArgumentSemantic.Copy)] UIMenu Menu { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("changesSelectionAsPrimaryAction")] bool ChangesSelectionAsPrimaryAction { get; set; } @@ -9126,42 +9214,42 @@ namespace UIKit { [Export ("setBackgroundImage:forState:")] [Appearance] - void SetBackgroundImage ([NullAllowed] UIImage image, UIControlState forState); + void SetBackgroundImage ([NullAllowed] UIImage image, UIControlState forState); [Export ("titleForState:")] string Title (UIControlState state); - + [Export ("titleColorForState:")] [Appearance] UIColor TitleColor (UIControlState state); - + [Export ("titleShadowColorForState:")] [Appearance] UIColor TitleShadowColor (UIControlState state); - + [Export ("imageForState:")] [Appearance] UIImage ImageForState (UIControlState state); - + [Export ("backgroundImageForState:")] [Appearance] UIImage BackgroundImageForState (UIControlState state); [Export ("currentTitle", ArgumentSemantic.Retain)] string CurrentTitle { get; } - + [Export ("currentTitleColor", ArgumentSemantic.Retain)] [Appearance] UIColor CurrentTitleColor { get; } - + [Export ("currentTitleShadowColor", ArgumentSemantic.Retain)] [Appearance] UIColor CurrentTitleShadowColor { get; } - + [Export ("currentImage", ArgumentSemantic.Retain)] [Appearance] UIImage CurrentImage { get; } - + [Export ("currentBackgroundImage", ArgumentSemantic.Retain)] [Appearance] UIImage CurrentBackgroundImage { get; } @@ -9172,7 +9260,7 @@ namespace UIKit { [Export ("imageView", ArgumentSemantic.Retain)] UIImageView ImageView { get; } - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("subtitleLabel", ArgumentSemantic.Strong)] UILabel SubtitleLabel { get; } @@ -9204,7 +9292,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 3, 0)] [Export ("lineBreakMode")] UILineBreakMode LineBreakMode { get; set; } - + [Deprecated (PlatformName.iOS, 3, 0)] [Export ("titleShadowOffset")] CGSize TitleShadowOffset { get; set; } @@ -9214,7 +9302,7 @@ namespace UIKit { // 6.0 // [Export ("currentAttributedTitle", ArgumentSemantic.Retain)] - NSAttributedString CurrentAttributedTitle { get; } + NSAttributedString CurrentAttributedTitle { get; } [Export ("setAttributedTitle:forState:")] void SetAttributedTitle ([NullAllowed] NSAttributedString title, UIControlState state); @@ -9223,11 +9311,11 @@ namespace UIKit { NSAttributedString GetAttributedTitle (UIControlState state); [Appearance] - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("setPreferredSymbolConfiguration:forImageInState:")] void SetPreferredSymbolConfiguration ([NullAllowed] UIImageSymbolConfiguration configuration, UIControlState state); - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Export ("preferredSymbolConfigurationForImageInState:")] [return: NullAllowed] UIImageSymbolConfiguration GetPreferredSymbolConfiguration (UIControlState state); @@ -9238,26 +9326,27 @@ namespace UIKit { // From UIButton (UIBehavioralStyle) - [NoWatch, NoTV, MacCatalyst (15,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), iOS (15, 0)] [Export ("behavioralStyle")] UIBehavioralStyle BehavioralStyle { get; } - [NoWatch, NoTV, MacCatalyst (15, 0),iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), iOS (15, 0)] [Export ("preferredBehavioralStyle", ArgumentSemantic.Assign)] UIBehavioralStyle PreferredBehavioralStyle { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredMenuElementOrder", ArgumentSemantic.Assign)] UIContextMenuConfigurationElementOrder PreferredMenuElementOrder { get; set; } } - + [NoWatch] [BaseType (typeof (UIView))] interface UILabel : UIContentSizeCategoryAdjusting { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Export ("text", ArgumentSemantic.Copy)][NullAllowed] + [Export ("text", ArgumentSemantic.Copy)] + [NullAllowed] string Text { get; set; } [Export ("font", ArgumentSemantic.Retain)] @@ -9272,7 +9361,7 @@ namespace UIKit { [Export ("shadowColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIColor ShadowColor { get; set;} + UIColor ShadowColor { get; set; } [Export ("shadowOffset")] [Appearance] @@ -9283,7 +9372,7 @@ namespace UIKit { [Export ("lineBreakMode")] UILineBreakMode LineBreakMode { get; set; } - + [Export ("highlightedTextColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] @@ -9291,12 +9380,12 @@ namespace UIKit { [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } - + [Export ("enabled")] bool Enabled { [Bind ("isEnabled")] get; set; } [Export ("numberOfLines")] - nint Lines { get; set; } + nint Lines { get; set; } [Export ("adjustsFontSizeToFitWidth")] bool AdjustsFontSizeToFitWidth { get; set; } @@ -9308,7 +9397,7 @@ namespace UIKit { [Export ("baselineAdjustment")] UIBaselineAdjustment BaselineAdjustment { get; set; } - + [Export ("textRectForBounds:limitedToNumberOfLines:")] CGRect TextRectForBounds (CGRect bounds, nint numberOfLines); @@ -9320,24 +9409,24 @@ namespace UIKit { // [NullAllowed] // by default this property is null [Export ("attributedText", ArgumentSemantic.Copy)] - NSAttributedString AttributedText { get; set; } + NSAttributedString AttributedText { get; set; } [NoTV] [Export ("adjustsLetterSpacingToFitWidth")] [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'NSKernAttributeName' instead.")] - bool AdjustsLetterSpacingToFitWidth { get; set; } + bool AdjustsLetterSpacingToFitWidth { get; set; } [Export ("minimumScaleFactor")] - nfloat MinimumScaleFactor { get; set; } + nfloat MinimumScaleFactor { get; set; } [Export ("preferredMaxLayoutWidth")] - nfloat PreferredMaxLayoutWidth { get; set; } + nfloat PreferredMaxLayoutWidth { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("allowsDefaultTighteningForTruncation")] bool AllowsDefaultTighteningForTruncation { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("lineBreakStrategy", ArgumentSemantic.Assign)] NSLineBreakStrategy LineBreakStrategy { get; set; } @@ -9345,7 +9434,7 @@ namespace UIKit { [Export ("enablesMarqueeWhenAncestorFocused")] bool EnablesMarqueeWhenAncestorFocused { get; set; } - [MacCatalyst (15,0), NoWatch, iOS (15,0), TV (15,0)] + [MacCatalyst (15, 0), NoWatch, iOS (15, 0), TV (15, 0)] [Export ("showsExpansionTextWhenTruncated")] bool ShowsExpansionTextWhenTruncated { get; set; } } @@ -9369,19 +9458,23 @@ namespace UIKit { [PostGet ("HighlightedImage")] NativeHandle Constructor ([NullAllowed] UIImage image, [NullAllowed] UIImage highlightedImage); - [Export ("image", ArgumentSemantic.Retain)][NullAllowed] + [Export ("image", ArgumentSemantic.Retain)] + [NullAllowed] UIImage Image { get; set; } - [Export ("highlightedImage", ArgumentSemantic.Retain)][NullAllowed] + [Export ("highlightedImage", ArgumentSemantic.Retain)] + [NullAllowed] UIImage HighlightedImage { get; set; } [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } - [Export ("animationImages", ArgumentSemantic.Copy)][NullAllowed] + [Export ("animationImages", ArgumentSemantic.Copy)] + [NullAllowed] UIImage [] AnimationImages { get; set; } - [Export ("highlightedAnimationImages", ArgumentSemantic.Copy)][NullAllowed] + [Export ("highlightedAnimationImages", ArgumentSemantic.Copy)] + [NullAllowed] UIImage [] HighlightedAnimationImages { get; set; } [Export ("animationDuration")] @@ -9399,12 +9492,12 @@ namespace UIKit { [Export ("isAnimating")] bool IsAnimating { get; } - [TV (9,0)] + [TV (9, 0)] [NoiOS] // UIKIT_AVAILABLE_TVOS_ONLY [Export ("adjustsImageWhenAncestorFocused")] bool AdjustsImageWhenAncestorFocused { get; set; } - [TV (9,0)] + [TV (9, 0)] [NoiOS] // UIKIT_AVAILABLE_TVOS_ONLY [Export ("focusedFrameGuide")] UILayoutGuide FocusedFrameGuide { get; } @@ -9413,11 +9506,11 @@ namespace UIKit { [Export ("overlayContentView", ArgumentSemantic.Strong)] UIView OverlayContentView { get; } - [TV (11,0), NoWatch, NoiOS] + [TV (11, 0), NoWatch, NoiOS] [Export ("masksFocusEffectToContents")] bool MasksFocusEffectToContents { get; set; } - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("preferredSymbolConfiguration", ArgumentSemantic.Strong)] UIImageSymbolConfiguration PreferredSymbolConfiguration { get; set; } } @@ -9447,11 +9540,11 @@ namespace UIKit { // Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: date [Export ("date", ArgumentSemantic.Retain)] NSDate Date { get; set; } - + [Export ("minimumDate", ArgumentSemantic.Retain)] [NullAllowed] NSDate MinimumDate { get; set; } - + [Export ("maximumDate", ArgumentSemantic.Retain)] [NullAllowed] NSDate MaximumDate { get; set; } @@ -9461,21 +9554,21 @@ namespace UIKit { [Export ("minuteInterval")] nint MinuteInterval { get; set; } - + [Export ("setDate:animated:")] void SetDate (NSDate date, bool animated); [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4)] + [iOS (13, 4)] [Export ("preferredDatePickerStyle", ArgumentSemantic.Assign)] UIDatePickerStyle PreferredDatePickerStyle { get; set; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4)] + [iOS (13, 4)] [Export ("datePickerStyle", ArgumentSemantic.Assign)] UIDatePickerStyle DatePickerStyle { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("roundsToMinuteInterval")] bool RoundsToMinuteInterval { get; set; } } @@ -9516,7 +9609,7 @@ namespace UIKit { [NoTV] [Export ("generatesDeviceOrientationNotifications")] bool GeneratesDeviceOrientationNotifications { [Bind ("isGeneratingDeviceOrientationNotifications")] get; } - + [NoTV] [Export ("beginGeneratingDeviceOrientationNotifications")] void BeginGeneratingDeviceOrientationNotifications (); @@ -9564,7 +9657,7 @@ namespace UIKit { [Field ("UIDeviceProximityStateDidChangeNotification")] [Notification] NSString ProximityStateDidChangeNotification { get; } - + [Export ("isMultitaskingSupported")] bool IsMultitaskingSupported { get; } @@ -9572,22 +9665,22 @@ namespace UIKit { void PlayInputClick (); [Export ("identifierForVendor", ArgumentSemantic.Retain)] - NSUuid IdentifierForVendor { get; } + NSUuid IdentifierForVendor { get; } } - + [NoWatch] [BaseType (typeof (NSObject))] interface UIDictationPhrase { [Export ("alternativeInterpretations")] - string[] AlternativeInterpretations { get; } - + string [] AlternativeInterpretations { get; } + [Export ("text")] string Text { get; } } [NoTV, NoWatch] - [MacCatalyst (14,0)] // doc as 13.0 but throws: NSGenericException Reason: UIDocumentInteractionController not available - [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (UIDocumentInteractionControllerDelegate)})] + [MacCatalyst (14, 0)] // doc as 13.0 but throws: NSGenericException Reason: UIDocumentInteractionController not available + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIDocumentInteractionControllerDelegate) })] interface UIDocumentInteractionController { [Export ("interactionControllerWithURL:"), Static] UIDocumentInteractionController FromUrl (NSUrl url); @@ -9607,7 +9700,7 @@ namespace UIKit { [NullAllowed] // by default this property is null [Export ("UTI", ArgumentSemantic.Copy)] string Uti { get; set; } - + [Export ("annotation", ArgumentSemantic.Retain), NullAllowed] NSObject Annotation { get; set; } @@ -9616,26 +9709,26 @@ namespace UIKit { string Name { get; set; } [Export ("icons")] - UIImage[] Icons { get; } - + UIImage [] Icons { get; } + [Export ("dismissMenuAnimated:")] void DismissMenu (bool animated); - + [Export ("dismissPreviewAnimated:")] void DismissPreview (bool animated); - + [Export ("presentOpenInMenuFromBarButtonItem:animated:")] bool PresentOpenInMenu (UIBarButtonItem item, bool animated); - + [Export ("presentOpenInMenuFromRect:inView:animated:")] bool PresentOpenInMenu (CGRect rect, UIView inView, bool animated); - + [Export ("presentOptionsMenuFromBarButtonItem:animated:")] bool PresentOptionsMenu (UIBarButtonItem item, bool animated); - + [Export ("presentOptionsMenuFromRect:inView:animated:")] bool PresentOptionsMenu (CGRect rect, UIView inView, bool animated); - + [Export ("presentPreviewAnimated:")] bool PresentPreview (bool animated); @@ -9655,54 +9748,56 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 6, 0)] [Export ("documentInteractionController:performAction:"), DelegateName ("UIDocumentInteractionProbe"), DefaultValue (false)] bool PerformAction (UIDocumentInteractionController controller, [NullAllowed] Selector action); - + [Export ("documentInteractionController:didEndSendingToApplication:")] [EventArgs ("UIDocumentSendingToApplication")] void DidEndSendingToApplication (UIDocumentInteractionController controller, [NullAllowed] string application); - + [Export ("documentInteractionController:willBeginSendingToApplication:")] [EventArgs ("UIDocumentSendingToApplication")] void WillBeginSendingToApplication (UIDocumentInteractionController controller, [NullAllowed] string application); - + [Export ("documentInteractionControllerDidDismissOpenInMenu:")] void DidDismissOpenInMenu (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerDidDismissOptionsMenu:")] void DidDismissOptionsMenu (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerDidEndPreview:")] void DidEndPreview (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerRectForPreview:"), DelegateName ("UIDocumentInteractionRectangle"), DefaultValue (null)] CGRect RectangleForPreview (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerViewControllerForPreview:"), DelegateName ("UIDocumentViewController"), DefaultValue (null)] UIViewController ViewControllerForPreview (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerViewForPreview:"), DelegateName ("UIDocumentViewForPreview"), DefaultValue (null)] UIView ViewForPreview (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerWillBeginPreview:")] void WillBeginPreview (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerWillPresentOpenInMenu:")] void WillPresentOpenInMenu (UIDocumentInteractionController controller); - + [Export ("documentInteractionControllerWillPresentOptionsMenu:")] void WillPresentOptionsMenu (UIDocumentInteractionController controller); } [NoTV, NoWatch] - [BaseType (typeof (UINavigationController), Delegates=new string [] { "Delegate" }, Events=new Type [] {typeof(UIImagePickerControllerDelegate)})] + [BaseType (typeof (UINavigationController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (UIImagePickerControllerDelegate) })] interface UIImagePickerController { - [Export ("isSourceTypeAvailable:")][Static] + [Export ("isSourceTypeAvailable:")] + [Static] bool IsSourceTypeAvailable (UIImagePickerControllerSourceType sourceType); - + [Export ("availableMediaTypesForSourceType:"), Static] string [] AvailableMediaTypes (UIImagePickerControllerSourceType sourceType); - + // This is the foundation to implement both id - [Export("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject Delegate { get; set; } [Export ("sourceType")] @@ -9750,7 +9845,8 @@ namespace UIKit { [Export ("cameraCaptureMode")] UIImagePickerControllerCameraCaptureMode CameraCaptureMode { get; set; } - [Static][Export ("availableCaptureModesForCameraDevice:")] + [Static] + [Export ("availableCaptureModesForCameraDevice:")] NSNumber [] AvailableCaptureModesForCameraDevice (UIImagePickerControllerCameraDevice cameraDevice); [Export ("cameraDevice")] @@ -9766,12 +9862,12 @@ namespace UIKit { bool IsFlashAvailableForCameraDevice (UIImagePickerControllerCameraDevice cameraDevice); [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'PHPicker' instead.")] - [iOS (11,0)] + [iOS (11, 0)] [Export ("imageExportPreset", ArgumentSemantic.Assign)] UIImagePickerControllerImageUrlExportPreset ImageExportPreset { get; set; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'PHPicker' instead.")] - [iOS (11,0)] + [iOS (11, 0)] [Export ("videoExportPreset")] string VideoExportPreset { get; set; } @@ -9799,16 +9895,16 @@ namespace UIKit { [Field ("UIImagePickerControllerMediaMetadata")] NSString MediaMetadata { get; } - [iOS (9,1)] + [iOS (9, 1)] [Field ("UIImagePickerControllerLivePhoto")] NSString LivePhoto { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'PHPicker' instead.")] - [iOS (11,0)] + [iOS (11, 0)] [Field ("UIImagePickerControllerPHAsset")] NSString PHAsset { get; } - [iOS (11,0)] + [iOS (11, 0)] [Field ("UIImagePickerControllerImageURL")] NSString ImageUrl { get; } } @@ -9844,16 +9940,16 @@ namespace UIKit { NativeHandle Constructor (NSUrl url); [Export ("managedObjectContext", ArgumentSemantic.Retain)] - NSManagedObjectContext ManagedObjectContext { get; } + NSManagedObjectContext ManagedObjectContext { get; } [Export ("managedObjectModel", ArgumentSemantic.Retain)] - NSManagedObjectModel ManagedObjectModel { get; } + NSManagedObjectModel ManagedObjectModel { get; } [Export ("persistentStoreOptions", ArgumentSemantic.Copy)] - NSDictionary PersistentStoreOptions { get; set; } + NSDictionary PersistentStoreOptions { get; set; } [Export ("modelConfiguration", ArgumentSemantic.Copy)] - string ModelConfiguration { get; set; } + string ModelConfiguration { get; set; } [Static] [Export ("persistentStoreName")] @@ -9893,15 +9989,15 @@ namespace UIKit { [Export ("setTargetRect:inView:")] void SetTargetRect (CGRect rect, UIView inView); - [iOS (13,0)] + [iOS (13, 0)] [Export ("showMenuFromView:rect:")] void ShowMenu (UIView targetView, CGRect targetRect); - [iOS (13,0)] + [iOS (13, 0)] [Export ("hideMenuFromView:")] void HideMenu (UIView targetView); - [iOS (13,0)] + [iOS (13, 0)] [Export ("hideMenu")] void HideMenu (); @@ -9909,8 +10005,8 @@ namespace UIKit { void Update (); [Export ("menuFrame")] - CGRect MenuFrame { get; } - + CGRect MenuFrame { get; } + [Export ("arrowDirection")] UIMenuControllerArrowDirection ArrowDirection { get; set; } @@ -9968,7 +10064,8 @@ namespace UIKit { [Export ("barStyle", ArgumentSemantic.Assign)] UIBarStyle BarStyle { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -9993,7 +10090,7 @@ namespace UIKit { [Export ("backItem", ArgumentSemantic.Retain)] UINavigationItem BackItem { get; } - [Export ("items", ArgumentSemantic.Copy)] + [Export ("items", ArgumentSemantic.Copy)] [PostGet ("TopItem")] UINavigationItem [] Items { get; set; } @@ -10004,7 +10101,7 @@ namespace UIKit { [NullAllowed] // by default this property is null [Export ("titleTextAttributes", ArgumentSemantic.Copy), Internal] [Appearance] - NSDictionary _TitleTextAttributes { get; set; } + NSDictionary _TitleTextAttributes { get; set; } [Wrap ("_TitleTextAttributes")] [Appearance] @@ -10033,89 +10130,89 @@ namespace UIKit { [Appearance] [NullAllowed] [Export ("shadowImage", ArgumentSemantic.Retain)] - UIImage ShadowImage { get; set; } + UIImage ShadowImage { get; set; } // // 7.0 // - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [NullAllowed] [Export ("barTintColor", ArgumentSemantic.Retain)] - UIColor BarTintColor { get; set; } + UIColor BarTintColor { get; set; } [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [NullAllowed] [Export ("backIndicatorImage", ArgumentSemantic.Retain)] - UIImage BackIndicatorImage { get; set; } + UIImage BackIndicatorImage { get; set; } [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [NullAllowed] [Export ("backIndicatorTransitionMaskImage", ArgumentSemantic.Retain)] - UIImage BackIndicatorTransitionMaskImage { get; set; } + UIImage BackIndicatorTransitionMaskImage { get; set; } [Appearance] - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("standardAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance StandardAppearance { get; set; } [Appearance] - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("compactAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance CompactAppearance { get; set; } [Appearance] - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("scrollEdgeAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance ScrollEdgeAppearance { get; set; } [Appearance] - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("compactScrollEdgeAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance CompactScrollEdgeAppearance { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [Export ("setBackgroundImage:forBarPosition:barMetrics:")] void SetBackgroundImage ([NullAllowed] UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics); - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [Export ("backgroundImageForBarPosition:barMetrics:")] UIImage GetBackgroundImage (UIBarPosition barPosition, UIBarMetrics barMetrics); - + [Appearance] [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("prefersLargeTitles")] bool PrefersLargeTitles { get; set; } [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Internal, NullAllowed, Export ("largeTitleTextAttributes", ArgumentSemantic.Copy)] [Appearance] NSDictionary _LargeTitleTextAttributes { get; set; } [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Wrap ("_LargeTitleTextAttributes")] [NullAllowed] [Appearance] UIStringAttributes LargeTitleTextAttributes { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredBehavioralStyle", ArgumentSemantic.Assign)] UIBehavioralStyle PreferredBehavioralStyle { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("currentNSToolbarSection", ArgumentSemantic.Assign)] UINavigationBarNSToolbarSection CurrentNSToolbarSection { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("behavioralStyle", ArgumentSemantic.Assign)] UIBehavioralStyle BehavioralStyle { get; } } @@ -10130,14 +10227,14 @@ namespace UIKit { [Export ("navigationBar:shouldPopItem:")] bool ShouldPopItem (UINavigationBar navigationBar, UINavigationItem item); - + [Export ("navigationBar:didPushItem:")] void DidPushItem (UINavigationBar navigationBar, UINavigationItem item); [Export ("navigationBar:shouldPushItem:")] bool ShouldPushItem (UINavigationBar navigationBar, UINavigationItem item); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("navigationBarNSToolbarSection:")] UINavigationBarNSToolbarSection GetNSToolbarSection (UINavigationBar navigationBar); } @@ -10158,7 +10255,7 @@ namespace UIKit { [Export ("backBarButtonItem", ArgumentSemantic.Retain)] UIBarButtonItem BackBarButtonItem { get; set; } - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [NullAllowed, Export ("backButtonTitle")] string BackButtonTitle { get; set; } @@ -10177,152 +10274,158 @@ namespace UIKit { [Export ("setHidesBackButton:animated:")] void SetHidesBackButton (bool hides, bool animated); - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("backButtonDisplayMode", ArgumentSemantic.Assign)] UINavigationItemBackButtonDisplayMode BackButtonDisplayMode { get; set; } - [Export ("leftBarButtonItem", ArgumentSemantic.Retain)][NullAllowed] + [Export ("leftBarButtonItem", ArgumentSemantic.Retain)] + [NullAllowed] UIBarButtonItem LeftBarButtonItem { get; // only on the setter to avoid endless recursion [PostGet ("LeftBarButtonItems")] - set; + set; } - [Export ("rightBarButtonItem", ArgumentSemantic.Retain)][NullAllowed] - UIBarButtonItem RightBarButtonItem { - get; + [Export ("rightBarButtonItem", ArgumentSemantic.Retain)] + [NullAllowed] + UIBarButtonItem RightBarButtonItem { + get; // only on the setter to avoid endless recursion [PostGet ("RightBarButtonItems")] - set; + set; } - [Export ("setLeftBarButtonItem:animated:")][PostGet ("LeftBarButtonItem")] + [Export ("setLeftBarButtonItem:animated:")] + [PostGet ("LeftBarButtonItem")] void SetLeftBarButtonItem ([NullAllowed] UIBarButtonItem item, bool animated); - - [Export ("setRightBarButtonItem:animated:")][PostGet ("RightBarButtonItem")] + + [Export ("setRightBarButtonItem:animated:")] + [PostGet ("RightBarButtonItem")] void SetRightBarButtonItem ([NullAllowed] UIBarButtonItem item, bool animated); [NullAllowed] // by default this property is null [Export ("leftBarButtonItems", ArgumentSemantic.Copy)] [PostGet ("LeftBarButtonItem")] - UIBarButtonItem [] LeftBarButtonItems { get; set; } + UIBarButtonItem [] LeftBarButtonItems { get; set; } [NullAllowed] // by default this property is null [Export ("rightBarButtonItems", ArgumentSemantic.Copy)] [PostGet ("RightBarButtonItem")] - UIBarButtonItem [] RightBarButtonItems { get; set; } + UIBarButtonItem [] RightBarButtonItems { get; set; } [NoTV] [Export ("leftItemsSupplementBackButton")] - bool LeftItemsSupplementBackButton { get; set; } + bool LeftItemsSupplementBackButton { get; set; } - [Export ("setLeftBarButtonItems:animated:")][PostGet ("LeftBarButtonItems")] + [Export ("setLeftBarButtonItems:animated:")] + [PostGet ("LeftBarButtonItems")] void SetLeftBarButtonItems (UIBarButtonItem [] items, bool animated); - [Export ("setRightBarButtonItems:animated:")][PostGet ("RightBarButtonItems")] + [Export ("setRightBarButtonItems:animated:")] + [PostGet ("RightBarButtonItems")] void SetRightBarButtonItems (UIBarButtonItem [] items, bool animated); [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("largeTitleDisplayMode", ArgumentSemantic.Assign)] UINavigationItemLargeTitleDisplayMode LargeTitleDisplayMode { get; set; } [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("searchController", ArgumentSemantic.Retain)] UISearchController SearchController { get; set; } [NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("hidesSearchBarWhenScrolling")] bool HidesSearchBarWhenScrolling { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("standardAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance StandardAppearance { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("compactAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance CompactAppearance { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [NullAllowed, Export ("scrollEdgeAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance ScrollEdgeAppearance { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("compactScrollEdgeAppearance", ArgumentSemantic.Copy)] UINavigationBarAppearance CompactScrollEdgeAppearance { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("pinnedTrailingGroup", ArgumentSemantic.Strong)] [NullAllowed] UIBarButtonItemGroup PinnedTrailingGroup { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("overflowPresentationSource", ArgumentSemantic.Strong)] [NullAllowed] IUIPopoverPresentationControllerSourceItem OverflowPresentationSource { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("trailingItemGroups", ArgumentSemantic.Copy)] - UIBarButtonItemGroup[] TrailingItemGroups { get; set; } + UIBarButtonItemGroup [] TrailingItemGroups { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("additionalOverflowItems", ArgumentSemantic.Strong)] [NullAllowed] UIDeferredMenuElement AdditionalOverflowItems { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("titleMenuProvider", ArgumentSemantic.Copy)] [NullAllowed] Func, UIMenu> TitleMenuProvider { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Wrap ("WeakRenameDelegate")] IUINavigationItemRenameDelegate RenameDelegate { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("renameDelegate", ArgumentSemantic.Weak)] NSObject WeakRenameDelegate { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("documentProperties", ArgumentSemantic.Strong)] [NullAllowed] UIDocumentProperties DocumentProperties { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("customizationIdentifier")] [NullAllowed] string CustomizationIdentifier { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("leadingItemGroups", ArgumentSemantic.Copy)] - UIBarButtonItemGroup[] LeadingItemGroups { get; set; } + UIBarButtonItemGroup [] LeadingItemGroups { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("centerItemGroups", ArgumentSemantic.Copy)] - UIBarButtonItemGroup[] CenterItemGroups { get; set; } + UIBarButtonItemGroup [] CenterItemGroups { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("style", ArgumentSemantic.Assign)] UINavigationItemStyle Style { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("backAction", ArgumentSemantic.Copy)] [NullAllowed] UIAction BackAction { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("preferredSearchBarPlacement", ArgumentSemantic.Assign)] UINavigationItemSearchBarPlacement PreferredSearchBarPlacement { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("searchBarPlacement", ArgumentSemantic.Assign)] UINavigationItemSearchBarPlacement SearchBarPlacement { get; } } - + [NoWatch] [BaseType (typeof (UIViewController))] interface UINavigationController { @@ -10368,19 +10471,19 @@ namespace UIKit { [PostGet ("ChildViewControllers")] // for base backing field [NullAllowed] UIViewController [] ViewControllers { get; set; } - + [Export ("setViewControllers:animated:")] [PostGet ("ViewControllers")] // that will PostGet TopViewController and VisibleViewController too void SetViewControllers ([NullAllowed] UIViewController [] controllers, bool animated); [Export ("navigationBarHidden")] - bool NavigationBarHidden { [Bind ("isNavigationBarHidden")] get ; set; } + bool NavigationBarHidden { [Bind ("isNavigationBarHidden")] get; set; } [Export ("setNavigationBarHidden:animated:")] void SetNavigationBarHidden (bool hidden, bool animated); - + [Export ("navigationBar")] - UINavigationBar NavigationBar { get; } + UINavigationBar NavigationBar { get; } [NoTV] [Export ("toolbarHidden")] @@ -10393,8 +10496,9 @@ namespace UIKit { [NoTV] [Export ("toolbar")] UIToolbar Toolbar { get; } - - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -10405,41 +10509,41 @@ namespace UIKit { nfloat HideShowBarDuration { get; } [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("interactivePopGestureRecognizer", ArgumentSemantic.Copy)] UIGestureRecognizer InteractivePopGestureRecognizer { get; } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("hidesBarsWhenVerticallyCompact", ArgumentSemantic.UnsafeUnretained)] bool HidesBarsWhenVerticallyCompact { get; set; } - + [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("hidesBarsOnTap", ArgumentSemantic.UnsafeUnretained)] bool HidesBarsOnTap { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("showViewController:sender:")] void ShowViewController (UIViewController vc, [NullAllowed] NSObject sender); [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("hidesBarsWhenKeyboardAppears", ArgumentSemantic.UnsafeUnretained)] bool HidesBarsWhenKeyboardAppears { get; set; } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("hidesBarsOnSwipe", ArgumentSemantic.UnsafeUnretained)] bool HidesBarsOnSwipe { get; set; } - + [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("barHideOnSwipeGestureRecognizer", ArgumentSemantic.Retain)] UIPanGestureRecognizer BarHideOnSwipeGestureRecognizer { get; } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Export ("barHideOnTapGestureRecognizer", ArgumentSemantic.UnsafeUnretained)] UITapGestureRecognizer BarHideOnTapGestureRecognizer { get; } } @@ -10457,26 +10561,26 @@ namespace UIKit { void DidShowViewController (UINavigationController navigationController, [Transient] UIViewController viewController, bool animated); [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("navigationControllerSupportedInterfaceOrientations:")] [NoDefaultValue] [DelegateName ("Func")] UIInterfaceOrientationMask SupportedInterfaceOrientations (UINavigationController navigationController); [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("navigationControllerPreferredInterfaceOrientationForPresentation:")] [DelegateName ("Func")] [NoDefaultValue] UIInterfaceOrientation GetPreferredInterfaceOrientation (UINavigationController navigationController); - [iOS (7,0)] + [iOS (7, 0)] [Export ("navigationController:interactionControllerForAnimationController:")] [DelegateName ("Func")] [NoDefaultValue] IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController (UINavigationController navigationController, IUIViewControllerAnimatedTransitioning animationController); - [iOS (7,0)] + [iOS (7, 0)] [Export ("navigationController:animationControllerForOperation:fromViewController:toViewController:")] [DelegateName ("Func")] [NoDefaultValue] @@ -10487,7 +10591,7 @@ namespace UIKit { [BaseType (typeof (NSObject))] interface UINib { // note: the default `init` does not seems to create anything that can be used - but it does not crash when used - + [Static] [Export ("nibWithNibName:bundle:")] UINib FromName (string name, [NullAllowed] NSBundle bundleOrNil); @@ -10521,36 +10625,36 @@ namespace UIKit { [Appearance] [NullAllowed] [Export ("pageIndicatorTintColor", ArgumentSemantic.Retain)] - UIColor PageIndicatorTintColor { get; set; } + UIColor PageIndicatorTintColor { get; set; } [Appearance] [NullAllowed] [Export ("currentPageIndicatorTintColor", ArgumentSemantic.Retain)] - UIColor CurrentPageIndicatorTintColor { get; set; } + UIColor CurrentPageIndicatorTintColor { get; set; } - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("backgroundStyle", ArgumentSemantic.Assign)] UIPageControlBackgroundStyle BackgroundStyle { get; set; } - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("interactionState", ArgumentSemantic.Assign)] UIPageControlInteractionState InteractionState { get; } - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("allowsContinuousInteraction")] bool AllowsContinuousInteraction { get; set; } - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [NullAllowed] [Export ("preferredIndicatorImage", ArgumentSemantic.Strong)] UIImage PreferredIndicatorImage { get; set; } - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("indicatorImageForPage:")] [return: NullAllowed] UIImage GetIndicatorImage (nint page); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("setIndicatorImage:forPage:")] void SetIndicatorImage ([NullAllowed] UIImage image, nint page); @@ -10567,36 +10671,36 @@ namespace UIKit { [Export ("updateCurrentPageDisplay")] void UpdateCurrentPageDisplay (); - [iOS (16,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), MacCatalyst (16, 0)] [Export ("direction", ArgumentSemantic.Assign)] UIPageControlDirection Direction { get; set; } - [iOS (16,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), MacCatalyst (16, 0)] [Export ("preferredCurrentPageIndicatorImage", ArgumentSemantic.Strong)] [NullAllowed] UIImage PreferredCurrentPageIndicatorImage { get; set; } - [iOS (16,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), MacCatalyst (16, 0)] [Export ("currentPageIndicatorImageForPage:")] [return: NullAllowed] UIImage GetCurrentPageIndicatorImage (nint page); - [iOS (16,0), TV (16,0), MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), MacCatalyst (16, 0)] [Export ("setCurrentPageIndicatorImage:forPage:")] void SetCurrentPageIndicatorImage ([NullAllowed] UIImage image, nint page); } - + [NoWatch] [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate", "WeakDataSource" }, - Events = new Type [] { typeof (UIPageViewControllerDelegate), typeof (UIPageViewControllerDataSource)} )] + Events = new Type [] { typeof (UIPageViewControllerDelegate), typeof (UIPageViewControllerDataSource) })] interface UIPageViewController : NSCoding { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); [Export ("delegate", ArgumentSemantic.Assign), NullAllowed] - NSObject WeakDelegate { get; set; } + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] @@ -10607,25 +10711,25 @@ namespace UIKit { [Wrap ("WeakDataSource")] [Protocolize] - UIPageViewControllerDataSource DataSource { get; set; } + UIPageViewControllerDataSource DataSource { get; set; } [Export ("transitionStyle")] - UIPageViewControllerTransitionStyle TransitionStyle { get; } + UIPageViewControllerTransitionStyle TransitionStyle { get; } [Export ("navigationOrientation")] - UIPageViewControllerNavigationOrientation NavigationOrientation { get; } + UIPageViewControllerNavigationOrientation NavigationOrientation { get; } [Export ("spineLocation")] - UIPageViewControllerSpineLocation SpineLocation { get; } + UIPageViewControllerSpineLocation SpineLocation { get; } [Export ("doubleSided")] - bool DoubleSided { [Bind ("isDoubleSided")] get; set; } + bool DoubleSided { [Bind ("isDoubleSided")] get; set; } [Export ("gestureRecognizers")] - UIGestureRecognizer [] GestureRecognizers { get; } + UIGestureRecognizer [] GestureRecognizers { get; } [Export ("viewControllers")] - UIViewController [] ViewControllers { get; } + UIViewController [] ViewControllers { get; } [DesignatedInitializer] [Export ("initWithTransitionStyle:navigationOrientation:options:")] @@ -10653,20 +10757,24 @@ namespace UIKit { [NoTV] [Export ("pageViewController:spineLocationForInterfaceOrientation:"), DelegateName ("UIPageViewSpineLocationCallback")] - [DefaultValue(UIPageViewControllerSpineLocation.Mid)] + [DefaultValue (UIPageViewControllerSpineLocation.Mid)] UIPageViewControllerSpineLocation GetSpineLocation (UIPageViewController pageViewController, UIInterfaceOrientation orientation); [Export ("pageViewController:willTransitionToViewControllers:"), EventArgs ("UIPageViewControllerTransition")] void WillTransition (UIPageViewController pageViewController, UIViewController [] pendingViewControllers); [NoTV] - [iOS (7,0)] - [Export ("pageViewControllerSupportedInterfaceOrientations:")][DelegateName ("Func")][DefaultValue (UIInterfaceOrientationMask.All)] + [iOS (7, 0)] + [Export ("pageViewControllerSupportedInterfaceOrientations:")] + [DelegateName ("Func")] + [DefaultValue (UIInterfaceOrientationMask.All)] UIInterfaceOrientationMask SupportedInterfaceOrientations (UIPageViewController pageViewController); [NoTV] - [iOS (7,0)] - [Export ("pageViewControllerPreferredInterfaceOrientationForPresentation:")][DelegateName ("Func")][DefaultValue (UIInterfaceOrientation.Portrait)] + [iOS (7, 0)] + [Export ("pageViewControllerPreferredInterfaceOrientationForPresentation:")] + [DelegateName ("Func")] + [DefaultValue (UIInterfaceOrientation.Portrait)] UIInterfaceOrientation GetPreferredInterfaceOrientationForPresentation (UIPageViewController pageViewController); } @@ -10698,19 +10806,22 @@ namespace UIKit { [Export ("UIPasteboardChangedTypesRemovedKey")] string [] TypesRemoved { get; } } - + [NoTV, NoWatch] [BaseType (typeof (NSObject))] // Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Calling -[UIPasteboard init] is not allowed. [DisableDefaultCtor] interface UIPasteboard { - [Export ("generalPasteboard")][Static] + [Export ("generalPasteboard")] + [Static] UIPasteboard General { get; } - [Export ("pasteboardWithName:create:")][Static] + [Export ("pasteboardWithName:create:")] + [Static] UIPasteboard FromName (string name, bool create); - [Export ("pasteboardWithUniqueName")][Static] + [Export ("pasteboardWithUniqueName")] + [Static] UIPasteboard GetUnique (); [Export ("name")] @@ -10718,13 +10829,17 @@ namespace UIKit { [Export ("removePasteboardWithName:"), Static] void Remove (string name); - + [Export ("persistent")] - bool Persistent { [Bind ("isPersistent")] get; - [Deprecated (PlatformName.iOS, 10, 0)] set; } + bool Persistent { + [Bind ("isPersistent")] + get; + [Deprecated (PlatformName.iOS, 10, 0)] + set; + } [Export ("changeCount")] - nint ChangeCount { get; } + nint ChangeCount { get; } [Export ("pasteboardTypes")] string [] Types { get; } @@ -10757,30 +10872,30 @@ namespace UIKit { #endif [Export ("containsPasteboardTypes:inItemSet:")] bool Contains (string [] pasteboardTypes, [NullAllowed] NSIndexSet itemSet); - + [Export ("itemSetWithPasteboardTypes:")] NSIndexSet ItemSetWithPasteboardTypes (string [] pasteboardTypes); - + [Export ("valuesForPasteboardType:inItemSet:")] NSData [] GetValuesForPasteboardType (string pasteboardType, NSIndexSet itemSet); - + [Export ("dataForPasteboardType:inItemSet:")] NSData [] GetDataForPasteboardType (string pasteboardType, NSIndexSet itemSet); - + [Export ("items", ArgumentSemantic.Copy)] NSDictionary [] Items { get; set; } - + [Export ("addItems:")] void AddItems (NSDictionary [] items); [Field ("UIPasteboardChangedNotification")] [Notification (typeof (UIPasteboardChangeEventArgs))] NSString ChangedNotification { get; } - + [Field ("UIPasteboardChangedTypesAddedKey")] NSString ChangedTypesAddedKey { get; } - + [Field ("UIPasteboardChangedTypesRemovedKey")] NSString ChangedTypesRemovedKey { get; } @@ -10800,7 +10915,7 @@ namespace UIKit { [Field ("UIPasteboardTypeListColor")] NSArray TypeListColor { get; } - [iOS (10,0), NoWatch] + [iOS (10, 0), NoWatch] [Field ("UIPasteboardTypeAutomatic")] NSString Automatic { get; } @@ -10834,12 +10949,12 @@ namespace UIKit { [Export ("colors", ArgumentSemantic.Copy)] UIColor [] Colors { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [Export ("setItems:options:")] - void SetItems (NSDictionary[] items, NSDictionary options); - + void SetItems (NSDictionary [] items, NSDictionary options); + [NoTV] - [iOS (10,0)] + [iOS (10, 0)] [Wrap ("SetItems (items, pasteboardOptions.GetDictionary ()!)")] void SetItems (NSDictionary [] items, UIPasteboardOptions pasteboardOptions); @@ -10854,46 +10969,46 @@ namespace UIKit { [NoWatch, NoTV, iOS (10, 0)] [Export ("hasImages")] bool HasImages { get; } - + [NoWatch, NoTV, iOS (10, 0)] [Export ("hasColors")] bool HasColors { get; } [Async] - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("detectPatternsForPatterns:completionHandler:")] void DetectPatterns (NSSet patterns, Action, NSError> completionHandler); [Async] - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("detectPatternsForPatterns:inItemSet:completionHandler:")] void DetectPatterns (NSSet patterns, [NullAllowed] NSIndexSet itemSet, Action [], NSError> completionHandler); [Async] - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("detectValuesForPatterns:completionHandler:")] void DetectValues (NSSet patterns, Action, NSError> completionHandler); [Async] - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("detectValuesForPatterns:inItemSet:completionHandler:")] void DetectValues (NSSet patterns, [NullAllowed] NSIndexSet itemSet, Action [], NSError> completionHandler); - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Export ("itemProviders", ArgumentSemantic.Copy)] - NSItemProvider[] ItemProviders { get; set; } + NSItemProvider [] ItemProviders { get; set; } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Export ("setItemProviders:localOnly:expirationDate:")] - void SetItemProviders (NSItemProvider[] itemProviders, bool localOnly, [NullAllowed] NSDate expirationDate); + void SetItemProviders (NSItemProvider [] itemProviders, bool localOnly, [NullAllowed] NSDate expirationDate); - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Export ("setObjects:")] - void SetObjects (INSItemProviderWriting[] objects); + void SetObjects (INSItemProviderWriting [] objects); - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Export ("setObjects:localOnly:expirationDate:")] - void SetObjects (INSItemProviderWriting[] objects, bool localOnly, [NullAllowed] NSDate expirationDate); + void SetObjects (INSItemProviderWriting [] objects, bool localOnly, [NullAllowed] NSDate expirationDate); } [NoTV, NoWatch] @@ -10914,7 +11029,7 @@ namespace UIKit { bool LocalOnly { get; set; } } - [NoWatch, NoTV, iOS (10,0)] + [NoWatch, NoTV, iOS (10, 0)] [Static] interface UIPasteboardOptionKeys { [Field ("UIPasteboardOptionExpirationDate")] @@ -10925,7 +11040,7 @@ namespace UIKit { } [NoTV, NoWatch] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" })] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" })] interface UIPickerView { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -10945,24 +11060,25 @@ namespace UIKit { NSObject DataSource { get; set; } #endif - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UIPickerViewDelegate Delegate { get; set; } - [Deprecated (PlatformName.iOS, 13,0)] + [Deprecated (PlatformName.iOS, 13, 0)] [Advice ("This property is a no-op since 7.0.")] [Export ("showsSelectionIndicator")] bool ShowSelectionIndicator { get; set; } [Export ("numberOfComponents")] nint NumberOfComponents { get; } - + [Export ("numberOfRowsInComponent:")] nint RowsInComponent (nint component); - + [Export ("rowSizeForComponent:")] CGSize RowSizeForComponent (nint component); @@ -10974,10 +11090,10 @@ namespace UIKit { [Export ("reloadComponent:")] void ReloadComponent (nint component); - + [Export ("selectRow:inComponent:animated:")] void Select (nint row, nint component, bool animated); - + [Export ("selectedRowInComponent:")] nint SelectedRowInComponent (nint component); @@ -11029,21 +11145,21 @@ namespace UIKit { [Export ("pickerView:accessibilityHintForComponent:")] string GetAccessibilityHint (UIPickerView pickerView, nint component); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("pickerView:accessibilityAttributedLabelForComponent:")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedLabel (UIPickerView pickerView, nint component); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("pickerView:accessibilityAttributedHintForComponent:")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedHint (UIPickerView pickerView, nint component); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("pickerView:accessibilityUserInputLabelsForComponent:")] string [] GetAccessibilityUserInputLabels (UIPickerView pickerView, nint component); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("pickerView:accessibilityAttributedUserInputLabelsForComponent:")] NSAttributedString [] GetAccessibilityAttributedUserInputLabels (UIPickerView pickerView, nint component); } @@ -11071,7 +11187,7 @@ namespace UIKit { interface UIPickerViewModel : UIPickerViewDataSource, UIPickerViewDelegate { } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [Model] [Protocol] @@ -11079,34 +11195,34 @@ namespace UIKit { [Abstract] [Export ("preferredContentSize")] CGSize PreferredContentSize { get; } - + [Abstract] [Export ("preferredContentSizeDidChangeForChildContentContainer:")] void PreferredContentSizeDidChangeForChildContentContainer (IUIContentContainer container); - + [Abstract] [Export ("systemLayoutFittingSizeDidChangeForChildContentContainer:")] void SystemLayoutFittingSizeDidChangeForChildContentContainer (IUIContentContainer container); - + [Abstract] [Export ("sizeForChildContentContainer:withParentContainerSize:")] CGSize GetSizeForChildContentContainer (IUIContentContainer contentContainer, CGSize parentContainerSize); - + [Abstract] [Export ("viewWillTransitionToSize:withTransitionCoordinator:")] void ViewWillTransitionToSize (CGSize toSize, IUIViewControllerTransitionCoordinator coordinator); - + [Abstract] [Export ("willTransitionToTraitCollection:withTransitionCoordinator:")] void WillTransitionToTraitCollection (UITraitCollection traitCollection, [NullAllowed] IUIViewControllerTransitionCoordinator coordinator); } - [NoWatch, iOS(8,0),Protocol, Model] + [NoWatch, iOS (8, 0), Protocol, Model] [BaseType (typeof (NSObject))] partial interface UIAppearanceContainer { } - - [iOS (8,0), NoWatch] + + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSInvalidArgumentException Reason: Don't call -[UIPresentationController init]. partial interface UIPresentationController : UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment { @@ -11139,7 +11255,7 @@ namespace UIKit { [Export ("adaptivePresentationStyle")] UIModalPresentationStyle AdaptivePresentationStyle (); - [iOS (8,3)] + [iOS (8, 3)] [Export ("adaptivePresentationStyleForTraitCollection:")] UIModalPresentationStyle AdaptivePresentationStyle (UITraitCollection traitCollection); @@ -11177,7 +11293,7 @@ namespace UIKit { delegate void UIPreviewHandler (UIPreviewAction action, UIViewController previewViewController); [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIPreviewAction : UIPreviewActionItem, NSCopying { [Static, Export ("actionWithTitle:style:handler:")] @@ -11186,27 +11302,27 @@ namespace UIKit { [Export ("handler")] UIPreviewHandler Handler { get; } - + } [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIPreviewActionGroup : UIPreviewActionItem, NSCopying { [Static, Export ("actionGroupWithTitle:style:actions:")] UIPreviewActionGroup Create (string title, UIPreviewActionStyle style, UIPreviewAction [] actions); } - - interface IUIPreviewActionItem {} - - [iOS (9,0), NoWatch] + + interface IUIPreviewActionItem { } + + [iOS (9, 0), NoWatch] [Protocol] interface UIPreviewActionItem { [Abstract] [Export ("title")] string Title { get; } } - + [NoWatch] [BaseType (typeof (UIView))] interface UIProgressView : NSCoding { @@ -11226,77 +11342,77 @@ namespace UIKit { [Export ("progressTintColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIColor ProgressTintColor { get; set; } + UIColor ProgressTintColor { get; set; } [Export ("trackTintColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIColor TrackTintColor { get; set; } + UIColor TrackTintColor { get; set; } [Export ("progressImage", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIImage ProgressImage { get; set; } + UIImage ProgressImage { get; set; } [Export ("trackImage", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIImage TrackImage { get; set; } + UIImage TrackImage { get; set; } [Export ("setProgress:animated:")] void SetProgress (float progress /* this is float, not nfloat */, bool animated); - [iOS (9,0)] + [iOS (9, 0)] [Export ("observedProgress")] [NullAllowed] NSProgress ObservedProgress { get; set; } } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (UIDynamicBehavior))] partial interface UIPushBehavior { [DesignatedInitializer] [Export ("initWithItems:mode:")] NativeHandle Constructor (IUIDynamicItem [] items, UIPushBehaviorMode mode); - + [Export ("addItem:")] [PostGet ("Items")] void AddItem (IUIDynamicItem dynamicItem); - + [Export ("removeItem:")] [PostGet ("Items")] void RemoveItem (IUIDynamicItem dynamicItem); - + [Export ("items", ArgumentSemantic.Copy)] IUIDynamicItem [] Items { get; } - + [Export ("targetOffsetFromCenterForItem:")] UIOffset GetTargetOffsetFromCenter (IUIDynamicItem item); - + [Export ("setTargetOffsetFromCenter:forItem:")] void SetTargetOffset (UIOffset offset, IUIDynamicItem item); - + [Export ("mode")] UIPushBehaviorMode Mode { get; } - + [Export ("active")] bool Active { get; set; } - + [Export ("angle")] nfloat Angle { get; set; } - + [Export ("magnitude")] nfloat Magnitude { get; set; } - + [Export ("setAngle:magnitude:")] void SetAngleAndMagnitude (nfloat angle, nfloat magnitude); [Export ("pushDirection")] CGVector PushDirection { get; set; } - + } - [NoWatch, iOS (7,0)] + [NoWatch, iOS (7, 0)] [BaseType (typeof (UIDynamicBehavior))] [DisableDefaultCtor] // Objective-C exception thrown. Name: NSInvalidArgumentException Reason: init is undefined for objects of type UISnapBehavior partial interface UISnapBehavior { @@ -11307,12 +11423,12 @@ namespace UIKit { [Export ("damping", ArgumentSemantic.Assign)] nfloat Damping { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("snapPoint", ArgumentSemantic.Assign)] CGPoint SnapPoint { get; set; } } - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV, NoWatch] [BaseType (typeof (UIViewController))] // iOS6 returns the following (confusing) message with the default .ctor: @@ -11346,7 +11462,7 @@ namespace UIKit { { [Export ("nextResponder")] - UIResponder NextResponder { get; } + UIResponder NextResponder { get; } [Export ("canBecomeFirstResponder")] bool CanBecomeFirstResponder { get; } @@ -11390,7 +11506,7 @@ namespace UIKit { [Export ("undoManager"), NullAllowed] NSUndoManager UndoManager { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("editingInteractionConfiguration")] UIEditingInteractionConfiguration EditingInteractionConfiguration { get; } @@ -11406,80 +11522,80 @@ namespace UIKit { void ReloadInputViews (); [Export ("remoteControlReceivedWithEvent:")] - void RemoteControlReceived ([NullAllowed] UIEvent theEvent); + void RemoteControlReceived ([NullAllowed] UIEvent theEvent); // // 7.0 // - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("keyCommands")] UIKeyCommand [] KeyCommands { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Static, Export ("clearTextInputContextIdentifier:")] void ClearTextInputContextIdentifier (NSString identifier); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("targetForAction:withSender:")] NSObject GetTargetForAction (Selector action, [NullAllowed] NSObject sender); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("buildMenuWithBuilder:")] void BuildMenu (IUIMenuBuilder builder); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("validateCommand:")] void ValidateCommand (UICommand command); - [iOS (7,0)] + [iOS (7, 0)] [Export ("textInputContextIdentifier")] NSString TextInputContextIdentifier { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("textInputMode")] UITextInputMode TextInputMode { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("inputViewController")] UIInputViewController InputViewController { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("inputAccessoryViewController")] UIInputViewController InputAccessoryViewController { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("userActivity"), NullAllowed] NSUserActivity UserActivity { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("updateUserActivityState:")] void UpdateUserActivityState (NSUserActivity activity); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesBegan:withEvent:")] void PressesBegan (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesChanged:withEvent:")] void PressesChanged (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesEnded:withEvent:")] void PressesEnded (NSSet presses, UIPressesEvent evt); - [iOS (9,0)] + [iOS (9, 0)] [Export ("pressesCancelled:withEvent:")] void PressesCancelled (NSSet presses, UIPressesEvent evt); // from UIResponderInputViewAdditions (UIResponder) - other members already inlined [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Export ("inputAssistantItem", ArgumentSemantic.Strong)] UITextInputAssistantItem InputAssistantItem { get; } - [iOS (9,1)] + [iOS (9, 1)] [Export ("touchesEstimatedPropertiesUpdated:")] void TouchesEstimatedPropertiesUpdated (NSSet touches); @@ -11492,7 +11608,7 @@ namespace UIKit { #pragma warning restore // from UIResponder (UICaptureTextFromCameraSupporting) - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("captureTextFromCamera:")] void CaptureTextFromCamera ([NullAllowed] NSObject sender); @@ -11510,7 +11626,7 @@ namespace UIKit { NSTouchBar TouchBar { get; set; } #pragma warning restore } - + [NoWatch] [Protocol] interface UIResponderStandardEditActions { @@ -11523,15 +11639,15 @@ namespace UIKit { [Export ("paste:")] void Paste ([NullAllowed] NSObject sender); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("pasteAndMatchStyle:")] void PasteAndMatchStyle ([NullAllowed] NSObject sender); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("pasteAndGo:")] void PasteAndGo ([NullAllowed] NSObject sender); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("pasteAndSearch:")] void PasteAndSearch ([NullAllowed] NSObject sender); @@ -11565,47 +11681,47 @@ namespace UIKit { [Export ("increaseSize:")] void IncreaseSize ([NullAllowed] NSObject sender); - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("updateTextAttributesWithConversionHandler:")] void UpdateTextAttributes (UITextAttributesConversionHandler conversionHandler); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("print:")] void Print ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("rename:")] void Rename ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("duplicate:")] void Duplicate ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("move:")] void Move ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("export:")] void Export ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("find:")] void Find ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("findAndReplace:")] void FindAndReplace ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("findNext:")] void FindNext ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("findPrevious:")] void FindPrevious ([NullAllowed] NSObject sender); - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("useSelectionForFind:")] void UseSelectionForFind ([NullAllowed] NSObject sender); } @@ -11621,7 +11737,7 @@ namespace UIKit { void IncreaseSize ([NullAllowed] NSObject sender); } #endif - + [NoWatch] [BaseType (typeof (NSObject))] interface UIScreen : UITraitEnvironment { @@ -11629,11 +11745,12 @@ namespace UIKit { CGRect Bounds { get; } [NoTV] - [Deprecated (PlatformName.iOS, 9, 0, message : "Use the 'Bounds' property.")] + [Deprecated (PlatformName.iOS, 9, 0, message: "Use the 'Bounds' property.")] [Export ("applicationFrame")] CGRect ApplicationFrame { get; } - [Export ("mainScreen")][Static] + [Export ("mainScreen")] + [Static] UIScreen MainScreen { get; } [NoTV] // Xcode 7.2 @@ -11655,8 +11772,9 @@ namespace UIKit { [Export ("mirroredScreen", ArgumentSemantic.Retain)] UIScreen MirroredScreen { get; } - - [Export ("screens")][Static] + + [Export ("screens")] + [Static] UIScreen [] Screens { get; } [Export ("scale")] @@ -11665,11 +11783,11 @@ namespace UIKit { [Export ("displayLinkWithTarget:selector:")] CADisplayLink CreateDisplayLink (NSObject target, Selector sel); - [iOS (10,3), TV (10,2)] + [iOS (10, 3), TV (10, 2)] [Export ("maximumFramesPerSecond")] nint MaximumFramesPerSecond { get; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("calibratedLatency")] double CalibratedLatency { get; } @@ -11700,52 +11818,52 @@ namespace UIKit { [Notification] NSString DidConnectNotification { get; } - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Notification] [Field ("UIScreenReferenceDisplayModeStatusDidChangeNotification")] NSString ReferenceDisplayModeStatusDidChangeNotification { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Field ("UIScreenCapturedDidChangeNotification")] [Notification] NSString CapturedDidChangeNotification { get; } - [iOS (7,0)] + [iOS (7, 0)] [return: NullAllowed] [Export ("snapshotViewAfterScreenUpdates:")] UIView SnapshotView (bool afterScreenUpdates); - [iOS (8,0)] + [iOS (8, 0)] [Export ("nativeBounds")] CGRect NativeBounds { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("nativeScale")] nfloat NativeScale { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("coordinateSpace")] IUICoordinateSpace CoordinateSpace { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("fixedCoordinateSpace")] IUICoordinateSpace FixedCoordinateSpace { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("overscanCompensationInsets")] UIEdgeInsets OverscanCompensationInsets { get; } [Deprecated (PlatformName.iOS, 15, 0, message: "Use 'UIWindowScene.FocusSystem.FocusedItem' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'UIWindowScene.FocusSystem.FocusedItem' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'UIWindowScene.FocusSystem.FocusedItem' instead.")] - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [NullAllowed, Export ("focusedView", ArgumentSemantic.Weak)] UIView FocusedView { get; } [Deprecated (PlatformName.iOS, 15, 0, message: "Check for 'UIWindowScene.FocusSystem != null' instead.")] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Check for 'UIWindowScene.FocusSystem != null' instead.")] [Deprecated (PlatformName.TvOS, 15, 0, message: "Check for 'UIWindowScene.FocusSystem != null' instead.")] - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("supportsFocus")] bool SupportsFocus { get; } @@ -11756,25 +11874,25 @@ namespace UIKit { [NullAllowed, Export ("focusedItem", ArgumentSemantic.Weak)] IUIFocusItem FocusedItem { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("captured")] bool Captured { [Bind ("isCaptured")] get; } - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("referenceDisplayModeStatus")] UIScreenReferenceDisplayModeStatus ReferenceDisplayModeStatus { get; } - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("currentEDRHeadroom")] nfloat CurrentEdrHeadroom { get; } - [TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("potentialEDRHeadroom")] nfloat PotentialEdrHeadroom { get; } } [NoWatch] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIScrollViewDelegate)})] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIScrollViewDelegate) })] interface UIScrollView : UIFocusItemScrollableContainer { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -11789,11 +11907,11 @@ namespace UIKit { [Export ("contentInset")] UIEdgeInsets ContentInset { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("adjustedContentInset")] UIEdgeInsets AdjustedContentInset { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("adjustedContentInsetDidChange")] [RequiresSuper] void AdjustedContentInsetDidChange (); @@ -11802,25 +11920,26 @@ namespace UIKit { [Export ("automaticallyAdjustsScrollIndicatorInsets")] bool AutomaticallyAdjustsScrollIndicatorInsets { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("contentInsetAdjustmentBehavior", ArgumentSemantic.Assign)] UIScrollViewContentInsetAdjustmentBehavior ContentInsetAdjustmentBehavior { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("contentLayoutGuide", ArgumentSemantic.Strong)] UILayoutGuide ContentLayoutGuide { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("frameLayoutGuide", ArgumentSemantic.Strong)] UILayoutGuide FrameLayoutGuide { get; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UIScrollViewDelegate Delegate { get; set; } - + [Export ("bounces")] bool Bounces { get; set; } @@ -11836,11 +11955,11 @@ namespace UIKit { [Export ("showsVerticalScrollIndicator")] bool ShowsVerticalScrollIndicator { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("verticalScrollIndicatorInsets", ArgumentSemantic.Assign)] UIEdgeInsets VerticalScrollIndicatorInsets { get; set; } - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("horizontalScrollIndicatorInsets", ArgumentSemantic.Assign)] UIEdgeInsets HorizontalScrollIndicatorInsets { get; set; } @@ -11850,7 +11969,7 @@ namespace UIKit { [Deprecated (PlatformName.TvOS, 13, 0, message: "Use 'VerticalScrollIndicatorInsets' or 'HorizontalScrollIndicatorInsets' instead.")] get; set; - } + } [Export ("indicatorStyle")] UIScrollViewIndicatorStyle IndicatorStyle { get; set; } @@ -11858,23 +11977,23 @@ namespace UIKit { [Export ("decelerationRate")] nfloat DecelerationRate { get; set; } - [iOS (10,3), TV (10,2), NoWatch] + [iOS (10, 3), TV (10, 2), NoWatch] [Export ("indexDisplayMode")] UIScrollViewIndexDisplayMode IndexDisplayMode { get; set; } [NoTV] [Export ("pagingEnabled")] bool PagingEnabled { [Bind ("isPagingEnabled")] get; set; } - + [Export ("directionalLockEnabled")] bool DirectionalLockEnabled { [Bind ("isDirectionalLockEnabled")] get; set; } - + [Export ("scrollEnabled")] bool ScrollEnabled { [Bind ("isScrollEnabled")] get; set; } - + [Export ("tracking")] - bool Tracking { [Bind("isTracking")] get; } - + bool Tracking { [Bind ("isTracking")] get; } + [Export ("dragging")] bool Dragging { [Bind ("isDragging")] get; } @@ -11888,7 +12007,7 @@ namespace UIKit { void ScrollRectToVisible (CGRect rect, bool animated); [Export ("flashScrollIndicators")] - void FlashScrollIndicators (); + void FlashScrollIndicators (); [Export ("delaysContentTouches")] bool DelaysContentTouches { get; set; } @@ -11898,10 +12017,10 @@ namespace UIKit { [Export ("touchesShouldBegin:withEvent:inContentView:")] bool TouchesShouldBegin (NSSet touches, UIEvent withEvent, UIView inContentView); - + [Export ("touchesShouldCancelInContentView:")] bool TouchesShouldCancelInContentView (UIView view); - + [Export ("minimumZoomScale")] nfloat MinimumZoomScale { get; set; } @@ -11909,26 +12028,26 @@ namespace UIKit { nfloat MaximumZoomScale { get; set; } [Export ("zoomScale")] - nfloat ZoomScale { get; set; } + nfloat ZoomScale { get; set; } [Export ("setZoomScale:animated:")] void SetZoomScale (nfloat scale, bool animated); - + [Export ("zoomToRect:animated:")] void ZoomToRect (CGRect rect, bool animated); [Export ("bouncesZoom")] - bool BouncesZoom { get; set; } + bool BouncesZoom { get; set; } [Export ("zooming")] - bool Zooming { [Bind ("isZooming")] get; } + bool Zooming { [Bind ("isZooming")] get; } [Export ("zoomBouncing")] bool ZoomBouncing { [Bind ("isZoomBouncing")] get; } [NoTV] [Export ("scrollsToTop")] - bool ScrollsToTop { get; set; } + bool ScrollsToTop { get; set; } [Export ("panGestureRecognizer")] UIPanGestureRecognizer PanGestureRecognizer { get; } @@ -11936,25 +12055,26 @@ namespace UIKit { [NoTV] [Export ("pinchGestureRecognizer")] UIPinchGestureRecognizer PinchGestureRecognizer { get; } - + [Field ("UIScrollViewDecelerationRateNormal")] nfloat DecelerationRateNormal { get; } [Field ("UIScrollViewDecelerationRateFast")] nfloat DecelerationRateFast { get; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("keyboardDismissMode")] UIScrollViewKeyboardDismissMode KeyboardDismissMode { get; set; } [NoWatch] - [iOS (11,0)] - [TV (9,0)] + [iOS (11, 0)] + [TV (9, 0)] [Deprecated (PlatformName.TvOS, 11, 0, message: "Configuring the 'PanGestureRecognizer' for indirect scrolling automatically supports directional presses now, so this property is no longer useful.")] [Export ("directionalPressGestureRecognizer")] UIGestureRecognizer DirectionalPressGestureRecognizer { get; } - [NoTV][iOS (10,0)] + [NoTV] + [iOS (10, 0)] [NullAllowed, Export ("refreshControl", ArgumentSemantic.Strong)] UIRefreshControl RefreshControl { get; set; } } @@ -11970,13 +12090,13 @@ namespace UIKit { [Export ("scrollViewWillBeginDragging:"), EventArgs ("UIScrollView")] void DraggingStarted (UIScrollView scrollView); - + [Export ("scrollViewDidEndDragging:willDecelerate:"), EventArgs ("Dragging")] void DraggingEnded (UIScrollView scrollView, [EventName ("decelerate")] bool willDecelerate); [Export ("scrollViewWillBeginDecelerating:"), EventArgs ("UIScrollView")] void DecelerationStarted (UIScrollView scrollView); - + [Export ("scrollViewDidEndDecelerating:"), EventArgs ("UIScrollView")] void DecelerationEnded (UIScrollView scrollView); @@ -11985,26 +12105,26 @@ namespace UIKit { [Export ("viewForZoomingInScrollView:"), DelegateName ("UIScrollViewGetZoomView"), DefaultValue ("null")] UIView ViewForZoomingInScrollView (UIScrollView scrollView); - + [Export ("scrollViewShouldScrollToTop:"), DelegateName ("UIScrollViewCondition"), DefaultValue ("true")] bool ShouldScrollToTop (UIScrollView scrollView); - + [Export ("scrollViewDidScrollToTop:"), EventArgs ("UIScrollView")] void ScrolledToTop (UIScrollView scrollView); - + [Export ("scrollViewDidEndZooming:withView:atScale:"), EventArgs ("ZoomingEnded")] void ZoomingEnded (UIScrollView scrollView, UIView withView, nfloat atScale); [Export ("scrollViewDidZoom:"), EventArgs ("UIScrollView")] void DidZoom (UIScrollView scrollView); - + [Export ("scrollViewWillBeginZooming:withView:"), EventArgs ("UIScrollViewZooming")] void ZoomingStarted (UIScrollView scrollView, UIView view); [Export ("scrollViewWillEndDragging:withVelocity:targetContentOffset:"), EventArgs ("WillEndDragging")] void WillEndDragging (UIScrollView scrollView, CGPoint velocity, ref CGPoint targetContentOffset); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("scrollViewDidChangeAdjustedContentInset:")] void DidChangeAdjustedContentInset (UIScrollView scrollView); } @@ -12016,14 +12136,14 @@ namespace UIKit { [Export ("accessibilityScrollStatusForScrollView:")] string GetAccessibilityScrollStatus (UIScrollView scrollView); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("accessibilityAttributedScrollStatusForScrollView:")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedScrollStatus (UIScrollView scrollView); } [NoWatch] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UISearchBarDelegate)})] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UISearchBarDelegate) })] #if TVOS [DisableDefaultCtor] // - (instancetype)init __TVOS_PROHIBITED; #endif @@ -12041,14 +12161,16 @@ namespace UIKit { [Export ("barStyle")] UIBarStyle BarStyle { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UISearchBarDelegate Delegate { get; set; } - [Export ("text", ArgumentSemantic.Copy)][NullAllowed] + [Export ("text", ArgumentSemantic.Copy)] + [NullAllowed] string Text { get; set; } [NullAllowed] // by default this property is null @@ -12073,7 +12195,7 @@ namespace UIKit { [Export ("showsScopeBar")] bool ShowsScopeBar { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("setShowsScopeBar:animated:")] void SetShowsScopeBar (bool show, bool animate); @@ -12101,20 +12223,20 @@ namespace UIKit { [Export ("backgroundImage", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIImage BackgroundImage { get; set; } + UIImage BackgroundImage { get; set; } [Export ("scopeBarBackgroundImage", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] - UIImage ScopeBarBackgroundImage { get; set; } + UIImage ScopeBarBackgroundImage { get; set; } [Appearance] [Export ("searchFieldBackgroundPositionAdjustment")] - UIOffset SearchFieldBackgroundPositionAdjustment { get; set; } + UIOffset SearchFieldBackgroundPositionAdjustment { get; set; } [Appearance] [Export ("searchTextPositionAdjustment")] - UIOffset SearchTextPositionAdjustment { get; set; } + UIOffset SearchTextPositionAdjustment { get; set; } [Export ("setSearchFieldBackgroundImage:forState:")] [Appearance] @@ -12164,37 +12286,38 @@ namespace UIKit { [Export ("positionAdjustmentForSearchBarIcon:")] UIOffset GetPositionAdjustmentForSearchBarIcon (UISearchBarIcon icon); - [Export ("inputAccessoryView", ArgumentSemantic.Retain)][NullAllowed] + [Export ("inputAccessoryView", ArgumentSemantic.Retain)] + [NullAllowed] UIView InputAccessoryView { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [Export ("setBackgroundImage:forBarPosition:barMetrics:")] void SetBackgroundImage ([NullAllowed] UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("backgroundImageForBarPosition:barMetrics:")] [Appearance] UIImage BackgroundImageForBarPosition (UIBarPosition barPosition, UIBarMetrics barMetrics); - [iOS (7,0), Export ("barTintColor", ArgumentSemantic.Retain)] + [iOS (7, 0), Export ("barTintColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] UIColor BarTintColor { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("searchBarStyle")] UISearchBarStyle SearchBarStyle { get; set; } [NoTV] - [iOS (9,0)] + [iOS (9, 0)] [Export ("inputAssistantItem", ArgumentSemantic.Strong)] UITextInputAssistantItem InputAssistantItem { get; } // UISearchBar (UITokenSearch) [NoTV] - [iOS (13,0)] + [iOS (13, 0)] [Export ("searchTextField")] UISearchTextField SearchTextField { get; } } @@ -12242,10 +12365,10 @@ namespace UIKit { void ListButtonClicked (UISearchBar searchBar); } - [NoWatch, iOS (9,1)][TV (9,0)] - [BaseType (typeof(UIViewController))] - interface UISearchContainerViewController - { + [NoWatch, iOS (9, 1)] + [TV (9, 0)] + [BaseType (typeof (UIViewController))] + interface UISearchContainerViewController { // inlined [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -12253,16 +12376,15 @@ namespace UIKit { [Export ("searchController", ArgumentSemantic.Strong)] UISearchController SearchController { get; } - + [Export ("initWithSearchController:")] NativeHandle Constructor (UISearchController searchController); } - - [NoWatch, iOS (8,0)] + + [NoWatch, iOS (8, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] // designated - partial interface UISearchController : UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning - { + partial interface UISearchController : UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning { [Export ("init")] [Advice ("It's recommended to use the constructor that takes a 'UIViewController searchResultsController' in order to create/initialize an attached 'UISearchBar'.")] NativeHandle Constructor (); @@ -12276,17 +12398,18 @@ namespace UIKit { [Advice ("You can pass a null 'UIViewController' to display the search results in the same view.")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] UIViewController searchResultsController); - + [NullAllowed] // by default this property is null [Export ("searchResultsUpdater", ArgumentSemantic.UnsafeUnretained)] NSObject WeakSearchResultsUpdater { get; set; } - [Wrap ("WeakSearchResultsUpdater")][Protocolize] + [Wrap ("WeakSearchResultsUpdater")] + [Protocolize] UISearchResultsUpdating SearchResultsUpdater { get; set; } - + [Export ("active", ArgumentSemantic.UnsafeUnretained)] bool Active { [Bind ("isActive")] get; set; } - + [Export ("delegate", ArgumentSemantic.UnsafeUnretained), NullAllowed] NSObject WeakDelegate { get; set; } @@ -12298,57 +12421,57 @@ namespace UIKit { [NoTV] [Export ("dimsBackgroundDuringPresentation", ArgumentSemantic.UnsafeUnretained)] bool DimsBackgroundDuringPresentation { get; set; } - + [Export ("hidesNavigationBarDuringPresentation", ArgumentSemantic.UnsafeUnretained)] bool HidesNavigationBarDuringPresentation { get; set; } - + [Export ("searchResultsController", ArgumentSemantic.Retain)] UIViewController SearchResultsController { get; } - + [Export ("searchBar", ArgumentSemantic.Retain)] UISearchBar SearchBar { get; } - [iOS (9,1)] + [iOS (9, 1)] [Export ("obscuresBackgroundDuringPresentation")] bool ObscuresBackgroundDuringPresentation { get; set; } - [NoTV, iOS (13,0)] + [NoTV, iOS (13, 0)] [Export ("automaticallyShowsSearchResultsController")] bool AutomaticallyShowsSearchResultsController { get; set; } - [NoTV, iOS (13,0)] + [NoTV, iOS (13, 0)] [Export ("showsSearchResultsController")] bool ShowsSearchResultsController { get; set; } - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("automaticallyShowsCancelButton")] bool AutomaticallyShowsCancelButton { get; set; } [Deprecated (PlatformName.iOS, 16, 0, message: "Use the 'ScopeBarActivation' property instead.")] [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use the 'ScopeBarActivation' property instead.")] [Deprecated (PlatformName.TvOS, 16, 0, message: "Use the 'ScopeBarActivation' property instead.")] - [iOS (13,0), TV (13,0)] + [iOS (13, 0), TV (13, 0)] [Export ("automaticallyShowsScopeBar")] bool AutomaticallyShowsScopeBar { get; set; } - [TV (14,0), NoWatch, iOS (16,0)] + [TV (14, 0), NoWatch, iOS (16, 0)] [NullAllowed, Export ("searchSuggestions", ArgumentSemantic.Copy)] IUISearchSuggestion [] SearchSuggestions { get; set; } [Deprecated (PlatformName.TvOS, 16, 0, message: "Use UIViewController.SetContentScrollView on the SearchResultsController instead.")] - [TV (14,0), NoWatch, NoiOS] + [TV (14, 0), NoWatch, NoiOS] [NullAllowed, Export ("searchControllerObservedScrollView", ArgumentSemantic.Strong)] UIScrollView SearchControllerObservedScrollView { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("scopeBarActivation", ArgumentSemantic.Assign)] UISearchControllerScopeBarActivation ScopeBarActivation { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("ignoresSearchSuggestionsForSearchBarPlacementStacked")] bool IgnoresSearchSuggestionsForSearchBarPlacementStacked { get; set; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("searchBarPlacement")] UINavigationItemSearchBarPlacement SearchBarPlacement { get; } @@ -12358,30 +12481,30 @@ namespace UIKit { [Protocol, Model] [BaseType (typeof (NSObject))] partial interface UISearchControllerDelegate { - [Export ("willPresentSearchController:")] - void WillPresentSearchController (UISearchController searchController); - - [Export ("didPresentSearchController:")] - void DidPresentSearchController (UISearchController searchController); - - [Export ("willDismissSearchController:")] - void WillDismissSearchController (UISearchController searchController); - - [Export ("didDismissSearchController:")] - void DidDismissSearchController (UISearchController searchController); - - [Export ("presentSearchController:")] - void PresentSearchController (UISearchController searchController); + [Export ("willPresentSearchController:")] + void WillPresentSearchController (UISearchController searchController); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] - [Export ("searchController:willChangeToSearchBarPlacement:")] - void WillChangeToSearchBarPlacement (UISearchController searchController, UINavigationItemSearchBarPlacement newPlacement); + [Export ("didPresentSearchController:")] + void DidPresentSearchController (UISearchController searchController); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] - [Export ("searchController:didChangeFromSearchBarPlacement:")] - void DidChangeFromSearchBarPlacement (UISearchController searchController, UINavigationItemSearchBarPlacement previousPlacement); + [Export ("willDismissSearchController:")] + void WillDismissSearchController (UISearchController searchController); + + [Export ("didDismissSearchController:")] + void DidDismissSearchController (UISearchController searchController); + + [Export ("presentSearchController:")] + void PresentSearchController (UISearchController searchController); + + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] + [Export ("searchController:willChangeToSearchBarPlacement:")] + void WillChangeToSearchBarPlacement (UISearchController searchController, UINavigationItemSearchBarPlacement newPlacement); + + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] + [Export ("searchController:didChangeFromSearchBarPlacement:")] + void DidChangeFromSearchBarPlacement (UISearchController searchController, UINavigationItemSearchBarPlacement previousPlacement); } - + [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'UISearchController'.")] [NoMacCatalyst, NoWatch] // Objective-C exception thrown. Name: NSGenericException Reason: UISearchDisplayController is no longer supported when linking against this version of iOS. Please migrate your application to UISearchController. @@ -12392,19 +12515,20 @@ namespace UIKit { [PostGet ("SearchContentsController")] NativeHandle Constructor (UISearchBar searchBar, UIViewController viewController); - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] - NSObject WeakDelegate { get; set; } + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] + NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] - UISearchDisplayDelegate Delegate { get; set; } + UISearchDisplayDelegate Delegate { get; set; } [Export ("active")] - bool Active { [Bind ("isActive")] get; set; } + bool Active { [Bind ("isActive")] get; set; } [Export ("setActive:animated:")] void SetActive (bool visible, bool animated); - + [Export ("searchBar")] UISearchBar SearchBar { get; } @@ -12414,13 +12538,16 @@ namespace UIKit { [Export ("searchResultsTableView")] UITableView SearchResultsTableView { get; } - [Export ("searchResultsDataSource", ArgumentSemantic.Assign)][NullAllowed] + [Export ("searchResultsDataSource", ArgumentSemantic.Assign)] + [NullAllowed] NSObject SearchResultsWeakDataSource { get; set; } - [Wrap ("SearchResultsWeakDataSource")][Protocolize] + [Wrap ("SearchResultsWeakDataSource")] + [Protocolize] UITableViewDataSource SearchResultsDataSource { get; set; } - [Export ("searchResultsDelegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("searchResultsDelegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject SearchResultsWeakDelegate { get; set; } [Wrap ("SearchResultsWeakDelegate")] @@ -12429,13 +12556,13 @@ namespace UIKit { [NullAllowed] // by default this property is null [Export ("searchResultsTitle", ArgumentSemantic.Copy)] - string SearchResultsTitle { get; set; } + string SearchResultsTitle { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("displaysSearchBarInNavigationBar", ArgumentSemantic.Assign)] bool DisplaysSearchBarInNavigationBar { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("navigationItem")] UINavigationItem NavigationItem { get; } } @@ -12446,23 +12573,23 @@ namespace UIKit { [NoTV] [NoMacCatalyst, NoWatch] interface UISearchDisplayDelegate { - + [Export ("searchDisplayControllerWillBeginSearch:")] [Deprecated (PlatformName.iOS, 8, 0)] void WillBeginSearch (UISearchDisplayController controller); - + [Export ("searchDisplayControllerDidBeginSearch:")] [Deprecated (PlatformName.iOS, 8, 0)] void DidBeginSearch (UISearchDisplayController controller); - + [Export ("searchDisplayControllerWillEndSearch:")] [Deprecated (PlatformName.iOS, 8, 0)] void WillEndSearch (UISearchDisplayController controller); - + [Export ("searchDisplayControllerDidEndSearch:")] [Deprecated (PlatformName.iOS, 8, 0)] void DidEndSearch (UISearchDisplayController controller); - + [Export ("searchDisplayController:didLoadSearchResultsTableView:")] [Deprecated (PlatformName.iOS, 8, 0)] void DidLoadSearchResults (UISearchDisplayController controller, UITableView tableView); @@ -12490,12 +12617,12 @@ namespace UIKit { [Export ("searchDisplayController:shouldReloadTableForSearchString:")] [Deprecated (PlatformName.iOS, 8, 0)] bool ShouldReloadForSearchString (UISearchDisplayController controller, string forSearchString); - + [Export ("searchDisplayController:shouldReloadTableForSearchScope:")] [Deprecated (PlatformName.iOS, 8, 0)] bool ShouldReloadForSearchScope (UISearchDisplayController controller, nint forSearchOption); } - + [NoWatch] [Protocol, Model] [BaseType (typeof (NSObject))] @@ -12504,13 +12631,13 @@ namespace UIKit { [Export ("updateSearchResultsForSearchController:")] void UpdateSearchResultsForSearchController (UISearchController searchController); - [TV (14,0), NoWatch, iOS (16,0)] + [TV (14, 0), NoWatch, iOS (16, 0)] [Export ("updateSearchResultsForSearchController:selectingSearchSuggestion:")] void UpdateSearchResults (UISearchController searchController, IUISearchSuggestion searchSuggestion); } - + [NoWatch] - [BaseType (typeof(UIControl))] + [BaseType (typeof (UIControl))] interface UISegmentedControl #if IOS : UISpringLoadedInteractionSupporting @@ -12524,29 +12651,30 @@ namespace UIKit { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("initWithFrame:actions:")] NativeHandle Constructor (CGRect frame, UIAction [] actions); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("insertSegmentWithAction:atIndex:animated:")] void InsertSegment (UIAction action, nuint segment, bool animated); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("setAction:forSegmentAtIndex:")] void SetAction (UIAction action, nuint segment); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("actionForSegmentAtIndex:")] [return: NullAllowed] UIAction GetAction (nuint segment); - [NoWatch, TV (14,0), iOS (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] [Export ("segmentIndexForActionIdentifier:")] nint GetSegmentIndex (string actionIdentifier); [Export ("segmentedControlStyle")] - [NoTV][NoWatch] + [NoTV] + [NoWatch] [Deprecated (PlatformName.iOS, 7, 0, message: "The 'SegmentedControlStyle' property no longer has any effect.")] UISegmentedControlStyle ControlStyle { get; set; } @@ -12555,25 +12683,25 @@ namespace UIKit { [Export ("numberOfSegments")] nint NumberOfSegments { get; } - + [Export ("insertSegmentWithTitle:atIndex:animated:")] void InsertSegment (string title, nint pos, bool animated); [Export ("insertSegmentWithImage:atIndex:animated:")] void InsertSegment (UIImage image, nint pos, bool animated); - + [Export ("removeSegmentAtIndex:animated:")] void RemoveSegmentAtIndex (nint segment, bool animated); - + [Export ("removeAllSegments")] void RemoveAllSegments (); [Export ("setTitle:forSegmentAtIndex:")] void SetTitle (string title, nint segment); - + [Export ("titleForSegmentAtIndex:")] string TitleAt (nint segment); - + [Export ("setImage:forSegmentAtIndex:")] void SetImage (UIImage image, nint segment); @@ -12582,10 +12710,10 @@ namespace UIKit { [Export ("setWidth:forSegmentAtIndex:")] void SetWidth (nfloat width, nint segment); - + [Export ("widthForSegmentAtIndex:")] nfloat SegmentWidth (nint segment); - + [Export ("setContentOffset:forSegmentAtIndex:")] void SetContentOffset (CGSize offset, nint segment); @@ -12602,7 +12730,7 @@ namespace UIKit { nint SelectedSegment { get; set; } [Appearance] - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [NullAllowed, Export ("selectedSegmentTintColor", ArgumentSemantic.Strong)] UIColor SelectedSegmentTintColor { get; set; } @@ -12648,7 +12776,7 @@ namespace UIKit { } [NoTV, NoWatch] - [BaseType (typeof(UIControl))] + [BaseType (typeof (UIControl))] interface UISlider { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -12691,12 +12819,12 @@ namespace UIKit { [PostGet ("CurrentThumbImage")] [Appearance] void SetThumbImage ([NullAllowed] UIImage image, UIControlState forState); - + [Export ("setMinimumTrackImage:forState:")] [PostGet ("CurrentMinTrackImage")] [Appearance] void SetMinTrackImage ([NullAllowed] UIImage image, UIControlState forState); - + [Export ("setMaximumTrackImage:forState:")] [PostGet ("CurrentMaxTrackImage")] [Appearance] @@ -12705,11 +12833,11 @@ namespace UIKit { [Export ("thumbImageForState:")] [Appearance] UIImage ThumbImage (UIControlState forState); - + [Export ("minimumTrackImageForState:")] [Appearance] UIImage MinTrackImage (UIControlState forState); - + [Export ("maximumTrackImageForState:")] [Appearance] UIImage MaxTrackImage (UIControlState forState); @@ -12743,11 +12871,11 @@ namespace UIKit { // From UISlider (UIBehavioralStyle) - [NoWatch, NoTV, MacCatalyst (15,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), iOS (15, 0)] [Export ("behavioralStyle")] UIBehavioralStyle BehavioralStyle { get; } - [NoWatch, NoTV, MacCatalyst (15,0), iOS (15,0)] + [NoWatch, NoTV, MacCatalyst (15, 0), iOS (15, 0)] [Export ("preferredBehavioralStyle", ArgumentSemantic.Assign)] UIBehavioralStyle PreferredBehavioralStyle { get; set; } } @@ -12765,162 +12893,142 @@ namespace UIKit { [Field ("NSStrokeColorAttributeName")] NSString StrokeColor { get; } - + [Field ("NSStrikethroughStyleAttributeName")] NSString StrikethroughStyle { get; } - + [Field ("NSShadowAttributeName")] NSString Shadow { get; } - + [Field ("NSParagraphStyleAttributeName")] NSString ParagraphStyle { get; } - + [Field ("NSLigatureAttributeName")] NSString Ligature { get; } - + [Field ("NSKernAttributeName")] NSString KerningAdjustment { get; } - + [Field ("NSUnderlineStyleAttributeName")] NSString UnderlineStyle { get; } - + [Field ("NSStrokeWidthAttributeName")] NSString StrokeWidth { get; } - + [Field ("NSVerticalGlyphFormAttributeName")] NSString VerticalGlyphForm { get; } - [iOS (7,0)] + [iOS (7, 0)] [Field ("NSTextEffectAttributeName")] NSString TextEffect { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSAttachmentAttributeName")] NSString Attachment { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSLinkAttributeName")] NSString Link { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSBaselineOffsetAttributeName")] NSString BaselineOffset { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSUnderlineColorAttributeName")] NSString UnderlineColor { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSStrikethroughColorAttributeName")] NSString StrikethroughColor { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSObliquenessAttributeName")] NSString Obliqueness { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSExpansionAttributeName")] NSString Expansion { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Field ("NSWritingDirectionAttributeName")] NSString WritingDirection { get; } - [TV (14,0), Watch (7,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Watch (7, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Field ("NSTrackingAttributeName")] NSString Tracking { get; } -// -// These are internal, if we choose to expose these, we should -// put them on a better named class -// - [iOS (7,0)] + // + // These are internal, if we choose to expose these, we should + // put them on a better named class + // + [iOS (7, 0)] [Internal, Field ("NSTextEffectLetterpressStyle")] NSString NSTextEffectLetterpressStyle { get; } - // - // Document Types - // - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSDocumentTypeDocumentAttribute")] NSString NSDocumentTypeDocumentAttribute { get; } - - [iOS (7,0)] - [Internal, Field ("NSPlainTextDocumentType")] - NSString NSPlainTextDocumentType { get; } - - [iOS (7,0)] - [Internal, Field ("NSRTFDTextDocumentType")] - NSString NSRTFDTextDocumentType { get; } - - [iOS (7,0)] - [Internal, Field ("NSRTFTextDocumentType")] - NSString NSRTFTextDocumentType { get; } - - [iOS (7,0)] - [Internal, Field ("NSHTMLTextDocumentType")] - NSString NSHTMLTextDocumentType { get; } - - // - // - // - [iOS (7,0)] + // + // + // + [iOS (7, 0)] [Internal, Field ("NSCharacterEncodingDocumentAttribute")] NSString NSCharacterEncodingDocumentAttribute { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Internal, Field ("NSDefaultAttributesDocumentAttribute")] NSString NSDefaultAttributesDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSPaperSizeDocumentAttribute")] NSString NSPaperSizeDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSPaperMarginDocumentAttribute")] NSString NSPaperMarginDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSViewSizeDocumentAttribute")] NSString NSViewSizeDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSViewZoomDocumentAttribute")] NSString NSViewZoomDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSViewModeDocumentAttribute")] NSString NSViewModeDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSReadOnlyDocumentAttribute")] NSString NSReadOnlyDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSBackgroundColorDocumentAttribute")] NSString NSBackgroundColorDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSHyphenationFactorDocumentAttribute")] NSString NSHyphenationFactorDocumentAttribute { get; } - [iOS (7,0)] + [iOS (7, 0)] [Internal, Field ("NSDefaultTabIntervalDocumentAttribute")] NSString NSDefaultTabIntervalDocumentAttribute { get; } // we do not seem to expose other options like NSDefaultAttributesDocumentOption so keeping these as is for now - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Internal, Field ("NSTargetTextScalingDocumentOption")] NSString TargetTextScalingDocumentOption { get; } - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Internal, Field ("NSSourceTextScalingDocumentOption")] NSString SourceTextScalingDocumentOption { get; } } - + [NoTV, NoWatch] - [BaseType (typeof(UIControl))] + [BaseType (typeof (UIControl))] interface UISwitch : NSCoding { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -12941,34 +13049,34 @@ namespace UIKit { [Appearance] [NullAllowed] [Export ("thumbTintColor", ArgumentSemantic.Retain)] - UIColor ThumbTintColor { get; set; } + UIColor ThumbTintColor { get; set; } [Appearance] [Export ("onImage", ArgumentSemantic.Retain)] [NullAllowed] - UIImage OnImage { get; set; } + UIImage OnImage { get; set; } [Appearance] [NullAllowed] [Export ("offImage", ArgumentSemantic.Retain)] UIImage OffImage { get; set; } - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [NullAllowed] [Export ("title")] string Title { get; set; } - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("style")] UISwitchStyle Style { get; } - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("preferredStyle", ArgumentSemantic.Assign)] UISwitchStyle PreferredStyle { get; set; } } [NoWatch] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UITabBarDelegate)})] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UITabBarDelegate) })] interface UITabBar #if IOS : UISpringLoadedInteractionSupporting @@ -12977,10 +13085,12 @@ namespace UIKit { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][NullAllowed] + [Wrap ("WeakDelegate")] + [NullAllowed] [Protocolize] UITabBarDelegate Delegate { get; set; } @@ -12991,7 +13101,7 @@ namespace UIKit { [Export ("selectedItem", ArgumentSemantic.Weak), NullAllowed] UITabBarItem SelectedItem { get; set; } - + [Export ("setItems:animated:")] [PostGet ("Items")] // that will trigger a (required) PostGet on SelectedItems too void SetItems ([NullAllowed] UITabBarItem [] items, bool animated); @@ -13013,24 +13123,24 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 8, 0)] [NullAllowed] [Appearance] - UIColor SelectedImageTintColor { get; set; } + UIColor SelectedImageTintColor { get; set; } [Export ("backgroundImage", ArgumentSemantic.Retain)] [NullAllowed] [Appearance] - UIImage BackgroundImage { get; set; } + UIImage BackgroundImage { get; set; } [Export ("selectionIndicatorImage", ArgumentSemantic.Retain)] [NullAllowed] [Appearance] - UIImage SelectionIndicatorImage { get; set; } + UIImage SelectionIndicatorImage { get; set; } [Export ("shadowImage", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] UIImage ShadowImage { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("barTintColor", ArgumentSemantic.Retain)] [Appearance] [NullAllowed] @@ -13038,42 +13148,42 @@ namespace UIKit { [Appearance] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("itemPositioning")] UITabBarItemPositioning ItemPositioning { get; set; } [Appearance] - [iOS (7,0)] + [iOS (7, 0)] [Export ("itemWidth")] nfloat ItemWidth { get; set; } [Appearance] - [iOS (7,0)] + [iOS (7, 0)] [Export ("itemSpacing")] nfloat ItemSpacing { get; set; } [Appearance] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("barStyle")] UIBarStyle BarStyle { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("translucent")] bool Translucent { [Bind ("isTranslucent")] get; set; } [Appearance] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("unselectedItemTintColor", ArgumentSemantic.Copy)] UIColor UnselectedItemTintColor { get; set; } [Appearance] - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [Export ("standardAppearance", ArgumentSemantic.Copy)] UITabBarAppearance StandardAppearance { get; set; } [Appearance] - [TV (15,0), iOS (15,0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [NullAllowed, Export ("scrollEdgeAppearance", ArgumentSemantic.Copy)] UITabBarAppearance ScrollEdgeAppearance { get; set; } @@ -13087,7 +13197,7 @@ namespace UIKit { } [NoWatch] - [BaseType (typeof (UIViewController), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UITabBarControllerDelegate)})] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UITabBarControllerDelegate) })] interface UITabBarController : UITabBarDelegate { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] @@ -13128,7 +13238,8 @@ namespace UIKit { [Protocolize] UITabBarControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } } @@ -13165,7 +13276,7 @@ namespace UIKit { [Export ("tabBarController:shouldSelectViewController:"), DefaultValue (true), DelegateName ("UITabBarSelection")] bool ShouldSelectViewController (UITabBarController tabBarController, UIViewController viewController); - + [Export ("tabBarController:didSelectViewController:"), EventArgs ("UITabBarSelection")] void ViewControllerSelected (UITabBarController tabBarController, UIViewController viewController); @@ -13182,31 +13293,31 @@ namespace UIKit { void FinishedCustomizingViewControllers (UITabBarController tabBarController, UIViewController [] viewControllers, bool changed); [NoTV] - [iOS (7,0), Export ("tabBarControllerSupportedInterfaceOrientations:")] + [iOS (7, 0), Export ("tabBarControllerSupportedInterfaceOrientations:")] [NoDefaultValue] [DelegateName ("Func")] - UIInterfaceOrientationMask SupportedInterfaceOrientations (UITabBarController tabBarController); - + UIInterfaceOrientationMask SupportedInterfaceOrientations (UITabBarController tabBarController); + [NoTV] - [iOS (7,0), Export ("tabBarControllerPreferredInterfaceOrientationForPresentation:")] + [iOS (7, 0), Export ("tabBarControllerPreferredInterfaceOrientationForPresentation:")] [NoDefaultValue] [DelegateName ("Func")] - UIInterfaceOrientation GetPreferredInterfaceOrientation (UITabBarController tabBarController); - - [iOS (7,0), Export ("tabBarController:interactionControllerForAnimationController:")] + UIInterfaceOrientation GetPreferredInterfaceOrientation (UITabBarController tabBarController); + + [iOS (7, 0), Export ("tabBarController:interactionControllerForAnimationController:")] [NoDefaultValue] [DelegateName ("Func")] IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController (UITabBarController tabBarController, IUIViewControllerAnimatedTransitioning animationController); - - [iOS (7,0), Export ("tabBarController:animationControllerForTransitionFromViewController:toViewController:")] + + [iOS (7, 0), Export ("tabBarController:animationControllerForTransitionFromViewController:toViewController:")] [NoDefaultValue] [DelegateName ("Func")] IUIViewControllerAnimatedTransitioning GetAnimationControllerForTransition (UITabBarController tabBarController, UIViewController fromViewController, UIViewController toViewController); } - + [NoWatch] [BaseType (typeof (UIBarItem))] [DesignatedDefaultCtor] @@ -13215,21 +13326,26 @@ namespace UIKit { , UISpringLoadedInteractionSupporting, UIPopoverPresentationControllerSourceItem #endif { - [Export ("enabled")][Override] + [Export ("enabled")] + [Override] bool Enabled { [Bind ("isEnabled")] get; set; } - [Export ("title", ArgumentSemantic.Copy)][Override] + [Export ("title", ArgumentSemantic.Copy)] + [Override] [NullAllowed] - string Title { get;set; } + string Title { get; set; } - [Export ("image", ArgumentSemantic.Retain)][Override] + [Export ("image", ArgumentSemantic.Retain)] + [Override] [NullAllowed] UIImage Image { get; set; } - [Export ("imageInsets")][Override] + [Export ("imageInsets")] + [Override] UIEdgeInsets ImageInsets { get; set; } - [Export ("tag")][Override] + [Export ("tag")] + [Override] nint Tag { get; set; } [Export ("initWithTitle:image:tag:")] @@ -13239,8 +13355,9 @@ namespace UIKit { [Export ("initWithTabBarSystemItem:tag:")] NativeHandle Constructor (UITabBarSystemItem systemItem, nint tag); - [Export ("badgeValue", ArgumentSemantic.Copy)][NullAllowed] - string BadgeValue { get; set; } + [Export ("badgeValue", ArgumentSemantic.Copy)] + [NullAllowed] + string BadgeValue { get; set; } [NoTV] [Deprecated (PlatformName.iOS, 7, 0, message: "Use the '(string, UIImage, UIImage)' constructor or the 'Image' and 'SelectedImage' properties along with 'RenderingMode = UIImageRenderingMode.AlwaysOriginal'.")] @@ -13263,39 +13380,40 @@ namespace UIKit { [Appearance] UIOffset TitlePositionAdjustment { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("initWithTitle:image:selectedImage:")] [PostGet ("Image")] [PostGet ("SelectedImage")] NativeHandle Constructor ([NullAllowed] string title, [NullAllowed] UIImage image, [NullAllowed] UIImage selectedImage); - [iOS (7,0)] - [Export ("selectedImage", ArgumentSemantic.Retain)][NullAllowed] + [iOS (7, 0)] + [Export ("selectedImage", ArgumentSemantic.Retain)] + [NullAllowed] UIImage SelectedImage { get; set; } [Appearance] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("badgeColor", ArgumentSemantic.Copy)] UIColor BadgeColor { get; set; } [Appearance] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("setBadgeTextAttributes:forState:")] [Internal] void SetBadgeTextAttributes ([NullAllowed] NSDictionary textAttributes, UIControlState state); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Wrap ("SetBadgeTextAttributes (textAttributes.GetDictionary (), state)")] void SetBadgeTextAttributes (UIStringAttributes textAttributes, UIControlState state); [Appearance] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("badgeTextAttributesForState:")] [EditorBrowsable (EditorBrowsableState.Advanced)] [return: NullAllowed] NSDictionary GetBadgeTextAttributesDictionary (UIControlState state); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Wrap ("new UIStringAttributes (GetBadgeTextAttributesDictionary(state))")] UIStringAttributes GetBadgeTextAttributes (UIControlState state); @@ -13305,13 +13423,13 @@ namespace UIKit { UITabBarAppearance StandardAppearance { get; set; } [Appearance] - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("scrollEdgeAppearance", ArgumentSemantic.Copy)] UITabBarAppearance ScrollEdgeAppearance { get; set; } } - + [NoWatch] - [BaseType (typeof(UIScrollView))] + [BaseType (typeof (UIScrollView))] interface UITableView : NSCoding, UIDataSourceTranslating #if IOS , UISpringLoadedInteractionSupporting @@ -13326,18 +13444,22 @@ namespace UIKit { [Export ("style")] UITableViewStyle Style { get; } - - [Export ("dataSource", ArgumentSemantic.Assign)][NullAllowed] + + [Export ("dataSource", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDataSource { get; set; } [Wrap ("WeakDataSource")] - [Protocolize] + [Protocolize] UITableViewDataSource DataSource { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][New][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [New] + [NullAllowed] NSObject WeakDelegate { get; set; } - [Wrap ("WeakDelegate")][New] + [Wrap ("WeakDelegate")] + [New] [Protocolize] UITableViewDelegate Delegate { get; set; } @@ -13361,7 +13483,7 @@ namespace UIKit { [Export ("numberOfRowsInSection:")] nint NumberOfRowsInSection (nint section); - + [Export ("rectForSection:")] CGRect RectForSection (nint section); @@ -13377,12 +13499,13 @@ namespace UIKit { [Export ("indexPathForRowAtPoint:")] [return: NullAllowed] NSIndexPath IndexPathForRowAtPoint (CGPoint point); - + [Export ("indexPathForCell:")] [return: NullAllowed] NSIndexPath IndexPathForCell (UITableViewCell cell); - [Export ("indexPathsForRowsInRect:")][Internal] + [Export ("indexPathsForRowsInRect:")] + [Internal] IntPtr _IndexPathsForRowsInRect (CGRect rect); [Export ("cellForRowAtIndexPath:")] @@ -13426,13 +13549,13 @@ namespace UIKit { [Export ("reloadRowsAtIndexPaths:withRowAnimation:")] void ReloadRows (NSIndexPath [] atIndexPaths, UITableViewRowAnimation withRowAnimation); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reconfigureRowsAtIndexPaths:")] - void ReconfigureRows (NSIndexPath[] indexPaths); - + void ReconfigureRows (NSIndexPath [] indexPaths); + [Export ("editing")] bool Editing { [Bind ("isEditing")] get; set; } - + [Export ("setEditing:animated:")] void SetEditing (bool editing, bool animated); @@ -13447,7 +13570,7 @@ namespace UIKit { NSIndexPath IndexPathForSelectedRow { get; } [Export ("selectRowAtIndexPath:animated:scrollPosition:")] - void SelectRow ([NullAllowed] NSIndexPath indexPath, bool animated, UITableViewScrollPosition scrollPosition); + void SelectRow ([NullAllowed] NSIndexPath indexPath, bool animated, UITableViewScrollPosition scrollPosition); [Export ("deselectRowAtIndexPath:animated:")] void DeselectRow (NSIndexPath indexPath, bool animated); @@ -13455,7 +13578,8 @@ namespace UIKit { [Export ("sectionIndexMinimumDisplayRowCount")] nint SectionIndexMinimumDisplayRowCount { get; set; } - [NoTV][NoWatch] + [NoTV] + [NoWatch] [Export ("separatorStyle")] UITableViewCellSeparatorStyle SeparatorStyle { get; set; } @@ -13475,7 +13599,8 @@ namespace UIKit { [return: NullAllowed] UITableViewCell DequeueReusableCell (string identifier); - [Export ("dequeueReusableCellWithIdentifier:")][Sealed] + [Export ("dequeueReusableCellWithIdentifier:")] + [Sealed] [return: NullAllowed] UITableViewCell DequeueReusableCell (NSString identifier); @@ -13491,10 +13616,10 @@ namespace UIKit { nfloat AutomaticDimension { get; } [Export ("allowsMultipleSelection")] - bool AllowsMultipleSelection { get; set; } + bool AllowsMultipleSelection { get; set; } [Export ("allowsMultipleSelectionDuringEditing")] - bool AllowsMultipleSelectionDuringEditing { get; set; } + bool AllowsMultipleSelectionDuringEditing { get; set; } [Export ("moveSection:toSection:")] void MoveSection (nint fromSection, nint toSection); @@ -13519,12 +13644,12 @@ namespace UIKit { [Appearance] [NullAllowed] [Export ("sectionIndexColor", ArgumentSemantic.Retain)] - UIColor SectionIndexColor { get; set; } + UIColor SectionIndexColor { get; set; } [Appearance] [NullAllowed] [Export ("sectionIndexTrackingBackgroundColor", ArgumentSemantic.Retain)] - UIColor SectionIndexTrackingBackgroundColor { get; set; } + UIColor SectionIndexTrackingBackgroundColor { get; set; } [Export ("headerViewForSection:")] [return: NullAllowed] @@ -13553,119 +13678,119 @@ namespace UIKit { // // 7.0 // - [iOS (7,0)] + [iOS (7, 0)] [Export ("estimatedRowHeight", ArgumentSemantic.Assign)] nfloat EstimatedRowHeight { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("estimatedSectionHeaderHeight", ArgumentSemantic.Assign)] nfloat EstimatedSectionHeaderHeight { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("estimatedSectionFooterHeight", ArgumentSemantic.Assign)] nfloat EstimatedSectionFooterHeight { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Appearance] [NullAllowed] // by default this property is null [Export ("sectionIndexBackgroundColor", ArgumentSemantic.Retain)] UIColor SectionIndexBackgroundColor { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [Export ("separatorInset")] UIEdgeInsets SeparatorInset { get; set; } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("separatorEffect", ArgumentSemantic.Copy)] [Appearance] UIVisualEffect SeparatorEffect { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("cellLayoutMarginsFollowReadableWidth")] bool CellLayoutMarginsFollowReadableWidth { get; set; } - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("remembersLastFocusedIndexPath")] bool RemembersLastFocusedIndexPath { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("prefetchDataSource", ArgumentSemantic.Weak)] IUITableViewDataSourcePrefetching PrefetchDataSource { get; set; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("prefetchingEnabled")] bool PrefetchingEnabled { [Bind ("isPrefetchingEnabled")] get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("dragDelegate", ArgumentSemantic.Weak)] IUITableViewDragDelegate DragDelegate { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("dropDelegate", ArgumentSemantic.Weak)] IUITableViewDropDelegate DropDelegate { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("separatorInsetReference", ArgumentSemantic.Assign)] UITableViewSeparatorInsetReference SeparatorInsetReference { get; set; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Async] [Export ("performBatchUpdates:completion:")] void PerformBatchUpdates ([NullAllowed] Action updates, [NullAllowed] Action completion); - + [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("hasUncommittedUpdates")] bool HasUncommittedUpdates { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("dragInteractionEnabled")] bool DragInteractionEnabled { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("hasActiveDrag")] bool HasActiveDrag { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("hasActiveDrop")] bool HasActiveDrop { get; } [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("insetsContentViewsToSafeArea")] bool InsetsContentViewsToSafeArea { get; set; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("selectionFollowsFocus")] bool SelectionFollowsFocus { get; set; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsFocus")] bool AllowsFocus { get; set; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsFocusDuringEditing")] bool AllowsFocusDuringEditing { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("contextMenuInteraction")] UIContextMenuInteraction ContextMenuInteraction { get; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("fillerRowHeight")] nfloat FillerRowHeight { get; set; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sectionHeaderTopPadding")] nfloat SectionHeaderTopPadding { get; set; } @@ -13675,19 +13800,18 @@ namespace UIKit { } - interface IUITableViewDataSourcePrefetching {} - [iOS (10,0), NoWatch] + interface IUITableViewDataSourcePrefetching { } + [iOS (10, 0), NoWatch] [Protocol] - interface UITableViewDataSourcePrefetching - { + interface UITableViewDataSourcePrefetching { [Abstract] [Export ("tableView:prefetchRowsAtIndexPaths:")] - void PrefetchRows (UITableView tableView, NSIndexPath[] indexPaths); - + void PrefetchRows (UITableView tableView, NSIndexPath [] indexPaths); + [Export ("tableView:cancelPrefetchingForRowsAtIndexPaths:")] - void CancelPrefetching (UITableView tableView, NSIndexPath[] indexPaths); + void CancelPrefetching (UITableView tableView, NSIndexPath [] indexPaths); } - + // // This mixed both the UITableViewDataSource and UITableViewDelegate in a single class // @@ -13723,11 +13847,11 @@ namespace UIKit { [Export ("tableView:canMoveRowAtIndexPath:")] bool CanMoveRow (UITableView tableView, NSIndexPath indexPath); - [TV (10,2)] + [TV (10, 2)] [Export ("sectionIndexTitlesForTableView:")] string [] SectionIndexTitles (UITableView tableView); - [TV (10,2)] // <- Header removed __TVOS_PROHIBITED; + [TV (10, 2)] // <- Header removed __TVOS_PROHIBITED; [Export ("tableView:sectionForSectionIndexTitle:atIndex:")] nint SectionFor (UITableView tableView, string title, nint atIndex); @@ -13772,31 +13896,31 @@ namespace UIKit { [Export ("tableView:didSelectRowAtIndexPath:")] void RowSelected (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:didDeselectRowAtIndexPath:")] void RowDeselected (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:editingStyleForRowAtIndexPath:")] UITableViewCellEditingStyle EditingStyleForRow (UITableView tableView, NSIndexPath indexPath); [NoTV] [Export ("tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:")] string TitleForDeleteConfirmation (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:shouldIndentWhileEditingRowAtIndexPath:")] bool ShouldIndentWhileEditing (UITableView tableView, NSIndexPath indexPath); - + [NoTV] [Export ("tableView:willBeginEditingRowAtIndexPath:")] void WillBeginEditing (UITableView tableView, NSIndexPath indexPath); - + [NoTV] [Export ("tableView:didEndEditingRowAtIndexPath:")] void DidEndEditing (UITableView tableView, [NullAllowed] NSIndexPath indexPath); - + [Export ("tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:")] NSIndexPath CustomizeMoveTarget (UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath proposedIndexPath); - + [Export ("tableView:indentationLevelForRowAtIndexPath:")] nint IndentationLevel (UITableView tableView, NSIndexPath indexPath); @@ -13813,7 +13937,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GetContextMenuConfiguration' instead.")] [Export ("tableView:performAction:forRowAtIndexPath:withSender:")] void PerformAction (UITableView tableView, Selector action, NSIndexPath indexPath, [NullAllowed] NSObject sender); - + [Export ("tableView:willDisplayHeaderView:forSection:")] void WillDisplayHeaderView (UITableView tableView, UIView headerView, nint section); @@ -13838,113 +13962,113 @@ namespace UIKit { [Export ("tableView:didUnhighlightRowAtIndexPath:")] void RowUnhighlighted (UITableView tableView, NSIndexPath rowIndexPath); - [iOS (7,0)] + [iOS (7, 0)] [Export ("tableView:estimatedHeightForRowAtIndexPath:")] nfloat EstimatedHeight (UITableView tableView, NSIndexPath indexPath); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("tableView:estimatedHeightForHeaderInSection:")] nfloat EstimatedHeightForHeader (UITableView tableView, nint section); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("tableView:estimatedHeightForFooterInSection:")] nfloat EstimatedHeightForFooter (UITableView tableView, nint section); [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GetTrailingSwipeActionsConfiguration' instead.")] [Export ("tableView:editActionsForRowAtIndexPath:")] UITableViewRowAction [] EditActionsForRow (UITableView tableView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:canFocusRowAtIndexPath:")] bool CanFocusRow (UITableView tableView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:shouldUpdateFocusInContext:")] bool ShouldUpdateFocus (UITableView tableView, UITableViewFocusUpdateContext context); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:didUpdateFocusInContext:withAnimationCoordinator:")] void DidUpdateFocus (UITableView tableView, UITableViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator); - [iOS (9,0)] + [iOS (9, 0)] [Export ("indexPathForPreferredFocusedViewInTableView:")] [return: NullAllowed] NSIndexPath GetIndexPathForPreferredFocusedView (UITableView tableView); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("tableView:selectionFollowsFocusForRowAtIndexPath:")] bool GetSelectionFollowsFocusForRow (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:")] [return: NullAllowed] UISwipeActionsConfiguration GetLeadingSwipeActionsConfiguration (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:")] [return: NullAllowed] UISwipeActionsConfiguration GetTrailingSwipeActionsConfiguration (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:shouldSpringLoadRowAtIndexPath:withContext:")] bool ShouldSpringLoadRow (UITableView tableView, NSIndexPath indexPath, IUISpringLoadedInteractionContext context); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:shouldBeginMultipleSelectionInteractionAtIndexPath:")] bool ShouldBeginMultipleSelectionInteraction (UITableView tableView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:didBeginMultipleSelectionInteractionAtIndexPath:")] void DidBeginMultipleSelectionInteraction (UITableView tableView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableViewDidEndMultipleSelectionInteraction:")] void DidEndMultipleSelectionInteraction (UITableView tableView); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:contextMenuConfigurationForRowAtIndexPath:point:")] [return: NullAllowed] UIContextMenuConfiguration GetContextMenuConfiguration (UITableView tableView, NSIndexPath indexPath, CGPoint point); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:previewForHighlightingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForHighlightingContextMenu (UITableView tableView, UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:previewForDismissingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForDismissingContextMenu (UITableView tableView, UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:willPerformPreviewActionForMenuWithConfiguration:animator:")] void WillPerformPreviewAction (UITableView tableView, UIContextMenuConfiguration configuration, IUIContextMenuInteractionCommitAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("tableView:willDisplayContextMenuWithConfiguration:animator:")] void WillDisplayContextMenu (UITableView tableView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("tableView:willEndContextMenuInteractionWithConfiguration:animator:")] void WillEndContextMenuInteraction (UITableView tableView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("tableView:canPerformPrimaryActionForRowAtIndexPath:")] bool CanPerformPrimaryAction (UITableView tableView, NSIndexPath rowIndexPath); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("tableView:performPrimaryActionForRowAtIndexPath:")] void PerformPrimaryAction (UITableView tableView, NSIndexPath rowIndexPath); // WARNING: If you add more methods here, add them to UITableViewControllerDelegate as well. } - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] delegate void UITableViewCellConfigurationUpdateHandler (UITableViewCell cell, UICellConfigurationState state); [NoWatch] @@ -13957,31 +14081,31 @@ namespace UIKit { [Export ("initWithStyle:reuseIdentifier:")] NativeHandle Constructor (UITableViewCellStyle style, [NullAllowed] NSString reuseIdentifier); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("configurationState")] UICellConfigurationState ConfigurationState { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("setNeedsUpdateConfiguration")] void SetNeedsUpdateConfiguration (); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("updateConfigurationUsingState:")] void UpdateConfiguration (UICellConfigurationState state); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("configurationUpdateHandler", ArgumentSemantic.Copy)] UITableViewCellConfigurationUpdateHandler ConfigurationUpdateHandler { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("defaultContentConfiguration")] UIListContentConfiguration DefaultContentConfiguration { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("contentConfiguration", ArgumentSemantic.Copy)] IUIContentConfiguration ContentConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesContentConfiguration")] bool AutomaticallyUpdatesContentConfiguration { get; set; } @@ -13991,7 +14115,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'UIListContentConfiguration' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'UIListContentConfiguration' instead.")] [Export ("imageView", ArgumentSemantic.Retain)] - UIImageView ImageView { get; } + UIImageView ImageView { get; } [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'UIListContentConfiguration' instead.")] [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'UIListContentConfiguration' instead.")] @@ -14003,11 +14127,11 @@ namespace UIKit { [Export ("detailTextLabel", ArgumentSemantic.Retain)] UILabel DetailTextLabel { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("backgroundConfiguration", ArgumentSemantic.Copy)] UIBackgroundConfiguration BackgroundConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesBackgroundConfiguration")] bool AutomaticallyUpdatesBackgroundConfiguration { get; set; } @@ -14029,35 +14153,37 @@ namespace UIKit { [Export ("selected")] bool Selected { [Bind ("isSelected")] get; set; } - + [Export ("highlighted")] bool Highlighted { [Bind ("isHighlighted")] get; set; } [Export ("setSelected:animated:")] void SetSelected (bool selected, bool animated); - + [Export ("setHighlighted:animated:")] void SetHighlighted (bool highlighted, bool animated); - + [Export ("editingStyle")] UITableViewCellEditingStyle EditingStyle { get; } [Export ("showsReorderControl")] bool ShowsReorderControl { get; set; } - + [Export ("shouldIndentWhileEditing")] - bool ShouldIndentWhileEditing { get; set; } - + bool ShouldIndentWhileEditing { get; set; } + [Export ("accessoryType")] UITableViewCellAccessory Accessory { get; set; } - [Export ("accessoryView", ArgumentSemantic.Retain)][NullAllowed] + [Export ("accessoryView", ArgumentSemantic.Retain)] + [NullAllowed] UIView AccessoryView { get; set; } - + [Export ("editingAccessoryType")] UITableViewCellAccessory EditingAccessory { get; set; } - - [Export ("editingAccessoryView", ArgumentSemantic.Retain)][NullAllowed] + + [Export ("editingAccessoryView", ArgumentSemantic.Retain)] + [NullAllowed] UIView EditingAccessoryView { get; set; } [Export ("indentationLevel")] @@ -14086,22 +14212,22 @@ namespace UIKit { [Appearance] [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("separatorInset")] UIEdgeInsets SeparatorInset { get; set; } [Appearance] - [iOS (9,0)] // introduced in Xcode 7.1 SDK (iOS 9.1 but hidden in 9.0) + [iOS (9, 0)] // introduced in Xcode 7.1 SDK (iOS 9.1 but hidden in 9.0) [Export ("focusStyle", ArgumentSemantic.Assign)] UITableViewCellFocusStyle FocusStyle { get; set; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("dragStateDidChange:")] void DragStateDidChange (UITableViewCellDragState dragState); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("userInteractionEnabledWhileDragging")] bool UserInteractionEnabledWhileDragging { get; set; } @@ -14166,11 +14292,11 @@ namespace UIKit { [Export ("tableView:canMoveRowAtIndexPath:")] bool CanMoveRow (UITableView tableView, NSIndexPath indexPath); - [TV (10,2)] + [TV (10, 2)] [Export ("sectionIndexTitlesForTableView:")] string [] SectionIndexTitles (UITableView tableView); - [TV (10,2)] + [TV (10, 2)] [Export ("tableView:sectionForSectionIndexTitle:atIndex:")] nint SectionFor (UITableView tableView, string title, nint atIndex); @@ -14184,7 +14310,7 @@ namespace UIKit { [NoWatch] [BaseType (typeof (UIScrollViewDelegate))] [Model] - [Protocol] + [Protocol] interface UITableViewDelegate { [Export ("tableView:willDisplayCell:forRowAtIndexPath:")] @@ -14222,31 +14348,31 @@ namespace UIKit { [Export ("tableView:didSelectRowAtIndexPath:")] void RowSelected (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:didDeselectRowAtIndexPath:")] void RowDeselected (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:editingStyleForRowAtIndexPath:")] UITableViewCellEditingStyle EditingStyleForRow (UITableView tableView, NSIndexPath indexPath); [NoTV] [Export ("tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:")] string TitleForDeleteConfirmation (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:shouldIndentWhileEditingRowAtIndexPath:")] bool ShouldIndentWhileEditing (UITableView tableView, NSIndexPath indexPath); [NoTV] [Export ("tableView:willBeginEditingRowAtIndexPath:")] void WillBeginEditing (UITableView tableView, NSIndexPath indexPath); - + [NoTV] [Export ("tableView:didEndEditingRowAtIndexPath:")] void DidEndEditing (UITableView tableView, NSIndexPath indexPath); - + [Export ("tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:")] NSIndexPath CustomizeMoveTarget (UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath proposedIndexPath); - + [Export ("tableView:indentationLevelForRowAtIndexPath:")] nint IndentationLevel (UITableView tableView, NSIndexPath indexPath); @@ -14288,113 +14414,113 @@ namespace UIKit { void RowHighlighted (UITableView tableView, NSIndexPath rowIndexPath); [Export ("tableView:didUnhighlightRowAtIndexPath:")] - void RowUnhighlighted (UITableView tableView, NSIndexPath rowIndexPath); + void RowUnhighlighted (UITableView tableView, NSIndexPath rowIndexPath); - [iOS (7,0)] + [iOS (7, 0)] [Export ("tableView:estimatedHeightForRowAtIndexPath:")] nfloat EstimatedHeight (UITableView tableView, NSIndexPath indexPath); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("tableView:estimatedHeightForHeaderInSection:")] nfloat EstimatedHeightForHeader (UITableView tableView, nint section); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("tableView:estimatedHeightForFooterInSection:")] nfloat EstimatedHeightForFooter (UITableView tableView, nint section); [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'GetTrailingSwipeActionsConfiguration' instead.")] [Export ("tableView:editActionsForRowAtIndexPath:")] UITableViewRowAction [] EditActionsForRow (UITableView tableView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:canFocusRowAtIndexPath:")] bool CanFocusRow (UITableView tableView, NSIndexPath indexPath); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:shouldUpdateFocusInContext:")] bool ShouldUpdateFocus (UITableView tableView, UITableViewFocusUpdateContext context); - [iOS (9,0)] + [iOS (9, 0)] [Export ("tableView:didUpdateFocusInContext:withAnimationCoordinator:")] void DidUpdateFocus (UITableView tableView, UITableViewFocusUpdateContext context, UIFocusAnimationCoordinator coordinator); - [iOS (9,0)] + [iOS (9, 0)] [Export ("indexPathForPreferredFocusedViewInTableView:")] [return: NullAllowed] NSIndexPath GetIndexPathForPreferredFocusedView (UITableView tableView); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("tableView:selectionFollowsFocusForRowAtIndexPath:")] bool GetSelectionFollowsFocusForRow (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:")] [return: NullAllowed] UISwipeActionsConfiguration GetLeadingSwipeActionsConfiguration (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:")] [return: NullAllowed] UISwipeActionsConfiguration GetTrailingSwipeActionsConfiguration (UITableView tableView, NSIndexPath indexPath); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("tableView:shouldSpringLoadRowAtIndexPath:withContext:")] bool ShouldSpringLoadRow (UITableView tableView, NSIndexPath indexPath, IUISpringLoadedInteractionContext context); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:shouldBeginMultipleSelectionInteractionAtIndexPath:")] bool ShouldBeginMultipleSelectionInteraction (UITableView tableView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:didBeginMultipleSelectionInteractionAtIndexPath:")] void DidBeginMultipleSelectionInteraction (UITableView tableView, NSIndexPath indexPath); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableViewDidEndMultipleSelectionInteraction:")] void DidEndMultipleSelectionInteraction (UITableView tableView); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:contextMenuConfigurationForRowAtIndexPath:point:")] [return: NullAllowed] UIContextMenuConfiguration GetContextMenuConfiguration (UITableView tableView, NSIndexPath indexPath, CGPoint point); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:previewForHighlightingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForHighlightingContextMenu (UITableView tableView, UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:previewForDismissingContextMenuWithConfiguration:")] [return: NullAllowed] UITargetedPreview GetPreviewForDismissingContextMenu (UITableView tableView, UIContextMenuConfiguration configuration); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("tableView:willPerformPreviewActionForMenuWithConfiguration:animator:")] void WillPerformPreviewAction (UITableView tableView, UIContextMenuConfiguration configuration, IUIContextMenuInteractionCommitAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("tableView:willDisplayContextMenuWithConfiguration:animator:")] void WillDisplayContextMenu (UITableView tableView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("tableView:willEndContextMenuInteractionWithConfiguration:animator:")] void WillEndContextMenuInteraction (UITableView tableView, UIContextMenuConfiguration configuration, [NullAllowed] IUIContextMenuInteractionAnimating animator); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("tableView:canPerformPrimaryActionForRowAtIndexPath:")] bool CanPerformPrimaryAction (UITableView tableView, NSIndexPath rowIndexPath); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("tableView:performPrimaryActionForRowAtIndexPath:")] void PerformPrimaryAction (UITableView tableView, NSIndexPath rowIndexPath); } - [TV (15,0), Watch (8,0), iOS (15,0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Watch (8, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] delegate void UITableViewHeaderFooterViewConfigurationUpdateHandler (UITableViewHeaderFooterView headerFooterView, UIViewConfigurationState state); [NoWatch] @@ -14407,57 +14533,57 @@ namespace UIKit { [Export ("configurationState")] UIViewConfigurationState ConfigurationState { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("setNeedsUpdateConfiguration")] void SetNeedsUpdateConfiguration (); - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("updateConfigurationUsingState:")] void UpdateConfiguration (UIViewConfigurationState state); - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("configurationUpdateHandler", ArgumentSemantic.Copy)] UITableViewHeaderFooterViewConfigurationUpdateHandler ConfigurationUpdateHandler { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("defaultContentConfiguration")] UIListContentConfiguration DefaultContentConfiguration { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("contentConfiguration", ArgumentSemantic.Copy)] IUIContentConfiguration ContentConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesContentConfiguration")] bool AutomaticallyUpdatesContentConfiguration { get; set; } [Deprecated (PlatformName.iOS, 14, 0)] [Deprecated (PlatformName.TvOS, 14, 0)] [Export ("textLabel", ArgumentSemantic.Retain)] - UILabel TextLabel { get; } + UILabel TextLabel { get; } [Deprecated (PlatformName.iOS, 14, 0)] [Deprecated (PlatformName.TvOS, 14, 0)] [Export ("detailTextLabel", ArgumentSemantic.Retain)] - UILabel DetailTextLabel { get; } + UILabel DetailTextLabel { get; } [Export ("contentView", ArgumentSemantic.Retain)] - UIView ContentView { get; } + UIView ContentView { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [NullAllowed, Export ("backgroundConfiguration", ArgumentSemantic.Copy)] UIBackgroundConfiguration BackgroundConfiguration { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("automaticallyUpdatesBackgroundConfiguration")] bool AutomaticallyUpdatesBackgroundConfiguration { get; set; } [NullAllowed] // by default this property is null [Export ("backgroundView", ArgumentSemantic.Retain)] - UIView BackgroundView { get; set; } + UIView BackgroundView { get; set; } [Export ("reuseIdentifier", ArgumentSemantic.Copy)] - NSString ReuseIdentifier { get; } + NSString ReuseIdentifier { get; } [DesignatedInitializer] [Export ("initWithReuseIdentifier:")] @@ -14474,7 +14600,7 @@ namespace UIKit { } [NoTV, NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'UIContextualAction' and corresponding APIs instead.")] interface UITableViewRowAction : NSCopying { @@ -14496,9 +14622,9 @@ namespace UIKit { [Static, Export ("rowActionWithStyle:title:handler:")] UITableViewRowAction Create (UITableViewRowActionStyle style, [NullAllowed] string title, Action handler); } - + [NoWatch] - [BaseType (typeof (UIControl), Delegates=new string [] { "WeakDelegate" })] + [BaseType (typeof (UIControl), Delegates = new string [] { "WeakDelegate" })] // , Events=new Type [] {typeof(UITextFieldDelegate)})] custom logic needed, see https://bugzilla.xamarin.com/show_bug.cgi?id=53174 interface UITextField : UITextInput, UIContentSizeCategoryAdjusting #if IOS @@ -14539,7 +14665,8 @@ namespace UIKit { [Export ("minimumFontSize")] nfloat MinimumFontSize { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -14576,22 +14703,22 @@ namespace UIKit { [Export ("borderRectForBounds:")] CGRect BorderRect (CGRect forBounds); - + [Export ("textRectForBounds:")] CGRect TextRect (CGRect forBounds); - + [Export ("placeholderRectForBounds:")] CGRect PlaceholderRect (CGRect forBounds); - + [Export ("editingRectForBounds:")] CGRect EditingRect (CGRect forBounds); - + [Export ("clearButtonRectForBounds:")] CGRect ClearButtonRect (CGRect forBounds); - + [Export ("leftViewRectForBounds:")] CGRect LeftViewRect (CGRect forBounds); - + [Export ("rightViewRectForBounds:")] CGRect RightViewRect (CGRect forBounds); @@ -14605,25 +14732,27 @@ namespace UIKit { void DrawPlaceholder (CGRect rect); // 3.2 - [Export ("inputAccessoryView", ArgumentSemantic.Retain)][NullAllowed] + [Export ("inputAccessoryView", ArgumentSemantic.Retain)] + [NullAllowed] UIView InputAccessoryView { get; set; } - [Export ("inputView", ArgumentSemantic.Retain)][NullAllowed] + [Export ("inputView", ArgumentSemantic.Retain)] + [NullAllowed] UIView InputView { get; set; } [Field ("UITextFieldTextDidBeginEditingNotification")] [Notification] NSString TextDidBeginEditingNotification { get; } - + [Field ("UITextFieldTextDidEndEditingNotification")] [Notification] NSString TextDidEndEditingNotification { get; } - + [Field ("UITextFieldTextDidChangeNotification")] [Notification] NSString TextFieldTextDidChangeNotification { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Field ("UITextFieldDidEndEditingReasonKey")] NSString DidEndEditingReasonKey { get; } @@ -14633,29 +14762,29 @@ namespace UIKit { [NullAllowed] // by default this property is null (on 6.0, not later) [Export ("attributedText", ArgumentSemantic.Copy)] - NSAttributedString AttributedText { get; set; } + NSAttributedString AttributedText { get; set; } [NullAllowed] // by default this property is null [Export ("attributedPlaceholder", ArgumentSemantic.Copy)] - NSAttributedString AttributedPlaceholder { get; set; } + NSAttributedString AttributedPlaceholder { get; set; } [Export ("allowsEditingTextAttributes")] - bool AllowsEditingTextAttributes { get; set; } + bool AllowsEditingTextAttributes { get; set; } [Export ("clearsOnInsertion")] - bool ClearsOnInsertion { get; set; } + bool ClearsOnInsertion { get; set; } [NullAllowed] // by default this property is null [Export ("typingAttributes", ArgumentSemantic.Copy)] NSDictionary TypingAttributes { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("defaultTextAttributes", ArgumentSemantic.Copy), NullAllowed] NSDictionary WeakDefaultTextAttributes { get; set; } // Category UITextField (UIInteractionStateRestorable) - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("interactionState", ArgumentSemantic.Copy)] NSObject InteractionState { get; set; } } @@ -14668,50 +14797,50 @@ namespace UIKit { [Export ("textFieldShouldBeginEditing:"), DelegateName ("UITextFieldCondition"), DefaultValue (true)] bool ShouldBeginEditing (UITextField textField); - + [Export ("textFieldDidBeginEditing:"), EventArgs ("UITextField"), EventName ("Started")] void EditingStarted (UITextField textField); - + [Export ("textFieldShouldEndEditing:"), DelegateName ("UITextFieldCondition"), DefaultValue (true)] bool ShouldEndEditing (UITextField textField); - + [Export ("textFieldDidEndEditing:"), EventArgs ("UITextField"), EventName ("Ended")] void EditingEnded (UITextField textField); [iOS (10, 0)] [Export ("textFieldDidEndEditing:reason:"), EventArgs ("UITextFieldEditingEnded"), EventName ("EndedWithReason")] void EditingEnded (UITextField textField, UITextFieldDidEndEditingReason reason); - + [Export ("textFieldShouldClear:"), DelegateName ("UITextFieldCondition"), DefaultValue ("true")] bool ShouldClear (UITextField textField); - + [Export ("textFieldShouldReturn:"), DelegateName ("UITextFieldCondition"), DefaultValue ("true")] bool ShouldReturn (UITextField textField); [Export ("textField:shouldChangeCharactersInRange:replacementString:"), DelegateName ("UITextFieldChange"), DefaultValue ("true")] bool ShouldChangeCharacters (UITextField textField, NSRange range, string replacementString); - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("textFieldDidChangeSelection:")] void DidChangeSelection (UITextField textField); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("textField:willPresentEditMenuWithAnimator:")] void WillPresentEditMenu (UITextField textField, IUIEditMenuInteractionAnimating animator); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("textField:willDismissEditMenuWithAnimator:")] void WillDismissEditMenu (UITextField textField, IUIEditMenuInteractionAnimating animator); [IgnoredInDelegate] - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("textField:editMenuForCharactersInRange:suggestedActions:")] [return: NullAllowed] - UIMenu GetEditMenu (UITextField textField, NSRange range, UIMenuElement[] suggestedActions); + UIMenu GetEditMenu (UITextField textField, NSRange range, UIMenuElement [] suggestedActions); } - + [NoWatch] - [BaseType (typeof (UIScrollView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UITextViewDelegate)})] + [BaseType (typeof (UIScrollView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UITextViewDelegate) })] interface UITextView : UITextInput, NSCoding, UIContentSizeCategoryAdjusting #if IOS , UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting @@ -14720,7 +14849,8 @@ namespace UIKit { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Export ("text", ArgumentSemantic.Copy)][NullAllowed] + [Export ("text", ArgumentSemantic.Copy)] + [NullAllowed] string Text { get; set; } [NullAllowed] // by default this property is null @@ -14744,11 +14874,14 @@ namespace UIKit { [Export ("scrollRangeToVisible:")] void ScrollRangeToVisible (NSRange range); - [Wrap ("WeakDelegate")][New] + [Wrap ("WeakDelegate")] + [New] [Protocolize] UITextViewDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][New][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [New] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("dataDetectorTypes")] @@ -14762,17 +14895,18 @@ namespace UIKit { UIView InputAccessoryView { get; set; } - [Export ("inputView", ArgumentSemantic.Retain)][NullAllowed] + [Export ("inputView", ArgumentSemantic.Retain)] + [NullAllowed] UIView InputView { get; set; } [Field ("UITextViewTextDidBeginEditingNotification")] [Notification] NSString TextDidBeginEditingNotification { get; } - + [Field ("UITextViewTextDidChangeNotification")] [Notification] NSString TextDidChangeNotification { get; } - + [Field ("UITextViewTextDidEndEditingNotification")] [Notification] NSString TextDidEndEditingNotification { get; } @@ -14782,13 +14916,13 @@ namespace UIKit { // [Export ("allowsEditingTextAttributes")] - bool AllowsEditingTextAttributes { get; set; } + bool AllowsEditingTextAttributes { get; set; } [Export ("attributedText", ArgumentSemantic.Copy)] - NSAttributedString AttributedText { get; set; } + NSAttributedString AttributedText { get; set; } [Export ("clearsOnInsertion")] - bool ClearsOnInsertion { get; set; } + bool ClearsOnInsertion { get; set; } [NullAllowed] // by default this property is null [Export ("typingAttributes", ArgumentSemantic.Copy)] @@ -14798,67 +14932,67 @@ namespace UIKit { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("selectable")] bool Selectable { [Bind ("isSelectable")] get; set; } [DesignatedInitializer] - [iOS (7,0)] + [iOS (7, 0)] [Export ("initWithFrame:textContainer:")] [PostGet ("TextContainer")] NativeHandle Constructor (CGRect frame, [NullAllowed] NSTextContainer textContainer); - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("textContainer", ArgumentSemantic.Copy)] NSTextContainer TextContainer { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("textContainerInset", ArgumentSemantic.Assign)] UIEdgeInsets TextContainerInset { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("layoutManager", ArgumentSemantic.Copy)] NSLayoutManager LayoutManager { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("textStorage", ArgumentSemantic.Retain)] NSTextStorage TextStorage { get; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("linkTextAttributes", ArgumentSemantic.Copy)] NSDictionary WeakLinkTextAttributes { get; set; } - [iOS (13,0), TV (13,0), Watch (6,0)] + [iOS (13, 0), TV (13, 0), Watch (6, 0)] [Export ("usesStandardTextScaling")] bool UsesStandardTextScaling { get; set; } // Category UITextView (UIInteractionStateRestorable) - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("interactionState", ArgumentSemantic.Copy)] NSObject InteractionState { get; set; } - [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("textLayoutManager")] NSTextLayoutManager TextLayoutManager { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("findInteraction")] [NullAllowed] UIFindInteraction FindInteraction { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("findInteractionEnabled")] bool FindInteractionEnabled { [Bind ("isFindInteractionEnabled")] get; set; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("textViewUsingTextLayoutManager:")] UITextView GetTextView (bool usingTextLayoutManager); } - [BaseType (typeof(UIScrollViewDelegate))] + [BaseType (typeof (UIScrollViewDelegate))] [NoMac, NoWatch] [Model] [Protocol] @@ -14866,7 +15000,7 @@ namespace UIKit { [Export ("textViewShouldBeginEditing:"), DelegateName ("UITextViewCondition"), DefaultValue ("true")] bool ShouldBeginEditing (UITextView textView); - + [Export ("textViewShouldEndEditing:"), DelegateName ("UITextViewCondition"), DefaultValue ("true")] bool ShouldEndEditing (UITextView textView); @@ -14885,13 +15019,13 @@ namespace UIKit { [Export ("textViewDidChangeSelection:"), EventArgs ("UITextView")] void SelectionChanged (UITextView textView); - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use the 'ShouldInteractWithUrl' overload that takes 'UITextItemInteraction' instead.")] [Deprecated (PlatformName.TvOS, 10, 0, message: "Use the 'ShouldInteractWithUrl' overload that takes 'UITextItemInteraction' instead.")] [Export ("textView:shouldInteractWithURL:inRange:"), DelegateName ("Func"), DefaultValue ("true")] bool ShouldInteractWithUrl (UITextView textView, NSUrl URL, NSRange characterRange); - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.")] [Deprecated (PlatformName.TvOS, 10, 0, message: "Use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.")] [Export ("textView:shouldInteractWithTextAttachment:inRange:"), DelegateName ("Func"), DefaultValue ("true")] @@ -14901,28 +15035,28 @@ namespace UIKit { [Export ("textView:shouldInteractWithURL:inRange:interaction:"), DelegateApiName ("AllowUrlInteraction"), DelegateName ("UITextViewDelegateShouldInteractUrlDelegate"), DefaultValue ("true")] bool ShouldInteractWithUrl (UITextView textView, NSUrl url, NSRange characterRange, UITextItemInteraction interaction); - [iOS (10,0)] + [iOS (10, 0)] [Export ("textView:shouldInteractWithTextAttachment:inRange:interaction:"), DelegateApiName ("AllowTextAttachmentInteraction"), DelegateName ("UITextViewDelegateShouldInteractTextDelegate"), DefaultValue ("true")] bool ShouldInteractWithTextAttachment (UITextView textView, NSTextAttachment textAttachment, NSRange characterRange, UITextItemInteraction interaction); [IgnoredInDelegate] - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("textView:editMenuForTextInRange:suggestedActions:")] [return: NullAllowed] - UIMenu GetEditMenuForText (UITextView textView, NSRange range, UIMenuElement[] suggestedActions); + UIMenu GetEditMenuForText (UITextView textView, NSRange range, UIMenuElement [] suggestedActions); [IgnoredInDelegate] - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("textView:willPresentEditMenuWithAnimator:")] void WillPresentEditMenu (UITextView textView, IUIEditMenuInteractionAnimating animator); [IgnoredInDelegate] - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("textView:willDismissEditMenuWithAnimator:")] void WillDismissEditMenu (UITextView textView, IUIEditMenuInteractionAnimating aniamtor); } - + [NoTV, NoWatch] [BaseType (typeof (UIView))] interface UIToolbar : UIBarPositioning { @@ -14933,13 +15067,14 @@ namespace UIKit { [Export ("barStyle")] UIBarStyle BarStyle { get; set; } - [Export ("items", ArgumentSemantic.Copy)][NullAllowed] + [Export ("items", ArgumentSemantic.Copy)] + [NullAllowed] UIBarButtonItem [] Items { get; set; } [Appearance] [Export ("translucent", ArgumentSemantic.Assign)] bool Translucent { [Bind ("isTranslucent")] get; set; } - + // done manually so we can keep this "in sync" with 'Items' property //[Export ("setItems:animated:")][PostGet ("Items")] //void SetItems (UIBarButtonItem [] items, bool animated); @@ -14960,32 +15095,32 @@ namespace UIKit { [Export ("shadowImageForToolbarPosition:")] UIImage GetShadowImage (UIToolbarPosition topOrBottom); - [iOS (7,0)] + [iOS (7, 0)] [Appearance] [NullAllowed] [Export ("barTintColor", ArgumentSemantic.Retain)] UIColor BarTintColor { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Appearance] [Export ("standardAppearance", ArgumentSemantic.Copy)] UIToolbarAppearance StandardAppearance { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Appearance] [NullAllowed, Export ("compactAppearance", ArgumentSemantic.Copy)] UIToolbarAppearance CompactAppearance { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Appearance] [NullAllowed, Export ("scrollEdgeAppearance", ArgumentSemantic.Copy)] UIToolbarAppearance ScrollEdgeAppearance { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Appearance] [NullAllowed, Export ("compactScrollEdgeAppearance", ArgumentSemantic.Copy)] UIToolbarAppearance CompactScrollEdgeAppearance { get; set; } @@ -14995,9 +15130,9 @@ namespace UIKit { UIToolbarDelegate Delegate { get; set; } } - interface IUITimingCurveProvider {} + interface IUITimingCurveProvider { } - [iOS (10,0), NoWatch] + [iOS (10, 0), NoWatch] [Protocol] interface UITimingCurveProvider : NSCoding, NSCopying { [Abstract] @@ -15019,7 +15154,7 @@ namespace UIKit { [Protocol] interface UIToolbarDelegate { } - + [NoWatch] [BaseType (typeof (NSObject))] interface UITouch { @@ -15047,73 +15182,74 @@ namespace UIKit { // 3.2 [Export ("gestureRecognizers", ArgumentSemantic.Copy)] - UIGestureRecognizer[] GestureRecognizers { get; } + UIGestureRecognizer [] GestureRecognizers { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("majorRadius")] nfloat MajorRadius { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("majorRadiusTolerance")] nfloat MajorRadiusTolerance { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("force")] nfloat Force { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("maximumPossibleForce")] nfloat MaximumPossibleForce { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("type")] UITouchType Type { get; } [NoTV] - [iOS (9,1)] + [iOS (9, 1)] [Export ("preciseLocationInView:")] CGPoint GetPreciseLocation ([NullAllowed] UIView view); [NoTV] - [iOS (9,1)] + [iOS (9, 1)] [Export ("precisePreviousLocationInView:")] CGPoint GetPrecisePreviousLocation ([NullAllowed] UIView view); [NoTV] // stylus only, header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [Export ("azimuthAngleInView:")] nfloat GetAzimuthAngle ([NullAllowed] UIView view); [NoTV] // stylus only, header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [Export ("azimuthUnitVectorInView:")] CGVector GetAzimuthUnitVector ([NullAllowed] UIView view); - + [NoTV] // stylus only, header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [Export ("altitudeAngle")] nfloat AltitudeAngle { get; } [NoTV] // header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [NullAllowed, Export ("estimationUpdateIndex")] NSNumber EstimationUpdateIndex { get; } [NoTV] // header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [Export ("estimatedProperties")] UITouchProperties EstimatedProperties { get; } [NoTV] // header unclear but not part of web documentation for tvOS - [iOS (9,1)] + [iOS (9, 1)] [Export ("estimatedPropertiesExpectingUpdates")] UITouchProperties EstimatedPropertiesExpectingUpdates { get; } } [NoTV, NoWatch] - [BaseType (typeof (UINavigationController), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIVideoEditorControllerDelegate)})] + [BaseType (typeof (UINavigationController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIVideoEditorControllerDelegate) })] interface UIVideoEditorController { - [Export ("canEditVideoAtPath:")][Static] + [Export ("canEditVideoAtPath:")] + [Static] bool CanEditVideoAtPath (string path); [Wrap ("WeakDelegate")] @@ -15121,7 +15257,8 @@ namespace UIKit { // id UIVideoEditorControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("videoPath", ArgumentSemantic.Copy)] @@ -15142,10 +15279,10 @@ namespace UIKit { interface UIVideoEditorControllerDelegate { [Export ("videoEditorController:didSaveEditedVideoToPath:"), EventArgs ("UIPath"), EventName ("Saved")] void VideoSaved (UIVideoEditorController editor, [EventName ("path")] string editedVideoPath); - + [Export ("videoEditorController:didFailWithError:"), EventArgs ("NSError", true)] - void Failed (UIVideoEditorController editor, NSError error); - + void Failed (UIVideoEditorController editor, NSError error); + [Export ("videoEditorControllerDidCancel:")] void UserCancelled (UIVideoEditorController editor); } @@ -15163,8 +15300,9 @@ namespace UIKit { [DesignatedInitializer] [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - - [Export ("addSubview:")][PostGet ("Subviews")] + + [Export ("addSubview:")] + [PostGet ("Subviews")] void AddSubview (UIView view); [ThreadSafe, Export ("drawRect:")] @@ -15180,10 +15318,10 @@ namespace UIKit { new CGRect Bounds { get; set; } [Export ("userInteractionEnabled")] - bool UserInteractionEnabled { [Bind ("isUserInteractionEnabled")]get; set; } + bool UserInteractionEnabled { [Bind ("isUserInteractionEnabled")] get; set; } [Export ("tag")] - nint Tag { get;set; } + nint Tag { get; set; } [ThreadSafe] [Export ("layer", ArgumentSemantic.Retain)] @@ -15191,10 +15329,10 @@ namespace UIKit { [Export ("frame")] new CGRect Frame { get; set; } - + [Export ("center")] new CGPoint Center { get; set; } - + [Export ("transform")] new CGAffineTransform Transform { get; set; } @@ -15248,17 +15386,20 @@ namespace UIKit { [Export ("removeFromSuperview")] void RemoveFromSuperview (); - - [Export ("insertSubview:atIndex:")][PostGet ("Subviews")] + + [Export ("insertSubview:atIndex:")] + [PostGet ("Subviews")] void InsertSubview (UIView view, nint atIndex); [Export ("exchangeSubviewAtIndex:withSubviewAtIndex:")] void ExchangeSubview (nint atIndex, nint withSubviewAtIndex); - [Export ("insertSubview:belowSubview:")][PostGet ("Subviews")] + [Export ("insertSubview:belowSubview:")] + [PostGet ("Subviews")] void InsertSubviewBelow (UIView view, UIView siblingSubview); - [Export ("insertSubview:aboveSubview:")][PostGet ("Subviews")] + [Export ("insertSubview:aboveSubview:")] + [PostGet ("Subviews")] void InsertSubviewAbove (UIView view, UIView siblingSubview); [Export ("bringSubviewToFront:")] @@ -15269,7 +15410,7 @@ namespace UIKit { [Export ("didAddSubview:")] void SubviewAdded (UIView uiview); - + [Export ("willRemoveSubview:")] void WillRemoveSubview (UIView uiview); @@ -15278,25 +15419,25 @@ namespace UIKit { [Export ("didMoveToSuperview")] void MovedToSuperview (); - + [Export ("willMoveToWindow:")] void WillMoveToWindow ([NullAllowed] UIWindow window); - + [Export ("didMoveToWindow")] void MovedToWindow (); [Export ("isDescendantOfView:")] bool IsDescendantOfView (UIView view); - + [Export ("viewWithTag:")] UIView ViewWithTag (nint tag); - + [Export ("setNeedsLayout")] void SetNeedsLayout (); [Export ("layoutIfNeeded")] void LayoutIfNeeded (); - + [Export ("layoutSubviews")] void LayoutSubviews (); @@ -15329,59 +15470,73 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'CreateResizableImage' instead.")] CGRect ContentStretch { get; set; } - [Static] [Export ("beginAnimations:context:")] + [Static] + [Export ("beginAnimations:context:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void BeginAnimations ([NullAllowed] string animationID, IntPtr context); - [Static] [Export ("commitAnimations")] + [Static] + [Export ("commitAnimations")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void CommitAnimations (); - [Static] [Export ("setAnimationDelegate:")] + [Static] + [Export ("setAnimationDelegate:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationDelegate (NSObject del); - [Static] [Export ("setAnimationWillStartSelector:")] + [Static] + [Export ("setAnimationWillStartSelector:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationWillStartSelector (Selector sel); - - [Static] [Export ("setAnimationDidStopSelector:")] + + [Static] + [Export ("setAnimationDidStopSelector:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationDidStopSelector (Selector sel); - - [Static] [Export ("setAnimationDuration:")] + + [Static] + [Export ("setAnimationDuration:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationDuration (double duration); - [Static] [Export ("setAnimationDelay:")] + [Static] + [Export ("setAnimationDelay:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationDelay (double delay); - - [Static] [Export ("setAnimationStartDate:")] + + [Static] + [Export ("setAnimationStartDate:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationStartDate (NSDate startDate); - - [Static] [Export ("setAnimationCurve:")] + + [Static] + [Export ("setAnimationCurve:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationCurve (UIViewAnimationCurve curve); - - [Static] [Export ("setAnimationRepeatCount:")] + + [Static] + [Export ("setAnimationRepeatCount:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationRepeatCount (float repeatCount /* This is float, not nfloat */); - - [Static] [Export ("setAnimationRepeatAutoreverses:")] + + [Static] + [Export ("setAnimationRepeatAutoreverses:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationRepeatAutoreverses (bool repeatAutoreverses); - - [Static] [Export ("setAnimationBeginsFromCurrentState:")] + + [Static] + [Export ("setAnimationBeginsFromCurrentState:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationBeginsFromCurrentState (bool fromCurrentState); - [Static] [Export ("setAnimationTransition:forView:cache:")] + [Static] + [Export ("setAnimationTransition:forView:cache:")] [Deprecated (PlatformName.iOS, 13, 0, message: "Please use the 'Action' handler based animation APIs instead.")] void SetAnimationTransition (UIViewAnimationTransition transition, UIView forView, bool cache); - [Static] [Export ("areAnimationsEnabled")] + [Static] + [Export ("areAnimationsEnabled")] bool AnimationsEnabled { [Bind ("areAnimationsEnabled")] get; [Bind ("setAnimationsEnabled:")] set; } // 3.2: @@ -15393,7 +15548,7 @@ namespace UIKit { [NullAllowed] // by default this property is null [Export ("gestureRecognizers", ArgumentSemantic.Copy)] - UIGestureRecognizer[] GestureRecognizers { get; set; } + UIGestureRecognizer [] GestureRecognizers { get; set; } [Static, Export ("animateWithDuration:animations:")] void Animate (double duration, /* non null */ Action animation); @@ -15401,7 +15556,7 @@ namespace UIKit { [Static, Export ("animateWithDuration:animations:completion:")] [Async] void AnimateNotify (double duration, /* non null */ Action animation, [NullAllowed] UICompletionHandler completion); - + [Static, Export ("animateWithDuration:delay:options:animations:completion:")] [Async] void AnimateNotify (double duration, double delay, UIViewAnimationOptions options, /* non null */ Action animation, [NullAllowed] UICompletionHandler completion); @@ -15428,7 +15583,7 @@ namespace UIKit { // // 6.0 // - + [Export ("constraints")] NSLayoutConstraint [] Constraints { get; } @@ -15468,14 +15623,14 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 9, 0, message: "Override 'ViewForFirstBaselineLayout' or 'ViewForLastBaselineLayout'.")] UIView ViewForBaselineLayout { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("viewForFirstBaselineLayout")] UIView ViewForFirstBaselineLayout { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("viewForLastBaselineLayout")] UIView ViewForLastBaselineLayout { get; } - + [Export ("intrinsicContentSize")] CGSize IntrinsicContentSize { get; } @@ -15516,7 +15671,7 @@ namespace UIKit { [NullAllowed] // by default this property is null [Export ("restorationIdentifier", ArgumentSemantic.Copy)] string RestorationIdentifier { get; set; } - + [Export ("gestureRecognizerShouldBegin:")] bool GestureRecognizerShouldBegin (UIGestureRecognizer gestureRecognizer); @@ -15525,14 +15680,14 @@ namespace UIKit { [Export ("updateConstraintsIfNeeded")] void UpdateConstraintsIfNeeded (); - + [Export ("updateConstraints")] [RequiresSuper] void UpdateConstraints (); [Field ("UIViewNoIntrinsicMetric")] nfloat NoIntrinsicMetric { get; } - + [Field ("UILayoutFittingCompressedSize")] CGSize UILayoutFittingCompressedSize { get; } @@ -15542,274 +15697,274 @@ namespace UIKit { [NullAllowed] [Export ("tintColor")] [Appearance] - [iOS (7,0)] + [iOS (7, 0)] UIColor TintColor { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("tintAdjustmentMode")] UIViewTintAdjustmentMode TintAdjustmentMode { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("tintColorDidChange")] void TintColorDidChange (); - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("performWithoutAnimation:")] void PerformWithoutAnimation (Action actionsWithoutAnimation); - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("performSystemAnimation:onViews:options:animations:completion:")] [Async] void PerformSystemAnimation (UISystemAnimation animation, UIView [] views, UIViewAnimationOptions options, [NullAllowed] Action parallelAnimations, [NullAllowed] UICompletionHandler completion); - [TV (13,0), iOS (13,0)] // Yep headers stated iOS 12 but they are such a liars... + [TV (13, 0), iOS (13, 0)] // Yep headers stated iOS 12 but they are such a liars... [Static] [Export ("modifyAnimationsWithRepeatCount:autoreverses:animations:")] void ModifyAnimations (nfloat count, bool autoreverses, Action animations); - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("animateKeyframesWithDuration:delay:options:animations:completion:")] [Async] void AnimateKeyframes (double duration, double delay, UIViewKeyframeAnimationOptions options, Action animations, [NullAllowed] UICompletionHandler completion); - [iOS (7,0)] + [iOS (7, 0)] [Static, Export ("addKeyframeWithRelativeStartTime:relativeDuration:animations:")] void AddKeyframeWithRelativeStartTime (double frameStartTime, double frameDuration, Action animations); - [iOS (7,0)] + [iOS (7, 0)] [Export ("addMotionEffect:")] [PostGet ("MotionEffects")] void AddMotionEffect (UIMotionEffect effect); - [iOS (7,0)] + [iOS (7, 0)] [Export ("removeMotionEffect:")] [PostGet ("MotionEffects")] void RemoveMotionEffect (UIMotionEffect effect); - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed] // by default this property is null [Export ("motionEffects", ArgumentSemantic.Copy)] UIMotionEffect [] MotionEffects { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("snapshotViewAfterScreenUpdates:")] UIView SnapshotView (bool afterScreenUpdates); - [iOS (7,0)] + [iOS (7, 0)] [Export ("resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets:")] [return: NullAllowed] UIView ResizableSnapshotView (CGRect rect, bool afterScreenUpdates, UIEdgeInsets capInsets); - [iOS (7,0)] + [iOS (7, 0)] [Export ("drawViewHierarchyInRect:afterScreenUpdates:")] bool DrawViewHierarchy (CGRect rect, bool afterScreenUpdates); - [iOS (7,0)] + [iOS (7, 0)] [Static] [Export ("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:")] [Async] void AnimateNotify (double duration, double delay, nfloat springWithDampingRatio, nfloat initialSpringVelocity, UIViewAnimationOptions options, Action animations, [NullAllowed] UICompletionHandler completion); - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] // by default this property is null [Export ("maskView", ArgumentSemantic.Retain)] UIView MaskView { get; set; } - [iOS(8,0)] + [iOS (8, 0)] [Export ("systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:")] // float, not CGFloat / nfloat, but we can't use an enum in the signature CGSize SystemLayoutSizeFittingSize (CGSize targetSize, /* UILayoutPriority */ float horizontalFittingPriority, /* UILayoutPriority */ float verticalFittingPriority); - [iOS(8,0)] + [iOS (8, 0)] [Export ("layoutMargins")] UIEdgeInsets LayoutMargins { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("directionalLayoutMargins", ArgumentSemantic.Assign)] NSDirectionalEdgeInsets DirectionalLayoutMargins { get; set; } - [iOS(8,0)] + [iOS (8, 0)] [Export ("preservesSuperviewLayoutMargins")] bool PreservesSuperviewLayoutMargins { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("insetsLayoutMarginsFromSafeArea")] bool InsetsLayoutMarginsFromSafeArea { get; set; } - [iOS(8,0)] + [iOS (8, 0)] [Export ("layoutMarginsDidChange")] void LayoutMarginsDidChange (); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("safeAreaInsets")] UIEdgeInsets SafeAreaInsets { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("safeAreaInsetsDidChange")] void SafeAreaInsetsDidChange (); - [iOS (9,0)] + [iOS (9, 0)] [Static] [Export ("userInterfaceLayoutDirectionForSemanticContentAttribute:")] UIUserInterfaceLayoutDirection GetUserInterfaceLayoutDirection (UISemanticContentAttribute attribute); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Static] [Export ("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:")] UIUserInterfaceLayoutDirection GetUserInterfaceLayoutDirection (UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("effectiveUserInterfaceLayoutDirection")] UIUserInterfaceLayoutDirection EffectiveUserInterfaceLayoutDirection { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("semanticContentAttribute", ArgumentSemantic.Assign)] UISemanticContentAttribute SemanticContentAttribute { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("layoutMarginsGuide", ArgumentSemantic.Strong)] UILayoutGuide LayoutMarginsGuide { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("readableContentGuide", ArgumentSemantic.Strong)] UILayoutGuide ReadableContentGuide { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("safeAreaLayoutGuide", ArgumentSemantic.Strong)] UILayoutGuide SafeAreaLayoutGuide { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("keyboardLayoutGuide")] UIKeyboardLayoutGuide KeyboardLayoutGuide { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("inheritedAnimationDuration")] [Static] double InheritedAnimationDuration { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("leadingAnchor")] NSLayoutXAxisAnchor LeadingAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("trailingAnchor")] NSLayoutXAxisAnchor TrailingAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("leftAnchor")] NSLayoutXAxisAnchor LeftAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("rightAnchor")] NSLayoutXAxisAnchor RightAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("topAnchor")] NSLayoutYAxisAnchor TopAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("bottomAnchor")] NSLayoutYAxisAnchor BottomAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("widthAnchor")] NSLayoutDimension WidthAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("heightAnchor")] NSLayoutDimension HeightAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("centerXAnchor")] NSLayoutXAxisAnchor CenterXAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("centerYAnchor")] NSLayoutYAxisAnchor CenterYAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("firstBaselineAnchor")] NSLayoutYAxisAnchor FirstBaselineAnchor { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("lastBaselineAnchor")] NSLayoutYAxisAnchor LastBaselineAnchor { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("layoutGuides")] UILayoutGuide [] LayoutGuides { get; } - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("addLayoutGuide:")] void AddLayoutGuide (UILayoutGuide guide); - [iOS (9,0)] + [iOS (9, 0)] [Export ("removeLayoutGuide:")] void RemoveLayoutGuide (UILayoutGuide guide); - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("focused")] bool Focused { [Bind ("isFocused")] get; } [NullAllowed] - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("focusGroupIdentifier")] new string FocusGroupIdentifier { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("focusGroupPriority")] new nint FocusGroupPriority { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("focusEffect", ArgumentSemantic.Copy)] new UIFocusEffect FocusEffect { get; set; } - [iOS (9,0)] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0)] // added in Xcode 7.1 / iOS 9.1 SDK [Export ("canBecomeFocused")] new bool CanBecomeFocused { get; } - [Watch (5,0), TV (13,0), iOS (11,0)] // Headers state Watch 5.0 + [Watch (5, 0), TV (13, 0), iOS (11, 0)] // Headers state Watch 5.0 [Export ("addInteraction:")] void AddInteraction (IUIInteraction interaction); - - [Watch (5,0), TV (13,0), iOS (11,0)] // Headers state Watch 5.0 + + [Watch (5, 0), TV (13, 0), iOS (11, 0)] // Headers state Watch 5.0 [Export ("removeInteraction:")] void RemoveInteraction (IUIInteraction interaction); - - [Watch (5,0), TV (13,0), iOS (11,0)] // Headers state Watch 5.0 + + [Watch (5, 0), TV (13, 0), iOS (11, 0)] // Headers state Watch 5.0 [Export ("interactions", ArgumentSemantic.Copy)] - IUIInteraction[] Interactions { get; set; } + IUIInteraction [] Interactions { get; set; } // UIAccessibilityInvertColors category [NoWatch] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("accessibilityIgnoresInvertColors")] bool AccessibilityIgnoresInvertColors { get; set; } // From UserInterfaceStyle category - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("overrideUserInterfaceStyle", ArgumentSemantic.Assign)] UIUserInterfaceStyle OverrideUserInterfaceStyle { get; set; } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [Export ("transform3D", ArgumentSemantic.Assign)] CATransform3D Transform3D { get; set; } // Category UIView (UIContentSizeCategoryLimit) [BindAs (typeof (UIContentSizeCategory))] - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("minimumContentSizeCategory")] NSString MinimumContentSizeCategory { get; set; } [BindAs (typeof (UIContentSizeCategory))] - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("maximumContentSizeCategory")] NSString MaximumContentSizeCategory { get; set; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("appliedContentSizeCategoryLimitsDescription")] string AppliedContentSizeCategoryLimitsDescription { get; } @@ -15818,30 +15973,30 @@ namespace UIKit { #endif // From UIView (UILargeContentViewer) - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("showsLargeContentViewer")] new bool ShowsLargeContentViewer { get; set; } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [NullAllowed, Export ("largeContentTitle")] new string LargeContentTitle { get; set; } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [NullAllowed, Export ("largeContentImage", ArgumentSemantic.Strong)] new UIImage LargeContentImage { get; set; } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("scalesLargeContentImage")] new bool ScalesLargeContentImage { get; set; } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Export ("largeContentImageInsets", ArgumentSemantic.Assign)] new UIEdgeInsets LargeContentImageInsets { get; set; } #if TVOS #pragma warning restore 0109 #endif - [NoWatch, TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("anchorPoint", ArgumentSemantic.Assign)] CGPoint AnchorPoint { get; set; } } @@ -15853,7 +16008,7 @@ namespace UIKit { bool EndEditing (bool force); } - [iOS (10,0), TV (10,0), NoWatch] + [iOS (10, 0), TV (10, 0), NoWatch] [Category] [BaseType (typeof (UILayoutGuide))] interface UILayoutGuide_UIConstraintBasedLayoutDebugging { @@ -15865,8 +16020,8 @@ namespace UIKit { bool GetHasAmbiguousLayout (); } - interface IUIContentContainer {} - + interface IUIContentContainer { } + [NoWatch] [BaseType (typeof (UIResponder))] interface UIViewController : NSCoding, UIAppearanceContainer, UIContentContainer, UITraitEnvironment, UIFocusEnvironment, NSExtensionRequestHandling { @@ -15874,7 +16029,7 @@ namespace UIKit { [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - + [Export ("view", ArgumentSemantic.Retain)] [NullAllowed] UIView View { get; set; } @@ -15892,7 +16047,7 @@ namespace UIKit { [Export ("isViewLoaded")] bool IsViewLoaded { get; } - + [NullAllowed] [Export ("nibName", ArgumentSemantic.Copy)] string NibName { get; } @@ -15900,7 +16055,7 @@ namespace UIKit { [NullAllowed] [Export ("nibBundle", ArgumentSemantic.Retain)] NSBundle NibBundle { get; } - + [Export ("viewWillAppear:")] void ViewWillAppear (bool animated); @@ -15929,7 +16084,7 @@ namespace UIKit { [Export ("dismissModalViewControllerAnimated:")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'DismissViewController (bool, NSAction)' instead.")] void DismissModalViewController (bool animated); - + [NoTV] [Export ("modalViewController")] [Deprecated (PlatformName.iOS, 6, 0, message: "Use 'PresentedViewController' instead.")] @@ -15943,7 +16098,8 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 7, 0, message: "Use 'EdgesForExtendedLayout', 'ExtendedLayoutIncludesOpaqueBars' and 'AutomaticallyAdjustsScrollViewInsets' instead.")] bool WantsFullScreenLayout { get; set; } - [Export ("parentViewController")][NullAllowed] + [Export ("parentViewController")] + [NullAllowed] UIViewController ParentViewController { get; } [Export ("tabBarItem", ArgumentSemantic.Retain)] @@ -15975,12 +16131,12 @@ namespace UIKit { [Export ("willRotateToInterfaceOrientation:duration:")] [Deprecated (PlatformName.iOS, 8, 0, message: "Use Adaptive View Controllers instead.")] void WillRotate (UIInterfaceOrientation toInterfaceOrientation, double duration); - + [NoTV] [Export ("didRotateFromInterfaceOrientation:")] [Deprecated (PlatformName.iOS, 8, 0, message: "Use Adaptive View Controllers instead.")] void DidRotate (UIInterfaceOrientation fromInterfaceOrientation); - + [NoTV] [Export ("willAnimateRotationToInterfaceOrientation:duration:")] [Deprecated (PlatformName.iOS, 8, 0, message: "Use Adaptive View Controllers instead.")] @@ -15995,7 +16151,7 @@ namespace UIKit { [Export ("didAnimateFirstHalfOfRotationToInterfaceOrientation:")] [Deprecated (PlatformName.iOS, 5, 0)] void DidAnimateFirstHalfOfRotation (UIInterfaceOrientation toInterfaceOrientation); - + [NoTV] [Export ("willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:")] [Deprecated (PlatformName.iOS, 5, 0)] @@ -16017,10 +16173,10 @@ namespace UIKit { [NoMacCatalyst] [Export ("searchDisplayController", ArgumentSemantic.Retain)] UISearchDisplayController SearchDisplayController { get; } - + // These come from @interface UIViewController (UINavigationControllerItem) [Export ("navigationItem", ArgumentSemantic.Retain)] - UINavigationItem NavigationItem {get; } + UINavigationItem NavigationItem { get; } [NoTV] [Export ("hidesBottomBarWhenPushed")] @@ -16049,7 +16205,8 @@ namespace UIKit { UIBarButtonItem [] ToolbarItems { get; set; } [NoTV] - [Export ("setToolbarItems:animated:")][PostGet ("ToolbarItems")] + [Export ("setToolbarItems:animated:")] + [PostGet ("ToolbarItems")] void SetToolbarItems ([NullAllowed] UIBarButtonItem [] items, bool animated); // These come in 3.2 @@ -16089,21 +16246,21 @@ namespace UIKit { [Export ("storyboard", ArgumentSemantic.Retain)] [NullAllowed] - UIStoryboard Storyboard { get; } + UIStoryboard Storyboard { get; } [Export ("presentedViewController")] [NullAllowed] - UIViewController PresentedViewController { get; } + UIViewController PresentedViewController { get; } [Export ("presentingViewController")] [NullAllowed] - UIViewController PresentingViewController { get; } + UIViewController PresentingViewController { get; } [Export ("definesPresentationContext", ArgumentSemantic.Assign)] - bool DefinesPresentationContext { get; set; } + bool DefinesPresentationContext { get; set; } [Export ("providesPresentationContextTransitionStyle", ArgumentSemantic.Assign)] - bool ProvidesPresentationContextTransitionStyle { get; set; } + bool ProvidesPresentationContextTransitionStyle { get; set; } [NoTV] [Deprecated (PlatformName.iOS, 6, 0)] @@ -16151,21 +16308,26 @@ namespace UIKit { [NoTV] [Deprecated (PlatformName.iOS, 6, 0)] [Export ("automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers")] - /*PROTECTED*/ bool AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers { get; } + /*PROTECTED*/ + bool AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers { get; } [Export ("childViewControllers")] - /*PROTECTED, MUSTCALLBASE*/ UIViewController [] ChildViewControllers { get; } + /*PROTECTED, MUSTCALLBASE*/ + UIViewController [] ChildViewControllers { get; } [Export ("addChildViewController:")] [PostGet ("ChildViewControllers")] - /*PROTECTED, MUSTCALLBASE*/ void AddChildViewController (UIViewController childController); + /*PROTECTED, MUSTCALLBASE*/ + void AddChildViewController (UIViewController childController); [Export ("removeFromParentViewController")] - /*PROTECTED, MUSTCALLBASE*/ void RemoveFromParentViewController (); + /*PROTECTED, MUSTCALLBASE*/ + void RemoveFromParentViewController (); [Export ("transitionFromViewController:toViewController:duration:options:animations:completion:")] [Async] - /*PROTECTED, MUSTCALLBASE*/ void Transition (UIViewController fromViewController, UIViewController toViewController, double duration, UIViewAnimationOptions options, [NullAllowed] Action animations, [NullAllowed] UICompletionHandler completionHandler); + /*PROTECTED, MUSTCALLBASE*/ + void Transition (UIViewController fromViewController, UIViewController toViewController, double duration, UIViewAnimationOptions options, [NullAllowed] Action animations, [NullAllowed] UICompletionHandler completionHandler); [Export ("willMoveToParentViewController:")] void WillMoveToParentViewController ([NullAllowed] UIViewController parent); @@ -16181,7 +16343,7 @@ namespace UIKit { [Export ("endAppearanceTransition")] void EndAppearanceTransition (); - + // // 6.0 // @@ -16204,7 +16366,7 @@ namespace UIKit { // Apple decided to rename the selector and it clashes with our current one // we will get the right name 'CanPerformUnwind' if NET happens, use CanPerformUnwindSegueAction for now. - [TV (13,0), iOS (13,0)] + [TV (13, 0), iOS (13, 0)] [Export ("canPerformUnwindSegueAction:fromViewController:sender:")] #if !NET bool CanPerformUnwindSegueAction (Selector segueAction, UIViewController fromViewController, [NullAllowed] NSObject sender); @@ -16260,92 +16422,94 @@ namespace UIKit { [Export ("shouldAutorotate")] bool ShouldAutorotate (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("edgesForExtendedLayout", ArgumentSemantic.Assign)] UIRectEdge EdgesForExtendedLayout { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("extendedLayoutIncludesOpaqueBars", ArgumentSemantic.Assign)] bool ExtendedLayoutIncludesOpaqueBars { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'UIScrollView.ContentInsetAdjustmentBehavior' instead.")] [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'UIScrollView.ContentInsetAdjustmentBehavior' instead.")] [Export ("automaticallyAdjustsScrollViewInsets", ArgumentSemantic.Assign)] bool AutomaticallyAdjustsScrollViewInsets { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("setContentScrollView:forEdge:")] void SetContentScrollView ([NullAllowed] UIScrollView scrollView, NSDirectionalRectEdge edge); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("contentScrollViewForEdge:")] [return: NullAllowed] UIScrollView GetContentScrollView (NSDirectionalRectEdge edge); - [iOS (7,0)] + [iOS (7, 0)] [Export ("preferredContentSize", ArgumentSemantic.Copy)] new CGSize PreferredContentSize { get; set; } - [NoTV][NoWatch] - [iOS (7,0)] + [NoTV] + [NoWatch] + [iOS (7, 0)] [Export ("preferredStatusBarStyle")] UIStatusBarStyle PreferredStatusBarStyle (); [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("prefersStatusBarHidden")] bool PrefersStatusBarHidden (); [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("setNeedsStatusBarAppearanceUpdate")] void SetNeedsStatusBarAppearanceUpdate (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("applicationFinishedRestoringState")] void ApplicationFinishedRestoringState (); - [iOS (7,0)] + [iOS (7, 0)] [Export ("transitioningDelegate", ArgumentSemantic.Assign), NullAllowed] NSObject WeakTransitioningDelegate { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Wrap ("WeakTransitioningDelegate")] [Protocolize] UIViewControllerTransitioningDelegate TransitioningDelegate { get; set; } [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("childViewControllerForStatusBarStyle")] [return: NullAllowed] UIViewController ChildViewControllerForStatusBarStyle (); [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("childViewControllerForStatusBarHidden")] [return: NullAllowed] UIViewController ChildViewControllerForStatusBarHidden (); - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")] [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'UIView.SafeAreaLayoutGuide.TopAnchor' instead.")] [Export ("topLayoutGuide")] IUILayoutSupport TopLayoutGuide { get; } - [iOS (7,0)] + [iOS (7, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'UIView.SafeAreaLayoutGuide.BottomAnchor' instead.")] [Deprecated (PlatformName.TvOS, 11, 0, message: "Use 'UIView.SafeAreaLayoutGuide.BottomAnchor' instead.")] [Export ("bottomLayoutGuide")] IUILayoutSupport BottomLayoutGuide { get; } - - [NoTV][NoWatch] - [iOS (7,0)] + + [NoTV] + [NoWatch] + [iOS (7, 0)] [Export ("preferredStatusBarUpdateAnimation")] UIStatusBarAnimation PreferredStatusBarUpdateAnimation { get; } [NoTV] - [iOS (7,0)] + [iOS (7, 0)] [Export ("modalPresentationCapturesStatusBarAppearance", ArgumentSemantic.Assign)] bool ModalPresentationCapturesStatusBarAppearance { get; set; } @@ -16353,117 +16517,117 @@ namespace UIKit { // iOS 8 // - [iOS (8,0)] + [iOS (8, 0)] [Export ("targetViewControllerForAction:sender:")] [return: NullAllowed] - UIViewController GetTargetViewControllerForAction (Selector action, [NullAllowed] NSObject sender); - - [iOS (8,0)] + UIViewController GetTargetViewControllerForAction (Selector action, [NullAllowed] NSObject sender); + + [iOS (8, 0)] [Export ("showViewController:sender:")] - void ShowViewController (UIViewController vc, [NullAllowed] NSObject sender); - - [iOS (8,0)] + void ShowViewController (UIViewController vc, [NullAllowed] NSObject sender); + + [iOS (8, 0)] [Export ("showDetailViewController:sender:")] void ShowDetailViewController (UIViewController vc, [NullAllowed] NSObject sender); - [iOS (8,0)] + [iOS (8, 0)] [Export ("setOverrideTraitCollection:forChildViewController:")] void SetOverrideTraitCollection (UITraitCollection collection, UIViewController childViewController); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("overrideTraitCollectionForChildViewController:")] UITraitCollection GetOverrideTraitCollectionForChildViewController (UIViewController childViewController); - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] [Export ("extensionContext")] NSExtensionContext ExtensionContext { get; } - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] [Export ("presentationController")] UIPresentationController PresentationController { get; } [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [NullAllowed] [Export ("popoverPresentationController")] UIPopoverPresentationController PopoverPresentationController { get; } - [NoTV, NoWatch, iOS (15,0), MacCatalyst (15,0)] + [NoTV, NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("sheetPresentationController")] UISheetPresentationController SheetPresentationController { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("UIViewControllerShowDetailTargetDidChangeNotification")] [Notification] NSString ShowDetailTargetDidChangeNotification { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("loadViewIfNeeded")] void LoadViewIfNeeded (); - [iOS (9,0)] + [iOS (9, 0)] [Export ("viewIfLoaded", ArgumentSemantic.Strong), NullAllowed] UIView ViewIfLoaded { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("allowedChildViewControllersForUnwindingFromSource:")] - UIViewController[] GetAllowedChildViewControllersForUnwinding (UIStoryboardUnwindSegueSource segueSource); + UIViewController [] GetAllowedChildViewControllersForUnwinding (UIStoryboardUnwindSegueSource segueSource); - [iOS (9,0)] + [iOS (9, 0)] [Export ("childViewControllerContainingSegueSource:")] [return: NullAllowed] UIViewController GetChildViewControllerContainingSegueSource (UIStoryboardUnwindSegueSource segueSource); - [iOS (9,0)] + [iOS (9, 0)] [Export ("unwindForSegue:towardsViewController:")] void Unwind (UIStoryboardSegue unwindSegue, UIViewController subsequentVC); - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("addKeyCommand:")] void AddKeyCommand (UIKeyCommand command); - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("removeKeyCommand:")] void RemoveKeyCommand (UIKeyCommand command); [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("registerForPreviewingWithDelegate:sourceView:")] IUIViewControllerPreviewing RegisterForPreviewingWithDelegate (IUIViewControllerPreviewingDelegate previewingDelegate, UIView sourceView); [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("unregisterForPreviewingWithContext:")] void UnregisterForPreviewingWithContext (IUIViewControllerPreviewing previewing); [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] [Deprecated (PlatformName.TvOS, 13, 0, message: "Replaced by 'UIContextMenuInteraction'.")] - [iOS (9,0)] + [iOS (9, 0)] [Export ("previewActionItems")] - IUIPreviewActionItem[] PreviewActionItems { get; } + IUIPreviewActionItem [] PreviewActionItems { get; } [Field ("UIViewControllerHierarchyInconsistencyException")] NSString HierarchyInconsistencyException { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("restoresFocusAfterTransition")] bool RestoresFocusAfterTransition { get; set; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("focusGroupIdentifier")] new string FocusGroupIdentifier { get; set; } [NoWatch, NoiOS] - [TV (11,0)] + [TV (11, 0)] [Export ("preferredUserInterfaceStyle")] UIUserInterfaceStyle PreferredUserInterfaceStyle { get; } [NoWatch, NoiOS] - [TV (11,0)] + [TV (11, 0)] [Export ("setNeedsUserInterfaceAppearanceUpdate")] void SetNeedsUserInterfaceAppearanceUpdate (); @@ -16472,161 +16636,165 @@ namespace UIKit { [NullAllowed, Export ("childViewControllerForUserInterfaceStyle")] UIViewController ChildViewControllerForUserInterfaceStyle { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("additionalSafeAreaInsets", ArgumentSemantic.Assign)] UIEdgeInsets AdditionalSafeAreaInsets { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("systemMinimumLayoutMargins")] NSDirectionalEdgeInsets SystemMinimumLayoutMargins { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("viewRespectsSystemMinimumLayoutMargins")] bool ViewRespectsSystemMinimumLayoutMargins { get; set; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("viewLayoutMarginsDidChange")] [RequiresSuper] void ViewLayoutMarginsDidChange (); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("viewSafeAreaInsetsDidChange")] [RequiresSuper] void ViewSafeAreaInsetsDidChange (); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("childViewControllerForScreenEdgesDeferringSystemGestures")] UIViewController ChildViewControllerForScreenEdgesDeferringSystemGestures { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("preferredScreenEdgesDeferringSystemGestures")] UIRectEdge PreferredScreenEdgesDeferringSystemGestures { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("setNeedsUpdateOfScreenEdgesDeferringSystemGestures")] void SetNeedsUpdateOfScreenEdgesDeferringSystemGestures (); // UIHomeIndicatorAutoHidden (UIViewController) category [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("childViewControllerForHomeIndicatorAutoHidden")] UIViewController ChildViewControllerForHomeIndicatorAutoHidden { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("prefersHomeIndicatorAutoHidden")] bool PrefersHomeIndicatorAutoHidden { get; } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Export ("setNeedsUpdateOfHomeIndicatorAutoHidden")] void SetNeedsUpdateOfHomeIndicatorAutoHidden (); - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("overrideUserInterfaceStyle", ArgumentSemantic.Assign)] UIUserInterfaceStyle OverrideUserInterfaceStyle { get; set; } - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("modalInPresentation")] bool ModalInPresentation { [Bind ("isModalInPresentation")] get; set; } // From UIViewController (UIPerformsActions) - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("performsActionsWhilePresentingModally")] bool PerformsActionsWhilePresentingModally { get; } // From UIViewController (UIPointerLockSupport) category - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [NullAllowed, Export ("childViewControllerForPointerLock")] UIViewController ChildViewControllerForPointerLock { get; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("prefersPointerLocked")] bool PrefersPointerLocked { get; } - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [Export ("setNeedsUpdateOfPrefersPointerLocked")] void SetNeedsUpdateOfPrefersPointerLocked (); - [NoiOS][NoTV][NoWatch] - [MacCatalyst (13,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 0)] [Export ("setNeedsTouchBarUpdate")] void SetNeedsTouchBarUpdate (); - [NoiOS][NoTV][NoWatch] + [NoiOS] + [NoTV] + [NoWatch] [MacCatalyst (13, 0)] [NullAllowed] [Export ("childViewControllerForTouchBar")] UIViewController ChildViewControllerForTouchBar { get; } - [NoWatch, TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("interactionActivityTrackingBaseName")] [NullAllowed] string InteractionActivityTrackingBaseName { get; set; } - [TV (16, 0), NoWatch, iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, iOS (16, 0), MacCatalyst (16, 0)] [Export ("activePresentationController")] [NullAllowed] UIPresentationController ActivePresentationController { get; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("setNeedsUpdateOfSupportedInterfaceOrientations")] void SetNeedsUpdateOfSupportedInterfaceOrientations (); } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Protocol, Model, BaseType (typeof (NSObject))] partial interface UIViewControllerContextTransitioning { [Abstract] [Export ("containerView")] UIView ContainerView { get; } - + [Abstract] [Export ("isAnimated")] bool IsAnimated { get; } - + [Abstract] [Export ("isInteractive")] bool IsInteractive { get; } - + [Abstract] [Export ("transitionWasCancelled")] bool TransitionWasCancelled { get; } - + [Abstract] [Export ("presentationStyle")] UIModalPresentationStyle PresentationStyle { get; } - + [Abstract] [Export ("updateInteractiveTransition:")] void UpdateInteractiveTransition (nfloat percentComplete); - + [Abstract] [Export ("finishInteractiveTransition")] void FinishInteractiveTransition (); - + [Abstract] [Export ("cancelInteractiveTransition")] void CancelInteractiveTransition (); - + [Abstract] [Export ("completeTransition:")] void CompleteTransition (bool didComplete); - + [Abstract] [Export ("viewControllerForKey:")] UIViewController GetViewControllerForKey (NSString uiTransitionKey); - + [Abstract] [Export ("initialFrameForViewController:")] CGRect GetInitialFrameForViewController (UIViewController vc); - + [Abstract] [Export ("finalFrameForViewController:")] CGRect GetFinalFrameForViewController (UIViewController vc); @@ -16643,7 +16811,7 @@ namespace UIKit { #if NET // Can't break the world right now [Abstract] #endif - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("pauseInteractiveTransition")] void PauseInteractiveTransition (); } @@ -16651,11 +16819,11 @@ namespace UIKit { interface IUIViewControllerContextTransitioning { } - interface IUITraitEnvironment {} + interface IUITraitEnvironment { } [BaseType (typeof (NSObject))] [Model] [Protocol] - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] partial interface UITraitEnvironment { [Abstract] [Export ("traitCollection")] @@ -16665,8 +16833,8 @@ namespace UIKit { [Export ("traitCollectionDidChange:")] void TraitCollectionDidChange ([NullAllowed] UITraitCollection previousTraitCollection); } - - [iOS (8,0), NoWatch] + + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] [ThreadSafe] // Documentation doesn't say, but it this class doesn't seem to trigger Apple's Main Thread Checker. @@ -16674,7 +16842,7 @@ namespace UIKit { [Export ("userInterfaceIdiom")] UIUserInterfaceIdiom UserInterfaceIdiom { get; } - [TV (10, 0), NoWatch, iOS (12,0)] + [TV (10, 0), NoWatch, iOS (12, 0)] [Export ("userInterfaceStyle")] UIUserInterfaceStyle UserInterfaceStyle { get; } @@ -16705,49 +16873,49 @@ namespace UIKit { [Static, Export ("traitCollectionWithVerticalSizeClass:")] UITraitCollection FromVerticalSizeClass (UIUserInterfaceSizeClass verticalSizeClass); - [iOS (9,0)] + [iOS (9, 0)] [Static, Export ("traitCollectionWithForceTouchCapability:")] UITraitCollection FromForceTouchCapability (UIForceTouchCapability capability); - [TV (10, 0), NoWatch, iOS (12,0)] + [TV (10, 0), NoWatch, iOS (12, 0)] [Static] [Export ("traitCollectionWithUserInterfaceStyle:")] UITraitCollection FromUserInterfaceStyle (UIUserInterfaceStyle userInterfaceStyle); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Static] [Export ("traitCollectionWithDisplayGamut:")] UITraitCollection FromDisplayGamut (UIDisplayGamut displayGamut); - - [iOS (10,0), TV (10,0)] + + [iOS (10, 0), TV (10, 0)] [Static] [Export ("traitCollectionWithLayoutDirection:")] UITraitCollection FromLayoutDirection (UITraitEnvironmentLayoutDirection layoutDirection); - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Static] [Export ("traitCollectionWithPreferredContentSizeCategory:")] [Internal] UITraitCollection FromPreferredContentSizeCategory (NSString preferredContentSizeCategory); - - [iOS (9,0)] + + [iOS (9, 0)] [Export ("forceTouchCapability")] UIForceTouchCapability ForceTouchCapability { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("displayGamut")] UIDisplayGamut DisplayGamut { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("preferredContentSizeCategory")] string PreferredContentSizeCategory { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("layoutDirection")] UITraitEnvironmentLayoutDirection LayoutDirection { get; } // This class has other members using From* - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Static] [Export ("traitCollectionWithAccessibilityContrast:")] UITraitCollection FromAccessibilityContrast (UIAccessibilityContrast accessibilityContrast); @@ -16756,7 +16924,7 @@ namespace UIKit { [Export ("accessibilityContrast")] UIAccessibilityContrast AccessibilityContrast { get; } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("traitCollectionWithUserInterfaceLevel:")] UITraitCollection FromUserInterfaceLevel (UIUserInterfaceLevel userInterfaceLevel); @@ -16765,21 +16933,21 @@ namespace UIKit { [Export ("userInterfaceLevel")] UIUserInterfaceLevel UserInterfaceLevel { get; } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [Static] [Export ("traitCollectionWithLegibilityWeight:")] UITraitCollection FromLegibilityWeight (UILegibilityWeight legibilityWeight); - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [Export ("legibilityWeight")] UILegibilityWeight LegibilityWeight { get; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Static] [Export ("traitCollectionWithActiveAppearance:")] UITraitCollection FromActiveAppearance (UIUserInterfaceActiveAppearance userInterfaceActiveAppearance); // We have other From* methods - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("activeAppearance")] UIUserInterfaceActiveAppearance ActiveAppearance { get; } @@ -16791,13 +16959,13 @@ namespace UIKit { UITraitCollection CurrentTraitCollection { get; set; } [ThreadSafe] - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("performAsCurrentTraitCollection:")] void PerformAsCurrentTraitCollection (Action actions); // From UITraitCollection (CurrentTraitCollection) - [TV (13,0), NoWatch, iOS (13,0)] + [TV (13, 0), NoWatch, iOS (13, 0)] [Export ("hasDifferentColorAppearanceComparedToTraitCollection:")] bool HasDifferentColorAppearanceComparedTo ([NullAllowed] UITraitCollection traitCollection); @@ -16807,18 +16975,18 @@ namespace UIKit { [Export ("imageConfiguration", ArgumentSemantic.Strong)] UIImageConfiguration ImageConfiguration { get; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("traitCollectionWithToolbarItemPresentationSize:")] UITraitCollection GetTraitCollection (UINSToolbarItemPresentationSize toolbarItemPresentationSize); - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("toolbarItemPresentationSize")] UINSToolbarItemPresentationSize ToolbarItemPresentationSize { get; } } - - [iOS (7,0), NoWatch] + + [iOS (7, 0), NoWatch] [Static] partial interface UITransitionContext { [Field ("UITransitionContextFromViewControllerKey")] @@ -16827,16 +16995,16 @@ namespace UIKit { [Field ("UITransitionContextToViewControllerKey")] NSString ToViewControllerKey { get; } - [iOS(8,0)] + [iOS (8, 0)] [Field ("UITransitionContextFromViewKey")] NSString FromViewKey { get; } - [iOS (8,0)] + [iOS (8, 0)] [Field ("UITransitionContextToViewKey")] NSString ToViewKey { get; } } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Model, BaseType (typeof (NSObject))] [Protocol] partial interface UIViewControllerAnimatedTransitioning { @@ -16847,7 +17015,7 @@ namespace UIKit { [Abstract] [Export ("animateTransition:")] void AnimateTransition (IUIViewControllerContextTransitioning transitionContext); - + [iOS (10, 0)] [Export ("interruptibleAnimatorForTransition:")] IUIViewImplicitlyAnimating GetInterruptibleAnimator (IUIViewControllerContextTransitioning transitionContext); @@ -16855,84 +17023,84 @@ namespace UIKit { [Export ("animationEnded:")] void AnimationEnded (bool transitionCompleted); } - interface IUIViewControllerAnimatedTransitioning {} + interface IUIViewControllerAnimatedTransitioning { } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Model, BaseType (typeof (NSObject))] [Protocol] partial interface UIViewControllerInteractiveTransitioning { [Abstract] [Export ("startInteractiveTransition:")] void StartInteractiveTransition (IUIViewControllerContextTransitioning transitionContext); - + [Export ("completionSpeed")] nfloat CompletionSpeed { get; } - + [Export ("completionCurve")] UIViewAnimationCurve CompletionCurve { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("wantsInteractiveStart")] bool WantsInteractiveStart { get; } } - interface IUIViewControllerInteractiveTransitioning {} - + interface IUIViewControllerInteractiveTransitioning { } + [NoWatch] [Model, BaseType (typeof (NSObject))] [Protocol] partial interface UIViewControllerTransitioningDelegate { [Export ("animationControllerForPresentedController:presentingController:sourceController:")] IUIViewControllerAnimatedTransitioning GetAnimationControllerForPresentedController (UIViewController presented, UIViewController presenting, UIViewController source); - + [Export ("animationControllerForDismissedController:")] IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController (UIViewController dismissed); - + [Export ("interactionControllerForPresentation:")] IUIViewControllerInteractiveTransitioning GetInteractionControllerForPresentation (IUIViewControllerAnimatedTransitioning animator); - + [Export ("interactionControllerForDismissal:")] IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal (IUIViewControllerAnimatedTransitioning animator); - [iOS (8,0)] + [iOS (8, 0)] [Export ("presentationControllerForPresentedViewController:presentingViewController:sourceViewController:")] UIPresentationController GetPresentationControllerForPresentedViewController (UIViewController presentedViewController, [NullAllowed] UIViewController presentingViewController, UIViewController sourceViewController); } - - [iOS (7,0), NoWatch] + + [iOS (7, 0), NoWatch] [BaseType (typeof (NSObject))] partial interface UIPercentDrivenInteractiveTransition : UIViewControllerInteractiveTransitioning { [Export ("duration")] nfloat Duration { get; } - + [Export ("percentComplete")] nfloat PercentComplete { get; } - + [Export ("completionSpeed", ArgumentSemantic.Assign)] new nfloat CompletionSpeed { get; set; } - + [Export ("completionCurve", ArgumentSemantic.Assign)] new UIViewAnimationCurve CompletionCurve { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("timingCurve", ArgumentSemantic.Strong)] IUITimingCurveProvider TimingCurve { get; set; } // getter comes from UIViewControllerInteractiveTransitioning but // headers declares a setter here - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("wantsInteractiveStart")] new bool WantsInteractiveStart { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("pauseInteractiveTransition")] void PauseInteractiveTransition (); - + [Export ("updateInteractiveTransition:")] void UpdateInteractiveTransition (nfloat percentComplete); - + [Export ("cancelInteractiveTransition")] void CancelInteractiveTransition (); - + [Export ("finishInteractiveTransition")] void FinishInteractiveTransition (); } @@ -16941,60 +17109,60 @@ namespace UIKit { // This protocol is only for consumption (there is no API to set a transition coordinator context, // you'll be provided an existing one), so we do not provide a model to subclass. // - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Protocol] partial interface UIViewControllerTransitionCoordinatorContext { [Abstract] [Export ("isAnimated")] bool IsAnimated { get; } - + [Abstract] [Export ("presentationStyle")] UIModalPresentationStyle PresentationStyle { get; } - + [Abstract] [Export ("initiallyInteractive")] bool InitiallyInteractive { get; } - + [Abstract] [Export ("isInteractive")] bool IsInteractive { get; } - + [Abstract] [Export ("isCancelled")] bool IsCancelled { get; } - + [Abstract] [Export ("transitionDuration")] double TransitionDuration { get; } - + [Abstract] [Export ("percentComplete")] nfloat PercentComplete { get; } - + [Abstract] [Export ("completionVelocity")] nfloat CompletionVelocity { get; } - + [Abstract] [Export ("completionCurve")] UIViewAnimationCurve CompletionCurve { get; } - + [Abstract] [Export ("viewControllerForKey:")] UIViewController GetViewControllerForKey (NSString uiTransitionKey); - + [Abstract] [Export ("containerView")] UIView ContainerView { get; } [Abstract] - [iOS (8,0)] + [iOS (8, 0)] [Export ("targetTransform")] CGAffineTransform TargetTransform (); [Abstract] - [iOS (8,0)] + [iOS (8, 0)] [Export ("viewForKey:")] [EditorBrowsable (EditorBrowsableState.Advanced)] // this is not the one we want to be seen (compat only) UIView GetTransitionViewControllerForKey (NSString key); @@ -17006,24 +17174,24 @@ namespace UIKit { [Export ("isInterruptible")] bool IsInterruptible { get; } } - interface IUIViewControllerTransitionCoordinatorContext {} + interface IUIViewControllerTransitionCoordinatorContext { } // // This protocol is only for consumption (there is no API to set a transition coordinator, // only get an existing one), so we do not provide a model to subclass. // - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [Protocol] partial interface UIViewControllerTransitionCoordinator : UIViewControllerTransitionCoordinatorContext { [Abstract] [Export ("animateAlongsideTransition:completion:")] bool AnimateAlongsideTransition (Action animate, [NullAllowed] Action completion); - + [Abstract] [Export ("animateAlongsideTransitionInView:animation:completion:")] bool AnimateAlongsideTransitionInView (UIView view, Action animation, [NullAllowed] Action completion); - + [Abstract] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'NotifyWhenInteractionChanges' instead.")] [Export ("notifyWhenInteractionEndsUsingBlock:")] @@ -17032,11 +17200,11 @@ namespace UIKit { #if NET // This is abstract in headers but is a breaking change [Abstract] #endif - [iOS (10,0)] + [iOS (10, 0)] [Export ("notifyWhenInteractionChangesUsingBlock:")] void NotifyWhenInteractionChanges (Action handler); } - interface IUIViewControllerTransitionCoordinator {} + interface IUIViewControllerTransitionCoordinator { } [NoWatch] [Category, BaseType (typeof (UIViewController))] @@ -17049,12 +17217,13 @@ namespace UIKit { [NoMacCatalyst, NoWatch] [NoTV] [Deprecated (PlatformName.iOS, 12, 0, message: "No longer supported; please adopt 'WKWebView'.")] - [BaseType (typeof (UIView), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIWebViewDelegate)})] + [BaseType (typeof (UIView), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIWebViewDelegate) })] interface UIWebView : UIScrollViewDelegate { [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] @@ -17078,7 +17247,7 @@ namespace UIKit { [Export ("stopLoading")] void StopLoading (); - + [Export ("goBack")] void GoBack (); @@ -17105,7 +17274,7 @@ namespace UIKit { [Export ("allowsInlineMediaPlayback")] bool AllowsInlineMediaPlayback { get; set; } - + [Export ("mediaPlaybackRequiresUserAction")] bool MediaPlaybackRequiresUserAction { get; set; } @@ -17121,31 +17290,31 @@ namespace UIKit { [Export ("keyboardDisplayRequiresUserAction")] bool KeyboardDisplayRequiresUserAction { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("paginationMode")] UIWebPaginationMode PaginationMode { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("paginationBreakingMode")] UIWebPaginationBreakingMode PaginationBreakingMode { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("pageLength")] nfloat PageLength { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("gapBetweenPages")] nfloat GapBetweenPages { get; set; } - - [iOS (7,0)] + + [iOS (7, 0)] [Export ("pageCount")] nint PageCount { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("allowsPictureInPictureMediaPlayback")] bool AllowsPictureInPictureMediaPlayback { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("allowsLinkPreview")] bool AllowsLinkPreview { get; set; } } @@ -17207,7 +17376,7 @@ namespace UIKit { } [Static] - [iOS (10,0), TV (10,0), NoWatch] + [iOS (10, 0), TV (10, 0), NoWatch] interface UITextContentType { [Field ("UITextContentTypeName")] NSString Name { get; } @@ -17278,11 +17447,11 @@ namespace UIKit { [Field ("UITextContentTypeCreditCardNumber")] NSString CreditCardNumber { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Field ("UITextContentTypeUsername")] NSString Username { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Field ("UITextContentTypePassword")] NSString Password { get; } @@ -17294,62 +17463,62 @@ namespace UIKit { [Field ("UITextContentTypeOneTimeCode")] NSString OneTimeCode { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("UITextContentTypeShipmentTrackingNumber")] NSString ShipmentTrackingNumber { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("UITextContentTypeFlightNumber")] NSString FlightNumber { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("UITextContentTypeDateTime")] NSString DateTime { get; } } - + [NoWatch] - [BaseType (typeof (UIViewController), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UISplitViewControllerDelegate)})] + [BaseType (typeof (UIViewController), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UISplitViewControllerDelegate) })] interface UISplitViewController { [DesignatedInitializer] [Export ("initWithNibName:bundle:")] [PostGet ("NibBundle")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("initWithStyle:")] [DesignatedInitializer] NativeHandle Constructor (UISplitViewControllerStyle style); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("style")] UISplitViewControllerStyle Style { get; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("showsSecondaryOnlyButton")] bool ShowsSecondaryOnlyButton { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("preferredSplitBehavior", ArgumentSemantic.Assign)] UISplitViewControllerSplitBehavior PreferredSplitBehavior { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitBehavior")] UISplitViewControllerSplitBehavior SplitBehavior { get; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("setViewController:forColumn:")] void SetViewController ([NullAllowed] UIViewController viewController, UISplitViewControllerColumn column); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("viewControllerForColumn:")] [return: NullAllowed] UIViewController GetViewController (UISplitViewControllerColumn column); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("hideColumn:")] void HideColumn (UISplitViewControllerColumn column); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("showColumn:")] void ShowColumn (UISplitViewControllerColumn column); @@ -17361,89 +17530,90 @@ namespace UIKit { [Protocolize] UISplitViewControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } - + [Export ("presentsWithGesture")] bool PresentsWithGesture { get; set; } // // iOS 8 // - [iOS (8,0)] + [iOS (8, 0)] [Export ("collapsed")] bool Collapsed { [Bind ("isCollapsed")] get; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("preferredDisplayMode")] UISplitViewControllerDisplayMode PreferredDisplayMode { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("displayMode")] UISplitViewControllerDisplayMode DisplayMode { get; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("preferredPrimaryColumnWidthFraction", ArgumentSemantic.UnsafeUnretained)] nfloat PreferredPrimaryColumnWidthFraction { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("preferredPrimaryColumnWidth")] nfloat PreferredPrimaryColumnWidth { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("minimumPrimaryColumnWidth", ArgumentSemantic.UnsafeUnretained)] nfloat MinimumPrimaryColumnWidth { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("maximumPrimaryColumnWidth", ArgumentSemantic.UnsafeUnretained)] nfloat MaximumPrimaryColumnWidth { get; set; } - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("primaryColumnWidth")] nfloat PrimaryColumnWidth { get; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("preferredSupplementaryColumnWidthFraction")] nfloat PreferredSupplementaryColumnWidthFraction { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("preferredSupplementaryColumnWidth")] nfloat PreferredSupplementaryColumnWidth { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("minimumSupplementaryColumnWidth")] nfloat MinimumSupplementaryColumnWidth { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("maximumSupplementaryColumnWidth")] nfloat MaximumSupplementaryColumnWidth { get; set; } - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("supplementaryColumnWidth")] nfloat SupplementaryColumnWidth { get; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("displayModeButtonItem")] UIBarButtonItem DisplayModeButtonItem { get; } - [iOS (14,5), TV (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5), TV (14, 5)] + [MacCatalyst (14, 5)] [Export ("displayModeButtonVisibility", ArgumentSemantic.Assign)] UISplitViewControllerDisplayModeButtonVisibility DisplayModeButtonVisibility { get; set; } - - [iOS (8,0)] - [Export ("showViewController:sender:")] - void ShowViewController (UIViewController vc, [NullAllowed] NSObject sender); - - [iOS (8,0)] - [Export ("showDetailViewController:sender:")] - void ShowDetailViewController (UIViewController vc, [NullAllowed] NSObject sender); - [iOS (8,0)] + [iOS (8, 0)] + [Export ("showViewController:sender:")] + void ShowViewController (UIViewController vc, [NullAllowed] NSObject sender); + + [iOS (8, 0)] + [Export ("showDetailViewController:sender:")] + void ShowDetailViewController (UIViewController vc, [NullAllowed] NSObject sender); + + [iOS (8, 0)] [Field ("UISplitViewControllerAutomaticDimension")] nfloat AutomaticDimension { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("primaryEdge", ArgumentSemantic.Assign)] UISplitViewControllerPrimaryEdge PrimaryEdge { get; set; } @@ -17458,13 +17628,13 @@ namespace UIKit { [Protocol] interface UISplitViewControllerDelegate { [NoTV] - [iOS (7,0)] // While introduced in 7.0, it was not made public, it was only publicized in iOS 8 and made retroactively supported - [Export ("splitViewControllerSupportedInterfaceOrientations:"), DelegateName("Func"), DefaultValue(UIInterfaceOrientationMask.All)] + [iOS (7, 0)] // While introduced in 7.0, it was not made public, it was only publicized in iOS 8 and made retroactively supported + [Export ("splitViewControllerSupportedInterfaceOrientations:"), DelegateName ("Func"), DefaultValue (UIInterfaceOrientationMask.All)] UIInterfaceOrientationMask SupportedInterfaceOrientations (UISplitViewController splitViewController); - + [NoTV] - [iOS (7,0)] // While introduced in 7.0, it was not made public, it was only publicized in iOS 8 and made retroactively supported - [Export ("splitViewControllerPreferredInterfaceOrientationForPresentation:"), DelegateName("Func"), DefaultValue (UIInterfaceOrientation.Unknown)] + [iOS (7, 0)] // While introduced in 7.0, it was not made public, it was only publicized in iOS 8 and made retroactively supported + [Export ("splitViewControllerPreferredInterfaceOrientationForPresentation:"), DelegateName ("Func"), DefaultValue (UIInterfaceOrientation.Unknown)] UIInterfaceOrientation GetPreferredInterfaceOrientationForPresentation (UISplitViewController splitViewController); [NoTV] @@ -17486,68 +17656,68 @@ namespace UIKit { [Export ("splitViewController:shouldHideViewController:inOrientation:"), DelegateName ("UISplitViewControllerHidePredicate"), DefaultValue (true)] [Deprecated (PlatformName.iOS, 8, 0, message: "Use 'UISearchController' instead.")] bool ShouldHideViewController (UISplitViewController svc, UIViewController viewController, UIInterfaceOrientation inOrientation); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("splitViewController:willChangeToDisplayMode:"), EventArgs ("UISplitViewControllerDisplayMode")] void WillChangeDisplayMode (UISplitViewController svc, UISplitViewControllerDisplayMode displayMode); - - [iOS (8,0)] - [Export ("targetDisplayModeForActionInSplitViewController:"), DelegateName("UISplitViewControllerFetchTargetForActionHandler"), DefaultValue(UISplitViewControllerDisplayMode.Automatic)] + + [iOS (8, 0)] + [Export ("targetDisplayModeForActionInSplitViewController:"), DelegateName ("UISplitViewControllerFetchTargetForActionHandler"), DefaultValue (UISplitViewControllerDisplayMode.Automatic)] UISplitViewControllerDisplayMode GetTargetDisplayModeForAction (UISplitViewController svc); - - [iOS (8,0)] - [Export ("splitViewController:showViewController:sender:"), DelegateName("UISplitViewControllerDisplayEvent"), DefaultValue(false)] + + [iOS (8, 0)] + [Export ("splitViewController:showViewController:sender:"), DelegateName ("UISplitViewControllerDisplayEvent"), DefaultValue (false)] bool EventShowViewController (UISplitViewController splitViewController, UIViewController vc, NSObject sender); - - [iOS (8,0)] - [Export ("splitViewController:showDetailViewController:sender:"), DelegateName("UISplitViewControllerDisplayEvent"),DefaultValue(false)] + + [iOS (8, 0)] + [Export ("splitViewController:showDetailViewController:sender:"), DelegateName ("UISplitViewControllerDisplayEvent"), DefaultValue (false)] bool EventShowDetailViewController (UISplitViewController splitViewController, UIViewController vc, NSObject sender); - - [iOS (8,0)] - [Export ("primaryViewControllerForCollapsingSplitViewController:"), DelegateName("UISplitViewControllerGetViewController"), DefaultValue(null)] + + [iOS (8, 0)] + [Export ("primaryViewControllerForCollapsingSplitViewController:"), DelegateName ("UISplitViewControllerGetViewController"), DefaultValue (null)] UIViewController GetPrimaryViewControllerForCollapsingSplitViewController (UISplitViewController splitViewController); - - [iOS (8,0)] - [Export ("primaryViewControllerForExpandingSplitViewController:"), DelegateName("UISplitViewControllerGetViewController"), DefaultValue(null)] + + [iOS (8, 0)] + [Export ("primaryViewControllerForExpandingSplitViewController:"), DelegateName ("UISplitViewControllerGetViewController"), DefaultValue (null)] UIViewController GetPrimaryViewControllerForExpandingSplitViewController (UISplitViewController splitViewController); - - [iOS (8,0)] - [Export ("splitViewController:collapseSecondaryViewController:ontoPrimaryViewController:"),DelegateName ("UISplitViewControllerCanCollapsePredicate"), DefaultValue (true)] + + [iOS (8, 0)] + [Export ("splitViewController:collapseSecondaryViewController:ontoPrimaryViewController:"), DelegateName ("UISplitViewControllerCanCollapsePredicate"), DefaultValue (true)] bool CollapseSecondViewController (UISplitViewController splitViewController, UIViewController secondaryViewController, UIViewController primaryViewController); - - [iOS (8,0)] - [Export ("splitViewController:separateSecondaryViewControllerFromPrimaryViewController:"), DelegateName("UISplitViewControllerGetSecondaryViewController"), DefaultValue(null)] + + [iOS (8, 0)] + [Export ("splitViewController:separateSecondaryViewControllerFromPrimaryViewController:"), DelegateName ("UISplitViewControllerGetSecondaryViewController"), DefaultValue (null)] UIViewController SeparateSecondaryViewController (UISplitViewController splitViewController, UIViewController primaryViewController); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewController:topColumnForCollapsingToProposedTopColumn:"), DelegateName ("UISplitViewControllerGetTopColumnForCollapsing"), DefaultValueFromArgument ("proposedTopColumn")] UISplitViewControllerColumn GetTopColumnForCollapsing (UISplitViewController splitViewController, UISplitViewControllerColumn proposedTopColumn); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewController:displayModeForExpandingToProposedDisplayMode:"), DelegateName ("UISplitViewControllerGetDisplayModeForExpanding"), DefaultValueFromArgument ("proposedDisplayMode")] UISplitViewControllerDisplayMode GetDisplayModeForExpanding (UISplitViewController splitViewController, UISplitViewControllerDisplayMode proposedDisplayMode); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewControllerDidCollapse:"), EventArgs ("UISplitViewControllerDidExpandCollapse")] void DidCollapse (UISplitViewController splitViewController); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewControllerDidExpand:"), EventArgs ("UISplitViewControllerDidExpandCollapse")] void DidExpand (UISplitViewController splitViewController); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewController:willShowColumn:"), EventArgs ("UISplitViewControllerWillShowHideColumn")] void WillShowColumn (UISplitViewController splitViewController, UISplitViewControllerColumn column); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewController:willHideColumn:"), EventArgs ("UISplitViewControllerWillShowHideColumn")] void WillHideColumn (UISplitViewController splitViewController, UISplitViewControllerColumn column); - - [TV (14,0), iOS (14,0)] + + [TV (14, 0), iOS (14, 0)] [Export ("splitViewControllerInteractivePresentationGestureWillBegin:")] void InteractivePresentationGestureWillBegin (UISplitViewController svc); - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Export ("splitViewControllerInteractivePresentationGestureDidEnd:")] void InteractivePresentationGestureDidEnd (UISplitViewController svc); } @@ -17556,16 +17726,16 @@ namespace UIKit { [Category] [BaseType (typeof (UIViewController))] partial interface UISplitViewController_UIViewController { - [iOS (8,0)] + [iOS (8, 0)] [Export ("splitViewController", ArgumentSemantic.Retain)] [return: NullAllowed] UISplitViewController GetSplitViewController (); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("collapseSecondaryViewController:forSplitViewController:")] void CollapseSecondaryViewController (UIViewController secondaryViewController, UISplitViewController splitViewController); - - [iOS (8,0)] + + [iOS (8, 0)] [Export ("separateSecondaryViewControllerForSplitViewController:")] UIViewController SeparateSecondaryViewControllerForSplitViewController (UISplitViewController splitViewController); } @@ -17577,25 +17747,25 @@ namespace UIKit { NativeHandle Constructor (CGRect frame); [Export ("continuous")] - bool Continuous { [Bind ("isContinuous")] get; set; } + bool Continuous { [Bind ("isContinuous")] get; set; } [Export ("autorepeat")] - bool AutoRepeat { get; set; } + bool AutoRepeat { get; set; } [Export ("wraps")] - bool Wraps { get; set; } + bool Wraps { get; set; } [Export ("value")] - double Value { get; set; } + double Value { get; set; } [Export ("minimumValue")] - double MinimumValue { get; set; } + double MinimumValue { get; set; } [Export ("maximumValue")] - double MaximumValue { get; set; } + double MaximumValue { get; set; } [Export ("stepValue")] - double StepValue { get; set; } + double StepValue { get; set; } // // 6.0 @@ -17634,7 +17804,7 @@ namespace UIKit { UIImage GetDecrementImage (UIControlState state); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] delegate UIViewController UIStoryboardViewControllerCreator (NSCoder coder); [NoWatch] @@ -17650,11 +17820,11 @@ namespace UIKit { [Export ("instantiateViewControllerWithIdentifier:")] UIViewController InstantiateViewController (string identifier); - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [Export ("instantiateInitialViewControllerWithCreator:")] UIViewController InstantiateInitialViewController ([NullAllowed] UIStoryboardViewControllerCreator creator); - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [Export ("instantiateViewControllerWithIdentifier:creator:")] UIViewController InstantiateViewController (string identifier, [NullAllowed] UIStoryboardViewControllerCreator creator); } @@ -17669,7 +17839,7 @@ namespace UIKit { NativeHandle Constructor ([NullAllowed] string identifier, UIViewController source, UIViewController destination); [Export ("popoverController", ArgumentSemantic.Retain)] - UIPopoverController PopoverController { get; } + UIPopoverController PopoverController { get; } } [NoWatch] @@ -17679,16 +17849,16 @@ namespace UIKit { [DesignatedInitializer] [Export ("initWithIdentifier:source:destination:"), PostGet ("SourceViewController"), PostGet ("DestinationViewController")] NativeHandle Constructor ([NullAllowed] string identifier, UIViewController source, UIViewController destination); - + [Export ("identifier")] [NullAllowed] - string Identifier { get; } + string Identifier { get; } [Export ("sourceViewController")] - UIViewController SourceViewController { get; } + UIViewController SourceViewController { get; } [Export ("destinationViewController")] - UIViewController DestinationViewController { get; } + UIViewController DestinationViewController { get; } [Export ("perform")] void Perform (); @@ -17698,9 +17868,9 @@ namespace UIKit { UIStoryboardSegue Create ([NullAllowed] string identifier, UIViewController source, UIViewController destination, Action performHandler); } - [iOS (9,0), NoWatch] + [iOS (9, 0), NoWatch] [BaseType (typeof (NSObject))] - [DisableDefaultCtor] + [DisableDefaultCtor] interface UIStoryboardUnwindSegueSource { [Export ("sourceViewController")] UIViewController SourceViewController { get; } @@ -17713,8 +17883,8 @@ namespace UIKit { [Export ("sender")] NSObject Sender { get; } } - - [iOS (8,0), NoWatch] + + [iOS (8, 0), NoWatch] [Protocol] interface UIPopoverBackgroundViewMethods { // This method is required, but we don't generate the correct code for required static methods. @@ -17732,7 +17902,7 @@ namespace UIKit { [Static, Export ("contentViewInsets")] UIEdgeInsets GetContentViewInsets (); } - + [NoWatch] [BaseType (typeof (UIView))] interface UIPopoverBackgroundView : UIPopoverBackgroundViewMethods { @@ -17751,22 +17921,24 @@ namespace UIKit { [Static, Export ("wantsDefaultContentAppearance")] bool WantsDefaultContentAppearance { get; } } - + [NoWatch] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIPopoverControllerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIPopoverControllerDelegate) })] [DisableDefaultCtor] // bug #1786 [Deprecated (PlatformName.iOS, 9, 0, message: "Use 'UIViewController' with style of 'UIModalPresentationStyle.Popover' or UIPopoverPresentationController' instead.")] [Deprecated (PlatformName.TvOS, 9, 0, message: "Use 'UIViewController' with style of 'UIModalPresentationStyle.Popover' or UIPopoverPresentationController' instead.")] interface UIPopoverController : UIAppearanceContainer { - [Export ("initWithContentViewController:")][PostGet ("ContentViewController")] + [Export ("initWithContentViewController:")] + [PostGet ("ContentViewController")] NativeHandle Constructor (UIViewController viewController); [Export ("contentViewController", ArgumentSemantic.Retain)] UIViewController ContentViewController { get; set; } - [Export ("setContentViewController:animated:")][PostGet ("ContentViewController")] + [Export ("setContentViewController:animated:")] + [PostGet ("ContentViewController")] void SetContentViewController (UIViewController viewController, bool animated); - + [Export ("popoverContentSize")] CGSize PopoverContentSize { get; set; } @@ -17780,7 +17952,8 @@ namespace UIKit { [Protocolize] UIPopoverControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("popoverVisible")] @@ -17797,17 +17970,18 @@ namespace UIKit { [Export ("dismissPopoverAnimated:")] void Dismiss (bool animated); - + // @property (nonatomic, readwrite) UIEdgeInsets popoverLayoutMargins [Export ("popoverLayoutMargins")] UIEdgeInsets PopoverLayoutMargins { get; set; } - + // @property (nonatomic, readwrite, retain) Class popoverBackgroundViewClass // Class is not pretty so we'll expose it manually as a System.Type - [Internal][Export ("popoverBackgroundViewClass", ArgumentSemantic.Retain)] + [Internal] + [Export ("popoverBackgroundViewClass", ArgumentSemantic.Retain)] IntPtr PopoverBackgroundViewClass { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("backgroundColor", ArgumentSemantic.Copy)] UIColor BackgroundColor { get; set; } } @@ -17824,16 +17998,16 @@ namespace UIKit { [Export ("popoverControllerShouldDismissPopover:"), DelegateName ("UIPopoverControllerCondition"), DefaultValue ("true")] bool ShouldDismiss (UIPopoverController popoverController); - - [iOS (7,0), Export ("popoverController:willRepositionPopoverToRect:inView:"), EventArgs ("UIPopoverControllerReposition")] + + [iOS (7, 0), Export ("popoverController:willRepositionPopoverToRect:inView:"), EventArgs ("UIPopoverControllerReposition")] void WillReposition (UIPopoverController popoverController, ref CGRect rect, ref UIView view); } [NoTV, NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIPresentationController), - Delegates=new string [] {"WeakDelegate"}, - Events=new Type [] { typeof (UIPopoverPresentationControllerDelegate) })] + Delegates = new string [] { "WeakDelegate" }, + Events = new Type [] { typeof (UIPopoverPresentationControllerDelegate) })] [DisableDefaultCtor] // NSGenericException Reason: -[UIPopoverController init] is not a valid initializer. You must call -[UIPopoverController initWithContentViewController:] partial interface UIPopoverPresentationController { // re-exposed from base class @@ -17848,34 +18022,34 @@ namespace UIKit { [NullAllowed] [Protocolize] UIPopoverPresentationControllerDelegate Delegate { get; set; } - + [Export ("permittedArrowDirections", ArgumentSemantic.UnsafeUnretained)] UIPopoverArrowDirection PermittedArrowDirections { get; set; } - + [Export ("sourceView", ArgumentSemantic.Retain)] UIView SourceView { get; set; } - + [Export ("sourceRect", ArgumentSemantic.UnsafeUnretained)] CGRect SourceRect { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("canOverlapSourceViewRect")] bool CanOverlapSourceViewRect { get; set; } - + [Deprecated (PlatformName.iOS, 16, 0, message: "Use the SourceItem property instead.")] [Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Use the SourceItem property instead.")] [Export ("barButtonItem", ArgumentSemantic.Retain), NullAllowed] UIBarButtonItem BarButtonItem { get; set; } - + [Export ("arrowDirection")] UIPopoverArrowDirection ArrowDirection { get; } - + [Export ("passthroughViews", ArgumentSemantic.Copy)] UIView [] PassthroughViews { get; set; } - + [Export ("backgroundColor", ArgumentSemantic.Copy), NullAllowed] UIColor BackgroundColor { get; set; } - + [Export ("popoverLayoutMargins")] UIEdgeInsets PopoverLayoutMargins { get; set; } @@ -17883,11 +18057,11 @@ namespace UIKit { [Export ("popoverBackgroundViewClass", ArgumentSemantic.Retain), NullAllowed] IntPtr /* Class */ PopoverBackgroundViewClass { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("adaptiveSheetPresentationController", ArgumentSemantic.Strong)] UISheetPresentationController AdaptiveSheetPresentationController { get; } - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("sourceItem", ArgumentSemantic.Strong)] [NullAllowed] IUIPopoverPresentationControllerSourceItem SourceItem { get; set; } @@ -17900,42 +18074,42 @@ namespace UIKit { [IgnoredInDelegate] [Export ("adaptivePresentationStyleForPresentationController:")] UIModalPresentationStyle GetAdaptivePresentationStyle (UIPresentationController forPresentationController); - - [Export ("presentationController:viewControllerForAdaptivePresentationStyle:"), + + [Export ("presentationController:viewControllerForAdaptivePresentationStyle:"), DelegateName ("UIAdaptivePresentationWithStyleRequested"), DefaultValue (null)] UIViewController GetViewControllerForAdaptivePresentation (UIPresentationController controller, UIModalPresentationStyle style); - [iOS (8,3)] + [iOS (8, 3)] [Export ("adaptivePresentationStyleForPresentationController:traitCollection:"), DelegateName ("UIAdaptivePresentationStyleWithTraitsRequested"), DefaultValue (UIModalPresentationStyle.None)] UIModalPresentationStyle GetAdaptivePresentationStyle (UIPresentationController controller, UITraitCollection traitCollection); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("presentationController:prepareAdaptivePresentationController:"), EventName ("PrepareAdaptive"), EventArgs ("UIPrepareAdaptivePresentationArgs")] void PrepareAdaptivePresentationController (UIPresentationController presentationController, UIPresentationController adaptivePresentationController); - [iOS (8,3)] + [iOS (8, 3)] [Export ("presentationController:willPresentWithAdaptiveStyle:transitionCoordinator:"), EventName ("WillPresentController"), EventArgs ("UIWillPresentAdaptiveStyle")] void WillPresent (UIPresentationController presentationController, UIModalPresentationStyle style, [NullAllowed] IUIViewControllerTransitionCoordinator transitionCoordinator); - [iOS (13,0)] + [iOS (13, 0)] [Export ("presentationControllerShouldDismiss:"), DelegateName ("UIAdaptivePresentationShouldDismiss"), DefaultValue (true)] bool ShouldDismiss (UIPresentationController presentationController); - [iOS (13,0), + [iOS (13, 0), EventName ("WillDismissController"), EventArgs ("UIAdaptivePresentationArgs")] [Export ("presentationControllerWillDismiss:")] void WillDismiss (UIPresentationController presentationController); - [iOS (13,0), + [iOS (13, 0), EventName ("DidDismissController"), EventArgs ("UIAdaptivePresentationArgs")] [Export ("presentationControllerDidDismiss:")] void DidDismiss (UIPresentationController presentationController); - [iOS (13,0), + [iOS (13, 0), EventName ("DidAttemptToDismissController"), EventArgs ("UIAdaptivePresentationArgs")] [Export ("presentationControllerDidAttemptToDismiss:")] void DidAttemptToDismiss (UIPresentationController presentationController); @@ -17947,7 +18121,7 @@ namespace UIKit { partial interface UIPopoverPresentationControllerDelegate { [Export ("prepareForPopoverPresentation:"), EventName ("PrepareForPresentation")] void PrepareForPopoverPresentation (UIPopoverPresentationController popoverPresentationController); - + [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'ShouldDismiss'.")] [Export ("popoverPresentationControllerShouldDismissPopover:"), DelegateName ("ShouldDismiss"), DefaultValue (true)] bool ShouldDismissPopover (UIPopoverPresentationController popoverPresentationController); @@ -17955,12 +18129,12 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 13, 0, message: "Replaced by 'DidDismiss'.")] [Export ("popoverPresentationControllerDidDismissPopover:"), EventName ("DidDismiss")] void DidDismissPopover (UIPopoverPresentationController popoverPresentationController); - + [Export ("popoverPresentationController:willRepositionPopoverToRect:inView:"), EventName ("WillReposition"), EventArgs ("UIPopoverPresentationControllerReposition")] void WillRepositionPopover (UIPopoverPresentationController popoverPresentationController, ref CGRect targetRect, ref UIView inView); } - + [NoWatch] [BaseType (typeof (NSObject))] interface UIScreenMode { @@ -17974,7 +18148,8 @@ namespace UIKit { [NoWatch] [BaseType (typeof (NSObject))] interface UITextInputMode : NSSecureCoding { - [Export ("currentInputMode"), NullAllowed][Static] + [Export ("currentInputMode"), NullAllowed] + [Static] [Deprecated (PlatformName.iOS, 7, 0)] [NoTV] UITextInputMode CurrentInputMode { get; } @@ -17992,69 +18167,69 @@ namespace UIKit { } [NoTV, NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Reason: -[UIPrinter init] not allowed partial interface UIPrinter { [Export ("URL", ArgumentSemantic.Copy)] NSUrl Url { get; } - + [Export ("displayName")] string DisplayName { get; } - + [Export ("displayLocation")] string DisplayLocation { get; } - + [Export ("supportedJobTypes")] UIPrinterJobTypes SupportedJobTypes { get; } - + [Export ("makeAndModel")] string MakeAndModel { get; } - + [Export ("supportsColor")] bool SupportsColor { get; } - + [Export ("supportsDuplex")] bool SupportsDuplex { get; } - + [Static, Export ("printerWithURL:")] UIPrinter FromUrl (NSUrl url); - + [Export ("contactPrinter:")] [Async] void ContactPrinter (UIPrinterContactPrinterHandler completionHandler); } [NoTV, NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Reason: -[UIPrinterPickerController init] not allowed partial interface UIPrinterPickerController { [Export ("selectedPrinter")] UIPrinter SelectedPrinter { get; } - + [Export ("delegate", ArgumentSemantic.UnsafeUnretained), NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] [Protocolize] UIPrinterPickerControllerDelegate Delegate { get; set; } - + [Static, Export ("printerPickerControllerWithInitiallySelectedPrinter:")] UIPrinterPickerController FromPrinter ([NullAllowed] UIPrinter printer); - + [Async (ResultTypeName = "UIPrinterPickerCompletionResult")] [Export ("presentAnimated:completionHandler:")] bool Present (bool animated, [NullAllowed] UIPrinterPickerCompletionHandler completion); - + [Async (ResultTypeName = "UIPrinterPickerCompletionResult")] [Export ("presentFromRect:inView:animated:completionHandler:")] bool PresentFromRect (CGRect rect, UIView view, bool animated, [NullAllowed] UIPrinterPickerCompletionHandler completion); - + [Async (ResultTypeName = "UIPrinterPickerCompletionResult")] [Export ("presentFromBarButtonItem:animated:completionHandler:")] bool PresentFromBarButtonItem (UIBarButtonItem item, bool animated, [NullAllowed] UIPrinterPickerCompletionHandler completion); - + [Export ("dismissAnimated:")] void Dismiss (bool animated); } @@ -18063,25 +18238,25 @@ namespace UIKit { [Protocol, Model] [BaseType (typeof (NSObject))] partial interface UIPrinterPickerControllerDelegate { - + [Export ("printerPickerControllerParentViewController:")] UIViewController GetParentViewController (UIPrinterPickerController printerPickerController); - + [Export ("printerPickerController:shouldShowPrinter:")] bool ShouldShowPrinter (UIPrinterPickerController printerPickerController, UIPrinter printer); - + [Export ("printerPickerControllerWillPresent:")] void WillPresent (UIPrinterPickerController printerPickerController); - + [Export ("printerPickerControllerDidPresent:")] void DidPresent (UIPrinterPickerController printerPickerController); - + [Export ("printerPickerControllerWillDismiss:")] void WillDismiss (UIPrinterPickerController printerPickerController); - + [Export ("printerPickerControllerDidDismiss:")] void DidDismiss (UIPrinterPickerController printerPickerController); - + [Export ("printerPickerControllerDidSelectPrinter:")] void DidSelectPrinter (UIPrinterPickerController printerPickerController); } @@ -18089,7 +18264,8 @@ namespace UIKit { [NoTV, NoWatch] [BaseType (typeof (NSObject))] interface UIPrintPaper { - [Export ("bestPaperForPageSize:withPapersFromArray:")][Static] + [Export ("bestPaperForPageSize:withPapersFromArray:")] + [Static] UIPrintPaper ForPageSize (CGSize pageSize, UIPrintPaper [] paperList); [Export ("paperSize")] @@ -18121,8 +18297,8 @@ namespace UIKit { [Export ("addPrintFormatter:startingAtPageAtIndex:")] void AddPrintFormatter (UIPrintFormatter formatter, nint pageIndex); - [iOS (14,5)] - [MacCatalyst (14,5)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("currentRenderingQualityForRequestedRenderingQuality:")] UIPrintRenderingQuality GetCurrentRenderingQuality (UIPrintRenderingQuality requestedRenderingQuality); @@ -18180,7 +18356,7 @@ namespace UIKit { [Export ("printInteractionControllerDidFinishJob:"), EventArgs ("UIPrintInteraction")] void DidFinishJob (UIPrintInteractionController printInteractionController); - [iOS (7,0), Export ("printInteractionController:cutLengthForPaper:")] + [iOS (7, 0), Export ("printInteractionController:cutLengthForPaper:")] [NoDefaultValue] [DelegateName ("Func")] nfloat CutLengthForPaper (UIPrintInteractionController printInteractionController, UIPrintPaper paper); @@ -18193,7 +18369,7 @@ namespace UIKit { delegate void UIPrintInteractionCompletionHandler (UIPrintInteractionController printInteractionController, bool completed, NSError error); [NoTV, NoWatch] - [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] {typeof(UIPrintInteractionControllerDelegate)})] + [BaseType (typeof (NSObject), Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (UIPrintInteractionControllerDelegate) })] // Objective-C exception thrown. Name: NSGenericException Reason: -[UIPrintInteractionController init] not allowed [DisableDefaultCtor] interface UIPrintInteractionController { @@ -18201,7 +18377,8 @@ namespace UIKit { [Protocolize] UIPrintInteractionControllerDelegate Delegate { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Export ("printFormatter", ArgumentSemantic.Retain)] @@ -18226,19 +18403,24 @@ namespace UIKit { [Export ("showsPageRange")] bool ShowsPageRange { get; set; } - [Export ("canPrintData:")][Static] + [Export ("canPrintData:")] + [Static] bool CanPrint (NSData data); - [Export ("canPrintURL:")][Static] + [Export ("canPrintURL:")] + [Static] bool CanPrint (NSUrl url); - [Export ("printingAvailable")][Static] + [Export ("printingAvailable")] + [Static] bool PrintingAvailable { [Bind ("isPrintingAvailable")] get; } - [Export ("printableUTIs")][Static] + [Export ("printableUTIs")] + [Static] NSSet PrintableUTIs { get; } - [Export ("sharedPrintController")][Static] + [Export ("sharedPrintController")] + [Static] UIPrintInteractionController SharedPrintController { get; } [Export ("dismissAnimated:")] @@ -18256,19 +18438,19 @@ namespace UIKit { [Async (ResultTypeName = "UIPrintInteractionResult")] bool PresentFromRectInView (CGRect rect, UIView view, bool animated, [NullAllowed] UIPrintInteractionCompletionHandler completion); - [iOS (7,0), Export ("showsNumberOfCopies")] + [iOS (7, 0), Export ("showsNumberOfCopies")] bool ShowsNumberOfCopies { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Export ("showsPaperSelectionForLoadedPapers")] bool ShowsPaperSelectionForLoadedPapers { get; set; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("showsPaperOrientation")] bool ShowsPaperOrientation { get; set; } - [iOS (8,0)] + [iOS (8, 0)] [Async (ResultTypeName = "UIPrintInteractionCompletionResult")] [Export ("printToPrinter:completionHandler:")] bool PrintToPrinter (UIPrinter printer, UIPrintInteractionCompletionHandler completion); @@ -18294,23 +18476,25 @@ namespace UIKit { [Export ("printerID", ArgumentSemantic.Copy)] string PrinterID { get; set; } - [Export ("printInfo")][Static] + [Export ("printInfo")] + [Static] UIPrintInfo PrintInfo { get; } - [Export ("printInfoWithDictionary:")][Static] + [Export ("printInfoWithDictionary:")] + [Static] UIPrintInfo FromDictionary (NSDictionary dictionary); [Export ("dictionaryRepresentation")] NSDictionary ToDictionary { get; } } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] interface UIPrintServiceExtension { [Export ("printerDestinationsForPrintInfo:")] - UIPrinterDestination[] GetPrinterDestinations (UIPrintInfo printInfo); + UIPrinterDestination [] GetPrinterDestinations (UIPrintInfo printInfo); } [NoTV, NoWatch] @@ -18320,43 +18504,43 @@ namespace UIKit { UIView View { get; } } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (NSObject))] partial interface UIVisualEffect : NSCopying, NSSecureCoding { } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (UIVisualEffect))] partial interface UIBlurEffect { - [Static, Export ("effectWithStyle:")] - UIBlurEffect FromStyle (UIBlurEffectStyle style); + [Static, Export ("effectWithStyle:")] + UIBlurEffect FromStyle (UIBlurEffectStyle style); } - [iOS (8,0), NoWatch] + [iOS (8, 0), NoWatch] [BaseType (typeof (UIVisualEffect))] partial interface UIVibrancyEffect { - [Static, Export ("effectForBlurEffect:")] - UIVibrancyEffect FromBlurEffect (UIBlurEffect blurEffect); + [Static, Export ("effectForBlurEffect:")] + UIVibrancyEffect FromBlurEffect (UIBlurEffect blurEffect); // From interface UIVibrancyEffect - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Static] [Export ("effectForBlurEffect:style:")] UIVibrancyEffect FromBlurEffect (UIBlurEffect blurEffect, UIVibrancyEffectStyle style); } - - [iOS (8,0), NoWatch] + + [iOS (8, 0), NoWatch] [BaseType (typeof (UIView))] partial interface UIVisualEffectView : NSSecureCoding { - + [DesignatedInitializer] [Export ("initWithEffect:")] NativeHandle Constructor ([NullAllowed] UIVisualEffect effect); - + [Export ("contentView", ArgumentSemantic.Retain)] UIView ContentView { get; } - + [NullAllowed] [Export ("effect", ArgumentSemantic.Copy)] UIVisualEffect Effect { get; set; } @@ -18386,11 +18570,11 @@ namespace UIKit { [Export ("initWithText:")] NativeHandle Constructor ([NullAllowed] string text); - [iOS (7,0)] + [iOS (7, 0)] [Export ("initWithAttributedText:")] NativeHandle Constructor ([NullAllowed] NSAttributedString text); - [iOS (7,0)] + [iOS (7, 0)] [NullAllowed] [Export ("attributedText", ArgumentSemantic.Copy)] NSAttributedString AttributedText { get; set; } @@ -18400,7 +18584,7 @@ namespace UIKit { [BaseType (typeof (NSObject))] interface UIPrintFormatter : NSCopying { - [Deprecated (PlatformName.iOS, 10, 0, message:"Use 'PerPageContentInsets' instead.")] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'PerPageContentInsets' instead.")] [Export ("contentInsets")] UIEdgeInsets ContentInsets { get; set; } @@ -18428,16 +18612,16 @@ namespace UIKit { [Export ("removeFromPrintPageRenderer")] void RemoveFromPrintPageRenderer (); - [iOS (8,0)] + [iOS (8, 0)] [Export ("perPageContentInsets")] UIEdgeInsets PerPageContentInsets { get; set; } - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("requiresMainThread")] bool RequiresMainThread { get; } } - [MacCatalyst (14,0)] // the headers lie, not usable until at least Mac Catalyst 14.0 + [MacCatalyst (14, 0)] // the headers lie, not usable until at least Mac Catalyst 14.0 [NoTV, NoWatch] [BaseType (typeof (UIPrintFormatter))] [DisableDefaultCtor] // nonfunctional (and it doesn't show up in the header anyway) @@ -18450,7 +18634,7 @@ namespace UIKit { NativeHandle Constructor ([NullAllowed] string text); } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UIMotionEffect : NSCoding, NSCopying { @@ -18458,29 +18642,29 @@ namespace UIKit { NSDictionary ComputeKeyPathsAndRelativeValues (UIOffset viewerOffset); } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (UIMotionEffect))] interface UIInterpolatingMotionEffect : NSCoding { [DesignatedInitializer] [Export ("initWithKeyPath:type:")] NativeHandle Constructor (string keyPath, UIInterpolatingMotionEffectType type); - + [Export ("keyPath")] - string KeyPath { get; } + string KeyPath { get; } [Export ("type")] - UIInterpolatingMotionEffectType Type { get; } + UIInterpolatingMotionEffectType Type { get; } [NullAllowed] // by default this property is null [Export ("minimumRelativeValue", ArgumentSemantic.Retain)] - NSObject MinimumRelativeValue { get; set; } + NSObject MinimumRelativeValue { get; set; } [NullAllowed] // by default this property is null [Export ("maximumRelativeValue", ArgumentSemantic.Retain)] - NSObject MaximumRelativeValue { get; set; } + NSObject MaximumRelativeValue { get; set; } } - [iOS (7,0), NoWatch] + [iOS (7, 0), NoWatch] [BaseType (typeof (UIMotionEffect))] interface UIMotionEffectGroup { [NullAllowed] // by default this property is null @@ -18488,11 +18672,10 @@ namespace UIKit { UIMotionEffect [] MotionEffects { get; set; } } - [iOS (10,0), TV (10,0), NoWatch] - [BaseType (typeof(NSObject))] + [iOS (10, 0), TV (10, 0), NoWatch] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // designated - interface UISpringTimingParameters : UITimingCurveProvider - { + interface UISpringTimingParameters : UITimingCurveProvider { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -18511,7 +18694,7 @@ namespace UIKit { [Export ("initWithDampingRatio:")] NativeHandle Constructor (nfloat ratio); } - + [NoTV, NoWatch] [Category, BaseType (typeof (NSString))] interface UIStringDrawing { @@ -18592,33 +18775,33 @@ namespace UIKit { [Category, BaseType (typeof (NSString))] interface NSStringDrawing { - [iOS (7,0)] + [iOS (7, 0)] [Export ("sizeWithAttributes:")] CGSize WeakGetSizeUsingAttributes ([NullAllowed] NSDictionary attributes); - [iOS (7,0)] + [iOS (7, 0)] [Wrap ("WeakGetSizeUsingAttributes (This, attributes.GetDictionary ())")] CGSize GetSizeUsingAttributes (UIStringAttributes attributes); - [iOS (7,0)] + [iOS (7, 0)] [Export ("drawAtPoint:withAttributes:")] void WeakDrawString (CGPoint point, [NullAllowed] NSDictionary attributes); - [iOS (7,0)] + [iOS (7, 0)] [Wrap ("WeakDrawString (This, point, attributes.GetDictionary ())")] void DrawString (CGPoint point, UIStringAttributes attributes); - [iOS (7,0)] + [iOS (7, 0)] [Export ("drawInRect:withAttributes:")] void WeakDrawString (CGRect rect, [NullAllowed] NSDictionary attributes); - [iOS (7,0)] + [iOS (7, 0)] [Wrap ("WeakDrawString (This, rect, attributes.GetDictionary ())")] void DrawString (CGRect rect, UIStringAttributes attributes); } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (UIView))] interface UIInputView : NSCoding { [DesignatedInitializer] @@ -18628,17 +18811,17 @@ namespace UIKit { [Export ("inputViewStyle")] UIInputViewStyle InputViewStyle { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("allowsSelfSizing")] bool AllowsSelfSizing { get; set; } } - interface IUITextInputDelegate {} + interface IUITextInputDelegate { } + + interface IUITextDocumentProxy { } - interface IUITextDocumentProxy {} - [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIViewController))] partial interface UIInputViewController : UITextInputDelegate { @@ -18648,13 +18831,13 @@ namespace UIKit { [Export ("inputView", ArgumentSemantic.Retain), NullAllowed] UIInputView InputView { get; set; } - + [Export ("textDocumentProxy"), NullAllowed] IUITextDocumentProxy TextDocumentProxy { get; } - + [Export ("dismissKeyboard")] void DismissKeyboard (); - + [Export ("advanceToNextInputMode")] void AdvanceToNextInputMode (); @@ -18667,42 +18850,41 @@ namespace UIKit { [Export ("primaryLanguage")] string PrimaryLanguage { get; set; } - [iOS (11,1), TV (11,1)] + [iOS (11, 1), TV (11, 1)] [Export ("hasDictationKey")] bool HasDictationKey { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("handleInputModeListFromView:withEvent:")] void HandleInputModeList (UIView fromView, UIEvent withEvent); - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("hasFullAccess")] bool HasFullAccess { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Export ("needsInputModeSwitchKey")] bool NeedsInputModeSwitchKey { get; } } - [NoWatch, TV (13,0), iOS (11,0)] + [NoWatch, TV (13, 0), iOS (11, 0)] [Protocol] - interface UIInteraction - { + interface UIInteraction { [Abstract] [Export ("view", ArgumentSemantic.Weak)] UIView View { get; } - + [Abstract] [Export ("willMoveToView:")] void WillMoveToView ([NullAllowed] UIView view); - + [Abstract] [Export ("didMoveToView:")] void DidMoveToView ([NullAllowed] UIView view); } - + [NoWatch] - [iOS (8,0)] + [iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] partial interface UITextDocumentProxy : UIKeyInput { @@ -18716,16 +18898,16 @@ namespace UIKit { [Abstract] [Export ("adjustTextPositionByCharacterOffset:")] - void AdjustTextPositionByCharacterOffset (nint offset); + void AdjustTextPositionByCharacterOffset (nint offset); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] // Adding required members is a breaking change #endif [Export ("setMarkedText:selectedRange:")] void SetMarkedText (string markedText, NSRange selectedRange); - [iOS (13,0)] + [iOS (13, 0)] #if NET [Abstract] // Adding required members is a breaking change #endif @@ -18746,7 +18928,7 @@ namespace UIKit { #if NET [Abstract] #endif - [iOS (11,0)] + [iOS (11, 0)] [NullAllowed, Export ("selectedText")] string SelectedText { get; } @@ -18755,14 +18937,14 @@ namespace UIKit { #if NET [Abstract] #endif - [iOS (11,0)] + [iOS (11, 0)] [Export ("documentIdentifier", ArgumentSemantic.Copy)] NSUuid DocumentIdentifier { get; } } [NoWatch] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] interface UILayoutGuide : NSCoding #if IOS , UIPopoverPresentationControllerSourceItem @@ -18770,46 +18952,46 @@ namespace UIKit { { [Export ("layoutFrame")] CGRect LayoutFrame { get; } - + [NullAllowed, Export ("owningView", ArgumentSemantic.Weak)] UIView OwningView { get; set; } - + [Export ("identifier")] string Identifier { get; set; } - + [Export ("leadingAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor LeadingAnchor { get; } - + [Export ("trailingAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor TrailingAnchor { get; } - + [Export ("leftAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor LeftAnchor { get; } - + [Export ("rightAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor RightAnchor { get; } - + [Export ("topAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor TopAnchor { get; } - + [Export ("bottomAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor BottomAnchor { get; } - + [Export ("widthAnchor", ArgumentSemantic.Strong)] NSLayoutDimension WidthAnchor { get; } - + [Export ("heightAnchor", ArgumentSemantic.Strong)] NSLayoutDimension HeightAnchor { get; } - + [Export ("centerXAnchor", ArgumentSemantic.Strong)] NSLayoutXAxisAnchor CenterXAnchor { get; } - + [Export ("centerYAnchor", ArgumentSemantic.Strong)] NSLayoutYAxisAnchor CenterYAnchor { get; } } - + [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Protocol] [Model] [BaseType (typeof (NSObject))] @@ -18818,7 +19000,7 @@ namespace UIKit { [Abstract] nfloat Length { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("topAnchor", ArgumentSemantic.Strong)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. @@ -18826,7 +19008,7 @@ namespace UIKit { #endif NSLayoutYAxisAnchor TopAnchor { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("bottomAnchor", ArgumentSemantic.Strong)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. @@ -18834,7 +19016,7 @@ namespace UIKit { #endif NSLayoutYAxisAnchor BottomAnchor { get; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("heightAnchor", ArgumentSemantic.Strong)] #if NET // Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code. @@ -18843,7 +19025,7 @@ namespace UIKit { NSLayoutDimension HeightAnchor { get; } } - interface IUILayoutSupport {} + interface IUILayoutSupport { } // This protocol is supposed to be an aggregate to existing classes, // at the moment there is no API that require a specific UIAccessibilityIdentification @@ -18854,15 +19036,15 @@ namespace UIKit { [Abstract] [NullAllowed] // by default this property is null [Export ("accessibilityIdentifier", ArgumentSemantic.Copy)] - string AccessibilityIdentifier { get; set; } + string AccessibilityIdentifier { get; set; } } - interface IUIAccessibilityIdentification {} + interface IUIAccessibilityIdentification { } [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UserNotifications.UNNotificationSettings' instead.")] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] partial interface UIUserNotificationSettings : NSCoding, NSSecureCoding, NSCopying { @@ -18878,7 +19060,7 @@ namespace UIKit { [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UserNotifications.UNNotificationCategory' instead.")] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] @@ -18894,7 +19076,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UserNotifications.UNNotificationCategory' instead.")] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIUserNotificationCategory))] partial interface UIMutableUserNotificationCategory { @@ -18911,11 +19093,11 @@ namespace UIKit { [Static] #else [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] #endif - partial interface UIUserNotificationAction + partial interface UIUserNotificationAction #if !WATCH : NSCopying, NSMutableCopying, NSSecureCoding #endif @@ -18935,31 +19117,31 @@ namespace UIKit { [NoWatch] [Export ("authenticationRequired", ArgumentSemantic.Assign)] - bool AuthenticationRequired { [Bind ("isAuthenticationRequired")]get; } + bool AuthenticationRequired { [Bind ("isAuthenticationRequired")] get; } [NoWatch] [Export ("destructive", ArgumentSemantic.Assign)] - bool Destructive { [Bind ("isDestructive")]get; } + bool Destructive { [Bind ("isDestructive")] get; } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [Export ("parameters", ArgumentSemantic.Copy)] NSDictionary Parameters { get; [NotImplemented] set; } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [Export ("behavior", ArgumentSemantic.Assign)] - UIUserNotificationActionBehavior Behavior { get; [NotImplemented] set;} + UIUserNotificationActionBehavior Behavior { get; [NotImplemented] set; } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNTextInputNotificationAction.TextInputButtonTitle' instead.")] [Field ("UIUserNotificationTextInputActionButtonTitleKey")] NSString TextInputActionButtonTitleKey { get; } #if !WATCH // note: defined twice, where watchOS is defined it says it's not in iOS, the other one (for iOS 9) says it's not in tvOS - [iOS (9,0)] + [iOS (9, 0)] [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UNTextInputNotificationResponse.UserText' instead.")] [Field ("UIUserNotificationActionResponseTypedTextKey")] NSString ResponseTypedTextKey { get; } @@ -18976,7 +19158,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'UserNotifications.UNNotificationAction' instead.")] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIUserNotificationAction))] partial interface UIMutableUserNotificationAction { @@ -18992,25 +19174,25 @@ namespace UIKit { UIUserNotificationActivationMode ActivationMode { get; set; } [Export ("authenticationRequired", ArgumentSemantic.Assign)] - bool AuthenticationRequired { [Bind ("isAuthenticationRequired")]get; set; } + bool AuthenticationRequired { [Bind ("isAuthenticationRequired")] get; set; } [Export ("destructive", ArgumentSemantic.Assign)] - bool Destructive { [Bind ("isDestructive")]get; set; } + bool Destructive { [Bind ("isDestructive")] get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("behavior", ArgumentSemantic.Assign)] UIUserNotificationActionBehavior Behavior { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("parameters", ArgumentSemantic.Copy), NullAllowed] - NSDictionary Parameters { get; set; } + NSDictionary Parameters { get; set; } } [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Deprecated (PlatformName.iOS, 11, 0, message: "Use 'UIDocumentPickerViewController' instead.")] - [BaseType (typeof (UIViewController), Delegates=new string [] {"Delegate"}, Events=new Type [] {typeof (UIDocumentMenuDelegate)})] + [BaseType (typeof (UIViewController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (UIDocumentMenuDelegate) })] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You cannot initialize a UIDocumentMenuViewController except by the initWithDocumentTypes:inMode: and initWithURL:inMode: initializers. partial interface UIDocumentMenuViewController : NSCoding { @@ -19036,7 +19218,7 @@ namespace UIKit { [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'UIDocumentPickerViewController' instead.")] @@ -19054,8 +19236,8 @@ namespace UIKit { [NoWatch] [NoTV] - [iOS (8,0)] - [BaseType (typeof (UIViewController), Delegates=new string [] {"Delegate"}, Events=new Type [] {typeof (UIDocumentPickerDelegate)})] + [iOS (8, 0)] + [BaseType (typeof (UIViewController), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (UIDocumentPickerDelegate) })] [DisableDefaultCtor] // NSInvalidArgumentException Reason: You cannot initialize a UIDocumentPickerViewController except by the initWithDocumentTypes:inMode: and initWithURL:inMode: initializers partial interface UIDocumentPickerViewController : NSCoding { @@ -19064,14 +19246,14 @@ namespace UIKit { [Export ("initWithDocumentTypes:inMode:")] NativeHandle Constructor (string [] allowedUTIs, UIDocumentPickerMode mode); - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("initForOpeningContentTypes:asCopy:")] [DesignatedInitializer] - NativeHandle Constructor (UTType[] contentTypes, bool asCopy); + NativeHandle Constructor (UTType [] contentTypes, bool asCopy); - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("initForOpeningContentTypes:")] - NativeHandle Constructor (UTType[] contentTypes); + NativeHandle Constructor (UTType [] contentTypes); [Deprecated (PlatformName.iOS, 14, 0)] [Advice ("Use 'UTType' constructor overloads.")] @@ -19080,19 +19262,19 @@ namespace UIKit { NativeHandle Constructor (NSUrl url, UIDocumentPickerMode mode); [Deprecated (PlatformName.iOS, 14, 0)] - [iOS (11,0)] + [iOS (11, 0)] [Export ("initWithURLs:inMode:")] [DesignatedInitializer] - NativeHandle Constructor (NSUrl[] urls, UIDocumentPickerMode mode); + NativeHandle Constructor (NSUrl [] urls, UIDocumentPickerMode mode); - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("initForExportingURLs:asCopy:")] [DesignatedInitializer] - NativeHandle Constructor (NSUrl[] urls, bool asCopy); + NativeHandle Constructor (NSUrl [] urls, bool asCopy); - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("initForExportingURLs:")] - NativeHandle Constructor (NSUrl[] urls); + NativeHandle Constructor (NSUrl [] urls); [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] NSObject WeakDelegate { get; set; } @@ -19105,22 +19287,22 @@ namespace UIKit { [Export ("documentPickerMode", ArgumentSemantic.Assign)] UIDocumentPickerMode DocumentPickerMode { get; } - [iOS (11,0)] + [iOS (11, 0)] [Export ("allowsMultipleSelection")] bool AllowsMultipleSelection { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("shouldShowFileExtensions")] bool ShouldShowFileExtensions { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [NullAllowed, Export ("directoryURL", ArgumentSemantic.Copy)] NSUrl DirectoryUrl { get; set; } } [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] partial interface UIDocumentPickerDelegate { @@ -19131,9 +19313,9 @@ namespace UIKit { [Export ("documentPicker:didPickDocumentAtURL:"), EventArgs ("UIDocumentPicked")] void DidPickDocument (UIDocumentPickerViewController controller, NSUrl url); - [iOS (11,0)] + [iOS (11, 0)] [Export ("documentPicker:didPickDocumentsAtURLs:"), EventArgs ("UIDocumentPickedAtUrls"), EventName ("DidPickDocumentAtUrls")] - void DidPickDocument (UIDocumentPickerViewController controller, NSUrl[] urls); + void DidPickDocument (UIDocumentPickerViewController controller, NSUrl [] urls); [Export ("documentPickerWasCancelled:")] void WasCancelled (UIDocumentPickerViewController controller); @@ -19142,7 +19324,7 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 14, 0, message: "Use enumeration based 'NSFileProviderExtension' instead.")] [NoWatch] [NoTV] - [iOS (8,0)] + [iOS (8, 0)] [BaseType (typeof (UIViewController))] partial interface UIDocumentPickerExtensionViewController { [Export ("initWithNibName:bundle:")] @@ -19206,19 +19388,19 @@ namespace UIKit { [Export ("accessibilityPageContent")] string GetAccessibilityPageContent (); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("accessibilityAttributedContentForLineNumber:")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedContent (nint lineNumber); - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("accessibilityAttributedPageContent")] [return: NullAllowed] NSAttributedString GetAccessibilityAttributedPageContent (); } [NoWatch] - [iOS (7,0)] + [iOS (7, 0)] [Protocol] interface UIGuidedAccessRestrictionDelegate { [Abstract] @@ -19226,7 +19408,8 @@ namespace UIKit { string [] GetGuidedAccessRestrictionIdentifiers { get; } [Abstract] - [Export ("guidedAccessRestrictionWithIdentifier:didChangeState:")][EventArgs ("UIGuidedAccessRestriction")] + [Export ("guidedAccessRestrictionWithIdentifier:didChangeState:")] + [EventArgs ("UIGuidedAccessRestriction")] void GuidedAccessRestrictionChangedState (string restrictionIdentifier, UIGuidedAccessRestrictionState newRestrictionState); [Abstract] @@ -19240,10 +19423,10 @@ namespace UIKit { [DisableDefaultCtor] // [Assert] -init is not a useful initializer for this class. Use one of the designated initializers instead [NoWatch] - [iOS (9,0), NoWatch] // added in Xcode 7.1 / iOS 9.1 SDK + [iOS (9, 0), NoWatch] // added in Xcode 7.1 / iOS 9.1 SDK [BaseType (typeof (UIFocusUpdateContext))] interface UICollectionViewFocusUpdateContext { - + [Export ("previouslyFocusedIndexPath", ArgumentSemantic.Strong)] NSIndexPath PreviouslyFocusedIndexPath { [return: NullAllowed] get; } @@ -19251,11 +19434,10 @@ namespace UIKit { NSIndexPath NextFocusedIndexPath { [return: NullAllowed] get; } } - [iOS (10,0), TV (10,0), NoWatch] - [BaseType (typeof(NSObject))] + [iOS (10, 0), TV (10, 0), NoWatch] + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] - interface UICubicTimingParameters : UITimingCurveProvider - { + interface UICubicTimingParameters : UITimingCurveProvider { [Export ("animationCurve")] UIViewAnimationCurve AnimationCurve { get; } @@ -19274,18 +19456,18 @@ namespace UIKit { NativeHandle Constructor (CGPoint point1, CGPoint point2); } - interface IUIFocusAnimationContext {} + interface IUIFocusAnimationContext { } - [iOS (11,0), NoWatch] + [iOS (11, 0), NoWatch] [Protocol] interface UIFocusAnimationContext { [Abstract] [Export ("duration")] double Duration { get; } } - + [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface UIFocusAnimationCoordinator { [Export ("addCoordinatedAnimations:completion:")] @@ -19293,18 +19475,18 @@ namespace UIKit { void AddCoordinatedAnimations ([NullAllowed] Action animations, [NullAllowed] Action completion); [Async] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("addCoordinatedFocusingAnimations:completion:")] void AddCoordinatedFocusingAnimations ([NullAllowed] Action animations, [NullAllowed] Action completion); [Async] - [TV (11,0), iOS (11,0)] + [TV (11, 0), iOS (11, 0)] [Export ("addCoordinatedUnfocusingAnimations:completion:")] void AddCoordinatedUnfocusingAnimations ([NullAllowed] Action animations, [NullAllowed] Action completion); } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UILayoutGuide))] interface UIFocusGuide { [Export ("enabled")] @@ -19315,16 +19497,15 @@ namespace UIKit { [NullAllowed, Export ("preferredFocusedView", ArgumentSemantic.Weak)] UIView PreferredFocusedView { get; set; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("preferredFocusEnvironments", ArgumentSemantic.Copy), NullAllowed] // null_resettable - IUIFocusEnvironment[] PreferredFocusEnvironments { get; set; } + IUIFocusEnvironment [] PreferredFocusEnvironments { get; set; } } - [TV (12,0), iOS (12,0), NoWatch] - [BaseType (typeof(NSObject))] + [TV (12, 0), iOS (12, 0), NoWatch] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIFocusMovementHint : NSCopying - { + interface UIFocusMovementHint : NSCopying { [Export ("movementDirection")] CGVector MovementDirection { get; } @@ -19341,13 +19522,12 @@ namespace UIKit { CATransform3D InteractionTransform { get; } } - interface IUIFocusItem {} + interface IUIFocusItem { } - [iOS (10,0), NoWatch] + [iOS (10, 0), NoWatch] [NoMac] [Protocol] - interface UIFocusItem : UIFocusEnvironment - { + interface UIFocusItem : UIFocusEnvironment { [Abstract] [Export ("canBecomeFocused")] bool CanBecomeFocused { get; } @@ -19361,15 +19541,15 @@ namespace UIKit { [Export ("frame")] CGRect Frame { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("focusEffect", ArgumentSemantic.Copy)] UIFocusEffect FocusEffect { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("focusGroupPriority")] UIFocusGroupPriority FocusGroupPriority { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("isTransparentFocusItem")] bool IsTransparentFocusItem { get; } @@ -19377,11 +19557,11 @@ namespace UIKit { [Export ("didHintFocusMovement:")] void DidHintFocusMovement (UIFocusMovementHint hint); } - + [DisableDefaultCtor] // [Assert] -init is not a useful initializer for this class. Use one of the designated initializers instead [NoWatch] - [iOS (9,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [BaseType (typeof (NSObject))] interface UIFocusUpdateContext { [NullAllowed, Export ("previouslyFocusedView", ArgumentSemantic.Weak)] UIView PreviouslyFocusedView { get; } @@ -19392,36 +19572,36 @@ namespace UIKit { [Export ("focusHeading", ArgumentSemantic.Assign)] UIFocusHeading FocusHeading { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("previouslyFocusedItem", ArgumentSemantic.Weak)] IUIFocusItem PreviouslyFocusedItem { get; } - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [NullAllowed, Export ("nextFocusedItem", ArgumentSemantic.Weak)] IUIFocusItem NextFocusedItem { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Notification] [Field ("UIFocusDidUpdateNotification")] NSString DidUpdateNotification { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Notification] [Field ("UIFocusMovementDidFailNotification")] NSString MovementDidFailNotification { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Field ("UIFocusUpdateContextKey")] NSString Key { get; } - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Field ("UIFocusUpdateAnimationCoordinatorKey")] NSString AnimationCoordinatorKey { get; } } [NoWatch] - [iOS (11,0), TV (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0), TV (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIFocusSystem { [Static] @@ -19436,36 +19616,36 @@ namespace UIKit { // The 2 values associated with the 'UIFocusSoundIdentifier' smart enum cannot be used. // See https://developer.apple.com/documentation/uikit/uifocussystem/2887479-register // Do not specify one of the UIKit sound identifiers (such as default); doing so will cause an immediate assertion failure and crash your app. - + [TV (12, 0), iOS (12, 0)] [NullAllowed, Export ("focusedItem", ArgumentSemantic.Weak)] IUIFocusItem FocusedItem { get; } - [TV (12,0), iOS (12,0)] + [TV (12, 0), iOS (12, 0)] [Static] [Export ("focusSystemForEnvironment:")] [return: NullAllowed] UIFocusSystem Create (IUIFocusEnvironment environment); - [TV (12,0), iOS (12,0)] + [TV (12, 0), iOS (12, 0)] [Export ("requestFocusUpdateToEnvironment:")] void RequestFocusUpdate (IUIFocusEnvironment environment); - [TV (12,0), iOS (12,0)] + [TV (12, 0), iOS (12, 0)] [Export ("updateFocusIfNeeded")] void UpdateFocusIfNeeded (); } - interface IUIFocusDebuggerOutput {} + interface IUIFocusDebuggerOutput { } [NoWatch] - [iOS (11,0), TV (11,0)] + [iOS (11, 0), TV (11, 0)] [Protocol] - interface UIFocusDebuggerOutput {} + interface UIFocusDebuggerOutput { } [NoWatch] - [iOS (11,0), TV (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0), TV (11, 0)] + [BaseType (typeof (NSObject))] interface UIFocusDebugger { [Static] [Export ("help")] @@ -19485,24 +19665,24 @@ namespace UIKit { // Removed from headers in Xcode 14 [Wrap ("true ? throw new InvalidOperationException (Constants.ApiRemovedGeneral) : false", IsVirtual = true)] - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("checkFocusGroupTreeForEnvironment:")] string CheckFocusGroupTree (IUIFocusEnvironment environment); - [TV (16,0), NoWatch, iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("preferredFocusEnvironmentsForEnvironment:")] IUIFocusDebuggerOutput GetPreferredFocusEnvironments (IUIFocusEnvironment environment); - [TV (16,0), NoWatch, iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("focusGroupsForEnvironment:")] IUIFocusDebuggerOutput GetFocusGroups (IUIFocusEnvironment environment); } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] interface UIPress { [Export ("timestamp")] @@ -19521,19 +19701,19 @@ namespace UIKit { UIResponder Responder { get; } [NullAllowed, Export ("gestureRecognizers", ArgumentSemantic.Copy)] - UIGestureRecognizer[] GestureRecognizers { get; } + UIGestureRecognizer [] GestureRecognizers { get; } [Export ("force")] nfloat Force { get; } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), TV (13,4)] + [iOS (13, 4), TV (13, 4)] [NullAllowed, Export ("key")] UIKey Key { get; } } [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UIEvent))] interface UIPressesEvent { [Export ("allPresses")] @@ -19543,8 +19723,8 @@ namespace UIKit { NSSet GetPresses (UIGestureRecognizer gesture); } - [NoWatch, NoTV, iOS (10,0)] - [BaseType (typeof(NSObject), Delegates=new string [] {"Delegate"}, Events=new Type [] { typeof (UIPreviewInteractionDelegate)})] + [NoWatch, NoTV, iOS (10, 0)] + [BaseType (typeof (NSObject), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (UIPreviewInteractionDelegate) })] [DisableDefaultCtor] interface UIPreviewInteraction { @@ -19569,7 +19749,7 @@ namespace UIKit { [NoWatch, NoTV, iOS (10, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UIPreviewInteractionDelegate { [Abstract] @@ -19582,19 +19762,19 @@ namespace UIKit { void DidCancel (UIPreviewInteraction previewInteraction); [Export ("previewInteractionShouldBegin:")] - [DelegateName ("Func"), DefaultValue(true)] + [DelegateName ("Func"), DefaultValue (true)] bool ShouldBegin (UIPreviewInteraction previewInteraction); [Export ("previewInteraction:didUpdateCommitTransition:ended:")] [EventArgs ("NSPreviewInteractionPreviewUpdate")] void DidUpdateCommit (UIPreviewInteraction previewInteraction, nfloat transitionProgress, bool ended); } - + [NoWatch] - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (UIFocusUpdateContext))] interface UITableViewFocusUpdateContext { - + [Export ("previouslyFocusedIndexPath", ArgumentSemantic.Strong)] NSIndexPath PreviouslyFocusedIndexPath { [return: NullAllowed] get; } @@ -19603,7 +19783,7 @@ namespace UIKit { } [NoWatch, NoiOS] - [TV (11,0)] + [TV (11, 0)] public enum UIFocusSoundIdentifier { [Field ("UIFocusSoundIdentifierNone")] @@ -19613,18 +19793,18 @@ namespace UIKit { Default, } - interface IUIFocusEnvironment {} + interface IUIFocusEnvironment { } [NoWatch] [NoMac] - [iOS (9,0)] + [iOS (9, 0)] [Protocol] interface UIFocusEnvironment { #if !NET [Abstract] #endif [NullAllowed, Export ("preferredFocusedView", ArgumentSemantic.Weak)] - [iOS (9,0)] // duplicated so it's inlined properly + [iOS (9, 0)] // duplicated so it's inlined properly [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'PreferredFocusEnvironments' instead.")] UIView PreferredFocusedView { get; } @@ -19653,10 +19833,10 @@ namespace UIKit { #endif [iOS (10, 0)] [Export ("preferredFocusEnvironments", ArgumentSemantic.Copy)] - IUIFocusEnvironment[] PreferredFocusEnvironments { get; } + IUIFocusEnvironment [] PreferredFocusEnvironments { get; } [NoiOS] - [TV (11,0)] + [TV (11, 0)] [Export ("soundIdentifierForFocusUpdateInContext:")] [return: NullAllowed] NSString GetSoundIdentifier (UIFocusUpdateContext context); @@ -19677,16 +19857,15 @@ namespace UIKit { [NullAllowed, Export ("focusItemContainer")] IUIFocusItemContainer FocusItemContainer { get; } - [NoTV, iOS (14,0)] + [NoTV, iOS (14, 0)] [Export ("focusGroupIdentifier")] string FocusGroupIdentifier { get; } } - [TV (12,0), iOS (12,0), NoWatch] - [BaseType (typeof(NSObject))] + [TV (12, 0), iOS (12, 0), NoWatch] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UITextInputPasswordRules : NSSecureCoding, NSCopying - { + interface UITextInputPasswordRules : NSSecureCoding, NSCopying { [Export ("passwordRulesDescriptor")] string PasswordRulesDescriptor { get; } @@ -19695,8 +19874,10 @@ namespace UIKit { UITextInputPasswordRules Create (string passwordRulesDescriptor); } - [NoWatch][NoTV] - [Static][Internal] + [NoWatch] + [NoTV] + [Static] + [Internal] interface UITextAttributesConstants { [Field ("UITextAttributeFont")] NSString Font { get; } @@ -19711,106 +19892,102 @@ namespace UIKit { NSString TextShadowOffset { get; } } - interface IUIInteraction {} - interface IUIDropSession {} - interface IUIDragDropSession {} - interface IUIDragAnimating {} - interface IUIDragSession {} - interface IUIDragInteractionDelegate {} - interface IUIDropInteractionDelegate {} - interface IUICollectionViewDragDelegate {} - interface IUICollectionViewDropDelegate {} - interface IUICollectionViewDropCoordinator {} - interface IUICollectionViewDropItem {} - interface IUICollectionViewDropPlaceholderContext {} - interface IUITableViewDragDelegate {} - interface IUITableViewDropDelegate {} - interface IUITableViewDropCoordinator {} - interface IUITableViewDropItem {} - interface IUITableViewDropPlaceholderContext {} - interface IUITextDragDelegate {} - interface IUITextDraggable {} - interface IUITextDragRequest {} - interface IUITextDroppable {} - interface IUITextDropDelegate {} - interface IUITextDropRequest {} + interface IUIInteraction { } + interface IUIDropSession { } + interface IUIDragDropSession { } + interface IUIDragAnimating { } + interface IUIDragSession { } + interface IUIDragInteractionDelegate { } + interface IUIDropInteractionDelegate { } + interface IUICollectionViewDragDelegate { } + interface IUICollectionViewDropDelegate { } + interface IUICollectionViewDropCoordinator { } + interface IUICollectionViewDropItem { } + interface IUICollectionViewDropPlaceholderContext { } + interface IUITableViewDragDelegate { } + interface IUITableViewDropDelegate { } + interface IUITableViewDropCoordinator { } + interface IUITableViewDropItem { } + interface IUITableViewDropPlaceholderContext { } + interface IUITextDragDelegate { } + interface IUITextDraggable { } + interface IUITextDragRequest { } + interface IUITextDroppable { } + interface IUITextDropDelegate { } + interface IUITextDropRequest { } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Protocol] - interface UIDragAnimating - { + interface UIDragAnimating { [Abstract] [Export ("addAnimations:")] void AddAnimations (Action animations); - + [Abstract] [Export ("addCompletion:")] void AddCompletion (Action completion); } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [Protocol] - interface UIDragDropSession - { + interface UIDragDropSession { [Abstract] [Export ("items")] - UIDragItem[] Items { get; } - + UIDragItem [] Items { get; } + [Abstract] [Export ("locationInView:")] CGPoint LocationInView ([NullAllowed] UIView view); - + [Abstract] [Export ("allowsMoveOperation")] bool AllowsMoveOperation { get; } - + [Abstract] [Export ("restrictedToDraggingApplication")] bool RestrictedToDraggingApplication { [Bind ("isRestrictedToDraggingApplication")] get; } - + [Abstract] [Export ("hasItemsConformingToTypeIdentifiers:")] - bool HasConformingItems (string[] typeIdentifiers); - + bool HasConformingItems (string [] typeIdentifiers); + [Abstract] [Export ("canLoadObjectsOfClass:")] bool CanLoadObjects (Class itemProviderReadingClass); } - - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] + + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIDragItem - { + interface UIDragItem { [Export ("initWithItemProvider:")] [DesignatedInitializer] NativeHandle Constructor (NSItemProvider itemProvider); - + [Export ("itemProvider")] NSItemProvider ItemProvider { get; } - + [NullAllowed, Export ("localObject", ArgumentSemantic.Strong)] NSObject LocalObject { get; set; } - + [NullAllowed, Export ("previewProvider", ArgumentSemantic.Copy)] Func PreviewProvider { get; set; } } - - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] + + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIDragPreview : NSCopying - { + interface UIDragPreview : NSCopying { [Export ("initWithView:parameters:")] [DesignatedInitializer] NativeHandle Constructor (UIView view, UIDragPreviewParameters parameters); - + [Export ("initWithView:")] NativeHandle Constructor (UIView view); - + [Export ("view")] UIView View { get; } - + [Export ("parameters", ArgumentSemantic.Copy)] UIDragPreviewParameters Parameters { get; } @@ -19824,49 +20001,47 @@ namespace UIKit { [Export ("previewForURL:title:")] UIDragPreview GetPreview (NSUrl url, [NullAllowed] string title); } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [BaseType (typeof (UIPreviewParameters))] [DesignatedDefaultCtor] interface UIDragPreviewParameters : NSCopying { [Export ("initWithTextLineRects:")] - NativeHandle Constructor (NSValue[] textLineRects); + NativeHandle Constructor (NSValue [] textLineRects); // Now they come from the base class - + // [NullAllowed, Export ("visiblePath", ArgumentSemantic.Copy)] // UIBezierPath VisiblePath { get; set; } - + // [Export ("backgroundColor", ArgumentSemantic.Copy)] // UIColor BackgroundColor { get; set; } } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [BaseType (typeof (UIPreviewTarget))] [DisableDefaultCtor] - interface UIDragPreviewTarget : NSCopying - { + interface UIDragPreviewTarget : NSCopying { [Export ("initWithContainer:center:transform:")] [DesignatedInitializer] NativeHandle Constructor (UIView container, CGPoint center, CGAffineTransform transform); - + [Export ("initWithContainer:center:")] NativeHandle Constructor (UIView container, CGPoint center); } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [Protocol] - interface UIDragSession : UIDragDropSession - { + interface UIDragSession : UIDragDropSession { [Abstract] [NullAllowed, Export ("localContext", ArgumentSemantic.Strong)] NSObject LocalContext { get; set; } } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIDragInteraction : UIInteraction { [Export ("initWithDelegate:")] @@ -19888,13 +20063,13 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UIDragInteractionDelegate { [Abstract] [Export ("dragInteraction:itemsForBeginningSession:")] - UIDragItem[] GetItemsForBeginningSession (UIDragInteraction interaction, IUIDragSession session); + UIDragItem [] GetItemsForBeginningSession (UIDragInteraction interaction, IUIDragSession session); [Export ("dragInteraction:previewForLiftingItem:session:")] [return: NullAllowed] @@ -19928,14 +20103,14 @@ namespace UIKit { void SessionDidTransferItems (UIDragInteraction interaction, IUIDragSession session); [Export ("dragInteraction:itemsForAddingToSession:withTouchAtPoint:")] - UIDragItem[] GetItemsForAddingToSession (UIDragInteraction interaction, IUIDragSession session, CGPoint point); + UIDragItem [] GetItemsForAddingToSession (UIDragInteraction interaction, IUIDragSession session, CGPoint point); [Export ("dragInteraction:sessionForAddingItems:withTouchAtPoint:")] [return: NullAllowed] - IUIDragSession GetSessionForAddingItems (UIDragInteraction interaction, IUIDragSession[] sessions, CGPoint point); + IUIDragSession GetSessionForAddingItems (UIDragInteraction interaction, IUIDragSession [] sessions, CGPoint point); [Export ("dragInteraction:session:willAddItems:forInteraction:")] - void WillAddItems (UIDragInteraction interaction, IUIDragSession session, UIDragItem[] items, UIDragInteraction addingInteraction); + void WillAddItems (UIDragInteraction interaction, IUIDragSession session, UIDragItem [] items, UIDragInteraction addingInteraction); [Export ("dragInteraction:previewForCancellingItem:withDefault:")] [return: NullAllowed] @@ -19945,120 +20120,116 @@ namespace UIKit { void WillAnimateCancel (UIDragInteraction interaction, UIDragItem item, IUIDragAnimating animator); } - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] // If Apple adds a delegate setter: Delegates=new string [] {"Delegate"}, Events=new Type [] { typeof (UIDropInteractionDelegate)})] + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] // If Apple adds a delegate setter: Delegates=new string [] {"Delegate"}, Events=new Type [] { typeof (UIDropInteractionDelegate)})] [DisableDefaultCtor] - interface UIDropInteraction : UIInteraction - { + interface UIDropInteraction : UIInteraction { [Export ("initWithDelegate:")] [DesignatedInitializer] NativeHandle Constructor (IUIDropInteractionDelegate @delegate); - + [Export ("delegate", ArgumentSemantic.Weak)] [NullAllowed] IUIDropInteractionDelegate Delegate { get; } - + [Export ("allowsSimultaneousDropSessions")] bool AllowsSimultaneousDropSessions { get; set; } } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] - interface UIDropInteractionDelegate - { + [BaseType (typeof (NSObject))] + interface UIDropInteractionDelegate { [Export ("dropInteraction:canHandleSession:"), DelegateName ("Func"), NoDefaultValue] bool CanHandleSession (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:sessionDidEnter:"), EventArgs ("UIDropInteraction")] void SessionDidEnter (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:sessionDidUpdate:"), DelegateName ("Func"), NoDefaultValue] UIDropProposal SessionDidUpdate (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:sessionDidExit:"), EventArgs ("UIDropInteraction")] void SessionDidExit (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:performDrop:"), EventArgs ("UIDropInteraction")] void PerformDrop (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:concludeDrop:"), EventArgs ("UIDropInteraction")] void ConcludeDrop (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:sessionDidEnd:"), EventArgs ("UIDropInteraction")] void SessionDidEnd (UIDropInteraction interaction, IUIDropSession session); - + [Export ("dropInteraction:previewForDroppingItem:withDefault:")] - [return: NullAllowed][DelegateName("UIDropInteractionPreviewForItem"), NoDefaultValue] + [return: NullAllowed] + [DelegateName ("UIDropInteractionPreviewForItem"), NoDefaultValue] UITargetedDragPreview GetPreviewForDroppingItem (UIDropInteraction interaction, UIDragItem item, UITargetedDragPreview defaultPreview); - - [Export ("dropInteraction:item:willAnimateDropWithAnimator:"), EventArgs("UIDropInteractionAnimation")] + + [Export ("dropInteraction:item:willAnimateDropWithAnimator:"), EventArgs ("UIDropInteractionAnimation")] void WillAnimateDrop (UIDropInteraction interaction, UIDragItem item, IUIDragAnimating animator); } - - [NoWatch, NoTV, iOS (11,0)] - [BaseType (typeof(NSObject))] + + [NoWatch, NoTV, iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIDropProposal : NSCopying - { + interface UIDropProposal : NSCopying { [Export ("initWithDropOperation:")] [DesignatedInitializer] NativeHandle Constructor (UIDropOperation operation); - + [Export ("operation")] UIDropOperation Operation { get; } - + [Export ("precise")] bool Precise { [Bind ("isPrecise")] get; set; } - + [Export ("prefersFullSizePreview")] bool PrefersFullSizePreview { get; set; } } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Protocol] - interface UIDropSession : UIDragDropSession, NSProgressReporting - { + interface UIDropSession : UIDragDropSession, NSProgressReporting { [Abstract] [NullAllowed, Export ("localDragSession")] IUIDragSession LocalDragSession { get; } - + [Abstract] [Export ("progressIndicatorStyle", ArgumentSemantic.Assign)] UIDropSessionProgressIndicatorStyle ProgressIndicatorStyle { get; set; } - + [Abstract] [Export ("loadObjectsOfClass:completion:")] NSProgress LoadObjects (Class itemProviderReadingClass, Action completion); } - - [NoWatch, NoTV, iOS (11,0)] + + [NoWatch, NoTV, iOS (11, 0)] [BaseType (typeof (UITargetedPreview))] [DisableDefaultCtor] - interface UITargetedDragPreview : NSCopying - { + interface UITargetedDragPreview : NSCopying { [Export ("initWithView:parameters:target:")] [DesignatedInitializer] NativeHandle Constructor (UIView view, UIDragPreviewParameters parameters, UIDragPreviewTarget target); - + [Export ("initWithView:parameters:")] NativeHandle Constructor (UIView view, UIDragPreviewParameters parameters); - + [Export ("initWithView:")] NativeHandle Constructor (UIView view); - + [Export ("target")] UIDragPreviewTarget Target { get; } - + [Export ("view")] UIView View { get; } - + [Export ("parameters", ArgumentSemantic.Copy)] UIDragPreviewParameters Parameters { get; } - + [Export ("size")] CGSize Size { get; } - + [Export ("retargetedPreviewWithTarget:")] UITargetedDragPreview GetRetargetedPreview (UIDragPreviewTarget newTarget); @@ -20074,16 +20245,16 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UICollectionViewDragDelegate { [Abstract] [Export ("collectionView:itemsForBeginningDragSession:atIndexPath:")] - UIDragItem[] GetItemsForBeginningDragSession (UICollectionView collectionView, IUIDragSession session, NSIndexPath indexPath); + UIDragItem [] GetItemsForBeginningDragSession (UICollectionView collectionView, IUIDragSession session, NSIndexPath indexPath); [Export ("collectionView:itemsForAddingToDragSession:atIndexPath:point:")] - UIDragItem[] GetItemsForAddingToDragSession (UICollectionView collectionView, IUIDragSession session, NSIndexPath indexPath, CGPoint point); + UIDragItem [] GetItemsForAddingToDragSession (UICollectionView collectionView, IUIDragSession session, NSIndexPath indexPath, CGPoint point); [Export ("collectionView:dragPreviewParametersForItemAtIndexPath:")] [return: NullAllowed] @@ -20103,9 +20274,9 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UICollectionViewDropDelegate { [Abstract] [Export ("collectionView:performDropWithCoordinator:")] @@ -20132,8 +20303,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(UIDropProposal))] + [iOS (11, 0)] + [BaseType (typeof (UIDropProposal))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: Not implemented interface UICollectionViewDropProposal { @@ -20150,12 +20321,12 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UICollectionViewDropCoordinator { [Abstract] [Export ("items")] - IUICollectionViewDropItem[] Items { get; } + IUICollectionViewDropItem [] Items { get; } [Abstract] [NullAllowed, Export ("destinationIndexPath")] @@ -20187,8 +20358,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICollectionViewPlaceholder { [Export ("initWithInsertionIndexPath:reuseIdentifier:")] @@ -20200,8 +20371,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(UICollectionViewPlaceholder))] + [iOS (11, 0)] + [BaseType (typeof (UICollectionViewPlaceholder))] interface UICollectionViewDropPlaceholder { // inlined [Export ("initWithInsertionIndexPath:reuseIdentifier:")] @@ -20212,7 +20383,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UICollectionViewDropItem { [Abstract] @@ -20229,7 +20400,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UICollectionViewDropPlaceholderContext : UIDragAnimating { [Abstract] @@ -20250,16 +20421,16 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UITableViewDragDelegate { [Abstract] [Export ("tableView:itemsForBeginningDragSession:atIndexPath:")] - UIDragItem[] GetItemsForBeginningDragSession (UITableView tableView, IUIDragSession session, NSIndexPath indexPath); + UIDragItem [] GetItemsForBeginningDragSession (UITableView tableView, IUIDragSession session, NSIndexPath indexPath); [Export ("tableView:itemsForAddingToDragSession:atIndexPath:point:")] - UIDragItem[] GetItemsForAddingToDragSession (UITableView tableView, IUIDragSession session, NSIndexPath indexPath, CGPoint point); + UIDragItem [] GetItemsForAddingToDragSession (UITableView tableView, IUIDragSession session, NSIndexPath indexPath, CGPoint point); [Export ("tableView:dragPreviewParametersForRowAtIndexPath:")] [return: NullAllowed] @@ -20279,9 +20450,9 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UITableViewDropDelegate { [Abstract] [Export ("tableView:performDropWithCoordinator:")] @@ -20308,8 +20479,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(UIDropProposal))] + [iOS (11, 0)] + [BaseType (typeof (UIDropProposal))] [DisableDefaultCtor] // NSInternalInconsistencyException Reason: Not implemented interface UITableViewDropProposal { @@ -20326,12 +20497,12 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITableViewDropCoordinator { [Abstract] [Export ("items")] - IUITableViewDropItem[] Items { get; } + IUITableViewDropItem [] Items { get; } [Abstract] [NullAllowed, Export ("destinationIndexPath")] @@ -20363,8 +20534,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UITableViewPlaceholder { [Export ("initWithInsertionIndexPath:reuseIdentifier:rowHeight:")] @@ -20376,8 +20547,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(UITableViewPlaceholder))] + [iOS (11, 0)] + [BaseType (typeof (UITableViewPlaceholder))] interface UITableViewDropPlaceholder { // inlined [Export ("initWithInsertionIndexPath:reuseIdentifier:rowHeight:")] @@ -20387,7 +20558,7 @@ namespace UIKit { Func PreviewParametersProvider { get; set; } } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Protocol] interface UITableViewDropItem { [Abstract] @@ -20403,7 +20574,7 @@ namespace UIKit { CGSize PreviewSize { get; } } - [NoWatch, NoTV, iOS (11,0)] + [NoWatch, NoTV, iOS (11, 0)] [Protocol] interface UITableViewDropPlaceholderContext : UIDragAnimating { [Abstract] @@ -20420,8 +20591,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UITextDragPreviewRenderer { [Export ("initWithLayoutManager:range:")] @@ -20451,7 +20622,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextDraggable : UITextInput { [Abstract] @@ -20472,12 +20643,12 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UITextDragDelegate { [Export ("textDraggableView:itemsForDrag:")] - UIDragItem[] GetItemsForDrag (IUITextDraggable textDraggableView, IUITextDragRequest dragRequest); + UIDragItem [] GetItemsForDrag (IUITextDraggable textDraggableView, IUITextDragRequest dragRequest); [Export ("textDraggableView:dragPreviewForLiftingItem:session:")] [return: NullAllowed] @@ -20494,7 +20665,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextDragRequest { [Abstract] @@ -20503,11 +20674,11 @@ namespace UIKit { [Abstract] [Export ("suggestedItems")] - UIDragItem[] SuggestedItems { get; } + UIDragItem [] SuggestedItems { get; } [Abstract] [Export ("existingItems")] - UIDragItem[] ExistingItems { get; } + UIDragItem [] ExistingItems { get; } [Abstract] [Export ("selected")] @@ -20519,8 +20690,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(UIDropProposal))] + [iOS (11, 0)] + [BaseType (typeof (UIDropProposal))] [DisableDefaultCtor] interface UITextDropProposal : NSCopying { // inlined @@ -20541,7 +20712,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextDroppable : UITextInput, UITextPasteConfigurationSupporting { [Abstract] @@ -20558,9 +20729,9 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UITextDropDelegate { [Export ("textDroppableView:willBecomeEditableForDrop:")] UITextDropEditability WillBecomeEditable (IUITextDroppable textDroppableView, IUITextDropRequest drop); @@ -20589,7 +20760,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextDropRequest { [Abstract] @@ -20609,7 +20780,7 @@ namespace UIKit { IUIDropSession DropSession { get; } } - [NoWatch, TV (11,0), iOS (11,0)] + [NoWatch, TV (11, 0), iOS (11, 0)] [Protocol] interface UIDataSourceTranslating { [Abstract] @@ -20636,8 +20807,8 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISpringLoadedInteraction : UIInteraction { [Export ("initWithInteractionBehavior:interactionEffect:activationHandler:")] @@ -20654,10 +20825,10 @@ namespace UIKit { IUISpringLoadedInteractionEffect InteractionEffect { get; } } - interface IUISpringLoadedInteractionBehavior {} + interface IUISpringLoadedInteractionBehavior { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UISpringLoadedInteractionBehavior { [Abstract] @@ -20668,10 +20839,10 @@ namespace UIKit { void InteractionDidFinish (UISpringLoadedInteraction interaction); } - interface IUISpringLoadedInteractionEffect {} + interface IUISpringLoadedInteractionEffect { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UISpringLoadedInteractionEffect { [Abstract] @@ -20679,10 +20850,10 @@ namespace UIKit { void DidChange (UISpringLoadedInteraction interaction, IUISpringLoadedInteractionContext context); } - interface IUISpringLoadedInteractionContext {} + interface IUISpringLoadedInteractionContext { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UISpringLoadedInteractionContext { [Abstract] @@ -20703,7 +20874,7 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UISpringLoadedInteractionSupporting { [Abstract] @@ -20714,16 +20885,16 @@ namespace UIKit { // https://bugzilla.xamarin.com/show_bug.cgi?id=58282, we should be able to write one delegate with a 'Action'. See original signature: // typedef void (^UIContextualActionHandler)(UIContextualAction * _Nonnull, __kindof UIView * _Nonnull, void (^ _Nonnull)(BOOL)); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] delegate void UIContextualActionHandler (UIContextualAction action, UIView sourceView, [BlockCallback] UIContextualActionCompletionHandler completionHandler); [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] delegate void UIContextualActionCompletionHandler (bool finished); [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIContextualAction { [Static] @@ -20747,25 +20918,25 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISwipeActionsConfiguration { [Static] [Export ("configurationWithActions:")] - UISwipeActionsConfiguration FromActions (UIContextualAction[] actions); + UISwipeActionsConfiguration FromActions (UIContextualAction [] actions); [Export ("actions", ArgumentSemantic.Copy)] - UIContextualAction[] Actions { get; } + UIContextualAction [] Actions { get; } [Export ("performsFirstActionWithFullSwipe")] bool PerformsFirstActionWithFullSwipe { get; set; } } - interface IUITextPasteConfigurationSupporting {} + interface IUITextPasteConfigurationSupporting { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextPasteConfigurationSupporting : UIPasteConfigurationSupporting { [Abstract] @@ -20773,18 +20944,18 @@ namespace UIKit { IUITextPasteDelegate PasteDelegate { get; set; } } - interface IUITextPasteDelegate {} + interface IUITextPasteDelegate { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UITextPasteDelegate { [Export ("textPasteConfigurationSupporting:transformPasteItem:")] void TransformPasteItem (IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, IUITextPasteItem item); [Export ("textPasteConfigurationSupporting:combineItemAttributedStrings:forRange:")] - NSAttributedString CombineItemAttributedStrings (IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, NSAttributedString[] itemStrings, UITextRange textRange); + NSAttributedString CombineItemAttributedStrings (IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, NSAttributedString [] itemStrings, UITextRange textRange); [Export ("textPasteConfigurationSupporting:performPasteOfAttributedString:toRange:")] UITextRange PerformPaste (IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, NSAttributedString attributedString, UITextRange textRange); @@ -20793,10 +20964,10 @@ namespace UIKit { bool ShouldAnimatePaste (IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, NSAttributedString attributedString, UITextRange textRange); } - interface IUITextPasteItem {} + interface IUITextPasteItem { } [NoWatch, NoTV] - [iOS (11,0)] + [iOS (11, 0)] [Protocol] interface UITextPasteItem { [Abstract] @@ -20833,18 +21004,18 @@ namespace UIKit { } [NoWatch, NoTV] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UIPasteConfiguration : NSSecureCoding, NSCopying { [Export ("acceptableTypeIdentifiers", ArgumentSemantic.Copy)] - string[] AcceptableTypeIdentifiers { get; set; } + string [] AcceptableTypeIdentifiers { get; set; } [Export ("initWithAcceptableTypeIdentifiers:")] - NativeHandle Constructor (string[] acceptableTypeIdentifiers); + NativeHandle Constructor (string [] acceptableTypeIdentifiers); [Export ("addAcceptableTypeIdentifiers:")] - void AddAcceptableTypeIdentifiers (string[] acceptableTypeIdentifiers); + void AddAcceptableTypeIdentifiers (string [] acceptableTypeIdentifiers); [Export ("initWithTypeIdentifiersForAcceptingClass:")] NativeHandle Constructor (Class itemProviderReadingClass); @@ -20859,10 +21030,10 @@ namespace UIKit { void AddTypeIdentifiers (Type itemProviderReadingType); } - interface IUIPasteConfigurationSupporting {} + interface IUIPasteConfigurationSupporting { } [NoWatch, NoTV] - [iOS (11,0), MacCatalyst (16,0)] + [iOS (11, 0), MacCatalyst (16, 0)] [Protocol] interface UIPasteConfigurationSupporting { [Abstract] @@ -20870,22 +21041,22 @@ namespace UIKit { UIPasteConfiguration PasteConfiguration { get; set; } [Export ("pasteItemProviders:")] - void Paste (NSItemProvider[] itemProviders); + void Paste (NSItemProvider [] itemProviders); [Export ("canPasteItemProviders:")] - bool CanPaste (NSItemProvider[] itemProviders); + bool CanPaste (NSItemProvider [] itemProviders); } [NoTV, NoWatch] - [iOS (11,0)] - [BaseType (typeof(UIViewController))] + [iOS (11, 0)] + [BaseType (typeof (UIViewController))] interface UIDocumentBrowserViewController : NSCoding { [Deprecated (PlatformName.iOS, 14, 0)] [Export ("initForOpeningFilesWithContentTypes:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] string[] allowedContentTypes); + NativeHandle Constructor ([NullAllowed] string [] allowedContentTypes); - [iOS (14,0)] + [iOS (14, 0)] [Export ("initForOpeningContentTypes:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] UTType [] contentTypes); @@ -20901,26 +21072,26 @@ namespace UIKit { [Deprecated (PlatformName.iOS, 14, 0, message: "No longer supported.")] [Export ("allowedContentTypes", ArgumentSemantic.Copy)] - string[] AllowedContentTypes { get; } + string [] AllowedContentTypes { get; } [Deprecated (PlatformName.iOS, 14, 0)] - [iOS (13,0)] + [iOS (13, 0)] [Export ("recentDocumentsContentTypes", ArgumentSemantic.Copy)] string [] RecentDocumentsContentTypes { get; } - [iOS (14,0)] + [iOS (14, 0)] [Export ("contentTypesForRecentDocuments", ArgumentSemantic.Copy)] UTType [] ContentTypesForRecentDocuments { get; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("shouldShowFileExtensions")] bool ShouldShowFileExtensions { get; set; } [Export ("additionalLeadingNavigationBarButtonItems", ArgumentSemantic.Strong)] - UIBarButtonItem[] AdditionalLeadingNavigationBarButtonItems { get; set; } + UIBarButtonItem [] AdditionalLeadingNavigationBarButtonItems { get; set; } [Export ("additionalTrailingNavigationBarButtonItems", ArgumentSemantic.Strong)] - UIBarButtonItem[] AdditionalTrailingNavigationBarButtonItems { get; set; } + UIBarButtonItem [] AdditionalTrailingNavigationBarButtonItems { get; set; } [Async] [Export ("revealDocumentAtURL:importIfNeeded:completion:")] @@ -20935,40 +21106,40 @@ namespace UIKit { UIDocumentBrowserTransitionController _DeprecatedGetTransitionController (NSUrl documentUrl); [Export ("customActions", ArgumentSemantic.Copy)] - UIDocumentBrowserAction[] CustomActions { get; set; } + UIDocumentBrowserAction [] CustomActions { get; set; } [Export ("browserUserInterfaceStyle", ArgumentSemantic.Assign)] UIDocumentBrowserUserInterfaceStyle BrowserUserInterfaceStyle { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("localizedCreateDocumentActionTitle")] string LocalizedCreateDocumentActionTitle { get; set; } - [iOS (13,0)] + [iOS (13, 0)] [Export ("defaultDocumentAspectRatio")] nfloat DefaultDocumentAspectRatio { get; set; } [Internal] - [iOS (12,0)] + [iOS (12, 0)] [Export ("transitionControllerForDocumentAtURL:")] UIDocumentBrowserTransitionController _NewGetTransitionController (NSUrl documentUrl); [Async] - [iOS (16,0)] + [iOS (16, 0)] [Export ("renameDocumentAtURL:proposedName:completionHandler:")] void RenameDocument (NSUrl documentUrl, string proposedName, Action completionHandler); } - interface IUIDocumentBrowserViewControllerDelegate {} + interface IUIDocumentBrowserViewControllerDelegate { } [NoTV, NoWatch] - [iOS (11,0)] + [iOS (11, 0)] [Protocol, Model] - [BaseType (typeof(NSObject))] + [BaseType (typeof (NSObject))] interface UIDocumentBrowserViewControllerDelegate { [Deprecated (PlatformName.iOS, 12, 0, message: "Use 'DidPickDocumentsAtUrls (UIDocumentBrowserViewController, NSUrl[])' instead.")] [Export ("documentBrowser:didPickDocumentURLs:")] - void DidPickDocumentUrls (UIDocumentBrowserViewController controller, NSUrl[] documentUrls); + void DidPickDocumentUrls (UIDocumentBrowserViewController controller, NSUrl [] documentUrls); [Export ("documentBrowser:didRequestDocumentCreationWithHandler:")] void DidRequestDocumentCreation (UIDocumentBrowserViewController controller, Action importHandler); @@ -20980,19 +21151,19 @@ namespace UIKit { void FailedToImportDocument (UIDocumentBrowserViewController controller, NSUrl documentUrl, [NullAllowed] NSError error); [Export ("documentBrowser:applicationActivitiesForDocumentURLs:")] - UIActivity[] GetApplicationActivities (UIDocumentBrowserViewController controller, NSUrl[] documentUrls); + UIActivity [] GetApplicationActivities (UIDocumentBrowserViewController controller, NSUrl [] documentUrls); [Export ("documentBrowser:willPresentActivityViewController:")] void WillPresent (UIDocumentBrowserViewController controller, UIActivityViewController activityViewController); - [iOS (12,0)] + [iOS (12, 0)] [Export ("documentBrowser:didPickDocumentsAtURLs:")] - void DidPickDocumentsAtUrls (UIDocumentBrowserViewController controller, NSUrl[] documentUrls); + void DidPickDocumentsAtUrls (UIDocumentBrowserViewController controller, NSUrl [] documentUrls); } [NoTV, NoWatch] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIDocumentBrowserTransitionController : UIViewControllerAnimatedTransitioning { [NullAllowed, Export ("loadingProgress", ArgumentSemantic.Strong)] @@ -21003,13 +21174,13 @@ namespace UIKit { } [NoTV, NoWatch] - [iOS (11,0)] - [BaseType (typeof(NSObject))] + [iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIDocumentBrowserAction { [Export ("initWithIdentifier:localizedTitle:availability:handler:")] [DesignatedInitializer] - NativeHandle Constructor (string identifier, string localizedTitle, UIDocumentBrowserActionAvailability availability, Action handler); + NativeHandle Constructor (string identifier, string localizedTitle, UIDocumentBrowserActionAvailability availability, Action handler); [Export ("identifier")] string Identifier { get; } @@ -21024,30 +21195,28 @@ namespace UIKit { UIImage Image { get; set; } [Export ("supportedContentTypes", ArgumentSemantic.Copy)] - string[] SupportedContentTypes { get; set; } + string [] SupportedContentTypes { get; set; } [Export ("supportsMultipleItems")] bool SupportsMultipleItems { get; set; } } - interface IUIFocusItemContainer {} - [iOS (12,0), TV (12,0), NoWatch] + interface IUIFocusItemContainer { } + [iOS (12, 0), TV (12, 0), NoWatch] [Protocol] - interface UIFocusItemContainer - { + interface UIFocusItemContainer { [Abstract] [Export ("coordinateSpace")] IUICoordinateSpace CoordinateSpace { get; } [Abstract] [Export ("focusItemsInRect:")] - IUIFocusItem[] GetFocusItems (CGRect rect); + IUIFocusItem [] GetFocusItems (CGRect rect); } - [iOS (12,0), TV(12,0), NoWatch] + [iOS (12, 0), TV (12, 0), NoWatch] [Protocol] - interface UIFocusItemScrollableContainer : UIFocusItemContainer - { + interface UIFocusItemScrollableContainer : UIFocusItemContainer { [Abstract] [Export ("contentOffset", ArgumentSemantic.Assign)] CGPoint ContentOffset { get; set; } @@ -21061,18 +21230,17 @@ namespace UIKit { CGSize VisibleSize { get; } } - [iOS (8,0), NoWatch] // it was added on 8,0, but was not binded and the method was added in 12,0 + [iOS (8, 0), NoWatch] // it was added on 8,0, but was not binded and the method was added in 12,0 [Protocol] - interface UIUserActivityRestoring - { + interface UIUserActivityRestoring { [Abstract] - [TV(12,0)] + [TV (12, 0)] [Export ("restoreUserActivityState:")] void RestoreUserActivityState (NSUserActivity activity); } - [Watch (4,0), TV (11,0), iOS (11,0)] - [BaseType (typeof(NSObject))] + [Watch (4, 0), TV (11, 0), iOS (11, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIFontMetrics { [Static] @@ -21109,27 +21277,29 @@ namespace UIKit { nfloat GetScaledValue (nfloat value, [NullAllowed] UITraitCollection traitCollection); } - [iOS (12,1)] - [NoWatch][NoTV] + [iOS (12, 1)] + [NoWatch] + [NoTV] [Native] public enum UIPencilPreferredAction : long { Ignore = 0, SwitchEraser, SwitchPrevious, ShowColorPalette, - [iOS (16,0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] ShowInkAttributes, } - [iOS (12,1)] - [NoWatch][NoTV] + [iOS (12, 1)] + [NoWatch] + [NoTV] [BaseType (typeof (NSObject))] interface UIPencilInteraction : UIInteraction { [Static] [Export ("preferredTapAction")] UIPencilPreferredAction PreferredTapAction { get; } - [iOS (14,0)] + [iOS (14, 0)] [Static] [Export ("prefersPencilOnlyDrawing")] bool PrefersPencilOnlyDrawing { get; } @@ -21145,10 +21315,11 @@ namespace UIKit { bool Enabled { [Bind ("isEnabled")] get; set; } } - interface IUIPencilInteractionDelegate {} + interface IUIPencilInteractionDelegate { } - [iOS (12,1)] - [NoWatch][NoTV] + [iOS (12, 1)] + [NoWatch] + [NoTV] [Protocol, Model] [BaseType (typeof (NSObject))] interface UIPencilInteractionDelegate { @@ -21156,7 +21327,7 @@ namespace UIKit { void DidTap (UIPencilInteraction interaction); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject), Name = "UIOpenURLContext")] [DisableDefaultCtor] interface UIOpenUrlContext { @@ -21168,7 +21339,7 @@ namespace UIKit { UISceneOpenUrlOptions Options { get; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UIResponder))] [DisableDefaultCtor] interface UIScene { @@ -21197,7 +21368,7 @@ namespace UIKit { [Export ("title")] string Title { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("subtitle")] string Subtitle { get; set; } @@ -21230,24 +21401,24 @@ namespace UIKit { // UIScene (PointerLockState) category - [NoWatch, NoTV, iOS (14,0)] + [NoWatch, NoTV, iOS (14, 0)] [NullAllowed, Export ("pointerLockState")] UIPointerLockState PointerLockState { get; } // UIScene (UISceneEnhancedStateRestoration) category - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("extendStateRestoration")] void ExtendStateRestoration (); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("completeStateRestoration")] void CompleteStateRestoration (); } interface IUISceneDelegate { } - [iOS (13,0), TV (13,0), NoWatch, NoMac] + [iOS (13, 0), TV (13, 0), NoWatch, NoMac] #if NET [Protocol, Model] #else @@ -21297,7 +21468,7 @@ namespace UIKit { void DidUpdateUserActivity (UIScene scene, NSUserActivity userActivity); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UISceneActivationConditions : NSSecureCoding { @@ -21309,7 +21480,7 @@ namespace UIKit { NSPredicate PrefersToActivateForTargetContentIdentifierPredicate { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UISceneActivationRequestOptions : NSCopying { @@ -21322,7 +21493,7 @@ namespace UIKit { UISceneCollectionJoinBehavior CollectionJoinBehavior { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISceneConfiguration : NSCopying, NSSecureCoding { @@ -21347,8 +21518,10 @@ namespace UIKit { Class SceneClass { get; set; } Type SceneType { - [Wrap ("Class.Lookup (SceneClass)!")] get; - [Wrap ("SceneClass = value is null ? null : new Class (value)")] set; + [Wrap ("Class.Lookup (SceneClass)!")] + get; + [Wrap ("SceneClass = value is null ? null : new Class (value)")] + set; } [Advice ("You can use 'DelegateType' with a 'Type' instead.")] @@ -21356,15 +21529,17 @@ namespace UIKit { Class DelegateClass { get; set; } Type DelegateType { - [Wrap ("Class.Lookup (DelegateClass)!")] get; - [Wrap ("DelegateClass = value is null ? null : new Class (value)")] set; + [Wrap ("Class.Lookup (DelegateClass)!")] + get; + [Wrap ("DelegateClass = value is null ? null : new Class (value)")] + set; } [NullAllowed, Export ("storyboard", ArgumentSemantic.Strong)] UIStoryboard Storyboard { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISceneConnectionOptions { @@ -21393,13 +21568,13 @@ namespace UIKit { CKShareMetadata CloudKitShareMetadata { get; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UISceneDestructionRequestOptions { } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject), Name = "UISceneOpenExternalURLOptions")] interface UISceneOpenExternalUrlOptions { @@ -21407,13 +21582,13 @@ namespace UIKit { bool UniversalLinksOnly { get; set; } [NoTV, iOS (14, 5)] - [MacCatalyst (14,5)] + [MacCatalyst (14, 5)] [NullAllowed] [Export ("eventAttribution", ArgumentSemantic.Copy)] UIEventAttribution EventAttribution { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject), Name = "UISceneOpenURLOptions")] [DisableDefaultCtor] interface UISceneOpenUrlOptions { @@ -21427,14 +21602,14 @@ namespace UIKit { [Export ("openInPlace")] bool OpenInPlace { get; } - [NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [NullAllowed] [Export ("eventAttribution")] UIEventAttribution EventAttribution { get; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISceneSession : NSSecureCoding { @@ -21459,26 +21634,27 @@ namespace UIKit { NSDictionary UserInfo { get; set; } } - [iOS (13,0), TV (13,0)] - [Watch (5,2)] - /* NS_TYPED_ENUM */ enum UIFontDescriptorSystemDesign { + [iOS (13, 0), TV (13, 0)] + [Watch (5, 2)] + /* NS_TYPED_ENUM */ + enum UIFontDescriptorSystemDesign { [DefaultEnumValue] [Field ("UIFontDescriptorSystemDesignDefault")] Default, [Field ("UIFontDescriptorSystemDesignRounded")] Rounded, - [Watch (7,0)] + [Watch (7, 0)] [Field ("UIFontDescriptorSystemDesignSerif")] Serif, - [Watch (7,0)] + [Watch (7, 0)] [Field ("UIFontDescriptorSystemDesignMonospaced")] Monospaced, } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIBarAppearance : NSCopying, NSSecureCoding { - + [Export ("initWithIdiom:")] [DesignatedInitializer] NativeHandle Constructor (UIUserInterfaceIdiom idiom); @@ -21518,7 +21694,7 @@ namespace UIKit { UIImage ShadowImage { get; set; } } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIBarButtonItemStateAppearance { @@ -21536,7 +21712,7 @@ namespace UIKit { UIOffset BackgroundImagePositionAdjustment { get; set; } } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UIBarButtonItemAppearance : NSCopying, NSSecureCoding { @@ -21560,7 +21736,7 @@ namespace UIKit { UIBarButtonItemStateAppearance Focused { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] interface UICollectionViewCompositionalLayoutConfiguration : NSCopying { @@ -21573,15 +21749,15 @@ namespace UIKit { [Export ("boundarySupplementaryItems", ArgumentSemantic.Copy)] NSCollectionLayoutBoundarySupplementaryItem [] BoundarySupplementaryItems { get; set; } - [Watch (7,0), TV (14,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("contentInsetsReference", ArgumentSemantic.Assign)] UIContentInsetsReference ContentInsetsReference { get; set; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate NSCollectionLayoutSection UICollectionViewCompositionalLayoutSectionProvider (nint section, INSCollectionLayoutEnvironment layoutEnvironment); - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (UICollectionViewLayout))] [DisableDefaultCtor] interface UICollectionViewCompositionalLayout { @@ -21603,13 +21779,13 @@ namespace UIKit { // UICollectionViewCompositionalLayout (UICollectionLayoutListSection) category - [TV (14,0), iOS (14,0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("layoutWithListConfiguration:")] UICollectionViewCompositionalLayout GetLayout (UICollectionLayoutListConfiguration listConfiguration); } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICommandAlternate : NSCopying, NSSecureCoding { @@ -21628,7 +21804,7 @@ namespace UIKit { UICommandAlternate Create (string title, Selector action, UIKeyModifierFlags modifierFlags); } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (UIMenuElement))] [DisableDefaultCtor] interface UICommand : UIMenuLeaf { @@ -21658,7 +21834,7 @@ namespace UIKit { new UIMenuElementState State { get; set; } [Export ("alternates")] - UICommandAlternate[] Alternates { get; } + UICommandAlternate [] Alternates { get; } [Static] [Export ("commandWithTitle:image:action:propertyList:")] @@ -21671,7 +21847,7 @@ namespace UIKit { interface IUIFontPickerViewControllerDelegate { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] #if NET [Protocol, Model] #else @@ -21687,7 +21863,7 @@ namespace UIKit { void DidPickFont (UIFontPickerViewController viewController); } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (UIViewController))] [DisableDefaultCtor] interface UIFontPickerViewController { @@ -21710,7 +21886,7 @@ namespace UIKit { UIFontDescriptor SelectedFontDescriptor { get; set; } } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] interface UIFontPickerViewControllerConfiguration : NSCopying { @@ -21732,7 +21908,7 @@ namespace UIKit { NSPredicate FilterPredicate (string [] filteredLanguages); } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (UIGestureRecognizer))] [DisableDefaultCtor] interface UIHoverGestureRecognizer { @@ -21752,7 +21928,7 @@ namespace UIKit { interface IUILargeContentViewerItem { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Protocol] interface UILargeContentViewerItem { @@ -21777,7 +21953,7 @@ namespace UIKit { UIEdgeInsets LargeContentImageInsets { get; } } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UILargeContentViewerInteraction : UIInteraction { @@ -21807,7 +21983,7 @@ namespace UIKit { interface IUILargeContentViewerInteractionDelegate { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] #if NET [Protocol, Model] #else @@ -21829,7 +22005,7 @@ namespace UIKit { interface IUIMenuBuilder { } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [Protocol] interface UIMenuBuilder { @@ -21881,7 +22057,7 @@ namespace UIKit { void RemoveMenu (string removedIdentifier); } - [NoWatch, iOS (13,0), TV (13,0)] + [NoWatch, iOS (13, 0), TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIMenuSystem { @@ -21901,7 +22077,7 @@ namespace UIKit { void SetNeedsRevalidate (); } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (UIBarAppearance))] interface UINavigationBarAppearance { @@ -21912,7 +22088,7 @@ namespace UIKit { [Export ("initWithBarAppearance:")] [DesignatedInitializer] NativeHandle Constructor (UIBarAppearance barAppearance); - + [Export ("titleTextAttributes", ArgumentSemantic.Copy)] NSDictionary WeakTitleTextAttributes { get; set; } @@ -21947,10 +22123,10 @@ namespace UIKit { void SetBackIndicatorImage ([NullAllowed] UIImage backIndicatorImage, [NullAllowed] UIImage backIndicatorTransitionMaskImage); } - [NoWatch, iOS (13,0), TV (13,0)] + [NoWatch, iOS (13, 0), TV (13, 0)] delegate NSDictionary UITextAttributesConversionHandler (NSDictionary textAttributes); - [NoWatch, iOS (13,0), TV (13,0)] + [NoWatch, iOS (13, 0), TV (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIScreenshotService { @@ -21965,12 +22141,12 @@ namespace UIKit { UIWindowScene WindowScene { get; } } - [NoWatch, iOS (13,0), TV (13,0)] + [NoWatch, iOS (13, 0), TV (13, 0)] delegate NSDictionary UIScreenshotServiceDelegatePdfHandler (NSData pdfData, nint indexOfCurrentPage, CGRect rectInCurrentPage); interface IUIScreenshotServiceDelegate { } - [NoWatch, iOS (13,0), TV (13,0)] + [NoWatch, iOS (13, 0), TV (13, 0)] #if NET [Protocol, Model] #else @@ -21983,7 +22159,7 @@ namespace UIKit { void GeneratePdfRepresentation (UIScreenshotService screenshotService, UIScreenshotServiceDelegatePdfHandler completionHandler); } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (UITextField))] interface UISearchTextField { @@ -22020,13 +22196,13 @@ namespace UIKit { [Export ("allowsCopyingTokens")] bool AllowsCopyingTokens { get; set; } - [iOS (16, 0), MacCatalyst (16,0)] + [iOS (16, 0), MacCatalyst (16, 0)] [Export ("searchSuggestions", ArgumentSemantic.Copy)] [NullAllowed] - IUISearchSuggestion[] SearchSuggestions { get; set; } + IUISearchSuggestion [] SearchSuggestions { get; set; } } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISearchToken { @@ -22041,7 +22217,7 @@ namespace UIKit { interface IUISearchTextFieldDelegate { } - [NoTV, iOS (13,0), NoWatch] + [NoTV, iOS (13, 0), NoWatch] #if NET [Protocol, Model] #else @@ -22053,14 +22229,14 @@ namespace UIKit { [Export ("searchTextField:itemProviderForCopyingToken:")] NSItemProvider GetItemProvider (UISearchTextField searchTextField, UISearchToken token); - [iOS (16,0)] + [iOS (16, 0)] [Export ("searchTextField:didSelectSuggestion:")] void DidSelectSuggestion (UISearchTextField searchTextField, IUISearchSuggestion suggestion); } interface IUISearchTextFieldPasteItem { } - [NoTV, iOS (13,0), NoWatch] + [NoTV, iOS (13, 0), NoWatch] [Protocol] interface UISearchTextFieldPasteItem : UITextPasteItem { @@ -22069,7 +22245,7 @@ namespace UIKit { void SetSearchTokenResult (UISearchToken token); } - [NoTV, iOS (13,0), NoWatch] + [NoTV, iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIStatusBarManager { @@ -22084,7 +22260,7 @@ namespace UIKit { CGRect StatusBarFrame { get; } } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UITabBarItemStateAppearance { @@ -22117,7 +22293,7 @@ namespace UIKit { UIOffset BadgeTitlePositionAdjustment { get; set; } } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (UIBarAppearance))] interface UITabBarAppearance { @@ -22156,7 +22332,7 @@ namespace UIKit { interface IUITextFormattingCoordinatorDelegate { } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] #if NET [Protocol, Model] #else @@ -22170,7 +22346,7 @@ namespace UIKit { void UpdateTextAttributes (UITextAttributesConversionHandler conversionHandler); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UITextFormattingCoordinator @@ -22205,7 +22381,7 @@ namespace UIKit { void ToggleFontPanel (NSObject sender); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UITextPlaceholder { @@ -22215,7 +22391,7 @@ namespace UIKit { interface IUITextInteractionDelegate { } - [iOS (13,0), NoTV, NoWatch] + [iOS (13, 0), NoTV, NoWatch] #if NET [Protocol, Model] #else @@ -22234,7 +22410,7 @@ namespace UIKit { void DidEnd (UITextInteraction interaction); } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UITextInteraction : UIInteraction { @@ -22260,7 +22436,7 @@ namespace UIKit { UITextInteraction Create (UITextInteractionMode mode); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UIBarAppearance))] interface UIToolbarAppearance { @@ -22279,7 +22455,7 @@ namespace UIKit { UIBarButtonItemAppearance DoneButtonAppearance { get; set; } } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UIScene))] [DisableDefaultCtor] interface UIWindowScene { @@ -22307,11 +22483,11 @@ namespace UIKit { [Export ("windows")] UIWindow [] Windows { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("keyWindow", ArgumentSemantic.Strong)] UIWindow KeyWindow { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("activityItemsConfigurationSource", ArgumentSemantic.Weak)] IUIActivityItemsConfigurationProviding ActivityItemsConfigurationSource { get; set; } @@ -22324,37 +22500,39 @@ namespace UIKit { [NullAllowed, Export ("screenshotService")] UIScreenshotService ScreenshotService { get; } - [NoWatch, TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [NoWatch, TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("focusSystem")] UIFocusSystem FocusSystem { get; } - [NoWatch][NoTV][NoiOS] + [NoWatch] + [NoTV] + [NoiOS] [MacCatalyst (13, 0)] [Export ("titlebar")] [NullAllowed] UITitlebar Titlebar { get; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("requestGeometryUpdateWithPreferences:errorHandler:")] void RequestGeometryUpdate (UIWindowSceneGeometryPreferences geometryPreferences, [NullAllowed] Action errorHandler); - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("effectiveGeometry")] UIWindowSceneGeometry EffectiveGeometry { get; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("windowingBehaviors")] [NullAllowed] UISceneWindowingBehaviors WindowingBehaviors { get; } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("fullScreen")] bool FullScreen { [Bind ("isFullScreen")] get; } } interface IUIWindowSceneDelegate { } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] #if NET [Protocol, Model] #else @@ -22378,7 +22556,7 @@ namespace UIKit { void UserDidAcceptCloudKitShare (UIWindowScene windowScene, CKShareMetadata cloudKitShareMetadata); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (UISceneDestructionRequestOptions))] interface UIWindowSceneDestructionRequestOptions { @@ -22386,7 +22564,7 @@ namespace UIKit { UIWindowSceneDismissalAnimation WindowDismissalAnimation { get; set; } } - [TV (13,0), iOS (13,0), NoWatch] + [TV (13, 0), iOS (13, 0), NoWatch] [BaseType (typeof (NSObject))] interface UITabBarItemAppearance : NSCopying, NSSecureCoding { @@ -22410,13 +22588,13 @@ namespace UIKit { UITabBarItemStateAppearance Focused { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate UICollectionViewCell UICollectionViewDiffableDataSourceCellProvider (UICollectionView collectionView, NSIndexPath indexPath, NSObject itemIdentifier); - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate UICollectionReusableView UICollectionViewDiffableDataSourceSupplementaryViewProvider (UICollectionView collectionView, string elementKind, NSIndexPath indexPath); - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICollectionViewDiffableDataSource : UICollectionViewDataSource @@ -22439,21 +22617,21 @@ namespace UIKit { [Export ("applySnapshot:animatingDifferences:completion:")] void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences, [NullAllowed] Action completion); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("applySnapshotUsingReloadData:")] void ApplySnapshotUsingReloadData (NSDiffableDataSourceSnapshot snapshot); [Async] - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("applySnapshotUsingReloadData:completion:")] void ApplySnapshotUsingReloadData (NSDiffableDataSourceSnapshot snapshot, [NullAllowed] Action completion); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sectionIdentifierForIndex:")] [return: NullAllowed] SectionIdentifierType GetSectionIdentifier (nint index); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("indexForSectionIdentifier:")] nint GetIndex (SectionIdentifierType sectionIdentifier); @@ -22465,39 +22643,39 @@ namespace UIKit { [return: NullAllowed] NSIndexPath GetIndexPath (ItemIdentifierType identifier); - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("reorderingHandlers", ArgumentSemantic.Copy)] UICollectionViewDiffableDataSourceReorderingHandlers ReorderingHandlers { get; set; } - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("applySnapshot:toSection:animatingDifferences:")] void ApplySnapshot (NSDiffableDataSourceSectionSnapshot snapshot, SectionIdentifierType sectionIdentifier, bool animatingDifferences); - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("applySnapshot:toSection:animatingDifferences:completion:")] void ApplySnapshot (NSDiffableDataSourceSectionSnapshot snapshot, SectionIdentifierType sectionIdentifier, bool animatingDifferences, [NullAllowed] Action completion); - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("snapshotForSection:")] NSDiffableDataSourceSectionSnapshot GetSnapshot (SectionIdentifierType section); - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("sectionSnapshotHandlers", ArgumentSemantic.Copy)] UICollectionViewDiffableDataSourceSectionSnapshotHandlers SectionSnapshotHandlers { get; set; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate UITableViewCell UITableViewDiffableDataSourceCellProvider (UITableView tableView, NSIndexPath indexPath, NSObject obj); - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UITableViewDiffableDataSource : UITableViewDataSource + interface UITableViewDiffableDataSource : UITableViewDataSource where SectionIdentifierType : NSObject where ItemIdentifierType : NSObject { @@ -22514,21 +22692,21 @@ namespace UIKit { [Export ("applySnapshot:animatingDifferences:completion:")] void ApplySnapshot (NSDiffableDataSourceSnapshot snapshot, bool animatingDifferences, [NullAllowed] Action completion); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("applySnapshotUsingReloadData:")] void ApplySnapshotUsingReloadData (NSDiffableDataSourceSnapshot snapshot); [Async] - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("applySnapshotUsingReloadData:completion:")] void ApplySnapshotUsingReloadData (NSDiffableDataSourceSnapshot snapshot, [NullAllowed] Action completion); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("sectionIdentifierForIndex:")] [return: NullAllowed] SectionIdentifierType GetSectionIdentifier (nint index); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("indexForSectionIdentifier:")] nint GetIndex (SectionIdentifierType sectionIdentifier); @@ -22545,7 +22723,7 @@ namespace UIKit { } [Static] - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] interface UIActivityItemsConfigurationMetadataKey { [Field ("UIActivityItemsConfigurationMetadataKeyTitle")] NSString Title { get; } @@ -22553,7 +22731,7 @@ namespace UIKit { [Field ("UIActivityItemsConfigurationMetadataKeyMessageBody")] NSString MessageBody { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Field ("UIActivityItemsConfigurationMetadataKeyLinkPresentationMetadata")] NSString LinkPresentationMetadata { get; } } @@ -22562,7 +22740,7 @@ namespace UIKit { delegate NSObject UIActivityItemsConfigurationPerItemMetadataProviderHandler (nint index, NSString activityItemsConfigurationMetadataKey); delegate NSObject UIActivityItemsConfigurationPreviewProviderHandler (nint index, NSString activityItemsConfigurationPreviewIntent, CGSize suggestedSize); - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIActivityItemsConfiguration : UIActivityItemsConfigurationReading { @@ -22598,16 +22776,16 @@ namespace UIKit { [Export ("initWithObjects:")] [DesignatedInitializer] - NativeHandle Constructor (INSItemProviderWriting[] objects); + NativeHandle Constructor (INSItemProviderWriting [] objects); [Export ("initWithItemProviders:")] [DesignatedInitializer] - NativeHandle Constructor (NSItemProvider[] itemProviders); + NativeHandle Constructor (NSItemProvider [] itemProviders); } interface IUIActivityItemsConfigurationReading { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Protocol] interface UIActivityItemsConfigurationReading { @@ -22635,7 +22813,7 @@ namespace UIKit { UIActivity [] GetApplicationActivitiesForActivityItemsConfiguration (); } - [iOS (13,0), TV (13,0), NoWatch] + [iOS (13, 0), TV (13, 0), NoWatch] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISceneSizeRestrictions { @@ -22646,16 +22824,16 @@ namespace UIKit { [Export ("maximumSize", ArgumentSemantic.Assign)] CGSize MaximumSize { get; set; } - [TV (16,0), iOS (16,0), MacCatalyst (16, 0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("allowsFullScreen")] bool AllowsFullScreen { get; set; } } interface IUIContextMenuInteractionAnimating { } - [NoWatch, NoTV, iOS (13,0)] + [NoWatch, NoTV, iOS (13, 0)] [Protocol] - interface UIContextMenuInteractionAnimating { + interface UIContextMenuInteractionAnimating { [Abstract] [NullAllowed, Export ("previewViewController")] @@ -22671,7 +22849,7 @@ namespace UIKit { } [Introduced (PlatformName.MacCatalyst, 13, 4)] - [iOS (13,4), NoWatch, TV (13,4)] + [iOS (13, 4), NoWatch, TV (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIKey : NSCopying, NSCoding { @@ -22689,7 +22867,7 @@ namespace UIKit { UIKeyboardHidUsage KeyCode { get; } } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerInteraction : UIInteraction { @@ -22710,7 +22888,7 @@ namespace UIKit { interface IUIPointerInteractionDelegate { } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] #if NET [Protocol, Model] #else @@ -22734,11 +22912,11 @@ namespace UIKit { void WillExitRegion (UIPointerInteraction interaction, UIPointerRegion region, IUIPointerInteractionAnimating animator); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerRegionRequest { - + [Export ("location")] CGPoint Location { get; } @@ -22747,8 +22925,8 @@ namespace UIKit { } interface IUIPointerInteractionAnimating { } - - [NoWatch, NoTV, iOS (13,4)] + + [NoWatch, NoTV, iOS (13, 4)] [Protocol] interface UIPointerInteractionAnimating { @@ -22761,7 +22939,7 @@ namespace UIKit { void AddCompletion (Action completion); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerRegion : NSCopying { @@ -22772,7 +22950,7 @@ namespace UIKit { [NullAllowed, Export ("identifier")] NSObject Identifier { get; } - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("latchingAxes", ArgumentSemantic.Assign)] UIAxis LatchingAxes { get; set; } @@ -22781,12 +22959,12 @@ namespace UIKit { UIPointerRegion Create (CGRect rect, [NullAllowed] NSObject identifier); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerStyle : NSCopying { - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("accessories", ArgumentSemantic.Copy)] UIPointerAccessory [] Accessories { get; set; } @@ -22802,13 +22980,13 @@ namespace UIKit { [Export ("hiddenPointerStyle")] UIPointerStyle CreateHiddenPointerStyle (); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("systemPointerStyle")] UIPointerStyle CreateSystemPointerStyle (); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerEffect : NSCopying { @@ -22821,19 +22999,19 @@ namespace UIKit { UIPointerEffect Create (UITargetedPreview preview); } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (UIPointerEffect))] interface UIPointerHighlightEffect { } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (UIPointerEffect))] interface UIPointerLiftEffect { } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (UIPointerEffect))] interface UIPointerHoverEffect { @@ -22847,7 +23025,7 @@ namespace UIKit { bool PrefersScaledContent { get; set; } } - [NoWatch, NoTV, iOS (13,4)] + [NoWatch, NoTV, iOS (13, 4)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerShape : NSCopying { @@ -22869,8 +23047,8 @@ namespace UIKit { UIPointerShape CreateBeam (nfloat preferredLength, UIAxis axis); } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface NSDiffableDataSourceSectionSnapshot : NSCopying where ItemIdentifierType : NSObject { @@ -22949,8 +23127,8 @@ namespace UIKit { string VisualDescription { get; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIBackgroundConfiguration : NSCopying, NSSecureCoding { @@ -23017,11 +23195,11 @@ namespace UIKit { [NullAllowed, Export ("visualEffect", ArgumentSemantic.Copy)] UIVisualEffect VisualEffect { get; set; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("image", ArgumentSemantic.Strong)] UIImage Image { get; set; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("imageContentMode", ArgumentSemantic.Assign)] UIViewContentMode ImageContentMode { get; set; } @@ -23041,8 +23219,8 @@ namespace UIKit { nfloat StrokeOutset { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface UICellAccessory : NSCopying, NSSecureCoding { @@ -23063,22 +23241,22 @@ namespace UIKit { UIColor TintColor { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryDisclosureIndicator { } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryCheckmark { } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryDelete { @@ -23089,8 +23267,8 @@ namespace UIKit { Action ActionHandler { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryInsert { @@ -23101,8 +23279,8 @@ namespace UIKit { Action ActionHandler { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryReorder { @@ -23110,8 +23288,8 @@ namespace UIKit { bool ShowsVerticalSeparator { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryMultiselect { @@ -23119,8 +23297,8 @@ namespace UIKit { UIColor BackgroundColor { get; set; } } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] interface UICellAccessoryOutlineDisclosure { @@ -23131,8 +23309,8 @@ namespace UIKit { Action ActionHandler { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] [DisableDefaultCtor] interface UICellAccessoryLabel { @@ -23151,12 +23329,12 @@ namespace UIKit { bool AdjustsFontForContentSizeCategory { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] delegate nuint UICellAccessoryPosition (UICellAccessory [] accessories); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICellAccessory))] [DisableDefaultCtor] interface UICellAccessoryCustomView { @@ -23178,8 +23356,8 @@ namespace UIKit { UICellAccessoryPosition Position { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIViewConfigurationState))] [DisableDefaultCtor] interface UICellConfigurationState { @@ -23215,8 +23393,8 @@ namespace UIKit { [NoTV] delegate UIListSeparatorConfiguration UICollectionLayoutListItemSeparatorHandler (NSIndexPath indexPath, UIListSeparatorConfiguration sectionSeparatorConfiguration); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICollectionLayoutListConfiguration : NSCopying { @@ -23232,13 +23410,13 @@ namespace UIKit { [Export ("showsSeparators")] bool ShowsSeparators { get; set; } - [Watch (7,4), NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("separatorConfiguration", ArgumentSemantic.Copy)] UIListSeparatorConfiguration SeparatorConfiguration { get; set; } - [Watch (7,4), NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [Watch (7, 4), NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [NullAllowed] [Export ("itemSeparatorHandler", ArgumentSemantic.Copy)] UICollectionLayoutListItemSeparatorHandler ItemSeparatorHandler { get; set; } @@ -23252,7 +23430,7 @@ namespace UIKit { [Export ("footerMode", ArgumentSemantic.Assign)] UICollectionLayoutListFooterMode FooterMode { get; set; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("headerTopPadding")] nfloat HeaderTopPadding { get; set; } @@ -23267,12 +23445,12 @@ namespace UIKit { UICollectionLayoutListSwipeActionsConfigurationProvider TrailingSwipeActionsConfigurationProvider { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void UICollectionViewCellRegistrationConfigurationHandler (UICollectionViewCell cell, NSIndexPath indexPath, NSObject item); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICollectionViewCellRegistration { @@ -23302,12 +23480,12 @@ namespace UIKit { UICollectionViewCellRegistrationConfigurationHandler ConfigurationHandler { get; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void UICollectionViewSupplementaryRegistrationConfigurationHandler (UICollectionReusableView supplementaryView, string elementKind, NSIndexPath indexPath); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UICollectionViewSupplementaryRegistration { @@ -23340,8 +23518,8 @@ namespace UIKit { UICollectionViewSupplementaryRegistrationConfigurationHandler ConfigurationHandler { get; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UICollectionViewCell))] interface UICollectionViewListCell { @@ -23370,8 +23548,8 @@ namespace UIKit { interface IUIColorPickerViewControllerDelegate { } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -23384,7 +23562,7 @@ namespace UIKit { [Export ("colorPickerViewControllerDidSelectColor:")] void DidSelectColor (UIColorPickerViewController viewController); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Export ("colorPickerViewController:didSelectColor:continuously:")] void DidSelectColor (UIColorPickerViewController viewController, UIColor color, bool continuously); @@ -23392,12 +23570,11 @@ namespace UIKit { void DidFinish (UIColorPickerViewController viewController); } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIViewController))] [DesignatedDefaultCtor] - interface UIColorPickerViewController - { + interface UIColorPickerViewController { [Export ("initWithNibName:bundle:")] NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); @@ -23415,8 +23592,8 @@ namespace UIKit { bool SupportsAlpha { get; set; } } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIControl))] interface UIColorWell { @@ -23433,10 +23610,10 @@ namespace UIKit { UIColor SelectedColor { get; set; } } - interface IUIConfigurationState {} + interface IUIConfigurationState { } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Protocol] interface UIConfigurationState : NSCopying, NSSecureCoding { @@ -23468,10 +23645,10 @@ namespace UIKit { void SetObject ([NullAllowed] NSObject obj, string key); } - interface IUIContentConfiguration {} + interface IUIContentConfiguration { } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NoMac] [Protocol] interface UIContentConfiguration : NSCopying { @@ -23485,10 +23662,11 @@ namespace UIKit { IUIContentConfiguration GetUpdatedConfiguration (IUIConfigurationState state); } - interface IUIContentView {} + interface IUIContentView { } - [NoWatch, TV (14,0), iOS (14,0)][NoMac] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [NoMac] + [MacCatalyst (14, 0)] [Protocol] interface UIContentView { @@ -23496,21 +23674,21 @@ namespace UIKit { [Export ("configuration", ArgumentSemantic.Copy)] IUIContentConfiguration Configuration { get; set; } - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("supportsConfiguration:")] bool SupportsConfiguration (IUIContentConfiguration configuration); } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void UIDeferredMenuElementCompletionHandler (UIMenuElement [] elements); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] delegate void UIDeferredMenuElementProviderHandler ([BlockCallback] UIDeferredMenuElementCompletionHandler completion); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIMenuElement))] [DisableDefaultCtor] interface UIDeferredMenuElement { @@ -23519,16 +23697,16 @@ namespace UIKit { [Export ("elementWithProvider:")] UIDeferredMenuElement Create (UIDeferredMenuElementProviderHandler elementProvider); - [iOS (15,0), MacCatalyst (15,0)] + [iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("elementWithUncachedProvider:")] UIDeferredMenuElement CreateUncached (UIDeferredMenuElementProviderHandler elementProvider); } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] - interface NSDiffableDataSourceSectionTransaction + interface NSDiffableDataSourceSectionTransaction where SectionIdentifierType : NSObject where ItemIdentifierType : NSObject { @@ -23547,18 +23725,18 @@ namespace UIKit { #endif } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface NSDiffableDataSourceTransaction where SectionIdentifierType : NSObject where ItemIdentifierType : NSObject { [Export ("initialSnapshot")] - NSDiffableDataSourceSnapshot InitialSnapshot { get; } + NSDiffableDataSourceSnapshot InitialSnapshot { get; } [Export ("finalSnapshot")] - NSDiffableDataSourceSnapshot FinalSnapshot { get; } + NSDiffableDataSourceSnapshot FinalSnapshot { get; } #if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Export ("difference")] @@ -23569,8 +23747,8 @@ namespace UIKit { NSDiffableDataSourceSectionTransaction [] SectionTransactions { get; } } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIIndirectScribbleInteraction : UIInteraction { @@ -23590,10 +23768,10 @@ namespace UIKit { bool HandlingWriting { [Bind ("isHandlingWriting")] get; } } - interface IUIIndirectScribbleInteractionDelegate {} + interface IUIIndirectScribbleInteractionDelegate { } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -23628,8 +23806,8 @@ namespace UIKit { void DidFinishWriting (UIIndirectScribbleInteraction interaction, NSObject elementIdentifier); } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIListContentConfiguration : UIContentConfiguration, NSSecureCoding { @@ -23662,12 +23840,12 @@ namespace UIKit { [Export ("groupedFooterConfiguration")] UIListContentConfiguration GroupedFooterConfiguration { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("prominentInsetGroupedHeaderConfiguration")] UIListContentConfiguration ProminentInsetGroupedHeaderConfiguration { get; } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("extraProminentInsetGroupedHeaderConfiguration")] UIListContentConfiguration ExtraProminentInsetGroupedHeaderConfiguration { get; } @@ -23740,8 +23918,8 @@ namespace UIKit { nfloat TextToSecondaryTextVerticalPadding { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (UIView))] [DisableDefaultCtor] interface UIListContentView : UIContentView { @@ -23766,8 +23944,8 @@ namespace UIKit { delegate UIColor UIConfigurationColorTransformerHandler (UIColor color); - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIListContentImageProperties : NSCopying, NSSecureCoding { @@ -23800,8 +23978,8 @@ namespace UIKit { bool AccessibilityIgnoresInvertColors { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIListContentTextProperties : NSCopying, NSSecureCoding { @@ -23842,21 +24020,21 @@ namespace UIKit { [Export ("transform", ArgumentSemantic.Assign)] UIListContentTextTransform Transform { get; set; } - [TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("showsExpansionTextWhenTruncated")] bool ShowsExpansionTextWhenTruncated { get; set; } } interface UIPointerLockStateDidChangeEventArgs { - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed] [Export ("UIPointerLockStateSceneUserInfoKey")] UIScene Scene { get; } } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerLockState { @@ -23869,8 +24047,8 @@ namespace UIKit { bool Locked { [Bind ("isLocked")] get; } } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIScribbleInteraction : UIInteraction { @@ -23896,8 +24074,8 @@ namespace UIKit { interface IUIScribbleInteractionDelegate { } - [NoWatch, NoTV, iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, NoTV, iOS (14, 0)] + [MacCatalyst (14, 0)] #if NET [Protocol, Model] #else @@ -23921,7 +24099,7 @@ namespace UIKit { interface IUISearchSuggestion { } - [TV (14,0), NoWatch, iOS (16,0)] + [TV (14, 0), NoWatch, iOS (16, 0)] [Protocol] interface UISearchSuggestion { @@ -23952,8 +24130,8 @@ namespace UIKit { NSObject RepresentedObject { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Static, Partial] interface UIConfigurationColorTransformer { @@ -23979,7 +24157,7 @@ namespace UIKit { IntPtr _MonochromeTint { get; } } - [TV (14,0), NoWatch, iOS (16,0), MacCatalyst (16,0)] + [TV (14, 0), NoWatch, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISearchSuggestionItem : UISearchSuggestion { @@ -24015,45 +24193,45 @@ namespace UIKit { // [NullAllowed, Export ("iconImage")] // UIImage IconImage { get; } - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("suggestionWithLocalizedAttributedSuggestion:")] UISearchSuggestionItem Create (NSAttributedString suggestion); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("suggestionWithLocalizedAttributedSuggestion:descriptionString:")] UISearchSuggestionItem Create (NSAttributedString localizedSuggestion, [NullAllowed] string description); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("suggestionWithLocalizedAttributedSuggestion:descriptionString:iconImage:")] UISearchSuggestionItem Create (NSAttributedString localizedSuggestion, [NullAllowed] string description, [NullAllowed] UIImage iconImage); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithLocalizedAttributedSuggestion:")] NativeHandle Constructor (NSAttributedString localizedSuggestion); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithLocalizedAttributedSuggestion:localizedDescription:")] NativeHandle Constructor (NSAttributedString localizedSuggestion, [NullAllowed] string description); - [NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithLocalizedAttributedSuggestion:localizedDescription:iconImage:")] NativeHandle Constructor (NSAttributedString localizedSuggestion, [NullAllowed] string description, [NullAllowed] UIImage iconImage); - [NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("localizedAttributedSuggestion")] [NullAllowed] new NSAttributedString LocalizedAttributedSuggestion { get; } - [TV (16, 0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("representedObject", ArgumentSemantic.Strong)] new NSObject RepresentedObject { get; set; } } - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIViewConfigurationState : UIConfigurationState { @@ -24077,37 +24255,37 @@ namespace UIKit { [Export ("focused")] bool Focused { [Bind ("isFocused")] get; set; } - [Watch (8,0), TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("pinned")] bool Pinned { [Bind ("isPinned")] get; set; } } // TODO: Our trampolines generator does not support generic delegate definitions - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface UICollectionViewDiffableDataSourceSectionSnapshotHandlers : NSCopying where ItemType : NSObject { - // [NullAllowed, Export ("shouldExpandItemHandler", ArgumentSemantic.Copy)] - // Func ShouldExpandItemHandler { get; set; } + // [NullAllowed, Export ("shouldExpandItemHandler", ArgumentSemantic.Copy)] + // Func ShouldExpandItemHandler { get; set; } - // [NullAllowed, Export ("willExpandItemHandler", ArgumentSemantic.Copy)] - // Action WillExpandItemHandler { get; set; } + // [NullAllowed, Export ("willExpandItemHandler", ArgumentSemantic.Copy)] + // Action WillExpandItemHandler { get; set; } - // [NullAllowed, Export ("shouldCollapseItemHandler", ArgumentSemantic.Copy)] - // Func ShouldCollapseItemHandler { get; set; } + // [NullAllowed, Export ("shouldCollapseItemHandler", ArgumentSemantic.Copy)] + // Func ShouldCollapseItemHandler { get; set; } - // [NullAllowed, Export ("willCollapseItemHandler", ArgumentSemantic.Copy)] - // Action WillCollapseItemHandler { get; set; } + // [NullAllowed, Export ("willCollapseItemHandler", ArgumentSemantic.Copy)] + // Action WillCollapseItemHandler { get; set; } - // [NullAllowed, Export ("snapshotForExpandingParentItemHandler", ArgumentSemantic.Copy)] - // Func, NSDiffableDataSourceSectionSnapshot> SnapshotForExpandingParentItemHandler { get; set; } + // [NullAllowed, Export ("snapshotForExpandingParentItemHandler", ArgumentSemantic.Copy)] + // Func, NSDiffableDataSourceSectionSnapshot> SnapshotForExpandingParentItemHandler { get; set; } } // TODO: Our trampolines generator does not support generic delegate definitions - [NoWatch, TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [NoWatch, TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface UICollectionViewDiffableDataSourceReorderingHandlers : NSCopying where SectionType : NSObject @@ -24123,8 +24301,8 @@ namespace UIKit { // Action> DidReorderHandler { get; set; } } - [TV (14,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NoWatch] [Native] public enum UIListContentTextTransform : long { @@ -24134,8 +24312,8 @@ namespace UIKit { Capitalized, } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIEventAttribution : NSCopying { @@ -24159,8 +24337,8 @@ namespace UIKit { NativeHandle Constructor (byte sourceIdentifier, NSUrl destinationUrl, string sourceDescription, string purchaser); } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (UIView))] interface UIEventAttributionView { @@ -24168,8 +24346,8 @@ namespace UIKit { NativeHandle Constructor (CGRect frame); } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [Native] public enum UIListSeparatorVisibility : long { Automatic, @@ -24177,8 +24355,8 @@ namespace UIKit { Hidden, } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIListSeparatorConfiguration : NSCopying, NSSecureCoding { @@ -24205,13 +24383,13 @@ namespace UIKit { [Export ("multipleSelectionColor", ArgumentSemantic.Strong)] UIColor MultipleSelectionColor { get; set; } - [Watch (8,0), NoTV, iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), NoTV, iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("visualEffect", ArgumentSemantic.Copy)] UIVisualEffect VisualEffect { get; set; } } - [NoWatch, NoTV, iOS (14,5)] - [MacCatalyst (14,5)] + [NoWatch, NoTV, iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPrinterDestination : NSSecureCoding { @@ -24229,9 +24407,9 @@ namespace UIKit { NSData TxtRecord { get; set; } } - interface IUIActivityItemsConfigurationProviding {} + interface IUIActivityItemsConfigurationProviding { } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Protocol] interface UIActivityItemsConfigurationProviding { @@ -24241,10 +24419,10 @@ namespace UIKit { IUIActivityItemsConfigurationReading ActivityItemsConfiguration { get; } } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] delegate bool UIBandSelectionInteractionShouldBeginHandler (UIBandSelectionInteraction interaction, CGPoint point); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIBandSelectionInteraction : UIInteraction { @@ -24268,10 +24446,10 @@ namespace UIKit { NativeHandle Constructor (Action selectionHandler); } - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] delegate NSDictionary UIConfigurationTextAttributesTransformerHandler (NSDictionary textAttributes); - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIButtonConfiguration : NSCopying, NSSecureCoding { @@ -24383,17 +24561,17 @@ namespace UIKit { [Export ("automaticallyUpdateForSelection")] bool AutomaticallyUpdateForSelection { get; set; } - [NoWatch, TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("indicator", ArgumentSemantic.Assign)] UIButtonConfigurationIndicator Indicator { get; set; } - [NoWatch, TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("indicatorColorTransformer", ArgumentSemantic.Copy)] [NullAllowed] UIConfigurationColorTransformerHandler IndicatorColorTransformer { get; set; } } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIFocusEffect : NSCopying { @@ -24403,7 +24581,7 @@ namespace UIKit { UIFocusEffect Create (); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UIFocusEffect))] [DisableDefaultCtor] interface UIFocusHaloEffect { @@ -24430,7 +24608,7 @@ namespace UIKit { UIFocusHaloEffectPosition Position { get; set; } } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UITrackingLayoutGuide))] interface UIKeyboardLayoutGuide { @@ -24438,7 +24616,7 @@ namespace UIKit { bool FollowsUndockedKeyboard { get; set; } } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UISheetPresentationControllerDetent { @@ -24446,7 +24624,7 @@ namespace UIKit { [Field ("UISheetPresentationControllerAutomaticDimension")] nfloat AutomaticDimension { get; } - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Field ("UISheetPresentationControllerDetentInactive")] nfloat DetentInactive { get; } @@ -24459,21 +24637,21 @@ namespace UIKit { UISheetPresentationControllerDetent CreateLargeDetent (); - [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("identifier", ArgumentSemantic.Strong)] string Identifier { get; } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Static] [Export ("customDetentWithIdentifier:resolver:")] UISheetPresentationControllerDetent Create ([NullAllowed] string identifier, Func resolver); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Export ("resolvedValueInContext:")] nfloat GetResolvedValue (IUISheetPresentationControllerDetentResolutionContext context); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] interface UIToolTipInteraction : UIInteraction { @@ -24494,7 +24672,7 @@ namespace UIKit { NativeHandle Constructor (string defaultToolTip); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIToolTipConfiguration { @@ -24514,9 +24692,9 @@ namespace UIKit { UIToolTipConfiguration Create (string toolTip, CGRect sourceRect); } - interface IUIToolTipInteractionDelegate {} + interface IUIToolTipInteractionDelegate { } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else @@ -24530,7 +24708,7 @@ namespace UIKit { UIToolTipConfiguration GetConfiguration (UIToolTipInteraction interaction, CGPoint point); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UILayoutGuide))] interface UITrackingLayoutGuide { @@ -24541,7 +24719,7 @@ namespace UIKit { NSLayoutConstraint [] GetConstraintsActiveWhenNear (NSDirectionalRectEdge edge); [Export ("setConstraints:activeWhenAwayFromEdge:")] - void SetConstraintsActiveWhenAway (NSLayoutConstraint[] trackingConstraints, NSDirectionalRectEdge edge); + void SetConstraintsActiveWhenAway (NSLayoutConstraint [] trackingConstraints, NSDirectionalRectEdge edge); [Export ("constraintsActiveWhenAwayFromEdge:")] NSLayoutConstraint [] GetConstraintsActiveWhenAway (NSDirectionalRectEdge edge); @@ -24550,10 +24728,10 @@ namespace UIKit { void RemoveAllTrackedConstraints (); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] delegate UIWindowSceneActivationConfiguration UIWindowSceneActivationActionConfigurationProvider (UIWindowSceneActivationAction action); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UIAction))] [DisableDefaultCtor] interface UIWindowSceneActivationAction { @@ -24563,10 +24741,10 @@ namespace UIKit { [Static] [Export ("actionWithIdentifier:alternateAction:configurationProvider:")] - UIWindowSceneActivationAction Create ([NullAllowed] [BindAs (typeof (UIActionIdentifier))] NSString identifier, [NullAllowed] UIAction alternateAction, UIWindowSceneActivationActionConfigurationProvider configurationProvider); + UIWindowSceneActivationAction Create ([NullAllowed][BindAs (typeof (UIActionIdentifier))] NSString identifier, [NullAllowed] UIAction alternateAction, UIWindowSceneActivationActionConfigurationProvider configurationProvider); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIWindowSceneActivationConfiguration { @@ -24585,10 +24763,10 @@ namespace UIKit { NativeHandle Constructor (NSUserActivity userActivity); } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] delegate UIWindowSceneActivationConfiguration UIWindowSceneActivationInteractionConfigurationProvider (UIWindowSceneActivationInteraction interaction, CGPoint location); - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIWindowSceneActivationInteraction : UIInteraction { @@ -24598,7 +24776,7 @@ namespace UIKit { NativeHandle Constructor (UIWindowSceneActivationInteractionConfigurationProvider configurationProvider, Action errorHandler); } - [TV (15,0), NoWatch, iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (UISceneActivationRequestOptions))] interface UIWindowSceneActivationRequestOptions { @@ -24606,7 +24784,7 @@ namespace UIKit { UIWindowScenePresentationStyle PreferredPresentationStyle { get; set; } } - [NoWatch, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoWatch, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UIPointerAccessory : NSCopying { @@ -24629,18 +24807,22 @@ namespace UIKit { UIPointerAccessory CreateArrow (UIPointerAccessoryPosition position); } - [NoiOS][NoTV][NoWatch][MacCatalyst (13,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 0)] [Native] - public enum UITitlebarTitleVisibility : long - { + public enum UITitlebarTitleVisibility : long { Visible, Hidden, } - [MacCatalyst (14,0)][NoiOS][NoTV][NoWatch] + [MacCatalyst (14, 0)] + [NoiOS] + [NoTV] + [NoWatch] [Native] - public enum UITitlebarToolbarStyle : long - { + public enum UITitlebarToolbarStyle : long { Automatic, Expanded, Preference, @@ -24648,10 +24830,12 @@ namespace UIKit { UnifiedCompact, } - [NoiOS][NoTV][NoWatch][MacCatalyst (13,0)] + [NoiOS] + [NoTV] + [NoWatch] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] - interface UITitlebar - { + interface UITitlebar { [Export ("titleVisibility", ArgumentSemantic.Assign)] UITitlebarTitleVisibility TitleVisibility { get; set; } @@ -24673,7 +24857,7 @@ namespace UIKit { NSUrl RepresentedUrl { get; set; } } - [NoWatch, TV (15,4), iOS (15,4), MacCatalyst (15,4)] + [NoWatch, TV (15, 4), iOS (15, 4), MacCatalyst (15, 4)] [BaseType (typeof (UICellAccessory))] [DesignatedDefaultCtor] interface UICellAccessoryDetail { @@ -24682,17 +24866,16 @@ namespace UIKit { Action ActionHandler { get; set; } } - interface IUICalendarSelectionMultiDateDelegate {} + interface IUICalendarSelectionMultiDateDelegate { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface UICalendarSelectionMultiDateDelegate - { + interface UICalendarSelectionMultiDateDelegate { [Abstract] [Export ("multiDateSelection:didSelectDate:")] void DidSelectDate (UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); @@ -24708,15 +24891,14 @@ namespace UIKit { bool CanDeselectDate (UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UICalendarSelection))] - interface UICalendarSelectionMultiDate - { + interface UICalendarSelectionMultiDate { [Export ("selectedDates", ArgumentSemantic.Copy)] - NSDateComponents[] SelectedDates { get; set; } + NSDateComponents [] SelectedDates { get; set; } [Export ("setSelectedDates:animated:")] - void SetSelectedDates (NSDateComponents[] selectedDates, bool animated); + void SetSelectedDates (NSDateComponents [] selectedDates, bool animated); [Wrap ("WeakDelegate")] [NullAllowed] @@ -24729,17 +24911,16 @@ namespace UIKit { NativeHandle Constructor ([NullAllowed] IUICalendarSelectionMultiDateDelegate @delegate); } - interface IUICalendarSelectionSingleDateDelegate {} + interface IUICalendarSelectionSingleDateDelegate { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface UICalendarSelectionSingleDateDelegate - { + interface UICalendarSelectionSingleDateDelegate { [Abstract] [Export ("dateSelection:didSelectDate:")] void DidSelectDate (UICalendarSelectionSingleDate selection, [NullAllowed] NSDateComponents dateComponents); @@ -24748,20 +24929,18 @@ namespace UIKit { bool CanSelectDate (UICalendarSelectionSingleDate selection, [NullAllowed] NSDateComponents dateComponents); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UICalendarSelection - { + interface UICalendarSelection { [Export ("updateSelectableDates")] void UpdateSelectableDates (); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UICalendarSelection))] - interface UICalendarSelectionSingleDate - { + interface UICalendarSelectionSingleDate { [Wrap ("WeakDelegate")] [NullAllowed] IUICalendarSelectionSingleDateDelegate Delegate { get; } @@ -24779,27 +24958,25 @@ namespace UIKit { NativeHandle Constructor ([NullAllowed] IUICalendarSelectionSingleDateDelegate @delegate); } - interface IUICalendarViewDelegate {} + interface IUICalendarViewDelegate { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface UICalendarViewDelegate - { + interface UICalendarViewDelegate { [Abstract] [Export ("calendarView:decorationForDateComponents:")] [return: NullAllowed] UICalendarViewDecoration GetDecoration (UICalendarView calendarView, NSDateComponents dateComponents); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface UICalendarViewDecoration - { + interface UICalendarViewDecoration { [Export ("initWithImage:color:size:")] NativeHandle Constructor ([NullAllowed] UIImage image, [NullAllowed] UIColor color, UICalendarViewDecorationSize size); @@ -24823,10 +25000,9 @@ namespace UIKit { UICalendarViewDecoration Create (Func customViewProvider); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIView))] - interface UICalendarView - { + interface UICalendarView { [DesignatedInitializer] [Export ("initWithFrame:")] @@ -24867,16 +25043,15 @@ namespace UIKit { bool WantsDateDecorations { get; set; } [Export ("reloadDecorationsForDateComponents:animated:")] - void ReloadDecorations (NSDateComponents[] dates, bool animated); + void ReloadDecorations (NSDateComponents [] dates, bool animated); } - interface IUIEditMenuInteractionAnimating {} + interface IUIEditMenuInteractionAnimating { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UIEditMenuInteractionAnimating - { + interface UIEditMenuInteractionAnimating { [Abstract] [Export ("addAnimations:")] void AddAnimations (Action animations); @@ -24886,20 +25061,19 @@ namespace UIKit { void AddCompletion (Action completion); } - interface IUIEditMenuInteractionDelegate {} + interface IUIEditMenuInteractionDelegate { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface UIEditMenuInteractionDelegate - { + interface UIEditMenuInteractionDelegate { [Export ("editMenuInteraction:menuForConfiguration:suggestedActions:")] [return: NullAllowed] - UIMenu GetMenu (UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIMenuElement[] suggestedActions); + UIMenu GetMenu (UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIMenuElement [] suggestedActions); [Export ("editMenuInteraction:targetRectForConfiguration:")] CGRect GetTargetRect (UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration); @@ -24911,21 +25085,19 @@ namespace UIKit { void WillDismissMenu (UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, IUIEditMenuInteractionAnimating animator); } - interface IUILayoutGuideAspectFitting {} + interface IUILayoutGuideAspectFitting { } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UILayoutGuideAspectFitting - { + interface UILayoutGuideAspectFitting { [Abstract] [Export ("aspectRatio")] nfloat AspectRatio { get; set; } } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UIMenuLeaf - { + interface UIMenuLeaf { [Abstract] [Export ("title")] string Title { get; set; } @@ -24960,23 +25132,22 @@ namespace UIKit { void Target ([NullAllowed] NSObject sender, [NullAllowed] NSObject target); } - interface IUINavigationItemRenameDelegate {} + interface IUINavigationItemRenameDelegate { } - interface IUIPopoverPresentationControllerSourceItem {} + interface IUIPopoverPresentationControllerSourceItem { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UIPopoverPresentationControllerSourceItem {} + interface UIPopoverPresentationControllerSourceItem { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface UINavigationItemRenameDelegate - { + interface UINavigationItemRenameDelegate { [Abstract] [Export ("navigationItem:didEndRenamingWithTitle:")] void DidEndRenaming (UINavigationItem navigationItem, string title); @@ -24991,12 +25162,11 @@ namespace UIKit { bool ShouldEndRenaming (UINavigationItem navigationItem, string title); } - interface IUISheetPresentationControllerDetentResolutionContext {} + interface IUISheetPresentationControllerDetentResolutionContext { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UISheetPresentationControllerDetentResolutionContext - { + interface UISheetPresentationControllerDetentResolutionContext { [Abstract] [Export ("containerTraitCollection")] UITraitCollection ContainerTraitCollection { get; } @@ -25006,12 +25176,11 @@ namespace UIKit { nfloat MaximumDetentValue { get; } } - interface IUITextSearchAggregator {} + interface IUITextSearchAggregator { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UITextSearchAggregator - { + interface UITextSearchAggregator { [Abstract] [Export ("allFoundRanges")] NSOrderedSet AllFoundRanges { get; } @@ -25033,10 +25202,9 @@ namespace UIKit { void Invalidate (); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface UITextSearchOptions - { + interface UITextSearchOptions { [Export ("wordMatchMethod")] UITextSearchMatchMethod WordMatchMethod { get; } @@ -25044,12 +25212,11 @@ namespace UIKit { NSStringCompareOptions StringCompareOptions { get; } } - interface IUITextSearching {} + interface IUITextSearching { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [Protocol] - interface UITextSearching - { + interface UITextSearching { [Abstract] [NullAllowed, Export ("selectedTextRange")] UITextRange SelectedTextRange { get; } @@ -25095,11 +25262,10 @@ namespace UIKit { NSComparisonResult CompareOrder (INSCopying fromDocument, INSCopying toDocument); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIEditMenuInteraction : UIInteraction - { + interface UIEditMenuInteraction : UIInteraction { [Wrap ("WeakDelegate")] [NullAllowed] IUIEditMenuInteractionDelegate Delegate { get; } @@ -25126,11 +25292,10 @@ namespace UIKit { CGPoint GetLocation ([NullAllowed] UIView inView); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIEditMenuConfiguration - { + interface UIEditMenuConfiguration { [Export ("identifier", ArgumentSemantic.Copy)] INSCopying Identifier { get; } @@ -25145,11 +25310,10 @@ namespace UIKit { UIEditMenuConfiguration Create ([NullAllowed] INSCopying identifier, CGPoint sourcePoint); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UICellAccessory))] [DisableDefaultCtor] - interface UICellAccessoryPopUpMenu - { + interface UICellAccessoryPopUpMenu { [Export ("initWithMenu:")] [DesignatedInitializer] NativeHandle Constructor (UIMenu menu); @@ -25161,11 +25325,10 @@ namespace UIKit { Action SelectedElementDidChangeHandler { get; set; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIDocumentProperties - { + interface UIDocumentProperties { [Export ("initWithURL:")] NativeHandle Constructor (NSUrl url); @@ -25185,14 +25348,13 @@ namespace UIKit { bool WantsIconRepresentation { get; set; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] delegate UIMenu OptionsMenuProviderHandler (UIMenuElement [] elements); - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIFindInteraction : UIInteraction - { + interface UIFindInteraction : UIInteraction { [Export ("findNavigatorVisible")] bool FindNavigatorVisible { [Bind ("isFindNavigatorVisible")] get; } @@ -25235,10 +25397,9 @@ namespace UIKit { void UpdateResultCount (); } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] - [BaseType (typeof(NSObject))] - interface UIFindSession - { + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] + [BaseType (typeof (NSObject))] + interface UIFindSession { [Export ("resultCount")] nint ResultCount { get; } @@ -25270,10 +25431,9 @@ namespace UIKit { bool AllowsReplacementForCurrentlyHighlightedResult { get; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface UIPasteControlConfiguration : NSSecureCoding - { + interface UIPasteControlConfiguration : NSSecureCoding { [Export ("displayMode", ArgumentSemantic.Assign)] UIPasteControlDisplayMode DisplayMode { get; set; } @@ -25291,22 +25451,21 @@ namespace UIKit { } - interface IUIFindInteractionDelegate {} + interface IUIFindInteractionDelegate { } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0), NoMac] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0), NoMac] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof(NSObject))] - interface UIFindInteractionDelegate - { + [BaseType (typeof (NSObject))] + interface UIFindInteractionDelegate { // This abstract method needs attributes since PDFKit.PDFView // implements this interface and has iOS 11 support. When inlining // this method, the attributes are not carried over and causes issues // since it is not supported until iOS 16 - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0), NoMac] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0), NoMac] [Abstract] [Export ("findInteraction:sessionForView:")] [return: NullAllowed] @@ -25319,11 +25478,10 @@ namespace UIKit { void DidEndFindSession (UIFindInteraction interaction, UIFindSession session); } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] - [BaseType (typeof(NSObject))] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UISceneWindowingBehaviors - { + interface UISceneWindowingBehaviors { [Export ("closable")] bool Closable { [Bind ("isClosable")] get; set; } @@ -25331,11 +25489,10 @@ namespace UIKit { bool Miniaturizable { [Bind ("isMiniaturizable")] get; set; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIFindSession))] [DisableDefaultCtor] - interface UITextSearchingFindSession - { + interface UITextSearchingFindSession { [NullAllowed, Export ("searchableObject", ArgumentSemantic.Weak)] IUITextSearching SearchableObject { get; } @@ -25344,11 +25501,10 @@ namespace UIKit { NativeHandle Constructor (IUITextSearching searchableObject); } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UIWindowSceneGeometry : NSCopying - { + interface UIWindowSceneGeometry : NSCopying { [Export ("systemFrame")] CGRect SystemFrame { get; } @@ -25357,15 +25513,14 @@ namespace UIKit { UIInterfaceOrientation InterfaceOrientation { get; } } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSObject))] - interface UIWindowSceneGeometryPreferences {} + interface UIWindowSceneGeometryPreferences { } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIWindowSceneGeometryPreferences))] [DisableDefaultCtor] - interface UIWindowSceneGeometryPreferencesMac - { + interface UIWindowSceneGeometryPreferencesMac { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -25377,11 +25532,10 @@ namespace UIKit { CGRect SystemFrame { get; set; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIWindowSceneGeometryPreferences))] [DisableDefaultCtor] - interface UIWindowSceneGeometryPreferencesIOS - { + interface UIWindowSceneGeometryPreferencesIOS { [DesignatedInitializer] [Export ("init")] NativeHandle Constructor (); @@ -25393,10 +25547,9 @@ namespace UIKit { UIInterfaceOrientationMask InterfaceOrientations { get; set; } } - [NoWatch, NoTV, iOS (16,0), MacCatalyst (16,0)] + [NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (UIControl))] - interface UIPasteControl - { + interface UIPasteControl { [Export ("configuration")] UIPasteControlConfiguration Configuration { get; } @@ -25412,8 +25565,9 @@ namespace UIKit { NativeHandle Constructor (CGRect frame); } - [Static][Internal] - [Watch (9,0), TV (16,0), iOS (16, 0), MacCatalyst (16,0)] + [Static] + [Internal] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] interface UIFontWidthConstants { [Field ("UIFontWidthCondensed")] nfloat Condensed { get; } diff --git a/src/uniformtypeidentifiers.cs b/src/uniformtypeidentifiers.cs index 1885cffca3..62c0c4f90c 100644 --- a/src/uniformtypeidentifiers.cs +++ b/src/uniformtypeidentifiers.cs @@ -5,8 +5,8 @@ using ObjCRuntime; namespace UniformTypeIdentifiers { - [Introduced (PlatformName.MacCatalyst, 14,0)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UTType : NSCopying, NSSecureCoding { @@ -97,11 +97,11 @@ namespace UniformTypeIdentifiers { [Static] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("typesWithTag:tagClass:conformingToType:")] - UTType[] GetTypes (string tag, NSString tagClass, [NullAllowed] UTType supertype); + UTType [] GetTypes (string tag, NSString tagClass, [NullAllowed] UTType supertype); [Static] [Wrap ("GetTypes (tag, tagClass.GetConstant ()!, supertype)")] - UTType[] GetTypes (string tag, UTTagClass tagClass, [NullAllowed] UTType supertype); + UTType [] GetTypes (string tag, UTTagClass tagClass, [NullAllowed] UTType supertype); [Export ("tags")] NSDictionary> Tags { get; } @@ -123,18 +123,18 @@ namespace UniformTypeIdentifiers { // extension methods used in ShazamKit [Static] - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("SHCustomCatalogContentType", ArgumentSemantic.Strong)] UTType SHCustomCatalogContentType { get; } [Static] - [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("SHSignatureContentType", ArgumentSemantic.Strong)] UTType SHSignatureContentType { get; } } - [Introduced (PlatformName.MacCatalyst, 14,0)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] enum UTTagClass { [Field ("UTTagClassFilenameExtension")] FilenameExtension, @@ -144,8 +144,8 @@ namespace UniformTypeIdentifiers { } // split from UTType for clarity between members (selectors) and constants (fields) - [Introduced (PlatformName.MacCatalyst, 14,0)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Static] interface UTTypes { @@ -287,7 +287,7 @@ namespace UniformTypeIdentifiers { [Field ("UTTypePHPScript")] UTType PhpScript { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("UTTypeMakefile")] UTType Makefile { get; } @@ -545,7 +545,7 @@ namespace UniformTypeIdentifiers { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Category] [BaseType (typeof (NSString))] interface NSString_UTAdditions { @@ -558,7 +558,7 @@ namespace UniformTypeIdentifiers { } [Introduced (PlatformName.MacCatalyst, 14, 0)] - [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] [Category] [BaseType (typeof (NSUrl))] interface NSUrl_UTAdditions { diff --git a/src/usernotifications.cs b/src/usernotifications.cs index 5b0c39a511..9330c6c859 100644 --- a/src/usernotifications.cs +++ b/src/usernotifications.cs @@ -28,7 +28,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [ErrorDomain ("UNErrorDomain")] [Native] public enum UNErrorCode : long { @@ -48,7 +48,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [Native] [Flags] @@ -61,7 +61,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [Native] [Flags] @@ -72,14 +72,16 @@ namespace UserNotifications { AllowInCarPlay = (2 << 0), HiddenPreviewsShowTitle = (1 << 2), HiddenPreviewsShowSubtitle = (1 << 3), - [iOS (13,0)][Watch (6,0)][NoMac] + [iOS (13, 0)] + [Watch (6, 0)] + [NoMac] AllowAnnouncement = (1 << 4), } [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Native] public enum UNAuthorizationStatus : long { NotDetermined = 0, @@ -87,14 +89,15 @@ namespace UserNotifications { Authorized, [iOS (12, 0), TV (12, 0), Watch (5, 0)] Provisional, - [iOS (14,0)][NoMac, NoWatch, NoTV] + [iOS (14, 0)] + [NoMac, NoWatch, NoTV] Ephemeral, } [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Native] public enum UNNotificationSetting : long { NotSupported = 0, @@ -103,7 +106,7 @@ namespace UserNotifications { } [iOS (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [Unavailable (PlatformName.WatchOS)] [Native] @@ -116,7 +119,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Native] [Flags] public enum UNAuthorizationOptions : ulong { @@ -125,57 +128,63 @@ namespace UserNotifications { Sound = (1 << 1), Alert = (1 << 2), CarPlay = (1 << 3), - [iOS (12, 0), TV(12,0), Watch (5,0)] + [iOS (12, 0), TV (12, 0), Watch (5, 0)] CriticalAlert = (1 << 4), - [iOS (12, 0), TV(12,0), Watch (5,0)] + [iOS (12, 0), TV (12, 0), Watch (5, 0)] ProvidesAppNotificationSettings = (1 << 5), - [iOS (12, 0), TV(12,0), Watch (5,0)] + [iOS (12, 0), TV (12, 0), Watch (5, 0)] Provisional = (1 << 6), - [iOS (13,0)][TV (13,0)][Watch (6,0)] - [Deprecated (PlatformName.iOS, 15,0, message: "Announcement is always included.")] - [Deprecated (PlatformName.TvOS, 15,0, message: "Announcement is always included.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Announcement is always included.")] - [Deprecated (PlatformName.MacOSX, 15,0, message: "Announcement is always included.")] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] + [Deprecated (PlatformName.iOS, 15, 0, message: "Announcement is always included.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Announcement is always included.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Announcement is always included.")] + [Deprecated (PlatformName.MacOSX, 15, 0, message: "Announcement is always included.")] Announcement = (1 << 7), - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] TimeSensitive = (1 << 8), } [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Native] [Flags] public enum UNNotificationPresentationOptions : ulong { None = 0, Badge = (1 << 0), Sound = (1 << 1), - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'List | Banner' instead.")] - [Deprecated (PlatformName.TvOS, 14,0, message: "Use 'List | Banner' instead.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'List | Banner' instead.")] - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'List | Banner' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'List | Banner' instead.")] + [Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'List | Banner' instead.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'List | Banner' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'List | Banner' instead.")] Alert = (1 << 2), - [iOS (14,0)][TV (14,0)][Watch (7,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] List = (1 << 3), - [iOS (14,0)][TV (14,0)][Watch (7,0)][Mac (11,0)] + [iOS (14, 0)] + [TV (14, 0)] + [Watch (7, 0)] + [Mac (11, 0)] Banner = (1 << 4), } - [NoWatch, NoTV, iOS (11,0)] - [Mac (10,14)] + [NoWatch, NoTV, iOS (11, 0)] + [Mac (10, 14)] [Native] - public enum UNShowPreviewsSetting : long - { + public enum UNShowPreviewsSetting : long { Always, WhenAuthenticated, Never } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] [Native] - public enum UNNotificationInterruptionLevel : long - { + public enum UNNotificationInterruptionLevel : long { #if XAMCORE_5_0 Passive, Active, @@ -206,7 +215,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs (not user created) interface UNNotification : NSCopying, NSSecureCoding { @@ -220,7 +229,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs (use FromIdentifier) @@ -239,19 +248,19 @@ namespace UserNotifications { [Export ("actionWithIdentifier:title:options:")] UNNotificationAction FromIdentifier (string identifier, string title, UNNotificationActionOptions options); - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("actionWithIdentifier:title:options:icon:")] UNNotificationAction FromIdentifier (string identifier, string title, UNNotificationActionOptions options, [NullAllowed] UNNotificationActionIcon icon); - [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("icon", ArgumentSemantic.Copy)] UNNotificationActionIcon Icon { get; } } [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (UNNotificationAction))] [DisableDefaultCtor] // as per docs (use FromIdentifier) @@ -261,7 +270,7 @@ namespace UserNotifications { [Export ("actionWithIdentifier:title:options:textInputButtonTitle:textInputPlaceholder:")] UNTextInputNotificationAction FromIdentifier (string identifier, string title, UNNotificationActionOptions options, string textInputButtonTitle, string textInputPlaceholder); - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), Watch (8, 0)] [Static] [Export ("actionWithIdentifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:")] UNTextInputNotificationAction FromIdentifier (string identifier, string title, UNNotificationActionOptions options, [NullAllowed] UNNotificationActionIcon icon, string textInputButtonTitle, string textInputPlaceholder); @@ -275,7 +284,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs (use FromIdentifier) @@ -298,7 +307,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [Static] [Internal] @@ -346,7 +355,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs (use FromIdentifier) @@ -367,20 +376,20 @@ namespace UserNotifications { [NoWatch, iOS (11, 0)] [Export ("hiddenPreviewsBodyPlaceholder")] string HiddenPreviewsBodyPlaceholder { get; } - + [Static] [Export ("categoryWithIdentifier:actions:intentIdentifiers:options:")] UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction [] actions, string [] intentIdentifiers, UNNotificationCategoryOptions options); - [NoWatch, iOS (11,0)] + [NoWatch, iOS (11, 0)] [Static] [Export ("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:options:")] - UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction[] actions, string[] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, UNNotificationCategoryOptions options); + UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction [] actions, string [] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, UNNotificationCategoryOptions options); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static] [Export ("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:categorySummaryFormat:options:")] - UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction[] actions, string[] intentIdentifiers, [NullAllowed] string hiddenPreviewsBodyPlaceholder, [NullAllowed] NSString categorySummaryFormat, UNNotificationCategoryOptions options); + UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction [] actions, string [] intentIdentifiers, [NullAllowed] string hiddenPreviewsBodyPlaceholder, [NullAllowed] NSString categorySummaryFormat, UNNotificationCategoryOptions options); [NoWatch, iOS (12, 0)] [Export ("categorySummaryFormat")] @@ -391,7 +400,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs interface UNNotificationContent : NSCopying, NSMutableCopying, NSSecureCoding { @@ -445,26 +454,27 @@ namespace UserNotifications { [Export ("summaryArgumentCount")] nuint SummaryArgumentCount { get; } - [iOS (13,0)] - [TV (13,0)][Watch (6,0)] // no direct mention in headers - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] // no direct mention in headers + [Mac (10, 15)] [NullAllowed, Export ("targetContentIdentifier")] string TargetContentIdentifier { get; [NotImplemented] set; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("contentByUpdatingWithProvider:error:")] [return: NullAllowed] UNNotificationContent Update (IUNNotificationContentProviding fromProvider, [NullAllowed] out NSError outError); - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("interruptionLevel", ArgumentSemantic.Assign)] UNNotificationInterruptionLevel InterruptionLevel { get; } - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("relevanceScore")] double RelevanceScore { get; } - [Watch (9,0), NoTV, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [Watch (9, 0), NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("filterCriteria")] [NullAllowed] string FilterCriteria { get; } @@ -473,13 +483,13 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (UNNotificationContent))] interface UNMutableNotificationContent { [Unavailable (PlatformName.TvOS)] [Export ("attachments", ArgumentSemantic.Copy)] - UNNotificationAttachment[] Attachments { get; set; } + UNNotificationAttachment [] Attachments { get; set; } [NullAllowed, Export ("badge", ArgumentSemantic.Copy)] NSNumber Badge { get; set; } @@ -525,21 +535,22 @@ namespace UserNotifications { [Export ("summaryArgumentCount")] nuint SummaryArgumentCount { get; set; } - [iOS (13,0)] - [TV (13,0)][Watch (6,0)] // no direct mention in headers - [Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Watch (6, 0)] // no direct mention in headers + [Mac (10, 15)] [NullAllowed, Export ("targetContentIdentifier")] string TargetContentIdentifier { get; set; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] [Export ("interruptionLevel", ArgumentSemantic.Assign)] UNNotificationInterruptionLevel InterruptionLevel { get; set; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] [Export ("relevanceScore")] double RelevanceScore { get; set; } - [TV(16,0), Watch (9,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Watch (9, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("filterCriteria")] string FilterCriteria { get; set; } } @@ -547,7 +558,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UNNotificationRequest : NSCopying, NSSecureCoding { @@ -568,7 +579,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [Static] [Internal] @@ -583,7 +594,7 @@ namespace UserNotifications { [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs @@ -604,14 +615,14 @@ namespace UserNotifications { [Wrap ("!IsDefaultAction && !IsDismissAction")] bool IsCustomAction { get; } - [iOS (13,0), NoWatch, NoMac] + [iOS (13, 0), NoWatch, NoMac] [NullAllowed, Export ("targetScene")] UIScene TargetScene { get; } } [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (UNNotificationResponse))] [DisableDefaultCtor] // as per docs @@ -622,8 +633,8 @@ namespace UserNotifications { } [iOS (10, 0)] - [Mac (10,14)] - [Watch (6,0)] + [Mac (10, 14)] + [Watch (6, 0)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs @@ -640,7 +651,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs interface UNNotificationSettings : NSCopying, NSSecureCoding { @@ -690,26 +701,26 @@ namespace UserNotifications { [Export ("providesAppNotificationSettings")] bool ProvidesAppNotificationSettings { get; } - [Watch (6,0), NoTV, NoMac, iOS (13,0)] + [Watch (6, 0), NoTV, NoMac, iOS (13, 0)] [Export ("announcementSetting")] UNNotificationSetting AnnouncementSetting { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), Watch (8,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), Watch (8, 0), TV (15, 0)] [Export ("timeSensitiveSetting")] UNNotificationSetting TimeSensitiveSetting { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), Watch (8,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), Watch (8, 0), TV (15, 0)] [Export ("scheduledDeliverySetting")] UNNotificationSetting ScheduledDeliverySetting { get; } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), Watch (8,0), TV (15,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), Watch (8, 0), TV (15, 0)] [Export ("directMessagesSetting")] UNNotificationSetting DirectMessagesSetting { get; } } [iOS (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.TvOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // as per docs (use provided methods) @@ -719,7 +730,7 @@ namespace UserNotifications { [Export ("defaultSound")] UNNotificationSound Default { get; } - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15,2)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15, 2)] [Static] [Export ("defaultRingtoneSound", ArgumentSemantic.Copy)] UNNotificationSound DefaultRingtoneSound { get; } @@ -734,22 +745,22 @@ namespace UserNotifications { [Export ("defaultCriticalSound", ArgumentSemantic.Copy)] UNNotificationSound DefaultCriticalSound { get; } - [Watch (5,0), iOS (12,0)] + [Watch (5, 0), iOS (12, 0)] [Static] [Export ("defaultCriticalSoundWithAudioVolume:")] UNNotificationSound GetDefaultCriticalSound (float volume); - [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15,2)] + [NoWatch, NoTV, NoMacCatalyst, NoMac, iOS (15, 2)] [Static] [Export ("ringtoneSoundNamed:")] UNNotificationSound GetRingtoneSound (string name); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static] [Export ("criticalSoundNamed:")] UNNotificationSound GetCriticalSound (string name); - [NoWatch, iOS (12,0)] + [NoWatch, iOS (12, 0)] [Static] [Export ("criticalSoundNamed:withAudioVolume:")] UNNotificationSound GetCriticalSound (string name, float volume); @@ -758,7 +769,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [Abstract] // as per docs [DisableDefaultCtor] @@ -771,17 +782,17 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (UNNotificationTrigger))] [DisableDefaultCtor] // as per docs (system created) interface UNPushNotificationTrigger { - + } [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (UNNotificationTrigger))] [DisableDefaultCtor] // as per doc, use supplied method (CreateTrigger) interface UNTimeIntervalNotificationTrigger { @@ -800,7 +811,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [DisableDefaultCtor] // as per doc, use supplied method (CreateTrigger) [BaseType (typeof (UNNotificationTrigger))] interface UNCalendarNotificationTrigger { @@ -828,7 +839,7 @@ namespace UserNotifications { [Export ("region", ArgumentSemantic.Copy)] CLRegion Region { get; } - [Watch (8,0)] + [Watch (8, 0)] [Static] [Export ("triggerWithRegion:repeats:")] UNLocationNotificationTrigger CreateTrigger (CLRegion region, bool repeats); @@ -839,7 +850,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Protocol, Model] [BaseType (typeof (NSObject))] interface UNUserNotificationCenterDelegate { @@ -851,7 +862,7 @@ namespace UserNotifications { [Export ("userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")] void DidReceiveNotificationResponse (UNUserNotificationCenter center, UNNotificationResponse response, Action completionHandler); - [NoWatch, NoTV, Mac (10,14), iOS (12,0)] + [NoWatch, NoTV, Mac (10, 14), iOS (12, 0)] [Export ("userNotificationCenter:openSettingsForNotification:")] void OpenSettings (UNUserNotificationCenter center, [NullAllowed] UNNotification notification); } @@ -859,7 +870,7 @@ namespace UserNotifications { [iOS (10, 0)] [TV (10, 0)] [Watch (3, 0)] - [Mac (10,14)] + [Mac (10, 14)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface UNUserNotificationCenter { @@ -900,7 +911,7 @@ namespace UserNotifications { void GetPendingNotificationRequests (Action completionHandler); [Export ("removePendingNotificationRequestsWithIdentifiers:")] - void RemovePendingNotificationRequests (string[] identifiers); + void RemovePendingNotificationRequests (string [] identifiers); [Export ("removeAllPendingNotificationRequests")] void RemoveAllPendingNotificationRequests (); @@ -912,23 +923,22 @@ namespace UserNotifications { [Unavailable (PlatformName.TvOS)] [Export ("removeDeliveredNotificationsWithIdentifiers:")] - void RemoveDeliveredNotifications (string[] identifiers); + void RemoveDeliveredNotifications (string [] identifiers); [Unavailable (PlatformName.TvOS)] [Export ("removeAllDeliveredNotifications")] void RemoveAllDeliveredNotifications (); [Async] - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("setBadgeCount:withCompletionHandler:")] void SetBadgeCount (nint newBadgeCount, [NullAllowed] Action completionHandler); } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface UNNotificationActionIcon : NSCopying, NSSecureCoding - { + interface UNNotificationActionIcon : NSCopying, NSSecureCoding { [Static] [Export ("iconWithTemplateImageName:")] UNNotificationActionIcon CreateFromTemplate (string imageName); @@ -938,12 +948,11 @@ namespace UserNotifications { UNNotificationActionIcon CreateFromSystem (string imageName); } - interface IUNNotificationContentProviding {} + interface IUNNotificationContentProviding { } - [iOS (15,0), Mac (12,0), MacCatalyst (15,0), TV (15,0), Watch (8,0)] + [iOS (15, 0), Mac (12, 0), MacCatalyst (15, 0), TV (15, 0), Watch (8, 0)] [Protocol] - interface UNNotificationContentProviding - { + interface UNNotificationContentProviding { } } diff --git a/src/usernotificationsui.cs b/src/usernotificationsui.cs index 7a48700542..7a8f0f3a97 100644 --- a/src/usernotificationsui.cs +++ b/src/usernotificationsui.cs @@ -22,8 +22,8 @@ using UserNotifications; namespace UserNotificationsUI { [iOS (10, 0)] - [Mac (11,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [Mac (11, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.TvOS)] [Native] @@ -34,8 +34,8 @@ namespace UserNotificationsUI { } [iOS (10, 0)] - [Mac (11,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [Mac (11, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.TvOS)] [Native] @@ -48,8 +48,8 @@ namespace UserNotificationsUI { interface IUNNotificationContentExtension { } [iOS (10, 0)] - [Mac (11,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [Mac (11, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.TvOS)] [Protocol] @@ -79,8 +79,8 @@ namespace UserNotificationsUI { } [iOS (10, 0)] - [Mac (11,0)] - [Introduced (PlatformName.MacCatalyst, 14,0)] + [Mac (11, 0)] + [Introduced (PlatformName.MacCatalyst, 14, 0)] [Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.TvOS)] [Category] @@ -93,21 +93,21 @@ namespace UserNotificationsUI { [Export ("mediaPlayingPaused")] void MediaPlayingPaused (); - [iOS (12,0)] + [iOS (12, 0)] [Export ("performNotificationDefaultAction")] void PerformNotificationDefaultAction (); - [iOS (12,0)] + [iOS (12, 0)] [Export ("dismissNotificationContentExtension")] void DismissNotificationContentExtension (); // property, but we have to add the two methods since it is a category. [iOS (12, 0)] [Export ("notificationActions")] - UNNotificationAction[] GetNotificationActions (); + UNNotificationAction [] GetNotificationActions (); [iOS (12, 0)] [Export ("setNotificationActions:")] - void SetNotificationActions (UNNotificationAction[] actions); + void SetNotificationActions (UNNotificationAction [] actions); } } diff --git a/src/videosubscriberaccount.cs b/src/videosubscriberaccount.cs index be033a3daf..384307f385 100644 --- a/src/videosubscriberaccount.cs +++ b/src/videosubscriberaccount.cs @@ -26,7 +26,7 @@ namespace VideoSubscriberAccount { [Native] [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [ErrorDomain ("VSErrorDomain")] @@ -44,7 +44,7 @@ namespace VideoSubscriberAccount { [Native] [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] public enum VSAccountAccessStatus : long { @@ -54,34 +54,31 @@ namespace VideoSubscriberAccount { Granted = 3 } - [TV (16,0), Mac (13,0), iOS (16,0), NoMacCatalyst] + [TV (16, 0), Mac (13, 0), iOS (16, 0), NoMacCatalyst] [Native] enum VSUserAccountQueryOption : ulong { None = 0, AllDevices, } - [TV (16,0), NoMacCatalyst, iOS (16,0), Mac (13,0)] + [TV (16, 0), NoMacCatalyst, iOS (16, 0), Mac (13, 0)] [Flags] [Native] - public enum VSUserAccountQueryOptions : long - { + public enum VSUserAccountQueryOptions : long { None = 0x0, AllDevices, } - [TV (16,0), NoMacCatalyst, iOS (16,0), Mac (13,0)] + [TV (16, 0), NoMacCatalyst, iOS (16, 0), Mac (13, 0)] [Native] - public enum VSUserAccountType : long - { + public enum VSUserAccountType : long { Free, Paid, } - [TV (16,0), NoMacCatalyst, iOS (16,0), Mac (13,0)] + [TV (16, 0), NoMacCatalyst, iOS (16, 0), Mac (13, 0)] [Native] - public enum VSOriginatingDeviceCategory : long - { + public enum VSOriginatingDeviceCategory : long { Mobile, Other, } @@ -89,7 +86,7 @@ namespace VideoSubscriberAccount { [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [Static] @@ -105,14 +102,15 @@ namespace VideoSubscriberAccount { [Field ("VSErrorInfoKeyUnsupportedProviderIdentifier")] NSString UnsupportedProviderIdentifierKey { get; } - [TV (10,1)][iOS (10,2)] + [TV (10, 1)] + [iOS (10, 2)] [Field ("VSErrorInfoKeyAccountProviderResponse")] NSString AccountProviderResponseKey { get; } } [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [NoMacCatalyst] [Unavailable (PlatformName.WatchOS)] [StrongDictionary ("VSErrorInfoKeys")] @@ -124,7 +122,8 @@ namespace VideoSubscriberAccount { string UnsupportedProviderIdentifier { get; } - [TV (10,1)][iOS (10,2)] + [TV (10, 1)] + [iOS (10, 2)] string AccountProviderResponse { get; } } @@ -133,7 +132,7 @@ namespace VideoSubscriberAccount { [Protocol, Model] [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -157,14 +156,15 @@ namespace VideoSubscriberAccount { [Export ("accountManager:dismissViewController:")] void DismissViewController (VSAccountManager accountManager, UIViewController viewController); - [iOS (11,0)][TV (11,0)] + [iOS (11, 0)] + [TV (11, 0)] [Export ("accountManager:shouldAuthenticateAccountProviderWithIdentifier:")] bool ShouldAuthenticateAccountProvider (VSAccountManager accountManager, string accountProviderIdentifier); } [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -184,14 +184,15 @@ namespace VideoSubscriberAccount { VSAccountManagerResult Enqueue (VSAccountMetadataRequest accountMetadataRequest, Action completionHandler); [NoMac] - [TV (13,0)][iOS (13,0)] + [TV (13, 0)] + [iOS (13, 0)] [Field ("VSOpenTVProviderSettingsURLString")] NSString OpenTVProviderSettingsUrl { get; } } [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [Static] [Internal] @@ -204,7 +205,7 @@ namespace VideoSubscriberAccount { [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [StrongDictionary ("VSCheckAccessOptionKeys")] @@ -216,7 +217,7 @@ namespace VideoSubscriberAccount { [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -229,7 +230,7 @@ namespace VideoSubscriberAccount { [iOS (10, 0)] [TV (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] [BaseType (typeof (NSObject))] @@ -247,13 +248,14 @@ namespace VideoSubscriberAccount { [NullAllowed, Export ("SAMLAttributeQueryResponse")] string SamlAttributeQueryResponse { get; } - [TV (10,1)][iOS (10,2)] + [TV (10, 1)] + [iOS (10, 2)] [NullAllowed, Export ("accountProviderResponse", ArgumentSemantic.Strong)] VSAccountProviderResponse AccountProviderResponse { get; } } [iOS (10, 0)] - [Mac (10,14)] + [Mac (10, 14)] [TV (10, 0)] [Unavailable (PlatformName.WatchOS)] [NoMacCatalyst] @@ -266,9 +268,10 @@ namespace VideoSubscriberAccount { [Export ("supportedAccountProviderIdentifiers", ArgumentSemantic.Copy)] string [] SupportedAccountProviderIdentifiers { get; set; } - [TV (11,0)][iOS (11,0)] + [TV (11, 0)] + [iOS (11, 0)] [Export ("featuredAccountProviderIdentifiers", ArgumentSemantic.Copy)] - string[] FeaturedAccountProviderIdentifiers { get; set; } + string [] FeaturedAccountProviderIdentifiers { get; set; } [NullAllowed, Export ("verificationToken")] string VerificationToken { get; set; } @@ -292,22 +295,25 @@ namespace VideoSubscriberAccount { string [] AttributeNames { get; set; } [Protected] - [TV (10,1)][iOS (10,2)] + [TV (10, 1)] + [iOS (10, 2)] [Export ("supportedAuthenticationSchemes", ArgumentSemantic.Copy)] - NSString[] SupportedAuthenticationSchemesString { get; set; } + NSString [] SupportedAuthenticationSchemesString { get; set; } - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [NullAllowed, Export ("accountProviderAuthenticationToken")] string AccountProviderAuthenticationToken { get; set; } - [TV (14,2), iOS (14,2), Mac (11,0)] + [TV (14, 2), iOS (14, 2), Mac (11, 0)] [NullAllowed, Export ("applicationAccountProviders", ArgumentSemantic.Copy)] VSAccountApplicationProvider [] ApplicationAccountProviders { get; set; } } - [iOS (10,2)] - [TV (10,1)] - [Mac (10,14)] + [iOS (10, 2)] + [TV (10, 1)] + [Mac (10, 14)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface VSAccountProviderResponse { @@ -326,21 +332,24 @@ namespace VideoSubscriberAccount { string Body { get; } } - [iOS (10,2)] - [TV (10,1)] - [Mac (10,14)] + [iOS (10, 2)] + [TV (10, 1)] + [Mac (10, 14)] [NoMacCatalyst] enum VSAccountProviderAuthenticationScheme { [Field ("VSAccountProviderAuthenticationSchemeSAML")] Saml, - [iOS (13,0)][TV (13,0)][Mac (10,15)] + [iOS (13, 0)] + [TV (13, 0)] + [Mac (10, 15)] [Field ("VSAccountProviderAuthenticationSchemeAPI")] Api, } - [TV (11,0)][iOS (11,0)] - [Mac (10,14)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 14)] [NoMacCatalyst] [Native] public enum VSSubscriptionAccessLevel : long { @@ -349,8 +358,9 @@ namespace VideoSubscriberAccount { Paid, } - [TV (11,0)][iOS (11,0)] - [Mac (10,14)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 14)] [NoMacCatalyst] [BaseType (typeof (NSObject))] interface VSSubscription { @@ -363,15 +373,16 @@ namespace VideoSubscriberAccount { [NullAllowed] // null_resettable [Export ("tierIdentifiers", ArgumentSemantic.Copy)] - string[] TierIdentifiers { get; set; } + string [] TierIdentifiers { get; set; } - [TV (11,3), iOS (11,3)] + [TV (11, 3), iOS (11, 3)] [NullAllowed, Export ("billingIdentifier")] string BillingIdentifier { get; set; } } - [TV (11,0)][iOS (11,0)] - [Mac (10,14)] + [TV (11, 0)] + [iOS (11, 0)] + [Mac (10, 14)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -384,7 +395,7 @@ namespace VideoSubscriberAccount { void SetCurrentSubscription ([NullAllowed] VSSubscription currentSubscription); } - [TV (14,2), iOS (14,2), Mac (11,0)] + [TV (14, 2), iOS (14, 2), Mac (11, 0)] [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -400,11 +411,10 @@ namespace VideoSubscriberAccount { string Identifier { get; } } - [TV (16,0), NoMacCatalyst, iOS (16,0), Mac (13,0)] + [TV (16, 0), NoMacCatalyst, iOS (16, 0), Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface VSUserAccountManager - { + interface VSUserAccountManager { [Static] [Export ("sharedUserAccountManager")] VSUserAccountManager SharedUserAccountManager { get; } @@ -418,11 +428,10 @@ namespace VideoSubscriberAccount { void QueryUserAccounts (VSUserAccountQueryOptions options, Action, NSError> completion); } - [TV (16,0), NoMacCatalyst, iOS (16,0), Mac (13,0)] + [TV (16, 0), NoMacCatalyst, iOS (16, 0), Mac (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface VSUserAccount - { + interface VSUserAccount { [NullAllowed, Export ("updateURL", ArgumentSemantic.Copy)] NSUrl UpdateUrl { get; set; } @@ -445,7 +454,7 @@ namespace VideoSubscriberAccount { NSDate SubscriptionBillingCycleEndDate { get; set; } [NullAllowed, Export ("tierIdentifiers", ArgumentSemantic.Copy)] - string[] TierIdentifiers { get; set; } + string [] TierIdentifiers { get; set; } [NullAllowed, Export ("billingIdentifier")] string BillingIdentifier { get; set; } diff --git a/src/videotoolbox.cs b/src/videotoolbox.cs index b5b00b9300..a9c0a8b4e1 100644 --- a/src/videotoolbox.cs +++ b/src/videotoolbox.cs @@ -14,7 +14,7 @@ using AVFoundation; namespace VideoToolbox { - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTCompressionPropertyKey { // Buffers @@ -42,7 +42,7 @@ namespace VideoToolbox { [Field ("kVTCompressionPropertyKey_AllowFrameReordering")] NSString AllowFrameReordering { get; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Field ("kVTCompressionPropertyKey_AllowOpenGOP")] NSString AllowOpenGop { get; } @@ -57,10 +57,10 @@ namespace VideoToolbox { [Field ("kVTCompressionPropertyKey_Quality")] NSString Quality { get; } - [Mac (10,15), iOS (13,0), TV (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Field ("kVTCompressionPropertyKey_TargetQualityForAlpha")] NSString TargetQualityForAlpha { get; } - + [Field ("kVTCompressionPropertyKey_MoreFramesBeforeStart")] NSString MoreFramesBeforeStart { get; } @@ -73,13 +73,13 @@ namespace VideoToolbox { NSString ProfileLevel { get; } [Field ("kVTCompressionPropertyKey_H264EntropyMode")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264EntropyMode { get; } [Field ("kVTCompressionPropertyKey_Depth")] NSString Depth { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Field ("kVTCompressionPropertyKey_PreserveAlphaChannel")] NSString PreserveAlphaChannel { get; } @@ -92,11 +92,11 @@ namespace VideoToolbox { NSString MaxH264SliceBytes { get; } [Field ("kVTCompressionPropertyKey_RealTime")] - [Mac (10,9)] + [Mac (10, 9)] NSString RealTime { get; } [Field ("kVTCompressionPropertyKey_MaximizePowerEfficiency")] - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] NSString MaximizePowerEfficiency { get; } // Hints @@ -107,19 +107,21 @@ namespace VideoToolbox { [Field ("kVTCompressionPropertyKey_ExpectedFrameRate")] NSString ExpectedFrameRate { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("kVTCompressionPropertyKey_BaseLayerFrameRateFraction")] NSString BaseLayerFrameRateFraction { get; } [Field ("kVTCompressionPropertyKey_ExpectedDuration")] NSString ExpectedDuration { get; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTCompressionPropertyKey_BaseLayerFrameRate")] NSString BaseLayerFrameRate { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Field ("kVTCompressionPropertyKey_ReferenceBufferCount")] NSString ReferenceBufferCount { get; } @@ -138,46 +140,46 @@ namespace VideoToolbox { NSString PixelAspectRatio { get; } [Field ("kVTCompressionPropertyKey_FieldCount")] - NSString FieldCount { get; } + NSString FieldCount { get; } [Field ("kVTCompressionPropertyKey_FieldDetail")] - NSString FieldDetail { get; } + NSString FieldDetail { get; } [Field ("kVTCompressionPropertyKey_AspectRatio16x9")] - NSString AspectRatio16x9 { get; } + NSString AspectRatio16x9 { get; } [Field ("kVTCompressionPropertyKey_ProgressiveScan")] - NSString ProgressiveScan { get; } + NSString ProgressiveScan { get; } // Color [Field ("kVTCompressionPropertyKey_ColorPrimaries")] - NSString ColorPrimaries { get; } + NSString ColorPrimaries { get; } [Field ("kVTCompressionPropertyKey_TransferFunction")] - NSString TransferFunction { get; } + NSString TransferFunction { get; } [Field ("kVTCompressionPropertyKey_YCbCrMatrix")] - NSString YCbCrMatrix { get; } + NSString YCbCrMatrix { get; } [Field ("kVTCompressionPropertyKey_ICCProfile")] - NSString ICCProfile { get; } + NSString ICCProfile { get; } // AlphaChannelMode - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Field ("kVTCompressionPropertyKey_AlphaChannelMode")] NSString AlphaChannelMode { get; } - [Mac (10,9), iOS (13,0), TV (13,0)] + [Mac (10, 9), iOS (13, 0), TV (13, 0)] [Field ("kVTCompressionPropertyKey_GammaLevel")] - NSString GammaLevel { get; } + NSString GammaLevel { get; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTCompressionPropertyKey_MasteringDisplayColorVolume")] NSString MasteringDisplayColorVolume { get; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTCompressionPropertyKey_ContentLightLevelInfo")] NSString ContentLightLevelInfo { get; } @@ -189,74 +191,77 @@ namespace VideoToolbox { // Multi-pass [Field ("kVTCompressionPropertyKey_MultiPassStorage")] - [Mac (10,10)] + [Mac (10, 10)] NSString MultiPassStorage { get; } // Encoder information [Field ("kVTCompressionPropertyKey_EncoderID")] - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] NSString EncoderId { get; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Field ("kVTCompressionPropertyKey_UsingGPURegistryID")] NSString UsingGpuRegistryId { get; } [Watch (7, 0), TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("kVTCompressionPropertyKey_HDRMetadataInsertionMode")] NSString HdrMetadataInsertionMode { get; } [TV (14, 0), Mac (11, 0), iOS (14, 0)] - [MacCatalyst (14,0)] + [MacCatalyst (14, 0)] [Field ("kVTCompressionPropertyKey_PrioritizeEncodingSpeedOverQuality")] NSString PrioritizeEncodingSpeedOverQuality { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Field ("kVTCompressionPropertyKey_ConstantBitRate")] NSString ConstantBitRate { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Field ("kVTCompressionPropertyKey_EstimatedAverageBytesPerFrame")] NSString EstimatedAverageBytesPerFrame { get; } - [iOS (14,1)] - [TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kVTCompressionPropertyKey_PreserveDynamicHDRMetadata")] NSString PreserveDynamicHdrMetadata { get; } - [TV (14,5)][Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Field ("kVTVideoEncoderSpecification_EnableLowLatencyRateControl")] NSString EnableLowLatencyRateControl { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTCompressionPropertyKey_BaseLayerBitRateFraction")] NSString BaseLayerBitRateFraction { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTCompressionPropertyKey_EnableLTR")] NSString EnableLtr { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTCompressionPropertyKey_MaxAllowedFrameQP")] NSString MaxAllowedFrameQP { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Field ("kVTCompressionPropertyKey_MinAllowedFrameQP")] NSString MinAllowedFrameQP { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTCompressionPropertyKey_SupportsBaseFrameQP")] NSString SupportsBaseFrameQP { get; } - [Watch (8,5), TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Watch (8, 5), TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Field ("kVTCompressionPropertyKey_OutputBitDepth")] NSString OutputBitDepth { get; } } - [Mac (10,15), iOS (13,0), TV (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] enum VTAlphaChannelMode { [Field ("kVTAlphaChannelMode_StraightAlpha")] StraightAlpha, @@ -265,7 +270,7 @@ namespace VideoToolbox { PremultipliedAlpha, } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTCompressionPropertyKey")] interface VTCompressionProperties { @@ -290,7 +295,7 @@ namespace VideoToolbox { [Export ("AllowFrameReordering")] bool AllowFrameReordering { get; set; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("AllowOpenGop")] bool AllowOpenGop { get; set; } @@ -309,7 +314,7 @@ namespace VideoToolbox { [Export ("Depth")] CMPixelFormat Depth { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Export ("PreserveAlphaChannel")] bool PreserveAlphaChannel { get; set; } @@ -319,11 +324,11 @@ namespace VideoToolbox { [Export ("MaxH264SliceBytes")] int MaxH264SliceBytes { get; set; } - [Mac (10,9)] + [Mac (10, 9)] [Export ("RealTime")] bool RealTime { get; set; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("MaximizePowerEfficiency")] bool MaximizePowerEfficiency { get; set; } @@ -336,11 +341,11 @@ namespace VideoToolbox { [Export ("ExpectedDuration")] double ExpectedDuration { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Export ("BaseLayerFrameRate")] double BaseLayerFrameRate { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Export ("ReferenceBufferCount")] long ReferenceBufferCount { get; } @@ -365,91 +370,95 @@ namespace VideoToolbox { [Export ("ICCProfile")] NSData ICCProfile { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Export ("MasteringDisplayColorVolume")] NSData MasteringDisplayColorVolume { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Export ("ContentLightLevelInfo")] NSData ContentLightLevelInfo { get; set; } [Export ("PixelTransferProperties")] NSDictionary PixelTransferProperties { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Export ("EncoderId")] string EncoderId { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("TargetQualityForAlpha")] float TargetQualityForAlpha { get; set; } - - [Mac (10,9), iOS (13,0), TV (13,0)] + + [Mac (10, 9), iOS (13, 0), TV (13, 0)] [Export ("GammaLevel")] double GammaLevel { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("UsingGpuRegistryId")] uint UsingGpuRegistryId { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("ConstantBitRate")] long ConstantBitRate { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Export ("EstimatedAverageBytesPerFrame")] long EstimatedAverageBytesPerFrame { get; } - [iOS (14,1)] - [TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Export ("PreserveDynamicHdrMetadata")] bool PreserveDynamicHdrMetadata { get; set; } - [TV (14,5)][Mac (11,3)][iOS (14,5)][NoWatch] - [MacCatalyst (14,5)] + [TV (14, 5)] + [Mac (11, 3)] + [iOS (14, 5)] + [NoWatch] + [MacCatalyst (14, 5)] [Export ("EnableLowLatencyRateControl")] bool EnableLowLatencyRateControl { get; set; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("BaseLayerBitRateFraction")] float BaseLayerBitRateFraction { get; set; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("EnableLtr")] bool EnableLtr { get; set; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("MaxAllowedFrameQP")] uint MaxAllowedFrameQP { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] [Export ("MinAllowedFrameQP")] uint MinAllowedFrameQP { get; } - [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoWatch] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoWatch] [Export ("SupportsBaseFrameQP")] bool SupportsBaseFrameQP { get; } - [Watch (8,5), TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Watch (8, 5), TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("OutputBitDepth")] bool OutputBitDepth { get; set; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTProfileLevelKeys { // HEVC - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTProfileLevel_HEVC_Main_AutoLevel")] NSString Hevc_Main_AutoLevel { get; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTProfileLevel_HEVC_Main10_AutoLevel")] NSString Hevc_Main10_AutoLevel { get; } - [TV (15,4), Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [TV (15, 4), Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Field ("kVTProfileLevel_HEVC_Main42210_AutoLevel")] NSString Hevc_Main42210_AutoLevel { get; } @@ -468,30 +477,30 @@ namespace VideoToolbox { NSString H264_Baseline_3_2 { get; } [Field ("kVTProfileLevel_H264_Baseline_4_0")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_4_0 { get; } [Field ("kVTProfileLevel_H264_Baseline_4_1")] NSString H264_Baseline_4_1 { get; } [Field ("kVTProfileLevel_H264_Baseline_4_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_4_2 { get; } [Field ("kVTProfileLevel_H264_Baseline_5_0")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_5_0 { get; } [Field ("kVTProfileLevel_H264_Baseline_5_1")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_5_1 { get; } [Field ("kVTProfileLevel_H264_Baseline_5_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_5_2 { get; } [Field ("kVTProfileLevel_H264_Baseline_AutoLevel")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Baseline_AutoLevel { get; } [Field ("kVTProfileLevel_H264_Main_3_0")] @@ -510,75 +519,75 @@ namespace VideoToolbox { NSString H264_Main_4_1 { get; } [Field ("kVTProfileLevel_H264_Main_4_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Main_4_2 { get; } [Field ("kVTProfileLevel_H264_Main_5_0")] NSString H264_Main_5_0 { get; } [Field ("kVTProfileLevel_H264_Main_5_1")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Main_5_1 { get; } [Field ("kVTProfileLevel_H264_Main_5_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Main_5_2 { get; } [Field ("kVTProfileLevel_H264_Main_AutoLevel")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Main_AutoLevel { get; } [Field ("kVTProfileLevel_H264_Extended_5_0")] NSString H264_Extended_5_0 { get; } [Field ("kVTProfileLevel_H264_Extended_AutoLevel")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_Extended_AutoLevel { get; } [Field ("kVTProfileLevel_H264_High_3_0")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_3_0 { get; } [Field ("kVTProfileLevel_H264_High_3_1")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_3_1 { get; } [Field ("kVTProfileLevel_H264_High_3_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_3_2 { get; } [Field ("kVTProfileLevel_H264_High_4_0")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_4_0 { get; } [Field ("kVTProfileLevel_H264_High_4_1")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_4_1 { get; } [Field ("kVTProfileLevel_H264_High_4_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_4_2 { get; } [Field ("kVTProfileLevel_H264_High_5_0")] NSString H264_High_5_0 { get; } [Field ("kVTProfileLevel_H264_High_5_1")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_5_1 { get; } [Field ("kVTProfileLevel_H264_High_5_2")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_5_2 { get; } [Field ("kVTProfileLevel_H264_High_AutoLevel")] - [Mac (10,9)] + [Mac (10, 9)] NSString H264_High_AutoLevel { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTProfileLevel_H264_ConstrainedBaseline_AutoLevel")] NSString H264_ConstrainedBaseline_AutoLevel { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTProfileLevel_H264_ConstrainedHigh_AutoLevel")] NSString H264_ConstrainedHigh_AutoLevel { get; } @@ -629,68 +638,68 @@ namespace VideoToolbox { NSString H263_Profile0_Level45 { get; } [Field ("kVTProfileLevel_H263_Profile3_Level45")] - NSString H263_Profile3_Level45 { get; } + NSString H263_Profile3_Level45 { get; } } [Static] - [Mac (10,9), iOS (8,0), TV (10,2)] + [Mac (10, 9), iOS (8, 0), TV (10, 2)] interface VTH264EntropyModeKeys { [Field ("kVTH264EntropyMode_CAVLC")] - NSString CAVLC { get; } + NSString CAVLC { get; } [Field ("kVTH264EntropyMode_CABAC")] - NSString CABAC { get; } + NSString CABAC { get; } } - - [iOS (8,0), TV (10,2)] + + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTVideoEncoderSpecificationKeys")] interface VTVideoEncoderSpecification { - [Mac (10,9), NoiOS, NoTV] + [Mac (10, 9), NoiOS, NoTV] [Export ("EnableHardwareAcceleratedVideoEncoder")] bool EnableHardwareAcceleratedVideoEncoder { get; set; } - [Mac (10,9), NoiOS, NoTV] + [Mac (10, 9), NoiOS, NoTV] [Export ("RequireHardwareAcceleratedVideoEncoder")] bool RequireHardwareAcceleratedVideoEncoder { get; set; } [Export ("EncoderID")] string EncoderID { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("RequiredEncoderGpuRegistryId")] uint RequiredEncoderGpuRegistryId { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("PreferredEncoderGpuRegistryId")] uint PreferredEncoderGpuRegistryId { get; set; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTVideoEncoderSpecificationKeys { [Field ("kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder")] - [Mac (10,9), NoiOS, NoTV] + [Mac (10, 9), NoiOS, NoTV] NSString EnableHardwareAcceleratedVideoEncoder { get; } [Field ("kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder")] - [Mac (10,9), NoiOS, NoTV] + [Mac (10, 9), NoiOS, NoTV] NSString RequireHardwareAcceleratedVideoEncoder { get; } [Field ("kVTVideoEncoderSpecification_EncoderID")] NSString EncoderID { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID")] NSString RequiredEncoderGpuRegistryId { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID")] NSString PreferredEncoderGpuRegistryId { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTEncodeFrameOptionKey")] interface VTEncodeFrameOptions { @@ -698,32 +707,32 @@ namespace VideoToolbox { bool ForceKeyFrame { get; set; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTEncodeFrameOptionKey { // Per-frame configuration [Field ("kVTEncodeFrameOptionKey_ForceKeyFrame")] - NSString ForceKeyFrame { get; } + NSString ForceKeyFrame { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTEncodeFrameOptionKey_AcknowledgedLTRTokens")] NSString AcknowledgedLtrTokens { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTEncodeFrameOptionKey_BaseFrameQP")] NSString BaseFrameQP { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTEncodeFrameOptionKey_ForceLTRRefresh")] NSString ForceLtrRefresh { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTSampleAttachmentKey_RequireLTRAcknowledgementToken")] NSString RequireLtrAcknowledgementToken { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTDecompressionPropertyKey { // Pixel buffer pools @@ -735,7 +744,7 @@ namespace VideoToolbox { NSString PixelBufferPoolIsShared { get; } [Field ("kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount")] - [Mac (10,9)] + [Mac (10, 9)] NSString OutputPoolRequestedMinimumBufferCount { get; } // Asynchronous state @@ -747,7 +756,7 @@ namespace VideoToolbox { NSString MinOutputPresentationTimeStampOfFramesBeingDecoded { get; } [Field ("kVTDecompressionPropertyKey_MaxOutputPresentationTimeStampOfFramesBeingDecoded")] - NSString MaxOutputPresentationTimeStampOfFramesBeingDecoded { get; } + NSString MaxOutputPresentationTimeStampOfFramesBeingDecoded { get; } // Content @@ -756,19 +765,19 @@ namespace VideoToolbox { // Hardware acceleration // hardware acceleration is default behavior on iOS. no opt-in required. - + [Field ("kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder")] - [Mac (10,9)] - NSString UsingHardwareAcceleratedVideoDecoder { get; } + [Mac (10, 9)] + NSString UsingHardwareAcceleratedVideoDecoder { get; } // Decoder behavior [Field ("kVTDecompressionPropertyKey_RealTime")] - [Mac (10,10)] + [Mac (10, 10)] NSString RealTime { get; } [Field ("kVTDecompressionPropertyKey_MaximizePowerEfficiency")] - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] NSString MaximizePowerEfficiency { get; } [Field ("kVTDecompressionPropertyKey_ThreadCount")] @@ -778,7 +787,7 @@ namespace VideoToolbox { NSString FieldMode { get; } [Field ("kVTDecompressionProperty_FieldMode_BothFields")] - NSString FieldMode_BothFields { get; } + NSString FieldMode_BothFields { get; } [Field ("kVTDecompressionProperty_FieldMode_TopFieldOnly")] NSString FieldMode_TopFieldOnly { get; } @@ -796,10 +805,10 @@ namespace VideoToolbox { NSString DeinterlaceMode { get; } [Field ("kVTDecompressionProperty_DeinterlaceMode_VerticalFilter")] - NSString DeinterlaceMode_VerticalFilter { get; } + NSString DeinterlaceMode_VerticalFilter { get; } [Field ("kVTDecompressionProperty_DeinterlaceMode_Temporal")] - NSString DeinterlaceMode_Temporal { get; } + NSString DeinterlaceMode_Temporal { get; } [Field ("kVTDecompressionPropertyKey_ReducedResolutionDecode")] NSString ReducedResolutionDecode { get; } @@ -811,21 +820,21 @@ namespace VideoToolbox { NSString ReducedFrameDelivery { get; } [Field ("kVTDecompressionPropertyKey_OnlyTheseFrames")] - NSString OnlyTheseFrames { get; } + NSString OnlyTheseFrames { get; } [Field ("kVTDecompressionProperty_OnlyTheseFrames_AllFrames")] - NSString OnlyTheseFrames_AllFrames { get; } + NSString OnlyTheseFrames_AllFrames { get; } [Field ("kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames")] - NSString OnlyTheseFrames_NonDroppableFrames { get; } + NSString OnlyTheseFrames_NonDroppableFrames { get; } [Field ("kVTDecompressionProperty_OnlyTheseFrames_IFrames")] - NSString OnlyTheseFrames_IFrames { get; } + NSString OnlyTheseFrames_IFrames { get; } [Field ("kVTDecompressionProperty_OnlyTheseFrames_KeyFrames")] - NSString OnlyTheseFrames_KeyFrames { get; } + NSString OnlyTheseFrames_KeyFrames { get; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Field ("kVTDecompressionProperty_TemporalLevelLimit")] NSString TemporalLevelLimit { get; } @@ -840,8 +849,8 @@ namespace VideoToolbox { [Field ("kVTDecompressionPropertyKey_PixelFormatsWithReducedResolutionSupport")] NSString PixelFormatsWithReducedResolutionSupport { get; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Field ("kVTDecompressionPropertyKey_UsingGPURegistryID")] NSString UsingGpuRegistryId { get; } @@ -850,17 +859,18 @@ namespace VideoToolbox { [Field ("kVTDecompressionPropertyKey_PixelTransferProperties")] NSString PixelTransferProperties { get; } - [iOS (14,1)] - [TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Field ("kVTDecompressionPropertyKey_PropagatePerFrameHDRDisplayMetadata")] NSString PropagatePerFrameHdrDisplayMetadata { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTDecompressionPropertyKey")] - interface VTDecompressionProperties { - + interface VTDecompressionProperties { + [Export ("PixelBufferPoolIsShared")] bool PixelBufferPoolIsShared { get; } @@ -883,14 +893,14 @@ namespace VideoToolbox { // hardware acceleration is default behavior on iOS. no opt-in required. [Export ("UsingHardwareAcceleratedVideoDecoder")] - [Mac (10,9)] - bool UsingHardwareAcceleratedVideoDecoder { get; } + [Mac (10, 9)] + bool UsingHardwareAcceleratedVideoDecoder { get; } - [Mac (10,10)] + [Mac (10, 10)] [Export ("RealTime")] bool RealTime { get; set; } - [Mac (10,14), iOS (12,0), TV (12,0)] + [Mac (10, 14), iOS (12, 0), TV (12, 0)] [Export ("MaximizePowerEfficiency")] bool MaximizePowerEfficiency { get; set; } @@ -907,21 +917,21 @@ namespace VideoToolbox { [Export ("ReducedFrameDelivery")] float ReducedFrameDelivery { get; set; } - [Mac (10,13), iOS (11,0), TV (11,0)] + [Mac (10, 13), iOS (11, 0), TV (11, 0)] [Export ("TemporalLevelLimit")] int TemporalLevelLimit { get; set; } [Export ("SuggestedQualityOfServiceTiers")] - NSDictionary[] SuggestedQualityOfServiceTiers { get; } + NSDictionary [] SuggestedQualityOfServiceTiers { get; } [Export ("SupportedPixelFormatsOrderedByQuality")] - CMPixelFormat[] SupportedPixelFormatsOrderedByQuality { get; } + CMPixelFormat [] SupportedPixelFormatsOrderedByQuality { get; } [Export ("SupportedPixelFormatsOrderedByPerformance")] - CMPixelFormat[] SupportedPixelFormatsOrderedByPerformance { get; } + CMPixelFormat [] SupportedPixelFormatsOrderedByPerformance { get; } [Export ("PixelFormatsWithReducedResolutionSupport")] - CMPixelFormat[] PixelFormatsWithReducedResolutionSupport { get; } + CMPixelFormat [] PixelFormatsWithReducedResolutionSupport { get; } [Advice ("Use Strongly typed version PixelTransferSettings")] [Export ("PixelTransferProperties")] @@ -929,22 +939,23 @@ namespace VideoToolbox { // VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9 [StrongDictionary] - [iOS (9,0)] + [iOS (9, 0)] [Export ("PixelTransferProperties")] VTPixelTransferProperties PixelTransferSettings { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("UsingGpuRegistryId")] uint UsingGpuRegistryId { get; } - [iOS (14,1)] - [TV (14,2)][Mac (11,0)] - [MacCatalyst (14,1)] + [iOS (14, 1)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 1)] [Export ("PropagatePerFrameHdrDisplayMetadata")] bool PropagatePerFrameHhrDisplayMetadata { get; set; } } - [Mac (10,9), iOS (8,0), TV (10,2)] + [Mac (10, 9), iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTVideoDecoderSpecificationKeys")] interface VTVideoDecoderSpecification { [Export ("EnableHardwareAcceleratedVideoDecoder")] @@ -953,16 +964,20 @@ namespace VideoToolbox { [Export ("RequireHardwareAcceleratedVideoDecoder")] bool RequireHardwareAcceleratedVideoDecoder { get; set; } - [Mac (10, 13, 4)][NoiOS][NoTV] + [Mac (10, 13, 4)] + [NoiOS] + [NoTV] [Export ("RequiredDecoderGpuRegistryId")] NSNumber RequiredDecoderGpuRegistryId { get; } - [Mac (10, 13, 4)][NoiOS][NoTV] + [Mac (10, 13, 4)] + [NoiOS] + [NoTV] [Export ("PreferredDecoderGpuRegistryId")] NSNumber PreferredDecoderGpuRegistryId { get; } } - [Mac (10,9), iOS (8,0), TV (10,2)] + [Mac (10, 9), iOS (8, 0), TV (10, 2)] [Static] interface VTVideoDecoderSpecificationKeys { [Field ("kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder")] @@ -971,16 +986,20 @@ namespace VideoToolbox { [Field ("kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder")] NSString RequireHardwareAcceleratedVideoDecoder { get; } - [Mac (10, 13, 4)][NoiOS][NoTV] + [Mac (10, 13, 4)] + [NoiOS] + [NoTV] [Field ("kVTVideoDecoderSpecification_RequiredDecoderGPURegistryID")] NSString RequiredDecoderGpuRegistryId { get; } - [Mac (10, 13, 4)][NoiOS][NoTV] + [Mac (10, 13, 4)] + [NoiOS] + [NoTV] [Field ("kVTVideoDecoderSpecification_PreferredDecoderGPURegistryID")] NSString PreferredDecoderGpuRegistryId { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTDecompressionResolutionKeys")] interface VTDecompressionResolutionOptions { [Export ("Width")] @@ -990,7 +1009,7 @@ namespace VideoToolbox { float Height { get; set; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTDecompressionResolutionKeys { [Field ("kVTDecompressionResolutionKey_Width")] @@ -1001,7 +1020,7 @@ namespace VideoToolbox { } // VTSession.h - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTPropertyKeys")] interface VTPropertyOptions { [Export ("ShouldBeSerialized")] @@ -1014,13 +1033,13 @@ namespace VideoToolbox { NSNumber SupportedValueMaximum { get; set; } [Export ("SupportedValueListKey")] - NSNumber[] SupportedValueList { get; set; } + NSNumber [] SupportedValueList { get; set; } [Export ("DocumentationKey")] NSString Documentation { get; set; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTPropertyKeys { [Field ("kVTPropertyTypeKey")] @@ -1045,7 +1064,7 @@ namespace VideoToolbox { NSString DocumentationKey { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTPropertyTypeKeys { [Field ("kVTPropertyType_Boolean")] @@ -1058,7 +1077,7 @@ namespace VideoToolbox { NSString Number { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] interface VTPropertyReadWriteStatusKeys { [Field ("kVTPropertyReadWriteStatus_ReadOnly")] @@ -1069,7 +1088,7 @@ namespace VideoToolbox { } // VTVideoEncoderList.h - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [Static] [Internal] interface VTVideoEncoderList { @@ -1087,37 +1106,39 @@ namespace VideoToolbox { [Field ("kVTVideoEncoderList_EncoderName")] NSString EncoderName { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_GPURegistryID")] NSString GpuRegistryId { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_SupportedSelectionProperties")] NSString SupportedSelectionProperties { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_PerformanceRating")] NSString PerformanceRating { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_QualityRating")] NSString QualityRating { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_InstanceLimit")] NSString InstanceLimit { get; } - - [Mac (10,14,6), iOS (13,0), TV (13,0)] + + [Mac (10, 14, 6), iOS (13, 0), TV (13, 0)] [Field ("kVTVideoEncoderList_IsHardwareAccelerated")] NSString IsHardwareAccelerated { get; } - [iOS (14,2)][TV (14,2)][Mac (11,0)] - [MacCatalyst (14,2)] + [iOS (14, 2)] + [TV (14, 2)] + [Mac (11, 0)] + [MacCatalyst (14, 2)] [Field ("kVTVideoEncoderList_SupportsFrameReordering")] NSString SupportsFrameReordering { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Field ("kVTVideoEncoderListOption_IncludeStandardDefinitionDVEncoders")] NSString IncludeStandardDefinitionDVEncoders { get; } @@ -1126,14 +1147,14 @@ namespace VideoToolbox { } // VTMultiPassStorage.h - [Mac (10,10), iOS (8,0), TV (10,2)] // not decorated in the header files - but all other definitions are 10.10 & 8.0 + [Mac (10, 10), iOS (8, 0), TV (10, 2)] // not decorated in the header files - but all other definitions are 10.10 & 8.0 [Static] interface VTMultiPassStorageCreationOptionKeys { [Field ("kVTMultiPassStorageCreationOption_DoNotDelete")] NSString DoNotDelete { get; } } - [iOS (8,0), TV (10,2)] + [iOS (8, 0), TV (10, 2)] [StrongDictionary ("VTMultiPassStorageCreationOptionKeys")] interface VTMultiPassStorageCreationOptions { [Export ("DoNotDelete")] @@ -1141,7 +1162,7 @@ namespace VideoToolbox { } // VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9 - [iOS (9,0), TV (10,2)] + [iOS (9, 0), TV (10, 2)] [StrongDictionary ("VTPixelTransferPropertyKeys")] interface VTPixelTransferProperties { [StrongDictionary] @@ -1152,17 +1173,17 @@ namespace VideoToolbox { [Export ("DestinationPixelAspectRatio")] AVVideoPixelAspectRatioSettings DestinationPixelAspectRatio { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [Export ("DestinationICCProfile")] NSData DestinationICCProfile { get; set; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Export ("RealTime")] bool RealTime { get; set; } } // VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9 - [iOS (9,0), TV (10,2)] + [iOS (9, 0), TV (10, 2)] [Static] [AdvancedAttribute] interface VTPixelTransferPropertyKeys { @@ -1207,19 +1228,19 @@ namespace VideoToolbox { // DestinationColorPrimaries - [iOS (10,0)] + [iOS (10, 0)] [Field ("kVTPixelTransferPropertyKey_DestinationColorPrimaries")] NSString DestinationColorPrimaries { get; } // DestinationColorPrimaries - [iOS (10,0)] + [iOS (10, 0)] [Field ("kVTPixelTransferPropertyKey_DestinationTransferFunction")] NSString DestinationTransferFunction { get; } // DestinationICCProfile - [iOS (10,0)] + [iOS (10, 0)] [Field ("kVTPixelTransferPropertyKey_DestinationICCProfile")] NSString DestinationICCProfile { get; } @@ -1227,13 +1248,13 @@ namespace VideoToolbox { [Field ("kVTPixelTransferPropertyKey_DestinationYCbCrMatrix")] NSString DestinationYCbCrMatrix { get; } - - [Mac (10,15), iOS (13,0), TV (13,0)] + + [Mac (10, 15), iOS (13, 0), TV (13, 0)] [Field ("kVTPixelTransferPropertyKey_RealTime")] NSString RealTime { get; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [StrongDictionary ("VTPixelRotationPropertyKeys")] interface VTPixelRotationProperties { [Export ("FlipHorizontalOrientation")] @@ -1243,14 +1264,14 @@ namespace VideoToolbox { bool FlipVerticalOrientation { get; set; } } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), Watch (9,0), TV (16,0)] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), Watch (9, 0), TV (16, 0)] [Static] [Advanced] interface VTPixelRotationPropertyKeys { - + // Rotation - - [Field ("kVTPixelRotationPropertyKey_Rotation")] + + [Field ("kVTPixelRotationPropertyKey_Rotation")] NSString Rotation { get; } // FlipHorizontalOrientation diff --git a/src/vision.cs b/src/vision.cs index 4c2ed457d3..15f3101b43 100644 --- a/src/vision.cs +++ b/src/vision.cs @@ -36,7 +36,7 @@ using NativeHandle = System.IntPtr; namespace Vision { [ErrorDomain ("VNErrorDomain")] - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Native] enum VNErrorCode : long { TuriCore = -1, @@ -63,26 +63,26 @@ namespace Vision { Timeout, } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Native] enum VNRequestTrackingLevel : ulong { Accurate = 0, Fast, } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Native] enum VNImageCropAndScaleOption : ulong { CenterCrop = 0, ScaleFit = 1, ScaleFill = 2, - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] ScaleFitRotate90Ccw = 256 + ScaleFit, - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] ScaleFillRotate90Ccw = 256 + ScaleFill, } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] enum VNBarcodeSymbology { [Field ("VNBarcodeSymbologyAztec")] Aztec, @@ -135,41 +135,40 @@ namespace Vision { [Field ("VNBarcodeSymbologyUPCE")] Upce, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyCodabar")] Codabar, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyGS1DataBar")] GS1DataBar, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyGS1DataBarExpanded")] GS1DataBarExpanded, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyGS1DataBarLimited")] GS1DataBarLimited, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyMicroPDF417")] MicroPdf417, - [iOS (15,0), Mac (12,0), TV (15,0), MacCatalyst (15,0)] + [iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)] [Field ("VNBarcodeSymbologyMicroQR")] MicroQR, } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum VNChirality : long - { + public enum VNChirality : long { Unknown = 0, Left = -1, Right = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNRequestRevision : ulong { Unspecified = 0, @@ -177,94 +176,94 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNCoreMLRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0), MacCatalyst (15,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0), MacCatalyst (15, 0)] [Native] enum VNDetectBarcodesRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (15,0), Mac (12,0), iOS (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0)] Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNDetectFaceLandmarksRequestRevision : ulong { Unspecified = 0, One = 1, Two = 2, - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] Three = 3, } - [TV (12,0), Mac (10,14), iOS (12,0), MacCatalyst (15,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0), MacCatalyst (15, 0)] [Native] enum VNDetectFaceRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, Two = 2, - [TV (15,0), Mac (12,0), iOS (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0)] Three = 3, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNDetectHorizonRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNDetectRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNDetectTextRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNTranslationalImageRegistrationRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNHomographicImageRegistrationRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNTrackObjectRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNTrackRectangleRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNDetectedObjectObservationRequestRevision : ulong { Unspecified = 0, @@ -272,7 +271,7 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNFaceObservationRequestRevision : ulong { Unspecified = 0, @@ -280,7 +279,7 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNRecognizedObjectObservationRequestRevision : ulong { Unspecified = 0, @@ -288,7 +287,7 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNRectangleObservationRequestRevision : ulong { Unspecified = 0, @@ -296,7 +295,7 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNTextObservationRequestRevision : ulong { Unspecified = 0, @@ -304,7 +303,7 @@ namespace Vision { Two = 2, } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Native] enum VNBarcodeObservationRequestRevision : ulong { Unspecified = 0, @@ -312,29 +311,29 @@ namespace Vision { Two = 2, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNClassifyImageRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] enum VNDetectDocumentSegmentationRequestRevision : ulong { One = 1, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNDetectFaceCaptureQualityRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] Two = 2, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNRequestFaceLandmarksConstellation : ulong { NotDefined = 0, @@ -342,62 +341,62 @@ namespace Vision { SeventySixPoints, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNDetectHumanRectanglesRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] Two = 2, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNGenerateAttentionBasedSaliencyImageRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNGenerateImageFeaturePrintRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNGenerateObjectnessBasedSaliencyImageRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNRecognizeAnimalsRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] Two = 2, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNRequestTextRecognitionLevel : long { Accurate = 0, Fast, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNRecognizeTextRequestRevision : ulong { Unspecified = 0, One = 1, - [TV (14,0), Mac (11,0), iOS (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] Two = 2, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Native] enum VNElementType : ulong { Unknown = 0, @@ -405,40 +404,40 @@ namespace Vision { Double = 2, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNDetectContourRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNDetectHumanBodyPoseRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNDetectHumanHandPoseRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNDetectTrajectoriesRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] public enum VNGenerateOpticalFlowRequestComputationAccuracy : ulong { Low = 0, @@ -447,30 +446,30 @@ namespace Vision { VeryHigh, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNGenerateOpticalFlowRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] enum VNGeneratePersonSegmentationRequestRevision : ulong { One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Native] enum VNStatefulRequestRevision : ulong { Unspecified = 0, One = 1, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] enum VNHumanBodyPoseObservationJointName { [DefaultEnumValue] [Field (null)] @@ -534,8 +533,8 @@ namespace Vision { RightAnkle, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] enum VNHumanBodyPoseObservationJointsGroupName { [DefaultEnumValue] [Field (null)] @@ -563,8 +562,8 @@ namespace Vision { All, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] enum VNHumanHandPoseObservationJointName { [DefaultEnumValue] [Field (null)] @@ -634,8 +633,8 @@ namespace Vision { LittleTip, } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] enum VNHumanHandPoseObservationJointsGroupName { [DefaultEnumValue] [Field (null)] @@ -660,35 +659,32 @@ namespace Vision { All, } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum VNGeneratePersonSegmentationRequestQualityLevel : ulong - { + public enum VNGeneratePersonSegmentationRequestQualityLevel : ulong { Accurate = 0, Balanced, Fast, } - - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] - public enum VNPointsClassification : long - { + public enum VNPointsClassification : long { Disconnected = 0, OpenPath, ClosedPath, } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(VNDetectedObjectObservation))] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (VNDetectedObjectObservation))] [DisableDefaultCtor] - interface VNHumanObservation - { + interface VNHumanObservation { [NullAllowed] [Export ("upperBodyOnly")] bool UpperBodyOnly { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNCoreMLModel { @@ -698,19 +694,19 @@ namespace Vision { [return: NullAllowed] VNCoreMLModel FromMLModel (MLModel model, out NSError error); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("inputImageFeatureName")] string InputImageFeatureName { get; set; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("featureProvider", ArgumentSemantic.Strong)] IMLFeatureProvider FeatureProvider { get; set; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] delegate void VNRequestCompletionHandler (VNRequest request, NSError error); - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNCoreMLRequest { @@ -736,32 +732,32 @@ namespace Vision { // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNCoreMLRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNCoreMLRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNCoreMLRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNCoreMLRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectBarcodesRequest { @@ -783,12 +779,12 @@ namespace Vision { VNBarcodeSymbology [] SupportedSymbologies { get; } [Protected] - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportedSymbologiesAndReturnError:")] [return: NullAllowed] NSString [] GetWeakSupportedSymbologies ([NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Wrap ("VNBarcodeSymbologyExtensions.GetValues (GetWeakSupportedSymbologies (out error))")] VNBarcodeSymbology [] GetSupportedSymbologies ([NullAllowed] out NSError error); @@ -796,40 +792,40 @@ namespace Vision { [Export ("symbologies", ArgumentSemantic.Copy)] NSString [] WeakSymbologies { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNBarcodeObservation[] Results { get; } + VNBarcodeObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectBarcodesRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectBarcodesRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectBarcodesRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectBarcodesRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectFaceLandmarksRequest : VNFaceObservationAccepting { @@ -838,49 +834,49 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("revision:supportsConstellation:")] bool SupportsConstellation (VNDetectFaceLandmarksRequestRevision revision, VNRequestFaceLandmarksConstellation constellation); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("constellation", ArgumentSemantic.Assign)] VNRequestFaceLandmarksConstellation Constellation { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNFaceObservation[] Results { get; } + VNFaceObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectFaceLandmarksRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectFaceLandmarksRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectFaceLandmarksRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectFaceLandmarksRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectFaceRectanglesRequest { @@ -889,40 +885,40 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNFaceObservation[] Results { get; } + VNFaceObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectFaceRectanglesRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectFaceRectanglesRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectFaceRectanglesRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectFaceRectanglesRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectHorizonRequest { @@ -931,40 +927,40 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNHorizonObservation[] Results { get; } + VNHorizonObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectHorizonRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectHorizonRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectHorizonRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectHorizonRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectRectanglesRequest { @@ -991,40 +987,40 @@ namespace Vision { [Export ("maximumObservations")] nuint MaximumObservations { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNRectangleObservation[] Results { get; } + VNRectangleObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectRectanglesRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectRectanglesRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectRectanglesRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectRectanglesRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageBasedRequest))] interface VNDetectTextRectanglesRequest { @@ -1036,40 +1032,40 @@ namespace Vision { [Export ("reportCharacterBoxes")] bool ReportCharacterBoxes { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNTextObservation[] Results { get; } + VNTextObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNDetectTextRectanglesRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNDetectTextRectanglesRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNDetectTextRectanglesRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNDetectTextRectanglesRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (NSObject))] @@ -1079,7 +1075,7 @@ namespace Vision { nuint PointCount { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNFaceLandmarkRegion))] interface VNFaceLandmarkRegion2D { @@ -1092,27 +1088,27 @@ namespace Vision { [Export ("pointsInImageOfSize:")] IntPtr _GetPointsInImage (CGSize imageSize); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BindAs (typeof (nfloat []))] [NullAllowed, Export ("precisionEstimatesPerPoint")] NSNumber [] PrecisionEstimatesPerPoint { get; } - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("pointsClassification")] VNPointsClassification PointsClassification { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (NSObject))] - interface VNFaceLandmarks : NSCopying, NSSecureCoding, VNRequestRevisionProviding { + interface VNFaceLandmarks : NSCopying, NSSecureCoding, VNRequestRevisionProviding { [Export ("confidence")] float Confidence { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNFaceLandmarks))] interface VNFaceLandmarks2D { @@ -1159,7 +1155,7 @@ namespace Vision { interface IVNFaceObservationAccepting { } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Protocol] interface VNFaceObservationAccepting { @@ -1168,7 +1164,7 @@ namespace Vision { VNFaceObservation [] InputFaceObservations { get; set; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (VNTargetedImageRequest))] @@ -1296,14 +1292,14 @@ namespace Vision { NativeHandle Constructor (NSData imageData, CGImagePropertyOrientation orientation, VNImageOptions options, VNRequestCompletionHandler completionHandler); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageRegistrationRequest))] interface VNTranslationalImageRegistrationRequest { - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNImageTranslationAlignmentObservation[] Results { get; } + VNImageTranslationAlignmentObservation [] Results { get; } // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] @@ -1427,35 +1423,35 @@ namespace Vision { NativeHandle Constructor (NSData imageData, CGImagePropertyOrientation orientation, VNImageOptions options, VNRequestCompletionHandler completionHandler); // into subclasses so the correct class_ptr is used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNTranslationalImageRegistrationRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNTranslationalImageRegistrationRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNTranslationalImageRegistrationRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageRegistrationRequest))] interface VNHomographicImageRegistrationRequest { - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNImageHomographicAlignmentObservation[] Results { get; } + VNImageHomographicAlignmentObservation [] Results { get; } // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] @@ -1582,32 +1578,32 @@ namespace Vision { // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNHomographicImageRegistrationRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNHomographicImageRegistrationRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNHomographicImageRegistrationRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNHomographicImageRegistrationRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (NSObject))] @@ -1619,13 +1615,13 @@ namespace Vision { [Export ("confidence")] float Confidence { get; } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("timeRange", ArgumentSemantic.Assign)] CMTimeRange TimeRange { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNDetectedObjectObservation { @@ -1634,7 +1630,7 @@ namespace Vision { [Export ("observationWithBoundingBox:")] VNDetectedObjectObservation FromBoundingBox (CGRect boundingBox); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("observationWithRequestRevision:boundingBox:")] VNDetectedObjectObservation FromBoundingBox (VNDetectedObjectObservationRequestRevision requestRevision, CGRect boundingBox); @@ -1642,12 +1638,12 @@ namespace Vision { [Export ("boundingBox", ArgumentSemantic.Assign)] CGRect BoundingBox { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("globalSegmentationMask")] VNPixelBufferObservation GlobalSegmentationMask { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNDetectedObjectObservation))] interface VNFaceObservation { @@ -1660,7 +1656,7 @@ namespace Vision { [Export ("observationWithBoundingBox:")] VNFaceObservation FromBoundingBox (CGRect boundingBox); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("observationWithRequestRevision:boundingBox:")] VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox); @@ -1668,38 +1664,38 @@ namespace Vision { [Deprecated (PlatformName.MacOSX, 12, 0)] [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.TvOS, 15, 0)] - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("faceObservationWithRequestRevision:boundingBox:roll:yaw:")] - VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber yaw); + VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed][BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed][BindAs (typeof (nfloat?))] NSNumber yaw); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch:")] - VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber yaw, [NullAllowed] [BindAs (typeof (nfloat?))] NSNumber pitch); + VNFaceObservation FromBoundingBox (VNFaceObservationRequestRevision requestRevision, CGRect boundingBox, [NullAllowed][BindAs (typeof (nfloat?))] NSNumber roll, [NullAllowed][BindAs (typeof (nfloat?))] NSNumber yaw, [NullAllowed][BindAs (typeof (nfloat?))] NSNumber pitch); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BindAs (typeof (float?))] [NullAllowed, Export ("faceCaptureQuality", ArgumentSemantic.Strong)] NSNumber FaceCaptureQuality { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BindAs (typeof (nfloat?))] [NullAllowed, Export ("roll", ArgumentSemantic.Strong)] NSNumber Roll { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BindAs (typeof (nfloat?))] [NullAllowed, Export ("yaw", ArgumentSemantic.Strong)] NSNumber Yaw { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BindAs (typeof (nfloat?))] [NullAllowed, Export ("pitch", ArgumentSemantic.Strong)] NSNumber Pitch { get; } } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [BaseType (typeof (VNDetectedObjectObservation))] [DisableDefaultCtor] interface VNRecognizedObjectObservation { @@ -1717,7 +1713,7 @@ namespace Vision { VNClassificationObservation [] Labels { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNClassificationObservation { @@ -1727,20 +1723,20 @@ namespace Vision { // From interface VNClassificationObservation - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("hasPrecisionRecallCurve")] bool HasPrecisionRecallCurve { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("hasMinimumRecall:forPrecision:")] bool HasMinimumRecall (float minimumRecall, float precision); - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("hasMinimumPrecision:forRecall:")] bool HasMinimumPrecision (float minimumPrecision, float recall); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNCoreMLFeatureValueObservation { @@ -1748,12 +1744,12 @@ namespace Vision { [Export ("featureValue", ArgumentSemantic.Copy)] MLFeatureValue FeatureValue { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("featureName")] string FeatureName { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNPixelBufferObservation { @@ -1761,17 +1757,17 @@ namespace Vision { [Export ("pixelBuffer")] CVPixelBuffer PixelBuffer { get; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [NullAllowed, Export ("featureName")] string FeatureName { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNDetectedObjectObservation))] interface VNRectangleObservation { - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Static] [Export ("rectangleObservationWithRequestRevision:topLeft:bottomLeft:bottomRight:topRight:")] VNRectangleObservation GetRectangleObservation (VNRectangleObservationRequestRevision requestRevision, CGPoint topLeft, CGPoint bottomLeft, CGPoint bottomRight, CGPoint topRight); @@ -1793,13 +1789,13 @@ namespace Vision { [Export ("observationWithBoundingBox:")] VNRectangleObservation FromBoundingBox (CGRect boundingBox); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("observationWithRequestRevision:boundingBox:")] VNRectangleObservation FromBoundingBox (VNRectangleObservationRequestRevision requestRevision, CGRect boundingBox); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNRectangleObservation))] interface VNTextObservation { @@ -1812,13 +1808,13 @@ namespace Vision { [Export ("observationWithBoundingBox:")] VNTextObservation FromBoundingBox (CGRect boundingBox); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("observationWithRequestRevision:boundingBox:")] VNTextObservation FromBoundingBox (VNTextObservationRequestRevision requestRevision, CGRect boundingBox); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (VNRectangleObservation))] interface VNBarcodeObservation { @@ -1837,7 +1833,7 @@ namespace Vision { [Export ("observationWithBoundingBox:")] VNBarcodeObservation FromBoundingBox (CGRect boundingBox); - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("observationWithRequestRevision:boundingBox:")] VNBarcodeObservation FromBoundingBox (VNBarcodeObservationRequestRevision requestRevision, CGRect boundingBox); @@ -1846,7 +1842,7 @@ namespace Vision { string PayloadStringValue { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNHorizonObservation { @@ -1857,19 +1853,19 @@ namespace Vision { [Export ("angle")] nfloat Angle { get; } - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("transformForImageWidth:height:")] CGAffineTransform CreateTransform (nuint width, nuint height); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (VNObservation))] interface VNImageAlignmentObservation { } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageAlignmentObservation))] interface VNImageTranslationAlignmentObservation { @@ -1884,7 +1880,7 @@ namespace Vision { } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [DisableDefaultCtor] [BaseType (typeof (VNImageAlignmentObservation))] interface VNImageHomographicAlignmentObservation { @@ -1900,7 +1896,7 @@ namespace Vision { } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (NSObject))] @@ -1926,7 +1922,7 @@ namespace Vision { [Export ("usesCPUOnly")] bool UsesCpuOnly { get; set; } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("cancel")] void Cancel (); @@ -1959,7 +1955,7 @@ namespace Vision { //VNRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [DisableDefaultCtor] [BaseType (typeof (VNRequest))] @@ -1973,7 +1969,7 @@ namespace Vision { CGRect RegionOfInterest { get; set; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Internal] [Static] interface VNImageOptionKeys { @@ -1987,7 +1983,7 @@ namespace Vision { NSString CIContextKey { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [StrongDictionary ("VNImageOptionKeys")] interface VNImageOptions { [Export ("PropertiesKey")] // Have the option to set your own dict @@ -2000,7 +1996,7 @@ namespace Vision { CIContext CIContext { get; set; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNImageRequestHandler { @@ -2065,23 +2061,23 @@ namespace Vision { [Wrap ("this (imageData, orientation, imageOptions.GetDictionary ()!)")] NativeHandle Constructor (NSData imageData, CGImagePropertyOrientation orientation, VNImageOptions imageOptions); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithCMSampleBuffer:options:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, NSDictionary options); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, imageOptions.GetDictionary ()!)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, VNImageOptions imageOptions); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithCMSampleBuffer:orientation:options:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, NSDictionary options); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, orientation, imageOptions.GetDictionary ()!)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, VNImageOptions imageOptions); @@ -2089,7 +2085,7 @@ namespace Vision { bool Perform (VNRequest [] requests, out NSError error); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // it's a designated initializer interface VNSequenceRequestHandler { @@ -2128,18 +2124,18 @@ namespace Vision { [Export ("performRequests:onImageData:orientation:error:")] bool Perform (VNRequest [] requests, NSData imageData, CGImagePropertyOrientation orientation, out NSError error); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("performRequests:onCMSampleBuffer:error:")] - bool Perform (VNRequest[] requests, CMSampleBuffer sampleBuffer, [NullAllowed] out NSError error); + bool Perform (VNRequest [] requests, CMSampleBuffer sampleBuffer, [NullAllowed] out NSError error); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("performRequests:onCMSampleBuffer:orientation:error:")] - bool Perform (VNRequest[] requests, CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, [NullAllowed] out NSError error); + bool Perform (VNRequest [] requests, CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, [NullAllowed] out NSError error); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] @@ -2265,48 +2261,48 @@ namespace Vision { [Wrap ("this (imageData, orientation, options.GetDictionary ()!, completionHandler)")] NativeHandle Constructor (NSData imageData, CGImagePropertyOrientation orientation, VNImageOptions options, VNRequestCompletionHandler completionHandler); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithTargetedCMSampleBuffer:options:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, NSDictionary optionsDict); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, options.GetDictionary ()!)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, VNImageOptions options); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithTargetedCMSampleBuffer:options:completionHandler:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, NSDictionary optionsDict, [NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, options.GetDictionary ()!, completionHandler)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, VNImageOptions options, VNRequestCompletionHandler completionHandler); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithTargetedCMSampleBuffer:orientation:options:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, NSDictionary optionsDict); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, orientation, options.GetDictionary ()!)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, VNImageOptions options); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithTargetedCMSampleBuffer:orientation:options:completionHandler:")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, NSDictionary optionsDict, [NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Wrap ("this (sampleBuffer, orientation, options.GetDictionary ()!, completionHandler)")] NativeHandle Constructor (CMSampleBuffer sampleBuffer, CGImagePropertyOrientation orientation, VNImageOptions options, VNRequestCompletionHandler completionHandler); } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (VNTrackingRequest))] [DisableDefaultCtor] interface VNTrackObjectRequest { @@ -2325,32 +2321,32 @@ namespace Vision { // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNTrackObjectRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNTrackObjectRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNTrackObjectRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNTrackObjectRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [BaseType (typeof (VNTrackingRequest))] [DisableDefaultCtor] interface VNTrackRectangleRequest { @@ -2370,32 +2366,32 @@ namespace Vision { // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') // into subclasses so the correct class_ptr is used for the static members and the right enum type is also used. - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Export ("revision")] VNTrackRectangleRequestRevision Revision { get; set; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("supportedRevisions", ArgumentSemantic.Copy)] NSIndexSet WeakSupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Wrap ("GetSupportedVersions (WeakSupportedRevisions)")] VNTrackRectangleRequestRevision [] SupportedRevisions { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("defaultRevision")] VNTrackRectangleRequestRevision DefaultRevision { get; } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Static] [Export ("currentRevision")] VNTrackRectangleRequestRevision CurrentRevision { get; } } - [TV (11,0), Mac (10,13), iOS (11,0)] + [TV (11, 0), Mac (10, 13), iOS (11, 0)] [Abstract] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] @@ -2415,7 +2411,7 @@ namespace Vision { bool LastFrame { [Bind ("isLastFrame")] get; set; } } - [TV (12,0), Mac (10,14), iOS (12,0)] + [TV (12, 0), Mac (10, 14), iOS (12, 0)] [Protocol] interface VNRequestRevisionProviding { @@ -2424,7 +2420,7 @@ namespace Vision { VNRequestRevision RequestRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNClassifyImageRequest { @@ -2441,14 +2437,14 @@ namespace Vision { [return: NullAllowed] VNClassificationObservation [] GetKnownClassifications (VNClassifyImageRequestRevision revision, [NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportedIdentifiersAndReturnError:")] [return: NullAllowed] - NSString[] GetSupportedIdentifiers ([NullAllowed] out NSError error); + NSString [] GetSupportedIdentifiers ([NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNClassificationObservation[] Results { get; } + VNClassificationObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2474,7 +2470,7 @@ namespace Vision { VNClassifyImageRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNDetectFaceCaptureQualityRequest : VNFaceObservationAccepting { @@ -2483,9 +2479,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNFaceObservation[] Results { get; } + VNFaceObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2511,7 +2507,7 @@ namespace Vision { VNDetectFaceCaptureQualityRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNDetectHumanRectanglesRequest { @@ -2520,13 +2516,13 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("upperBodyOnly")] bool UpperBodyOnly { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNHumanObservation[] Results { get; } + VNHumanObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2552,7 +2548,7 @@ namespace Vision { VNDetectHumanRectanglesRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNGenerateAttentionBasedSaliencyImageRequest { @@ -2561,9 +2557,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNRecognizedTextObservation[] Results { get; } + VNRecognizedTextObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2589,7 +2585,7 @@ namespace Vision { VNGenerateAttentionBasedSaliencyImageRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNGenerateImageFeaturePrintRequest { @@ -2601,9 +2597,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNFeaturePrintObservation[] Results { get; } + VNFeaturePrintObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2629,7 +2625,7 @@ namespace Vision { VNGenerateImageFeaturePrintRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNGenerateObjectnessBasedSaliencyImageRequest { @@ -2638,9 +2634,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNSaliencyImageObservation[] Results { get; } + VNSaliencyImageObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2666,7 +2662,7 @@ namespace Vision { VNGenerateObjectnessBasedSaliencyImageRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNRecognizedText : NSCopying, NSSecureCoding, VNRequestRevisionProviding { @@ -2682,7 +2678,7 @@ namespace Vision { VNRectangleObservation GetBoundingBox (NSRange range, [NullAllowed] out NSError error); } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNRectangleObservation))] [DisableDefaultCtor] interface VNRecognizedTextObservation { @@ -2695,7 +2691,7 @@ namespace Vision { VNRecognizedTextObservation Create (CGRect boundingBox); } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [DisableDefaultCtor] [BaseType (typeof (VNPixelBufferObservation))] interface VNSaliencyImageObservation { @@ -2704,7 +2700,7 @@ namespace Vision { VNRectangleObservation [] SalientObjects { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNObservation))] [DisableDefaultCtor] interface VNFeaturePrintObservation { @@ -2723,7 +2719,7 @@ namespace Vision { bool _ComputeDistance (IntPtr outDistance, VNFeaturePrintObservation featurePrint, [NullAllowed] out NSError error); } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] enum VNAnimalIdentifier { [DefaultEnumValue] @@ -2737,7 +2733,7 @@ namespace Vision { Cat, } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNRecognizeAnimalsRequest { @@ -2751,7 +2747,7 @@ namespace Vision { [return: BindAs (typeof (VNAnimalIdentifier []))] NSString [] GetKnownAnimalIdentifiers (VNRecognizeAnimalsRequestRevision revision, [NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportedIdentifiersAndReturnError:")] [return: NullAllowed] [return: BindAs (typeof (VNAnimalIdentifier []))] @@ -2761,9 +2757,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNRecognizedObjectObservation[] Results { get; } + VNRecognizedObjectObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2789,7 +2785,7 @@ namespace Vision { VNRecognizeAnimalsRequestRevision CurrentRevision { get; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNRecognizeTextRequest : VNRequestProgressProviding { @@ -2802,10 +2798,10 @@ namespace Vision { [return: NullAllowed] string [] GetSupportedRecognitionLanguages (VNRequestTextRecognitionLevel textRecognitionLevel, VNRecognizeTextRequestRevision revision, [NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("supportedRecognitionLanguagesAndReturnError:")] [return: NullAllowed] - NSString[] GetSupportedRecognitionLanguages ([NullAllowed] out NSError error); + NSString [] GetSupportedRecognitionLanguages ([NullAllowed] out NSError error); [Export ("recognitionLanguages", ArgumentSemantic.Copy)] string [] RecognitionLanguages { get; set; } @@ -2826,9 +2822,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNRecognizedTextObservation[] Results { get; } + VNRecognizedTextObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2853,16 +2849,16 @@ namespace Vision { [Export ("currentRevision")] VNRecognizeTextRequestRevision CurrentRevision { get; } - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("automaticallyDetectsLanguage")] bool AutomaticallyDetectsLanguage { get; set; } } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] delegate void VNRequestProgressHandler (VNRequest request, double fractionCompleted, [NullAllowed] NSError error); interface IVNRequestProgressProviding { } - [TV (13,0), Mac (10,15), iOS (13,0)] + [TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protocol] interface VNRequestProgressProviding { @@ -2875,8 +2871,8 @@ namespace Vision { bool Indeterminate { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNDetectContoursRequest { @@ -2884,7 +2880,7 @@ namespace Vision { [Export ("contrastAdjustment")] float ContrastAdjustment { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("contrastPivot", ArgumentSemantic.Assign)] NSNumber ContrastPivot { get; set; } @@ -2898,9 +2894,9 @@ namespace Vision { [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNContoursObservation[] Results { get; } + VNContoursObservation [] Results { get; } // We must inline the following 5 properties // ('Revision', 'WeakSupportedRevisions', 'SupportedRevisions', 'DefaultRevision' and 'CurrentRevision') @@ -2926,8 +2922,8 @@ namespace Vision { VNDetectContourRequestRevision CurrentRevision { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNRecognizedPointsObservation))] [DisableDefaultCtor] interface VNHumanBodyPoseObservation { @@ -2949,8 +2945,8 @@ namespace Vision { NSDictionary GetRecognizedPoints ([BindAs (typeof (VNHumanBodyPoseObservationJointsGroupName))] NSString jointsGroupName, [NullAllowed] out NSError error); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNDetectHumanBodyPoseRequest { @@ -2998,8 +2994,8 @@ namespace Vision { VNDetectHumanBodyPoseRequestRevision CurrentRevision { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNRecognizedPointsObservation))] [DisableDefaultCtor] interface VNHumanHandPoseObservation { @@ -3020,13 +3016,13 @@ namespace Vision { [return: NullAllowed] NSDictionary GetRecognizedPoints ([BindAs (typeof (VNHumanHandPoseObservationJointsGroupName))] NSString jointsGroupName, [NullAllowed] out NSError error); - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("chirality")] VNChirality Chirality { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNDetectHumanHandPoseRequest { @@ -3077,8 +3073,8 @@ namespace Vision { VNDetectHumanHandPoseRequestRevision CurrentRevision { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNStatefulRequest))] [DisableDefaultCtor] interface VNDetectTrajectoriesRequest { @@ -3098,7 +3094,7 @@ namespace Vision { [NullAllowed, Export ("results", ArgumentSemantic.Copy)] VNTrajectoryObservation [] Results { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("targetFrameTime", ArgumentSemantic.Assign)] CMTime TargetFrameTime { get; set; } @@ -3126,8 +3122,8 @@ namespace Vision { VNDetectTrajectoriesRequestRevision CurrentRevision { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNPoint : NSCopying, NSSecureCoding { @@ -3160,8 +3156,8 @@ namespace Vision { double Y { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNVector : NSCopying, NSSecureCoding { @@ -3220,8 +3216,8 @@ namespace Vision { double SquaredLength { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNCircle : NSCopying, NSSecureCoding { @@ -3254,8 +3250,8 @@ namespace Vision { double Diameter { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Not meant to be created but obtained via VNContoursObservation interface VNContour : NSCopying, VNRequestRevisionProviding { @@ -3293,8 +3289,8 @@ namespace Vision { VNContour GetPolygonApproximation (float epsilon, [NullAllowed] out NSError error); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNPoint))] [DisableDefaultCtor] interface VNDetectedPoint { @@ -3303,8 +3299,8 @@ namespace Vision { float Confidence { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNDetectedPoint))] [DisableDefaultCtor] interface VNRecognizedPoint { @@ -3314,8 +3310,8 @@ namespace Vision { NSString Identifier { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNGeometryUtils { @@ -3328,7 +3324,7 @@ namespace Vision { [Static] [Export ("boundingCircleForPoints:error:")] [return: NullAllowed] - VNCircle CreateBoundingCircle (VNPoint[] points, [NullAllowed] out NSError error); + VNCircle CreateBoundingCircle (VNPoint [] points, [NullAllowed] out NSError error); [Internal] [Static] @@ -3345,8 +3341,8 @@ namespace Vision { bool CalculatePerimeter (out double perimeter, VNContour contour, [NullAllowed] out NSError error); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNTargetedImageRequest))] interface VNGenerateOpticalFlowRequest { @@ -3357,9 +3353,9 @@ namespace Vision { [Export ("outputPixelFormat")] CVPixelFormatType OutputPixelFormat { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNPixelBufferObservation[] Results { get; } + VNPixelBufferObservation [] Results { get; } // Inlined from parent class [Export ("initWithTargetedCVPixelBuffer:options:")] @@ -3505,15 +3501,14 @@ namespace Vision { [Export ("currentRevision")] VNGenerateOpticalFlowRequestRevision CurrentRevision { get; } - [TV (16,0), Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("keepNetworkOutput")] bool KeepNetworkOutput { get; set; } } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(VNStatefulRequest))] - interface VNGeneratePersonSegmentationRequest - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (VNStatefulRequest))] + interface VNGeneratePersonSegmentationRequest { [Static] [Export ("new")] [return: Release] @@ -3532,20 +3527,20 @@ namespace Vision { uint OutputPixelFormat { get; set; } [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNPixelBufferObservation[] Results { get; } + VNPixelBufferObservation [] Results { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNObservation))] [DisableDefaultCtor] interface VNTrajectoryObservation { [Export ("detectedPoints", ArgumentSemantic.Copy)] - VNPoint[] DetectedPoints { get; } + VNPoint [] DetectedPoints { get; } [Export ("projectedPoints", ArgumentSemantic.Copy)] - VNPoint[] ProjectedPoints { get; } + VNPoint [] ProjectedPoints { get; } [Export ("equationCoefficients")] Vector3 EquationCoefficients { @@ -3553,13 +3548,13 @@ namespace Vision { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("movingAverageRadius")] nfloat MovingAverageRadius { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNObservation))] [DisableDefaultCtor] interface VNContoursObservation { @@ -3588,8 +3583,8 @@ namespace Vision { CGPath NormalizedPath { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNObservation))] [DisableDefaultCtor] interface VNRecognizedPointsObservation { @@ -3631,8 +3626,8 @@ namespace Vision { MLMultiArray GetKeypoints (out NSError error); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNImageBasedRequest))] [DisableDefaultCtor] interface VNStatefulRequest { @@ -3670,8 +3665,8 @@ namespace Vision { VNStatefulRequestRevision CurrentRevision { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNVideoProcessor { @@ -3692,16 +3687,16 @@ namespace Vision { void Cancel (); } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNVideoProcessorCadence : NSCopying { } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNVideoProcessorCadence))] [DisableDefaultCtor] interface VNVideoProcessorFrameRateCadence { @@ -3714,8 +3709,8 @@ namespace Vision { nint FrameRate { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (VNVideoProcessorCadence))] [DisableDefaultCtor] interface VNVideoProcessorTimeIntervalCadence { @@ -3728,8 +3723,8 @@ namespace Vision { double TimeInterval { get; } } - [TV (14,0), Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [TV (14, 0), Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] interface VNVideoProcessorRequestProcessingOptions : NSCopying { @@ -3737,15 +3732,14 @@ namespace Vision { VNVideoProcessorCadence Cadence { get; set; } } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - [BaseType (typeof(VNImageBasedRequest))] - interface VNDetectDocumentSegmentationRequest - { + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + [BaseType (typeof (VNImageBasedRequest))] + interface VNDetectDocumentSegmentationRequest { [Export ("initWithCompletionHandler:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] VNRequestCompletionHandler completionHandler); [NullAllowed, Export ("results", ArgumentSemantic.Copy)] - VNRectangleObservation[] Results { get; } + VNRectangleObservation [] Results { get; } } } diff --git a/src/visionkit.cs b/src/visionkit.cs index 0ced2fe7e9..1e1673ecf9 100644 --- a/src/visionkit.cs +++ b/src/visionkit.cs @@ -14,7 +14,7 @@ using UIKit; namespace VisionKit { - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface VNDocumentCameraScan { @@ -29,7 +29,7 @@ namespace VisionKit { string Title { get; } } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] [BaseType (typeof (UIViewController))] interface VNDocumentCameraViewController { @@ -49,7 +49,7 @@ namespace VisionKit { interface IVNDocumentCameraViewControllerDelegate { } - [NoWatch, NoTV, NoMac, iOS (13,0)] + [NoWatch, NoTV, NoMac, iOS (13, 0)] #if NET [Protocol, Model] #else diff --git a/src/watchconnectivity.cs b/src/watchconnectivity.cs index 6617ebb5c5..bf0e5f240a 100644 --- a/src/watchconnectivity.cs +++ b/src/watchconnectivity.cs @@ -17,7 +17,7 @@ namespace WatchConnectivity { delegate void WCSessionReplyHandler (NSDictionary replyMessage); delegate void WCSessionReplyDataHandler (NSData replyMessage); - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WCSession { @@ -30,7 +30,8 @@ namespace WatchConnectivity { [Export ("defaultSession")] WCSession DefaultSession { get; } - [Export ("delegate", ArgumentSemantic.Weak)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Weak)] + [NullAllowed] IWCSessionDelegate Delegate { get; set; } [Export ("activateSession")] @@ -78,7 +79,7 @@ namespace WatchConnectivity { #if !WATCH [Export ("transferCurrentComplicationUserInfo:")] - WCSessionUserInfoTransfer TransferCurrentComplicationUserInfo (NSDictionary userInfo); + WCSessionUserInfoTransfer TransferCurrentComplicationUserInfo (NSDictionary userInfo); #endif [Export ("outstandingUserInfoTransfers", ArgumentSemantic.Copy)] @@ -93,27 +94,30 @@ namespace WatchConnectivity { [Field ("WCErrorDomain")] NSString ErrorDomain { get; } - [Watch (2,2)][iOS (9, 3)] + [Watch (2, 2)] + [iOS (9, 3)] [Export ("activationState")] WCSessionActivationState ActivationState { get; } - [Watch (3,0)][iOS (10,0)] + [Watch (3, 0)] + [iOS (10, 0)] [Export ("hasContentPending")] bool HasContentPending { get; } - [NoWatch][iOS (10,0)] + [NoWatch] + [iOS (10, 0)] [Export ("remainingComplicationUserInfoTransfers")] nuint RemainingComplicationUserInfoTransfers { get; } - [Watch (6,0)] + [Watch (6, 0)] [NoiOS] [Export ("companionAppInstalled")] - bool CompanionAppInstalled { [Bind("isCompanionAppInstalled")] get; } + bool CompanionAppInstalled { [Bind ("isCompanionAppInstalled")] get; } } interface IWCSessionDelegate { } - [iOS (9,0)] + [iOS (9, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface WCSessionDelegate { @@ -156,31 +160,34 @@ namespace WatchConnectivity { #if NET [Abstract] // OS 10 beta 1 SDK made this required #endif - [Watch (2,2)][iOS (9,3)] + [Watch (2, 2)] + [iOS (9, 3)] [Export ("session:activationDidCompleteWithState:error:")] void ActivationDidComplete (WCSession session, WCSessionActivationState activationState, [NullAllowed] NSError error); #if NET [Abstract] // OS 10 beta 1 SDK made this required #endif - [NoWatch][iOS (9,3)] + [NoWatch] + [iOS (9, 3)] [Export ("sessionDidBecomeInactive:")] void DidBecomeInactive (WCSession session); #if NET [Abstract] // OS 10 beta 1 SDK made this required #endif - [NoWatch][iOS (9,3)] + [NoWatch] + [iOS (9, 3)] [Export ("sessionDidDeactivate:")] void DidDeactivate (WCSession session); - [Watch (6,0)] + [Watch (6, 0)] [NoiOS] [Export ("sessionCompanionAppInstalledDidChange:")] void CompanionAppInstalledDidChange (WCSession session); } - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no handle, doc: You do not create instances of this class directly. interface WCSessionFile { @@ -193,7 +200,7 @@ namespace WatchConnectivity { NSDictionary Metadata { get; } } - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no handle, doc: You do not create instances of this class yourself. interface WCSessionFileTransfer { @@ -207,12 +214,13 @@ namespace WatchConnectivity { [Export ("cancel")] void Cancel (); - [Watch (5,0)][iOS (12,0)] + [Watch (5, 0)] + [iOS (12, 0)] [Export ("progress")] NSProgress Progress { get; } } - [iOS (9,0)] + [iOS (9, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // no handle, doc: You do not create instances of this class yourself. interface WCSessionUserInfoTransfer : NSSecureCoding { diff --git a/src/watchkit.cs b/src/watchkit.cs index cd2a4552e8..517b37aadb 100644 --- a/src/watchkit.cs +++ b/src/watchkit.cs @@ -63,11 +63,11 @@ namespace WatchKit { [Export ("table:didSelectRowAtIndex:")] void DidSelectRow (WKInterfaceTable table, nint rowIndex); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:")] void HandleRemoteNotificationAction ([NullAllowed] string identifier, NSDictionary remoteNotification); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:")] void HandleLocalNotificationAction ([NullAllowed] string identifier, UILocalNotification localNotification); @@ -75,7 +75,7 @@ namespace WatchKit { [Export ("handleActionWithIdentifier:forNotification:")] void HandleAction ([NullAllowed] string identifier, UNNotification notification); - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'WKExtensionDelegate.HandleUserActivity' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'WKExtensionDelegate.HandleUserActivity' instead.")] [Export ("handleUserActivity:")] // This NSDictionary is OK, it is arbitrary and user specific void HandleUserActivity ([NullAllowed] NSDictionary userActivity); @@ -130,31 +130,31 @@ namespace WatchKit { [Export ("contextsForSegueWithIdentifier:inTable:rowIndex:")] NSObject [] GetContextsForSegue (string segueIdentifier, WKInterfaceTable table, nint rowIndex); - [Deprecated (PlatformName.WatchOS, 7,0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithImage:title:action:")] void AddMenuItem (UIImage image, string title, Selector action); - [Deprecated (PlatformName.WatchOS, 7,0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithImageNamed:title:action:")] void AddMenuItem (string imageName, string title, Selector action); - [Deprecated (PlatformName.WatchOS, 7,0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("addMenuItemWithItemIcon:title:action:")] void AddMenuItem (WKMenuItemIcon itemIcon, string title, Selector action); - [Deprecated (PlatformName.WatchOS, 7,0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [Export ("clearAllMenuItems")] void ClearAllMenuItems (); - [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'UpdateUserActivity(NSUserActivity)' instead.")] + [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'UpdateUserActivity(NSUserActivity)' instead.")] [Export ("updateUserActivity:userInfo:webpageURL:")] // This NSDictionary is OK, it is arbitrary and user specific void UpdateUserActivity (string type, [NullAllowed] NSDictionary userInfo, [NullAllowed] NSUrl webpageURL); - [Watch (5,0)] + [Watch (5, 0)] [Export ("updateUserActivity:")] void UpdateUserActivity (NSUserActivity userActivity); @@ -174,14 +174,14 @@ namespace WatchKit { [Static, Export ("openParentApplication:reply:")] bool OpenParentApplication (NSDictionary userInfo, [NullAllowed] Action reply); - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReloadRootPageControllers' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'ReloadRootPageControllers' instead.")] [Static, Export ("reloadRootControllersWithNames:contexts:")] void ReloadRootControllers (string [] names, [NullAllowed] NSObject [] contexts); - [Watch (4,0)] + [Watch (4, 0)] [Static] [Export ("reloadRootPageControllersWithNames:contexts:orientation:pageIndex:")] - void ReloadRootPageControllers (string[] names, [NullAllowed] NSObject[] contexts, WKPageOrientation orientation, nint pageIndex); + void ReloadRootPageControllers (string [] names, [NullAllowed] NSObject [] contexts, WKPageOrientation orientation, nint pageIndex); #if !XAMCORE_3_0 && !NET // now exposed with the corresponding WKErrorCode enum @@ -192,12 +192,12 @@ namespace WatchKit { [Export ("dismissMediaPlayerController")] void DismissMediaPlayerController (); - [Watch (2,0)] + [Watch (2, 0)] [Export ("presentAudioRecorderControllerWithOutputURL:preset:options:completion:")] [Async] void PresentAudioRecorderController (NSUrl outputUrl, WKAudioRecorderPreset preset, [NullAllowed] NSDictionary options, Action completion); - [Watch (2,0)] + [Watch (2, 0)] [Export ("dismissAudioRecorderController")] void DismissAudioRecorderController (); @@ -205,20 +205,20 @@ namespace WatchKit { void AnimateWithDuration (double duration, Action animations); [Export ("presentAlertControllerWithTitle:message:preferredStyle:actions:")] - void PresentAlertController ([NullAllowed] string title, [NullAllowed] string message, WKAlertControllerStyle preferredStyle, WKAlertAction[] actions); + void PresentAlertController ([NullAllowed] string title, [NullAllowed] string message, WKAlertControllerStyle preferredStyle, WKAlertAction [] actions); [Export ("presentAddPassesControllerWithPasses:completion:")] [Async] - void PresentAddPassesController (PKPass[] passes, Action completion); + void PresentAddPassesController (PKPass [] passes, Action completion); [Export ("dismissAddPassesController")] void DismissAddPassesController (); - [Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Glances support was removed.")] [Export ("beginGlanceUpdates")] void BeginGlanceUpdates (); - [Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Glances support was removed.")] [Export ("endGlanceUpdates")] void EndGlanceUpdates (); @@ -237,35 +237,35 @@ namespace WatchKit { void PresentMediaPlayerController (NSUrl url, [NullAllowed] NSDictionary options, Action completion); #endif - [Watch (3,0)] + [Watch (3, 0)] [Export ("crownSequencer", ArgumentSemantic.Strong)] WKCrownSequencer CrownSequencer { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("scrollToObject:atScrollPosition:animated:")] void ScrollTo (WKInterfaceObject @object, WKInterfaceScrollPosition scrollPosition, bool animated); - [Watch (4,0)] + [Watch (4, 0)] [Export ("interfaceDidScrollToTop")] void InterfaceDidScrollToTop (); - [Watch (4,0)] + [Watch (4, 0)] [Export ("interfaceOffsetDidScrollToTop")] void InterfaceOffsetDidScrollToTop (); - [Watch (4,0)] + [Watch (4, 0)] [Export ("interfaceOffsetDidScrollToBottom")] void InterfaceOffsetDidScrollToBottom (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("contentSafeAreaInsets")] UIEdgeInsets ContentSafeAreaInsets { get; } - [Watch (5,0)] + [Watch (5, 0)] [Export ("systemMinimumLayoutMargins")] NSDirectionalEdgeInsets SystemMinimumLayoutMargins { get; } - [Watch (5,0)] + [Watch (5, 0)] [Export ("tableScrollingHapticFeedbackEnabled")] bool TableScrollingHapticFeedbackEnabled { [Bind ("isTableScrollingHapticFeedbackEnabled")] get; set; } } @@ -279,54 +279,54 @@ namespace WatchKit { [Export ("init")] NativeHandle Constructor (); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'DidReceiveNotification' instead.")] [Export ("didReceiveRemoteNotification:withCompletion:")] void DidReceiveRemoteNotification (NSDictionary remoteNotification, Action completionHandler); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'DidReceiveNotification' instead.")] [Export ("didReceiveLocalNotification:withCompletion:")] void DidReceiveLocalNotification (UILocalNotification localNotification, Action completionHandler); - [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'DidReceiveNotification(UNNotification)' instead.")] - [Watch (3,0)] + [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'DidReceiveNotification(UNNotification)' instead.")] + [Watch (3, 0)] [Export ("didReceiveNotification:withCompletion:")] void DidReceiveNotification (UNNotification notification, Action completionHandler); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use overload accepting an 'UNNotification' parameter.")] [Export ("suggestionsForResponseToActionWithIdentifier:forRemoteNotification:inputLanguage:")] - string[] GetSuggestionsForResponseToAction (string identifier, NSDictionary remoteNotification, string inputLanguage); + string [] GetSuggestionsForResponseToAction (string identifier, NSDictionary remoteNotification, string inputLanguage); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use overload accepting an 'UNNotification' parameter.")] [Export ("suggestionsForResponseToActionWithIdentifier:forLocalNotification:inputLanguage:")] - string[] GetSuggestionsForResponseToAction (string identifier, UILocalNotification localNotification, string inputLanguage); + string [] GetSuggestionsForResponseToAction (string identifier, UILocalNotification localNotification, string inputLanguage); - [Watch (3,0)] + [Watch (3, 0)] [Export ("suggestionsForResponseToActionWithIdentifier:forNotification:inputLanguage:")] - string[] GetSuggestionsForResponseToAction (string identifier, UNNotification notification, string inputLanguage); + string [] GetSuggestionsForResponseToAction (string identifier, UNNotification notification, string inputLanguage); - [Watch (5,0)] + [Watch (5, 0)] [Export ("notificationActions", ArgumentSemantic.Copy)] - UNNotificationAction[] NotificationActions { get; set; } + UNNotificationAction [] NotificationActions { get; set; } - [Watch (5,0)] + [Watch (5, 0)] [Export ("didReceiveNotification:")] void DidReceiveNotification (UNNotification notification); - [Watch (5,0)] + [Watch (5, 0)] [Export ("performNotificationDefaultAction")] void PerformNotificationDefaultAction (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("performDismissAction")] void PerformDismissAction (); - [Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'PerformDismissAction' instead.")] - [Watch (2,0)] + [Deprecated (PlatformName.WatchOS, 5, 0, message: "Use 'PerformDismissAction' instead.")] + [Watch (2, 0)] [Export ("dismissController")] void DismissController (); } - + [Unavailable (PlatformName.iOS)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] @@ -347,7 +347,7 @@ namespace WatchKit { [Export ("setHeight:")] void SetHeight (nfloat height); - [Watch (2,1)] + [Watch (2, 1)] [Export ("setSemanticContentAttribute:")] void SetSemanticContentAttribute (WKInterfaceSemanticContentAttribute semanticContentAttribute); @@ -384,7 +384,7 @@ namespace WatchKit { void SetAccessibilityValue ([NullAllowed] string accessibilityValue); [Export ("setAccessibilityImageRegions:")] - void SetAccessibilityImageRegions (WKAccessibilityImageRegion[] accessibilityImageRegions); + void SetAccessibilityImageRegions (WKAccessibilityImageRegion [] accessibilityImageRegions); [Export ("setAccessibilityTraits:")] void SetAccessibilityTraits (UIAccessibilityTrait accessibilityTraits); @@ -395,12 +395,12 @@ namespace WatchKit { [Export ("setAccessibilityIdentifier:")] void SetAccessibilityIdentifier ([NullAllowed] string accessibilityIdentifier); - [Watch (2,0)] + [Watch (2, 0)] [Notification] [Field ("WKAccessibilityVoiceOverStatusChanged")] NSString VoiceOverStatusChanged { get; } - [Watch (4,0)] + [Watch (4, 0)] [Notification] [Field ("WKAccessibilityReduceMotionStatusDidChangeNotification")] NSString ReduceMotionStatusDidChangeNotification { get; } @@ -444,76 +444,76 @@ namespace WatchKit { [Export ("removeAllCachedImages")] void RemoveAllCachedImages (); - [Watch (2,0)] + [Watch (2, 0)] [Export ("systemVersion")] string SystemVersion { get; } - [Watch (2,0)] + [Watch (2, 0)] [Export ("name")] string Name { get; } - [Watch (2,0)] + [Watch (2, 0)] [Export ("model")] string Model { get; } - [Watch (2,0)] + [Watch (2, 0)] [Export ("localizedModel")] string LocalizedModel { get; } - [Watch (2,0)] + [Watch (2, 0)] [Export ("systemName")] string SystemName { get; } - [Watch (3,0)] + [Watch (3, 0)] [Export ("waterResistanceRating")] WKWaterResistanceRating WaterResistanceRating { get; } - [Watch (2,0)] + [Watch (2, 0)] [Export ("playHaptic:")] void PlayHaptic (WKHapticType type); - [Watch (2,1)] + [Watch (2, 1)] [Export ("layoutDirection")] WKInterfaceLayoutDirection LayoutDirection { get; } - [Watch (2,1)] + [Watch (2, 1)] [Static] [Export ("interfaceLayoutDirectionForSemanticContentAttribute:")] WKInterfaceLayoutDirection GetInterfaceLayoutDirection (WKInterfaceSemanticContentAttribute semanticContentAttribute); - [Watch (3,0)] + [Watch (3, 0)] [Export ("wristLocation")] WKInterfaceDeviceWristLocation WristLocation { get; } - [Watch (3,0)] + [Watch (3, 0)] [Export ("crownOrientation")] WKInterfaceDeviceCrownOrientation CrownOrientation { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("batteryMonitoringEnabled")] bool BatteryMonitoringEnabled { [Bind ("isBatteryMonitoringEnabled")] get; set; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("batteryLevel")] float BatteryLevel { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("batteryState")] WKInterfaceDeviceBatteryState BatteryState { get; } - [Watch (6,0)] + [Watch (6, 0)] [Export ("supportsAudioStreaming")] bool SupportsAudioStreaming { get; } - [Watch (6,2)] + [Watch (6, 2)] [NullAllowed, Export ("identifierForVendor", ArgumentSemantic.Strong)] NSUuid IdentifierForVendor { get; } - [Watch (6,1)] + [Watch (6, 1)] [Export ("enableWaterLock")] void EnableWaterLock (); - [Watch (6,1)] + [Watch (6, 1)] [Export ("isWaterLockEnabled")] bool IsWaterLockEnabled { get; } } @@ -657,15 +657,15 @@ namespace WatchKit { [Export ("scrollToRowAtIndex:")] void ScrollToRow (nint index); - [Watch (3,0)] + [Watch (3, 0)] [Export ("performSegueForRow:")] void PerformSegue (nint row); - [Watch (5,1)] + [Watch (5, 1)] [Export ("curvesAtTop")] bool CurvesAtTop { get; set; } - [Watch (5,1)] + [Watch (5, 1)] [Export ("curvesAtBottom")] bool CurvesAtBottom { get; set; } } @@ -675,8 +675,9 @@ namespace WatchKit { [BaseType (typeof (WKInterfaceObject))] interface WKInterfaceMap { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'MKMapView' instead.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'MKMapView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -699,15 +700,15 @@ namespace WatchKit { [Export ("removeAllAnnotations")] void RemoveAllAnnotations (); - [Watch (6,1)] + [Watch (6, 1)] [Export ("setShowsUserHeading:")] void SetShowsUserHeading (bool showsUserHeading); - [Watch (6,1)] + [Watch (6, 1)] [Export ("setShowsUserLocation:")] void SetShowsUserLocation (bool showsUserLocation); - [Watch (6,1)] + [Watch (6, 1)] [Export ("setUserTrackingMode:animated:")] void SetUserTrackingMode (WKInterfaceMapUserTrackingMode mode, bool animated); } @@ -719,7 +720,7 @@ namespace WatchKit { [Export ("setColor:")] void SetColor ([NullAllowed] UIColor color); } - + [Unavailable (PlatformName.iOS)] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called [BaseType (typeof (WKInterfaceObject))] @@ -769,7 +770,7 @@ namespace WatchKit { string Label { get; set; } } - interface IWKImageAnimatable {} + interface IWKImageAnimatable { } [Unavailable (PlatformName.iOS)] [Protocol] @@ -824,7 +825,7 @@ namespace WatchKit { } [NoiOS] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAudioFileAsset { @@ -853,8 +854,8 @@ namespace WatchKit { } [NoiOS] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] - [BaseType (typeof(NSObject))] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAudioFilePlayer { [Static] @@ -887,7 +888,7 @@ namespace WatchKit { } [NoiOS] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKAudioFilePlayerItem { @@ -913,22 +914,22 @@ namespace WatchKit { } #else } - [Watch (3,2)] + [Watch (3, 2)] [Export ("setCurrentTime:")] void SetCurrentTime (double time); #endif - [Watch (2,0)] + [Watch (2, 0)] [Notification] [Field ("WKAudioFilePlayerItemTimeJumpedNotification")] NSString TimeJumpedNotification { get; } - [Watch (2,0)] + [Watch (2, 0)] [Notification] [Field ("WKAudioFilePlayerItemDidPlayToEndTimeNotification")] NSString DidPlayToEndTimeNotification { get; } - [Watch (2,0)] + [Watch (2, 0)] [Notification] [Field ("WKAudioFilePlayerItemFailedToPlayToEndTimeNotification")] NSString FailedToPlayToEndTimeNotification { get; } @@ -955,49 +956,49 @@ namespace WatchKit { [NullAllowed, Export ("rootInterfaceController")] WKInterfaceController RootInterfaceController { get; } - [Watch (3,0)] + [Watch (3, 0)] [Export ("applicationState")] WKApplicationState ApplicationState { get; } - [Watch (4,0)] + [Watch (4, 0)] [NullAllowed, Export ("visibleInterfaceController")] WKInterfaceController VisibleInterfaceController { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("isApplicationRunningInDock")] bool IsApplicationRunningInDock { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("autorotating")] bool Autorotating { [Bind ("isAutorotating")] get; set; } - [Watch (4,2)] + [Watch (4, 2)] [Export ("autorotated")] bool Autorotated { [Bind ("isAutorotated")] get; } - [Watch (4,0)] - [Deprecated (PlatformName.WatchOS, 7,0)] + [Watch (4, 0)] + [Deprecated (PlatformName.WatchOS, 7, 0)] [Export ("frontmostTimeoutExtended")] bool FrontmostTimeoutExtended { [Bind ("isFrontmostTimeoutExtended")] get; set; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("enableWaterLock")] - [Deprecated (PlatformName.WatchOS, 6,1, message: "Use 'WKInterfaceDevice.EnableWaterLock' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 1, message: "Use 'WKInterfaceDevice.EnableWaterLock' instead.")] void EnableWaterLock (); - [Watch (6,0)] + [Watch (6, 0)] [Export ("registerForRemoteNotifications")] void RegisterForRemoteNotifications (); - [Watch (6,0)] + [Watch (6, 0)] [Export ("unregisterForRemoteNotifications")] void UnregisterForRemoteNotifications (); - [Watch (6,0)] + [Watch (6, 0)] [Export ("registeredForRemoteNotifications")] bool RegisteredForRemoteNotifications { [Bind ("isRegisteredForRemoteNotifications")] get; } - [Watch (7,0)] + [Watch (7, 0)] [Export ("globalTintColor")] UIColor GlobalTintColor { get; } @@ -1036,96 +1037,96 @@ namespace WatchKit { [Export ("applicationWillResignActive")] void ApplicationWillResignActive (); - [Watch (3,0)] + [Watch (3, 0)] [Export ("applicationWillEnterForeground")] void ApplicationWillEnterForeground (); - [Watch (3,0)] + [Watch (3, 0)] [Export ("applicationDidEnterBackground")] void ApplicationDidEnterBackground (); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:")] void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:")] void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forRemoteNotification:withResponseInfo:")] void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification, NSDictionary responseInfo); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("handleActionWithIdentifier:forLocalNotification:withResponseInfo:")] void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification, NSDictionary responseInfo); [Export ("handleUserActivity:")] void HandleUserActivity ([NullAllowed] NSDictionary userInfo); - [Watch (3,2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available + [Watch (3, 2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available [Export ("handleActivity:")] void HandleUserActivity (NSUserActivity userActivity); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("didReceiveRemoteNotification:")] void DidReceiveRemoteNotification (NSDictionary userInfo); - [Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'UNUserNotificationCenterDelegate' instead.")] [Export ("didReceiveLocalNotification:")] void DidReceiveLocalNotification (UILocalNotification notification); - [Watch (3,0)] + [Watch (3, 0)] [Export ("handleBackgroundTasks:")] void HandleBackgroundTasks (NSSet backgroundTasks); - [Watch (3,0)] + [Watch (3, 0)] [Export ("handleWorkoutConfiguration:")] void HandleWorkoutConfiguration (HKWorkoutConfiguration workoutConfiguration); - [Watch (4,0)] + [Watch (4, 0)] [Export ("deviceOrientationDidChange")] void DeviceOrientationDidChange (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("handleActiveWorkoutRecovery")] void HandleActiveWorkoutRecovery (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("handleRemoteNowPlayingActivity")] void HandleRemoteNowPlayingActivity (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("handleIntent:completionHandler:")] void HandleIntent (INIntent intent, Action completionHandler); - [Watch (6,0)] + [Watch (6, 0)] [Export ("handleExtendedRuntimeSession:")] void HandleExtendedRuntimeSession (WKExtendedRuntimeSession extendedRuntimeSession); - [Watch (6,0)] + [Watch (6, 0)] [Export ("didRegisterForRemoteNotificationsWithDeviceToken:")] void DidRegisterForRemoteNotifications (NSData deviceToken); - [Watch (6,0)] + [Watch (6, 0)] [Export ("didFailToRegisterForRemoteNotificationsWithError:")] void DidFailToRegisterForRemoteNotifications (NSError error); - [Watch (6,0)] + [Watch (6, 0)] [Export ("didReceiveRemoteNotification:fetchCompletionHandler:")] void DidReceiveRemoteNotification (NSDictionary userInfo, Action completionHandler); - [Watch (7,0)] + [Watch (7, 0)] [Export ("userDidAcceptCloudKitShareWithMetadata:")] void UserDidAcceptCloudKitShare (CKShareMetadata cloudKitShareMetadata); } - [Watch (2,2), NoiOS] - [BaseType (typeof(WKInterfaceObject))] + [Watch (2, 2), NoiOS] + [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // The super class' init method is unavailable. - interface WKInterfaceActivityRing - { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] + interface WKInterfaceActivityRing { + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1139,8 +1140,9 @@ namespace WatchKit { [DisableDefaultCtor] // The super class' init method is unavailable. interface WKInterfaceMovie { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'AVVideoPlayer' instead.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'AVVideoPlayer' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1172,7 +1174,7 @@ namespace WatchKit { void SetSelectedItem (nint itemIndex); [Export ("setItems:")] - void SetItems ([NullAllowed] WKPickerItem[] items); + void SetItems ([NullAllowed] WKPickerItem [] items); [Export ("setCoordinatedAnimations:")] void SetCoordinatedAnimations ([NullAllowed] IWKImageAnimatable [] coordinatedAnimations); @@ -1198,13 +1200,13 @@ namespace WatchKit { } [NoiOS] - [Deprecated (PlatformName.WatchOS, 6,0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 0, message: "Use 'AVPlayer' or 'AVQueuePlayer' instead.")] [BaseType (typeof (WKAudioFilePlayer))] [DisableDefaultCtor] interface WKAudioFileQueuePlayer { [Static] [Export ("queuePlayerWithItems:")] - WKAudioFileQueuePlayer FromItems (WKAudioFilePlayerItem[] items); + WKAudioFileQueuePlayer FromItems (WKAudioFilePlayerItem [] items); [Export ("advanceToNextItem")] void AdvanceToNextItem (); @@ -1219,12 +1221,13 @@ namespace WatchKit { void RemoveAllItems (); [Export ("items")] - WKAudioFilePlayerItem[] Items { get; } + WKAudioFilePlayerItem [] Items { get; } } // to be made [Internal] once #34656 is fixed [Static] - [Watch (2,0)][NoiOS] + [Watch (2, 0)] + [NoiOS] interface WKMediaPlayerControllerOptionsKeys { [Field ("WKMediaPlayerControllerOptionsAutoplayKey")] NSString AutoplayKey { get; } @@ -1241,7 +1244,8 @@ namespace WatchKit { // to be made [Internal] once #34656 is fixed [Static] - [Watch (2,0)][NoiOS] + [Watch (2, 0)] + [NoiOS] interface WKAudioRecorderControllerOptionsKey { [Field ("WKAudioRecorderControllerOptionsActionTitleKey")] NSString ActionTitleKey { get; } @@ -1256,40 +1260,43 @@ namespace WatchKit { NSString MaximumDurationKey { get; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (NSObject))] interface WKRefreshBackgroundTask { - + [NullAllowed, Export ("userInfo")] INSSecureCoding UserInfo { get; } - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'SetTaskCompleted (false)' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'SetTaskCompleted (false)' instead.")] [Export ("setTaskCompleted")] void SetTaskCompleted (); - [Watch (4,0)] + [Watch (4, 0)] [Export ("setTaskCompletedWithSnapshot:")] void SetTaskCompleted (bool refreshSnapshot); - [Watch (8,0)] + [Watch (8, 0)] [NullAllowed, Export ("expirationHandler", ArgumentSemantic.Strong)] Action ExpirationHandler { get; set; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKApplicationRefreshBackgroundTask { } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKSnapshotRefreshBackgroundTask { - [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReasonForSnapshot' instead.")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'ReasonForSnapshot' instead.")] [Export ("returnToDefaultState")] bool ReturnToDefaultState { get; } - [Watch (4,0)] + [Watch (4, 0)] [Export ("reasonForSnapshot")] WKSnapshotReason ReasonForSnapshot { get; } @@ -1297,7 +1304,8 @@ namespace WatchKit { void SetTaskCompleted (bool restoredDefaultState, [NullAllowed] NSDate estimatedSnapshotExpiration, [NullAllowed] INSSecureCoding userInfo); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask), Name = "WKURLSessionRefreshBackgroundTask")] interface WKUrlSessionRefreshBackgroundTask { @@ -1305,22 +1313,26 @@ namespace WatchKit { string SessionIdentifier { get; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKWatchConnectivityRefreshBackgroundTask { } - [Watch (5,0)][NoiOS] + [Watch (5, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKRelevantShortcutRefreshBackgroundTask { } - [Watch (5,0)][NoiOS] + [Watch (5, 0)] + [NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] interface WKIntentDidRunRefreshBackgroundTask { } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [Category] [BaseType (typeof (WKExtension))] interface WKExtension_WKBackgroundTasks { @@ -1332,7 +1344,8 @@ namespace WatchKit { void ScheduleSnapshotRefresh (NSDate preferredFireDate, [NullAllowed] INSSecureCoding userInfo, Action scheduledCompletion); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKCrownSequencer { @@ -1352,15 +1365,17 @@ namespace WatchKit { [Export ("resignFocus")] void ResignFocus (); - [Watch (5,0)] + [Watch (5, 0)] [Export ("hapticFeedbackEnabled")] bool HapticFeedbackEnabled { [Bind ("isHapticFeedbackEnabled")] get; set; } } - interface IWKCrownDelegate {} + interface IWKCrownDelegate { } - [Watch (3,0)][NoiOS] - [Protocol][Model] + [Watch (3, 0)] + [NoiOS] + [Protocol] + [Model] [BaseType (typeof (NSObject))] interface WKCrownDelegate { [Export ("crownDidRotate:rotationalDelta:")] @@ -1370,7 +1385,8 @@ namespace WatchKit { void CrownDidBecomeIdle ([NullAllowed] WKCrownSequencer crownSequencer); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [Abstract] [BaseType (typeof (NSObject))] interface WKGestureRecognizer { @@ -1388,7 +1404,8 @@ namespace WatchKit { CGRect ObjectBounds { get; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKTapGestureRecognizer { @@ -1396,7 +1413,8 @@ namespace WatchKit { nuint NumberOfTapsRequired { get; set; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKLongPressGestureRecognizer { @@ -1410,7 +1428,8 @@ namespace WatchKit { nfloat AllowableMovement { get; set; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKSwipeGestureRecognizer { @@ -1418,7 +1437,8 @@ namespace WatchKit { WKSwipeGestureRecognizerDirection Direction { get; set; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKGestureRecognizer))] interface WKPanGestureRecognizer { [Export ("translationInObject")] @@ -1428,13 +1448,15 @@ namespace WatchKit { CGPoint VelocityInObject { get; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceHMCamera { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'HMCameraView' instead.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'HMCameraView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1443,12 +1465,14 @@ namespace WatchKit { void SetCameraSource ([NullAllowed] HMCameraSource cameraSource); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceInlineMovie { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1478,23 +1502,26 @@ namespace WatchKit { void Pause (); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfacePaymentButton { - [Watch (6,0)] + [Watch (6, 0)] [Export ("initWithTarget:action:")] NativeHandle Constructor ([NullAllowed] NSObject target, Selector action); } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceSCNScene : SCNSceneRenderer { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'SCNSceneView' instead.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'SCNSceneView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1509,13 +1536,15 @@ namespace WatchKit { SCNAntialiasingMode AntialiasingMode { get; set; } } - [Watch (3,0)][NoiOS] + [Watch (3, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called interface WKInterfaceSKScene { - [Watch (6,0)][Advice ("This API exists for SwiftUI and is not generally needed.")] - [Deprecated (PlatformName.WatchOS, 7,0, message: "Use 'SKSpriteView' instead.")] + [Watch (6, 0)] + [Advice ("This API exists for SwiftUI and is not generally needed.")] + [Deprecated (PlatformName.WatchOS, 7, 0, message: "Use 'SKSpriteView' instead.")] [EditorBrowsable (EditorBrowsableState.Advanced)] [Export ("init")] NativeHandle Constructor (); @@ -1544,27 +1573,28 @@ namespace WatchKit { SKTexture CreateTexture (SKNode node, CGRect crop); } - [Watch (5,0)][NoiOS] + [Watch (5, 0)] + [NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] interface WKInterfaceVolumeControl { - [Watch (6,0)] + [Watch (6, 0)] [Export ("initWithOrigin:")] NativeHandle Constructor (WKInterfaceVolumeControlOrigin origin); [Export ("setTintColor:")] void SetTintColor ([NullAllowed] UIColor tintColor); - [Watch (6,0)] + [Watch (6, 0)] [Export ("focus")] void Focus (); - [Watch (6,0)] + [Watch (6, 0)] [Export ("resignFocus")] void ResignFocus (); } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [Native] enum WKBackgroundFetchResult : ulong { NewData, @@ -1572,7 +1602,7 @@ namespace WatchKit { Failed, } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [Native] [ErrorDomain ("WKExtendedRuntimeSessionErrorDomain")] enum WKExtendedRuntimeSessionErrorCode : long { @@ -1588,7 +1618,7 @@ namespace WatchKit { UnsupportedSessionType = 10, } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [Native] enum WKExtendedRuntimeSessionInvalidationReason : long { None, @@ -1599,7 +1629,7 @@ namespace WatchKit { Error = -1, } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [Native] enum WKExtendedRuntimeSessionState : long { NotStarted, @@ -1608,30 +1638,30 @@ namespace WatchKit { Invalid, } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [Native] enum WKInterfaceVolumeControlOrigin : long { Local, Companion, } - [Watch (6,1), NoiOS] + [Watch (6, 1), NoiOS] [Native] - enum WKInterfaceAuthorizationAppleIdButtonStyle: long { + enum WKInterfaceAuthorizationAppleIdButtonStyle : long { Default, White, } - [Watch (6,1), NoiOS] + [Watch (6, 1), NoiOS] [Native] - enum WKInterfaceMapUserTrackingMode: long { + enum WKInterfaceMapUserTrackingMode : long { None, Follow, } - interface IWKExtendedRuntimeSessionDelegate {} + interface IWKExtendedRuntimeSessionDelegate { } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] #if NET [Protocol, Model] #else @@ -1653,7 +1683,7 @@ namespace WatchKit { void WillExpire (WKExtendedRuntimeSession extendedRuntimeSession); } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Create method exists and `NSInvalidArgumentException Reason: *** -[__NSSetM addObject:]: object cannot be nil` interface WKExtendedRuntimeSession { @@ -1662,7 +1692,7 @@ namespace WatchKit { [Export ("session")] WKExtendedRuntimeSession Create (); - [Watch (9,0), NoiOS] + [Watch (9, 0), NoiOS] [Static] [Async] [Export ("requestAutoLaunchAuthorizationStatusWithCompletion:")] @@ -1697,20 +1727,20 @@ namespace WatchKit { delegate double WKNofityUserIntervalHandler (WKHapticType type); delegate void WKRequestAutoLaunchAuthorizationStatusCompletionHandler (WKExtendedRuntimeSessionAutoLaunchAuthorizationStatus authorizationStatus, [NullAllowed] NSError error); - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [BaseType (typeof (WKInterfaceObject), Name = "WKInterfaceAuthorizationAppleIDButton")] [DisableDefaultCtor] // Handle is `nil` interface WKInterfaceAuthorizationAppleIdButton { [Export ("initWithTarget:action:")] - [Deprecated (PlatformName.WatchOS, 6,1, message: "Use 'new WKInterfaceAuthorizationAppleIdButton (WKInterfaceVolumeControlOrigin,NSObject,Selector)' instead.")] + [Deprecated (PlatformName.WatchOS, 6, 1, message: "Use 'new WKInterfaceAuthorizationAppleIdButton (WKInterfaceVolumeControlOrigin,NSObject,Selector)' instead.")] NativeHandle Constructor ([NullAllowed] NSObject target, Selector action); - [Watch (6,1)] + [Watch (6, 1)] [Export ("initWithStyle:target:action:")] NativeHandle Constructor (WKInterfaceAuthorizationAppleIdButtonStyle style, [NullAllowed] NSObject target, Selector action); } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] enum WKTextContentType { [DefaultEnumValue] [Field (null)] // API using fields accept `nil` @@ -1771,7 +1801,7 @@ namespace WatchKit { OneTimeCode, } - [Watch (6,0), NoiOS] + [Watch (6, 0), NoiOS] [BaseType (typeof (WKInterfaceObject))] [DisableDefaultCtor] // Handle is `nil` interface WKInterfaceTextField { @@ -1795,17 +1825,16 @@ namespace WatchKit { void SetEnabled (bool enabled); [Export ("setTextContentType:")] - void SetTextContentType ([BindAs (typeof (WKTextContentType?))] [NullAllowed] NSString textContentType); + void SetTextContentType ([BindAs (typeof (WKTextContentType?))][NullAllowed] NSString textContentType); [Export ("setSecureTextEntry:")] void SetSecureTextEntry (bool secureTextEntry); } - [Watch (7,0), NoiOS] + [Watch (7, 0), NoiOS] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface WKApplication - { + interface WKApplication { [Static] [Export ("sharedApplication")] WKApplication SharedApplication { get; } @@ -1860,17 +1889,16 @@ namespace WatchKit { void ScheduleSnapshotRefresh (NSDate preferredFireDate, [NullAllowed] NSObject userInfo, Action scheduledCompletion); } - interface IWKApplicationDelegate {} + interface IWKApplicationDelegate { } - [Watch (7,0), NoiOS] + [Watch (7, 0), NoiOS] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface WKApplicationDelegate - { + interface WKApplicationDelegate { [Export ("applicationDidFinishLaunching")] void ApplicationDidFinishLaunching (); @@ -1926,7 +1954,7 @@ namespace WatchKit { void UserDidAcceptCloudKitShare (CKShareMetadata cloudKitShareMetadata); } - [Watch (9,0), NoiOS] + [Watch (9, 0), NoiOS] [BaseType (typeof (WKRefreshBackgroundTask))] - interface WKBluetoothAlertRefreshBackgroundTask {} + interface WKBluetoothAlertRefreshBackgroundTask { } } diff --git a/src/webkit.cs b/src/webkit.cs index de54a6b4ef..a21bdafe1b 100644 --- a/src/webkit.cs +++ b/src/webkit.cs @@ -36,7 +36,7 @@ using NativeHandle = System.IntPtr; namespace WebKit { [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (WebScriptObject), Name="DOMObject")] + [BaseType (typeof (WebScriptObject), Name = "DOMObject")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMObject init]: should never be used partial interface DomObject : NSCopying { } @@ -45,7 +45,7 @@ namespace WebKit { // DomObject subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMAbstractView")] + [BaseType (typeof (DomObject), Name = "DOMAbstractView")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMAbstractView init]: should never be used partial interface DomAbstractView { [Export ("document", ArgumentSemantic.Retain)] @@ -53,7 +53,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMCSSRule")] + [BaseType (typeof (DomObject), Name = "DOMCSSRule")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSRule init]: should never be used partial interface DomCssRule { [Export ("type")] @@ -63,14 +63,14 @@ namespace WebKit { string CssText { get; set; } [Export ("parentStyleSheet", ArgumentSemantic.Retain)] - DomCssStyleSheet ParentStyleSheet { get; } + DomCssStyleSheet ParentStyleSheet { get; } [Export ("parentRule", ArgumentSemantic.Retain)] - DomCssRule ParentRule { get; } + DomCssRule ParentRule { get; } } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSCharsetRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSCharsetRule")] [DisableDefaultCtor] partial interface DomCssCharsetRule { [Export ("encoding")] @@ -78,7 +78,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSFontFaceRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSFontFaceRule")] [DisableDefaultCtor] partial interface DomCssFontFaceRule { [Export ("style", ArgumentSemantic.Strong)] @@ -86,7 +86,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSImportRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSImportRule")] [DisableDefaultCtor] partial interface DomImportCssRule { [Export ("href")] @@ -100,7 +100,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSMediaRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSMediaRule")] [DisableDefaultCtor] partial interface DomCssMediaRule { [Export ("media", ArgumentSemantic.Strong)] @@ -117,7 +117,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSPageRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSPageRule")] [DisableDefaultCtor] partial interface DomCssPageRule { [Export ("selectorText")] @@ -128,7 +128,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSStyleRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSStyleRule")] [DisableDefaultCtor] partial interface DomCssStyleRule { [Export ("selectorText")] @@ -137,15 +137,15 @@ namespace WebKit { [Export ("style", ArgumentSemantic.Strong)] DomCssStyleDeclaration Style { get; } } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCssRule), Name="DOMCSSUnknownRule")] + [BaseType (typeof (DomCssRule), Name = "DOMCSSUnknownRule")] [DisableDefaultCtor] partial interface DomCssUnknownRule { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMCSSRuleList")] + [BaseType (typeof (DomObject), Name = "DOMCSSRuleList")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSRuleList init]: should never be used partial interface DomCssRuleList { [Export ("length")] @@ -156,7 +156,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMCSSStyleDeclaration")] + [BaseType (typeof (DomObject), Name = "DOMCSSStyleDeclaration")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSStyleDeclaration init]: should never be used partial interface DomCssStyleDeclaration { [Export ("cssText", ArgumentSemantic.Copy)] @@ -166,7 +166,7 @@ namespace WebKit { int Count { get; } /* unsigned int */ [Export ("parentRule", ArgumentSemantic.Retain)] - DomCssRule ParentRule { get; } + DomCssRule ParentRule { get; } [Export ("getPropertyValue:")] string GetPropertyValue (string propertyName); @@ -194,17 +194,17 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomStyleSheet), Name="DOMCSSStyleSheet")] + [BaseType (typeof (DomStyleSheet), Name = "DOMCSSStyleSheet")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSStyleSheet init]: should never be used partial interface DomCssStyleSheet { [Export ("ownerRule", ArgumentSemantic.Retain)] DomCssRule OwnerRule { get; } - + [Export ("cssRules", ArgumentSemantic.Retain)] - DomCssRuleList CssRules { get; } + DomCssRuleList CssRules { get; } [Export ("rules", ArgumentSemantic.Retain)] - DomCssRuleList Rules { get; } + DomCssRuleList Rules { get; } [Export ("insertRule:index:")] uint /* unsigned int */ InsertRule (string rule, uint /* unsigned int */ index); @@ -220,7 +220,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMCSSValue")] + [BaseType (typeof (DomObject), Name = "DOMCSSValue")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSValue init]: should never be used partial interface DomCssValue { [Export ("cssText", ArgumentSemantic.Copy)] @@ -231,7 +231,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMHTMLCollection")] + [BaseType (typeof (DomObject), Name = "DOMHTMLCollection")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLCollection init]: should never be used partial interface DomHtmlCollection { [Export ("length")] @@ -248,7 +248,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMImplementation")] + [BaseType (typeof (DomObject), Name = "DOMImplementation")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMImplementation init]: should never be used partial interface DomImplementation { [Export ("hasFeature:version:")] @@ -268,7 +268,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMMediaList")] + [BaseType (typeof (DomObject), Name = "DOMMediaList")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMMediaList init]: should never be used partial interface DomMediaList { [Export ("mediaText", ArgumentSemantic.Copy)] @@ -288,7 +288,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMNamedNodeMap")] + [BaseType (typeof (DomObject), Name = "DOMNamedNodeMap")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNamedNodeMap init]: should never be used partial interface DomNamedNodeMap { [Export ("length")] @@ -317,7 +317,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMNode")] + [BaseType (typeof (DomObject), Name = "DOMNode")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNode init]: should never be used partial interface DomNode : DomEventTarget { [Export ("nodeName", ArgumentSemantic.Copy)] @@ -327,52 +327,52 @@ namespace WebKit { string NodeValue { get; set; } [Export ("nodeType")] - DomNodeType NodeType { get; } + DomNodeType NodeType { get; } [Export ("parentNode", ArgumentSemantic.Retain)] - DomNode ParentNode { get; } + DomNode ParentNode { get; } [Export ("childNodes", ArgumentSemantic.Retain)] - DomNodeList ChildNodes { get; } + DomNodeList ChildNodes { get; } [Export ("firstChild", ArgumentSemantic.Retain)] - DomNode FirstChild { get; } + DomNode FirstChild { get; } [Export ("lastChild", ArgumentSemantic.Retain)] - DomNode LastChild { get; } + DomNode LastChild { get; } [Export ("previousSibling", ArgumentSemantic.Retain)] - DomNode PreviousSibling { get; } + DomNode PreviousSibling { get; } [Export ("nextSibling", ArgumentSemantic.Retain)] - DomNode NextSibling { get; } + DomNode NextSibling { get; } [Export ("attributes", ArgumentSemantic.Retain)] - DomNamedNodeMap Attributes { get; } + DomNamedNodeMap Attributes { get; } [Export ("ownerDocument", ArgumentSemantic.Retain)] - DomDocument OwnerDocument { get; } + DomDocument OwnerDocument { get; } [Export ("namespaceURI", ArgumentSemantic.Copy)] - string NamespaceURI { get; } + string NamespaceURI { get; } [Export ("prefix", ArgumentSemantic.Copy)] - string Prefix { get; set; } + string Prefix { get; set; } [Export ("localName", ArgumentSemantic.Copy)] - string LocalName { get; } + string LocalName { get; } [Export ("baseURI", ArgumentSemantic.Copy)] - string BaseURI { get; } + string BaseURI { get; } [Export ("textContent", ArgumentSemantic.Copy)] - string TextContent { get; set; } + string TextContent { get; set; } [Export ("parentElement", ArgumentSemantic.Retain)] - DomElement ParentElement { get; } + DomElement ParentElement { get; } [Export ("isContentEditable")] - bool IsContentEditable { get; } + bool IsContentEditable { get; } [Export ("insertBefore:refChild:")] DomNode InsertBefore (DomNode newChild, [NullAllowed] DomNode refChild); @@ -420,7 +420,7 @@ namespace WebKit { DomDocumentPosition CompareDocumentPosition (DomNode other); } - interface IDomNodeFilter {} + interface IDomNodeFilter { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] #if NET @@ -428,7 +428,7 @@ namespace WebKit { #else [Protocol, Model (AutoGeneratedName = true)] #endif - [BaseType (typeof (NSObject), Name="DOMNodeFilter")] + [BaseType (typeof (NSObject), Name = "DOMNodeFilter")] interface DomNodeFilter { [Export ("acceptNode:")] [Abstract] @@ -436,7 +436,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMNodeIterator")] + [BaseType (typeof (DomObject), Name = "DOMNodeIterator")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomNodeIterator { [Export ("root", ArgumentSemantic.Retain)] @@ -468,7 +468,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMNodeList")] + [BaseType (typeof (DomObject), Name = "DOMNodeList")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNodeList init]: should never be used partial interface DomNodeList { [Export ("length")] @@ -479,32 +479,32 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMRange")] + [BaseType (typeof (DomObject), Name = "DOMRange")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMRange init]: should never be used partial interface DomRange { [Export ("startContainer", ArgumentSemantic.Retain)] - DomNode StartContainer { get; } + DomNode StartContainer { get; } [Export ("startOffset")] - int StartOffset { get; } /* int, not NSInteger */ + int StartOffset { get; } /* int, not NSInteger */ [Export ("endContainer", ArgumentSemantic.Retain)] - DomNode EndContainer { get; } + DomNode EndContainer { get; } [Export ("endOffset")] - int EndOffset { get; } /* int, not NSInteger */ + int EndOffset { get; } /* int, not NSInteger */ [Export ("collapsed")] - bool Collapsed { get; } + bool Collapsed { get; } [Export ("commonAncestorContainer", ArgumentSemantic.Retain)] - DomNode CommonAncestorContainer { get; } + DomNode CommonAncestorContainer { get; } [Export ("text", ArgumentSemantic.Copy)] - string Text { get; } + string Text { get; } [Export ("setStart:offset:")] - void SetStart (DomNode refNode, int /* int, not NSInteger */ offset ); + void SetStart (DomNode refNode, int /* int, not NSInteger */ offset); [Export ("setEnd:offset:")] void SetEnd (DomNode refNode, int /* int, not NSInteger */ offset); @@ -574,7 +574,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMStyleSheet")] + [BaseType (typeof (DomObject), Name = "DOMStyleSheet")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMStyleSheet init]: should never be used partial interface DomStyleSheet { [Export ("type", ArgumentSemantic.Copy)] @@ -584,23 +584,23 @@ namespace WebKit { bool Disabled { get; set; } [Export ("ownerNode", ArgumentSemantic.Retain)] - DomNode OwnerNode { get; } + DomNode OwnerNode { get; } [Export ("parentStyleSheet", ArgumentSemantic.Retain)] - DomStyleSheet ParentStyleSheet { get; } + DomStyleSheet ParentStyleSheet { get; } [Export ("href", ArgumentSemantic.Copy)] - string Href { get; } + string Href { get; } [Export ("title", ArgumentSemantic.Copy)] - string Title { get; } + string Title { get; } [Export ("media", ArgumentSemantic.Retain)] - DomMediaList Media { get; } + DomMediaList Media { get; } } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMStyleSheetList")] + [BaseType (typeof (DomObject), Name = "DOMStyleSheetList")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMStyleSheetList init]: should never be used partial interface DomStyleSheetList { [Export ("length")] @@ -614,7 +614,7 @@ namespace WebKit { // DomNode subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMAttr")] + [BaseType (typeof (DomNode), Name = "DOMAttr")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMAttr init]: should never be used partial interface DomAttr { [Export ("name", ArgumentSemantic.Copy)] @@ -624,17 +624,17 @@ namespace WebKit { bool Specified { get; } [Export ("value", ArgumentSemantic.Copy)] - string Value { get; set; } + string Value { get; set; } [Export ("ownerElement", ArgumentSemantic.Retain)] - DomElement OwnerElement { get; } + DomElement OwnerElement { get; } [Export ("style", ArgumentSemantic.Retain)] - DomCssStyleDeclaration Style { get; } + DomCssStyleDeclaration Style { get; } } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMCharacterData")] + [BaseType (typeof (DomNode), Name = "DOMCharacterData")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCharacterData init]: should never be used partial interface DomCharacterData { [Export ("data", ArgumentSemantic.Copy)] @@ -660,7 +660,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMDocument")] + [BaseType (typeof (DomNode), Name = "DOMDocument")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocument init]: should never be used partial interface DomDocument { [Export ("doctype", ArgumentSemantic.Retain)] @@ -670,118 +670,118 @@ namespace WebKit { DomImplementation Implementation { get; } [Export ("documentElement", ArgumentSemantic.Retain)] - DomElement DocumentElement { get; } + DomElement DocumentElement { get; } [Export ("inputEncoding", ArgumentSemantic.Copy)] - string InputEncoding { get; } + string InputEncoding { get; } [Export ("xmlEncoding", ArgumentSemantic.Copy)] - string XmlEncoding { get; } + string XmlEncoding { get; } [Export ("xmlVersion", ArgumentSemantic.Copy)] string XmlVersion { get; set; } [Export ("xmlStandalone")] - bool XmlStandalone { get; set; } + bool XmlStandalone { get; set; } [Export ("documentURI", ArgumentSemantic.Copy)] - string DocumentURI { get; set; } + string DocumentURI { get; set; } [Export ("defaultView", ArgumentSemantic.Retain)] - DomAbstractView DefaultView { get; } + DomAbstractView DefaultView { get; } [Export ("styleSheets", ArgumentSemantic.Retain)] - DomStyleSheetList StyleSheets { get; } + DomStyleSheetList StyleSheets { get; } [Export ("title", ArgumentSemantic.Copy)] - string Title { get; set; } + string Title { get; set; } [Export ("referrer", ArgumentSemantic.Copy)] - string Referrer { get; } + string Referrer { get; } [Export ("domain", ArgumentSemantic.Copy)] - string Domain { get; } + string Domain { get; } [Export ("URL", ArgumentSemantic.Copy)] - string Url { get; } + string Url { get; } [Export ("cookie", ArgumentSemantic.Copy)] - string Cookie { get; set; } + string Cookie { get; set; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Body' property instead.")] [Wrap ("Body", IsVirtual = true)] - DomHtmlElement body { get; set; } + DomHtmlElement body { get; set; } #endif [Export ("body", ArgumentSemantic.Retain)] - DomHtmlElement Body { get; set; } + DomHtmlElement Body { get; set; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Images' property instead.")] [Wrap ("Images", IsVirtual = true)] - DomHtmlCollection images { get; } + DomHtmlCollection images { get; } #endif [Export ("images", ArgumentSemantic.Retain)] - DomHtmlCollection Images { get; } + DomHtmlCollection Images { get; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Applets' property instead.")] [Wrap ("Applets", IsVirtual = true)] - DomHtmlCollection applets { get; } + DomHtmlCollection applets { get; } #endif [Export ("applets", ArgumentSemantic.Retain)] - DomHtmlCollection Applets { get; } + DomHtmlCollection Applets { get; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Links' property instead.")] [Wrap ("Links", IsVirtual = true)] - DomHtmlCollection links { get; } + DomHtmlCollection links { get; } #endif [Export ("links", ArgumentSemantic.Retain)] - DomHtmlCollection Links { get; } + DomHtmlCollection Links { get; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Forms' property instead.")] [Wrap ("Forms", IsVirtual = true)] - DomHtmlCollection forms { get; } + DomHtmlCollection forms { get; } #endif [Export ("forms", ArgumentSemantic.Retain)] - DomHtmlCollection Forms { get; } + DomHtmlCollection Forms { get; } #if !XAMCORE_5_0 [Obsolete ("Use the 'Anchors' property instead.")] [Wrap ("Anchors", IsVirtual = true)] - DomHtmlCollection anchors { get; } + DomHtmlCollection anchors { get; } #endif [Export ("anchors", ArgumentSemantic.Retain)] - DomHtmlCollection Anchors { get; } + DomHtmlCollection Anchors { get; } [Export ("lastModified", ArgumentSemantic.Copy)] - string LastModified { get; } + string LastModified { get; } [Export ("charset", ArgumentSemantic.Copy)] - string Charset { get; set; } + string Charset { get; set; } [Export ("defaultCharset", ArgumentSemantic.Copy)] - string DefaultCharset { get; } + string DefaultCharset { get; } [Export ("readyState", ArgumentSemantic.Copy)] - string ReadyState { get; } + string ReadyState { get; } [Export ("characterSet", ArgumentSemantic.Copy)] - string CharacterSet { get; } + string CharacterSet { get; } [Export ("preferredStylesheetSet", ArgumentSemantic.Copy)] - string PreferredStylesheetSet { get; } + string PreferredStylesheetSet { get; } [Export ("selectedStylesheetSet", ArgumentSemantic.Copy)] - string SelectedStylesheetSet { get; set; } + string SelectedStylesheetSet { get; set; } [Export ("createElement:")] DomElement CreateElement (string tagName); @@ -905,37 +905,37 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMDocumentFragment")] + [BaseType (typeof (DomNode), Name = "DOMDocumentFragment")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocumentFragment init]: should never be used partial interface DomDocumentFragment { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMDocumentType")] + [BaseType (typeof (DomNode), Name = "DOMDocumentType")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocumentType init]: should never be used partial interface DomDocumentType { [Export ("name", ArgumentSemantic.Copy)] - string Name { get; } + string Name { get; } [Export ("entities", ArgumentSemantic.Retain)] - DomNamedNodeMap Entities { get; } + DomNamedNodeMap Entities { get; } [Export ("notations", ArgumentSemantic.Retain)] - DomNamedNodeMap Notations { get; } + DomNamedNodeMap Notations { get; } [Export ("publicId", ArgumentSemantic.Copy)] - string PublicId { get; } + string PublicId { get; } [Export ("systemId", ArgumentSemantic.Copy)] - string SystemId { get; } + string SystemId { get; } [Export ("internalSubset", ArgumentSemantic.Copy)] - string InternalSubset { get; } + string InternalSubset { get; } } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMElement")] + [BaseType (typeof (DomNode), Name = "DOMElement")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMElement init]: should never be used partial interface DomElement { [Export ("tagName", ArgumentSemantic.Copy)] @@ -957,7 +957,7 @@ namespace WebKit { int OffsetHeight { get; } /* int, not NSInteger */ [Export ("offsetParent", ArgumentSemantic.Retain)] - DomElement OffsetParent { get; } + DomElement OffsetParent { get; } [Export ("clientLeft")] int ClientLeft { get; } /* int, not NSInteger */ @@ -987,22 +987,22 @@ namespace WebKit { string ClassName { get; set; } [Export ("firstElementChild", ArgumentSemantic.Retain)] - DomElement FirstElementChild { get; } + DomElement FirstElementChild { get; } [Export ("lastElementChild", ArgumentSemantic.Retain)] - DomElement LastElementChild { get; } + DomElement LastElementChild { get; } [Export ("previousElementSibling", ArgumentSemantic.Retain)] - DomElement PreviousElementSibling { get; } + DomElement PreviousElementSibling { get; } [Export ("nextElementSibling", ArgumentSemantic.Retain)] - DomElement NextElementSibling { get; } + DomElement NextElementSibling { get; } [Export ("childElementCount")] uint ChildElementCount { get; } /* unsigned int */ [Export ("innerText", ArgumentSemantic.Copy)] - string InnerText { get; } + string InnerText { get; } [Export ("getAttribute:")] string GetAttribute (string name); @@ -1084,7 +1084,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomNode), Name="DOMEntityReference")] + [BaseType (typeof (DomNode), Name = "DOMEntityReference")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMEntityReference init]: should never be used partial interface DomEntityReference { } @@ -1093,8 +1093,7 @@ namespace WebKit { [BaseType (typeof (NSObject), Name = "DOMEventTarget")] [Protocol] [Model] - partial interface DomEventTarget : NSCopying - { + partial interface DomEventTarget : NSCopying { [Export ("addEventListener:listener:useCapture:")] [Abstract] void AddEventListener (string type, IDomEventListener listener, bool useCapture); @@ -1109,7 +1108,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMEvent")] + [BaseType (typeof (DomObject), Name = "DOMEvent")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMEvent init]: should never be used partial interface DomEvent { [Export ("type", ArgumentSemantic.Copy)] @@ -1117,33 +1116,33 @@ namespace WebKit { [Export ("target", ArgumentSemantic.Retain)] [Protocolize] - DomEventTarget Target { get; } + DomEventTarget Target { get; } [Export ("currentTarget", ArgumentSemantic.Retain)] [Protocolize] - DomEventTarget CurrentTarget { get; } + DomEventTarget CurrentTarget { get; } [Export ("eventPhase")] - DomEventPhase EventPhase { get; } + DomEventPhase EventPhase { get; } [Export ("bubbles")] - bool Bubbles { get; } + bool Bubbles { get; } [Export ("cancelable")] - bool Cancelable { get; } + bool Cancelable { get; } [Export ("timeStamp")] - UInt64 TimeStamp { get; } + UInt64 TimeStamp { get; } [Export ("srcElement", ArgumentSemantic.Retain)] [Protocolize] - DomEventTarget SourceElement { get; } + DomEventTarget SourceElement { get; } [Export ("returnValue")] - bool ReturnValue { get; set; } + bool ReturnValue { get; set; } [Export ("cancelBubble")] - bool CancelBubble { get; set; } + bool CancelBubble { get; set; } [Export ("stopPropagation")] void StopPropagation (); @@ -1397,7 +1396,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (NSObject), Name="DOMEventListener")] + [BaseType (typeof (NSObject), Name = "DOMEventListener")] [Model] [Protocol] partial interface DomEventListener { @@ -1405,10 +1404,10 @@ namespace WebKit { [Export ("handleEvent:")] void HandleEvent (DomEvent evt); } - interface IDomEventListener {} - + interface IDomEventListener { } + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCharacterData), Name="DOMProcessingInstruction")] + [BaseType (typeof (DomCharacterData), Name = "DOMProcessingInstruction")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMProcessingInstruction init]: should never be used partial interface DomProcessingInstruction { [Export ("target", ArgumentSemantic.Copy)] @@ -1418,17 +1417,17 @@ namespace WebKit { string Data { get; set; } [Export ("sheet", ArgumentSemantic.Retain)] - DomStyleSheet Sheet { get; } + DomStyleSheet Sheet { get; } } //////////////////////////////// // DomCharacterData subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCharacterData), Name="DOMText")] + [BaseType (typeof (DomCharacterData), Name = "DOMText")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMText init]: should never be used partial interface DomText { - [Export("wholeText", ArgumentSemantic.Copy)] + [Export ("wholeText", ArgumentSemantic.Copy)] string WholeText { get; } [Export ("splitText:")] @@ -1439,7 +1438,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomCharacterData), Name="DOMComment")] + [BaseType (typeof (DomCharacterData), Name = "DOMComment")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMComment init]: should never be used partial interface DomComment { } @@ -1448,7 +1447,7 @@ namespace WebKit { // DomText subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomText), Name="DOMCDATASection")] + [BaseType (typeof (DomText), Name = "DOMCDATASection")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCDATASection init]: should never be used partial interface DomCDataSection { } @@ -1457,17 +1456,17 @@ namespace WebKit { // DomDocument subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomDocument), Name="DOMHTMLDocument")] + [BaseType (typeof (DomDocument), Name = "DOMHTMLDocument")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLDocument init]: should never be used partial interface DomHtmlDocument { [Export ("embeds", ArgumentSemantic.Retain)] - DomHtmlCollection Embeds { get; } + DomHtmlCollection Embeds { get; } [Export ("plugins", ArgumentSemantic.Retain)] - DomHtmlCollection Plugins { get; } + DomHtmlCollection Plugins { get; } [Export ("scripts", ArgumentSemantic.Retain)] - DomHtmlCollection Scripts { get; } + DomHtmlCollection Scripts { get; } [Export ("width")] int Width { get; } /* int, not NSInteger */ @@ -1476,31 +1475,31 @@ namespace WebKit { int Height { get; } /* int, not NSInteger */ [Export ("dir", ArgumentSemantic.Copy)] - string Dir { get; set; } + string Dir { get; set; } [Export ("designMode", ArgumentSemantic.Copy)] - string DesignMode { get; set; } + string DesignMode { get; set; } [Export ("compatMode", ArgumentSemantic.Copy)] - string CompatMode { get; } + string CompatMode { get; } [Export ("activeElement", ArgumentSemantic.Retain)] - DomElement ActiveElement { get; } + DomElement ActiveElement { get; } [Export ("bgColor", ArgumentSemantic.Copy)] - string BackgroundColor { get; set; } + string BackgroundColor { get; set; } [Export ("fgColor", ArgumentSemantic.Copy)] - string ForegroundColor { get; set; } + string ForegroundColor { get; set; } [Export ("alinkColor", ArgumentSemantic.Copy)] - string ALinkColor { get; set; } + string ALinkColor { get; set; } [Export ("linkColor", ArgumentSemantic.Copy)] - string LinkColor { get; set; } + string LinkColor { get; set; } [Export ("vlinkColor", ArgumentSemantic.Copy)] - string VLinkColor { get; set; } + string VLinkColor { get; set; } [Export ("open")] void Open (); @@ -1531,7 +1530,7 @@ namespace WebKit { // DomElement subclasses [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLInputElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLInputElement")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLElement init]: should never be used partial interface DomHtmlInputElement { [Export ("accept", ArgumentSemantic.Copy)] @@ -1558,11 +1557,11 @@ namespace WebKit { [Export ("disabled")] bool Disabled { get; set; } -// [Export ("form")] -// DomHtmlFormElement Form { get; } + // [Export ("form")] + // DomHtmlFormElement Form { get; } -// [Export ("files")] -// DomFileList Files { get; } + // [Export ("files")] + // DomFileList Files { get; } [Export ("indeterminate")] bool Indeterminate { get; set; } @@ -1608,13 +1607,13 @@ namespace WebKit { [Export ("useMap", ArgumentSemantic.Copy)] string UseMap { get; set; } - + [Export ("accessKey", ArgumentSemantic.Copy)] string AccessKey { get; set; } - + [Export ("altDisplayString", ArgumentSemantic.Copy)] string AltDisplayString { get; } - + [Export ("absoluteImageURL", ArgumentSemantic.Copy)] NSUrl AbsoluteImageURL { get; } @@ -1629,10 +1628,10 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTextAreaElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTextAreaElement")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLElement init]: should never be used partial interface DomHtmlTextAreaElement { - + [Export ("accessKey", ArgumentSemantic.Copy)] string AccessKey { get; set; } @@ -1645,8 +1644,8 @@ namespace WebKit { [Export ("disabled")] bool Disabled { get; set; } -// [Export ("form")] -// DomHtmlFormElement Form { get; } + // [Export ("form")] + // DomHtmlFormElement Form { get; } [Export ("name", ArgumentSemantic.Copy)] string Name { get; set; } @@ -1675,49 +1674,49 @@ namespace WebKit { [Export ("select")] void Select (); } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomElement), Name="DOMHTMLElement")] + [BaseType (typeof (DomElement), Name = "DOMHTMLElement")] [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLElement init]: should never be used partial interface DomHtmlElement { [Export ("idName", ArgumentSemantic.Copy)] - string IdName { get; set; } + string IdName { get; set; } [Export ("title", ArgumentSemantic.Copy)] - string Title { get; set; } + string Title { get; set; } [Export ("lang", ArgumentSemantic.Copy)] - string Lang { get; set; } + string Lang { get; set; } [Export ("dir", ArgumentSemantic.Copy)] - string Dir { get; set; } + string Dir { get; set; } [Export ("tabIndex")] int TabIndex { get; set; } /* int, not NSInteger */ [Export ("innerHTML", ArgumentSemantic.Copy)] - string InnerHTML { get; set; } + string InnerHTML { get; set; } [Export ("innerText", ArgumentSemantic.Copy)] - string InnerText { get; set; } + string InnerText { get; set; } [Export ("outerHTML", ArgumentSemantic.Copy)] - string OuterHTML { get; set; } + string OuterHTML { get; set; } [Export ("outerText", ArgumentSemantic.Copy)] - string OuterText { get; set; } + string OuterText { get; set; } [Export ("children", ArgumentSemantic.Retain)] - DomHtmlCollection Children { get; } + DomHtmlCollection Children { get; } [Export ("contentEditable", ArgumentSemantic.Copy)] - string ContentEditable { get; set; } + string ContentEditable { get; set; } [Export ("isContentEditable")] - bool IsContentEditable { get; } + bool IsContentEditable { get; } [Export ("titleDisplayString", ArgumentSemantic.Copy)] - string TitleDisplayString { get; } + string TitleDisplayString { get; } } ////////////////////////////////////////////////////////////////// @@ -1775,10 +1774,10 @@ namespace WebKit { WebHistoryItem [] ForwardListWithLimit (int /* int, not NSInteger */ limit); [Export ("backListCount")] - int BackListCount { get; } /* int, not NSInteger */ + int BackListCount { get; } /* int, not NSInteger */ [Export ("forwardListCount")] - int ForwardListCount { get; } /* int, not NSInteger */ + int ForwardListCount { get; } /* int, not NSInteger */ [Export ("containsItem:")] bool ContainsItem (WebHistoryItem item); @@ -1788,7 +1787,7 @@ namespace WebKit { //Detected properties [Export ("capacity")] - int Capacity { get; set; } /* int, not NSInteger */ + int Capacity { get; set; } /* int, not NSInteger */ } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] @@ -1882,36 +1881,36 @@ namespace WebKit { // This is a protocol that is adopted, in some internal classes // this is a problem, so I am hiding it for now // - -// [BaseType (typeof (NSObject))] -// [Model] -// partial interface WebDocumentView { -// [Abstract] -// [Export ("setDataSource:")] -// void SetDataSource (WebDataSource dataSource); -// -// [Abstract] -// [Export ("dataSourceUpdated:")] -// void DataSourceUpdated (WebDataSource dataSource); -// -// [Abstract] -// [Export ("setNeedsLayout:")] -// void SetNeedsLayout (bool flag); -// -// [Abstract] -// [Export ("layout")] -// void Layout (); -// -// [Abstract] -// [Export ("viewWillMoveToHostWindow:")] -// void ViewWillMoveToHostWindow (NSWindow hostWindow); -// -// [Abstract] -// [Export ("viewDidMoveToHostWindow")] -// void ViewDidMoveToHostWindow (); -// } - + // [BaseType (typeof (NSObject))] + // [Model] + // partial interface WebDocumentView { + // [Abstract] + // [Export ("setDataSource:")] + // void SetDataSource (WebDataSource dataSource); + // + // [Abstract] + // [Export ("dataSourceUpdated:")] + // void DataSourceUpdated (WebDataSource dataSource); + // + // [Abstract] + // [Export ("setNeedsLayout:")] + // void SetNeedsLayout (bool flag); + // + // [Abstract] + // [Export ("layout")] + // void Layout (); + // + // [Abstract] + // [Export ("viewWillMoveToHostWindow:")] + // void ViewWillMoveToHostWindow (NSWindow hostWindow); + // + // [Abstract] + // [Export ("viewDidMoveToHostWindow")] + // void ViewDidMoveToHostWindow (); + // } + + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSUrlDownload))] partial interface WebDownload { @@ -1925,7 +1924,7 @@ namespace WebKit { [Export ("downloadWindowForAuthenticationSheet:"), DelegateName ("WebDownloadRequest"), DefaultValue (null)] NSWindow OnDownloadWindowForSheet (WebDownload download); } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // invalid handle returned @@ -1991,11 +1990,12 @@ namespace WebKit { WebScriptObject WindowObject { get; } [Export ("globalContext")] - /* JSGlobalContextRef */ IntPtr GlobalContext { get; } + /* JSGlobalContextRef */ + IntPtr GlobalContext { get; } - [Mac (10,10)] - [Export ("javaScriptContext", ArgumentSemantic.Strong)] - JSContext JavaScriptContext { get; } + [Mac (10, 10)] + [Export ("javaScriptContext", ArgumentSemantic.Strong)] + JSContext JavaScriptContext { get; } } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] @@ -2045,8 +2045,8 @@ namespace WebKit { [Export ("webView:windowScriptObjectAvailable:"), EventArgs ("WebFrameScriptObject")] void WindowScriptObjectAvailable (WebView webView, WebScriptObject windowScriptObject); - [Export ("webView:didCreateJavaScriptContext:forFrame:"), EventArgs ("WebFrameJavaScriptContext")] - void DidCreateJavaScriptContext (WebView webView, JSContext context, WebFrame frame); + [Export ("webView:didCreateJavaScriptContext:forFrame:"), EventArgs ("WebFrameJavaScriptContext")] + void DidCreateJavaScriptContext (WebView webView, JSContext context, WebFrame frame); } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] @@ -2118,7 +2118,7 @@ namespace WebKit { [Export ("itemForURL:")] WebHistoryItem GetHistoryItemForUrl (NSUrl url); } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSObject))] partial interface WebHistoryItem : NSCopying { @@ -2177,13 +2177,13 @@ namespace WebKit { void Cancel (); } - interface IWebOpenPanelResultListener {} + interface IWebOpenPanelResultListener { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSObject))] [Model] [Protocol (FormalSince = "10.11")] - partial interface WebPolicyDelegate { + partial interface WebPolicyDelegate { [Export ("webView:decidePolicyForNavigationAction:request:frame:decisionListener:"), EventArgs ("WebNavigationPolicy")] void DecidePolicyForNavigation (WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken); @@ -2224,7 +2224,7 @@ namespace WebKit { [Export ("ignore")] void Ignore (); } - + [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSObject))] partial interface WebPreferences : NSCoding { @@ -2282,10 +2282,10 @@ namespace WebKit { NSUrl UserStyleSheetLocation { get; set; } [Export ("javaEnabled")] - bool JavaEnabled { [Bind ("isJavaEnabled")]get; set; } + bool JavaEnabled { [Bind ("isJavaEnabled")] get; set; } [Export ("javaScriptEnabled")] - bool JavaScriptEnabled { [Bind ("isJavaScriptEnabled")]get; set; } + bool JavaScriptEnabled { [Bind ("isJavaScriptEnabled")] get; set; } [Export ("javaScriptCanOpenWindowsAutomatically")] bool JavaScriptCanOpenWindowsAutomatically { get; set; } @@ -2377,7 +2377,7 @@ namespace WebKit { [Model] [Protocol (FormalSince = "10.11")] partial interface WebUIDelegate { - [Export ("webView:createWebViewWithRequest:"), DelegateName("CreateWebViewFromRequest"), DefaultValue (null)] + [Export ("webView:createWebViewWithRequest:"), DelegateName ("CreateWebViewFromRequest"), DefaultValue (null)] WebView UICreateWebView (WebView sender, NSUrlRequest request); [Export ("webViewShow:")] @@ -2397,53 +2397,53 @@ namespace WebKit { [Export ("webViewUnfocus:")] void UIUnfocus (WebView sender); - + [Export ("webViewFirstResponder:"), DelegateName ("WebViewGetResponder"), DefaultValue (null)] NSResponder UIGetFirstResponder (WebView sender); - [Export ("webView:makeFirstResponder:"), EventArgs("WebViewResponder")] + [Export ("webView:makeFirstResponder:"), EventArgs ("WebViewResponder")] void UIMakeFirstResponder (WebView sender, NSResponder newResponder); - [Export ("webView:setStatusText:"), EventArgs("WebViewStatusText")] + [Export ("webView:setStatusText:"), EventArgs ("WebViewStatusText")] void UISetStatusText (WebView sender, string text); - + [Export ("webViewStatusText:"), DelegateName ("WebViewGetString"), DefaultValue (null)] string UIGetStatusText (WebView sender); [Export ("webViewAreToolbarsVisible:"), DelegateName ("WebViewGetBool"), DefaultValue (null)] bool UIAreToolbarsVisible (WebView sender); - [Export ("webView:setToolbarsVisible:"), EventArgs("WebViewToolBars")] + [Export ("webView:setToolbarsVisible:"), EventArgs ("WebViewToolBars")] void UISetToolbarsVisible (WebView sender, bool visible); [Export ("webViewIsStatusBarVisible:"), DelegateName ("WebViewGetBool"), DefaultValue (false)] bool UIIsStatusBarVisible (WebView sender); - [Export ("webView:setStatusBarVisible:"), EventArgs("WebViewStatusBar")] + [Export ("webView:setStatusBarVisible:"), EventArgs ("WebViewStatusBar")] void UISetStatusBarVisible (WebView sender, bool visible); - [Export ("webViewIsResizable:"), DelegateName("WebViewGetBool"), DefaultValue (null)] + [Export ("webViewIsResizable:"), DelegateName ("WebViewGetBool"), DefaultValue (null)] bool UIIsResizable (WebView sender); - [Export ("webView:setResizable:"), EventArgs("WebViewResizable")] + [Export ("webView:setResizable:"), EventArgs ("WebViewResizable")] void UISetResizable (WebView sender, bool resizable); - [Export ("webView:setFrame:"), EventArgs("WebViewFrame")] + [Export ("webView:setFrame:"), EventArgs ("WebViewFrame")] void UISetFrame (WebView sender, CGRect newFrame); - [Export ("webViewFrame:"), DelegateName("WebViewGetRectangle"), DefaultValue (null)] + [Export ("webViewFrame:"), DelegateName ("WebViewGetRectangle"), DefaultValue (null)] CGRect UIGetFrame (WebView sender); - [Export ("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:"), EventArgs("WebViewJavaScriptFrame")] + [Export ("webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:"), EventArgs ("WebViewJavaScriptFrame")] void UIRunJavaScriptAlertPanelMessage (WebView sender, string withMessage, WebFrame initiatedByFrame); - [Export ("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:"), DelegateName("WebViewConfirmationPanel"), DefaultValue (null)] + [Export ("webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:"), DelegateName ("WebViewConfirmationPanel"), DefaultValue (null)] bool UIRunJavaScriptConfirmationPanel (WebView sender, string withMessage, WebFrame initiatedByFrame); [Export ("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:"), DelegateName ("WebViewPromptPanel"), DefaultValue (null)] string UIRunJavaScriptTextInputPanelWithFrame (WebView sender, string prompt, string defaultText, WebFrame initiatedByFrame); - [Export ("webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:"), DelegateName("WebViewJavaScriptFrame"), DefaultValue (null)] + [Export ("webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame:"), DelegateName ("WebViewJavaScriptFrame"), DefaultValue (null)] bool UIRunBeforeUnload (WebView sender, string message, WebFrame initiatedByFrame); [Export ("webView:runOpenPanelForFileButtonWithResultListener:"), EventArgs ("WebViewRunOpenPanel")] @@ -2452,14 +2452,14 @@ namespace WebKit { [Export ("webView:mouseDidMoveOverElement:modifierFlags:"), EventArgs ("WebViewMouseMoved")] void UIMouseDidMoveOverElement (WebView sender, NSDictionary elementInformation, NSEventModifierMask modifierFlags); - [Export ("webView:contextMenuItemsForElement:defaultMenuItems:"), DelegateName("WebViewGetContextMenuItems"), DefaultValue (null)] + [Export ("webView:contextMenuItemsForElement:defaultMenuItems:"), DelegateName ("WebViewGetContextMenuItems"), DefaultValue (null)] NSMenuItem [] UIGetContextMenuItems (WebView sender, NSDictionary forElement, NSMenuItem [] defaultMenuItems); - + [Export ("webView:validateUserInterfaceItem:defaultValidation:"), DelegateName ("WebViewValidateUserInterface"), DefaultValueFromArgument ("defaultValidation")] bool UIValidateUserInterfaceItem (WebView webView, NSObject validatedUserInterfaceItem, bool defaultValidation); #if !NET - [Export ("webView:shouldPerformAction:fromSender:"), DelegateName("WebViewPerformAction"), DefaultValue (null)] + [Export ("webView:shouldPerformAction:fromSender:"), DelegateName ("WebViewPerformAction"), DefaultValue (null)] bool UIShouldPerformActionfromSender (WebView webView, Selector action, NSObject sender); #else [Export ("webView:shouldPerformAction:fromSender:"), DelegateName("WebViewPerformAction"), DefaultValue (null)] @@ -2490,13 +2490,13 @@ namespace WebKit { [Export ("webView:willPerformDragSourceAction:fromPoint:withPasteboard:"), EventArgs ("WebViewPerformDrag")] void UIWillPerformDragSource (WebView webView, WebDragSourceAction action, CGPoint sourcePoint, NSPasteboard pasteboard); - [Export ("webView:printFrameView:"), EventArgs("WebViewPrint")] + [Export ("webView:printFrameView:"), EventArgs ("WebViewPrint")] void UIPrintFrameView (WebView sender, WebFrameView frameView); - [Export ("webViewHeaderHeight:"), DelegateName("WebViewGetFloat"), DefaultValue (null)] + [Export ("webViewHeaderHeight:"), DelegateName ("WebViewGetFloat"), DefaultValue (null)] float UIGetHeaderHeight (WebView sender); /* float, not CGFloat */ - [Export ("webViewFooterHeight:"), DelegateName("WebViewGetFloat"), DefaultValue (null)] + [Export ("webViewFooterHeight:"), DelegateName ("WebViewGetFloat"), DefaultValue (null)] float UIGetFooterHeight (WebView sender); /* float, not CGFloat */ [Export ("webView:drawHeaderInRect:"), EventArgs ("WebViewHeader")] @@ -2505,19 +2505,19 @@ namespace WebKit { [Export ("webView:drawFooterInRect:"), EventArgs ("WebViewFooter")] void UIDrawFooterInRect (WebView sender, CGRect rect); - [Export ("webView:runJavaScriptAlertPanelWithMessage:"), EventArgs("WebViewJavaScript")] + [Export ("webView:runJavaScriptAlertPanelWithMessage:"), EventArgs ("WebViewJavaScript")] void UIRunJavaScriptAlertPanel (WebView sender, string message); - [Export ("webView:runJavaScriptConfirmPanelWithMessage:"), DelegateName("WebViewPrompt"), DefaultValue (null)] + [Export ("webView:runJavaScriptConfirmPanelWithMessage:"), DelegateName ("WebViewPrompt"), DefaultValue (null)] bool UIRunJavaScriptConfirmPanel (WebView sender, string message); - [Export ("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:"), DelegateName("WebViewJavaScriptInput"), DefaultValue (null)] + [Export ("webView:runJavaScriptTextInputPanelWithPrompt:defaultText:"), DelegateName ("WebViewJavaScriptInput"), DefaultValue (null)] string UIRunJavaScriptTextInputPanel (WebView sender, string prompt, string defaultText); - [Export ("webView:setContentRect:"), EventArgs("WebViewContent")] + [Export ("webView:setContentRect:"), EventArgs ("WebViewContent")] void UISetContentRect (WebView sender, CGRect frame); - [Export ("webViewContentRect:"), DelegateName("WebViewGetRectangle"), DefaultValue (null)] + [Export ("webViewContentRect:"), DelegateName ("WebViewGetRectangle"), DefaultValue (null)] CGRect UIGetContentRect (WebView sender); } @@ -2529,7 +2529,8 @@ namespace WebKit { bool ThrowException (string exceptionMessage); [Export ("JSObject")] - /* JSObjectRef */ IntPtr JSObject { get; } + /* JSObjectRef */ + IntPtr JSObject { get; } [Export ("callWebScriptMethod:withArguments:")] NSObject CallWebScriptMethod (string name, NSObject [] arguments); @@ -2552,20 +2553,20 @@ namespace WebKit { [Export ("setException:")] void SetException (string description); - [Mac (10,10)] - [Export ("JSValue")] - JSValue JSValue { get; } + [Mac (10, 10)] + [Export ("JSValue")] + JSValue JSValue { get; } } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] [BaseType (typeof (NSView), - Events=new Type [] { + Events = new Type [] { typeof (WebFrameLoadDelegate), typeof (WebDownloadDelegate), typeof (WebResourceLoadDelegate), typeof (WebUIDelegate), typeof (WebPolicyDelegate) }, - Delegates=new string [] { + Delegates = new string [] { "WeakFrameLoadDelegate", "WeakDownloadDelegate", "WeakResourceLoadDelegate", @@ -2598,7 +2599,7 @@ namespace WebKit { void RegisterUrlSchemeAsLocal (string scheme); [Export ("initWithFrame:frameName:groupName:")] - NativeHandle Constructor (CGRect frame, [NullAllowed] string frameName, [NullAllowed]string groupName); + NativeHandle Constructor (CGRect frame, [NullAllowed] string frameName, [NullAllowed] string groupName); [Export ("initWithFrame:")] NativeHandle Constructor (CGRect frame); @@ -2613,7 +2614,7 @@ namespace WebKit { WebFrame SelectedFrame { get; } [Export ("backForwardList")] - WebBackForwardList BackForwardList { get; } + WebBackForwardList BackForwardList { get; } [Export ("setMaintainsBackForwardList:")] void SetMaintainsBackForwardList (bool flag); @@ -2720,7 +2721,7 @@ namespace WebKit { [Wrap ("WeakPolicyDelegate")] [Protocolize] WebPolicyDelegate PolicyDelegate { get; set; } - + [Export ("textSizeMultiplier")] float TextSizeMultiplier { get; set; } /* float, not CGFloat */ @@ -2824,7 +2825,7 @@ namespace WebKit { //Detected properties [Export ("editable")] - bool Editable { [Bind ("isEditable")]get; set; } + bool Editable { [Bind ("isEditable")] get; set; } [Export ("typingStyle")] DomCssStyleDeclaration TypingStyle { get; set; } @@ -2833,7 +2834,7 @@ namespace WebKit { bool SmartInsertDeleteEnabled { get; set; } [Export ("continuousSpellCheckingEnabled")] - bool ContinuousSpellCheckingEnabled { [Bind ("isContinuousSpellCheckingEnabled")]get; set; } + bool ContinuousSpellCheckingEnabled { [Bind ("isContinuousSpellCheckingEnabled")] get; set; } [Export ("editingDelegate", ArgumentSemantic.Assign)] NSObject EditingDelegate { get; set; } @@ -2927,7 +2928,7 @@ namespace WebKit { } partial interface WebPolicyDelegate { - + [Field ("WebActionNavigationTypeKey")] NSString WebActionNavigationTypeKey { get; } @@ -2945,7 +2946,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMBlob")] + [BaseType (typeof (DomObject), Name = "DOMBlob")] [DisableDefaultCtor] partial interface DomBlob { [Export ("size")] @@ -2953,7 +2954,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomBlob), Name="DOMFile")] + [BaseType (typeof (DomBlob), Name = "DOMFile")] [DisableDefaultCtor] partial interface DomFile { [Export ("name", ArgumentSemantic.Copy)] @@ -2961,7 +2962,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMFileList")] + [BaseType (typeof (DomObject), Name = "DOMFileList")] [DisableDefaultCtor] partial interface DomFileList { [Export ("length")] @@ -2972,7 +2973,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLFormElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLFormElement")] [DisableDefaultCtor] partial interface DomHtmlFormElement { [Export ("acceptCharset", ArgumentSemantic.Copy)] @@ -3023,7 +3024,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLAnchorElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLAnchorElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlAnchorElement { @@ -3090,7 +3091,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLAppletElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLAppletElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlAppletElement { @@ -3129,7 +3130,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLAreaElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLAreaElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlAreaElement { @@ -3181,7 +3182,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLBRElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLBRElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlBRElement { @@ -3190,7 +3191,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLBaseElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLBaseElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlBaseElement { @@ -3202,7 +3203,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLBaseFontElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLBaseFontElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlBaseFontElement { @@ -3217,7 +3218,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLBodyElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLBodyElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlBodyElement { @@ -3241,7 +3242,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLButtonElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLButtonElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlButtonElement { @@ -3258,7 +3259,7 @@ namespace WebKit { string Name { get; set; } [Export ("type")] - string Type { get; [Mac (10,9)] set; } + string Type { get; [Mac (10, 9)] set; } [Export ("value")] string Value { get; set; } @@ -3275,7 +3276,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLDListElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLDListElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlDListElement { @@ -3284,7 +3285,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLDirectoryElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLDirectoryElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlDirectoryElement { @@ -3293,7 +3294,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLDivElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLDivElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlDivElement { @@ -3302,7 +3303,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLEmbedElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLEmbedElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlEmbedElement { @@ -3326,7 +3327,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLFieldSetElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLFieldSetElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlFieldSetElement { @@ -3335,7 +3336,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLFontElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLFontElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlFontElement { @@ -3350,7 +3351,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLFrameElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLFrameElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlFrameElement { @@ -3395,7 +3396,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLFrameSetElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLFrameSetElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlFrameSetElement { @@ -3407,7 +3408,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLHRElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLHRElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlHRElement { @@ -3425,7 +3426,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLHeadElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLHeadElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlHeadElement { @@ -3434,7 +3435,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLHeadingElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLHeadingElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlHeadingElement { @@ -3443,7 +3444,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLHtmlElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLHtmlElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlHtmlElement { @@ -3452,7 +3453,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLIFrameElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLIFrameElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlIFrameElement { @@ -3494,7 +3495,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLImageElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLImageElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlImageElement { @@ -3560,7 +3561,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLLIElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLLIElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlLIElement { @@ -3572,7 +3573,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLLabelElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLLabelElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlLabelElement { @@ -3588,7 +3589,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLLegendElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLLegendElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlLegendElement { @@ -3604,7 +3605,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLLinkElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLLinkElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlLinkElement { @@ -3643,7 +3644,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLMapElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLMapElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlMapElement { @@ -3655,7 +3656,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLMarqueeElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLMarqueeElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlMarqueeElement { @@ -3667,7 +3668,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLMenuElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLMenuElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlMenuElement { @@ -3676,7 +3677,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLMetaElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLMetaElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlMetaElement { @@ -3694,7 +3695,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLModElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLModElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlModElement { @@ -3706,7 +3707,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLOListElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLOListElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlOListElement { @@ -3721,7 +3722,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLObjectElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLObjectElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlObjectElement { @@ -3784,7 +3785,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLOptGroupElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLOptGroupElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlOptGroupElement { @@ -3796,7 +3797,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLOptionElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLOptionElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlOptionElement { @@ -3826,7 +3827,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomObject), Name="DOMHTMLOptionsCollection")] + [BaseType (typeof (DomObject), Name = "DOMHTMLOptionsCollection")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlOptionsCollection { @@ -3850,7 +3851,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLParagraphElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLParagraphElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlParagraphElement { @@ -3859,7 +3860,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLParamElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLParamElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlParamElement { @@ -3877,7 +3878,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLPreElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLPreElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlPreElement { @@ -3889,7 +3890,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLQuoteElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLQuoteElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlQuoteElement { @@ -3898,7 +3899,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLScriptElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLScriptElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlScriptElement { @@ -3925,7 +3926,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLSelectElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLSelectElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlSelectElement { @@ -3979,7 +3980,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLStyleElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLStyleElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlStyleElement { @@ -3997,7 +3998,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableCaptionElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableCaptionElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlTableCaptionElement { @@ -4006,7 +4007,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableCellElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableCellElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlTableCellElement { @@ -4057,7 +4058,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableColElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableColElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlTableColElement { @@ -4081,7 +4082,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlTableElement { @@ -4153,7 +4154,7 @@ namespace WebKit { } [Deprecated (PlatformName.MacOSX, 10, 14, message: "No longer supported.")] - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableRowElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableRowElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used interface DomHtmlTableRowElement { @@ -4188,7 +4189,7 @@ namespace WebKit { void DeleteCell (int /* int, not NSInteger */ index); } - [BaseType (typeof (DomHtmlElement), Name="DOMHTMLTableSectionElement")] + [BaseType (typeof (DomHtmlElement), Name = "DOMHTMLTableSectionElement")] [DisableDefaultCtor] // ObjCException: +[ init]: should never be used [Deprecated (PlatformName.MacOSX, 10, 14)] interface DomHtmlTableSectionElement { diff --git a/src/wkwebkit.cs b/src/wkwebkit.cs index c0ad049dc1..622d32b949 100644 --- a/src/wkwebkit.cs +++ b/src/wkwebkit.cs @@ -36,9 +36,8 @@ using NSImage = UIKit.UIImage; using NativeHandle = System.IntPtr; #endif -namespace WebKit -{ - [Mac (13,0), iOS (16,0), MacCatalyst (16,0)] +namespace WebKit { + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Native] public enum WKFullscreenState : long { NotInFullscreen, @@ -47,16 +46,15 @@ namespace WebKit ExitingFullscreen, } - [iOS (16,0), MacCatalyst (16,0), Mac (13,0)] + [iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0)] [Native] - public enum WKDialogResult : long - { + public enum WKDialogResult : long { ShowDefault = 1, AskAgain, Handled, } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] [DisableDefaultCtor ()] // Crashes during deallocation in Xcode 6 beta 2. radar 17377712. interface WKBackForwardListItem { @@ -72,7 +70,7 @@ namespace WebKit NSUrl InitialUrl { get; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] [DisableDefaultCtor ()] // Crashes during deallocation in Xcode 6 beta 2. radar 17377712. interface WKBackForwardList { @@ -100,78 +98,74 @@ namespace WebKit WKBackForwardListItem ItemAtIndex (nint index); } - [Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface WKContentRuleList - { + [Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface WKContentRuleList { [Export ("identifier")] string Identifier { get; } } - [Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] - interface WKContentRuleListStore - { + [Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] + interface WKContentRuleListStore { [Static] [Export ("defaultStore")] WKContentRuleListStore DefaultStore { get; } - + [Static] [Export ("storeWithURL:")] WKContentRuleListStore FromUrl (NSUrl url); - + [Export ("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:")] [Async] void CompileContentRuleList (string identifier, string encodedContentRuleList, Action completionHandler); - + [Export ("lookUpContentRuleListForIdentifier:completionHandler:")] [Async] void LookUpContentRuleList (string identifier, Action completionHandler); - + [Export ("removeContentRuleListForIdentifier:completionHandler:")] [Async] void RemoveContentRuleList (string identifier, Action completionHandler); - + [Export ("getAvailableContentRuleListIdentifiers:")] [Async] void GetAvailableContentRuleListIdentifiers (Action callback); } - - [Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject), Name = "WKHTTPCookieStore")] + + [Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject), Name = "WKHTTPCookieStore")] [DisableDefaultCtor] - interface WKHttpCookieStore - { + interface WKHttpCookieStore { [Export ("getAllCookies:")] [Async] void GetAllCookies (Action completionHandler); - + [Export ("setCookie:completionHandler:")] [Async] void SetCookie (NSHttpCookie cookie, [NullAllowed] Action completionHandler); - + [Export ("deleteCookie:completionHandler:")] [Async] void DeleteCookie (NSHttpCookie cookie, [NullAllowed] Action completionHandler); - + [Export ("addObserver:")] void AddObserver (IWKHttpCookieStoreObserver observer); - + [Export ("removeObserver:")] void RemoveObserver (IWKHttpCookieStoreObserver observer); } - interface IWKHttpCookieStoreObserver {} - - [Mac (10,13), iOS (11,0)] + interface IWKHttpCookieStoreObserver { } + + [Mac (10, 13), iOS (11, 0)] [Protocol (Name = "WKHTTPCookieStoreObserver")] - interface WKHttpCookieStoreObserver - { + interface WKHttpCookieStoreObserver { [Export ("cookiesDidChangeInCookieStore:")] void CookiesDidChangeInCookieStore (WKHttpCookieStore cookieStore); } - - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKFrameInfo : NSCopying { @@ -181,26 +175,28 @@ namespace WebKit [Export ("request", ArgumentSemantic.Copy)] NSUrlRequest Request { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("securityOrigin")] WKSecurityOrigin SecurityOrigin { get; } - [iOS (11,0)][Mac (10,13)] + [iOS (11, 0)] + [Mac (10, 13)] [NullAllowed, Export ("webView", ArgumentSemantic.Weak)] WKWebView WebView { get; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKNavigation { - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("effectiveContentMode")] WKContentMode EffectiveContentMode { get; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKNavigationAction { @@ -217,21 +213,24 @@ namespace WebKit [Export ("request", ArgumentSemantic.Copy)] NSUrlRequest Request { get; } - [NoiOS][NoMacCatalyst] + [NoiOS] + [NoMacCatalyst] [Export ("modifierFlags")] NSEventModifierMask ModifierFlags { get; } - [NoiOS][NoMacCatalyst] + [NoiOS] + [NoMacCatalyst] [Export ("buttonNumber")] nint ButtonNumber { get; } - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("shouldPerformDownload")] bool ShouldPerformDownload { get; } } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface WKNavigationDelegate { @@ -242,8 +241,8 @@ namespace WebKit [Export ("webView:decidePolicyForNavigationResponse:decisionHandler:")] void DecidePolicy (WKWebView webView, WKNavigationResponse navigationResponse, Action decisionHandler); - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("webView:decidePolicyForNavigationAction:preferences:decisionHandler:")] void DecidePolicy (WKWebView webView, WKNavigationAction navigationAction, WKWebpagePreferences preferences, Action decisionHandler); @@ -266,28 +265,32 @@ namespace WebKit void DidFailNavigation (WKWebView webView, WKNavigation navigation, NSError error); [Export ("webView:didReceiveAuthenticationChallenge:completionHandler:")] - void DidReceiveAuthenticationChallenge (WKWebView webView, NSUrlAuthenticationChallenge challenge, Action completionHandler); + void DidReceiveAuthenticationChallenge (WKWebView webView, NSUrlAuthenticationChallenge challenge, Action completionHandler); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("webViewWebContentProcessDidTerminate:")] void ContentProcessDidTerminate (WKWebView webView); - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [Export ("webView:authenticationChallenge:shouldAllowDeprecatedTLS:")] void ShouldAllowDeprecatedTls (WKWebView webView, NSUrlAuthenticationChallenge challenge, Action decisionHandler); - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("webView:navigationAction:didBecomeDownload:")] void NavigationActionDidBecomeDownload (WKWebView webView, WKNavigationAction navigationAction, WKDownload download); - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("webView:navigationResponse:didBecomeDownload:")] void NavigationResponseDidBecomeDownload (WKWebView webView, WKNavigationResponse navigationResponse, WKDownload download); } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKNavigationResponse { @@ -301,33 +304,36 @@ namespace WebKit bool CanShowMimeType { get; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKPreferences : NSSecureCoding { [Export ("minimumFontSize")] nfloat MinimumFontSize { get; set; } - [Deprecated (PlatformName.MacOSX, 11,0, message: "Use 'WKWebPagePreferences.AllowsContentJavaScript' instead.")] - [Deprecated (PlatformName.iOS, 14,0, message: "Use 'WKWebPagePreferences.AllowsContentJavaScript' instead.")] + [Deprecated (PlatformName.MacOSX, 11, 0, message: "Use 'WKWebPagePreferences.AllowsContentJavaScript' instead.")] + [Deprecated (PlatformName.iOS, 14, 0, message: "Use 'WKWebPagePreferences.AllowsContentJavaScript' instead.")] [Export ("javaScriptEnabled")] bool JavaScriptEnabled { get; set; } [Export ("javaScriptCanOpenWindowsAutomatically")] bool JavaScriptCanOpenWindowsAutomatically { get; set; } - [NoiOS][NoMacCatalyst] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Feature no longer supported.")] + [NoiOS] + [NoMacCatalyst] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Feature no longer supported.")] [Export ("javaEnabled")] bool JavaEnabled { get; set; } - [NoiOS][NoMacCatalyst] - [Deprecated (PlatformName.MacOSX, 10,15, message: "Feature no longer supported.")] + [NoiOS] + [NoMacCatalyst] + [Deprecated (PlatformName.MacOSX, 10, 15, message: "Feature no longer supported.")] [Export ("plugInsEnabled")] bool PlugInsEnabled { get; set; } // Headers says 10,12,3 but it is not available likely they meant 10,12,4 - [NoiOS][NoMacCatalyst] - [Mac (10,12,4)] + [NoiOS] + [NoMacCatalyst] + [Mac (10, 12, 4)] [Export ("tabFocusesLinks")] bool TabFocusesLinks { get; set; } @@ -336,27 +342,29 @@ namespace WebKit bool FraudulentWebsiteWarningEnabled { [Bind ("isFraudulentWebsiteWarningEnabled")] get; set; } [Internal] - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Export ("textInteractionEnabled")] bool _OldTextInteractionEnabled { get; set; } [Internal] - [Mac (12,0)][iOS (15,0)] - [MacCatalyst (15,0)] + [Mac (12, 0)] + [iOS (15, 0)] + [MacCatalyst (15, 0)] [Export ("isTextInteractionEnabled")] bool _NewGetTextInteractionEnabled (); - [Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("siteSpecificQuirksModeEnabled")] bool SiteSpecificQuirksModeEnabled { [Bind ("isSiteSpecificQuirksModeEnabled")] get; set; } - [Mac (12,3), iOS (15,4), MacCatalyst (15,4)] + [Mac (12, 3), iOS (15, 4), MacCatalyst (15, 4)] [Export ("elementFullscreenEnabled")] bool ElementFullscreenEnabled { [Bind ("isElementFullscreenEnabled")] get; set; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKScriptMessage { @@ -375,15 +383,16 @@ namespace WebKit [Export ("frameInfo", ArgumentSemantic.Copy)] WKFrameInfo FrameInfo { get; } - [Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("world")] WKContentWorld World { get; } } - interface IWKScriptMessageHandler {} + interface IWKScriptMessageHandler { } - [Mac (10,10), iOS (8,0)] + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface WKScriptMessageHandler { @@ -393,7 +402,8 @@ namespace WebKit void DidReceiveScriptMessage (WKUserContentController userContentController, WKScriptMessage message); } - [iOS (9,0)][Mac(10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKSecurityOrigin { @@ -407,9 +417,9 @@ namespace WebKit nint Port { get; } } - - [Mac (10,13), iOS (11,0)] - [BaseType (typeof(NSObject))] + + [Mac (10, 13), iOS (11, 0)] + [BaseType (typeof (NSObject))] interface WKSnapshotConfiguration : NSCopying { [Export ("rect")] CGRect Rect { get; set; } @@ -418,88 +428,85 @@ namespace WebKit [NullAllowed] NSNumber SnapshotWidth { get; set; } - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("afterScreenUpdates")] bool AfterScreenUpdates { get; set; } } - interface IWKUrlSchemeHandler {} - [Mac (10,13), iOS (11,0)] + interface IWKUrlSchemeHandler { } + [Mac (10, 13), iOS (11, 0)] [Protocol (Name = "WKURLSchemeHandler")] - interface WKUrlSchemeHandler - { + interface WKUrlSchemeHandler { [Abstract] [Export ("webView:startURLSchemeTask:")] void StartUrlSchemeTask (WKWebView webView, IWKUrlSchemeTask urlSchemeTask); - + [Abstract] [Export ("webView:stopURLSchemeTask:")] void StopUrlSchemeTask (WKWebView webView, IWKUrlSchemeTask urlSchemeTask); } - interface IWKUrlSchemeTask {} + interface IWKUrlSchemeTask { } - [Mac (10,13), iOS (11,0)] + [Mac (10, 13), iOS (11, 0)] [Protocol (Name = "WKURLSchemeTask")] - interface WKUrlSchemeTask - { + interface WKUrlSchemeTask { [Abstract] [Export ("request", ArgumentSemantic.Copy)] NSUrlRequest Request { get; } - + [Abstract] [Export ("didReceiveResponse:")] void DidReceiveResponse (NSUrlResponse response); - + [Abstract] [Export ("didReceiveData:")] void DidReceiveData (NSData data); - + [Abstract] [Export ("didFinish")] void DidFinish (); - + [Abstract] [Export ("didFailWithError:")] void DidFailWithError (NSError error); } - - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] - interface WKWebsiteDataRecord - { + + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] + interface WKWebsiteDataRecord { [Export ("displayName")] string DisplayName { get; } - + [Export ("dataTypes", ArgumentSemantic.Copy)] NSSet DataTypes { get; } } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Static] interface WKWebsiteDataType { [Field ("WKWebsiteDataTypeDiskCache", "WebKit")] NSString DiskCache { get; } - + [Field ("WKWebsiteDataTypeMemoryCache", "WebKit")] NSString MemoryCache { get; } - + [Field ("WKWebsiteDataTypeOfflineWebApplicationCache", "WebKit")] NSString OfflineWebApplicationCache { get; } - + [Field ("WKWebsiteDataTypeCookies", "WebKit")] NSString Cookies { get; } [Field ("WKWebsiteDataTypeSessionStorage")] NSString SessionStorage { get; } - + [Field ("WKWebsiteDataTypeLocalStorage", "WebKit")] NSString LocalStorage { get; } - + [Field ("WKWebsiteDataTypeWebSQLDatabases", "WebKit")] NSString WebSQLDatabases { get; } - + [Field ("WKWebsiteDataTypeIndexedDBDatabases", "WebKit")] NSString IndexedDBDatabases { get; } @@ -511,39 +518,39 @@ namespace WebKit [Field ("WKWebsiteDataTypeServiceWorkerRegistrations")] NSString ServiceWorkerRegistrations { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Field ("WKWebsiteDataTypeFileSystem")] NSString FileSystem { get; } } - - [iOS (9,0), Mac(10,11)] - [BaseType (typeof(NSObject))] + + [iOS (9, 0), Mac (10, 11)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // NSGenericException Reason: Calling [WKWebsiteDataStore init] is not supported. interface WKWebsiteDataStore : NSSecureCoding { [Static] [Export ("defaultDataStore")] WKWebsiteDataStore DefaultDataStore { get; } - + [Static] [Export ("nonPersistentDataStore")] WKWebsiteDataStore NonPersistentDataStore { get; } - + [Export ("persistent")] bool Persistent { [Bind ("isPersistent")] get; } - + [Static] [Export ("allWebsiteDataTypes")] NSSet AllWebsiteDataTypes { get; } - + [Export ("fetchDataRecordsOfTypes:completionHandler:")] [Async] void FetchDataRecordsOfTypes (NSSet dataTypes, Action completionHandler); - + [Export ("removeDataOfTypes:forDataRecords:completionHandler:")] [Async] - void RemoveDataOfTypes (NSSet dataTypes, WKWebsiteDataRecord[] dataRecords, Action completionHandler); - + void RemoveDataOfTypes (NSSet dataTypes, WKWebsiteDataRecord [] dataRecords, Action completionHandler); + [Export ("removeDataOfTypes:modifiedSince:completionHandler:")] [Async] void RemoveDataOfTypes (NSSet websiteDataTypes, NSDate date, Action completionHandler); @@ -553,9 +560,10 @@ namespace WebKit WKHttpCookieStore HttpCookieStore { get; } } - [Mac (10,12)][NoiOS, NoWatch, NoTV] - [BaseType (typeof(NSObject))] - interface WKOpenPanelParameters { + [Mac (10, 12)] + [NoiOS, NoWatch, NoTV] + [BaseType (typeof (NSObject))] + interface WKOpenPanelParameters { [Export ("allowsMultipleSelection")] bool AllowsMultipleSelection { get; } @@ -563,8 +571,8 @@ namespace WebKit [Export ("allowsDirectories")] bool AllowsDirectories { get; } } - - [Mac (10,10), iOS (8,0)] + + [Mac (10, 10), iOS (8, 0)] [Protocol, Model] [BaseType (typeof (NSObject))] interface WKUIDelegate { @@ -584,66 +592,75 @@ namespace WebKit void RunJavaScriptTextInputPanel (WKWebView webView, string prompt, [NullAllowed] string defaultText, WKFrameInfo frame, Action completionHandler); - [Mac (10,12)][NoiOS, NoWatch, NoTV] + [Mac (10, 12)] + [NoiOS, NoWatch, NoTV] [Export ("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")] - void RunOpenPanel (WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, Action completionHandler); + void RunOpenPanel (WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, Action completionHandler); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("webViewDidClose:")] void DidClose (WKWebView webView); - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'SetContextMenuConfiguration' instead.")] [Export ("webView:shouldPreviewElement:")] bool ShouldPreviewElement (WKWebView webView, WKPreviewElementInfo elementInfo); - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'SetContextMenuConfiguration' instead.")] [Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'SetContextMenuConfiguration' instead.")] [Export ("webView:previewingViewControllerForElement:defaultActions:")] [return: NullAllowed] - UIViewController GetPreviewingViewController (WKWebView webView, WKPreviewElementInfo elementInfo, IWKPreviewActionItem[] previewActions); + UIViewController GetPreviewingViewController (WKWebView webView, WKPreviewElementInfo elementInfo, IWKPreviewActionItem [] previewActions); - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'WillCommitContextMenu' instead.")] [Export ("webView:commitPreviewingViewController:")] void CommitPreviewingViewController (WKWebView webView, UIViewController previewingViewController); - [MacCatalyst (13,1)] - [iOS (13,0)][NoMac] + [MacCatalyst (13, 1)] + [iOS (13, 0)] + [NoMac] [Export ("webView:contextMenuConfigurationForElement:completionHandler:")] void SetContextMenuConfiguration (WKWebView webView, WKContextMenuElementInfo elementInfo, Action completionHandler); - [MacCatalyst (13,1)] - [iOS (13,0)][NoMac] + [MacCatalyst (13, 1)] + [iOS (13, 0)] + [NoMac] [Export ("webView:contextMenuForElement:willCommitWithAnimator:")] void WillCommitContextMenu (WKWebView webView, WKContextMenuElementInfo elementInfo, IUIContextMenuInteractionCommitAnimating animator); - [iOS (13,0)][NoMac] + [iOS (13, 0)] + [NoMac] [Export ("webView:contextMenuWillPresentForElement:")] void ContextMenuWillPresent (WKWebView webView, WKContextMenuElementInfo elementInfo); - [iOS (13,0)][NoMac] + [iOS (13, 0)] + [NoMac] [Export ("webView:contextMenuDidEndForElement:")] void ContextMenuDidEnd (WKWebView webView, WKContextMenuElementInfo elementInfo); - + [Async] - [NoMac, NoTV, iOS (15,0), MacCatalyst (15,0)] + [NoMac, NoTV, iOS (15, 0), MacCatalyst (15, 0)] [Export ("webView:requestDeviceOrientationAndMotionPermissionForOrigin:initiatedByFrame:decisionHandler:")] void RequestDeviceOrientationAndMotionPermission (WKWebView webView, WKSecurityOrigin origin, WKFrameInfo frame, Action decisionHandler); - + [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:")] void RequestMediaCapturePermission (WKWebView webView, WKSecurityOrigin origin, WKFrameInfo frame, WKMediaCaptureType type, Action decisionHandler); [Async] - [NoMac, iOS (16,0), MacCatalyst (16,0)] // headers say 13, is not true since the enum is from 16 + [NoMac, iOS (16, 0), MacCatalyst (16, 0)] // headers say 13, is not true since the enum is from 16 [Export ("webView:showLockdownModeFirstUseMessage:completionHandler:")] void ShowLockDownMode (WKWebView webView, string firstUseMessage, Action completionHandler); } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKUserContentController : NSSecureCoding { @@ -659,47 +676,47 @@ namespace WebKit [Export ("addScriptMessageHandler:name:")] void AddScriptMessageHandler ([Protocolize] WKScriptMessageHandler scriptMessageHandler, string name); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("addScriptMessageHandler:contentWorld:name:")] void AddScriptMessageHandler (IWKScriptMessageHandler scriptMessageHandler, WKContentWorld world, string name); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("addScriptMessageHandlerWithReply:contentWorld:name:")] void AddScriptMessageHandler (IWKScriptMessageHandlerWithReply scriptMessageHandlerWithReply, WKContentWorld contentWorld, string name); [Export ("removeScriptMessageHandlerForName:")] void RemoveScriptMessageHandler (string name); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("removeScriptMessageHandlerForName:contentWorld:")] void RemoveScriptMessageHandler (string name, WKContentWorld contentWorld); - [Mac (10,13), iOS (11,0)] + [Mac (10, 13), iOS (11, 0)] [Export ("addContentRuleList:")] void AddContentRuleList (WKContentRuleList contentRuleList); - - [Mac (10,13), iOS (11,0)] + + [Mac (10, 13), iOS (11, 0)] [Export ("removeContentRuleList:")] void RemoveContentRuleList (WKContentRuleList contentRuleList); - - [Mac (10,13), iOS (11,0)] + + [Mac (10, 13), iOS (11, 0)] [Export ("removeAllContentRuleLists")] void RemoveAllContentRuleLists (); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("removeAllScriptMessageHandlersFromContentWorld:")] void RemoveAllScriptMessageHandlers (WKContentWorld contentWorld); - [Mac (11,0), iOS (14,0)] + [Mac (11, 0), iOS (14, 0)] [Export ("removeAllScriptMessageHandlers")] void RemoveAllScriptMessageHandlers (); } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] [DisableDefaultCtor] // all properties are getters interface WKUserScript : NSCopying { @@ -707,8 +724,8 @@ namespace WebKit [Export ("initWithSource:injectionTime:forMainFrameOnly:")] NativeHandle Constructor (NSString source, WKUserScriptInjectionTime injectionTime, bool isForMainFrameOnly); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("initWithSource:injectionTime:forMainFrameOnly:inContentWorld:")] NativeHandle Constructor (NSString source, WKUserScriptInjectionTime injectionTime, bool isForMainFrameOnly, WKContentWorld contentWorld); @@ -722,7 +739,7 @@ namespace WebKit bool IsForMainFrameOnly { [Bind ("isForMainFrameOnly")] get; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType ( #if MONOMAC typeof (NSView) @@ -796,11 +813,13 @@ namespace WebKit [Export ("allowsBackForwardNavigationGestures")] bool AllowsBackForwardNavigationGestures { get; set; } - [NoiOS][NoMacCatalyst] + [NoiOS] + [NoMacCatalyst] [Export ("allowsMagnification")] bool AllowsMagnification { get; set; } - [NoiOS][NoMacCatalyst] + [NoiOS] + [NoMacCatalyst] [Export ("magnification")] nfloat Magnification { get; set; } @@ -847,225 +866,240 @@ namespace WebKit [Async] void EvaluateJavaScript (string javascript, WKJavascriptEvaluationResult completionHandler); - [NoiOS][NoMacCatalyst] + [NoiOS] + [NoMacCatalyst] [Export ("setMagnification:centeredAtPoint:")] void SetMagnification (nfloat magnification, CGPoint centerPoint); - [NoMac][MacCatalyst (13,1)] + [NoMac] + [MacCatalyst (13, 1)] [Export ("scrollView", ArgumentSemantic.Strong)] UIScrollView ScrollView { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("loadData:MIMEType:characterEncodingName:baseURL:")] [return: NullAllowed] WKNavigation LoadData (NSData data, string mimeType, string characterEncodingName, NSUrl baseUrl); - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("loadFileURL:allowingReadAccessToURL:")] [return: NullAllowed] WKNavigation LoadFileUrl (NSUrl url, NSUrl readAccessUrl); - - [iOS (9,0)][Mac (10,11)] + + [iOS (9, 0)] + [Mac (10, 11)] [Export ("customUserAgent")] [NullAllowed] string CustomUserAgent { get; set; } - [iOS (9,0)][Mac (10,11)] - [Deprecated (PlatformName.iOS, 10,0, message: "Use 'ServerTrust' property.")] - [Deprecated (PlatformName.MacOSX, 10,12, message: "Use 'ServerTrust' property.")] + [iOS (9, 0)] + [Mac (10, 11)] + [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'ServerTrust' property.")] + [Deprecated (PlatformName.MacOSX, 10, 12, message: "Use 'ServerTrust' property.")] [Export ("certificateChain", ArgumentSemantic.Copy)] - SecCertificate[] CertificateChain { get; } + SecCertificate [] CertificateChain { get; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("allowsLinkPreview")] bool AllowsLinkPreview { get; set; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [NullAllowed, Export ("serverTrust")] SecTrust ServerTrust { get; } - [Mac (10,13)][MacCatalyst (13,1)] - [iOS (11,0)] + [Mac (10, 13)] + [MacCatalyst (13, 1)] + [iOS (11, 0)] [Async] [Export ("takeSnapshotWithConfiguration:completionHandler:")] void TakeSnapshot ([NullAllowed] WKSnapshotConfiguration snapshotConfiguration, Action completionHandler); - [Mac (10,13), iOS (11,0)] + [Mac (10, 13), iOS (11, 0)] [Static] [Export ("handlesURLScheme:")] bool HandlesUrlScheme (string urlScheme); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Async] [Export ("evaluateJavaScript:inFrame:inContentWorld:completionHandler:")] void EvaluateJavaScript (string javaScriptString, [NullAllowed] WKFrameInfo frame, WKContentWorld contentWorld, [NullAllowed] Action completionHandler); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Async] [Export ("callAsyncJavaScript:arguments:inFrame:inContentWorld:completionHandler:")] void CallAsyncJavaScript (string functionBody, [NullAllowed] NSDictionary arguments, [NullAllowed] WKFrameInfo frame, WKContentWorld contentWorld, [NullAllowed] Action completionHandler); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Async] [Export ("createPDFWithConfiguration:completionHandler:")] void CreatePdf ([NullAllowed] WKPdfConfiguration pdfConfiguration, Action completionHandler); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Async] [Export ("createWebArchiveDataWithCompletionHandler:")] void CreateWebArchive (Action completionHandler); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Async] [Export ("findString:withConfiguration:completionHandler:")] void Find (string @string, [NullAllowed] WKFindConfiguration configuration, Action completionHandler); - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [NullAllowed, Export ("mediaType")] string MediaType { get; set; } - [Mac (11,0), iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0), iOS (14, 0)] + [MacCatalyst (14, 0)] [Export ("pageZoom")] nfloat PageZoom { get; set; } [NoiOS] [NoMacCatalyst] - [Mac (11,0)] + [Mac (11, 0)] [Export ("printOperationWithPrintInfo:")] NSPrintOperation GetPrintOperation (NSPrintInfo printInfo); // Apple renamed those API since Xcode 12.5 [Internal] - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] - [Export ("closeAllMediaPresentations")] - void _OldCloseAllMediaPresentations (); + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Export ("closeAllMediaPresentations")] + void _OldCloseAllMediaPresentations (); [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("closeAllMediaPresentationsWithCompletionHandler:")] void CloseAllMediaPresentations ([NullAllowed] Action completionHandler); [Internal] - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] - [Async] - [Export ("pauseAllMediaPlayback:")] - void _OldPauseAllMediaPlayback ([NullAllowed] Action completionHandler); + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Async] + [Export ("pauseAllMediaPlayback:")] + void _OldPauseAllMediaPlayback ([NullAllowed] Action completionHandler); [Internal] [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("pauseAllMediaPlaybackWithCompletionHandler:")] void _NewPauseAllMediaPlayback ([NullAllowed] Action completionHandler); [Internal] - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] - [Async] - [Export ("suspendAllMediaPlayback:")] - void _OldSuspendAllMediaPlayback ([NullAllowed] Action completionHandler); + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Async] + [Export ("suspendAllMediaPlayback:")] + void _OldSuspendAllMediaPlayback ([NullAllowed] Action completionHandler); [Internal] - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] - [Async] - [Export ("resumeAllMediaPlayback:")] - void _OldResumeAllMediaPlayback ([NullAllowed] Action completionHandler); + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] + [Async] + [Export ("resumeAllMediaPlayback:")] + void _OldResumeAllMediaPlayback ([NullAllowed] Action completionHandler); [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("setAllMediaPlaybackSuspended:completionHandler:")] void SetAllMediaPlaybackSuspended (bool suspended, [NullAllowed] Action completionHandler); [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("requestMediaPlaybackStateWithCompletionHandler:")] void RequestMediaPlaybackState (Action completionHandler); - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Async] [Export ("startDownloadUsingRequest:completionHandler:")] void StartDownload (NSUrlRequest request, Action completionHandler); - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [Async] [Export ("resumeDownloadFromResumeData:completionHandler:")] void ResumeDownload (NSData resumeData, Action completionHandler); - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("cameraCaptureState")] WKMediaCaptureState CameraCaptureState { get; } - - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [NullAllowed, Export ("interactionState", ArgumentSemantic.Copy)] NSObject InteractionState { get; set; } - [Mac (12,0), iOS (15,0), MacCatalyst(15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("loadFileRequest:allowingReadAccessToURL:")] WKNavigation LoadFileRequest (NSUrlRequest request, NSUrl readAccessURL); - - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("loadSimulatedRequest:response:responseData:")] WKNavigation LoadSimulatedRequest (NSUrlRequest request, NSUrlResponse response, NSData data); - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("loadSimulatedRequest:responseHTMLString:")] WKNavigation LoadSimulatedRequest (NSUrlRequest request, string htmlString); - - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("microphoneCaptureState")] WKMediaCaptureState MicrophoneCaptureState { get; } - + [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("setCameraCaptureState:completionHandler:")] void SetCameraCaptureState (WKMediaCaptureState state, [NullAllowed] Action completionHandler); - + [Async] - [Mac (12,0), iOS (15,0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("setMicrophoneCaptureState:completionHandler:")] void SetMicrophoneCaptureState (WKMediaCaptureState state, [NullAllowed] Action completionHandler); - - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoTV] + + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoTV] [Export ("themeColor")] [NullAllowed] UIColor ThemeColor { get; } - [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoTV] + [iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0), NoTV] [NullAllowed, Export ("underPageBackgroundColor", ArgumentSemantic.Copy)] UIColor UnderPageBackgroundColor { get; set; } - [iOS (16,0), MacCatalyst (16,0), Mac (13,0), NoTV] + [iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0), NoTV] [Export ("fullscreenState")] WKFullscreenState FullscreenState { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("minimumViewportInset")] UIEdgeInsets MinimumViewportInset { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("maximumViewportInset")] UIEdgeInsets MaximumViewportInset { get; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("setMinimumViewportInset:maximumViewportInset:")] void SetViewportInsets (UIEdgeInsets minimumViewportInset, UIEdgeInsets maximumViewportInset); - [iOS (16,0), MacCatalyst (16,0), NoMac, NoWatch, NoTV] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, NoTV] [Export ("findInteractionEnabled")] bool FindInteractionEnabled { [Bind ("isFindInteractionEnabled")] get; set; } - [iOS (16,0), MacCatalyst (16,0), NoMac, NoWatch, NoTV] + [iOS (16, 0), MacCatalyst (16, 0), NoMac, NoWatch, NoTV] [Export ("findInteraction")] [NullAllowed] UIFindInteraction FindInteraction { get; } @@ -1073,7 +1107,7 @@ namespace WebKit delegate void WKJavascriptEvaluationResult (NSObject result, NSError error); - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKWebViewConfiguration : NSCopying, NSSecureCoding { @@ -1089,20 +1123,22 @@ namespace WebKit [Export ("suppressesIncrementalRendering")] bool SuppressesIncrementalRendering { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("websiteDataStore", ArgumentSemantic.Strong)] WKWebsiteDataStore WebsiteDataStore { get; set; } - [iOS (9,0), Mac(10,11)] + [iOS (9, 0), Mac (10, 11)] [Export ("applicationNameForUserAgent")] [NullAllowed] string ApplicationNameForUserAgent { get; set; } - [iOS (9,0)][Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("allowsAirPlayForMediaPlayback")] bool AllowsAirPlayForMediaPlayback { get; set; } - [NoMac][MacCatalyst (13,1)] + [NoMac] + [MacCatalyst (13, 1)] [Export ("allowsInlineMediaPlayback")] bool AllowsInlineMediaPlayback { get; set; } @@ -1118,7 +1154,8 @@ namespace WebKit [Export ("mediaPlaybackAllowsAirPlay")] bool MediaPlaybackAllowsAirPlay { get; set; } - [NoMac][MacCatalyst (13,1)] + [NoMac] + [MacCatalyst (13, 1)] [Export ("selectionGranularity")] WKSelectionGranularity SelectionGranularity { get; set; } @@ -1129,58 +1166,61 @@ namespace WebKit [Export ("requiresUserActionForMediaPlayback")] bool RequiresUserActionForMediaPlayback { get; set; } - [NoMac][MacCatalyst (13,1)] - [iOS (9,0)] + [NoMac] + [MacCatalyst (13, 1)] + [iOS (9, 0)] [Export ("allowsPictureInPictureMediaPlayback")] bool AllowsPictureInPictureMediaPlayback { get; set; } - [NoMac][MacCatalyst (13,1)] + [NoMac] + [MacCatalyst (13, 1)] [iOS (10, 0)] [Export ("dataDetectorTypes", ArgumentSemantic.Assign)] WKDataDetectorTypes DataDetectorTypes { get; set; } - [iOS (10,0)][Mac (10,12)] + [iOS (10, 0)] + [Mac (10, 12)] [Export ("mediaTypesRequiringUserActionForPlayback", ArgumentSemantic.Assign)] WKAudiovisualMediaTypes MediaTypesRequiringUserActionForPlayback { get; set; } - [iOS (10,0)] + [iOS (10, 0)] [NoMac] [Export ("ignoresViewportScaleLimits")] bool IgnoresViewportScaleLimits { get; set; } - [Mac (10,13), iOS (11,0)] + [Mac (10, 13), iOS (11, 0)] [Export ("setURLSchemeHandler:forURLScheme:")] void SetUrlSchemeHandler ([NullAllowed] IWKUrlSchemeHandler urlSchemeHandler, string urlScheme); - - [Mac (10,13), iOS (11,0)] + + [Mac (10, 13), iOS (11, 0)] [Export ("urlSchemeHandlerForURLScheme:")] [return: NullAllowed] IWKUrlSchemeHandler GetUrlSchemeHandler (string urlScheme); - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Export ("defaultWebpagePreferences", ArgumentSemantic.Copy)] [NullAllowed] WKWebpagePreferences DefaultWebpagePreferences { get; set; } - [Mac (11,0)] - [iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [Export ("limitsNavigationsToAppBoundDomains")] bool LimitsNavigationsToAppBoundDomains { get; set; } - [Mac (12, 0), iOS (15, 0), MacCatalyst (15,0), NoTV] + [Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0), NoTV] [Export ("upgradeKnownHostsToHTTPS")] bool UpgradeKnownHostsToHttps { get; set; } } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKProcessPool : NSSecureCoding { // as of Mac 10.10, iOS 8.0 Beta 2, // this interface is completely empty } - [iOS (8,0), Mac (10,10)] // Not defined in 32-bit + [iOS (8, 0), Mac (10, 10)] // Not defined in 32-bit [BaseType (typeof (NSObject))] interface WKWindowFeatures { // Filled in from open source headers @@ -1222,9 +1262,10 @@ namespace WebKit interface UIPreviewActionItem {} #endif - interface IWKPreviewActionItem {} + interface IWKPreviewActionItem { } - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'TBD' instead.")] [Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'TBD' instead.")] [Protocol] @@ -1234,7 +1275,8 @@ namespace WebKit NSString Identifier { get; } } - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Static] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'TBD' instead.")] interface WKPreviewActionItemIdentifier { @@ -1251,7 +1293,8 @@ namespace WebKit NSString Share { get; } } - [iOS (10,0)][NoMac] + [iOS (10, 0)] + [NoMac] [Deprecated (PlatformName.iOS, 13, 0, message: "Use 'WKContextMenuElementInfo' instead.")] [BaseType (typeof (NSObject))] interface WKPreviewElementInfo : NSCopying { @@ -1259,8 +1302,8 @@ namespace WebKit NSUrl LinkUrl { get; } } - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [Native] public enum WKContentMode : long { Recommended, @@ -1268,26 +1311,26 @@ namespace WebKit Desktop, } - [Mac (10,15)] - [iOS (13,0)] + [Mac (10, 15)] + [iOS (13, 0)] [BaseType (typeof (NSObject))] interface WKWebpagePreferences { [Export ("preferredContentMode", ArgumentSemantic.Assign)] WKContentMode PreferredContentMode { get; set; } - [Mac (11,0)] - [iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [Export ("allowsContentJavaScript")] bool AllowsContentJavaScript { get; set; } - [Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV] + [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] [Export ("lockdownModeEnabled")] bool LockdownModeEnabled { [Bind ("isLockdownModeEnabled")] get; set; } } [NoMac] - [iOS (13,0)] + [iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKContextMenuElementInfo { @@ -1295,8 +1338,9 @@ namespace WebKit NSUrl LinkUrl { get; } } - [Mac (11,0)][iOS (14,0)] - [MacCatalyst (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] + [MacCatalyst (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKContentWorld { @@ -1317,7 +1361,8 @@ namespace WebKit string Name { get; } } - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [BaseType (typeof (NSObject))] interface WKFindConfiguration : NSCopying { @@ -1331,7 +1376,8 @@ namespace WebKit bool Wraps { get; set; } } - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKFindResult : NSCopying { @@ -1340,7 +1386,8 @@ namespace WebKit bool MatchFound { get; } } - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [BaseType (typeof (NSObject), Name = "WKPDFConfiguration")] interface WKPdfConfiguration : NSCopying { @@ -1348,9 +1395,10 @@ namespace WebKit CGRect Rect { get; set; } } - interface IWKScriptMessageHandlerWithReply {} + interface IWKScriptMessageHandlerWithReply { } - [Mac (11,0)][iOS (14,0)] + [Mac (11, 0)] + [iOS (14, 0)] [Protocol] interface WKScriptMessageHandlerWithReply { @@ -1359,14 +1407,16 @@ namespace WebKit void DidReceiveScriptMessage (WKUserContentController userContentController, WKScriptMessage message, Action replyHandler); } - [Mac (11,3)][iOS (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] [Native] enum WKDownloadRedirectPolicy : long { Cancel, Allow, } - [Mac (11,3)][iOS (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] [Native] enum WKMediaPlaybackState : ulong { None, @@ -1375,10 +1425,11 @@ namespace WebKit Playing, } - interface IWKDownloadDelegate {} + interface IWKDownloadDelegate { } - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] #if NET [Protocol, Model] #else @@ -1404,8 +1455,9 @@ namespace WebKit void DidFail (WKDownload download, NSError error, [NullAllowed] NSData resumeData); } - [Mac (11,3)][iOS (14,5)] - [MacCatalyst (14,5)] + [Mac (11, 3)] + [iOS (14, 5)] + [MacCatalyst (14, 5)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface WKDownload : NSProgressReporting { diff --git a/src/xkit.cs b/src/xkit.cs index da3753d437..0c70b01bcb 100644 --- a/src/xkit.cs +++ b/src/xkit.cs @@ -10,32 +10,32 @@ using CoreAnimation; #endif using CoreGraphics; -using CGGlyph=System.UInt16; -using NSGlyph=System.UInt32; +using CGGlyph = System.UInt16; +using NSGlyph = System.UInt32; #if !MONOMAC -using NSColor=UIKit.UIColor; -using NSFont=UIKit.UIFont; +using NSColor = UIKit.UIColor; +using NSFont = UIKit.UIFont; #endif // dummy types to simplify build #if !MONOMAC -using NSCell=System.Object; -using NSGlyphGenerator=System.Object; -using NSGlyphStorageOptions=System.Object; -using NSImageScaling=System.Object; -using NSRulerMarker=System.Object; -using NSRulerView=System.Object; -using NSTextAttachmentCell=System.Object; -using NSTextBlock=System.Object; -using NSTextTableBlock=System.Object; -using NSTextTabType=System.Object; -using NSTextStorageEditedFlags=System.Object; -using NSTextView=System.Object; -using NSTypesetter=System.Object; -using NSTypesetterBehavior=System.Object; -using NSView=System.Object; -using NSWindow=System.Object; +using NSCell = System.Object; +using NSGlyphGenerator = System.Object; +using NSGlyphStorageOptions = System.Object; +using NSImageScaling = System.Object; +using NSRulerMarker = System.Object; +using NSRulerView = System.Object; +using NSTextAttachmentCell = System.Object; +using NSTextBlock = System.Object; +using NSTextTableBlock = System.Object; +using NSTextTabType = System.Object; +using NSTextStorageEditedFlags = System.Object; +using NSTextView = System.Object; +using NSTypesetter = System.Object; +using NSTypesetterBehavior = System.Object; +using NSView = System.Object; +using NSWindow = System.Object; #if WATCH using CATransform3D=System.Object; using NSTextContainer=System.Object; @@ -59,17 +59,17 @@ using CollectionElementCategory=AppKit.NSCollectionElementCategory; using StringAttributes=AppKit.NSStringAttributes; using View=AppKit.NSView; #else -using BezierPath=UIKit.UIBezierPath; -using Image=UIKit.UIImage; -using TextAlignment=UIKit.UITextAlignment; -using LineBreakMode=UIKit.UILineBreakMode; -using CollectionLayoutSectionOrthogonalScrollingBehavior=UIKit.UICollectionLayoutSectionOrthogonalScrollingBehavior; -using CollectionElementCategory=UIKit.UICollectionElementCategory; -using StringAttributes=UIKit.UIStringAttributes; +using BezierPath = UIKit.UIBezierPath; +using Image = UIKit.UIImage; +using TextAlignment = UIKit.UITextAlignment; +using LineBreakMode = UIKit.UILineBreakMode; +using CollectionLayoutSectionOrthogonalScrollingBehavior = UIKit.UICollectionLayoutSectionOrthogonalScrollingBehavior; +using CollectionElementCategory = UIKit.UICollectionElementCategory; +using StringAttributes = UIKit.UIStringAttributes; #if WATCH using View=System.Object; #else -using View=UIKit.UIView; +using View = UIKit.UIView; #endif #endif @@ -95,8 +95,8 @@ namespace UIKit { [Native] [Flags] [NoWatch] - [Mac (10,11)] - [MacCatalyst (13,0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] public enum NSControlCharacterAction : long { ZeroAdvancement = (1 << 0), Whitespace = (1 << 1), @@ -121,11 +121,10 @@ namespace UIKit { #endif } - [Mac (10,15), Watch (6,0), TV (13,0), iOS (13,0), MacCatalyst (13,0)] + [Mac (10, 15), Watch (6, 0), TV (13, 0), iOS (13, 0), MacCatalyst (13, 0)] [Flags] [Native] - public enum NSDirectionalRectEdge : ulong - { + public enum NSDirectionalRectEdge : ulong { None = 0x0, Top = 1uL << 0, Leading = 1uL << 1, @@ -136,8 +135,8 @@ namespace UIKit { // NSInteger -> NSLayoutManager.h [NoWatch] - [Mac (10,11)] - [MacCatalyst (13,0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] [Native] public enum NSGlyphProperty : long { Null = (1 << 0), @@ -149,10 +148,10 @@ namespace UIKit { // NSInteger -> NSLayoutConstraint.h [Native] [NoWatch] - [iOS (6,0)] - [Mac (10,7)] - [TV (9,0)] - [MacCatalyst (13,0)] + [iOS (6, 0)] + [Mac (10, 7)] + [TV (9, 0)] + [MacCatalyst (13, 0)] public enum NSLayoutAttribute : long { NoAttribute = 0, Left = 1, @@ -166,34 +165,34 @@ namespace UIKit { CenterX, CenterY, Baseline, - [Mac (10,11)] + [Mac (10, 11)] LastBaseline = Baseline, - [Mac (10,11)] + [Mac (10, 11)] FirstBaseline, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] LeftMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] RightMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] TopMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] BottomMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] LeadingMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] TrailingMargin, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] CenterXWithinMargins, [NoMac] - [iOS (8,0)] + [iOS (8, 0)] CenterYWithinMargins, } @@ -201,10 +200,10 @@ namespace UIKit { [Native] [Flags] [NoWatch] - [MacCatalyst (13,0)] - [iOS (6,0)] - [Mac (10,7)] - [TV (9,0)] + [MacCatalyst (13, 0)] + [iOS (6, 0)] + [Mac (10, 7)] + [TV (9, 0)] public enum NSLayoutFormatOptions : ulong { None = 0, @@ -217,9 +216,9 @@ namespace UIKit { AlignAllCenterX = (1 << (int) NSLayoutAttribute.CenterX), AlignAllCenterY = (1 << (int) NSLayoutAttribute.CenterY), AlignAllBaseline = (1 << (int) NSLayoutAttribute.Baseline), - [Mac (10,11)] + [Mac (10, 11)] AlignAllLastBaseline = (1 << (int) NSLayoutAttribute.LastBaseline), - [Mac (10,11)] + [Mac (10, 11)] AlignAllFirstBaseline = (1 << (int) NSLayoutAttribute.FirstBaseline), AlignmentMask = 0xFFFF, @@ -243,16 +242,16 @@ namespace UIKit { // NSInteger -> UITextInput.h [Native] [NoWatch] - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] public enum NSLayoutRelation : long { LessThanOrEqual = -1, Equal = 0, GreaterThanOrEqual = 1, } - [Watch (7,0), TV (14,0), iOS (14,0)] - [Mac (11,0)] - [MacCatalyst (13,0)] + [Watch (7, 0), TV (14, 0), iOS (14, 0)] + [Mac (11, 0)] + [MacCatalyst (13, 0)] [Flags] [Native] public enum NSLineBreakStrategy : ulong { @@ -262,12 +261,11 @@ namespace UIKit { Standard = 0xffff, } - [Watch (6,0), TV (13,0), iOS (13,0)] - [Mac (10,15)] - [MacCatalyst (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Native] - public enum NSRectAlignment : long - { + public enum NSRectAlignment : long { None = 0, Top, TopLeading, @@ -279,11 +277,10 @@ namespace UIKit { TopTrailing, } - [Mac (10,15), iOS (13,0), TV (13,0)] - [MacCatalyst (13,0)] + [Mac (10, 15), iOS (13, 0), TV (13, 0)] + [MacCatalyst (13, 0)] [Native] - public enum NSTextScalingType : long - { + public enum NSTextScalingType : long { Standard = 0, iOS, } @@ -291,14 +288,14 @@ namespace UIKit { // NSInteger -> NSLayoutManager.h [Native] [NoWatch] - [MacCatalyst (13,0)] + [MacCatalyst (13, 0)] public enum NSTextLayoutOrientation : long { Horizontal, Vertical, } // NSUInteger -> NSTextStorage.h - [Mac (10,11)] + [Mac (10, 11)] [Native] [Flags] [NoWatch] @@ -307,18 +304,19 @@ namespace UIKit { Characters = 2, } - [MacCatalyst (13,1)] + [MacCatalyst (13, 1)] [NoWatch] // Header is not present in watchOS SDK. - [iOS (7,0)] - [TV (9,0)] - [Mac (10,7)] + [iOS (7, 0)] + [TV (9, 0)] + [Mac (10, 7)] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] partial interface NSLayoutManager : NSSecureCoding { #if !NET // This was removed in the headers in the macOS 10.11 SDK - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'TextStorage' instead.")] [Export ("attributedString")] NSAttributedString AttributedString { get; } @@ -339,13 +337,15 @@ namespace UIKit { [Export ("textContainerChangedGeometry:")] void TextContainerChangedGeometry (NSTextContainer container); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Export ("textContainerChangedTextView:")] void TextContainerChangedTextView (NSTextContainer container); #if !NET // This was removed in the headers in the macOS 10.11 SDK - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("layoutOptions")] @@ -359,7 +359,8 @@ namespace UIKit { #if NET || MONOMAC [Protected] #else - [Internal][Sealed] + [Internal] + [Sealed] #endif [Export ("invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:")] void InvalidateGlyphs (NSRange characterRange, /* NSInteger */ nint delta, /* nullable NSRangePointer */ IntPtr actualCharacterRange); @@ -381,7 +382,8 @@ namespace UIKit { #if NET || MONOMAC [Protected] #else - [Internal][Sealed] + [Internal] + [Sealed] #endif [Export ("invalidateLayoutForCharacterRange:actualCharacterRange:")] void InvalidateLayout (NSRange characterRange, /* nullable NSRangePointer */ IntPtr actualCharacterRange); @@ -410,7 +412,8 @@ namespace UIKit { void InvalidateDisplayForGlyphRange (NSRange glyphRange); #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use ProcessEditing (NSTextStorage textStorage, NSTextStorageEditActions editMask, NSRange newCharacterRange, nint delta, NSRange invalidatedCharacterRange) instead).")] [Export ("textStorage:edited:range:changeInLength:invalidatedRange:")] @@ -444,7 +447,8 @@ namespace UIKit { void EnsureLayoutForBoundingRect (CGRect bounds, NSTextContainer container); #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("insertGlyph:atGlyphIndex:characterIndex:")] @@ -452,7 +456,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("replaceGlyphAtIndex:withGlyph:")] @@ -460,7 +465,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("deleteGlyphsInRange:")] @@ -468,7 +474,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("setCharacterIndex:forGlyphAtIndex:")] @@ -476,7 +483,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("setIntAttribute:value:forGlyphAtIndex:")] @@ -484,7 +492,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'SetGlyphs' instead.")] [Export ("invalidateGlyphsOnLayoutInvalidationForGlyphRange:")] @@ -493,7 +502,8 @@ namespace UIKit { [Export ("numberOfGlyphs")] #if NET || !MONOMAC - /* NSUInteger */ nuint NumberOfGlyphs { get; } + /* NSUInteger */ + nuint NumberOfGlyphs { get; } #else /* NSUInteger */ nint NumberOfGlyphs { get; } #endif @@ -552,7 +562,8 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'GetGlyphs' instead).")] [Export ("intAttribute:forGlyphAtIndex:")] nint GetIntAttribute (nint attributeTag, nint glyphIndex); @@ -628,7 +639,8 @@ namespace UIKit { #if NET || MONOMAC [Protected] #else - [Sealed][Internal] + [Sealed] + [Internal] #endif [return: NullAllowed] [Export ("textContainerForGlyphAtIndex:effectiveRange:")] @@ -648,7 +660,8 @@ namespace UIKit { #if NET || MONOMAC [Protected] #else - [Sealed][Internal] + [Sealed] + [Internal] #endif [return: NullAllowed] [Export ("textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:")] @@ -685,20 +698,21 @@ namespace UIKit { CGRect GetLineFragmentRect (nuint glyphIndex, out /* nullable NSRangePointer */ NSRange effectiveGlyphRange); /* GetLineFragmentRect (NSUInteger, NSRangePointer, bool) */ - [iOS (9,0)] + [iOS (9, 0)] #if MONOMAC || NET [Protected] #else - [Sealed][Internal] + [Sealed] + [Internal] #endif [Export ("lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:")] CGRect GetLineFragmentRect (nuint glyphIndex, /* nullable NSRangePointer */ IntPtr effectiveGlyphRange, bool withoutAdditionalLayout); - [iOS (9,0)] + [iOS (9, 0)] [Wrap ("GetLineFragmentRect (glyphIndex, IntPtr.Zero)")] CGRect GetLineFragmentRect (nuint glyphIndex, bool withoutAdditionalLayout); - [iOS (9,0)] + [iOS (9, 0)] #if MONOMAC || NET [Sealed] #endif @@ -718,20 +732,21 @@ namespace UIKit { CGRect GetLineFragmentUsedRect (nuint glyphIndex, out /* nullable NSRangePointer */ NSRange effectiveGlyphRange); /* GetLineFragmentUsedRect (NSUInteger, NSRangePointer, bool) */ - [iOS (9,0)] + [iOS (9, 0)] #if MONOMAC || NET [Protected] #else - [Sealed][Internal] + [Sealed] + [Internal] #endif [Export ("lineFragmentUsedRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:")] CGRect GetLineFragmentUsedRect (nuint glyphIndex, /* nullable NSRangePointer */ IntPtr effectiveGlyphRange, bool withoutAdditionalLayout); - [iOS (9,0)] + [iOS (9, 0)] [Wrap ("GetLineFragmentUsedRect (glyphIndex, IntPtr.Zero)")] CGRect GetLineFragmentUsedRect (nuint glyphIndex, bool withoutAdditionalLayout); - [iOS (9,0)] + [iOS (9, 0)] #if MONOMAC || NET [Sealed] #endif @@ -783,17 +798,20 @@ namespace UIKit { CGSize AttachmentSizeForGlyphAtIndex (nuint glyphIndex); #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("setLayoutRect:forTextBlock:glyphRange:")] void SetLayoutRect (CGRect layoutRect, NSTextBlock forTextBlock, NSRange glyphRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("setBoundsRect:forTextBlock:glyphRange:")] void SetBoundsRect (CGRect boundsRect, NSTextBlock forTextBlock, NSRange glyphRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("layoutRectForTextBlock:glyphRange:")] #if NET @@ -802,7 +820,8 @@ namespace UIKit { CGRect LayoutRect (NSTextBlock block, NSRange glyphRange); #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("boundsRectForTextBlock:glyphRange:")] #if NET @@ -813,18 +832,21 @@ namespace UIKit { /* GetLayoutRect (NSTextBlock, NSUInteger, nullable NSRangePointer) */ - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Protected] [Export ("layoutRectForTextBlock:atIndex:effectiveRange:")] CGRect GetLayoutRect (NSTextBlock block, nuint glyphIndex, IntPtr effectiveGlyphRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Wrap ("GetLayoutRect (block, glyphIndex, IntPtr.Zero)")] CGRect GetLayoutRect (NSTextBlock block, nuint glyphIndex); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Sealed] [Export ("layoutRectForTextBlock:atIndex:effectiveRange:")] @@ -832,18 +854,21 @@ namespace UIKit { /* GetBoundsRect (NSTextBlock, NSUInteger, nullable NSRangePointer) */ - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Protected] [Export ("boundsRectForTextBlock:atIndex:effectiveRange:")] CGRect GetBoundsRect (NSTextBlock block, nuint glyphIndex, IntPtr effectiveGlyphRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Wrap ("GetBoundsRect (block, glyphIndex, IntPtr.Zero)")] CGRect GetBoundsRect (NSTextBlock block, nuint glyphIndex); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Sealed] [Export ("boundsRectForTextBlock:atIndex:effectiveRange:")] @@ -867,7 +892,8 @@ namespace UIKit { NSRange GetGlyphRange (NSRange characterRange, out NSRange actualCharacterRange); #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Obsolete ("Use 'GetGlyphRange' instead.")] [Export ("glyphRangeForCharacterRange:actualCharacterRange:")] @@ -909,7 +935,8 @@ namespace UIKit { #endif [Internal] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:")] [Deprecated (PlatformName.MacOSX, 10, 11)] @@ -963,7 +990,8 @@ namespace UIKit { #if NET [Protected] #else - [Sealed][Internal] + [Sealed] + [Internal] #endif [Export ("characterIndexForPoint:inTextContainer:fractionOfDistanceBetweenInsertionPoints:")] nuint GetCharacterIndex (CGPoint point, NSTextContainer container, IntPtr fractionOfDistanceBetweenInsertionPoints); @@ -997,18 +1025,21 @@ namespace UIKit { /* GetTemporaryAttributes (NSUInteger, nullable NSRangePointer) */ - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Protected] [Export ("temporaryAttributesAtCharacterIndex:effectiveRange:")] NSDictionary GetTemporaryAttributes (nuint characterIndex, IntPtr effectiveCharacterRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Wrap ("GetTemporaryAttributes (characterIndex, IntPtr.Zero)")] NSDictionary GetTemporaryAttributes (nuint characterIndex); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Sealed] [Export ("temporaryAttributesAtCharacterIndex:effectiveRange:")] @@ -1019,7 +1050,8 @@ namespace UIKit { [Export ("setTemporaryAttributes:forCharacterRange:")] void SetTemporaryAttributes (NSDictionary attrs, NSRange charRange); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("addTemporaryAttributes:forCharacterRange:")] #if NET @@ -1034,7 +1066,8 @@ namespace UIKit { #if !NET [Sealed] #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("removeTemporaryAttribute:forCharacterRange:")] void RemoveTemporaryAttribute (NSString attributeName, NSRange characterRange); @@ -1042,7 +1075,8 @@ namespace UIKit { #if NET [Sealed] #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("removeTemporaryAttribute:forCharacterRange:")] #if NET @@ -1053,18 +1087,21 @@ namespace UIKit { /* GetTemporaryAttribute (NSString, NSUInteger, nullable NSRangePointer) */ [Protected] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttribute:atCharacterIndex:effectiveRange:")] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex, /* nullable NSRangePointer */ IntPtr effectiveRange); [Wrap ("GetTemporaryAttribute (attributeName, characterIndex, IntPtr.Zero)")] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex); [Sealed] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttribute:atCharacterIndex:effectiveRange:")] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex, /* nullable NSRangePointer */ out NSRange effectiveRange); @@ -1072,18 +1109,21 @@ namespace UIKit { /* GetTemporaryAttribute (NSString, NSUInteger, nullable NSRangePointer, NSRange) */ [Protected] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:")] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex, /* nullable NSRangePointer */ IntPtr longestEffectiveRange, NSRange rangeLimit); [Wrap ("GetTemporaryAttribute (attributeName, characterIndex, IntPtr.Zero, rangeLimit)")] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex, NSRange rangeLimit); [Sealed] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:")] NSObject GetTemporaryAttribute (NSString attributeName, nuint characterIndex, /* nullable NSRangePointer */ out NSRange longestEffectiveRange, NSRange rangeLimit); @@ -1091,18 +1131,21 @@ namespace UIKit { /* GetTemporaryAttributes (NSUInteger, nullable NSRangePointer, NSRange) */ [Protected] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:")] NSDictionary GetTemporaryAttributes (nuint characterIndex, /* nullable NSRangePointer */ IntPtr longestEffectiveRange, NSRange rangeLimit); [Wrap ("GetTemporaryAttributes (characterIndex, IntPtr.Zero, rangeLimit)")] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] NSDictionary GetTemporaryAttributes (nuint characterIndex, NSRange rangeLimit); [Sealed] - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:")] NSDictionary GetTemporaryAttributes (nuint characterIndex, /* nullable NSRangePointer */ out NSRange longestEffectiveRange, NSRange rangeLimit); @@ -1113,7 +1156,8 @@ namespace UIKit { #if !NET [Sealed] #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("addTemporaryAttribute:value:forCharacterRange:")] void AddTemporaryAttribute (NSString attributeName, NSObject value, NSRange characterRange); @@ -1121,7 +1165,8 @@ namespace UIKit { #if NET [Sealed] #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("addTemporaryAttribute:value:forCharacterRange:")] #if NET @@ -1131,14 +1176,16 @@ namespace UIKit { #endif #if !NET - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("substituteFontForFont:")] NSFont SubstituteFontForFont (NSFont originalFont); #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("defaultLineHeightForFont:")] #if NET @@ -1147,7 +1194,8 @@ namespace UIKit { nfloat DefaultLineHeightForFont (NSFont theFont); #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("defaultBaselineOffsetForFont:")] #if NET @@ -1160,28 +1208,33 @@ namespace UIKit { [Export ("textStorage", ArgumentSemantic.Assign)] NSTextStorage TextStorage { get; set; } - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("glyphGenerator", ArgumentSemantic.Retain)] NSGlyphGenerator GlyphGenerator { get; set; } - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("typesetter", ArgumentSemantic.Retain)] NSTypesetter Typesetter { get; set; } - [Export ("delegate", ArgumentSemantic.Assign)][NullAllowed] + [Export ("delegate", ArgumentSemantic.Assign)] + [NullAllowed] NSObject WeakDelegate { get; set; } [Wrap ("WeakDelegate")] INSLayoutManagerDelegate Delegate { get; set; } - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Export ("backgroundLayoutEnabled")] bool BackgroundLayoutEnabled { get; set; } - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("usesScreenFonts")] bool UsesScreenFonts { get; set; } @@ -1204,12 +1257,14 @@ namespace UIKit { nfloat HyphenationFactor { get; set; } /* This is defined as CGFloat in UIKit headers. */ #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("defaultAttachmentScaling")] NSImageScaling DefaultAttachmentScaling { get; set; } - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] [Export ("typesetterBehavior")] NSTypesetterBehavior TypesetterBehavior { get; set; } @@ -1235,14 +1290,14 @@ namespace UIKit { #endif [Protected] // Class can be subclassed, and most methods can be overridden. - [Mac (10,10)] + [Mac (10, 10)] [Export ("getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels:")] nuint GetGlyphs (NSRange glyphRange, IntPtr glyphBuffer, IntPtr properties, IntPtr characterIndexBuffer, IntPtr bidiLevelBuffer); #if !NET && !MONOMAC [Sealed] #endif - [Mac (10,10)] + [Mac (10, 10)] [Export ("propertyForGlyphAtIndex:")] NSGlyphProperty GetProperty (nuint glyphIndex); @@ -1252,8 +1307,8 @@ namespace UIKit { NSGlyphProperty PropertyForGlyphAtIndex (nuint glyphIndex); #endif - [Mac (10,11)] - [iOS (9,0)] // Show up in the iOS 7.0 headers, but they can't be found at runtime until iOS 9. + [Mac (10, 11)] + [iOS (9, 0)] // Show up in the iOS 7.0 headers, but they can't be found at runtime until iOS 9. [Export ("CGGlyphAtIndex:isValidIndex:")] #if NET CGGlyph GetGlyph (nuint glyphIndex, out bool isValidIndex); @@ -1263,8 +1318,8 @@ namespace UIKit { CGGlyph GetGlyph (nuint glyphIndex, ref bool isValidIndex); #endif - [Mac (10,11)] - [iOS (9,0)] // Show up in the iOS 7.0 headers, but they can't be found at runtime until iOS 9. + [Mac (10, 11)] + [iOS (9, 0)] // Show up in the iOS 7.0 headers, but they can't be found at runtime until iOS 9. [Export ("CGGlyphAtIndex:")] #if NET CGGlyph GetGlyph (nuint glyphIndex); @@ -1274,7 +1329,7 @@ namespace UIKit { CGGlyph GetGlyph (nuint glyphIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:")] #if NET void ProcessEditing (NSTextStorage textStorage, NSTextStorageEditActions editMask, NSRange newCharacterRange, /* NSInteger */ nint delta, NSRange invalidatedCharacterRange); @@ -1289,7 +1344,7 @@ namespace UIKit { // IntPtr) is useless, since what the caller has is IntPtrs (from the // ShouldGenerateGlyphs parameters). We can revisit this if we ever // fix the generator to have support for C-style arrays. - [Mac (10,11)] + [Mac (10, 11)] [Export ("setGlyphs:properties:characterIndexes:font:forGlyphRange:")] #if NET void SetGlyphs (IntPtr glyphs, IntPtr properties, IntPtr characterIndexes, NSFont font, NSRange glyphRange); @@ -1300,22 +1355,22 @@ namespace UIKit { #if !(NET || MONOMAC) [Sealed] #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("truncatedGlyphRangeInLineFragmentForGlyphAtIndex:")] NSRange GetTruncatedGlyphRangeInLineFragment (nuint glyphIndex); #if !(NET || MONOMAC) [Obsolete ("Use 'GetTruncatedGlyphRangeInLineFragment' instead.")] - [Mac (10,11)] + [Mac (10, 11)] [Export ("truncatedGlyphRangeInLineFragmentForGlyphAtIndex:")] NSRange TruncatedGlyphRangeInLineFragmentForGlyphAtIndex (nuint glyphIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("enumerateLineFragmentsForGlyphRange:usingBlock:")] void EnumerateLineFragments (NSRange glyphRange, NSTextLayoutEnumerateLineFragments callback); - [Mac (10,11)] + [Mac (10, 11)] [Export ("enumerateEnclosingRectsForGlyphRange:withinSelectedGlyphRange:inTextContainer:usingBlock:")] void EnumerateEnclosingRects (NSRange glyphRange, NSRange selectedRange, NSTextContainer textContainer, NSTextLayoutEnumerateEnclosingRects callback); @@ -1328,7 +1383,7 @@ namespace UIKit { [Export ("showCGGlyphs:positions:count:font:matrix:attributes:inContext:")] void ShowGlyphs (IntPtr glyphs, IntPtr positions, nuint glyphCount, NSFont font, CGAffineTransform textMatrix, NSDictionary attributes, CGContext graphicsContext); - [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Protected] // Can be overridden [Export ("showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:")] void ShowGlyphs (IntPtr glyphs, IntPtr positions, nint glyphCount, NSFont font, CGAffineTransform textMatrix, NSDictionary attributes, CGContext graphicsContext); @@ -1340,21 +1395,22 @@ namespace UIKit { [Export ("fillBackgroundRectArray:count:forCharacterRange:color:")] void FillBackground (IntPtr rectArray, nuint rectCount, NSRange characterRange, NSColor color); - [Export ("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] - void DrawUnderline (NSRange glyphRange, NSUnderlineStyle underlineVal, nfloat baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); + [Export ("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] + void DrawUnderline (NSRange glyphRange, NSUnderlineStyle underlineVal, nfloat baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); - [Export ("underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] - void Underline (NSRange glyphRange, NSUnderlineStyle underlineVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); + [Export ("underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] + void Underline (NSRange glyphRange, NSUnderlineStyle underlineVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); - [Export ("drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] - void DrawStrikethrough (NSRange glyphRange, NSUnderlineStyle strikethroughVal, nfloat baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); + [Export ("drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] + void DrawStrikethrough (NSRange glyphRange, NSUnderlineStyle strikethroughVal, nfloat baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); - [Export ("strikethroughGlyphRange:strikethroughType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] - void Strikethrough (NSRange glyphRange, NSUnderlineStyle strikethroughVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); + [Export ("strikethroughGlyphRange:strikethroughType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")] + void Strikethrough (NSRange glyphRange, NSUnderlineStyle strikethroughVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin); - [NoiOS][NoTV] + [NoiOS] + [NoTV] [NoMacCatalyst] - [Export ("showAttachmentCell:inRect:characterIndex:")] + [Export ("showAttachmentCell:inRect:characterIndex:")] void ShowAttachmentCell (NSCell cell, CGRect rect, nuint characterIndex); [Mac (10, 14)] @@ -1362,19 +1418,21 @@ namespace UIKit { [Export ("limitsLayoutForSuspiciousContents")] bool LimitsLayoutForSuspiciousContents { get; set; } - [Mac (10,15)] - [TV (13,0), iOS (13,0)] + [Mac (10, 15)] + [TV (13, 0), iOS (13, 0)] [Export ("usesDefaultHyphenation")] bool UsesDefaultHyphenation { get; set; } } - [NoiOS][NoWatch][NoTV] + [NoiOS] + [NoWatch] + [NoTV] [NoMacCatalyst] [Category] [BaseType (typeof (NSLayoutManager))] interface NSLayoutManager_NSTextViewSupport { [Export ("rulerMarkersForTextView:paragraphStyle:ruler:")] - NSRulerMarker[] GetRulerMarkers (NSTextView textView, NSParagraphStyle paragraphStyle, NSRulerView ruler); + NSRulerMarker [] GetRulerMarkers (NSTextView textView, NSParagraphStyle paragraphStyle, NSRulerView ruler); [return: NullAllowed] [Export ("rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:")] @@ -1392,16 +1450,16 @@ namespace UIKit { NSTextView GetTextViewForBeginningOfSelection (); } - interface INSLayoutManagerDelegate {} + interface INSLayoutManagerDelegate { } [NoWatch] // Header not present in watchOS SDK. - [iOS (7,0)] + [iOS (7, 0)] [BaseType (typeof (NSObject))] [Model] [Protocol] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,1)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 1)] interface NSLayoutManagerDelegate { [Export ("layoutManagerDidInvalidateLayout:")] #if MONOMAC && !NET @@ -1410,7 +1468,7 @@ namespace UIKit { void DidInvalidatedLayout (NSLayoutManager sender); #endif - [iOS (7,0)] + [iOS (7, 0)] [Export ("layoutManager:didCompleteLayoutForTextContainer:atEnd:")] #if NET || !MONOMAC void DidCompleteLayout (NSLayoutManager layoutManager, [NullAllowed] NSTextContainer textContainer, bool layoutFinishedFlag); @@ -1418,7 +1476,8 @@ namespace UIKit { void LayoutCompleted (NSLayoutManager layoutManager, NSTextContainer textContainer, bool layoutFinishedFlag); #endif - [NoiOS][NoTV] + [NoiOS] + [NoTV] [Export ("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")] [return: NullAllowed] #if NET @@ -1427,7 +1486,7 @@ namespace UIKit { NSDictionary ShouldUseTemporaryAttributes (NSLayoutManager layoutManager, NSDictionary temporaryAttributes, bool drawingToScreen, nint charIndex, IntPtr effectiveCharRange); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:")] #if NET nuint ShouldGenerateGlyphs (NSLayoutManager layoutManager, IntPtr glyphBuffer, IntPtr properties, IntPtr characterIndexes, NSFont font, NSRange glyphRange); @@ -1435,7 +1494,7 @@ namespace UIKit { nuint ShouldGenerateGlyphs (NSLayoutManager layoutManager, IntPtr glyphBuffer, IntPtr props, IntPtr charIndexes, NSFont aFont, NSRange glyphRange); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")] #if NET || MONOMAC nfloat GetLineSpacingAfterGlyph (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); @@ -1443,7 +1502,7 @@ namespace UIKit { nfloat LineSpacingAfterGlyphAtIndex (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:")] #if NET || MONOMAC nfloat GetParagraphSpacingBeforeGlyph (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); @@ -1451,7 +1510,7 @@ namespace UIKit { nfloat ParagraphSpacingBeforeGlyphAtIndex (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")] #if NET || MONOMAC nfloat GetParagraphSpacingAfterGlyph (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); @@ -1459,7 +1518,7 @@ namespace UIKit { nfloat ParagraphSpacingAfterGlyphAtIndex (NSLayoutManager layoutManager, nuint glyphIndex, CGRect rect); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:shouldUseAction:forControlCharacterAtIndex:")] #if NET NSControlCharacterAction ShouldUseAction (NSLayoutManager layoutManager, NSControlCharacterAction action, nuint characterIndex); @@ -1467,7 +1526,7 @@ namespace UIKit { NSControlCharacterAction ShouldUseAction (NSLayoutManager layoutManager, NSControlCharacterAction action, nuint charIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:shouldBreakLineByWordBeforeCharacterAtIndex:")] #if NET bool ShouldBreakLineByWordBeforeCharacter (NSLayoutManager layoutManager, nuint characterIndex); @@ -1475,7 +1534,7 @@ namespace UIKit { bool ShouldBreakLineByWordBeforeCharacter (NSLayoutManager layoutManager, nuint charIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:shouldBreakLineByHyphenatingBeforeCharacterAtIndex:")] #if NET bool ShouldBreakLineByHyphenatingBeforeCharacter (NSLayoutManager layoutManager, nuint characterIndex); @@ -1483,7 +1542,7 @@ namespace UIKit { bool ShouldBreakLineByHyphenatingBeforeCharacter (NSLayoutManager layoutManager, nuint charIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:")] #if NET CGRect GetBoundingBox (NSLayoutManager layoutManager, nuint glyphIndex, NSTextContainer textContainer, CGRect proposedRect, CGPoint glyphPosition, nuint characterIndex); @@ -1493,17 +1552,17 @@ namespace UIKit { CGRect BoundingBoxForControlGlyph (NSLayoutManager layoutManager, nuint glyphIndex, NSTextContainer textContainer, CGRect proposedRect, CGPoint glyphPosition, nuint charIndex); #endif - [Mac (10,11)] + [Mac (10, 11)] [Export ("layoutManager:textContainer:didChangeGeometryFromSize:")] void DidChangeGeometry (NSLayoutManager layoutManager, NSTextContainer textContainer, CGSize oldSize); - [iOS (9,0)] - [Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:")] bool ShouldSetLineFragmentRect (NSLayoutManager layoutManager, ref CGRect lineFragmentRect, ref CGRect lineFragmentUsedRect, ref nfloat baselineOffset, NSTextContainer textContainer, NSRange glyphRange); } - [NoWatch, TV (13,0), Mac (10,15), iOS (13,0)] + [NoWatch, TV (13, 0), Mac (10, 15), iOS (13, 0)] [BaseType (typeof (NSObject))] interface NSDiffableDataSourceSnapshot : NSCopying where SectionIdentifierType : NSObject @@ -1518,15 +1577,15 @@ namespace UIKit { [Export ("sectionIdentifiers")] SectionIdentifierType [] SectionIdentifiers { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0), Mac (12,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0)] [Export ("reloadedSectionIdentifiers")] SectionIdentifierType [] ReloadedSectionIdentifiers { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0), Mac (12,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0)] [Export ("reloadedItemIdentifiers")] ItemIdentifierType [] ReloadedItemIdentifiers { get; } - [TV (15,0), iOS (15,0), MacCatalyst (15,0), Mac (12,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0), Mac (12, 0)] [Export ("reconfiguredItemIdentifiers")] ItemIdentifierType [] ReconfiguredItemIdentifiers { get; } @@ -1576,7 +1635,7 @@ namespace UIKit { [Export ("reloadItemsWithIdentifiers:")] void ReloadItems (ItemIdentifierType [] identifiers); - [TV (15,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("reconfigureItemsWithIdentifiers:")] void ReconfigureItems (ItemIdentifierType [] identifiers); @@ -1604,10 +1663,10 @@ namespace UIKit { [ThreadSafe] [BaseType (typeof (NSObject))] - [iOS (6,0)] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,1)] + [iOS (6, 0)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 1)] interface NSParagraphStyle : NSSecureCoding, NSMutableCopying { [Export ("lineSpacing")] nfloat LineSpacing { get; [NotImplemented] set; } @@ -1648,7 +1707,7 @@ namespace UIKit { [Export ("hyphenationFactor")] float HyphenationFactor { get; [NotImplemented] set; } // Returns a float, not nfloat. - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("usesDefaultHyphenation")] bool UsesDefaultHyphenation { get; } @@ -1674,17 +1733,17 @@ namespace UIKit { NSParagraphStyle DefaultParagraphStyle { get; [NotImplemented] set; } #endif - [iOS (7,0)] + [iOS (7, 0)] [Export ("defaultTabInterval")] nfloat DefaultTabInterval { get; [NotImplemented] set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("tabStops", ArgumentSemantic.Copy)] [NullAllowed] - NSTextTab[] TabStops { get; [NotImplemented] set; } + NSTextTab [] TabStops { get; [NotImplemented] set; } - [iOS (9,0)] - [Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Export ("allowsDefaultTighteningForTruncation")] bool AllowsDefaultTighteningForTruncation { get; [NotImplemented] set; } @@ -1696,9 +1755,9 @@ namespace UIKit { NSTextTableBlock [] TextBlocks { get; [NotImplemented] set; } #endif - [iOS (16,0), TV (16,0), NoWatch, MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), NoWatch, MacCatalyst (16, 0)] [Export ("textLists")] - NSTextList[] TextLists { get; [NotImplemented] set; } + NSTextList [] TextLists { get; [NotImplemented] set; } [NoiOS, NoTV, NoWatch] [Export ("tighteningFactorForTruncation")] @@ -1708,17 +1767,17 @@ namespace UIKit { [Export ("headerLevel")] nint HeaderLevel { get; [NotImplemented] set; } - [Mac (11,0), Watch (7,0), TV (14,0), iOS (14,0)] + [Mac (11, 0), Watch (7, 0), TV (14, 0), iOS (14, 0)] [Export ("lineBreakStrategy")] NSLineBreakStrategy LineBreakStrategy { get; [NotImplemented] set; } } [ThreadSafe] [BaseType (typeof (NSParagraphStyle))] - [iOS (6,0)] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,1)] + [iOS (6, 0)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 1)] interface NSMutableParagraphStyle { [Export ("lineSpacing")] [Override] @@ -1772,36 +1831,36 @@ namespace UIKit { [Override] float HyphenationFactor { get; set; } // Returns a float, not nfloat. - [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("usesDefaultHyphenation")] bool UsesDefaultHyphenation { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("defaultTabInterval")] [Override] nfloat DefaultTabInterval { get; set; } - [iOS (7,0)] + [iOS (7, 0)] [Export ("tabStops", ArgumentSemantic.Copy)] [Override] [NullAllowed] - NSTextTab[] TabStops { get; set; } + NSTextTab [] TabStops { get; set; } - [iOS (9,0)] - [Mac (10,11)] + [iOS (9, 0)] + [Mac (10, 11)] [Override] [Export ("allowsDefaultTighteningForTruncation")] bool AllowsDefaultTighteningForTruncation { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("addTabStop:")] void AddTabStop (NSTextTab textTab); - [iOS (9,0)] + [iOS (9, 0)] [Export ("removeTabStop:")] void RemoveTabStop (NSTextTab textTab); - [iOS (9,0)] + [iOS (9, 0)] [Export ("setParagraphStyle:")] void SetParagraphStyle (NSParagraphStyle paragraphStyle); @@ -1815,7 +1874,7 @@ namespace UIKit { NSTextTableBlock [] TextBlocks { get; set; } #endif - [iOS (16,0), TV (16,0), NoWatch, MacCatalyst (16,0)] + [iOS (16, 0), TV (16, 0), NoWatch, MacCatalyst (16, 0)] [NoMacCatalyst] [Override] [Export ("textLists")] @@ -1832,16 +1891,16 @@ namespace UIKit { [Override] nint HeaderLevel { get; set; } - [Mac (11,0), Watch (7,0), TV (14,0), iOS (14,0)] + [Mac (11, 0), Watch (7, 0), TV (14, 0), iOS (14, 0)] [Override] [Export ("lineBreakStrategy", ArgumentSemantic.Assign)] NSLineBreakStrategy LineBreakStrategy { get; set; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate NSCollectionLayoutGroupCustomItem [] NSCollectionLayoutGroupCustomItemProvider (INSCollectionLayoutEnvironment layoutEnvironment); - [NoWatch, TV (13,0), iOS (13,0), Mac (10,15)] + [NoWatch, TV (13, 0), iOS (13, 0), Mac (10, 15)] [BaseType (typeof (NSCollectionLayoutItem))] [DisableDefaultCtor] interface NSCollectionLayoutGroup : NSCopying { @@ -1898,22 +1957,22 @@ namespace UIKit { [Export ("visualDescription")] string VisualDescription { get; } - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0), Mac (13,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0)] [Static] [Export ("horizontalGroupWithLayoutSize:repeatingSubitem:count:")] NSCollectionLayoutGroup GetHorizontalGroup (NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem repeatingSubitem, nint count); - [Watch (9,0), TV (16,0), iOS (16,0), MacCatalyst (16,0), Mac (13,0)] + [Watch (9, 0), TV (16, 0), iOS (16, 0), MacCatalyst (16, 0), Mac (13, 0)] [Static] [Export ("verticalGroupWithLayoutSize:repeatingSubitem:count:")] NSCollectionLayoutGroup GetVerticalGroup (NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem repeatingSubitem, nint count); } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] delegate void NSCollectionLayoutSectionVisibleItemsInvalidationHandler (INSCollectionLayoutVisibleItem [] visibleItems, CGPoint contentOffset, INSCollectionLayoutEnvironment layoutEnvironment); - [Mac (10,15)] - [NoWatch, TV (13,0), iOS (13,0)] + [Mac (10, 15)] + [NoWatch, TV (13, 0), iOS (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSCollectionLayoutSection : NSCopying { @@ -1929,8 +1988,8 @@ namespace UIKit { nfloat InterGroupSpacing { get; set; } [NoMac] - [MacCatalyst (14,0)] - [TV (14,0), iOS (14,0)] + [MacCatalyst (14, 0)] + [TV (14, 0), iOS (14, 0)] [Export ("contentInsetsReference", ArgumentSemantic.Assign)] UIContentInsetsReference ContentInsetsReference { get; set; } @@ -1955,14 +2014,14 @@ namespace UIKit { // NSCollectionLayoutSection (UICollectionLayoutListSection) category [NoMac] - [MacCatalyst (14,0)] - [TV (14,0), iOS (14,0)] + [MacCatalyst (14, 0)] + [TV (14, 0), iOS (14, 0)] [Static] [Export ("sectionWithListConfiguration:layoutEnvironment:")] NSCollectionLayoutSection GetSection (UICollectionLayoutListConfiguration listConfiguration, INSCollectionLayoutEnvironment layoutEnvironment); // NSCollectionLayoutSection (TVMediaItemContentConfiguration) category - [TV (15,0), NoWatch, NoMac, NoiOS, NoMacCatalyst] + [TV (15, 0), NoWatch, NoMac, NoiOS, NoMacCatalyst] [Static] [Export ("orthogonalLayoutSectionForMediaItems")] NSCollectionLayoutSection GetOrthogonalLayoutSectionForMediaItems (); @@ -1972,13 +2031,12 @@ namespace UIKit { UIContentInsetsReference SupplementaryContentInsetsReference { get; set; } } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] - [MacCatalyst (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutGroupCustomItem : NSCopying - { + interface NSCollectionLayoutGroupCustomItem : NSCopying { [Static] [Export ("customItemWithFrame:")] NSCollectionLayoutGroupCustomItem Create (CGRect frame); @@ -1996,12 +2054,11 @@ namespace UIKit { interface INSCollectionLayoutContainer { } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] - [MacCatalyst (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Protocol] - interface NSCollectionLayoutContainer - { + interface NSCollectionLayoutContainer { [Abstract] [Export ("contentSize")] CGSize ContentSize { get; } @@ -2021,9 +2078,9 @@ namespace UIKit { interface INSCollectionLayoutEnvironment { } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] - [MacCatalyst (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Protocol] interface NSCollectionLayoutEnvironment { @@ -2039,9 +2096,9 @@ namespace UIKit { interface INSCollectionLayoutVisibleItem { } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] - [MacCatalyst (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] + [MacCatalyst (13, 0)] [Protocol] interface NSCollectionLayoutVisibleItem #if !MONOMAC && !WATCH @@ -2063,14 +2120,20 @@ namespace UIKit { #pragma warning disable 0109 // warning CS0109: The member 'NSCollectionLayoutVisibleItem.Center' does not hide an accessible member. The new keyword is not required. // Inherited from UIDynamicItem for !MONOMAC - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Abstract] [Export ("center", ArgumentSemantic.Assign)] new CGPoint Center { get; set; } #pragma warning restore #pragma warning disable 0109 // warning CS0109: The member 'NSCollectionLayoutVisibleItem.Bounds' does not hide an accessible member. The new keyword is not required. - [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoWatch] + [NoTV] [Abstract] [Export ("bounds")] new CGRect Bounds { get; } @@ -2105,13 +2168,12 @@ namespace UIKit { } [NoWatch] - [iOS (9,0)] - [Mac (10,11)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSObject))] + [iOS (9, 0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSObject))] [DisableDefaultCtor] // Handle is nil - interface NSLayoutAnchor : NSCopying, NSCoding - { + interface NSLayoutAnchor : NSCopying, NSCoding { [Export ("constraintEqualToAnchor:")] #if MONOMAC && !NET NSLayoutConstraint ConstraintEqualToAnchor (NSLayoutAnchor anchor); @@ -2154,38 +2216,49 @@ namespace UIKit { NSLayoutConstraint ConstraintLessThanOrEqualTo (NSLayoutAnchor anchor, nfloat constant); #endif - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Mac (10, 12)] [Export ("name")] string Name { get; } - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Mac (10, 12)] [NullAllowed, Export ("item", ArgumentSemantic.Weak)] NSObject Item { get; } - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Mac (10, 12)] [Export ("hasAmbiguousLayout")] bool HasAmbiguousLayout { get; } - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Mac (10, 12)] [Export ("constraintsAffectingLayout")] - NSLayoutConstraint[] ConstraintsAffectingLayout { get; } + NSLayoutConstraint [] ConstraintsAffectingLayout { get; } } [NoWatch] - [iOS (9,0)] - [TV (10,0)] - [Mac (10,11)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSLayoutAnchor))] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSLayoutAnchor))] [DisableDefaultCtor] // Handle is nil - interface NSLayoutXAxisAnchor - { - [iOS (10,0)] - [Mac (10,12)] + interface NSLayoutXAxisAnchor { + [iOS (10, 0)] + [Mac (10, 12)] [Export ("anchorWithOffsetToAnchor:")] #if MONOMAC && !NET NSLayoutDimension GetAnchorWithOffset (NSLayoutXAxisAnchor otherAnchor); @@ -2193,33 +2266,32 @@ namespace UIKit { NSLayoutDimension CreateAnchorWithOffset (NSLayoutXAxisAnchor otherAnchor); #endif - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintEqualToSystemSpacingAfterAnchor:multiplier:")] NSLayoutConstraint ConstraintEqualToSystemSpacingAfterAnchor (NSLayoutXAxisAnchor anchor, nfloat multiplier); - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:multiplier:")] NSLayoutConstraint ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchor (NSLayoutXAxisAnchor anchor, nfloat multiplier); - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintLessThanOrEqualToSystemSpacingAfterAnchor:multiplier:")] NSLayoutConstraint ConstraintLessThanOrEqualToSystemSpacingAfterAnchor (NSLayoutXAxisAnchor anchor, nfloat multiplier); } [NoWatch] - [iOS (9,0)] - [TV (10,0)] - [Mac (10,11)] - [MacCatalyst (13,0)] - [BaseType (typeof(NSLayoutAnchor))] + [iOS (9, 0)] + [TV (10, 0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] + [BaseType (typeof (NSLayoutAnchor))] [DisableDefaultCtor] // Handle is nil - interface NSLayoutYAxisAnchor - { - [iOS (10,0)] - [Mac (10,12)] + interface NSLayoutYAxisAnchor { + [iOS (10, 0)] + [Mac (10, 12)] [Export ("anchorWithOffsetToAnchor:")] #if MONOMAC && !NET NSLayoutDimension GetAnchorWithOffset (NSLayoutYAxisAnchor otherAnchor); @@ -2227,29 +2299,28 @@ namespace UIKit { NSLayoutDimension CreateAnchorWithOffset (NSLayoutYAxisAnchor otherAnchor); #endif - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintEqualToSystemSpacingBelowAnchor:multiplier:")] NSLayoutConstraint ConstraintEqualToSystemSpacingBelowAnchor (NSLayoutYAxisAnchor anchor, nfloat multiplier); - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintGreaterThanOrEqualToSystemSpacingBelowAnchor:multiplier:")] NSLayoutConstraint ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchor (NSLayoutYAxisAnchor anchor, nfloat multiplier); - [TV (11,0), iOS (11,0)] - [Mac (11,0)] + [TV (11, 0), iOS (11, 0)] + [Mac (11, 0)] [Export ("constraintLessThanOrEqualToSystemSpacingBelowAnchor:multiplier:")] NSLayoutConstraint ConstraintLessThanOrEqualToSystemSpacingBelowAnchor (NSLayoutYAxisAnchor anchor, nfloat multiplier); } [NoWatch] - [iOS (9,0)] - [Mac (10,11)] - [BaseType (typeof(NSLayoutAnchor))] + [iOS (9, 0)] + [Mac (10, 11)] + [BaseType (typeof (NSLayoutAnchor))] [DisableDefaultCtor] // Handle is nil - interface NSLayoutDimension - { + interface NSLayoutDimension { [Export ("constraintEqualToConstant:")] #if MONOMAC && !NET NSLayoutConstraint ConstraintEqualToConstant (nfloat constant); @@ -2315,10 +2386,10 @@ namespace UIKit { } [iOS (6, 0)] - [Mac (10,7)] + [Mac (10, 7)] [TV (9, 0)] [NoWatch] - [MacCatalyst (13,1)] + [MacCatalyst (13, 1)] [BaseType (typeof (NSObject))] interface NSLayoutConstraint #if MONOMAC @@ -2334,50 +2405,50 @@ namespace UIKit { NSLayoutConstraint Create (INativeObject view1, NSLayoutAttribute attribute1, NSLayoutRelation relation, [NullAllowed] INativeObject view2, NSLayoutAttribute attribute2, nfloat multiplier, nfloat constant); [Export ("priority")] - float Priority { get; set; } // Returns a float, not nfloat. + float Priority { get; set; } // Returns a float, not nfloat. [Export ("shouldBeArchived")] - bool ShouldBeArchived { get; set; } + bool ShouldBeArchived { get; set; } [NullAllowed, Export ("firstItem", ArgumentSemantic.Assign)] - NSObject FirstItem { get; } + NSObject FirstItem { get; } [Export ("firstAttribute")] - NSLayoutAttribute FirstAttribute { get; } + NSLayoutAttribute FirstAttribute { get; } [Export ("relation")] - NSLayoutRelation Relation { get; } + NSLayoutRelation Relation { get; } [Export ("secondItem", ArgumentSemantic.Assign)] [NullAllowed] - NSObject SecondItem { get; } + NSObject SecondItem { get; } [Export ("secondAttribute")] - NSLayoutAttribute SecondAttribute { get; } + NSLayoutAttribute SecondAttribute { get; } [Export ("multiplier")] - nfloat Multiplier { get; } + nfloat Multiplier { get; } [Export ("constant")] - nfloat Constant { get; set; } + nfloat Constant { get; set; } - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Export ("active")] bool Active { [Bind ("isActive")] get; set; } - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Static, Export ("activateConstraints:")] void ActivateConstraints (NSLayoutConstraint [] constraints); - [iOS (8,0)] - [Mac (10,10)] + [iOS (8, 0)] + [Mac (10, 10)] [Static, Export ("deactivateConstraints:")] void DeactivateConstraints (NSLayoutConstraint [] constraints); [Mac (10, 12)] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("firstAnchor", ArgumentSemantic.Copy)] #if MONOMAC && !NET NSLayoutAnchor FirstAnchor { get; } @@ -2387,7 +2458,7 @@ namespace UIKit { #endif [Mac (10, 12)] - [iOS (10,0), TV (10,0)] + [iOS (10, 0), TV (10, 0)] [Export ("secondAnchor", ArgumentSemantic.Copy)] #if MONOMAC && !NET [NullAllowed] @@ -2401,11 +2472,11 @@ namespace UIKit { string Identifier { get; set; } } - [Watch (9,0)] + [Watch (9, 0)] [Introduced (PlatformName.iOS)] - [TV (9,0)] - [Mac (10,11)] - [MacCatalyst (13,0)] + [TV (9, 0)] + [Mac (10, 11)] + [MacCatalyst (13, 0)] [Model] [Protocol] [BaseType (typeof (NSObject))] @@ -2426,10 +2497,10 @@ namespace UIKit { CGRect GetAttachmentBounds ([NullAllowed] NSTextContainer textContainer, CGRect proposedLineFragment, CGPoint glyphPosition, nuint characterIndex); } - [iOS (7,0)] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,1)] + [iOS (7, 0)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 1)] [NoWatch] [BaseType (typeof (NSObject))] partial interface NSTextAttachment : NSTextAttachmentContainer, NSSecureCoding, NSTextAttachmentLayout @@ -2437,32 +2508,34 @@ namespace UIKit { , UIAccessibilityContentSizeCategoryImageAdjusting #endif // !WATCH { - [NoiOS][NoTV][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoMacCatalyst] [Export ("initWithFileWrapper:")] NativeHandle Constructor (NSFileWrapper fileWrapper); - [Mac (10,11)] + [Mac (10, 11)] [DesignatedInitializer] [Export ("initWithData:ofType:")] [PostGet ("Contents")] NativeHandle Constructor ([NullAllowed] NSData contentData, [NullAllowed] string uti); - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed] [Export ("contents", ArgumentSemantic.Retain)] NSData Contents { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed] [Export ("fileType", ArgumentSemantic.Retain)] string FileType { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [NullAllowed] [Export ("image", ArgumentSemantic.Retain)] Image Image { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("bounds")] CGRect Bounds { get; set; } @@ -2470,41 +2543,43 @@ namespace UIKit { [Export ("fileWrapper", ArgumentSemantic.Retain)] NSFileWrapper FileWrapper { get; set; } - [NoiOS][NoTV][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoMacCatalyst] [Export ("attachmentCell", ArgumentSemantic.Retain)] NSTextAttachmentCell AttachmentCell { get; set; } [NoMac] - [Watch (6,0), TV (13,0), iOS (13,0)] + [Watch (6, 0), TV (13, 0), iOS (13, 0)] [Static] [Export ("textAttachmentWithImage:")] NSTextAttachment Create (Image image); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("lineLayoutPadding")] nfloat LineLayoutPadding { get; set; } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15, 0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("textAttachmentViewProviderClassForFileType:")] [return: NullAllowed] Class GetTextAttachmentViewProviderClass (string fileType); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Static] [Export ("registerTextAttachmentViewProviderClass:forFileType:")] void RegisterViewProviderClass (Class textAttachmentViewProviderClass, string fileType); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("allowsTextAttachmentView")] bool AllowsTextAttachmentView { get; set; } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("usesTextAttachmentView")] bool UsesTextAttachmentView { get; } } - [TV (15,0), Watch (9,0), Mac (12,0), iOS (15,0)] + [TV (15, 0), Watch (9, 0), Mac (12, 0), iOS (15, 0)] [Protocol] interface NSTextAttachmentLayout { @@ -2527,9 +2602,9 @@ namespace UIKit { } [NoWatch] - [MacCatalyst (13,0)] - [iOS (7,0)] - [BaseType (typeof (NSMutableAttributedString), Delegates=new string [] { "Delegate" }, Events=new Type [] { typeof (NSTextStorageDelegate)})] + [MacCatalyst (13, 0)] + [iOS (7, 0)] + [BaseType (typeof (NSMutableAttributedString), Delegates = new string [] { "Delegate" }, Events = new Type [] { typeof (NSTextStorageDelegate) })] partial interface NSTextStorage : NSSecureCoding { [Export ("initWithString:")] NativeHandle Constructor (string str); @@ -2557,7 +2632,8 @@ namespace UIKit { #endif get; #if !NET && !MONOMAC && !__MACCATALYST__ - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -2565,7 +2641,8 @@ namespace UIKit { NSRange EditedRange { get; #if !XAMCORE_3_0 && !MONOMAC && !__MACCATALYST__ - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -2573,7 +2650,8 @@ namespace UIKit { nint ChangeInLength { get; #if !XAMCORE_3_0 && !MONOMAC && !__MACCATALYST__ - [NotImplemented] set; + [NotImplemented] + set; #endif } @@ -2603,63 +2681,68 @@ namespace UIKit { [Export ("ensureAttributesAreFixedInRange:")] void EnsureAttributesAreFixed (NSRange range); - [iOS (7,0)] + [iOS (7, 0)] [Notification, Field ("NSTextStorageWillProcessEditingNotification")] #if !MONOMAC || NET [Internal] #endif NSString WillProcessEditingNotification { get; } - [iOS (7,0)] + [iOS (7, 0)] [Notification, Field ("NSTextStorageDidProcessEditingNotification")] #if !MONOMAC || NET [Internal] #endif NSString DidProcessEditingNotification { get; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed] [Export ("textStorageObserver", ArgumentSemantic.Weak)] INSTextStorageObserving TextStorageObserver { get; set; } } - interface INSTextStorageDelegate {} + interface INSTextStorageDelegate { } [NoWatch] - [iOS (7,0)] - [Mac (10,6)] - [TV (9,0)] - [MacCatalyst (13,0)] + [iOS (7, 0)] + [Mac (10, 6)] + [TV (9, 0)] + [MacCatalyst (13, 0)] [Model] [BaseType (typeof (NSObject))] [Protocol] partial interface NSTextStorageDelegate { - [NoiOS][NoTV][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use WillProcessEditing instead.")] [Export ("textStorageWillProcessEditing:")] void TextStorageWillProcessEditing (NSNotification notification); - [NoiOS][NoTV][NoMacCatalyst] + [NoiOS] + [NoTV] + [NoMacCatalyst] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use DidProcessEditing instead.")] [Export ("textStorageDidProcessEditing:")] void TextStorageDidProcessEditing (NSNotification notification); - [Mac (10,11)] - [Export ("textStorage:willProcessEditing:range:changeInLength:")][EventArgs ("NSTextStorage")] + [Mac (10, 11)] + [Export ("textStorage:willProcessEditing:range:changeInLength:")] + [EventArgs ("NSTextStorage")] void WillProcessEditing (NSTextStorage textStorage, NSTextStorageEditActions editedMask, NSRange editedRange, nint delta); - [Mac (10,11)] - [Export ("textStorage:didProcessEditing:range:changeInLength:")][EventArgs ("NSTextStorage")] + [Mac (10, 11)] + [Export ("textStorage:didProcessEditing:range:changeInLength:")] + [EventArgs ("NSTextStorage")] void DidProcessEditing (NSTextStorage textStorage, NSTextStorageEditActions editedMask, NSRange editedRange, nint delta); } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutAnchor : NSCopying, INSCopying - { + interface NSCollectionLayoutAnchor : NSCopying, INSCopying { [Static] [Export ("layoutAnchorWithEdges:")] NSCollectionLayoutAnchor Create (NSDirectionalRectEdge edges); @@ -2685,13 +2768,12 @@ namespace UIKit { bool IsFractionalOffset { get; } } - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutDimension : NSCopying - { + interface NSCollectionLayoutDimension : NSCopying { [Static] [Export ("fractionalWidthDimension:")] #if MONOMAC && !NET @@ -2741,13 +2823,12 @@ namespace UIKit { } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutSize : NSCopying - { + interface NSCollectionLayoutSize : NSCopying { [Static] [Export ("sizeWithWidthDimension:heightDimension:")] NSCollectionLayoutSize Create (NSCollectionLayoutDimension width, NSCollectionLayoutDimension height); @@ -2759,13 +2840,12 @@ namespace UIKit { NSCollectionLayoutDimension HeightDimension { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutSpacing : NSCopying - { + interface NSCollectionLayoutSpacing : NSCopying { [Static] [Export ("flexibleSpacing:")] #if MONOMAC && !NET @@ -2792,13 +2872,12 @@ namespace UIKit { bool IsFixedSpacing { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutEdgeSpacing : NSCopying - { + interface NSCollectionLayoutEdgeSpacing : NSCopying { [Static] [Export ("spacingForLeading:top:trailing:bottom:")] #if MONOMAC && !NET @@ -2820,13 +2899,12 @@ namespace UIKit { NSCollectionLayoutSpacing Bottom { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSCollectionLayoutItem))] [DisableDefaultCtor] - interface NSCollectionLayoutSupplementaryItem : NSCopying - { + interface NSCollectionLayoutSupplementaryItem : NSCopying { [Static] [Export ("supplementaryItemWithLayoutSize:elementKind:containerAnchor:")] NSCollectionLayoutSupplementaryItem Create (NSCollectionLayoutSize layoutSize, string elementKind, NSCollectionLayoutAnchor containerAnchor); @@ -2848,20 +2926,19 @@ namespace UIKit { NSCollectionLayoutAnchor ItemAnchor { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSCollectionLayoutItem : NSCopying - { + interface NSCollectionLayoutItem : NSCopying { [Static] [Export ("itemWithLayoutSize:")] NSCollectionLayoutItem Create (NSCollectionLayoutSize layoutSize); [Static] [Export ("itemWithLayoutSize:supplementaryItems:")] - NSCollectionLayoutItem Create (NSCollectionLayoutSize layoutSize, params NSCollectionLayoutSupplementaryItem[] supplementaryItems); + NSCollectionLayoutItem Create (NSCollectionLayoutSize layoutSize, params NSCollectionLayoutSupplementaryItem [] supplementaryItems); [Export ("contentInsets", ArgumentSemantic.Assign)] NSDirectionalEdgeInsets ContentInsets { get; set; } @@ -2873,16 +2950,15 @@ namespace UIKit { NSCollectionLayoutSize LayoutSize { get; } [Export ("supplementaryItems")] - NSCollectionLayoutSupplementaryItem[] SupplementaryItems { get; } + NSCollectionLayoutSupplementaryItem [] SupplementaryItems { get; } } - [NoWatch, TV (13,0), iOS (13,0)] + [NoWatch, TV (13, 0), iOS (13, 0)] [MacCatalyst (13, 0)] - [Mac (10,15)] + [Mac (10, 15)] [BaseType (typeof (NSCollectionLayoutSupplementaryItem))] [DisableDefaultCtor] - interface NSCollectionLayoutBoundarySupplementaryItem : NSCopying - { + interface NSCollectionLayoutBoundarySupplementaryItem : NSCopying { [Static] [Export ("boundarySupplementaryItemWithLayoutSize:elementKind:alignment:")] NSCollectionLayoutBoundarySupplementaryItem Create (NSCollectionLayoutSize layoutSize, string elementKind, NSRectAlignment alignment); @@ -2905,12 +2981,11 @@ namespace UIKit { } [MacCatalyst (13, 0)] - [NoWatch, TV (13,0), iOS (13,0)] - [Mac (10,15)] + [NoWatch, TV (13, 0), iOS (13, 0)] + [Mac (10, 15)] [BaseType (typeof (NSCollectionLayoutItem))] [DisableDefaultCtor] - interface NSCollectionLayoutDecorationItem : NSCopying - { + interface NSCollectionLayoutDecorationItem : NSCopying { [Static] [Export ("backgroundDecorationItemWithElementKind:")] NSCollectionLayoutDecorationItem Create (string elementKind); @@ -2922,13 +2997,12 @@ namespace UIKit { string ElementKind { get; } } - [iOS (9,0), Watch (2,0)] - [MacCatalyst (13,0)] - [Mac (10,11)] + [iOS (9, 0), Watch (2, 0)] + [MacCatalyst (13, 0)] + [Mac (10, 11)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // - (instancetype)init NS_UNAVAILABLE; - interface NSDataAsset : NSCopying - { + interface NSDataAsset : NSCopying { [Export ("initWithName:")] NativeHandle Constructor (string name); @@ -2946,12 +3020,15 @@ namespace UIKit { NSString TypeIdentifier { get; } } - [MacCatalyst (13,0)] - [Watch (6,0)] + [MacCatalyst (13, 0)] + [Watch (6, 0)] [BaseType (typeof (NSObject))] [DesignatedDefaultCtor] interface NSShadow : NSSecureCoding, NSCopying { - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Export ("set")] void Set (); @@ -2959,20 +3036,20 @@ namespace UIKit { CGSize ShadowOffset { get; set; } [Export ("shadowBlurRadius", ArgumentSemantic.Assign)] - nfloat ShadowBlurRadius { get; set; } + nfloat ShadowBlurRadius { get; set; } #if MONOMAC [Export ("shadowColor", ArgumentSemantic.Copy)] #else [Export ("shadowColor", ArgumentSemantic.Retain), NullAllowed] #endif - NSColor ShadowColor { get; set; } + NSColor ShadowColor { get; set; } } - [iOS (7,0)] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,0)] + [iOS (7, 0)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] interface NSTextTab : NSSecureCoding, NSCopying { [DesignatedInitializer] @@ -2980,7 +3057,10 @@ namespace UIKit { [PostGet ("Options")] NativeHandle Constructor (TextAlignment alignment, nfloat location, NSDictionary options); - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Export ("initWithType:location:")] NativeHandle Constructor (NSTextTabType type, nfloat location); @@ -2993,11 +3073,14 @@ namespace UIKit { [Export ("location")] nfloat Location { get; } - [NoiOS][NoMacCatalyst][NoTV][NoWatch] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [NoWatch] [Export ("tabStopType")] NSTextTabType TabStopType { get; } - [Mac (10,11)] + [Mac (10, 11)] [Static] [Export ("columnTerminatorsForLocale:")] NSCharacterSet GetColumnTerminators ([NullAllowed] NSLocale locale); @@ -3006,8 +3089,11 @@ namespace UIKit { NSString ColumnTerminatorsAttributeName { get; } } - [Mac (10, 7)][iOS (7, 0)][MacCatalyst (13,0)][TV (9, 0)] - [NoWatch] + [Mac (10, 7)] + [iOS (7, 0)] + [MacCatalyst (13, 0)] + [TV (9, 0)] + [NoWatch] [Protocol] // no [Model] since it's not exposed in any API // only NSTextContainer conforms to it but it's only queried by iOS itself @@ -3017,16 +3103,17 @@ namespace UIKit { NSTextLayoutOrientation LayoutOrientation { get; #if !XAMCORE_3_0 && !MONOMAC - [NotImplemented] set; + [NotImplemented] + set; #endif } } [NoWatch] - [iOS (7,0)] - [Mac (10,0)] - [TV (9,0)] - [MacCatalyst (13,0)] + [iOS (7, 0)] + [Mac (10, 0)] + [TV (9, 0)] + [MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] partial interface NSTextContainer : NSTextLayoutOrientationProvider, NSSecureCoding { [NoMac] @@ -3034,13 +3121,17 @@ namespace UIKit { [Export ("initWithSize:")] NativeHandle Constructor (CGSize size); - [NoiOS][NoMacCatalyst][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoTV] [Export ("initWithContainerSize:"), Internal] [Sealed] IntPtr InitWithContainerSize (CGSize size); - [NoiOS][NoMacCatalyst][NoTV] - [Mac (10,11)] + [NoiOS] + [NoMacCatalyst] + [NoTV] + [Mac (10, 11)] [Export ("initWithSize:"), Internal] [Sealed] IntPtr InitWithSize (CGSize size); @@ -3049,26 +3140,26 @@ namespace UIKit { [Export ("layoutManager", ArgumentSemantic.Assign)] NSLayoutManager LayoutManager { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("size")] CGSize Size { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("exclusionPaths", ArgumentSemantic.Copy)] BezierPath [] ExclusionPaths { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("lineBreakMode")] LineBreakMode LineBreakMode { get; set; } [Export ("lineFragmentPadding")] nfloat LineFragmentPadding { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("maximumNumberOfLines")] nuint MaximumNumberOfLines { get; set; } - [Mac (10,11)] + [Mac (10, 11)] [Export ("lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:")] #if MONOMAC && !NET CGRect GetLineFragmentRect (CGRect proposedRect, nuint characterIndex, NSWritingDirection baseWritingDirection, ref CGRect remainingRect); @@ -3082,29 +3173,35 @@ namespace UIKit { [Export ("heightTracksTextView")] bool HeightTracksTextView { get; set; } - [iOS (9,0)] + [iOS (9, 0)] [Export ("replaceLayoutManager:")] void ReplaceLayoutManager (NSLayoutManager newLayoutManager); - [iOS (9,0)] + [iOS (9, 0)] [Export ("simpleRectangularTextContainer")] bool IsSimpleRectangularTextContainer { [Bind ("isSimpleRectangularTextContainer")] get; } - [NoiOS][NoMacCatalyst][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11)] [Export ("containsPoint:")] bool ContainsPoint (CGPoint point); - [NoiOS][NoMacCatalyst][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoTV] [Export ("textView", ArgumentSemantic.Weak)] NSTextView TextView { get; set; } - [NoiOS][NoMacCatalyst][NoTV] + [NoiOS] + [NoMacCatalyst] + [NoTV] [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use Size instead.")] [Export ("containerSize")] CGSize ContainerSize { get; set; } - [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [NullAllowed, Export ("textLayoutManager", ArgumentSemantic.Weak)] NSTextLayoutManager TextLayoutManager { get; } } @@ -3112,44 +3209,43 @@ namespace UIKit { [ThreadSafe] [Category, BaseType (typeof (NSString))] interface NSExtendedStringDrawing { - [iOS (7,0)] - [TV (7,0)] - [MacCatalyst (13,1)] - [Mac (10,11)] + [iOS (7, 0)] + [TV (7, 0)] + [MacCatalyst (13, 1)] + [Mac (10, 11)] [Export ("drawWithRect:options:attributes:context:")] void WeakDrawString (CGRect rect, NSStringDrawingOptions options, [NullAllowed] NSDictionary attributes, [NullAllowed] NSStringDrawingContext context); - [iOS (7,0)] - [TV (7,0)] - [MacCatalyst (13,1)] - [Mac (10,11)] + [iOS (7, 0)] + [TV (7, 0)] + [MacCatalyst (13, 1)] + [Mac (10, 11)] [Wrap ("WeakDrawString (This, rect, options, attributes.GetDictionary (), context)")] void DrawString (CGRect rect, NSStringDrawingOptions options, StringAttributes attributes, [NullAllowed] NSStringDrawingContext context); - [iOS (7,0)] - [TV (7,0)] - [MacCatalyst (13,1)] - [Mac (10,11)] + [iOS (7, 0)] + [TV (7, 0)] + [MacCatalyst (13, 1)] + [Mac (10, 11)] [Export ("boundingRectWithSize:options:attributes:context:")] CGRect WeakGetBoundingRect (CGSize size, NSStringDrawingOptions options, [NullAllowed] NSDictionary attributes, [NullAllowed] NSStringDrawingContext context); - [iOS (7,0)] - [TV (7,0)] - [MacCatalyst (13,1)] - [Mac (10,11)] + [iOS (7, 0)] + [TV (7, 0)] + [MacCatalyst (13, 1)] + [Mac (10, 11)] [Wrap ("WeakGetBoundingRect (This, size, options, attributes.GetDictionary (), context)")] CGRect GetBoundingRect (CGSize size, NSStringDrawingOptions options, StringAttributes attributes, [NullAllowed] NSStringDrawingContext context); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NSTextLayoutManagerDelegate - { + interface NSTextLayoutManagerDelegate { [Export ("textLayoutManager:textLayoutFragmentForLocation:inTextElement:")] NSTextLayoutFragment GetTextLayoutFragment (NSTextLayoutManager textLayoutManager, INSTextLocation location, NSTextElement textElement); @@ -3161,7 +3257,7 @@ namespace UIKit { NSDictionary GetRenderingAttributes (NSTextLayoutManager textLayoutManager, NSObject link, INSTextLocation location, NSDictionary renderingAttributes); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextLayoutManagerSegmentType : long { Standard = 0, @@ -3169,7 +3265,7 @@ namespace UIKit { Highlight = 2, } - [TV (15,0) ,NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] public enum NSTextLayoutManagerSegmentOptions : ulong { @@ -3181,7 +3277,7 @@ namespace UIKit { UpstreamAffinity = (1uL << 4), } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] public enum NSTextLayoutFragmentEnumerationOptions : ulong { @@ -3192,19 +3288,18 @@ namespace UIKit { EnsuresExtraLineFragment = (1uL << 3), } - interface INSTextLayoutManagerDelegate {} + interface INSTextLayoutManagerDelegate { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate bool NSTextLayoutManagerEnumerateRenderingAttributesDelegate (NSTextLayoutManager textLayoutManager, NSDictionary attributes, NSTextRange textRange); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate bool NSTextLayoutManagerEnumerateTextSegmentsDelegate (NSTextRange textSegmentRange, CGRect textSegmentFrame, nfloat baselinePosition, NSTextContainer textContainer); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [DesignatedDefaultCtor] [BaseType (typeof (NSObject))] - interface NSTextLayoutManager : NSSecureCoding, NSTextSelectionDataSource - { + interface NSTextLayoutManager : NSSecureCoding, NSTextSelectionDataSource { [Wrap ("WeakDelegate")] [NullAllowed] INSTextLayoutManagerDelegate Delegate { get; set; } @@ -3261,7 +3356,7 @@ namespace UIKit { INSTextLocation EnumerateTextLayoutFragments ([NullAllowed] INSTextLocation location, NSTextLayoutFragmentEnumerationOptions options, Func handler); [Export ("textSelections", ArgumentSemantic.Strong)] - NSTextSelection[] TextSelections { get; set; } + NSTextSelection [] TextSelections { get; set; } [Export ("textSelectionNavigation", ArgumentSemantic.Strong)] NSTextSelectionNavigation TextSelectionNavigation { get; set; } @@ -3292,33 +3387,31 @@ namespace UIKit { NSDictionary GetRenderingAttributes (NSObject link, INSTextLocation location); [Export ("enumerateTextSegmentsInRange:type:options:usingBlock:")] - void EnumerateTextSegments (NSTextRange textRange, NSTextLayoutManagerSegmentType type, NSTextLayoutManagerSegmentOptions options, NSTextLayoutManagerEnumerateTextSegmentsDelegate handler); + void EnumerateTextSegments (NSTextRange textRange, NSTextLayoutManagerSegmentType type, NSTextLayoutManagerSegmentOptions options, NSTextLayoutManagerEnumerateTextSegmentsDelegate handler); [Export ("replaceContentsInRange:withTextElements:")] - void ReplaceContents (NSTextRange range, NSTextElement[] textElements); + void ReplaceContents (NSTextRange range, NSTextElement [] textElements); [Export ("replaceContentsInRange:withAttributedString:")] void ReplaceContents (NSTextRange range, NSAttributedString attributedString); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] - public enum NSTextContentManagerEnumerationOptions : ulong - { + public enum NSTextContentManagerEnumerationOptions : ulong { None = 0x0, Reverse = (1uL << 0), } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NSTextContentManagerDelegate - { + interface NSTextContentManagerDelegate { [Export ("textContentManager:textElementAtLocation:")] [return: NullAllowed] NSTextElement GetTextContentManager (NSTextContentManager textContentManager, INSTextLocation location); @@ -3327,10 +3420,9 @@ namespace UIKit { bool ShouldEnumerateTextElement (NSTextContentManager textContentManager, NSTextElement textElement, NSTextContentManagerEnumerationOptions options); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface NSTextElementProvider - { + interface NSTextElementProvider { [Abstract] [Export ("documentRange", ArgumentSemantic.Strong)] NSTextRange DocumentRange { get; } @@ -3342,7 +3434,7 @@ namespace UIKit { [Abstract] [Export ("replaceContentsInRange:withTextElements:")] - void ReplaceContents (NSTextRange range, [NullAllowed] NSTextElement[] textElements); + void ReplaceContents (NSTextRange range, [NullAllowed] NSTextElement [] textElements); [Abstract] [Export ("synchronizeToBackingStore:")] @@ -3360,13 +3452,12 @@ namespace UIKit { NSTextRange AdjustedRange (NSTextRange textRange, bool forEditingTextSelection); } - interface INSTextContentManagerDelegate {} + interface INSTextContentManagerDelegate { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextContentManager : NSTextElementProvider, NSSecureCoding - { + interface NSTextContentManager : NSTextElementProvider, NSSecureCoding { [Notification] [Field ("NSTextContentStorageUnsupportedAttributeAddedNotification")] NSString StorageUnsupportedAttributeAddedNotification { get; } @@ -3383,7 +3474,7 @@ namespace UIKit { NSObject WeakDelegate { get; set; } [Export ("textLayoutManagers", ArgumentSemantic.Copy)] - NSTextLayoutManager[] TextLayoutManagers { get; } + NSTextLayoutManager [] TextLayoutManagers { get; } [Export ("addTextLayoutManager:")] void Add (NSTextLayoutManager textLayoutManager); @@ -3399,7 +3490,7 @@ namespace UIKit { void SynchronizeTextLayoutManagers ([NullAllowed] Action completionHandler); [Export ("textElementsForRange:")] - NSTextElement[] GetTextElements (NSTextRange range); + NSTextElement [] GetTextElements (NSTextRange range); [Export ("hasEditingTransaction")] bool HasEditingTransaction { get; } @@ -3418,21 +3509,19 @@ namespace UIKit { bool AutomaticallySynchronizesToBackingStore { get; set; } } - interface INSTextLocation {} + interface INSTextLocation { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface NSTextLocation - { + interface NSTextLocation { [Abstract] [Export ("compare:")] NSComparisonResult Compare (INSTextLocation location); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] - interface NSTextElement - { + interface NSTextElement { [Export ("initWithTextContentManager:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSTextContentManager textContentManager); @@ -3443,23 +3532,22 @@ namespace UIKit { [NullAllowed, Export ("elementRange", ArgumentSemantic.Strong)] NSTextRange ElementRange { get; set; } - [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("childElements", ArgumentSemantic.Copy)] - NSTextElement[] ChildElements { get; } + NSTextElement [] ChildElements { get; } - [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [NullAllowed, Export ("parentElement", ArgumentSemantic.Weak)] NSTextElement ParentElement { get; } - [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("isRepresentedElement")] bool IsRepresentedElement { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSTextElement))] - interface NSTextParagraph - { + interface NSTextParagraph { [Export ("initWithAttributedString:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSAttributedString attributedString); @@ -3478,11 +3566,10 @@ namespace UIKit { NSTextRange ParagraphSeparatorRange { get; } } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextLineFragment : NSSecureCoding - { + interface NSTextLineFragment : NSSecureCoding { [Export ("initWithAttributedString:range:")] [DesignatedInitializer] NativeHandle Constructor (NSAttributedString attributedString, NSRange range); @@ -3515,7 +3602,7 @@ namespace UIKit { nfloat GetFractionOfDistanceThroughGlyph (CGPoint point); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextLayoutFragmentState : ulong { None = 0, @@ -3524,11 +3611,10 @@ namespace UIKit { LayoutAvailable = 3, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextAttachmentViewProvider - { + interface NSTextAttachmentViewProvider { [Export ("initWithTextAttachment:parentView:textLayoutManager:location:")] [DesignatedInitializer] NativeHandle Constructor (NSTextAttachment textAttachment, [NullAllowed] View parentView, [NullAllowed] NSTextLayoutManager textLayoutManager, INSTextLocation location); @@ -3555,11 +3641,10 @@ namespace UIKit { CGRect GetAttachmentBounds (NSDictionary attributes, INSTextLocation location, [NullAllowed] NSTextContainer textContainer, CGRect proposedLineFragment, CGPoint position); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextLayoutFragment : NSSecureCoding - { + interface NSTextLayoutFragment : NSSecureCoding { [Export ("initWithTextElement:range:")] [DesignatedInitializer] NativeHandle Constructor (NSTextElement textElement, [NullAllowed] NSTextRange rangeInElement); @@ -3574,7 +3659,7 @@ namespace UIKit { NSTextRange RangeInElement { get; } [Export ("textLineFragments", ArgumentSemantic.Copy)] - NSTextLineFragment[] TextLineFragments { get; } + NSTextLineFragment [] TextLineFragments { get; } [NullAllowed, Export ("layoutQueue", ArgumentSemantic.Strong)] NSOperationQueue LayoutQueue { get; set; } @@ -3607,17 +3692,16 @@ namespace UIKit { void Draw (CGPoint point, CGContext context); [Export ("textAttachmentViewProviders", ArgumentSemantic.Copy)] - NSTextAttachmentViewProvider[] TextAttachmentViewProviders { get; } + NSTextAttachmentViewProvider [] TextAttachmentViewProviders { get; } [Export ("frameForTextAttachmentAtLocation:")] CGRect GetFrameForTextAttachment (INSTextLocation location); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextRange - { + interface NSTextRange { [Export ("initWithLocation:endLocation:")] [DesignatedInitializer] NativeHandle Constructor (INSTextLocation location, [NullAllowed] INSTextLocation endLocation); @@ -3653,18 +3737,17 @@ namespace UIKit { [Export ("textRangeByFormingUnionWithTextRange:")] NSTextRange GetTextRangeByFormingUnion (NSTextRange textRange); } - - interface INSTextViewportLayoutControllerDelegate {} - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0)] + interface INSTextViewportLayoutControllerDelegate { } + + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NSTextViewportLayoutControllerDelegate - { + interface NSTextViewportLayoutControllerDelegate { [Abstract] [Export ("viewportBoundsForTextViewportLayoutController:")] CGRect GetViewportBounds (NSTextViewportLayoutController textViewportLayoutController); @@ -3680,11 +3763,10 @@ namespace UIKit { void DidLayout (NSTextViewportLayoutController textViewportLayoutController); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextViewportLayoutController - { + interface NSTextViewportLayoutController { [Export ("initWithTextLayoutManager:")] [DesignatedInitializer] NativeHandle Constructor (NSTextLayoutManager textLayoutManager); @@ -3715,10 +3797,9 @@ namespace UIKit { void AdjustViewport (nfloat verticalOffset); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] - public enum NSTextSelectionGranularity : long - { + public enum NSTextSelectionGranularity : long { Character, Word, Paragraph, @@ -3726,7 +3807,7 @@ namespace UIKit { Sentence, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextSelectionAffinity : long { Upstream = 0, @@ -3734,14 +3815,13 @@ namespace UIKit { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextSelection : NSSecureCoding - { + interface NSTextSelection : NSSecureCoding { [Export ("initWithRanges:affinity:granularity:")] [DesignatedInitializer] - NativeHandle Constructor (NSTextRange[] textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity); + NativeHandle Constructor (NSTextRange [] textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity); [Export ("initWithRange:affinity:granularity:")] NativeHandle Constructor (NSTextRange range, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity); @@ -3750,7 +3830,7 @@ namespace UIKit { NativeHandle Constructor (INSTextLocation location, NSTextSelectionAffinity affinity); [Export ("textRanges", ArgumentSemantic.Copy)] - NSTextRange[] TextRanges { get; } + NSTextRange [] TextRanges { get; } [Export ("granularity")] NSTextSelectionGranularity Granularity { get; } @@ -3774,48 +3854,47 @@ namespace UIKit { NSDictionary TypingAttributes { get; set; } [Export ("textSelectionWithTextRanges:")] - NSTextSelection GetTextSelection (NSTextRange[] textRanges); + NSTextSelection GetTextSelection (NSTextRange [] textRanges); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSTextSelectionDataSourceEnumerateSubstringsDelegate (NSString substring, NSTextRange substringRange, NSTextRange enclodingRange, out bool stop); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] delegate void NSTextSelectionDataSourceEnumerateCaretOffsetsDelegate (nfloat caretOffset, INSTextLocation location, bool leadingEdge, out bool stop); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] - delegate void NSTextSelectionDataSourceEnumerateContainerBoundariesDelegate (INSTextLocation location, out bool stop); + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] + delegate void NSTextSelectionDataSourceEnumerateContainerBoundariesDelegate (INSTextLocation location, out bool stop); - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextSelectionNavigationLayoutOrientation : long { Horizontal = 0, Vertical = 1, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextSelectionNavigationWritingDirection : long { LeftToRight = 0, RightToLeft = 1, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NSTextSelectionDataSource - { + interface NSTextSelectionDataSource { [Abstract] [Export ("documentRange", ArgumentSemantic.Strong)] NSTextRange DocumentRange { get; } [Abstract] [Export ("enumerateSubstringsFromLocation:options:usingBlock:")] - void EnumerateSubstrings (INSTextLocation location, NSStringEnumerationOptions options, NSTextSelectionDataSourceEnumerateSubstringsDelegate handler); + void EnumerateSubstrings (INSTextLocation location, NSStringEnumerationOptions options, NSTextSelectionDataSourceEnumerateSubstringsDelegate handler); [Abstract] [Export ("textRangeForSelectionGranularity:enclosingLocation:")] @@ -3851,7 +3930,7 @@ namespace UIKit { NSTextSelectionNavigationLayoutOrientation GetTextLayoutOrientation (INSTextLocation location); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextSelectionNavigationDirection : long { Forward, @@ -3862,7 +3941,7 @@ namespace UIKit { Down, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Native] public enum NSTextSelectionNavigationDestination : long { Character, @@ -3874,7 +3953,7 @@ namespace UIKit { Document, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Flags] [Native] public enum NSTextSelectionNavigationModifier : ulong { @@ -3883,13 +3962,12 @@ namespace UIKit { Multiple = (1uL << 2), } - interface INSTextSelectionDataSource {} + interface INSTextSelectionDataSource { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSTextSelectionNavigation - { + interface NSTextSelectionNavigation { [Export ("initWithDataSource:")] [DesignatedInitializer] NativeHandle Constructor (INSTextSelectionDataSource dataSource); @@ -3915,7 +3993,7 @@ namespace UIKit { NSTextSelection GetDestinationSelection (NSTextSelection textSelection, NSTextSelectionNavigationDirection direction, NSTextSelectionNavigationDestination destination, bool extending, bool confined); [Export ("textSelectionsInteractingAtPoint:inContainerAtLocation:anchors:modifiers:selecting:bounds:")] - NSTextSelection[] GetTextSelectionsInteracting (CGPoint point, INSTextLocation containerLocation, NSTextSelection[] anchors, NSTextSelectionNavigationModifier modifiers, bool selecting, CGRect bounds); + NSTextSelection [] GetTextSelectionsInteracting (CGPoint point, INSTextLocation containerLocation, NSTextSelection [] anchors, NSTextSelectionNavigationModifier modifiers, bool selecting, CGRect bounds); [Export ("textSelectionForSelectionGranularity:enclosingTextSelection:")] NSTextSelection GetTextSelection (NSTextSelectionGranularity selectionGranularity, NSTextSelection textSelection); @@ -3929,31 +4007,29 @@ namespace UIKit { INSTextLocation GetResolvedInsertionLocation (NSTextSelection textSelection, NSTextSelectionNavigationWritingDirection writingDirection); [Export ("deletionRangesForTextSelection:direction:destination:allowsDecomposition:")] - NSTextRange[] GetDeletionRanges (NSTextSelection textSelection, NSTextSelectionNavigationDirection direction, NSTextSelectionNavigationDestination destination, bool allowsDecomposition); + NSTextRange [] GetDeletionRanges (NSTextSelection textSelection, NSTextSelectionNavigationDirection direction, NSTextSelectionNavigationDestination destination, bool allowsDecomposition); } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] #if NET [Protocol, Model] #else [Protocol, Model (AutoGeneratedName = true)] #endif [BaseType (typeof (NSObject))] - interface NSTextContentStorageDelegate : NSTextContentManagerDelegate - { + interface NSTextContentStorageDelegate : NSTextContentManagerDelegate { [Export ("textContentStorage:textParagraphWithRange:")] [return: NullAllowed] NSTextParagraph GetTextParagraph (NSTextContentStorage textContentStorage, NSRange range); } - interface INSTextContentStorageDelegate {} + interface INSTextContentStorageDelegate { } - interface INSTextStorageObserving {} + interface INSTextStorageObserving { } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Protocol] - interface NSTextStorageObserving - { + interface NSTextStorageObserving { [Abstract] [NullAllowed, Export ("textStorage", ArgumentSemantic.Strong)] NSTextStorage TextStorage { get; set; } @@ -3967,9 +4043,8 @@ namespace UIKit { void PerformEditingTransaction (NSTextStorage textStorage, Action transaction); } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] - enum NSTextListMarkerFormats - { + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] + enum NSTextListMarkerFormats { [Mac (10, 13)] [Field ("NSTextListMarkerBox")] Box, @@ -4039,17 +4114,16 @@ namespace UIKit { Decimal, } - [NoWatch, TV (16,0), iOS (16,0), MacCatalyst (16,0)] + [NoWatch, TV (16, 0), iOS (16, 0), MacCatalyst (16, 0)] [Flags] [Native] public enum NSTextListOptions : ulong { PrependEnclosingMarker = 1, } - [TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [BaseType (typeof (NSTextContentManager))] - interface NSTextContentStorage : NSTextStorageObserving - { + interface NSTextContentStorage : NSTextStorageObserving { [Wrap ("WeakDelegate")] [NullAllowed] INSTextContentStorageDelegate Delegate { get; set; } @@ -4080,7 +4154,7 @@ namespace UIKit { NSTextRange GetAdjustedRange (NSTextRange textRange, bool forEditingTextSelection); } - [TV (9,0), NoWatch, Mac (10,0), iOS (7,0), MacCatalyst (13,0)] + [TV (9, 0), NoWatch, Mac (10, 0), iOS (7, 0), MacCatalyst (13, 0)] [BaseType (typeof (NSObject))] interface NSTextList : NSCoding, NSCopying, NSSecureCoding { [Export ("initWithMarkerFormat:options:")] @@ -4105,7 +4179,7 @@ namespace UIKit { string MarkerFormat { get; } #endif - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("initWithMarkerFormat:options:startingItemNumber:")] [DesignatedInitializer] NativeHandle Constructor (string markerFormat, NSTextListOptions options, nint startingItemNumber); @@ -4120,16 +4194,15 @@ namespace UIKit { [Export ("startingItemNumber")] nint StartingItemNumber { get; set; } - [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [Export ("ordered")] bool Ordered { [Bind ("isOrdered")] get; } } - [TV (16,0), NoWatch, Mac (13,0), iOS (16,0), MacCatalyst (16,0)] + [TV (16, 0), NoWatch, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] [BaseType (typeof (NSTextParagraph))] - interface NSTextListElement - { + interface NSTextListElement { [Export ("initWithAttributedString:")] [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSAttributedString attributedString); @@ -4140,16 +4213,16 @@ namespace UIKit { [Export ("initWithParentElement:textList:contents:markerAttributes:childElements:")] [DesignatedInitializer] - NativeHandle Constructor ([NullAllowed] NSTextListElement parent, NSTextList textList, [NullAllowed] NSAttributedString contents, [NullAllowed] NSDictionary markerAttributes, [NullAllowed] NSTextListElement[] children); + NativeHandle Constructor ([NullAllowed] NSTextListElement parent, NSTextList textList, [NullAllowed] NSAttributedString contents, [NullAllowed] NSDictionary markerAttributes, [NullAllowed] NSTextListElement [] children); [Static] [Export ("textListElementWithContents:markerAttributes:textList:childElements:")] - NSTextListElement Create (NSAttributedString contents, [NullAllowed] NSDictionary markerAttributes, NSTextList textList, [NullAllowed] NSTextListElement[] children); + NSTextListElement Create (NSAttributedString contents, [NullAllowed] NSDictionary markerAttributes, NSTextList textList, [NullAllowed] NSTextListElement [] children); [Static] [Export ("textListElementWithChildElements:textList:nestingLevel:")] [return: NullAllowed] - NSTextListElement Create (NSTextListElement[] children, NSTextList textList, nint nestingLevel); + NSTextListElement Create (NSTextListElement [] children, NSTextList textList, nint nestingLevel); [Export ("textList", ArgumentSemantic.Strong)] NSTextList TextList { get; } @@ -4164,10 +4237,49 @@ namespace UIKit { NSAttributedString AttributedString { get; } [Export ("childElements", ArgumentSemantic.Copy)] - NSTextListElement[] ChildElements { get; } + NSTextListElement [] ChildElements { get; } [NullAllowed, Export ("parentElement", ArgumentSemantic.Weak)] NSTextListElement ParentElement { get; } } + [Static] + [Internal] + interface NSAttributedStringDocumentType { + [Field ("NSPlainTextDocumentType")] + NSString NSPlainTextDocumentType { get; } + + [Field ("NSRTFDTextDocumentType")] + NSString NSRtfdTextDocumentType { get; } + + [Field ("NSRTFTextDocumentType")] + NSString NSRtfTextDocumentType { get; } + + [Field ("NSHTMLTextDocumentType")] + NSString NSHtmlTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSMacSimpleTextDocumentType")] + NSString NSMacSimpleTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSDocFormatTextDocumentType")] + NSString NSDocFormatTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSWordMLTextDocumentType")] + NSString NSWordMLTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSWebArchiveTextDocumentType")] + NSString NSWebArchiveTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSOfficeOpenXMLTextDocumentType")] + NSString NSOfficeOpenXMLTextDocumentType { get; } + + [NoiOS, NoTV, NoWatch, NoMacCatalyst] + [Field ("NSOpenDocumentTextDocumentType")] + NSString NSOpenDocumentTextDocumentType { get; } + } } diff --git a/tests/BundledResources/ResourcesTest.cs b/tests/BundledResources/ResourcesTest.cs index 4c5f83b1bc..5c95c4c3dd 100644 --- a/tests/BundledResources/ResourcesTest.cs +++ b/tests/BundledResources/ResourcesTest.cs @@ -31,7 +31,7 @@ namespace BundledResources { // resources are removed by the linker or an extra step (e.g. "link sdk" or "don't link") but that // extra step is done only on device (to keep the simulator builds as fast as possible) - var resources = typeof(ResourcesTest).Assembly.GetManifestResourceNames (); + var resources = typeof (ResourcesTest).Assembly.GetManifestResourceNames (); #if __MACOS__ || __MACCATALYST__ var hasResources = false; #else diff --git a/tests/EmbeddedResources/ResourcesTest.cs b/tests/EmbeddedResources/ResourcesTest.cs index e96a341a48..4fc723abe0 100644 --- a/tests/EmbeddedResources/ResourcesTest.cs +++ b/tests/EmbeddedResources/ResourcesTest.cs @@ -38,7 +38,7 @@ namespace EmbeddedResources { #if MONOMAC var manager = new ResourceManager ("xammac_tests.EmbeddedResources.Welcome", typeof (ResourcesTest).Assembly); #else - var manager = new ResourceManager ("EmbeddedResources.Welcome", typeof(ResourcesTest).Assembly); + var manager = new ResourceManager ("EmbeddedResources.Welcome", typeof (ResourcesTest).Assembly); #endif Assert.AreEqual ("Welcome", manager.GetString ("String1", new CultureInfo ("en")), "en"); diff --git a/tests/api-shared/ObjCRuntime/Registrar.cs b/tests/api-shared/ObjCRuntime/Registrar.cs index 3e8834baf6..01bb5af691 100644 --- a/tests/api-shared/ObjCRuntime/Registrar.cs +++ b/tests/api-shared/ObjCRuntime/Registrar.cs @@ -22,10 +22,10 @@ namespace XamarinTests.ObjCRuntime { AllStatic = Static, AllDynamic = Dynamic, } - + public class Registrar { [Register ("__registration_test_CLASS")] - class RegistrationTestClass : NSObject {} + class RegistrationTestClass : NSObject { } public static Registrars CurrentRegistrar { get { diff --git a/tests/bcl-test/common-monotouch_corlib_test.dll.ignore b/tests/bcl-test/common-monotouch_corlib_test.dll.ignore index d825ace641..acb0dbcfb4 100644 --- a/tests/bcl-test/common-monotouch_corlib_test.dll.ignore +++ b/tests/bcl-test/common-monotouch_corlib_test.dll.ignore @@ -20,3 +20,5 @@ MonoTests.System.Runtime.Remoting.Messaging.CallContextTest.FreeNamedDataSlot_Sh MonoTests.System.Runtime.Remoting.Messaging.CallContextTest.FreeNamedDataSlot_ShouldClearLogicalData MonoTests.System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinaryTest.Parse_Value_Invalid +# https://github.com/xamarin/maccore/issues/2629 +MonoTests.System.TimeZoneInfoTest+IsDaylightSavingTimeTests.Bug_16395 diff --git a/tests/bcl-test/macOS-xammac_net_4_5_corlib_test.dll.ignore b/tests/bcl-test/macOS-xammac_net_4_5_corlib_test.dll.ignore index 2d9c99d62f..f7419f4ab5 100644 --- a/tests/bcl-test/macOS-xammac_net_4_5_corlib_test.dll.ignore +++ b/tests/bcl-test/macOS-xammac_net_4_5_corlib_test.dll.ignore @@ -47,4 +47,5 @@ MonoTests.System.Security.Policy.PolicyLevelTest.ResolveMatchingCodeGroups_Empty # But was: "10/27/2002 02:59:59" MonoTests.System.TimeZoneTest.TestCtors - +# https://github.com/xamarin/maccore/issues/2629 +MonoTests.System.TimeZoneInfoTest+IsDaylightSavingTimeTests.Bug_16395 diff --git a/tests/bindings-framework-test/ApiDefinition.cs b/tests/bindings-framework-test/ApiDefinition.cs index 2136deeccb..5837acd1ac 100644 --- a/tests/bindings-framework-test/ApiDefinition.cs +++ b/tests/bindings-framework-test/ApiDefinition.cs @@ -5,8 +5,7 @@ using Foundation; namespace Bindings.Test { [BaseType (typeof (NSObject))] - public interface FrameworkTest - { + public interface FrameworkTest { [Export ("func")] int Func (); } diff --git a/tests/bindings-framework-test/StructsAndEnums.cs b/tests/bindings-framework-test/StructsAndEnums.cs index 24bbf562a1..7ac0d57cac 100644 --- a/tests/bindings-framework-test/StructsAndEnums.cs +++ b/tests/bindings-framework-test/StructsAndEnums.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.InteropServices; -namespace Bindings.Test -{ +namespace Bindings.Test { public static class CFunctions { [DllImport ("__Internal")] public static extern int theUltimateAnswer (); diff --git a/tests/bindings-test/ApiDefinition.cs b/tests/bindings-test/ApiDefinition.cs index c27d68a47b..37706db632 100644 --- a/tests/bindings-test/ApiDefinition.cs +++ b/tests/bindings-test/ApiDefinition.cs @@ -19,8 +19,7 @@ namespace Bindings.Test { #endif [BaseType (typeof (NSObject))] - public interface UltimateMachine - { + public interface UltimateMachine { [Export ("getAnswer")] int GetAnswer (); @@ -152,7 +151,7 @@ namespace Bindings.Test { NSObject SomeObject { get; set; } [Export ("someArray")] - NSObject[] SomeArray { get; set; } + NSObject [] SomeArray { get; set; } [Export ("F")] float F (); @@ -225,48 +224,46 @@ namespace Bindings.Test { [NullAllowed] [Export ("stringArrayProperty")] - string[] StringArrayProperty { get; set; } + string [] StringArrayProperty { get; set; } [Export ("setStringArrayMethod:")] - void SetStringArrayMethod ([NullAllowed] string[] array); + void SetStringArrayMethod ([NullAllowed] string [] array); [return: NullAllowed] [Export ("getStringArrayMethod")] - string[] GetStringArrayMethod (); + string [] GetStringArrayMethod (); [NullAllowed] [Export ("nsobjectArrayProperty")] - NSObject[] NSObjectArrayProperty { get; set; } + NSObject [] NSObjectArrayProperty { get; set; } [Export ("setNSObjectArrayMethod:")] - void SetNSObjectArrayMethod ([NullAllowed] NSObject[] array); + void SetNSObjectArrayMethod ([NullAllowed] NSObject [] array); [return: NullAllowed] [Export ("getNSObjectArrayMethod")] - NSObject[] GetNSObjectArrayMethod (); + NSObject [] GetNSObjectArrayMethod (); [NullAllowed] [Export ("INSCodingArrayProperty")] - INSCoding[] INSCodingArrayProperty { get; set; } + INSCoding [] INSCodingArrayProperty { get; set; } [Export ("setINSCodingArrayMethod:")] - void SetINSCodingArrayMethod ([NullAllowed] INSCoding[] array); + void SetINSCodingArrayMethod ([NullAllowed] INSCoding [] array); [return: NullAllowed] [Export ("getINSCodingArrayMethod")] - INSCoding[] GetINSCodingArrayMethod (); + INSCoding [] GetINSCodingArrayMethod (); } [Protocol] - interface ProtocolAssignerProtocol - { + interface ProtocolAssignerProtocol { } interface IProtocolAssignerProtocol { } [BaseType (typeof (NSObject))] - interface ProtocolAssigner - { + interface ProtocolAssigner { [Export ("setProtocol")] void SetProtocol (); @@ -282,19 +279,18 @@ namespace Bindings.Test { [Export ("throwManagedException")] void ThrowManagedException (); - [Export ("invokeManagedExceptionThrower")] + [Export ("invokeManagedExceptionThrower")] void InvokeManagedExceptionThrower (); - [Export ("invokeManagedExceptionThrowerAndRethrow")] + [Export ("invokeManagedExceptionThrowerAndRethrow")] void InvokeManagedExceptionThrowerAndRethrow (); [Export ("invokeManagedExceptionThrowerAndCatch")] - void InvokeManagedExceptionThrowerAndCatch (); + void InvokeManagedExceptionThrowerAndCatch (); } [BaseType (typeof (NSObject))] - interface CtorChaining1 - { + interface CtorChaining1 { [Export ("initCalled")] bool InitCalled { get; set; } @@ -308,8 +304,7 @@ namespace Bindings.Test { [BaseType (typeof (NSObject))] [Model] [Protocol] - interface ObjCProtocolTest - { + interface ObjCProtocolTest { [Export ("idAsIntPtr:")] void IdAsIntPtr (IntPtr p1); @@ -318,8 +313,7 @@ namespace Bindings.Test { } [Protocol] - interface ObjCProtocolBlockTest - { + interface ObjCProtocolBlockTest { [Abstract] [Export ("requiredCallback:")] void RequiredCallback (Action completionHandler); @@ -356,8 +350,7 @@ namespace Bindings.Test { interface IObjCProtocolBlockTest { } [BaseType (typeof (NSObject))] - interface ObjCBlockTester - { + interface ObjCBlockTester { [Export ("TestObject", ArgumentSemantic.Retain)] IObjCProtocolBlockTest TestObject { get; set; } @@ -431,8 +424,7 @@ namespace Bindings.Test { delegate void OuterBlock ([BlockCallback] InnerBlock callback); [BaseType (typeof (NSObject))] - interface EvilDeallocator - { + interface EvilDeallocator { [Export ("evilCallback")] Action EvilCallback { get; set; } } diff --git a/tests/bindings-test/ApiProtocol.cs b/tests/bindings-test/ApiProtocol.cs index 9854cae62e..aaac3b4190 100644 --- a/tests/bindings-test/ApiProtocol.cs +++ b/tests/bindings-test/ApiProtocol.cs @@ -9,7 +9,7 @@ using UIKit; #endif namespace Bindings.Test.Protocol { - + [Protocol] public interface P1 { } @@ -25,16 +25,20 @@ namespace Bindings.Test.Protocol { [Protocol] public interface MemberAttributes { // Methods - [Abstract] [Export ("requiredInstanceMethod")] + [Abstract] + [Export ("requiredInstanceMethod")] void RequiredInstanceMethod (); [Export ("optionalInstanceMethod")] void OptionalInstanceMethod (); - [Static] [Abstract] [Export ("requiredStaticMethod")] + [Static] + [Abstract] + [Export ("requiredStaticMethod")] void RequiredStaticMethod (); - [Static] [Export ("optionalStaticMethod")] + [Static] + [Export ("optionalStaticMethod")] void OptionalStaticMethod (); [Export ("variadicMethod:", IsVariadic = true)] @@ -53,16 +57,20 @@ namespace Bindings.Test.Protocol { unsafe void MethodWithRefParameters (int p1, ref int p2, out int p3, int p4); // Properties - [Abstract] [Export ("requiredInstanceProperty")] + [Abstract] + [Export ("requiredInstanceProperty")] string RequiredInstanceProperty { get; set; } [Export ("optionalInstanceProperty")] string OptionalInstanceProperty { get; set; } - [Static] [Abstract] [Export ("requiredStaticProperty")] + [Static] + [Abstract] + [Export ("requiredStaticProperty")] string RequiredStaticProperty { get; set; } - [Static] [Export ("optionalStaticProperty")] + [Static] + [Export ("optionalStaticProperty")] string OptionalStaticProperty { get; set; } [Export ("propertyWithCustomAccessors")] diff --git a/tests/bindings-test/CodeBehind.cs b/tests/bindings-test/CodeBehind.cs index bc46373873..2311dbbee2 100644 --- a/tests/bindings-test/CodeBehind.cs +++ b/tests/bindings-test/CodeBehind.cs @@ -16,10 +16,8 @@ using MatrixFloat4x3 = global::OpenTK.NMatrix4x3; using MatrixFloat4x4 = global::OpenTK.NMatrix4; #endif -namespace Bindings.Test -{ - public unsafe partial class EvilDeallocator : NSObject - { +namespace Bindings.Test { + public unsafe partial class EvilDeallocator : NSObject { public void MarkMeDirty () { MarkDirty (); diff --git a/tests/bindings-test/ProtocolTest.cs b/tests/bindings-test/ProtocolTest.cs index 04489770e6..ef7d04c1ba 100644 --- a/tests/bindings-test/ProtocolTest.cs +++ b/tests/bindings-test/ProtocolTest.cs @@ -8,17 +8,15 @@ using ObjCRuntime; using NUnit.Framework; -namespace Xamarin.BindingTests -{ +namespace Xamarin.BindingTests { [TestFixture] [Preserve (AllMembers = true)] - public class ProtocolTest - { + public class ProtocolTest { bool HasProtocolAttributes { get { if (TestRuntime.IsLinkAll && !Runtime.DynamicRegistrationSupported) return false; - + return true; } } @@ -36,7 +34,7 @@ namespace Xamarin.BindingTests var IP1Attributes = IP1.GetCustomAttributes (typeof (ProtocolAttribute), false); if (HasProtocolAttributes) { Assert.AreEqual (1, IP1Attributes.Length, "[Protocol] IP1"); - var IP1Protocol = (ProtocolAttribute)IP1Attributes [0]; + var IP1Protocol = (ProtocolAttribute) IP1Attributes [0]; Assert.AreEqual ("P1", IP1Protocol.Name, "Name"); // and a wrapper type @@ -68,7 +66,7 @@ namespace Xamarin.BindingTests var IP2Attributes = IP2.GetCustomAttributes (typeof (ProtocolAttribute), false); if (HasProtocolAttributes) { Assert.AreEqual (1, IP2Attributes.Length, "[Protocol] IP2"); - var IP2Protocol = (ProtocolAttribute)IP2Attributes [0]; + var IP2Protocol = (ProtocolAttribute) IP2Attributes [0]; Assert.AreEqual ("P2", IP2Protocol.Name, "Name"); // and a wrapper type @@ -87,7 +85,7 @@ namespace Xamarin.BindingTests var model = bindingAssembly.GetType ("Bindings.Test.Protocol.P2"); Assert.IsNotNull (model, "P2"); // but without the [Model] attribute - Assert.False (model.IsDefined (typeof(ModelAttribute), false), "model"); + Assert.False (model.IsDefined (typeof (ModelAttribute), false), "model"); } [Test] @@ -104,7 +102,7 @@ namespace Xamarin.BindingTests var IP3Attributes = IP3.GetCustomAttributes (typeof (ProtocolAttribute), false); if (HasProtocolAttributes) { Assert.AreEqual (1, IP3Attributes.Length, "[Protocol] IP3"); - var IP3Protocol = (ProtocolAttribute)IP3Attributes [0]; + var IP3Protocol = (ProtocolAttribute) IP3Attributes [0]; Assert.AreEqual ("P3", IP3Protocol.Name, "Name"); // and a wrapper type @@ -123,11 +121,10 @@ namespace Xamarin.BindingTests var model = bindingAssembly.GetType ("Bindings.Test.Protocol.P3"); Assert.IsNotNull (model, "P3"); // with a [Model] attribute - Assert.True (model.IsDefined (typeof(ModelAttribute), false), "model"); + Assert.True (model.IsDefined (typeof (ModelAttribute), false), "model"); } - class MembersImplementation : NSObject, Bindings.Test.Protocol.IMemberAttributes - { + class MembersImplementation : NSObject, Bindings.Test.Protocol.IMemberAttributes { public void RequiredInstanceMethod () { } @@ -155,7 +152,7 @@ namespace Xamarin.BindingTests IntPtr protocol = objc_getProtocol ("MemberAttributes"); Assert.AreNotEqual (IntPtr.Zero, protocol, "a"); - objc_method_description[] methods; + objc_method_description [] methods; // Required instance methods methods = protocol_copyMethodDescriptionList (protocol, true, true); @@ -165,7 +162,7 @@ namespace Xamarin.BindingTests Assert.That (methods, Contains.Item (new objc_method_description ("requiredInstanceProperty", "@@:")), "Required Instance Methods: requiredInstanceProperty"); Assert.That (methods, Contains.Item (new objc_method_description ("setRequiredInstanceProperty:", "v@:@")), "Required Instance Methods: setRequiredInstanceProperty"); Assert.That (methods, Contains.Item (new objc_method_description ("requiredReadonlyProperty", "@@:")), "Required Instance Methods: requiredReadonlyProperty:"); - + // Required static methods methods = protocol_copyMethodDescriptionList (protocol, true, false); CleanupSignatures (methods); @@ -173,7 +170,7 @@ namespace Xamarin.BindingTests Assert.That (methods, Contains.Item (new objc_method_description ("requiredStaticMethod", "v@:")), "Required Static Methods: requiredStaticMethod"); Assert.That (methods, Contains.Item (new objc_method_description ("setRequiredStaticProperty:", "v@:@")), "Required Static Methods: setRequiredStaticProperty:"); Assert.That (methods, Contains.Item (new objc_method_description ("requiredStaticProperty", "@@:")), "Required Static Methods: requiredStaticProperty"); - + // Optional instance methods methods = protocol_copyMethodDescriptionList (protocol, false, true); CleanupSignatures (methods); @@ -206,7 +203,7 @@ namespace Xamarin.BindingTests Assert.That (methods, Contains.Item (new objc_method_description ("optionalStaticProperty", "@@:")), "Optional Static Methods: optionalStaticProperty"); Assert.That (methods, Contains.Item (new objc_method_description ("setOptionalStaticProperty:", "v@:@")), "Optional Static Methods: setOptionalStaticProperty:"); - objc_property[] properties; + objc_property [] properties; properties = protocol_copyPropertyList (protocol); // The ObjC runtime won't add optional properties dynamically (the code is commented out, @@ -281,7 +278,7 @@ namespace Xamarin.BindingTests [DllImport ("/usr/lib/libobjc.dylib", EntryPoint = "protocol_copyMethodDescriptionList")] extern static IntPtr _protocol_copyMethodDescriptionList (IntPtr protocol, bool isRequiredMethod, bool isInstanceMethod, out int count); - static objc_method_description[] protocol_copyMethodDescriptionList (IntPtr protocol, bool isRequiredMethod, bool isInstanceMethod) + static objc_method_description [] protocol_copyMethodDescriptionList (IntPtr protocol, bool isRequiredMethod, bool isInstanceMethod) { int count; IntPtr methods = _protocol_copyMethodDescriptionList (protocol, isRequiredMethod, isInstanceMethod, out count); @@ -301,11 +298,11 @@ namespace Xamarin.BindingTests [DllImport ("/usr/lib/libobjc.dylib", EntryPoint = "protocol_copyPropertyList")] internal extern static IntPtr _protocol_copyPropertyList (IntPtr protocol, out int count); - static objc_property[] protocol_copyPropertyList (IntPtr protocol) + static objc_property [] protocol_copyPropertyList (IntPtr protocol) { int count; IntPtr list = _protocol_copyPropertyList (protocol, out count); - var rv = new objc_property[count]; + var rv = new objc_property [count]; try { for (int i = 0; i < count; i++) { var prop = new objc_property (); @@ -344,7 +341,7 @@ namespace Xamarin.BindingTests [DllImport ("/usr/lib/libobjc.dylib", EntryPoint = "property_copyAttributeList")] extern static IntPtr _property_copyAttributeList (IntPtr property, out int outCount); - static objc_property_attribute[] property_copyAttributeList (IntPtr property) + static objc_property_attribute [] property_copyAttributeList (IntPtr property) { int count; IntPtr list = _property_copyAttributeList (property, out count); @@ -388,7 +385,7 @@ namespace Xamarin.BindingTests public override bool Equals (object obj) { - var other = (objc_property_attribute)obj; + var other = (objc_property_attribute) obj; if (other == null) return false; return Name == other.Name && Value == other.Value; @@ -396,7 +393,7 @@ namespace Xamarin.BindingTests public override int GetHashCode () { - return HashCode.Combine(Name, Value); + return HashCode.Combine (Name, Value); } public override string ToString () @@ -404,11 +401,11 @@ namespace Xamarin.BindingTests return string.Format ("{0} = {1}", Name, Value); } } - + class objc_property : IEquatable { public string Name; public string Attributes; - public objc_property_attribute[] AttributeList; + public objc_property_attribute [] AttributeList; public objc_property () { diff --git a/tests/bindings-test/RegistrarBindingTest.cs b/tests/bindings-test/RegistrarBindingTest.cs index a0da66612f..e1944ae0fe 100644 --- a/tests/bindings-test/RegistrarBindingTest.cs +++ b/tests/bindings-test/RegistrarBindingTest.cs @@ -8,12 +8,10 @@ using NUnit.Framework; using Bindings.Test; -namespace Xamarin.BindingTests -{ +namespace Xamarin.BindingTests { [TestFixture] [Preserve (AllMembers = true)] - public class RegistrarBindingTest - { + public class RegistrarBindingTest { [Test] public void BlockCallback () { @@ -36,8 +34,7 @@ namespace Xamarin.BindingTests } } - class BlockCallbackClass : NSObject, IObjCProtocolBlockTest - { + class BlockCallbackClass : NSObject, IObjCProtocolBlockTest { public void RequiredCallback (Action completionHandler) { completionHandler (42); @@ -108,14 +105,12 @@ namespace Xamarin.BindingTests } } - abstract class BaseBlockCallbackClass : NSObject, IObjCProtocolBlockTest - { + abstract class BaseBlockCallbackClass : NSObject, IObjCProtocolBlockTest { public abstract void RequiredCallback (Action completionHandler); public abstract Action RequiredReturnValue (); } - class DerivedBlockCallbackClass : BaseBlockCallbackClass - { + class DerivedBlockCallbackClass : BaseBlockCallbackClass { public static int Answer = 42; public override void RequiredCallback (Action completionHandler) { @@ -153,7 +148,7 @@ namespace Xamarin.BindingTests public Action OptionalReturnValue () { return new Action ((v) => { - Console.WriteLine ("OptionalReturnValue"); + Console.WriteLine ("OptionalReturnValue"); Assert.AreEqual (Answer, v, "RequiredReturnValue"); }); } @@ -170,14 +165,13 @@ namespace Xamarin.BindingTests public static Action OptionalStaticReturnValue () { return new Action ((v) => { - Console.WriteLine ("OptionalStaticReturnValue"); + Console.WriteLine ("OptionalStaticReturnValue"); Assert.AreEqual (Answer, v, "RequiredReturnValue"); }); } } - class BlockCallbackClassExplicit : NSObject, IObjCProtocolBlockTest - { + class BlockCallbackClassExplicit : NSObject, IObjCProtocolBlockTest { // Explicitly implemented interface member void IObjCProtocolBlockTest.RequiredCallback (Action completionHandler) { @@ -235,8 +229,7 @@ namespace Xamarin.BindingTests } } - public class BlockCallbackTester : ObjCBlockTester - { + public class BlockCallbackTester : ObjCBlockTester { public override void ClassCallback (Action completionHandler) { completionHandler (42); diff --git a/tests/bindings-test/RuntimeTest.cs b/tests/bindings-test/RuntimeTest.cs index 9ab61fe6d0..3f981d6f62 100644 --- a/tests/bindings-test/RuntimeTest.cs +++ b/tests/bindings-test/RuntimeTest.cs @@ -8,12 +8,10 @@ using NUnit.Framework; using Bindings.Test; -namespace Xamarin.Tests -{ +namespace Xamarin.Tests { [TestFixture] [Preserve (AllMembers = true)] - public class RuntimeTest - { + public class RuntimeTest { [Test] public void WrapperTypeLookupTest () { diff --git a/tests/bindings-test/StructsAndEnums.cs b/tests/bindings-test/StructsAndEnums.cs index a8c66280a9..e4b8aea3f6 100644 --- a/tests/bindings-test/StructsAndEnums.cs +++ b/tests/bindings-test/StructsAndEnums.cs @@ -32,8 +32,7 @@ public static class LibTest { public static extern int theUltimateAnswer (); } -namespace Bindings.Test -{ +namespace Bindings.Test { public static class CFunctions { [DllImport ("__Internal")] public static extern int theUltimateAnswer (); diff --git a/tests/bindings-test/libtest.linkwith.cs b/tests/bindings-test/libtest.linkwith.cs index 7dbfae3a39..dc8deb8404 100644 --- a/tests/bindings-test/libtest.linkwith.cs +++ b/tests/bindings-test/libtest.linkwith.cs @@ -5,8 +5,7 @@ using System.Runtime.InteropServices; [assembly: LinkWith ("libtest.a", LinkTarget.Simulator | LinkTarget.ArmV6 | LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Arm64 | LinkTarget.Simulator64, SmartLink = true, Frameworks = LinkWithConstants.Frameworks, LinkerFlags = "-lz")] -static class LinkWithConstants -{ +static class LinkWithConstants { #if __WATCHOS__ public const string Frameworks = "Foundation CoreLocation"; #else diff --git a/tests/bindings-test2/BindingTest.cs b/tests/bindings-test2/BindingTest.cs index f5a4087a69..51921e5d5b 100644 --- a/tests/bindings-test2/BindingTest.cs +++ b/tests/bindings-test2/BindingTest.cs @@ -10,12 +10,10 @@ using NUnit.Framework; using Bindings.Test2; -namespace Xamarin.BindingTests2 -{ +namespace Xamarin.BindingTests2 { [TestFixture] [Preserve (AllMembers = true)] - public class BindingTest - { + public class BindingTest { [Test] public void Test () { diff --git a/tests/bindings-test2/StructsAndEnums.cs b/tests/bindings-test2/StructsAndEnums.cs index 1f9002026a..b1f81f126f 100644 --- a/tests/bindings-test2/StructsAndEnums.cs +++ b/tests/bindings-test2/StructsAndEnums.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.InteropServices; -namespace Bindings.Test2 -{ +namespace Bindings.Test2 { public static class CFunctions { [DllImport ("__Internal")] public static extern int getIntOfChocolate (); diff --git a/tests/bindings-test2/libtest2.linkwith.cs b/tests/bindings-test2/libtest2.linkwith.cs index 512fb292f9..271f2bab48 100644 --- a/tests/bindings-test2/libtest2.linkwith.cs +++ b/tests/bindings-test2/libtest2.linkwith.cs @@ -2,7 +2,7 @@ using System; using ObjCRuntime; using System.Runtime.InteropServices; -[assembly: LinkWith ("libtest2.a", LinkTarget.Simulator | LinkTarget.ArmV6 | LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Arm64 | LinkTarget.Simulator64, SmartLink = true, Frameworks = "Foundation" , LinkerFlags = "-lz")] +[assembly: LinkWith ("libtest2.a", LinkTarget.Simulator | LinkTarget.ArmV6 | LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Arm64 | LinkTarget.Simulator64, SmartLink = true, Frameworks = "Foundation", LinkerFlags = "-lz")] public static class LibTest { [DllImport ("__Internal")] diff --git a/tests/cecil-tests/BlittablePInvokes.cs b/tests/cecil-tests/BlittablePInvokes.cs new file mode 100644 index 0000000000..0e1b6a0766 --- /dev/null +++ b/tests/cecil-tests/BlittablePInvokes.cs @@ -0,0 +1,213 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using NUnit.Framework; +using Mono.Cecil; +using Mono.Cecil.Cil; + +#nullable enable + +namespace Cecil.Tests { + + [TestFixture] + public class BlittablePInvokes { + struct MethodBlitResult { + public MethodBlitResult (bool isBlittable) + { + IsBlittable = isBlittable; + Result = new StringBuilder (); + } + public bool IsBlittable; + public StringBuilder Result; + } + + struct TypeAndIndex { + public TypeAndIndex (TypeReference type, int index) + { + Type = type; + Index = index; + } + public TypeReference Type; + public int Index; + } + struct BlitAndReason { + public BlitAndReason (bool isBlittable, string reason) + { + IsBlittable = isBlittable; + Reason = reason; + } + public bool IsBlittable; + public string Reason; + } + + [Ignore ("work in progress - there are 100 failures, mostly due to strings")] + [TestCaseSource (typeof (Helper), nameof (Helper.NetPlatformImplementationAssemblies))] + public void CheckForNonBlittablePInvokes (string assemblyPath) + { + var assembly = Helper.GetAssembly (assemblyPath, readSymbols: true); + var pinvokes = AllPInvokes (assembly).Where (IsPInvokeOK); + Assert.IsTrue (pinvokes.Count () > 0); + + var blitCache = new Dictionary (); + var results = pinvokes.Select (pi => IsMethodBlittable (assembly, pi, blitCache)).Where (r => !r.IsBlittable); + if (results.Count () > 0) { + var failString = new StringBuilder (); + failString.Append ($"There is an issue with {results.Count ()} pinvokes in {assembly.Name} ({assemblyPath}):\n"); + foreach (var sb in results.Select (r => r.Result)) { + failString.Append (sb.ToString ()); + } + Assert.Fail (failString.ToString ()); + } + + } + + MethodBlitResult IsMethodBlittable (AssemblyDefinition assembly, MethodReference method, Dictionary blitCache) + { + var result = new MethodBlitResult (true); + var localResult = new StringBuilder (); + var types = TypesFromMethod (method); + foreach (var typeIndex in types) { + if (!IsTypeBlittable (assembly, typeIndex.Type, localResult, blitCache)) { + if (result.IsBlittable) { + result.IsBlittable = false; + result.Result.Append ($" The P/Invoke {method.FullName} has been marked as non-blittable for the following reasons:\n"); + } + if (typeIndex.Index < 0) { + result.Result.Append ($" The return type is"); + } else { + result.Result.Append ($" Parameter index {typeIndex.Index} is"); + } + result.Result.Append ($" {typeIndex.Type}: {localResult.ToString ()}\n"); + } + } + return result; + } + + IEnumerable TypesFromMethod (MethodReference method) + { + if (method.ReturnType is not null) + yield return new TypeAndIndex (method.ReturnType, -1); + var i = 0; + foreach (var parameter in method.Parameters) + yield return new TypeAndIndex (parameter.ParameterType, i++); + } + + bool IsTypeBlittable (AssemblyDefinition assembly, TypeReference type, StringBuilder result, Dictionary blitCache) + { + if (blitCache.TryGetValue (type.Name, out var cachedResult)) { + if (!cachedResult.IsBlittable) + result.Append ($" {cachedResult.Reason}"); + return cachedResult.IsBlittable; + } + if (IsBlittableTypesWeLike (type)) { + blitCache [type.Name] = new BlitAndReason (true, ""); + return true; + } + if (IsBlittablePointer (type)) { + blitCache [type.Name] = new BlitAndReason (true, ""); + return true; + } + var localResult = new StringBuilder (); + if (IsBlittableValueType (assembly, type, localResult, blitCache)) { + blitCache [type.Name] = new BlitAndReason (true, ""); + return true; + } + result.Append (localResult); + blitCache [type.Name] = new BlitAndReason (false, result.ToString ()); + return false; + } + + + static HashSet typesWeLike = new HashSet () { + "System.Void", + "System.IntPtr", + "System.UIntPtr", + "ObjCRuntime.NativeHandle", + "System.Byte", + "System.SByte", + "System.Int16", + "System.UInt16", + "System.Int32", + "System.UInt32", + "System.Int64", + "System.UInt64", + "System.Single", + "System.Double", + "System.Runtime.InteropServices.NFloat", + "System.Runtime.InteropServices.NFloat&", + }; + + bool IsBlittableTypesWeLike (TypeReference t) + { + return typesWeLike.Contains (t.ToString ()); + } + + bool IsBlittablePointer (TypeReference type) + { + return type.IsPointer || type.IsFunctionPointer; + } + + + bool IsBlittableValueType (AssemblyDefinition assembly, TypeReference type, StringBuilder result, Dictionary blitCache) + { + TypeDefinition? typeDefinition = type.Resolve (); + if (typeDefinition is null) { + result.Append ($" {type.FullName}: Unable to load type."); + return false; + } + if (!typeDefinition.IsValueType) { + // handy for debugging + // change the true to false to get more information + // than you'll probably need about the typeDefinition + var other = true ? "" : $"IsByReference {typeDefinition.IsByReference} IsPointer {typeDefinition.IsPointer} IsSentinel {typeDefinition.IsSentinel} IsArray {typeDefinition.IsArray} IsGenericParameter {typeDefinition.IsGenericParameter} IsRequiredModifier {typeDefinition.IsRequiredModifier} IsOptionalModifier {typeDefinition.IsOptionalModifier} IsPinned {typeDefinition.IsPinned} IsFunctionPointer {typeDefinition.IsFunctionPointer} IsPrimitive {typeDefinition.IsPrimitive}"; + result.Append ($" {type.Name}: Type is not a value type.\n{other}\n"); + return false; + } + if (typeDefinition.IsEnum) { + return true; + } + var allBlittable = true; + // if we get here then this is a struct. We can presume + // that a struct will be blittable until we know otherwise + // this will prevent infinite recursion + blitCache [type.Name] = new BlitAndReason (true, ""); + var fieldsResult = new StringBuilder (); + + // if we're here, this is a struct + // a struct is blittable if and only if all the + // non-static fields are blittable. + foreach (var f in typeDefinition.Fields) { + if (f.IsStatic) + continue; + var localResult = new StringBuilder (); + if (!IsTypeBlittable (assembly, f.FieldType, localResult, blitCache)) { + if (!allBlittable) + fieldsResult.Append ($" {type.Name}:"); + fieldsResult.Append ($" ({f.Name}: {localResult})"); + allBlittable = false; + } + } + if (!allBlittable) { + result.Append (fieldsResult); + blitCache [type.Name] = new BlitAndReason (false, fieldsResult.ToString ()); + } + return allBlittable; + } + + IEnumerable AllPInvokes (AssemblyDefinition assembly) + { + return Helper.FilterMethods (assembly, method => + (method.Attributes & MethodAttributes.PInvokeImpl) != 0); + } + + static bool IsPInvokeOK (MethodDefinition method) + { + var fullName = method.FullName; + switch (fullName) { + default: + return true; + } + } + } +} diff --git a/tests/common/AppDelegate.cs b/tests/common/AppDelegate.cs index 1ef85e3642..c4d5ac3e9f 100644 --- a/tests/common/AppDelegate.cs +++ b/tests/common/AppDelegate.cs @@ -26,9 +26,8 @@ public partial class AppDelegate : UIApplicationDelegate { public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) { -#if __MACCATALYST__ - // Debug spew to track down https://github.com/xamarin/maccore/issues/2414 - Console.WriteLine ("AppDelegate.FinishedLaunching"); +#if __MACCATALYST__ || __MACOS__ + TestRuntime.NotifyLaunchCompleted (); #endif var window = new UIWindow (UIScreen.MainScreen.Bounds); diff --git a/tests/common/DotNet.cs b/tests/common/DotNet.cs index 27e6fc26d2..10bbbc51fe 100644 --- a/tests/common/DotNet.cs +++ b/tests/common/DotNet.cs @@ -10,14 +10,14 @@ using Xamarin.Utils; using NUnit.Framework; -#nullable disable +#nullable enable namespace Xamarin.Tests { public static class DotNet { - static string dotnet_executable; + static string? dotnet_executable; public static string Executable { get { - if (dotnet_executable == null) { + if (dotnet_executable is null) { dotnet_executable = Configuration.GetVariable ("DOTNET", null); if (string.IsNullOrEmpty (dotnet_executable)) throw new Exception ($"Could not find the dotnet executable."); @@ -28,53 +28,53 @@ namespace Xamarin.Tests { } } - public static ExecutionResult AssertPack (string project, Dictionary properties = null) + public static ExecutionResult AssertPack (string project, Dictionary? properties = null) { return Execute ("pack", project, properties, true); } - public static ExecutionResult AssertPackFailure (string project, Dictionary properties = null) + public static ExecutionResult AssertPackFailure (string project, Dictionary? properties = null) { var rv = Execute ("pack", project, properties, false); Assert.AreNotEqual (0, rv.ExitCode, "Unexpected success"); return rv; } - public static ExecutionResult AssertPublish (string project, Dictionary properties = null) + public static ExecutionResult AssertPublish (string project, Dictionary? properties = null) { return Execute ("publish", project, properties, true); } - public static ExecutionResult AssertPublishFailure (string project, Dictionary properties = null) + public static ExecutionResult AssertPublishFailure (string project, Dictionary? properties = null) { var rv = Execute ("publish", project, properties, false); Assert.AreNotEqual (0, rv.ExitCode, "Unexpected success"); return rv; } - public static ExecutionResult AssertRestore (string project, Dictionary properties = null) + public static ExecutionResult AssertRestore (string project, Dictionary? properties = null) { return Execute ("restore", project, properties, true); } - public static ExecutionResult Restore (string project, Dictionary properties = null) + public static ExecutionResult Restore (string project, Dictionary? properties = null) { return Execute ("restore", project, properties, false); } - public static ExecutionResult AssertBuild (string project, Dictionary properties = null) + public static ExecutionResult AssertBuild (string project, Dictionary? properties = null) { return Execute ("build", project, properties, true); } - public static ExecutionResult AssertBuildFailure (string project, Dictionary properties = null) + public static ExecutionResult AssertBuildFailure (string project, Dictionary? properties = null) { var rv = Execute ("build", project, properties, false); Assert.AreNotEqual (0, rv.ExitCode, "Unexpected success"); return rv; } - public static ExecutionResult Build (string project, Dictionary properties = null) + public static ExecutionResult Build (string project, Dictionary? properties = null) { return Execute ("build", project, properties, false); } @@ -88,10 +88,10 @@ namespace Xamarin.Tests { args.Add (template); if (!string.IsNullOrEmpty (name)) { args.Add ("--name"); - args.Add (name); + args.Add (name!); } - var env = new Dictionary (); + var env = new Dictionary (); env ["MSBuildSDKsPath"] = null; env ["MSBUILD_EXE_PATH"] = null; var output = new StringBuilder (); @@ -101,14 +101,10 @@ namespace Xamarin.Tests { Console.WriteLine (output); Assert.AreEqual (0, rv.ExitCode, $"Exit code: {Executable} {StringUtils.FormatArguments (args)}"); } - return new ExecutionResult { - StandardOutput = output, - StandardError = output, - ExitCode = rv.ExitCode, - }; + return new ExecutionResult (output, output, rv.ExitCode); } - public static ExecutionResult Execute (string verb, string project, Dictionary properties, bool assert_success = true, string target = null) + public static ExecutionResult Execute (string verb, string project, Dictionary? properties, bool assert_success = true, string? target = null) { if (!File.Exists (project)) throw new FileNotFoundException ($"The project file '{project}' does not exist."); @@ -123,8 +119,8 @@ namespace Xamarin.Tests { var args = new List (); args.Add (verb); args.Add (project); - if (properties != null) { - Dictionary generatedProps = null; + if (properties is not null) { + Dictionary? generatedProps = null; foreach (var prop in properties) { if (prop.Value.IndexOfAny (new char [] { ';' }) >= 0) { // https://github.com/dotnet/msbuild/issues/471 @@ -164,10 +160,10 @@ namespace Xamarin.Tests { } if (!string.IsNullOrEmpty (target)) args.Add ("/t:" + target); - var binlogPath = Path.Combine (Path.GetDirectoryName (project), $"log-{verb}-{DateTime.Now:yyyyMMdd_HHmmss}.binlog"); + var binlogPath = Path.Combine (Path.GetDirectoryName (project)!, $"log-{verb}-{DateTime.Now:yyyyMMdd_HHmmss}.binlog"); args.Add ($"/bl:{binlogPath}"); Console.WriteLine ($"Binlog: {binlogPath}"); - var env = new Dictionary (); + var env = new Dictionary (); env ["MSBuildSDKsPath"] = null; env ["MSBUILD_EXE_PATH"] = null; var output = new StringBuilder (); @@ -178,10 +174,7 @@ namespace Xamarin.Tests { Console.WriteLine (outputStr); Assert.AreEqual (0, rv.ExitCode, $"Exit code: {Executable} {StringUtils.FormatArguments (args)}"); } - return new ExecutionResult { - StandardOutput = output, - StandardError = output, - ExitCode = rv.ExitCode, + return new ExecutionResult (output, output, rv.ExitCode) { BinLogPath = binlogPath, }; default: @@ -297,5 +290,13 @@ namespace Xamarin.Tests { public int ExitCode; public bool TimedOut; public string BinLogPath; + + public ExecutionResult (StringBuilder stdout, StringBuilder stderr, int exitCode) + { + StandardOutput = stdout; + StandardError = stderr; + ExitCode = exitCode; + BinLogPath = string.Empty; + } } } diff --git a/tests/common/TestRuntime.cs b/tests/common/TestRuntime.cs index 4db20259c1..38e0d3526c 100644 --- a/tests/common/TestRuntime.cs +++ b/tests/common/TestRuntime.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Net; using System.Net.Http; @@ -348,7 +349,11 @@ partial class TestRuntime { * * The above statement also applies to 'CheckExactmacOSSystemVersion' =S */ +#if NET return NSProcessInfo.ProcessInfo.OperatingSystemVersionString.Contains (v.macOS.Build, StringComparison.Ordinal); +#else + return NSProcessInfo.ProcessInfo.OperatingSystemVersionString.Contains (v.macOS.Build); +#endif #else throw new NotImplementedException (); #endif @@ -1459,6 +1464,13 @@ partial class TestRuntime { return false; } + public static void NotifyLaunchCompleted () + { + var env = Environment.GetEnvironmentVariable ("LAUNCH_SENTINEL_FILE"); + if (!string.IsNullOrEmpty (env)) + File.WriteAllText (env, "Launched!"); // content doesn't matter, the file just has to exist. + } + enum NXByteOrder /* unspecified in header, means most likely int */ { Unknown, LittleEndian, @@ -1474,11 +1486,11 @@ partial class TestRuntime { IntPtr description; // const char * public string Name { - get { return Marshal.PtrToStringUTF8 (name)!; } + get { return Marshal.PtrToStringAuto (name)!; } } public string Description { - get { return Marshal.PtrToStringUTF8 (description)!; } + get { return Marshal.PtrToStringAuto (description)!; } } } diff --git a/tests/common/mac/MacMain.cs b/tests/common/mac/MacMain.cs index 592413cbc7..e8774972c4 100644 --- a/tests/common/mac/MacMain.cs +++ b/tests/common/mac/MacMain.cs @@ -10,6 +10,8 @@ namespace Xamarin.Mac.Tests { static class MainClass { static async Task Main (string [] args) { + TestRuntime.NotifyLaunchCompleted (); + // Skip arguments added by VSfM/macOS when running from the IDE var arguments = new List (args); arguments.RemoveAll ((arg) => arg.StartsWith ("-psn_", StringComparison.Ordinal)); diff --git a/tests/framework-test/dotnet/shared.csproj b/tests/framework-test/dotnet/shared.csproj index 9bc0bd70bb..2942ec7d88 100644 --- a/tests/framework-test/dotnet/shared.csproj +++ b/tests/framework-test/dotnet/shared.csproj @@ -32,6 +32,12 @@ + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/framework-test/iOS/AppDelegate.cs b/tests/framework-test/iOS/AppDelegate.cs index 9c5065ea97..6cf252b489 100644 --- a/tests/framework-test/iOS/AppDelegate.cs +++ b/tests/framework-test/iOS/AppDelegate.cs @@ -5,8 +5,7 @@ using System.Collections.Generic; using Foundation; -public partial class AppDelegate -{ +public partial class AppDelegate { public partial IEnumerable GetTestAssemblies () { return new Assembly [] { diff --git a/tests/framework-test/macOS/framework-test-mac.csproj b/tests/framework-test/macOS/framework-test-mac.csproj index 74c8e15acb..af49aa0af5 100644 --- a/tests/framework-test/macOS/framework-test-mac.csproj +++ b/tests/framework-test/macOS/framework-test-mac.csproj @@ -18,6 +18,8 @@ x86_64 PackageReference + latest + true true @@ -67,6 +69,12 @@ MacMain.cs + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/interdependent-binding-projects/Main.cs b/tests/interdependent-binding-projects/Main.cs index 1fa954a921..55db402d2f 100644 --- a/tests/interdependent-binding-projects/Main.cs +++ b/tests/interdependent-binding-projects/Main.cs @@ -22,8 +22,7 @@ namespace Xamarin.Mac.Tests { } } #elif !__WATCHOS__ -public partial class AppDelegate -{ +public partial class AppDelegate { public partial IEnumerable GetTestAssemblies () { return new Assembly [] { @@ -46,8 +45,7 @@ public static partial class TestLoader { // In some cases NUnit fails if asked to run tests from an assembly that doesn't have any tests. So add a dummy test here to not fail in that scenario. [TestFixture] -public class DummyTest -{ +public class DummyTest { public void TestMe () { Assert.True (true, "YAY!"); diff --git a/tests/interdependent-binding-projects/dotnet/shared.csproj b/tests/interdependent-binding-projects/dotnet/shared.csproj index 2587f4c236..d879074086 100644 --- a/tests/interdependent-binding-projects/dotnet/shared.csproj +++ b/tests/interdependent-binding-projects/dotnet/shared.csproj @@ -30,5 +30,11 @@ + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs index 617b66f796..9349bb77d6 100644 --- a/tests/introspection/ApiTypoTest.cs +++ b/tests/introspection/ApiTypoTest.cs @@ -892,7 +892,7 @@ namespace Introspection { message = ((ObsoleteAttribute) attribute).Message; #if !NET if (attribute is AvailabilityBaseAttribute) - message = ((AvailabilityBaseAttribute)attribute).Message; + message = ((AvailabilityBaseAttribute) attribute).Message; #endif return message; diff --git a/tests/introspection/iOS/iOSApiProtocolTest.cs b/tests/introspection/iOS/iOSApiProtocolTest.cs index 5fb2f410f3..6836ef3889 100644 --- a/tests/introspection/iOS/iOSApiProtocolTest.cs +++ b/tests/introspection/iOS/iOSApiProtocolTest.cs @@ -167,7 +167,7 @@ namespace Introspection { case "CAMetalLayer": return TestRuntime.IsSimulatorOrDesktop && !TestRuntime.CheckXcodeVersion (11, 0); #if !XAMCORE_3_0 - // mistake (base type) fixed by a breaking change + // mistake (base type) fixed by a breaking change case "MFMailComposeViewControllerDelegate": if (protocolName == "UINavigationControllerDelegate") return true; diff --git a/tests/linker/AppDelegate.cs b/tests/linker/AppDelegate.cs index b63df8c954..49c837407f 100644 --- a/tests/linker/AppDelegate.cs +++ b/tests/linker/AppDelegate.cs @@ -5,8 +5,7 @@ using System.Collections.Generic; using Foundation; -public partial class AppDelegate -{ +public partial class AppDelegate { public partial IEnumerable GetTestAssemblies () { return new Assembly [] { diff --git a/tests/linker/BaseOptimizeGeneratedCodeTest.cs b/tests/linker/BaseOptimizeGeneratedCodeTest.cs index 9b886d9819..ce3846706f 100644 --- a/tests/linker/BaseOptimizeGeneratedCodeTest.cs +++ b/tests/linker/BaseOptimizeGeneratedCodeTest.cs @@ -23,11 +23,9 @@ using ObjCRuntime; using NUnit.Framework; -namespace Linker.Shared -{ +namespace Linker.Shared { [Preserve (AllMembers = true)] - public abstract class BaseOptimizeGeneratedCodeTest - { + public abstract class BaseOptimizeGeneratedCodeTest { protected void IgnoreIfNotLinkAll () { if (!TestRuntime.IsLinkAll) @@ -420,7 +418,7 @@ namespace Linker.Shared GC.KeepAlive (dummy1); GC.KeepAlive (dummy2); } - + [BindingImpl (BindingImplOptions.Optimizable)] void SetupBlockOptimized_LoadLocalVariable4 (Action callback) { @@ -544,7 +542,7 @@ namespace Linker.Shared Assert.That (instructions.Skip (0).First ().OpCode, Is.EqualTo (OpCodes.Ldc_I4_0).Or.EqualTo (OpCodes.Ldc_I4_1), "IL 1"); Assert.That (instructions.Skip (1).First ().OpCode, Is.EqualTo (OpCodes.Ret), "IL 2"); #endif - + Assert.AreEqual (Runtime.IsARM64CallingConvention, GetIsARM64CallingConventionOptimized (), "Value optimized"); Assert.AreEqual (Runtime.IsARM64CallingConvention, GetIsARM64CallingConventionNotOptimized (), "Value unoptimized"); } diff --git a/tests/linker/CommonLinkAllTest.cs b/tests/linker/CommonLinkAllTest.cs index bcfd9fd606..2c8e6d51cc 100644 --- a/tests/linker/CommonLinkAllTest.cs +++ b/tests/linker/CommonLinkAllTest.cs @@ -38,7 +38,7 @@ namespace LinkAll { public class CustomConverter : TypeConverter { // note: the default ctor will be preserved by the linker because it's used in a [TypeConverter] attribute - } + } [TypeConverter (typeof (BooleanConverter))] public class BuiltInConverter { diff --git a/tests/linker/CommonLinkAnyTest.cs b/tests/linker/CommonLinkAnyTest.cs index 13680ff632..867bbb9ee3 100644 --- a/tests/linker/CommonLinkAnyTest.cs +++ b/tests/linker/CommonLinkAnyTest.cs @@ -18,7 +18,8 @@ namespace LinkAnyTest { int i = 0; string b = null; NSSet s = new NSSet ("a", "b", "c"); - s.Enumerate (delegate (NSObject obj, ref bool stop) { + s.Enumerate (delegate (NSObject obj, ref bool stop) + { stop = i++ == 1; b = obj.ToString (); }); diff --git a/tests/linker/CommonLinkSdkTest.cs b/tests/linker/CommonLinkSdkTest.cs index 57b18c1c7d..1fca8398fc 100644 --- a/tests/linker/CommonLinkSdkTest.cs +++ b/tests/linker/CommonLinkSdkTest.cs @@ -42,7 +42,7 @@ namespace LinkSdk { c = TypeDescriptor.GetConverter (typeof (ulong)); Assert.That (c.GetType ().Name, Is.EqualTo ("UInt64Converter"), "UInt64Converter"); - c = TypeDescriptor.GetConverter (typeof (int[])); + c = TypeDescriptor.GetConverter (typeof (int [])); Assert.That (c.GetType ().Name, Is.EqualTo ("ArrayConverter"), "ArrayConverter"); c = TypeDescriptor.GetConverter (typeof (int?)); @@ -59,7 +59,7 @@ namespace LinkSdk { c = TypeDescriptor.GetConverter (typeof (ushort)); Assert.That (c.GetType ().Name, Is.EqualTo ("UInt16Converter"), "UInt16Converter"); - + c = TypeDescriptor.GetConverter (typeof (Guid)); Assert.That (c.GetType ().Name, Is.EqualTo ("GuidConverter"), "GuidConverter"); diff --git a/tests/linker/ILReader.cs b/tests/linker/ILReader.cs index 844c7b9b82..f0a7ac80c1 100644 --- a/tests/linker/ILReader.cs +++ b/tests/linker/ILReader.cs @@ -14,10 +14,8 @@ using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; -namespace Linker.Shared -{ - public class ILInstruction - { +namespace Linker.Shared { + public class ILInstruction { public MethodBase Method; public OpCode OpCode; public int Offset; @@ -40,8 +38,7 @@ namespace Linker.Shared } } - public class ILReader : IEnumerable - { + public class ILReader : IEnumerable { List instructions; static OpCode [] oneByteOpcodes = new OpCode [0x100]; @@ -164,7 +161,7 @@ namespace Linker.Shared } } - static byte ReadByte (byte[] bytes, ref int position) + static byte ReadByte (byte [] bytes, ref int position) { return bytes [position++]; } diff --git a/tests/linker/ios/dont link/DontLinkRegressionTests.cs b/tests/linker/ios/dont link/DontLinkRegressionTests.cs index ad15c8442b..a663117aa2 100644 --- a/tests/linker/ios/dont link/DontLinkRegressionTests.cs +++ b/tests/linker/ios/dont link/DontLinkRegressionTests.cs @@ -40,7 +40,7 @@ namespace DontLink { [TestFixture] public class DontLinkRegressionTests { - + // http://bugzilla.xamarin.com/show_bug.cgi?id=587 // regressed: http://bugzilla.xamarin.com/show_bug.cgi?id=1824 private readonly Dictionary queued = new Dictionary (); @@ -48,7 +48,7 @@ namespace DontLink { [Test] public void Bug587_FullAotRuntime () { - KeyValuePair valuePair = queued.FirstOrDefault (delegate {return true; }); + KeyValuePair valuePair = queued.FirstOrDefault (delegate { return true; }); Assert.NotNull (valuePair); // should not crash with System.ExecutionEngineException } diff --git a/tests/linker/ios/dont link/TableViewSourceTest.cs b/tests/linker/ios/dont link/TableViewSourceTest.cs index e3fbebb595..f42a35030e 100644 --- a/tests/linker/ios/dont link/TableViewSourceTest.cs +++ b/tests/linker/ios/dont link/TableViewSourceTest.cs @@ -18,7 +18,7 @@ using UIKit; using NUnit.Framework; namespace DontLink.UIKit { - + [TestFixture] [Preserve (AllMembers = true)] public class TableViewSourceTest { @@ -28,7 +28,7 @@ namespace DontLink.UIKit { // update its members (e.g. bug 8298 for iOS6 additions). // note: test executed inside the dontlink.app on purpose ;-) - + [Test] public void ValidateMembers () { @@ -44,7 +44,8 @@ namespace DontLink.UIKit { foreach (var mi in typeof (UITableViewSource).GetMethods (flags)) tvsource.Add (mi.ToString ()); - methods.RemoveAll (delegate (string name) { + methods.RemoveAll (delegate (string name) + { return tvsource.Contains (name); }); Assert.That (methods.Count, Is.EqualTo (0), "Incomplete bindings! Please add the following members to UITableViewSource: " + String.Join (", ", methods)); diff --git a/tests/linker/ios/dont link/dotnet/shared.csproj b/tests/linker/ios/dont link/dotnet/shared.csproj index 6c08db5d4b..485b4e57ab 100644 --- a/tests/linker/ios/dont link/dotnet/shared.csproj +++ b/tests/linker/ios/dont link/dotnet/shared.csproj @@ -34,6 +34,12 @@ + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/linker/ios/link all/AttributeTest.cs b/tests/linker/ios/link all/AttributeTest.cs index 292d199c52..668a6f4896 100644 --- a/tests/linker/ios/link all/AttributeTest.cs +++ b/tests/linker/ios/link all/AttributeTest.cs @@ -22,8 +22,8 @@ using NUnit.Framework; [assembly: Debuggable (DebuggableAttribute.DebuggingModes.Default)] [assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeA))] -[assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeAA[][]))] -[assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeAAA[,]))] +[assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeAA [] []))] +[assembly: LinkAll.Attributes.CustomAttributeArray (typeof (LinkAll.Attributes.CustomTypeAAA [,]))] //[assembly: LinkAll.Attributes.CustomAttributeArray (new object [] { typeof (LinkAll.Attributes.CustomTypeAAAA) })] [assembly: LinkAll.Attributes.CustomAttribute (typeof (LinkAll.Attributes.CustomType))] [assembly: LinkAll.Attributes.CustomAttribute (typeof (List))] @@ -51,16 +51,16 @@ namespace LinkAll.Attributes { [AttributeUsage (AttributeTargets.All, AllowMultiple = true)] public class CustomAttributeArray : Attribute { - readonly Type[] _types; + readonly Type [] _types; - public CustomAttributeArray (params Type[] types) + public CustomAttributeArray (params Type [] types) { _types = types; } public CustomAttributeArray (params object [] types) { - _types = (Type[]) types; + _types = (Type []) types; } } @@ -93,13 +93,12 @@ namespace LinkAll.Attributes { } [AttributeUsage (AttributeTargets.All, AllowMultiple = true)] - public class CustomAttributeObject : Attribute - { + public class CustomAttributeObject : Attribute { readonly Type _type; public CustomAttributeObject (object type) { - _type = (Type)type; + _type = (Type) type; } } @@ -122,7 +121,7 @@ namespace LinkAll.Attributes { // we want the tests to be available because we use the linker [Preserve (AllMembers = true)] public class AttributeTest { - + // Good enough to fool linker to abort the tracking #if NET static string mscorlib = "System.Private.CoreLib"; @@ -134,7 +133,7 @@ namespace LinkAll.Attributes { public void DebugAssemblyAttributes () { bool result = false; - foreach (object ca in typeof(FullyDecorated).Assembly.GetCustomAttributes (false)) { + foreach (object ca in typeof (FullyDecorated).Assembly.GetCustomAttributes (false)) { if (ca is DebuggableAttribute) result = true; } @@ -148,7 +147,7 @@ namespace LinkAll.Attributes { [Test] public void DebugTypeAttributes () { - var ca = typeof(FullyDecorated).GetCustomAttributes (false); + var ca = typeof (FullyDecorated).GetCustomAttributes (false); #if DEBUG Assert.That (ca.Length, Is.EqualTo (5), "Debug attributes in debug mode"); #else @@ -159,7 +158,7 @@ namespace LinkAll.Attributes { [Test] public void DebugConstructorAttributes () { - var ca = typeof(FullyDecorated).GetConstructor (Type.EmptyTypes).GetCustomAttributes (false); + var ca = typeof (FullyDecorated).GetConstructor (Type.EmptyTypes).GetCustomAttributes (false); #if DEBUG Assert.That (ca.Length, Is.EqualTo (2), "Debug attributes in debug mode"); #else @@ -190,7 +189,7 @@ namespace LinkAll.Attributes { [Test] public void DebuggerTypeProxy_24203 () { - var d = new Dictionary () { { "key", 0 } }; + var d = new Dictionary () { { "key", 0 } }; Assert.NotNull (d); // just to be 100% sure it won't be linked away (with the attribute we'll be looking for) var proxy = Type.GetType ("System.Collections.Generic.IDictionaryDebugView`2, " + mscorlib); #if DEBUG @@ -214,7 +213,7 @@ namespace LinkAll.Attributes { Assert.NotNull (Type.GetType ("LinkAll.Attributes.CustomTypeAAA"), "CustomTypeAAA"); //Assert.NotNull (Type.GetType ("LinkAll.Attributes.CustomTypeAAAA"), "CustomTypeAAAA"); - var t = assembly.GetCustomAttributes(); + var t = assembly.GetCustomAttributes (); Assert.That (t.Count (), Is.EqualTo (2), "Type"); Assert.NotNull (Type.GetType ("LinkAll.Attributes.CustomType"), "CustomType"); Assert.NotNull (Type.GetType ("LinkAll.Attributes.CustomTypeG"), "CustomTypeG"); diff --git a/tests/linker/ios/link all/ClassLayoutTest.cs b/tests/linker/ios/link all/ClassLayoutTest.cs index a454a37daa..18e8fbf9f6 100644 --- a/tests/linker/ios/link all/ClassLayoutTest.cs +++ b/tests/linker/ios/link all/ClassLayoutTest.cs @@ -15,30 +15,30 @@ using NUnit.Framework; namespace LinkAll.Layout { class DefaultClass { - public int never_used; // the linker will remove this + public int never_used; // the linker will remove this public int used; } [StructLayout (LayoutKind.Auto)] class AutoClass { - public int never_used; // the linker will remove this + public int never_used; // the linker will remove this public int used; } [StructLayout (LayoutKind.Sequential)] class SequentialClass { - public int never_used; // the linker MUST NOT remove this + public int never_used; // the linker MUST NOT remove this public int used; } [StructLayout (LayoutKind.Explicit)] class ExplicitClass { [FieldOffset (0)] - public int never_used; // the linker could remove this + public int never_used; // the linker could remove this [FieldOffset (4)] public int used; [FieldOffset (8)] - public int never_ever_used; // the linker MUST NOT remove this + public int never_ever_used; // the linker MUST NOT remove this } [TestFixture] diff --git a/tests/linker/ios/link all/DataContractTest.cs b/tests/linker/ios/link all/DataContractTest.cs index 1402e2ea07..11f0666fa6 100644 --- a/tests/linker/ios/link all/DataContractTest.cs +++ b/tests/linker/ios/link all/DataContractTest.cs @@ -30,14 +30,14 @@ namespace LinkAll.Serialization.DataContract { // You also need to add custom types as '[KnownType(typeof(CustomType))]' attributes public static string ToXml (T obj) { - var sb = new StringBuilder(); + var sb = new StringBuilder (); using (var x = XmlWriter.Create (sb, new XmlWriterSettings ())) { var s = new DataContractSerializer (typeof (T)); - s.WriteObject(x, obj); + s.WriteObject (x, obj); } - return sb.ToString(); + return sb.ToString (); } - + public static T FromXml (string xml) { using (var r = XmlReader.Create (new StringReader (xml))) { @@ -45,10 +45,9 @@ namespace LinkAll.Serialization.DataContract { return (T) s.ReadObject (r); } } - + [DataContract (Namespace = "mb")] - public class TestClass - { + public class TestClass { public TestClass (SomeTypes types) { Types = types; @@ -57,8 +56,9 @@ namespace LinkAll.Serialization.DataContract { [DataMember] public SomeTypes Types { get; set; } } - - [DataContract (Namespace = "mb")][Flags] + + [DataContract (Namespace = "mb")] + [Flags] public enum SomeTypes { [Preserve (AllMembers = true)][EnumMember] None = 0, [Preserve (AllMembers = true)][EnumMember] Image = 1, diff --git a/tests/linker/ios/link all/InterfacesTest.cs b/tests/linker/ios/link all/InterfacesTest.cs index 63d22843bc..99d44892ce 100644 --- a/tests/linker/ios/link all/InterfacesTest.cs +++ b/tests/linker/ios/link all/InterfacesTest.cs @@ -15,19 +15,19 @@ using NUnit.Framework; namespace LinkAll.Interfaces { - interface I { + interface I { void Foo (); void Bar (); } - + class A : I { - public void Foo () {} - public void Bar () {} + public void Foo () { } + public void Bar () { } } - + class B : I { - public void Foo () {} - public void Bar () {} + public void Foo () { } + public void Bar () { } } class UTF8Marshaler : ICustomMarshaler { @@ -99,7 +99,7 @@ namespace LinkAll.Interfaces { #endif public void Issue9566 () { - var ifaces = (I[]) (object) new B[0]; + var ifaces = (I []) (object) new B [0]; Assert.IsNotNull (ifaces, "Array cast"); } diff --git a/tests/linker/ios/link all/InternalsTest.cs b/tests/linker/ios/link all/InternalsTest.cs index fa35f1110b..f927b724dc 100644 --- a/tests/linker/ios/link all/InternalsTest.cs +++ b/tests/linker/ios/link all/InternalsTest.cs @@ -31,7 +31,7 @@ namespace LinkAll.InernalCalls { Assert.IsNotNull (xamarin_get_locale_country_code (), "xamarin_get_locale_country_code"); } - [DllImport ("__Internal", CharSet=CharSet.Unicode)] + [DllImport ("__Internal", CharSet = CharSet.Unicode)] extern static void xamarin_log (string s); [Test] diff --git a/tests/linker/ios/link all/LinkAllTest.cs b/tests/linker/ios/link all/LinkAllTest.cs index 0712c0c794..608a598ea7 100644 --- a/tests/linker/ios/link all/LinkAllTest.cs +++ b/tests/linker/ios/link all/LinkAllTest.cs @@ -37,14 +37,14 @@ using NUnit.Framework; using MonoTests.System.Net.Http; namespace LinkAll { - + // we DO NOT want the code to be "fully" available public class NotPreserved { - + public byte One { get; set; } - + [DefaultValue (2)] public int Two { get; set; @@ -56,10 +56,10 @@ namespace LinkAll { // but the nested type is a subclass of NSObject and gets preserved (as it's not part of monotouch.dll) public class Derived : NSObject { [Export ("foo")] - public void Foo () {} + public void Foo () { } } - public void UnusedMethod () {} + public void UnusedMethod () { } } [TestFixture] @@ -102,14 +102,14 @@ namespace LinkAll { public const string AssemblyName = "Xamarin.Mac"; #endif #else - #error Unknown platform +#error Unknown platform #endif Type not_preserved_type = typeof (NotPreserved); class TypeAttribute : Attribute { - public TypeAttribute (Type type) {} + public TypeAttribute (Type type) { } } [Type (null)] @@ -132,7 +132,7 @@ namespace LinkAll { Assert.NotNull (pi.GetGetMethod (), "getter"); Assert.Null (pi.GetSetMethod (), "setter"); } - + [Test] public void SetterOnly () { @@ -240,7 +240,7 @@ namespace LinkAll { } } #endif - + #if !__MACOS__ [Test] public void DetectPlatform () @@ -374,7 +374,7 @@ namespace LinkAll { #endif } #endif - + #if !__TVOS__ && !__WATCHOS__ && !__MACOS__ [Test] public void Pasteboard_ImagesTest () @@ -383,13 +383,13 @@ namespace LinkAll { using (var dp = new CGDataProvider (file)) { using (var cgimg = CGImage.FromPNG (dp, null, false, CGColorRenderingIntent.Default)) { using (var img = new UIImage (cgimg)) { - UIPasteboard.General.Images = new UIImage[] { img }; - if (TestRuntime.CheckXcodeVersion (8,0)) + UIPasteboard.General.Images = new UIImage [] { img }; + if (TestRuntime.CheckXcodeVersion (8, 0)) Assert.True (UIPasteboard.General.HasImages, "HasImages"); Assert.AreEqual (1, UIPasteboard.General.Images.Length, "a - length"); - UIPasteboard.General.Images = new UIImage[] { img, img }; + UIPasteboard.General.Images = new UIImage [] { img, img }; Assert.AreEqual (2, UIPasteboard.General.Images.Length, "b - length"); Assert.IsNotNull (UIPasteboard.General.Images [0], "b - nonnull[0]"); Assert.IsNotNull (UIPasteboard.General.Images [1], "b - nonnull[0]"); @@ -409,7 +409,7 @@ namespace LinkAll { [TypeConverter (typeof (TestEnumTypeConverter))] public enum TestEnum { - One,Two + One, Two } [Preserve (AllMembers = true)] @@ -580,7 +580,7 @@ namespace LinkAll { using (var pr = new SKProductsRequest ()) { Assert.Null (pr.WeakDelegate, "none"); // event on SKProductsRequest itself - pr.ReceivedResponse += (object sender, SKProductsRequestResponseEventArgs e) => {}; + pr.ReceivedResponse += (object sender, SKProductsRequestResponseEventArgs e) => { }; var t = pr.WeakDelegate.GetType (); Assert.That (t.Name, Is.EqualTo ("_SKProductsRequestDelegate"), "delegate"); @@ -591,7 +591,7 @@ namespace LinkAll { Assert.NotNull (value, "value"); // and on the SKRequest defined one - pr.RequestFailed += (object sender, SKRequestErrorEventArgs e) => {}; + pr.RequestFailed += (object sender, SKRequestErrorEventArgs e) => { }; // and the existing (initial field) is still set fi = t.GetField ("receivedResponse", BindingFlags.NonPublic | BindingFlags.Instance); Assert.NotNull (fi, "receivedResponse/SKRequest"); @@ -603,7 +603,8 @@ namespace LinkAll { public void Aot_27116 () { var nix = (from nic in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () - where nic.Id.StartsWith ("en") || nic.Id.StartsWith ("pdp_ip") select nic); + where nic.Id.StartsWith ("en") || nic.Id.StartsWith ("pdp_ip") + select nic); Assert.NotNull (nix); } @@ -650,7 +651,7 @@ namespace LinkAll { Assert.NotNull (oifd, atmb.FullName + ".ObjectIdForDebugger"); #else Assert.Null (snfwc, atmb.FullName + ".SetNotificationForWaitCompletion"); - Assert.Null (oifd, atmb.FullName + ".ObjectIdForDebugger"); + Assert.Null (oifd, atmb.FullName + ".ObjectIdForDebugger"); #endif } @@ -669,8 +670,7 @@ namespace LinkAll { [ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = false, Name = "ConfigureView", Selector = "configureViewForParameters:", ParameterType = new Type [] { typeof (global::Foundation.NSSet) }, ParameterByRef = new bool [] { false })] public interface IProtocolWithGenericsInOptionalMember : INativeObject, IDisposable { } - internal sealed class ProtocolWithGenericsInOptionalMemberWrapper : BaseWrapper, IProtocolWithGenericsInOptionalMember - { + internal sealed class ProtocolWithGenericsInOptionalMemberWrapper : BaseWrapper, IProtocolWithGenericsInOptionalMember { public ProtocolWithGenericsInOptionalMemberWrapper (IntPtr handle, bool owns) : base (handle, owns) { } } @@ -725,8 +725,7 @@ namespace LinkAll { [Introduced (PlatformName.WatchOS, 1, 0)] #endif [Preserve] - public class ClassFromThePast : NSObject - { + public class ClassFromThePast : NSObject { [Export ("foo:")] public void Foo (ClassFromThePast obj) { diff --git a/tests/linker/ios/link all/LinqExpressionTest.cs b/tests/linker/ios/link all/LinqExpressionTest.cs index 525185f7c7..1d3d428849 100644 --- a/tests/linker/ios/link all/LinqExpressionTest.cs +++ b/tests/linker/ios/link all/LinqExpressionTest.cs @@ -20,7 +20,7 @@ namespace LinkAll.Linq { { var ctor = typeof (LinqExpressionTest).GetConstructor (Type.EmptyTypes); var expr = Expression.New (ctor, new Expression [0]); - Assert.NotNull (Expression.Lambda (typeof(Bug14863Delegate), expr, null), "Lambda"); + Assert.NotNull (Expression.Lambda (typeof (Bug14863Delegate), expr, null), "Lambda"); // note: reflection is used to create an instance of Expression using an internal ctor // it can be indirectly "preserved" by other code (in Expression) but it can fail in other cases // ref: https://bugzilla.xamarin.com/show_bug.cgi?id=14863 diff --git a/tests/linker/ios/link all/MEFTests.cs b/tests/linker/ios/link all/MEFTests.cs index 098a644154..1e3c42562f 100644 --- a/tests/linker/ios/link all/MEFTests.cs +++ b/tests/linker/ios/link all/MEFTests.cs @@ -11,20 +11,17 @@ using NUnit.Framework; namespace LinkAll.Mef { // From Desk Case 70807 - public interface IStorageType - { + public interface IStorageType { } - [System.ComponentModel.Composition.Export(typeof (IStorageType))] + [System.ComponentModel.Composition.Export (typeof (IStorageType))] [Preserve (AllMembers = true)] - public class Storage : IStorageType - { + public class Storage : IStorageType { } [Preserve (AllMembers = true)] [TestFixture] - public class MEFTests - { + public class MEFTests { CompositionContainer _container; [ImportMany] diff --git a/tests/linker/ios/link all/PreserveTest.cs b/tests/linker/ios/link all/PreserveTest.cs index 6d5690d3f0..9029ae6e57 100644 --- a/tests/linker/ios/link all/PreserveTest.cs +++ b/tests/linker/ios/link all/PreserveTest.cs @@ -55,7 +55,7 @@ namespace LinkAll.Attributes { const bool Debug = false; #endif string AssemblyName = typeof (NSObject).Assembly.ToString (); - string WorkAroundLinkerHeuristics { get { return ""; }} + string WorkAroundLinkerHeuristics { get { return ""; } } [Test] public void PreserveTypeWithMembers () @@ -118,7 +118,7 @@ namespace LinkAll.Attributes { #else const string klassName = "Foundation.MonoTouchException"; #endif - var klass = Type.GetType (klassName +", " + AssemblyName); + var klass = Type.GetType (klassName + ", " + AssemblyName); Assert.NotNull (klass, klassName); } @@ -140,7 +140,7 @@ namespace LinkAll.Attributes { // Initialize and a few other methods are unconditionally preserved var method = klass.GetMethod ("Initialize", BindingFlags.NonPublic | BindingFlags.Static); Assert.NotNull (method, "Initialize"); - method = klass.GetMethod ("RegisterNSObject", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof (NSObject), typeof (IntPtr) }, null); + method = klass.GetMethod ("RegisterNSObject", BindingFlags.NonPublic | BindingFlags.Static, null, new Type [] { typeof (NSObject), typeof (IntPtr) }, null); Assert.NotNull (method, "RegisterNSObject"); } @@ -177,8 +177,7 @@ namespace LinkAll.Attributes { } [Preserve (AllMembers = true)] - class SmartConsumer : NSObject - { + class SmartConsumer : NSObject { // The Smart Get/Set methods should not be linked away, and neither should the Smart enums + extensions [Export ("getSmartEnumValue")] [return: BindAs (typeof (SmartEnum), OriginalType = typeof (NSString))] @@ -193,13 +192,11 @@ namespace LinkAll.Attributes { } } - public enum SmartEnum : int - { + public enum SmartEnum : int { Smart = 0, } - public static class SmartEnumExtensions - { + public static class SmartEnumExtensions { public static NSString GetConstant (this SmartEnum self) { return (NSString) "Smart"; diff --git a/tests/linker/ios/link all/SerializationTest.cs b/tests/linker/ios/link all/SerializationTest.cs index 7a7edaa501..7b85fbd2e6 100644 --- a/tests/linker/ios/link all/SerializationTest.cs +++ b/tests/linker/ios/link all/SerializationTest.cs @@ -12,10 +12,8 @@ using System.Runtime.Serialization; using Foundation; using NUnit.Framework; -namespace LinkAll -{ - static class Helper - { +namespace LinkAll { + static class Helper { public static Type GetType (string name) { return Type.GetType (name); @@ -32,7 +30,7 @@ namespace LinkAll.Serialization { [Serializable] public class Unused { - + [OnDeserializing] void Deserializing () { @@ -53,7 +51,7 @@ namespace LinkAll.Serialization { { } } - + [Serializable] public class Used { @@ -66,7 +64,7 @@ namespace LinkAll.Serialization { void Deserialized () { } - + [OnSerializing] void Serializing () { @@ -77,12 +75,12 @@ namespace LinkAll.Serialization { { } } - + [TestFixture] // we want the tests to be available because we use the linker [Preserve (AllMembers = true)] public class SerializationAttributeTests { - + [Test] public void UnusedType () { @@ -102,7 +100,7 @@ namespace LinkAll.Serialization { // it's not removed by the linker Assert.NotNull (t, "type"); // and since it's not the 4 decorated methods are also kept (even if uncalled) - Assert.That (t.GetMethods ().Length, Is.EqualTo (4), "4"); + Assert.That (t.GetMethods ().Length, Is.EqualTo (4), "4"); } } } diff --git a/tests/linker/ios/link sdk/AotBugs.cs b/tests/linker/ios/link sdk/AotBugs.cs index 80b6798bf5..647c6b5335 100644 --- a/tests/linker/ios/link sdk/AotBugs.cs +++ b/tests/linker/ios/link sdk/AotBugs.cs @@ -15,62 +15,62 @@ using ObjCRuntime; using NUnit.Framework; namespace LinkSdk.Aot { - + static class AotExtension { - + // https://bugzilla.xamarin.com/show_bug.cgi?id=3285 - public static IEnumerable GetInterfaces(this Type type, Type interfaceType) + public static IEnumerable GetInterfaces (this Type type, Type interfaceType) { - Type[] interfaces = type.GetInterfaces(); + Type [] interfaces = type.GetInterfaces (); foreach (Type t in interfaces) { Type typeToCheck = t; if (t.IsGenericType) - typeToCheck = t.GetGenericTypeDefinition(); + typeToCheck = t.GetGenericTypeDefinition (); if (typeToCheck == interfaceType) yield return t; } yield break; } } - + interface IAotTest { } interface IExpectException { } - + [TestFixture] // already done in Bug2096Test.cs -> [Preserve (AllMembers = true)] public partial class AotBugsTest : IAotTest { - + // https://bugzilla.xamarin.com/show_bug.cgi?id=3285 [Test] public void Aot_3285 () { // called as an extension method (always worked) Assert.False (GetType ().GetInterfaces (typeof (IExpectException)).Select (interf => interf != null).FirstOrDefault (), "false"); - + // workaround for #3285 - similar to previous fix for monotouch/aot // called as a static method (does not change the result - but it was closer to the original test case) Assert.True (AotExtension.GetInterfaces (GetType (), typeof (IAotTest)).Select (interf => interf != null).FirstOrDefault (delegate { return true; }), "delegate"); - + // actual, failing, test case (fixed by inlining code) Assert.True (GetType ().GetInterfaces (typeof (IAotTest)).Select (interf => interf != null).FirstOrDefault (), "FirstOrDefault/true"); - + // other similar cases (returning bool with optional predicate delegate) var enumerable = GetType ().GetInterfaces (typeof (IAotTest)).Select (interf => interf != null); Assert.True (enumerable.Any (), "Any"); Assert.True (enumerable.ElementAt (0), "ElementAt"); Assert.True (enumerable.ElementAtOrDefault (0), "ElementAtOrDefault"); Assert.True (enumerable.First (), "First"); - Assert.True (enumerable.Last (), "Last"); // failed before fix - Assert.True (enumerable.LastOrDefault (), "LastOrDefault"); // failed before fix + Assert.True (enumerable.Last (), "Last"); // failed before fix + Assert.True (enumerable.LastOrDefault (), "LastOrDefault"); // failed before fix Assert.True (enumerable.Max (), "Max"); Assert.True (enumerable.Min (), "Min"); - Assert.True (enumerable.Single (), "Single"); // failed before fix - Assert.True (enumerable.SingleOrDefault (), "SingleOrDefault"); // failed before fix + Assert.True (enumerable.Single (), "Single"); // failed before fix + Assert.True (enumerable.SingleOrDefault (), "SingleOrDefault"); // failed before fix } - + [Test] // https://bugzilla.xamarin.com/show_bug.cgi?id=3444 public void ConcurrentDictionary_3444 () @@ -78,10 +78,10 @@ namespace LinkSdk.Aot { // note: similar, but simpler, than the original bug report (same exception) var cd = new ConcurrentDictionary (); } - + class SomeObject { public event EventHandler Event; - + public void RaiseEvent () { var fn = this.Event; @@ -89,21 +89,21 @@ namespace LinkSdk.Aot { fn (this, EventArgs.Empty); } } - + void OnEvent (object sender, EventArgs e) { } - + [Test] public void EventInfo_3682 () { var so = new SomeObject (); - + var e = so.GetType ().GetEvent ("Event"); if (e != null) e.AddEventHandler (so, new EventHandler (OnEvent)); } - + [Test] public void Workaround_3682 () { @@ -111,51 +111,51 @@ namespace LinkSdk.Aot { var e = so.GetType ().GetEvent ("Event"); if (e != null) { var add = e.GetAddMethod (); - add.Invoke (so, new object[] { new EventHandler(OnEvent) }); + add.Invoke (so, new object [] { new EventHandler (OnEvent) }); } } - + class Counseling { public int FK_PERSON; - + public Counseling (int i) { FK_PERSON = i; } } - + class PersonDetail { public int Id; - + public PersonDetail (int i) { - Id = i; + Id = i; } } - + class CounselingWithPerson { public Counseling Counseling { get; private set; } public PersonDetail PersonDetail { get; private set; } - + public CounselingWithPerson (Counseling c, PersonDetail p) { Counseling = c; PersonDetail = p; } } - + [Test] public void Linq_Join_3627 () { List c = new List () { - new Counseling (1) + new Counseling (1) }; List p = new List () { new PersonDetail (1) }; var query = (from wqual in c - join personTable in p on wqual.FK_PERSON equals personTable.Id - select new CounselingWithPerson (wqual, personTable)); + join personTable in p on wqual.FK_PERSON equals personTable.Id + select new CounselingWithPerson (wqual, personTable)); Assert.NotNull (query.ToList ()); // above throws ExecutionEngineException } @@ -163,17 +163,17 @@ namespace LinkSdk.Aot { public void Workaround_3627 () { List c = new List () { - new Counseling (1) + new Counseling (1) }; List p = new List () { new PersonDetail (1) }; var query = (from wqual in c - join personTable in p on wqual.FK_PERSON.ToString () equals personTable.Id.ToString () - select new CounselingWithPerson (wqual, personTable)); + join personTable in p on wqual.FK_PERSON.ToString () equals personTable.Id.ToString () + select new CounselingWithPerson (wqual, personTable)); Assert.NotNull (query.ToList ()); } - + public class Foo { public int Id { get; set; } public string Name { get; set; } @@ -182,10 +182,10 @@ namespace LinkSdk.Aot { [Test] public void Linq () { - var list = new List(); - list.Add (new Foo { Id = 3, Name="def"}); - list.Add (new Foo { Id = 2, Name="def"}); - list.Add (new Foo { Id = 1, Name="ggg"}); + var list = new List (); + list.Add (new Foo { Id = 3, Name = "def" }); + list.Add (new Foo { Id = 2, Name = "def" }); + list.Add (new Foo { Id = 1, Name = "ggg" }); var x = from l in list orderby l.Name, l.Id select l; Assert.That (x.Count (), Is.EqualTo (3), "Count"); // above throws ExecutionEngineException @@ -194,13 +194,13 @@ namespace LinkSdk.Aot { [Test] public void Linq_Workaround () { - var list = new List(); - list.Add (new Foo { Id = 3, Name="def"}); - list.Add (new Foo { Id = 2, Name="def"}); - list.Add (new Foo { Id = 1, Name="ggg"}); + var list = new List (); + list.Add (new Foo { Id = 3, Name = "def" }); + list.Add (new Foo { Id = 2, Name = "def" }); + list.Add (new Foo { Id = 1, Name = "ggg" }); var x = from l in list orderby l.Name, l.Id.ToString () descending select l; } - + [Test] public void SortDescending_3114 () { @@ -225,7 +225,7 @@ namespace LinkSdk.Aot { // Attempting to JIT compile method 'System.Linq.OrderedEnumerable`1:CreateOrderedEnumerable (System.Func`2,System.Collections.Generic.IComparer`1,bool)' while running with --aot-only. Assert.That (result.Count (), Is.EqualTo (2), "Count"); } - + [Test] public void Any_3735 () { @@ -237,7 +237,7 @@ namespace LinkSdk.Aot { // above throws ExecutionEngineException // Attempting to JIT compile method '(wrapper managed-to-managed) System.Environment/SpecialFolder[]:System.Collections.Generic.IEnumerable`1.GetEnumerator ()' while running with --aot-only. } - + [Test] public void Workaround_3735 () { @@ -248,7 +248,7 @@ namespace LinkSdk.Aot { }; Assert.True (list.Any (rounding => rounding == MidpointRounding.AwayFromZero)); } - + Task InnerTestB () { return Task.Factory.StartNew (() => default (T)).ContinueWith (t => true); @@ -259,40 +259,41 @@ namespace LinkSdk.Aot { { InnerTestB (); } - + // https://bugzilla.xamarin.com/show_bug.cgi?id=3902 - + class Question { public bool Deleted { get; set; } public bool IsAnswered { get; set; } public int Position { get; set; } public int SectionId { get; set; } } - + class Section { public int BoardId { get; set; } public int Id { get; set; } public int BulletinBoardId { get; set; } public int Position { get; set; } } - - List Table () where T : new () + + List Table () where T : new() { List list = new List (); - for (int i=0; i < 5; i++) + for (int i = 0; i < 5; i++) list.Add (new T ()); return list; } - + [Test] public void Linq_3902_c1 () { int boardId = 0; - var result = from q in Table () where q.Deleted == false - join s in Table
() on q.SectionId equals s.Id - where s.BoardId == boardId - orderby q.IsAnswered, s.Position, q.Position - select q; + var result = from q in Table () + where q.Deleted == false + join s in Table
() on q.SectionId equals s.Id + where s.BoardId == boardId + orderby q.IsAnswered, s.Position, q.Position + select q; // note: orderby causing: // Attempting to JIT compile method 'System.Linq.OrderedEnumerable`1<<>__AnonType0`2>:CreateOrderedEnumerable (System.Func`2<<>__AnonType0`2, int>,System.Collections.Generic.IComparer`1,bool)' while running with --aot-only. Assert.NotNull (result); @@ -302,22 +303,24 @@ namespace LinkSdk.Aot { public void Workaround_3902_c1 () { int boardId = 0; - var result = from q in Table () where q.Deleted == false - join s in Table
() on q.SectionId equals s.Id - where s.BoardId == boardId - orderby q.IsAnswered.ToString (), s.Position.ToString (), q.Position.ToString () - select q; + var result = from q in Table () + where q.Deleted == false + join s in Table
() on q.SectionId equals s.Id + where s.BoardId == boardId + orderby q.IsAnswered.ToString (), s.Position.ToString (), q.Position.ToString () + select q; Assert.NotNull (result); } - + [Test] public void Linq_3902_c4 () { int boardId = 0; - var results = from q in Table () where q.Deleted == false - join s in Table
() on q.SectionId equals s.Id - where s.BoardId == boardId - select q; + var results = from q in Table () + where q.Deleted == false + join s in Table
() on q.SectionId equals s.Id + where s.BoardId == boardId + select q; // query is ok foreach (var result in results) Assert.NotNull (result); @@ -327,14 +330,15 @@ namespace LinkSdk.Aot { public void Workaround_3902_c4 () { int boardId = 0; - var results = from q in Table () where q.Deleted == false - join s in Table
() on q.SectionId.ToString () equals s.Id.ToString () - where s.BoardId == boardId - select q; + var results = from q in Table () + where q.Deleted == false + join s in Table
() on q.SectionId.ToString () equals s.Id.ToString () + where s.BoardId == boardId + select q; foreach (var result in results) Assert.NotNull (result); } - + public class VirtualGeneric { public virtual ICollection MakeCollectionOfInputs (T input1, T input2, T input3) { @@ -345,7 +349,7 @@ namespace LinkSdk.Aot { return alist; } } - + [Test] public void Virtual_4114 () { @@ -363,7 +367,7 @@ namespace LinkSdk.Aot { return alist; } } - + [Test] public void Override_4114 () { @@ -371,15 +375,15 @@ namespace LinkSdk.Aot { // Attempting to JIT compile method 'MonoTouchFixtures.AotBugsTest/OverrideGeneric:MakeCollectionOfInputs (double,double,double)' while running with --aot-only. g.MakeCollectionOfInputs (1.0, 2.0, 3.0); } - + public sealed class NewDictionary { Dictionary _dictionary = new Dictionary (); - + public NewDictionary (IEnumerable> items) { ForEach (items, (item) => _dictionary.Add (item.Key, item.Value)); } - + static void ForEach (IEnumerable collection, Action action) { if (collection != null) @@ -394,14 +398,14 @@ namespace LinkSdk.Aot { // Attempting to JIT compile method 'MonoTouchFixtures.AotBugsTest/NewDictionary`2:ForEach> (System.Collections.Generic.IEnumerable`1>,System.Action`1>)' while running with --aot-only. new NewDictionary (null); } - + public class Enumbers { public IEnumerable> Enumerate (List> alist) { return MakeEnumerable (alist.ToArray ()); } - - IEnumerable> MakeEnumerable (KeyValuePair[] data) + + IEnumerable> MakeEnumerable (KeyValuePair [] data) { return data.AsEnumerable (); } @@ -417,16 +421,18 @@ namespace LinkSdk.Aot { static object mInstance = null; - [MethodImpl(MethodImplOptions.Synchronized)] - public static object getInstance() { + [MethodImpl (MethodImplOptions.Synchronized)] + public static object getInstance () + { if (mInstance == null) - mInstance = new object(); + mInstance = new object (); return mInstance; } // #9805 [Test] - public void Synchronized () { + public void Synchronized () + { getInstance (); } @@ -468,9 +474,9 @@ namespace LinkSdk.Aot { testAction.BeginInvoke ("Teszt", null, null); } - public static IEnumerable GetStringList() where T : struct, IConvertible + public static IEnumerable GetStringList () where T : struct, IConvertible { - return Enum.GetValues(typeof(T)).Cast().Select(x=>x.ToString()); + return Enum.GetValues (typeof (T)).Cast ().Select (x => x.ToString ()); } [Test] @@ -487,14 +493,13 @@ namespace LinkSdk.Aot { public void Bug12811b () { int n = 1; - foreach (var e in Enum.GetValues (typeof (NSFileManagerItemReplacementOptions)).Cast ().Select (x=>x.ToString ())) { + foreach (var e in Enum.GetValues (typeof (NSFileManagerItemReplacementOptions)).Cast ().Select (x => x.ToString ())) { Assert.NotNull (e, n.ToString ()); n++; } } - public enum MyEnum8ElementsInInt32 : int - { + public enum MyEnum8ElementsInInt32 : int { Zero = 0 , One = 1 , Two = 2 @@ -505,8 +510,7 @@ namespace LinkSdk.Aot { , Seven = 7 } - public enum MyEnum8ElementsInUInt32 : uint - { + public enum MyEnum8ElementsInUInt32 : uint { Zero = 0 , One = 1 , Two = 2 @@ -517,8 +521,7 @@ namespace LinkSdk.Aot { , Seven = 7 } - public enum MyEnum7ElementsInUInt16 : ushort - { + public enum MyEnum7ElementsInUInt16 : ushort { Zero = 0 , One = 1 , Two = 2 @@ -528,8 +531,7 @@ namespace LinkSdk.Aot { , Six = 6 } - public enum MyEnum8ElementsInUInt16 : ushort - { + public enum MyEnum8ElementsInUInt16 : ushort { Zero = 0 , One = 1 , Two = 2 @@ -598,8 +600,7 @@ namespace LinkSdk.Aot { // The first character of this class is a cyrillic c, not a latin c. [Preserve (AllMembers = true)] - public class сolor_bug_56876 - { + public class сolor_bug_56876 { [System.Runtime.InteropServices.DllImport ("/usr/lib/libobjc.dylib")] static extern void sel_registerName (сolor_bug_56876 сolor); } diff --git a/tests/linker/ios/link sdk/Bug1820Test.cs b/tests/linker/ios/link sdk/Bug1820Test.cs index 3a58be8bba..fc2ade4186 100644 --- a/tests/linker/ios/link sdk/Bug1820Test.cs +++ b/tests/linker/ios/link sdk/Bug1820Test.cs @@ -9,12 +9,12 @@ using ObjCRuntime; using NUnit.Framework; namespace LinkSdk.Serialization { - + [TestFixture] // we want the test to be availble if we use the linker [Preserve (AllMembers = true)] public partial class XmlSerializationTest { - + [Serializable] [XmlType (AnonymousType = true)] [XmlRoot (Namespace = "", IsNullable = false)] @@ -26,7 +26,7 @@ namespace LinkSdk.Serialization { { this.dataUpdatesField = new DataUpdates (); } - + [XmlElement (Order = 0)] public DataUpdates DataUpdates { get { return this.dataUpdatesField; } @@ -46,7 +46,7 @@ namespace LinkSdk.Serialization { StringReader stringReader = null; try { stringReader = new StringReader (xml); - return ((Response)(Serializer.Deserialize (XmlReader.Create (stringReader)))); + return ((Response) (Serializer.Deserialize (XmlReader.Create (stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose (); @@ -61,7 +61,7 @@ namespace LinkSdk.Serialization { public class DataUpdates { private List dataUpdateInfoField; private static XmlSerializer serializer; - + public DataUpdates () { this.dataUpdateInfoField = new List (); @@ -87,7 +87,7 @@ namespace LinkSdk.Serialization { StringReader stringReader = null; try { stringReader = new StringReader (xml); - return ((DataUpdates)(Serializer.Deserialize (XmlReader.Create (stringReader)))); + return ((DataUpdates) (Serializer.Deserialize (XmlReader.Create (stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose (); @@ -95,52 +95,52 @@ namespace LinkSdk.Serialization { } } } - + [Serializable] [XmlType (AnonymousType = true)] public class DataUpdatesDataUpdateInfo { - + private DateTime dataDateField; private string dataTypeField; private DateTime lastUpdatedDateField; private static XmlSerializer serializer; - + public DataUpdatesDataUpdateInfo () { } - + [XmlAttribute] public DateTime DataDate { get { return this.dataDateField; } set { this.dataDateField = value; } } - + [XmlAttribute] public string DataType { get { return this.dataTypeField; } set { this.dataTypeField = value; } } - + [XmlAttribute] public DateTime LastUpdatedDate { get { return this.lastUpdatedDateField; } set { this.lastUpdatedDateField = value; } } - + private static XmlSerializer Serializer { get { if ((serializer == null)) - serializer = new XmlSerializer (typeof(DataUpdatesDataUpdateInfo)); + serializer = new XmlSerializer (typeof (DataUpdatesDataUpdateInfo)); return serializer; } } - + public static DataUpdatesDataUpdateInfo Deserialize (string xml) { StringReader stringReader = null; try { stringReader = new StringReader (xml); - return ((DataUpdatesDataUpdateInfo)(Serializer.Deserialize (XmlReader.Create (stringReader)))); + return ((DataUpdatesDataUpdateInfo) (Serializer.Deserialize (XmlReader.Create (stringReader)))); } finally { if ((stringReader != null)) { stringReader.Dispose (); @@ -148,7 +148,7 @@ namespace LinkSdk.Serialization { } } } - + [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=1820 // note: this also test the linker (5.1+) ability not to remove 'unused' XML setters and .ctors used for serialization diff --git a/tests/linker/ios/link sdk/Bug2096Test.cs b/tests/linker/ios/link sdk/Bug2096Test.cs index b09447f2a1..1d5db7fa81 100644 --- a/tests/linker/ios/link sdk/Bug2096Test.cs +++ b/tests/linker/ios/link sdk/Bug2096Test.cs @@ -4,31 +4,31 @@ using ObjCRuntime; using NUnit.Framework; namespace LinkSdk.Aot { - + [TestFixture] // we want the test to be availble if we use the linker [Preserve (AllMembers = true)] public partial class AotBugsTest { - + public struct VT { public Action a; } - + public class D { } - + public class A { public void OuterMethod (TArg1 value) { this.InnerMethod (value, 0); } - + private void InnerMethod (TArg1 v1, TArg2 v2) { Console.WriteLine ("{0} {1}", v1, v2); } } - + [Test] public void Bug2096_Aot () { @@ -37,11 +37,11 @@ namespace LinkSdk.Aot { a.OuterMethod (1); a.OuterMethod (DateTime.Now); // works with 5.0.2 (5.1) - + var v = new VT (); a.OuterMethod (v); // works with 5.0.2 (5.1) - + var x = new D (); a.OuterMethod (x); #if !__MACOS__ diff --git a/tests/linker/ios/link sdk/CanaryTest.cs b/tests/linker/ios/link sdk/CanaryTest.cs index c7419ac83b..8a95242a03 100644 --- a/tests/linker/ios/link sdk/CanaryTest.cs +++ b/tests/linker/ios/link sdk/CanaryTest.cs @@ -23,7 +23,7 @@ namespace LinkSdk { sb.AppendLine ().Append ("* ").Append (m); Assert.Fail (sb.ToString ()); } - + [Test] public void Mscorlib () { diff --git a/tests/linker/ios/link sdk/CryptoTest.cs b/tests/linker/ios/link sdk/CryptoTest.cs index 0bf9200196..f5148a2c39 100644 --- a/tests/linker/ios/link sdk/CryptoTest.cs +++ b/tests/linker/ios/link sdk/CryptoTest.cs @@ -18,12 +18,12 @@ using NUnit.Framework; using MonoTests.System.Net.Http; namespace LinkSdk { - + [TestFixture] // we want the test to be availble if we use the linker [Preserve (AllMembers = true)] public class CryptoTest { - + [Test] public void AesCreate () { @@ -53,7 +53,8 @@ namespace LinkSdk { // untrusted, custom ICertificatePolicy and ServerCertificateValidationCallback without // having caching issues (in S.Net or the SSL handshake cache) try { - ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors errors) { + ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors errors) + { Assert.That (errors, Is.EqualTo (SslPolicyErrors.None), "certificateProblem"); X509Certificate2 c2 = new X509Certificate2 (cert.GetRawCertData ()); #if NET @@ -73,8 +74,7 @@ namespace LinkSdk { } catch (WebException we) { TestRuntime.IgnoreInCIIfBadNetwork (we); throw; - } - finally { + } finally { ServicePointManager.ServerCertificateValidationCallback = null; } } @@ -92,8 +92,9 @@ namespace LinkSdk { if (ip.AddressFamily != System.Net.Sockets.AddressFamily.InterNetwork) continue; - Assert.Throws (delegate { - wc.DownloadString ("https://" + ip.ToString ()); + Assert.Throws (delegate + { + wc.DownloadString ("https://" + ip.ToString ()); }, ip.ToString ()); return; // checking a single IP is enough to prove the point } @@ -115,7 +116,8 @@ namespace LinkSdk { var actual = ServicePointManager.SecurityProtocol; try { - ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors errors) { + ServicePointManager.ServerCertificateValidationCallback = delegate (object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors errors) + { Assert.That (errors, Is.EqualTo (SslPolicyErrors.None), "certificateProblem"); X509Certificate2 c2 = new X509Certificate2 (cert.GetRawCertData ()); #if NET @@ -130,15 +132,13 @@ namespace LinkSdk { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; WebClient wc = new WebClient (); Assert.IsNotNull (wc.DownloadString (NetworkResources.StatsUrl)); - } - catch (WebException we) { + } catch (WebException we) { // failing to get data does not mean the SSL/TLS session was not established if (sne_validation_callback == 0) { TestRuntime.IgnoreInCIIfBadNetwork (we); throw; } - } - finally { + } finally { ServicePointManager.ServerCertificateValidationCallback = null; ServicePointManager.SecurityProtocol = actual; // caching means it will be called at least for the first run, but it might not @@ -161,8 +161,8 @@ namespace LinkSdk { store.Close (); #endif - byte[] certData = new byte[] {0x30,0x82,0x02,0xFA,0x30,0x82,0x01,0xE2,0xA0,0x03,0x02,0x01,0x02,0x02,0x03,0x01,0x4F,0x55,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,0x05,0x00,0x30,0x2E,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x43,0x5A,0x31,0x0E,0x30,0x0C,0x06,0x03,0x55,0x04,0x0A,0x13,0x05,0x52,0x65,0x62,0x65,0x78,0x31,0x0F,0x30,0x0D,0x06,0x03,0x55,0x04,0x03,0x13,0x06,0x54,0x65,0x73,0x74,0x43,0x41,0x30,0x1E,0x17,0x0D,0x31,0x32,0x30,0x34,0x32,0x32,0x31,0x38,0x33,0x31,0x35,0x33,0x5A,0x17,0x0D,0x34,0x39,0x31,0x32,0x33,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5A,0x30,0x37,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x43,0x5A,0x31,0x0E,0x30,0x0C,0x06,0x03,0x55,0x04,0x0A,0x13,0x05,0x52,0x65,0x62,0x65,0x78,0x31,0x18,0x30,0x16,0x06,0x03,0x55,0x04,0x03,0x13,0x0F,0x77,0x69,0x6E,0x30,0x31,0x2E,0x64,0x30,0x35,0x2E,0x6C,0x6F,0x63,0x61,0x6C,0x30,0x81,0x9F,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x01,0x05,0x00,0x03,0x81,0x8D,0x00,0x30,0x81,0x89,0x02,0x81,0x81,0x00,0xF1,0x4F,0xAC,0x71,0x70,0x8F,0x8A,0xFE,0x38,0x67,0xA7,0x21,0x56,0x8B,0x34,0xBC,0xF5,0xCD,0x48,0x1C,0x69,0xEB,0x83,0x98,0x69,0x3D,0x33,0x2A,0x7B,0x04,0xB1,0x0A,0xA9,0x2C,0x17,0xDD,0x41,0xEC,0x21,0x91,0xB8,0x12,0x95,0xB0,0x4C,0x2A,0x53,0xBF,0x06,0x47,0x72,0xBB,0x68,0xCA,0x49,0x34,0x15,0x7B,0x78,0x4F,0x42,0x03,0xD9,0x58,0xEE,0x9D,0x72,0x61,0xAD,0xAD,0x0C,0x28,0x65,0x61,0x48,0xF8,0x68,0xB5,0x16,0x19,0xD0,0xDD,0x47,0x44,0x86,0xE3,0xA6,0x93,0x81,0xD5,0xA1,0x70,0x23,0x05,0x74,0x33,0xD1,0xD2,0x21,0x17,0x68,0xAF,0x5F,0x25,0xD5,0x8C,0x72,0xF6,0x28,0xF4,0x1F,0x42,0x24,0xCF,0x18,0x7B,0x5D,0xCE,0x29,0x43,0xF2,0x10,0xB6,0x73,0x65,0x4C,0x0A,0x17,0x02,0x03,0x01,0x00,0x01,0xA3,0x81,0x9B,0x30,0x81,0x98,0x30,0x0E,0x06,0x03,0x55,0x1D,0x0F,0x01,0x01,0xFF,0x04,0x04,0x03,0x02,0x05,0xA0,0x30,0x1D,0x06,0x03,0x55,0x1D,0x0E,0x04,0x16,0x04,0x14,0x14,0x00,0x58,0x48,0x55,0x6C,0x45,0xC6,0xCC,0x06,0x25,0x2D,0xD3,0xBA,0x0C,0x08,0x81,0x00,0x58,0xDF,0x30,0x13,0x06,0x03,0x55,0x1D,0x25,0x04,0x0C,0x30,0x0A,0x06,0x08,0x2B,0x06,0x01,0x05,0x05,0x07,0x03,0x01,0x30,0x1F,0x06,0x03,0x55,0x1D,0x23,0x04,0x18,0x30,0x16,0x80,0x14,0x3D,0x6F,0xDB,0x4B,0x4F,0x82,0xF1,0xD3,0x10,0xAF,0xF4,0x78,0xB3,0xB4,0xF6,0x3D,0x2B,0x2F,0x6A,0x97,0x30,0x31,0x06,0x03,0x55,0x1D,0x1F,0x04,0x2A,0x30,0x28,0x30,0x26,0xA0,0x24,0xA0,0x22,0x86,0x20,0x68,0x74,0x74,0x70,0x3A,0x2F,0x2F,0x74,0x65,0x73,0x74,0x2D,0x63,0x61,0x2E,0x6C,0x6F,0x63,0x61,0x6C,0x2F,0x74,0x65,0x73,0x74,0x2D,0x63,0x61,0x2E,0x63,0x72,0x6C,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,0x05,0x00,0x03,0x82,0x01,0x01,0x00,0x22,0x48,0xC3,0x95,0x3A,0x51,0x72,0x15,0x41,0x5B,0x47,0xC4,0xC5,0x4E,0x2E,0x97,0xAC,0x1D,0x0B,0xD1,0xA4,0x38,0xF2,0xFB,0x6E,0x33,0x9D,0xC8,0x93,0x4C,0x88,0x34,0xA3,0x68,0xC7,0xC6,0x42,0x51,0x54,0x31,0x72,0x72,0xEB,0xEE,0x5C,0xF0,0x7D,0xC9,0xC8,0xAE,0x24,0x9F,0xA0,0x1D,0x2E,0xEE,0x84,0x55,0xC3,0x3A,0xC4,0xCE,0xE1,0xB3,0xA2,0xD2,0x1F,0x44,0xC8,0x81,0x0F,0x9C,0xED,0x5B,0x17,0xBB,0x2C,0xDA,0x4A,0x9D,0xF7,0x7D,0x5A,0x08,0x6C,0xA3,0xF4,0xCB,0x55,0xE6,0x1A,0xAA,0xC7,0x14,0x16,0x7D,0x46,0xD0,0x7C,0x71,0xA8,0xA7,0xEA,0xBF,0xA6,0x92,0xD4,0xC5,0x7A,0xB8,0x45,0x3A,0x00,0xB3,0xDC,0x76,0x2E,0xEB,0xB9,0xF4,0x6B,0xDC,0xF2,0xC4,0x7C,0x0C,0xD5,0x1C,0x73,0xE8,0xE1,0xBB,0xC1,0x5C,0xCC,0xD9,0xBE,0xDE,0x61,0x4D,0xEF,0x2B,0x23,0xFA,0xA6,0xF6,0xED,0x4F,0x5F,0x2C,0xCA,0x68,0x29,0x59,0x27,0x82,0x41,0x5E,0xAD,0xC8,0x93,0xBF,0x83,0x01,0x8F,0x32,0xCB,0x79,0xEE,0x93,0x4C,0xCB,0x87,0x48,0x62,0x0D,0x44,0xD7,0x80,0x31,0x87,0x41,0x72,0x2D,0x12,0xA0,0x2C,0x99,0x89,0x08,0x5F,0xE9,0xFE,0x5E,0xB4,0xEC,0xCB,0x6C,0x23,0xC1,0xB8,0xE4,0xD6,0x1E,0x4B,0x9C,0x88,0x0A,0x63,0x65,0x78,0xC0,0x37,0xAC,0x54,0xCB,0xDE,0xA9,0x0F,0x59,0x43,0x1E,0x41,0xF5,0x32,0xAC,0x85,0x69,0xE9,0xBA,0xA6,0x78,0x87,0x88,0x8B,0x71,0xFB,0xE4,0x51,0xC0,0xF5,0xB7,0x4C,0x1F,0xCF,0x6A,0x1C,0xF6,0x1B,0x27,0x50,0xE9,0xAC,0xBF,0xB7,0x4E}; - + byte [] certData = new byte [] { 0x30, 0x82, 0x02, 0xFA, 0x30, 0x82, 0x01, 0xE2, 0xA0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x03, 0x01, 0x4F, 0x55, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30, 0x2E, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x5A, 0x31, 0x0E, 0x30, 0x0C, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x05, 0x52, 0x65, 0x62, 0x65, 0x78, 0x31, 0x0F, 0x30, 0x0D, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x1E, 0x17, 0x0D, 0x31, 0x32, 0x30, 0x34, 0x32, 0x32, 0x31, 0x38, 0x33, 0x31, 0x35, 0x33, 0x5A, 0x17, 0x0D, 0x34, 0x39, 0x31, 0x32, 0x33, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x5A, 0x30, 0x37, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x5A, 0x31, 0x0E, 0x30, 0x0C, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x05, 0x52, 0x65, 0x62, 0x65, 0x78, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x0F, 0x77, 0x69, 0x6E, 0x30, 0x31, 0x2E, 0x64, 0x30, 0x35, 0x2E, 0x6C, 0x6F, 0x63, 0x61, 0x6C, 0x30, 0x81, 0x9F, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8D, 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, 0xF1, 0x4F, 0xAC, 0x71, 0x70, 0x8F, 0x8A, 0xFE, 0x38, 0x67, 0xA7, 0x21, 0x56, 0x8B, 0x34, 0xBC, 0xF5, 0xCD, 0x48, 0x1C, 0x69, 0xEB, 0x83, 0x98, 0x69, 0x3D, 0x33, 0x2A, 0x7B, 0x04, 0xB1, 0x0A, 0xA9, 0x2C, 0x17, 0xDD, 0x41, 0xEC, 0x21, 0x91, 0xB8, 0x12, 0x95, 0xB0, 0x4C, 0x2A, 0x53, 0xBF, 0x06, 0x47, 0x72, 0xBB, 0x68, 0xCA, 0x49, 0x34, 0x15, 0x7B, 0x78, 0x4F, 0x42, 0x03, 0xD9, 0x58, 0xEE, 0x9D, 0x72, 0x61, 0xAD, 0xAD, 0x0C, 0x28, 0x65, 0x61, 0x48, 0xF8, 0x68, 0xB5, 0x16, 0x19, 0xD0, 0xDD, 0x47, 0x44, 0x86, 0xE3, 0xA6, 0x93, 0x81, 0xD5, 0xA1, 0x70, 0x23, 0x05, 0x74, 0x33, 0xD1, 0xD2, 0x21, 0x17, 0x68, 0xAF, 0x5F, 0x25, 0xD5, 0x8C, 0x72, 0xF6, 0x28, 0xF4, 0x1F, 0x42, 0x24, 0xCF, 0x18, 0x7B, 0x5D, 0xCE, 0x29, 0x43, 0xF2, 0x10, 0xB6, 0x73, 0x65, 0x4C, 0x0A, 0x17, 0x02, 0x03, 0x01, 0x00, 0x01, 0xA3, 0x81, 0x9B, 0x30, 0x81, 0x98, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x1D, 0x0F, 0x01, 0x01, 0xFF, 0x04, 0x04, 0x03, 0x02, 0x05, 0xA0, 0x30, 0x1D, 0x06, 0x03, 0x55, 0x1D, 0x0E, 0x04, 0x16, 0x04, 0x14, 0x14, 0x00, 0x58, 0x48, 0x55, 0x6C, 0x45, 0xC6, 0xCC, 0x06, 0x25, 0x2D, 0xD3, 0xBA, 0x0C, 0x08, 0x81, 0x00, 0x58, 0xDF, 0x30, 0x13, 0x06, 0x03, 0x55, 0x1D, 0x25, 0x04, 0x0C, 0x30, 0x0A, 0x06, 0x08, 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01, 0x30, 0x1F, 0x06, 0x03, 0x55, 0x1D, 0x23, 0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0x3D, 0x6F, 0xDB, 0x4B, 0x4F, 0x82, 0xF1, 0xD3, 0x10, 0xAF, 0xF4, 0x78, 0xB3, 0xB4, 0xF6, 0x3D, 0x2B, 0x2F, 0x6A, 0x97, 0x30, 0x31, 0x06, 0x03, 0x55, 0x1D, 0x1F, 0x04, 0x2A, 0x30, 0x28, 0x30, 0x26, 0xA0, 0x24, 0xA0, 0x22, 0x86, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3A, 0x2F, 0x2F, 0x74, 0x65, 0x73, 0x74, 0x2D, 0x63, 0x61, 0x2E, 0x6C, 0x6F, 0x63, 0x61, 0x6C, 0x2F, 0x74, 0x65, 0x73, 0x74, 0x2D, 0x63, 0x61, 0x2E, 0x63, 0x72, 0x6C, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x22, 0x48, 0xC3, 0x95, 0x3A, 0x51, 0x72, 0x15, 0x41, 0x5B, 0x47, 0xC4, 0xC5, 0x4E, 0x2E, 0x97, 0xAC, 0x1D, 0x0B, 0xD1, 0xA4, 0x38, 0xF2, 0xFB, 0x6E, 0x33, 0x9D, 0xC8, 0x93, 0x4C, 0x88, 0x34, 0xA3, 0x68, 0xC7, 0xC6, 0x42, 0x51, 0x54, 0x31, 0x72, 0x72, 0xEB, 0xEE, 0x5C, 0xF0, 0x7D, 0xC9, 0xC8, 0xAE, 0x24, 0x9F, 0xA0, 0x1D, 0x2E, 0xEE, 0x84, 0x55, 0xC3, 0x3A, 0xC4, 0xCE, 0xE1, 0xB3, 0xA2, 0xD2, 0x1F, 0x44, 0xC8, 0x81, 0x0F, 0x9C, 0xED, 0x5B, 0x17, 0xBB, 0x2C, 0xDA, 0x4A, 0x9D, 0xF7, 0x7D, 0x5A, 0x08, 0x6C, 0xA3, 0xF4, 0xCB, 0x55, 0xE6, 0x1A, 0xAA, 0xC7, 0x14, 0x16, 0x7D, 0x46, 0xD0, 0x7C, 0x71, 0xA8, 0xA7, 0xEA, 0xBF, 0xA6, 0x92, 0xD4, 0xC5, 0x7A, 0xB8, 0x45, 0x3A, 0x00, 0xB3, 0xDC, 0x76, 0x2E, 0xEB, 0xB9, 0xF4, 0x6B, 0xDC, 0xF2, 0xC4, 0x7C, 0x0C, 0xD5, 0x1C, 0x73, 0xE8, 0xE1, 0xBB, 0xC1, 0x5C, 0xCC, 0xD9, 0xBE, 0xDE, 0x61, 0x4D, 0xEF, 0x2B, 0x23, 0xFA, 0xA6, 0xF6, 0xED, 0x4F, 0x5F, 0x2C, 0xCA, 0x68, 0x29, 0x59, 0x27, 0x82, 0x41, 0x5E, 0xAD, 0xC8, 0x93, 0xBF, 0x83, 0x01, 0x8F, 0x32, 0xCB, 0x79, 0xEE, 0x93, 0x4C, 0xCB, 0x87, 0x48, 0x62, 0x0D, 0x44, 0xD7, 0x80, 0x31, 0x87, 0x41, 0x72, 0x2D, 0x12, 0xA0, 0x2C, 0x99, 0x89, 0x08, 0x5F, 0xE9, 0xFE, 0x5E, 0xB4, 0xEC, 0xCB, 0x6C, 0x23, 0xC1, 0xB8, 0xE4, 0xD6, 0x1E, 0x4B, 0x9C, 0x88, 0x0A, 0x63, 0x65, 0x78, 0xC0, 0x37, 0xAC, 0x54, 0xCB, 0xDE, 0xA9, 0x0F, 0x59, 0x43, 0x1E, 0x41, 0xF5, 0x32, 0xAC, 0x85, 0x69, 0xE9, 0xBA, 0xA6, 0x78, 0x87, 0x88, 0x8B, 0x71, 0xFB, 0xE4, 0x51, 0xC0, 0xF5, 0xB7, 0x4C, 0x1F, 0xCF, 0x6A, 0x1C, 0xF6, 0x1B, 0x27, 0x50, 0xE9, 0xAC, 0xBF, 0xB7, 0x4E }; + X509Certificate2 cert = new X509Certificate2 (certData); X509Chain chain = new X509Chain (false); @@ -183,58 +183,58 @@ namespace LinkSdk { Assert.AreEqual (0, chain.ChainStatus.Length, "NoCheck"); } - byte[] sha256_data = { - 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, - 0x54, 0x45, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x0D, 0x0A, 0x4D, 0x49, 0x49, 0x43, 0x78, 0x44, 0x43, 0x43, 0x41, 0x61, 0x79, - 0x67, 0x41, 0x77, 0x49, 0x42, 0x41, 0x67, 0x49, 0x44, 0x41, 0x4B, 0x37, 0x6C, 0x4D, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, - 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x43, 0x77, 0x55, 0x41, 0x4D, 0x43, 0x34, 0x78, 0x43, 0x7A, 0x41, - 0x4A, 0x42, 0x67, 0x4E, 0x56, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6B, 0x4E, 0x61, 0x0D, 0x0A, 0x4D, 0x51, 0x34, 0x77, 0x44, - 0x41, 0x59, 0x44, 0x56, 0x51, 0x51, 0x4B, 0x45, 0x77, 0x56, 0x53, 0x5A, 0x57, 0x4A, 0x6C, 0x65, 0x44, 0x45, 0x50, 0x4D, - 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x41, 0x78, 0x4D, 0x47, 0x56, 0x47, 0x56, 0x7A, 0x64, 0x45, 0x4E, 0x42, 0x4D, - 0x42, 0x34, 0x58, 0x44, 0x54, 0x45, 0x7A, 0x4D, 0x44, 0x55, 0x78, 0x4F, 0x54, 0x45, 0x79, 0x4E, 0x44, 0x63, 0x31, 0x0D, - 0x0A, 0x4E, 0x31, 0x6F, 0x58, 0x44, 0x54, 0x51, 0x35, 0x4D, 0x54, 0x49, 0x7A, 0x4D, 0x54, 0x41, 0x77, 0x4D, 0x44, 0x41, - 0x77, 0x4D, 0x46, 0x6F, 0x77, 0x4F, 0x6A, 0x45, 0x57, 0x4D, 0x42, 0x51, 0x47, 0x41, 0x31, 0x55, 0x45, 0x41, 0x78, 0x4D, - 0x4E, 0x55, 0x6D, 0x56, 0x69, 0x5A, 0x58, 0x67, 0x67, 0x55, 0x33, 0x56, 0x77, 0x63, 0x47, 0x39, 0x79, 0x64, 0x44, 0x45, - 0x67, 0x4D, 0x42, 0x34, 0x47, 0x0D, 0x0A, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x4A, 0x41, - 0x52, 0x59, 0x52, 0x63, 0x33, 0x56, 0x77, 0x63, 0x47, 0x39, 0x79, 0x64, 0x45, 0x42, 0x79, 0x5A, 0x57, 0x4A, 0x6C, 0x65, - 0x43, 0x35, 0x75, 0x5A, 0x58, 0x51, 0x77, 0x67, 0x5A, 0x38, 0x77, 0x44, 0x51, 0x59, 0x4A, 0x4B, 0x6F, 0x5A, 0x49, 0x68, - 0x76, 0x63, 0x4E, 0x41, 0x51, 0x45, 0x42, 0x42, 0x51, 0x41, 0x44, 0x0D, 0x0A, 0x67, 0x59, 0x30, 0x41, 0x4D, 0x49, 0x47, - 0x4A, 0x41, 0x6F, 0x47, 0x42, 0x41, 0x4B, 0x7A, 0x36, 0x49, 0x37, 0x49, 0x59, 0x4E, 0x4A, 0x4C, 0x44, 0x43, 0x36, 0x42, - 0x79, 0x44, 0x32, 0x75, 0x59, 0x36, 0x69, 0x55, 0x61, 0x34, 0x30, 0x54, 0x34, 0x37, 0x34, 0x44, 0x41, 0x65, 0x59, 0x55, - 0x49, 0x31, 0x37, 0x43, 0x79, 0x39, 0x55, 0x6B, 0x77, 0x62, 0x4E, 0x4D, 0x2B, 0x6B, 0x39, 0x62, 0x57, 0x0D, 0x0A, 0x68, - 0x75, 0x46, 0x62, 0x65, 0x63, 0x56, 0x42, 0x6D, 0x43, 0x37, 0x42, 0x79, 0x31, 0x6C, 0x48, 0x65, 0x2B, 0x79, 0x41, 0x59, - 0x59, 0x78, 0x78, 0x74, 0x47, 0x50, 0x7A, 0x41, 0x48, 0x58, 0x50, 0x76, 0x68, 0x4A, 0x4D, 0x56, 0x50, 0x41, 0x2F, 0x37, - 0x4C, 0x36, 0x41, 0x4B, 0x58, 0x6D, 0x6A, 0x71, 0x69, 0x77, 0x78, 0x7A, 0x47, 0x51, 0x79, 0x30, 0x73, 0x59, 0x67, 0x2F, - 0x6A, 0x36, 0x79, 0x0D, 0x0A, 0x6F, 0x58, 0x39, 0x36, 0x39, 0x52, 0x53, 0x30, 0x49, 0x58, 0x33, 0x75, 0x33, 0x64, 0x31, - 0x72, 0x35, 0x61, 0x6F, 0x44, 0x76, 0x36, 0x4A, 0x58, 0x53, 0x69, 0x53, 0x73, 0x75, 0x67, 0x78, 0x56, 0x47, 0x69, 0x65, - 0x54, 0x53, 0x2F, 0x50, 0x71, 0x55, 0x6E, 0x6E, 0x76, 0x72, 0x49, 0x74, 0x59, 0x78, 0x6F, 0x64, 0x4F, 0x31, 0x58, 0x79, - 0x76, 0x41, 0x67, 0x4D, 0x42, 0x41, 0x41, 0x47, 0x6A, 0x0D, 0x0A, 0x59, 0x7A, 0x42, 0x68, 0x4D, 0x41, 0x34, 0x47, 0x41, - 0x31, 0x55, 0x64, 0x44, 0x77, 0x45, 0x42, 0x2F, 0x77, 0x51, 0x45, 0x41, 0x77, 0x49, 0x45, 0x38, 0x44, 0x41, 0x64, 0x42, - 0x67, 0x4E, 0x56, 0x48, 0x51, 0x34, 0x45, 0x46, 0x67, 0x51, 0x55, 0x66, 0x75, 0x52, 0x51, 0x78, 0x4E, 0x75, 0x59, 0x71, - 0x77, 0x73, 0x38, 0x56, 0x48, 0x7A, 0x4A, 0x6D, 0x4A, 0x50, 0x6F, 0x39, 0x41, 0x45, 0x6F, 0x0D, 0x0A, 0x6F, 0x50, 0x77, - 0x77, 0x44, 0x77, 0x59, 0x44, 0x56, 0x52, 0x30, 0x6C, 0x42, 0x41, 0x67, 0x77, 0x42, 0x67, 0x59, 0x45, 0x56, 0x52, 0x30, - 0x6C, 0x41, 0x44, 0x41, 0x66, 0x42, 0x67, 0x4E, 0x56, 0x48, 0x53, 0x4D, 0x45, 0x47, 0x44, 0x41, 0x57, 0x67, 0x42, 0x51, - 0x39, 0x62, 0x39, 0x74, 0x4C, 0x54, 0x34, 0x4C, 0x78, 0x30, 0x78, 0x43, 0x76, 0x39, 0x48, 0x69, 0x7A, 0x74, 0x50, 0x59, - 0x39, 0x0D, 0x0A, 0x4B, 0x79, 0x39, 0x71, 0x6C, 0x7A, 0x41, 0x4E, 0x42, 0x67, 0x6B, 0x71, 0x68, 0x6B, 0x69, 0x47, 0x39, - 0x77, 0x30, 0x42, 0x41, 0x51, 0x73, 0x46, 0x41, 0x41, 0x4F, 0x43, 0x41, 0x51, 0x45, 0x41, 0x41, 0x59, 0x62, 0x69, 0x46, - 0x41, 0x6D, 0x33, 0x6E, 0x71, 0x61, 0x6F, 0x4A, 0x51, 0x45, 0x41, 0x6D, 0x37, 0x7A, 0x34, 0x33, 0x71, 0x6E, 0x71, 0x41, - 0x6B, 0x41, 0x6E, 0x35, 0x30, 0x76, 0x6F, 0x0D, 0x0A, 0x75, 0x4F, 0x39, 0x4E, 0x57, 0x61, 0x33, 0x53, 0x43, 0x45, 0x38, - 0x78, 0x6B, 0x4C, 0x55, 0x2B, 0x31, 0x50, 0x62, 0x67, 0x76, 0x6F, 0x48, 0x4E, 0x50, 0x54, 0x6A, 0x36, 0x4D, 0x51, 0x30, - 0x59, 0x37, 0x6F, 0x63, 0x2B, 0x6D, 0x42, 0x75, 0x55, 0x6B, 0x5A, 0x52, 0x63, 0x4B, 0x33, 0x51, 0x4C, 0x69, 0x58, 0x6C, - 0x62, 0x34, 0x66, 0x6E, 0x7A, 0x39, 0x59, 0x55, 0x36, 0x66, 0x69, 0x7A, 0x4A, 0x0D, 0x0A, 0x79, 0x6A, 0x33, 0x76, 0x33, - 0x42, 0x34, 0x6B, 0x4A, 0x33, 0x5A, 0x62, 0x42, 0x6D, 0x38, 0x48, 0x4E, 0x34, 0x78, 0x79, 0x44, 0x62, 0x66, 0x6E, 0x77, - 0x6C, 0x67, 0x42, 0x55, 0x65, 0x6F, 0x68, 0x78, 0x61, 0x36, 0x2B, 0x50, 0x78, 0x67, 0x2F, 0x37, 0x72, 0x39, 0x34, 0x78, - 0x54, 0x4A, 0x72, 0x35, 0x46, 0x30, 0x43, 0x68, 0x2F, 0x41, 0x68, 0x2F, 0x6D, 0x59, 0x37, 0x66, 0x4B, 0x6C, 0x50, 0x0D, - 0x0A, 0x46, 0x46, 0x35, 0x47, 0x68, 0x4A, 0x2B, 0x62, 0x34, 0x76, 0x55, 0x6F, 0x36, 0x47, 0x74, 0x6E, 0x79, 0x6F, 0x4F, - 0x33, 0x58, 0x57, 0x4C, 0x45, 0x34, 0x4D, 0x38, 0x4B, 0x67, 0x68, 0x6C, 0x39, 0x78, 0x48, 0x4E, 0x32, 0x52, 0x76, 0x57, - 0x47, 0x45, 0x39, 0x4B, 0x6F, 0x31, 0x4B, 0x31, 0x55, 0x62, 0x42, 0x62, 0x53, 0x4A, 0x51, 0x4D, 0x76, 0x66, 0x65, 0x49, - 0x65, 0x52, 0x38, 0x32, 0x71, 0x0D, 0x0A, 0x69, 0x66, 0x37, 0x49, 0x30, 0x56, 0x2B, 0x77, 0x59, 0x70, 0x57, 0x61, 0x4B, - 0x79, 0x5A, 0x68, 0x33, 0x6C, 0x50, 0x4C, 0x34, 0x33, 0x67, 0x35, 0x4C, 0x4F, 0x42, 0x34, 0x75, 0x51, 0x6C, 0x68, 0x76, - 0x76, 0x50, 0x4D, 0x5A, 0x63, 0x43, 0x48, 0x36, 0x4F, 0x37, 0x37, 0x37, 0x6E, 0x2F, 0x33, 0x4C, 0x2B, 0x54, 0x6C, 0x32, - 0x2F, 0x41, 0x56, 0x31, 0x73, 0x7A, 0x73, 0x67, 0x53, 0x6B, 0x54, 0x0D, 0x0A, 0x47, 0x79, 0x74, 0x54, 0x75, 0x4B, 0x6A, - 0x51, 0x35, 0x6E, 0x50, 0x53, 0x58, 0x76, 0x65, 0x44, 0x39, 0x76, 0x4B, 0x42, 0x50, 0x2F, 0x58, 0x4C, 0x73, 0x54, 0x4D, - 0x75, 0x69, 0x6A, 0x48, 0x4C, 0x43, 0x68, 0x57, 0x55, 0x69, 0x33, 0x74, 0x4B, 0x7A, 0x49, 0x48, 0x6F, 0x66, 0x4B, 0x6F, - 0x58, 0x62, 0x42, 0x43, 0x35, 0x37, 0x77, 0x3D, 0x3D, 0x0D, 0x0A, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x45, 0x4E, 0x44, 0x20, + byte [] sha256_data = { + 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, + 0x54, 0x45, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x0D, 0x0A, 0x4D, 0x49, 0x49, 0x43, 0x78, 0x44, 0x43, 0x43, 0x41, 0x61, 0x79, + 0x67, 0x41, 0x77, 0x49, 0x42, 0x41, 0x67, 0x49, 0x44, 0x41, 0x4B, 0x37, 0x6C, 0x4D, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, + 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x43, 0x77, 0x55, 0x41, 0x4D, 0x43, 0x34, 0x78, 0x43, 0x7A, 0x41, + 0x4A, 0x42, 0x67, 0x4E, 0x56, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6B, 0x4E, 0x61, 0x0D, 0x0A, 0x4D, 0x51, 0x34, 0x77, 0x44, + 0x41, 0x59, 0x44, 0x56, 0x51, 0x51, 0x4B, 0x45, 0x77, 0x56, 0x53, 0x5A, 0x57, 0x4A, 0x6C, 0x65, 0x44, 0x45, 0x50, 0x4D, + 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x41, 0x78, 0x4D, 0x47, 0x56, 0x47, 0x56, 0x7A, 0x64, 0x45, 0x4E, 0x42, 0x4D, + 0x42, 0x34, 0x58, 0x44, 0x54, 0x45, 0x7A, 0x4D, 0x44, 0x55, 0x78, 0x4F, 0x54, 0x45, 0x79, 0x4E, 0x44, 0x63, 0x31, 0x0D, + 0x0A, 0x4E, 0x31, 0x6F, 0x58, 0x44, 0x54, 0x51, 0x35, 0x4D, 0x54, 0x49, 0x7A, 0x4D, 0x54, 0x41, 0x77, 0x4D, 0x44, 0x41, + 0x77, 0x4D, 0x46, 0x6F, 0x77, 0x4F, 0x6A, 0x45, 0x57, 0x4D, 0x42, 0x51, 0x47, 0x41, 0x31, 0x55, 0x45, 0x41, 0x78, 0x4D, + 0x4E, 0x55, 0x6D, 0x56, 0x69, 0x5A, 0x58, 0x67, 0x67, 0x55, 0x33, 0x56, 0x77, 0x63, 0x47, 0x39, 0x79, 0x64, 0x44, 0x45, + 0x67, 0x4D, 0x42, 0x34, 0x47, 0x0D, 0x0A, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x4A, 0x41, + 0x52, 0x59, 0x52, 0x63, 0x33, 0x56, 0x77, 0x63, 0x47, 0x39, 0x79, 0x64, 0x45, 0x42, 0x79, 0x5A, 0x57, 0x4A, 0x6C, 0x65, + 0x43, 0x35, 0x75, 0x5A, 0x58, 0x51, 0x77, 0x67, 0x5A, 0x38, 0x77, 0x44, 0x51, 0x59, 0x4A, 0x4B, 0x6F, 0x5A, 0x49, 0x68, + 0x76, 0x63, 0x4E, 0x41, 0x51, 0x45, 0x42, 0x42, 0x51, 0x41, 0x44, 0x0D, 0x0A, 0x67, 0x59, 0x30, 0x41, 0x4D, 0x49, 0x47, + 0x4A, 0x41, 0x6F, 0x47, 0x42, 0x41, 0x4B, 0x7A, 0x36, 0x49, 0x37, 0x49, 0x59, 0x4E, 0x4A, 0x4C, 0x44, 0x43, 0x36, 0x42, + 0x79, 0x44, 0x32, 0x75, 0x59, 0x36, 0x69, 0x55, 0x61, 0x34, 0x30, 0x54, 0x34, 0x37, 0x34, 0x44, 0x41, 0x65, 0x59, 0x55, + 0x49, 0x31, 0x37, 0x43, 0x79, 0x39, 0x55, 0x6B, 0x77, 0x62, 0x4E, 0x4D, 0x2B, 0x6B, 0x39, 0x62, 0x57, 0x0D, 0x0A, 0x68, + 0x75, 0x46, 0x62, 0x65, 0x63, 0x56, 0x42, 0x6D, 0x43, 0x37, 0x42, 0x79, 0x31, 0x6C, 0x48, 0x65, 0x2B, 0x79, 0x41, 0x59, + 0x59, 0x78, 0x78, 0x74, 0x47, 0x50, 0x7A, 0x41, 0x48, 0x58, 0x50, 0x76, 0x68, 0x4A, 0x4D, 0x56, 0x50, 0x41, 0x2F, 0x37, + 0x4C, 0x36, 0x41, 0x4B, 0x58, 0x6D, 0x6A, 0x71, 0x69, 0x77, 0x78, 0x7A, 0x47, 0x51, 0x79, 0x30, 0x73, 0x59, 0x67, 0x2F, + 0x6A, 0x36, 0x79, 0x0D, 0x0A, 0x6F, 0x58, 0x39, 0x36, 0x39, 0x52, 0x53, 0x30, 0x49, 0x58, 0x33, 0x75, 0x33, 0x64, 0x31, + 0x72, 0x35, 0x61, 0x6F, 0x44, 0x76, 0x36, 0x4A, 0x58, 0x53, 0x69, 0x53, 0x73, 0x75, 0x67, 0x78, 0x56, 0x47, 0x69, 0x65, + 0x54, 0x53, 0x2F, 0x50, 0x71, 0x55, 0x6E, 0x6E, 0x76, 0x72, 0x49, 0x74, 0x59, 0x78, 0x6F, 0x64, 0x4F, 0x31, 0x58, 0x79, + 0x76, 0x41, 0x67, 0x4D, 0x42, 0x41, 0x41, 0x47, 0x6A, 0x0D, 0x0A, 0x59, 0x7A, 0x42, 0x68, 0x4D, 0x41, 0x34, 0x47, 0x41, + 0x31, 0x55, 0x64, 0x44, 0x77, 0x45, 0x42, 0x2F, 0x77, 0x51, 0x45, 0x41, 0x77, 0x49, 0x45, 0x38, 0x44, 0x41, 0x64, 0x42, + 0x67, 0x4E, 0x56, 0x48, 0x51, 0x34, 0x45, 0x46, 0x67, 0x51, 0x55, 0x66, 0x75, 0x52, 0x51, 0x78, 0x4E, 0x75, 0x59, 0x71, + 0x77, 0x73, 0x38, 0x56, 0x48, 0x7A, 0x4A, 0x6D, 0x4A, 0x50, 0x6F, 0x39, 0x41, 0x45, 0x6F, 0x0D, 0x0A, 0x6F, 0x50, 0x77, + 0x77, 0x44, 0x77, 0x59, 0x44, 0x56, 0x52, 0x30, 0x6C, 0x42, 0x41, 0x67, 0x77, 0x42, 0x67, 0x59, 0x45, 0x56, 0x52, 0x30, + 0x6C, 0x41, 0x44, 0x41, 0x66, 0x42, 0x67, 0x4E, 0x56, 0x48, 0x53, 0x4D, 0x45, 0x47, 0x44, 0x41, 0x57, 0x67, 0x42, 0x51, + 0x39, 0x62, 0x39, 0x74, 0x4C, 0x54, 0x34, 0x4C, 0x78, 0x30, 0x78, 0x43, 0x76, 0x39, 0x48, 0x69, 0x7A, 0x74, 0x50, 0x59, + 0x39, 0x0D, 0x0A, 0x4B, 0x79, 0x39, 0x71, 0x6C, 0x7A, 0x41, 0x4E, 0x42, 0x67, 0x6B, 0x71, 0x68, 0x6B, 0x69, 0x47, 0x39, + 0x77, 0x30, 0x42, 0x41, 0x51, 0x73, 0x46, 0x41, 0x41, 0x4F, 0x43, 0x41, 0x51, 0x45, 0x41, 0x41, 0x59, 0x62, 0x69, 0x46, + 0x41, 0x6D, 0x33, 0x6E, 0x71, 0x61, 0x6F, 0x4A, 0x51, 0x45, 0x41, 0x6D, 0x37, 0x7A, 0x34, 0x33, 0x71, 0x6E, 0x71, 0x41, + 0x6B, 0x41, 0x6E, 0x35, 0x30, 0x76, 0x6F, 0x0D, 0x0A, 0x75, 0x4F, 0x39, 0x4E, 0x57, 0x61, 0x33, 0x53, 0x43, 0x45, 0x38, + 0x78, 0x6B, 0x4C, 0x55, 0x2B, 0x31, 0x50, 0x62, 0x67, 0x76, 0x6F, 0x48, 0x4E, 0x50, 0x54, 0x6A, 0x36, 0x4D, 0x51, 0x30, + 0x59, 0x37, 0x6F, 0x63, 0x2B, 0x6D, 0x42, 0x75, 0x55, 0x6B, 0x5A, 0x52, 0x63, 0x4B, 0x33, 0x51, 0x4C, 0x69, 0x58, 0x6C, + 0x62, 0x34, 0x66, 0x6E, 0x7A, 0x39, 0x59, 0x55, 0x36, 0x66, 0x69, 0x7A, 0x4A, 0x0D, 0x0A, 0x79, 0x6A, 0x33, 0x76, 0x33, + 0x42, 0x34, 0x6B, 0x4A, 0x33, 0x5A, 0x62, 0x42, 0x6D, 0x38, 0x48, 0x4E, 0x34, 0x78, 0x79, 0x44, 0x62, 0x66, 0x6E, 0x77, + 0x6C, 0x67, 0x42, 0x55, 0x65, 0x6F, 0x68, 0x78, 0x61, 0x36, 0x2B, 0x50, 0x78, 0x67, 0x2F, 0x37, 0x72, 0x39, 0x34, 0x78, + 0x54, 0x4A, 0x72, 0x35, 0x46, 0x30, 0x43, 0x68, 0x2F, 0x41, 0x68, 0x2F, 0x6D, 0x59, 0x37, 0x66, 0x4B, 0x6C, 0x50, 0x0D, + 0x0A, 0x46, 0x46, 0x35, 0x47, 0x68, 0x4A, 0x2B, 0x62, 0x34, 0x76, 0x55, 0x6F, 0x36, 0x47, 0x74, 0x6E, 0x79, 0x6F, 0x4F, + 0x33, 0x58, 0x57, 0x4C, 0x45, 0x34, 0x4D, 0x38, 0x4B, 0x67, 0x68, 0x6C, 0x39, 0x78, 0x48, 0x4E, 0x32, 0x52, 0x76, 0x57, + 0x47, 0x45, 0x39, 0x4B, 0x6F, 0x31, 0x4B, 0x31, 0x55, 0x62, 0x42, 0x62, 0x53, 0x4A, 0x51, 0x4D, 0x76, 0x66, 0x65, 0x49, + 0x65, 0x52, 0x38, 0x32, 0x71, 0x0D, 0x0A, 0x69, 0x66, 0x37, 0x49, 0x30, 0x56, 0x2B, 0x77, 0x59, 0x70, 0x57, 0x61, 0x4B, + 0x79, 0x5A, 0x68, 0x33, 0x6C, 0x50, 0x4C, 0x34, 0x33, 0x67, 0x35, 0x4C, 0x4F, 0x42, 0x34, 0x75, 0x51, 0x6C, 0x68, 0x76, + 0x76, 0x50, 0x4D, 0x5A, 0x63, 0x43, 0x48, 0x36, 0x4F, 0x37, 0x37, 0x37, 0x6E, 0x2F, 0x33, 0x4C, 0x2B, 0x54, 0x6C, 0x32, + 0x2F, 0x41, 0x56, 0x31, 0x73, 0x7A, 0x73, 0x67, 0x53, 0x6B, 0x54, 0x0D, 0x0A, 0x47, 0x79, 0x74, 0x54, 0x75, 0x4B, 0x6A, + 0x51, 0x35, 0x6E, 0x50, 0x53, 0x58, 0x76, 0x65, 0x44, 0x39, 0x76, 0x4B, 0x42, 0x50, 0x2F, 0x58, 0x4C, 0x73, 0x54, 0x4D, + 0x75, 0x69, 0x6A, 0x48, 0x4C, 0x43, 0x68, 0x57, 0x55, 0x69, 0x33, 0x74, 0x4B, 0x7A, 0x49, 0x48, 0x6F, 0x66, 0x4B, 0x6F, + 0x58, 0x62, 0x42, 0x43, 0x35, 0x37, 0x77, 0x3D, 0x3D, 0x0D, 0x0A, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x45, 0x4E, 0x44, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x0D, 0x0A, }; diff --git a/tests/linker/ios/link sdk/DataContractTest.cs b/tests/linker/ios/link sdk/DataContractTest.cs index 9e3fe42d04..ff139009d5 100644 --- a/tests/linker/ios/link sdk/DataContractTest.cs +++ b/tests/linker/ios/link sdk/DataContractTest.cs @@ -6,9 +6,8 @@ using NUnit.Framework; namespace LinkSdk { - [DataContract(Namespace="XamarinBugExample")] - public enum MyEnum : short - { + [DataContract (Namespace = "XamarinBugExample")] + public enum MyEnum : short { [EnumMember] Foo = 0, [EnumMember] @@ -17,10 +16,9 @@ namespace LinkSdk { Baz = 2 } - [DataContract(Namespace="XamarinBugExample")] - public class MyClass - { - public MyClass() { } + [DataContract (Namespace = "XamarinBugExample")] + public class MyClass { + public MyClass () { } [DataMember] List MyList { get; set; } @@ -34,10 +32,10 @@ namespace LinkSdk { [Test] // http://forums.xamarin.com/discussion/7380/type-cast-error-in-xamarin-6-4-3-on-device-only#latest // could not be reproduced with 6.4.4 - public void DoCrash() + public void DoCrash () { - System.Collections.IList lst = new List(); - object value = Enum.Parse (typeof(MyEnum), "1"); + System.Collections.IList lst = new List (); + object value = Enum.Parse (typeof (MyEnum), "1"); lst.Add (value); // Exception here. List.cs throws ArgumentException. } } diff --git a/tests/linker/ios/link sdk/DllImportTest.cs b/tests/linker/ios/link sdk/DllImportTest.cs index f66b668be8..9bcc017af2 100644 --- a/tests/linker/ios/link sdk/DllImportTest.cs +++ b/tests/linker/ios/link sdk/DllImportTest.cs @@ -56,7 +56,7 @@ namespace LinkSdk { #else var hasNewSqlite = hasNewerSqlite || TestRuntime.CheckXcodeVersion (8, 0) && Runtime.Arch == Arch.DEVICE; #endif - + var new_symbols = new string [] { "sqlite3_key", "sqlite3_rekey", @@ -75,8 +75,7 @@ namespace LinkSdk { foreach (var symbol in newer_symbols) Assert.That (Dlfcn.dlsym (lib, symbol), hasNewerSqlite ? Is.Not.EqualTo (IntPtr.Zero) : Is.EqualTo (IntPtr.Zero), symbol); - } - finally { + } finally { Dlfcn.dlclose (lib); } } diff --git a/tests/linker/ios/link sdk/LinkExtraDefsTest.cs b/tests/linker/ios/link sdk/LinkExtraDefsTest.cs index 1889842ac6..7c61c8e88a 100644 --- a/tests/linker/ios/link sdk/LinkExtraDefsTest.cs +++ b/tests/linker/ios/link sdk/LinkExtraDefsTest.cs @@ -17,15 +17,15 @@ namespace LinkSdk { [TestFixture] [Preserve (AllMembers = true)] public class LinkExtraDefsTest { - + // ensure the types in extra-linker-defs.xml are included // even if they are: // * part of SDK / product assemblies, where adding [Preserve] is not possible; // * not used anywhere in this application - + // note: reflection is used so we're testing the XML-based preservation // not the normal linking process - + [Test] public void Corlib () { @@ -50,7 +50,7 @@ namespace LinkSdk { [Test] public void MonoTouch () { - Type t = Type.GetType ("CoreBluetooth.CBUUID, " + typeof(NSObject).Assembly.ToString ()); + Type t = Type.GetType ("CoreBluetooth.CBUUID, " + typeof (NSObject).Assembly.ToString ()); Assert.NotNull (t, "[MonoTouch.]CoreBluetooth.CBUUID"); // check (generated) fields since we instructed the linker to keep them var f = t.GetFields (BindingFlags.NonPublic | BindingFlags.Static); diff --git a/tests/linker/ios/link sdk/LinkSdkRegressionTest.cs b/tests/linker/ios/link sdk/LinkSdkRegressionTest.cs index 87a728aeaa..6b12d21460 100644 --- a/tests/linker/ios/link sdk/LinkSdkRegressionTest.cs +++ b/tests/linker/ios/link sdk/LinkSdkRegressionTest.cs @@ -76,7 +76,7 @@ namespace LinkSdk { // we want the test to be availble if we use the linker [Preserve (AllMembers = true)] public class LinkSdkRegressionTest { - + [Test] // https://github.com/xamarin/monotouch/commit/cbefbeaea2eda820dfc7214e976edc83a55df38e public void MonoAssembly_LinkedOut () @@ -84,7 +84,7 @@ namespace LinkSdk { Assembly a = Assembly.GetExecutingAssembly (); Assert.That (a.GetType ().Name, Is.EqualTo ("RuntimeAssembly"), "RuntimeAssembly"); } - + [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=205 // https://bugzilla.novell.com/show_bug.cgi?id=688414 @@ -95,7 +95,7 @@ namespace LinkSdk { ds.WriteObject (xw, new int [] { 1, 2, 3 }); // the above should not throw System.Runtime.Serialization.SerializationException } - + #if !NET // This test requires Mono.Data.SqliteConnection, which .NET 5+ doesn't have [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=233 @@ -103,12 +103,12 @@ namespace LinkSdk { { var c = new SqliteConnection ("Data Source=:memory:"); c.Open (); - c.Update += (sender, e) => {}; + c.Update += (sender, e) => { }; // the above should not crash c.Close (); } #endif - + [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=234 public void Bug234_Interlocked () @@ -118,7 +118,7 @@ namespace LinkSdk { // the above should not crash with System.ExecutionEngineException Assert.That (str, Is.EqualTo ("one"), "one"); } - + [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=300 // http://stackoverflow.com/questions/6517736/monotouch-crash-dictionary-firstordefault-type-initializer-predicateof @@ -136,12 +136,12 @@ namespace LinkSdk { public void Bug328_CompletionBlock () { CATransaction.Begin (); - CATransaction.CompletionBlock = delegate {}; + CATransaction.CompletionBlock = delegate { }; // the above should not crash with a MonoTouchException CATransaction.Commit (); } #endif // !__WATCHOS__ - + #if !__TVOS__ && !__WATCHOS__ [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=769 @@ -167,12 +167,12 @@ namespace LinkSdk { // the above should not throw an ArgumentNullException // and that's important because NSUrl.FromString and NSUrl.ctor(string) differs const string bad_tel = "tel://1800 023 009"; - Assert.Null (NSUrl.FromString (bad_tel), "bad url"); + Assert.Null (NSUrl.FromString (bad_tel), "bad url"); // we now throw if `init*` fails Assert.Throws (() => new NSUrl (bad_tel), "ctor, bad url"); } #endif // !__WATCHOS__ - + [Test] // issue indirectly found when trying: http://bugzilla.xamarin.com/show_bug.cgi?id=928 // similar to MonoAssembly_LinkedOut @@ -250,7 +250,7 @@ namespace LinkSdk { } } } - + #if !NET // This test requires System.ServiceModel.dll, which .NET 5+ doesn't have [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=1415 @@ -295,7 +295,7 @@ namespace LinkSdk { Assert.True (type, "Type"); } #endif // !NET - + #if !NET // This test requires System.ServiceModel.dll, which .NET 5+ doesn't have [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=1415 @@ -306,7 +306,7 @@ namespace LinkSdk { Type ed = typeof (System.ServiceModel.AuditLevel).Assembly.GetType ("System.ServiceModel.EndpointAddress10", false); // type is decorated with both [XmlSchemaProvider] and [XmlRoot] Assert.NotNull (ed, "EndpointAddress10"); - + #if !__WATCHOS__ // FIXME: this needs to use a different type than OpenTK.Quaternion, so that the test can run on WatchOS as wells var q = new OpenTK.Quaternion (); Assert.Null (q.GetType ().GetProperty ("XYZ"), "XmlIgnore"); @@ -351,27 +351,27 @@ namespace LinkSdk { Assert.NotNull (TimeZoneInfo.Local, "Local"); // should not throw a TimeZoneNotFoundException on devices } - + [Test] // http://bugzilla.xamarin.com/show_bug.cgi?id=1922 public void Bug1922_PLinq_Aot () { const int size = 100; Random random = new Random (); - int[] values = new int [size]; + int [] values = new int [size]; int currentNumber = 0; List numbers = new List (); while (currentNumber < 100) { values [currentNumber] = random.Next (1, 10); numbers.Add (currentNumber); - currentNumber ++; + currentNumber++; } - numbers.AsParallel ().ForAll (number => { + numbers.AsParallel ().ForAll (number => { Thread.Sleep (values [number]); //Console.WriteLine (number); }); } - + [Test] public void Bug2000_NSPersistentStoreCoordinator () { @@ -385,15 +385,15 @@ namespace LinkSdk { NSEntityDescription entity = new NSEntityDescription (); Assert.That (entity.Handle, Is.Not.EqualTo (IntPtr.Zero), "NSEntityDescription"); entity.Name = "TestEntity"; - entity.Properties = new NSPropertyDescription[1] { description }; - + entity.Properties = new NSPropertyDescription [1] { description }; + NSManagedObjectModel model = new NSManagedObjectModel (); Assert.That (model.Handle, Is.Not.EqualTo (IntPtr.Zero), "NSManagedObjectModel"); - model.Entities = new NSEntityDescription[1] { entity }; + model.Entities = new NSEntityDescription [1] { entity }; model.SetEntities (model.Entities, String.Empty); var sqlitePath = Path.Combine (NSFileManager.TemporaryDirectory, $"test-{System.Diagnostics.Process.GetCurrentProcess ().Id}.sqlite"); - NSUrl url = NSUrl.FromFilename (sqlitePath); + NSUrl url = NSUrl.FromFilename (sqlitePath); try { // from http://bugzilla.xamarin.com/show_bug.cgi?id=2000 @@ -409,16 +409,15 @@ namespace LinkSdk { File.Delete (sqlitePath); } } - + [Test] // http://lists.dot.net/pipermail/monotouch/2011-December/006976.html public void Linker_RuntimeWrappedException () { try { // can't throw anything else but Exception-derived types from C# - support.throw_object (); - } - catch (Exception e) { + support.throw_object (); + } catch (Exception e) { Assert.That (e.GetType ().Name, Is.EqualTo ("RuntimeWrappedException"), "RuntimeWrappedException"); } } @@ -434,7 +433,7 @@ namespace LinkSdk { c.Close (); } #endif - + [Test] public void AsQueryable_3028 () { @@ -472,7 +471,7 @@ namespace LinkSdk { } #endif // !NET #endif // !__WATCHOS__ && !__MACCATALYST__ - + [Test] public void XElement_3137 () { @@ -481,19 +480,18 @@ namespace LinkSdk { Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US"); var element1 = new System.Xml.Linq.XElement ("Property1", new System.Xml.Linq.XAttribute ("type", "number"), 1.2343445); Assert.That (element1.ToString (), Is.EqualTo ("1.2343445"), "en-US"); - + Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo ("de-DE"); // this was already working because the element was created with en-US Assert.That (element1.ToString (), Is.EqualTo ("1.2343445"), "de-DE/1"); // however creating a new, identical, element under de-DE return*ed* a different string var element2 = new System.Xml.Linq.XElement ("Property1", new System.Xml.Linq.XAttribute ("type", "number"), 1.2343445); Assert.That (element2.ToString (), Is.EqualTo ("1.2343445"), "de-DE/2"); - } - finally { + } finally { Thread.CurrentThread.CurrentCulture = current; } } - + #if !__TVOS__ && !__WATCHOS__ && !__MACOS__ [Test] public void Modal_3489 () @@ -503,112 +501,110 @@ namespace LinkSdk { using (UIViewController c = new UIViewController ()) { a.PresentModalViewController (b, true); b.PresentModalViewController (c, true); - + b.DismissModalViewController (true); a.DismissModalViewController (true); //error } } #endif // !__TVOS__ && !__WATCHOS__ - + [Test] public void Parse_3677 () { Assert.That (sbyte.Parse ("E3", NumberStyles.HexNumber), Is.EqualTo (-29), "SByte"); Assert.That (short.Parse ("E3E3", NumberStyles.HexNumber), Is.EqualTo (-7197), "Int16"); } - + public class DeviceHardware { public const string HardwareProperty = "hw.machine"; - + public enum HardwareVersion { - iPhone, - iPhone3G, - iPhone3GS, - iPhone4, - iPod1G, - iPod2G, - iPod3G, - iPod4G, - iPad, - iPhoneSimulator, - iPhone4Simulator, - iPadSimulator, - Unknown + iPhone, + iPhone3G, + iPhone3GS, + iPhone4, + iPod1G, + iPod2G, + iPod3G, + iPod4G, + iPad, + iPhoneSimulator, + iPhone4Simulator, + iPadSimulator, + Unknown } - - // Changing the constant to "/usr/bin/libSystem.dylib" allows this P/Invoke to work on Mac OS X - // Using "hw.model" as property gives Macintosh model, "hw.machine" kernel arch (ppc, ppc64, i386, x86_64) - [DllImport (Constants.libSystemLibrary)] - internal static extern int sysctlbyname ([MarshalAs(UnmanagedType.LPStr)] string property, // name of the property + + // Changing the constant to "/usr/bin/libSystem.dylib" allows this P/Invoke to work on Mac OS X + // Using "hw.model" as property gives Macintosh model, "hw.machine" kernel arch (ppc, ppc64, i386, x86_64) + [DllImport (Constants.libSystemLibrary)] + internal static extern int sysctlbyname ([MarshalAs (UnmanagedType.LPStr)] string property, // name of the property IntPtr output, // output IntPtr oldLen, // IntPtr.Zero IntPtr newp, // IntPtr.Zero uint newlen // 0 ); - + public static HardwareVersion Version { get { // get the length of the string that will be returned - var pLen = Marshal.AllocHGlobal(sizeof(int)); - sysctlbyname(DeviceHardware.HardwareProperty, IntPtr.Zero, pLen, IntPtr.Zero, 0); - - var length = Marshal.ReadInt32(pLen); - + var pLen = Marshal.AllocHGlobal (sizeof (int)); + sysctlbyname (DeviceHardware.HardwareProperty, IntPtr.Zero, pLen, IntPtr.Zero, 0); + + var length = Marshal.ReadInt32 (pLen); + // check to see if we got a length - if (length == 0) - { - Marshal.FreeHGlobal(pLen); + if (length == 0) { + Marshal.FreeHGlobal (pLen); return HardwareVersion.Unknown; } - + // get the hardware string - var pStr = Marshal.AllocHGlobal(length); - sysctlbyname(DeviceHardware.HardwareProperty, pStr, pLen, IntPtr.Zero, 0); - + var pStr = Marshal.AllocHGlobal (length); + sysctlbyname (DeviceHardware.HardwareProperty, pStr, pLen, IntPtr.Zero, 0); + // convert the native string into a C# string - var hardwareStr = Marshal.PtrToStringAnsi(pStr); + var hardwareStr = Marshal.PtrToStringAnsi (pStr); var ret = HardwareVersion.Unknown; - + // determine which hardware we are running if (hardwareStr == "iPhone1,1") - ret = HardwareVersion.iPhone; + ret = HardwareVersion.iPhone; else if (hardwareStr == "iPhone1,2") - ret = HardwareVersion.iPhone3G; + ret = HardwareVersion.iPhone3G; else if (hardwareStr == "iPhone2,1") - ret = HardwareVersion.iPhone3GS; + ret = HardwareVersion.iPhone3GS; else if (hardwareStr == "iPhone3,1") - ret = HardwareVersion.iPhone4; + ret = HardwareVersion.iPhone4; else if (hardwareStr == "iPad1,1") - ret = HardwareVersion.iPad; + ret = HardwareVersion.iPad; else if (hardwareStr == "iPod1,1") - ret = HardwareVersion.iPod1G; + ret = HardwareVersion.iPod1G; else if (hardwareStr == "iPod2,1") - ret = HardwareVersion.iPod2G; + ret = HardwareVersion.iPod2G; else if (hardwareStr == "iPod3,1") - ret = HardwareVersion.iPod3G; + ret = HardwareVersion.iPod3G; else if (hardwareStr == "iPod4,1") - ret = HardwareVersion.iPod3G; + ret = HardwareVersion.iPod3G; else if (hardwareStr == "i386" || hardwareStr == "x86_64") { #if __WATCHOS__ || __MACOS__ ret = HardwareVersion.Unknown; #else - if (UIDevice.CurrentDevice.Model.Contains("iPhone")) + if (UIDevice.CurrentDevice.Model.Contains ("iPhone")) ret = UIScreen.MainScreen.Bounds.Height * UIScreen.MainScreen.Scale == 960 || UIScreen.MainScreen.Bounds.Width * UIScreen.MainScreen.Scale == 960 ? HardwareVersion.iPhone4Simulator : HardwareVersion.iPhoneSimulator; else ret = HardwareVersion.iPadSimulator; #endif - } - else ret = HardwareVersion.Unknown; - + } else ret = HardwareVersion.Unknown; + // cleanup - Marshal.FreeHGlobal(pLen); - Marshal.FreeHGlobal(pStr); - + Marshal.FreeHGlobal (pLen); + Marshal.FreeHGlobal (pStr); + return ret; } } } - + [Test] // http://stackoverflow.com/questions/9685134/monotouch-fatal-crash-once-deployed // could not be duplicated on iPad2 (rolf), iPad1 (spouliot), iPodTouch4 (spouliot) @@ -617,8 +613,8 @@ namespace LinkSdk { Assert.NotNull (DeviceHardware.Version, "Hardware"); } - public class Location {} - + public class Location { } + private static Location mInstance = null; [MethodImpl (MethodImplOptions.Synchronized)] @@ -628,14 +624,14 @@ namespace LinkSdk { mInstance = new Location (); return mInstance; } - + [Test] public void Synchronized_3904 () { // crash with LLVM Assert.NotNull (getInstance (), "Location"); } - + #if !NET // https://github.com/xamarin/xamarin-macios/issues/11710 [Test] [Culture ("en")] @@ -650,7 +646,7 @@ namespace LinkSdk { Assert.AreNotEqual (f, (float) v, "non-equal"); } #endif // !NET - + [Test] [Culture ("en")] public void ConvertToDouble_4620 () @@ -658,13 +654,13 @@ namespace LinkSdk { // can't duplicate bug when using invarient culture Assert.That (Convert.ToDouble ("0.0"), Is.EqualTo (0.0d)); } - + [Test] public void NetworkInterface_4631 () { Assert.NotNull (NetworkInterface.GetAllNetworkInterfaces ()); } - + [Test] public void WebClient_SSL_Leak () { @@ -700,7 +696,7 @@ namespace LinkSdk { #endif } #endif // !__TVOS__ && !__WATCHOS__ - + [Test] // https://bugzilla.novell.com/show_bug.cgi?id=650402 #if __WATCHOS__ @@ -717,21 +713,21 @@ namespace LinkSdk { DataColumn pk = parent.Columns.Add ("PK"); DataTable child = new DataTable ("child"); DataColumn fk = child.Columns.Add ("FK"); - + data.Tables.Add (parent); data.Tables.Add (child); data.Relations.Add (pk, fk); - + parent.Rows.Add ("value"); child.Rows.Add ("value"); data.AcceptChanges (); - child.Rows[0].Delete (); - parent.Rows[0][0] = "value2"; - + child.Rows [0].Delete (); + parent.Rows [0] [0] = "value2"; + data.EnforceConstraints = false; data.EnforceConstraints = true; } - + [Test] public void Pointer_5200 () { @@ -754,7 +750,7 @@ namespace LinkSdk { { new AddedInSilverlight5 ().PropertyChanging += delegate { }; } - + [Test] public void MonoIOStat_6118 () { @@ -775,7 +771,7 @@ namespace LinkSdk { [Test] public void AttributeUsageAttribute_Persistance () { - Assert.IsFalse (Attribute.IsDefined (GetType (), typeof(SerializableAttribute))); + Assert.IsFalse (Attribute.IsDefined (GetType (), typeof (SerializableAttribute))); } #if !NET // This test requires System.Runtime.Remoting.dll, which .NET 5+ doesn't have @@ -789,7 +785,7 @@ namespace LinkSdk { [Test] public void ArrayClear_11184 () { - byte[] key = new byte [16]; + byte [] key = new byte [16]; for (int i = 0; i < key.Length; i++) key [i] = (byte) (255 - i); Array.Clear (key, 5, 11); @@ -875,11 +871,9 @@ namespace LinkSdk { try { File.WriteAllText (file, "mine"); Assert.False (readOnly, "!readOnly " + folder); - } - catch { + } catch { Assert.True (readOnly, "readOnly " + folder); - } - finally { + } finally { File.Delete (file); } return path; @@ -1089,7 +1083,7 @@ namespace LinkSdk { using (var tv = new UITextView ()) { Assert.Null (tv.WeakDelegate, "none"); // event on UITextView itself - tv.Ended += (object sender, EventArgs e) => {}; + tv.Ended += (object sender, EventArgs e) => { }; var t = tv.WeakDelegate.GetType (); Assert.That (t.Name, Is.EqualTo ("_UITextViewDelegate"), "textview"); @@ -1100,7 +1094,7 @@ namespace LinkSdk { Assert.NotNull (value, "value"); // and on the UIScrollView defined one - tv.Scrolled += (object sender, EventArgs e) => {}; + tv.Scrolled += (object sender, EventArgs e) => { }; // and the existing (initial field) is still set fi = t.GetField ("editingEnded", BindingFlags.NonPublic | BindingFlags.Instance); Assert.NotNull (fi, "editingEnded/scrollview"); @@ -1224,9 +1218,9 @@ namespace LinkSdk { [Test] public void Github5024 () { - TestRuntime.AssertXcodeVersion (6,0); + TestRuntime.AssertXcodeVersion (6, 0); using (var controller = new UISplitViewController ()) { - var sc = new UISearchController ((UIViewController)controller); + var sc = new UISearchController ((UIViewController) controller); sc.SetSearchResultsUpdater ((vc) => { }); var a = typeof (UISearchController).AssemblyQualifiedName; @@ -1262,7 +1256,7 @@ namespace LinkSdk { { // a reference to WKWebView will bring the internal NSProxy type var t = typeof (WKWebView); - Assert.NotNull (t, "avoid compiler optimization of unused variable"); + Assert.NotNull (t, "avoid compiler optimization of unused variable"); var fqn = typeof (NSObject).AssemblyQualifiedName.Replace ("Foundation.NSObject", "Foundation.NSProxy"); Assert.NotNull (GetTypeHelper (fqn), fqn); } diff --git a/tests/linker/ios/link sdk/OptimizeGeneratedCodeTest.cs b/tests/linker/ios/link sdk/OptimizeGeneratedCodeTest.cs index 003856d9a8..cbfc9d9d79 100644 --- a/tests/linker/ios/link sdk/OptimizeGeneratedCodeTest.cs +++ b/tests/linker/ios/link sdk/OptimizeGeneratedCodeTest.cs @@ -30,7 +30,8 @@ namespace Linker.Shared { public void Bug11452 () { var button = new UIButton (); - button.TouchCancel += delegate { + button.TouchCancel += delegate + { if (TestRuntime.IsSimulatorOrDesktop) { // kaboom } @@ -44,7 +45,8 @@ namespace Linker.Shared { public void Bug11452 () { var button = new UIButton (); - button.TouchCancel += delegate { + button.TouchCancel += delegate + { if (TestRuntime.IsSimulatorOrDesktop) { // kaboom } @@ -57,14 +59,14 @@ namespace Linker.Shared { // we want the test to be availble if we use the linker [Preserve (AllMembers = true)] public class OptimizeGeneratedCodeTest : BaseOptimizeGeneratedCodeTest { - + // tests related to IL re-writting inside OptimizeGeneratedCodeSubStep - + // note: the following tests don't really ensure the IL code is ok - // the best way to be sure if decompiling and reviewing the IL. OTOH // it's pretty likely to crash if the IL was badly rewritten so running // them makes me feel better ;-) - + #if !__TVOS__ && !__WATCHOS__ && !__MACCATALYST__ && !__MACOS__ [Test] public void IsNewRefcountEnabled () @@ -76,7 +78,7 @@ namespace Linker.Shared { class MyUIWebViewDelegate : UIWebViewDelegate { } - + [Test] public void MarkDirty () { @@ -100,7 +102,7 @@ namespace Linker.Shared { } } #endif // !__TVOS__ - + // this has 2 "if (Runtime.Arch == Arch.DEVICE)" conditions separated // by "if (IsDirectBinding)" so modifying IL is a bit more tricky - so // testing this, linked on both the simulator and on device is important @@ -190,8 +192,8 @@ namespace Linker.Shared { GetType ().GetMethod (nameof (Size4Test), BindingFlags.NonPublic | BindingFlags.Instance), GetType ().GetMethod (nameof (Size4Test_Optimizable), BindingFlags.NonPublic | BindingFlags.Instance) }; - MethodInfo[] passingMethods = null; - MethodInfo[] failingMethods = null; + MethodInfo [] passingMethods = null; + MethodInfo [] failingMethods = null; switch (IntPtr.Size) { case 4: Size4Test (); diff --git a/tests/linker/ios/link sdk/PclTest.cs b/tests/linker/ios/link sdk/PclTest.cs index cb5d0c8c7f..16e2f92a78 100644 --- a/tests/linker/ios/link sdk/PclTest.cs +++ b/tests/linker/ios/link sdk/PclTest.cs @@ -16,7 +16,7 @@ namespace LinkSdk { [TestFixture] [Preserve (AllMembers = true)] public class PclTest { - + [Test] public void Corlib () { @@ -32,37 +32,33 @@ namespace LinkSdk { #endif const string url = "http://www.google.com"; Uri uri = new Uri (url); - + Assert.False (this is ICommand, "ICommand"); - + HttpWebRequest hwr = WebRequest.CreateHttp (uri); try { Assert.True (hwr.SupportsCookieContainer, "SupportsCookieContainer"); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } - + WebResponse wr = hwr.GetResponse (); try { Assert.True (wr.SupportsHeaders, "SupportsHeaders"); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } wr.Dispose (); try { Assert.NotNull (WebRequest.CreateHttp (url)); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } try { Assert.NotNull (WebRequest.CreateHttp (uri)); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } } @@ -74,15 +70,13 @@ namespace LinkSdk { AddressHeaderCollection ahc = new AddressHeaderCollection (); try { ahc.FindAll ("name", "namespace"); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } - + try { FaultException.CreateFault (new TestFault (), String.Empty, Array.Empty ()); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } } @@ -103,31 +97,28 @@ namespace LinkSdk { { try { XmlConvert.VerifyPublicId (String.Empty); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } try { XmlConvert.VerifyWhitespace (String.Empty); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } try { XmlConvert.VerifyXmlChars (String.Empty); - } - catch (NotImplementedException) { + } catch (NotImplementedException) { // feature is not available, but the symbol itself is needed } - + var xr = XmlReader.Create (Stream.Null); xr.Dispose (); - + var xw = XmlWriter.Create (Stream.Null); xw.Dispose (); - + XmlReaderSettings xrs = new XmlReaderSettings (); xrs.DtdProcessing = DtdProcessing.Ignore; } diff --git a/tests/linker/ios/link sdk/TaskTest.cs b/tests/linker/ios/link sdk/TaskTest.cs index d789bcd651..9313e72881 100644 --- a/tests/linker/ios/link sdk/TaskTest.cs +++ b/tests/linker/ios/link sdk/TaskTest.cs @@ -12,16 +12,16 @@ namespace LinkSdk { [TestFixture] [Preserve (AllMembers = true)] public class TaskBugsTest { - + [Test] public void ContinueWithDifferentOptionsAreCanceledTest () { TaskScheduler.UnobservedTaskException += (obj, evt) => evt.SetObserved (); var mre = new ManualResetEventSlim (); var task = Task.Factory.StartNew (() => mre.Wait (200)); - var contFailed = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnFaulted); - var contCanceled = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnCanceled); - var contSuccess = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnRanToCompletion); + var contFailed = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnFaulted); + var contCanceled = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnCanceled); + var contSuccess = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnRanToCompletion); mre.Set (); contSuccess.Wait (100); @@ -40,12 +40,12 @@ namespace LinkSdk { TaskScheduler.UnobservedTaskException += (obj, evt) => evt.SetObserved (); var mre = new ManualResetEventSlim (); var task = Task.Factory.StartNew (() => mre.Wait (200)); - var contFailed = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnFaulted); - var contCanceled = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnCanceled); - var contSuccess = task.ContinueWith (t => {}, TaskContinuationOptions.OnlyOnRanToCompletion); + var contFailed = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnFaulted); + var contCanceled = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnCanceled); + var contSuccess = task.ContinueWith (t => { }, TaskContinuationOptions.OnlyOnRanToCompletion); bool ran = false; - var cont = Task.Factory.ContinueWhenAll (new Task[] { contFailed, contCanceled, contSuccess }, _ => ran = true); + var cont = Task.Factory.ContinueWhenAll (new Task [] { contFailed, contCanceled, contSuccess }, _ => ran = true); mre.Set (); cont.Wait (200); diff --git a/tests/linker/ios/trimmode copy/dotnet/shared.csproj b/tests/linker/ios/trimmode copy/dotnet/shared.csproj index e1607ab425..68c6f06d54 100644 --- a/tests/linker/ios/trimmode copy/dotnet/shared.csproj +++ b/tests/linker/ios/trimmode copy/dotnet/shared.csproj @@ -41,6 +41,12 @@ CommonDontLinkTest.cs + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/linker/ios/trimmode link/dotnet/shared.csproj b/tests/linker/ios/trimmode link/dotnet/shared.csproj index 42e5e03588..4c05aaf8ea 100644 --- a/tests/linker/ios/trimmode link/dotnet/shared.csproj +++ b/tests/linker/ios/trimmode link/dotnet/shared.csproj @@ -78,6 +78,12 @@ NetworkResources.cs + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/linker/mac/LinkAnyTest.cs b/tests/linker/mac/LinkAnyTest.cs index 360fbdc5b5..29610d1794 100644 --- a/tests/linker/mac/LinkAnyTest.cs +++ b/tests/linker/mac/LinkAnyTest.cs @@ -26,6 +26,15 @@ namespace LinkAnyTest { static bool requestError; static HttpStatusCode statusCode; + void TimedWait (Task task) + { + var rv = task.Wait (TimeSpan.FromMinutes (1)); + if (rv) + return; + + TestRuntime.IgnoreInCI ("This test times out randomly in CI due to bad network."); + Assert.Fail ("Test timed out"); + } // http://blogs.msdn.com/b/csharpfaq/archive/2012/06/26/understanding-a-simple-async-program.aspx // ref: https://bugzilla.xamarin.com/show_bug.cgi?id=7114 @@ -33,8 +42,8 @@ namespace LinkAnyTest { { // do not use GetStringAsync, we are going to miss useful data, such as the resul code using (var client = new HttpClient ()) { - HttpResponseMessage response = await client.GetAsync ("http://example.com"); - if(!response.IsSuccessStatusCode) { + HttpResponseMessage response = await client.GetAsync ("http://example.com"); + if (!response.IsSuccessStatusCode) { requestError = true; statusCode = response.StatusCode; } else { @@ -53,7 +62,7 @@ namespace LinkAnyTest { try { // we do not want the async code to get back to the AppKit thread, hanging the process SynchronizationContext.SetSynchronizationContext (null); - GetWebPageAsync ().Wait (); + TimedWait (GetWebPageAsync ()); if (requestError) { Assert.Inconclusive ($"Test cannot be trusted. Issues performing the request. Status code '{statusCode}'"); } else { @@ -64,7 +73,7 @@ namespace LinkAnyTest { } } - void WebClientTest (string[] urls) + void WebClientTest (string [] urls) { var exceptions = new List (); foreach (var url in urls) { @@ -115,7 +124,7 @@ namespace LinkAnyTest { data = await task; } - GetWebPage (url).Wait (); + TimedWait (GetWebPage (url)); Assert.That (data, Is.Not.Empty, "Downloaded content"); return; // one url succeeded, that's enough } catch (Exception e) { diff --git a/tests/linker/mac/dont link/dont link-mac.csproj b/tests/linker/mac/dont link/dont link-mac.csproj index 40c2d716b7..c003ff5c41 100644 --- a/tests/linker/mac/dont link/dont link-mac.csproj +++ b/tests/linker/mac/dont link/dont link-mac.csproj @@ -74,6 +74,9 @@ MacMain.cs + + TestRuntime.cs + TestRuntime.macos.cs diff --git a/tests/linker/mac/link all/LinkAllTest.cs b/tests/linker/mac/link all/LinkAllTest.cs index 89639f48e7..c03d1103a5 100644 --- a/tests/linker/mac/link all/LinkAllTest.cs +++ b/tests/linker/mac/link all/LinkAllTest.cs @@ -11,12 +11,10 @@ using ObjCRuntime; using NUnit.Framework; -namespace LinkAllTests -{ +namespace LinkAllTests { [TestFixture] [Preserve (AllMembers = true)] - public class LinkAllTest - { + public class LinkAllTest { static void Check (string calendarName, bool present) { diff --git a/tests/linker/mac/link all/OptimizeGeneratedCodeTest.cs b/tests/linker/mac/link all/OptimizeGeneratedCodeTest.cs index 9719cb930d..75c3fa6cae 100644 --- a/tests/linker/mac/link all/OptimizeGeneratedCodeTest.cs +++ b/tests/linker/mac/link all/OptimizeGeneratedCodeTest.cs @@ -4,11 +4,9 @@ using Foundation; using NUnit.Framework; -namespace Linker.Shared -{ +namespace Linker.Shared { [TestFixture] [Preserve (AllMembers = true)] - public class OptimizeGeneratedCodeTest : BaseOptimizeGeneratedCodeTest - { + public class OptimizeGeneratedCodeTest : BaseOptimizeGeneratedCodeTest { } } diff --git a/tests/linker/mac/link sdk/LinkSdkTest.cs b/tests/linker/mac/link sdk/LinkSdkTest.cs index c956db762c..92cef5b8c6 100644 --- a/tests/linker/mac/link sdk/LinkSdkTest.cs +++ b/tests/linker/mac/link sdk/LinkSdkTest.cs @@ -3,12 +3,10 @@ using Foundation; using NUnit.Framework; -namespace LinkSdkTests -{ +namespace LinkSdkTests { [TestFixture] [Preserve (AllMembers = true)] - public class LinkSdkTest - { + public class LinkSdkTest { static void Check (string calendarName, bool present) { var type = Type.GetType ("System.Globalization." + calendarName); diff --git a/tests/mac-binding-project/MobileBinding/ApiDefinition.cs b/tests/mac-binding-project/MobileBinding/ApiDefinition.cs index f28a6885e9..4f56559d99 100644 --- a/tests/mac-binding-project/MobileBinding/ApiDefinition.cs +++ b/tests/mac-binding-project/MobileBinding/ApiDefinition.cs @@ -2,10 +2,10 @@ using Foundation; #if !FRAMEWORK_TEST namespace Simple { - [BaseType (typeof (NSObject))] - interface SimpleClass { - [Export ("doIt")] - int DoIt (); - } + [BaseType (typeof (NSObject))] + interface SimpleClass { + [Export ("doIt")] + int DoIt (); + } } #endif diff --git a/tests/mac-binding-project/MobileBinding/StructsAndEnums.cs b/tests/mac-binding-project/MobileBinding/StructsAndEnums.cs index 86fc02df84..5c623f057d 100644 --- a/tests/mac-binding-project/MobileBinding/StructsAndEnums.cs +++ b/tests/mac-binding-project/MobileBinding/StructsAndEnums.cs @@ -1,6 +1,5 @@ using System; using ObjCRuntime; -namespace MobileBinding -{ +namespace MobileBinding { } diff --git a/tests/mac-binding-project/MobileTestApp/Main.cs b/tests/mac-binding-project/MobileTestApp/Main.cs index 65892c3322..b1bdc4bdf6 100644 --- a/tests/mac-binding-project/MobileTestApp/Main.cs +++ b/tests/mac-binding-project/MobileTestApp/Main.cs @@ -7,26 +7,24 @@ using AppKit; using Simple; #endif -namespace MobileTestApp -{ - static class MainClass - { +namespace MobileTestApp { + static class MainClass { // http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in - public static string GetCurrentExecutingDirectory() + public static string GetCurrentExecutingDirectory () { - string filePath = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath; - return Path.GetDirectoryName(filePath); + string filePath = new Uri (Assembly.GetExecutingAssembly ().CodeBase).LocalPath; + return Path.GetDirectoryName (filePath); } - static void Main (string[] args) + static void Main (string [] args) { -#pragma warning disable 0219 +#pragma warning disable 0219 var v = ObjCRuntime.Dlfcn.dlopen (GetCurrentExecutingDirectory () + "/SimpleClassDylib.dylib", 0); #pragma warning restore 0219 NSApplication.Init (); #if !FRAMEWORK_TEST SimpleClass c = new SimpleClass (); - Console.WriteLine (c.DoIt()); + Console.WriteLine (c.DoIt ()); #endif } } diff --git a/tests/mmp-regression/common/Test.cs b/tests/mmp-regression/common/Test.cs index 1af3561237..40dad7616a 100644 --- a/tests/mmp-regression/common/Test.cs +++ b/tests/mmp-regression/common/Test.cs @@ -8,9 +8,9 @@ using AppKit; using Foundation; namespace Xamarin.Mac.Linker.Test { - + public static class Test { - + static TextWriter log; public static TextWriter Log { @@ -26,7 +26,7 @@ namespace Xamarin.Mac.Linker.Test { return log; } } - + static string linker_removed_type = "CoreImage.CIColor, Xamarin.Mac"; public static void EnsureLinker (bool enabled) @@ -36,7 +36,7 @@ namespace Xamarin.Mac.Linker.Test { Log.WriteLine ("[FAIL]\tThe linker was {0}enabled on this build", enabled ? "not " : String.Empty); } } - + public static void Terminate () { Log.Flush (); diff --git a/tests/mmp-regression/custom-bundle-name/custom-bundle-name.cs b/tests/mmp-regression/custom-bundle-name/custom-bundle-name.cs index fc98688550..ce1ad989fb 100644 --- a/tests/mmp-regression/custom-bundle-name/custom-bundle-name.cs +++ b/tests/mmp-regression/custom-bundle-name/custom-bundle-name.cs @@ -7,9 +7,9 @@ using Foundation; namespace Xamarin.Mac.Linker.Test { - + class CustomBundleName { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/embedded-mono-profile/embedded-mono-profile.cs b/tests/mmp-regression/embedded-mono-profile/embedded-mono-profile.cs index 7574638d2f..cacaf946fc 100644 --- a/tests/mmp-regression/embedded-mono-profile/embedded-mono-profile.cs +++ b/tests/mmp-regression/embedded-mono-profile/embedded-mono-profile.cs @@ -8,9 +8,9 @@ using AppKit; using ObjCRuntime; namespace Xamarin.Mac.Linker.Test { - + class SystemMono { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/embedded-mono/embedded-mono.cs b/tests/mmp-regression/embedded-mono/embedded-mono.cs index 614d27cd7c..781da3b586 100644 --- a/tests/mmp-regression/embedded-mono/embedded-mono.cs +++ b/tests/mmp-regression/embedded-mono/embedded-mono.cs @@ -7,9 +7,9 @@ using AppKit; using ObjCRuntime; namespace Xamarin.Mac.Linker.Test { - + class SystemMono { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/link-frameworks-1/LinkFrameworks1.cs b/tests/mmp-regression/link-frameworks-1/LinkFrameworks1.cs index 5ad6a68d20..2acb5ec0b9 100644 --- a/tests/mmp-regression/link-frameworks-1/LinkFrameworks1.cs +++ b/tests/mmp-regression/link-frameworks-1/LinkFrameworks1.cs @@ -12,7 +12,7 @@ using Foundation; // * Link All must be enabled namespace Xamarin.Mac.Linker.Test { - + class Framework { static void TestFrameworks () { @@ -64,8 +64,8 @@ namespace Xamarin.Mac.Linker.Test { case "mk": // MapKit case "bc": // BusinessChat case "un": // UserNotifications - // This needs investigation, it should be possible to link at least some of these frameworks away. - // https://github.com/xamarin/xamarin-macios/issues/6542 + // This needs investigation, it should be possible to link at least some of these frameworks away. + // https://github.com/xamarin/xamarin-macios/issues/6542 continue; default: Test.Log.WriteLine ($"[FAIL] Unexpectedly found field NSObject.{field.Name} for framework '{framework}'."); @@ -74,7 +74,7 @@ namespace Xamarin.Mac.Linker.Test { } } - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/link-keep-resources-1/LinkKeepResources1.cs b/tests/mmp-regression/link-keep-resources-1/LinkKeepResources1.cs index 55c604cf63..1548ff27bf 100644 --- a/tests/mmp-regression/link-keep-resources-1/LinkKeepResources1.cs +++ b/tests/mmp-regression/link-keep-resources-1/LinkKeepResources1.cs @@ -17,10 +17,10 @@ using ObjCRuntime; // * Link SDK or Link All must be enabled namespace Xamarin.Mac.Linker.Test { - + class KeepResources1 { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/link-keep-resources-2/LinkKeepResources2.cs b/tests/mmp-regression/link-keep-resources-2/LinkKeepResources2.cs index c294e8fb3e..2fcc9a0172 100644 --- a/tests/mmp-regression/link-keep-resources-2/LinkKeepResources2.cs +++ b/tests/mmp-regression/link-keep-resources-2/LinkKeepResources2.cs @@ -16,10 +16,10 @@ using ObjCRuntime; // * Link SDK or Link All must be enabled namespace Xamarin.Mac.Linker.Test { - + class KeepResources2 { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmp-regression/link-posix-1/LinkPosix1.cs b/tests/mmp-regression/link-posix-1/LinkPosix1.cs index 2ec494ffaf..a3feeabad6 100644 --- a/tests/mmp-regression/link-posix-1/LinkPosix1.cs +++ b/tests/mmp-regression/link-posix-1/LinkPosix1.cs @@ -17,23 +17,22 @@ using ObjCRuntime; // * Link SDK or Link All must be enabled namespace Xamarin.Mac.Linker.Test { - + class Posix1 { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); - + Test.EnsureLinker (true); - + bool gzip = false; try { GZipStream gz = new GZipStream (Stream.Null, CompressionMode.Compress); gz.WriteByte (0); gz.Close (); gzip = true; - } - catch { + } catch { } Test.Log.WriteLine ("{0}\t{1}", gzip ? "[PASS]" : "[FAIL]", "GZipStream support"); diff --git a/tests/mmp-regression/link-preserve-assembly/LinkPreserveAssembly.cs b/tests/mmp-regression/link-preserve-assembly/LinkPreserveAssembly.cs index 9a0f2e18fc..b753dc43ce 100644 --- a/tests/mmp-regression/link-preserve-assembly/LinkPreserveAssembly.cs +++ b/tests/mmp-regression/link-preserve-assembly/LinkPreserveAssembly.cs @@ -16,7 +16,7 @@ using ObjCRuntime; [assembly: Preserve] namespace Xamarin.Mac.Linker.Test { - + class PreserveAssembly { static int UnusedProperty { @@ -27,10 +27,10 @@ namespace Xamarin.Mac.Linker.Test { { } - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); - + Test.EnsureLinker (true); int pcount = typeof (PreserveAssembly).GetProperties (BindingFlags.NonPublic | BindingFlags.Static).Length; diff --git a/tests/mmp-regression/link-remove-attributes-1/LinkRemoveAttributes.cs b/tests/mmp-regression/link-remove-attributes-1/LinkRemoveAttributes.cs index 292d53033a..c650050bd5 100644 --- a/tests/mmp-regression/link-remove-attributes-1/LinkRemoveAttributes.cs +++ b/tests/mmp-regression/link-remove-attributes-1/LinkRemoveAttributes.cs @@ -25,13 +25,13 @@ using AppKit; namespace Xamarin.Mac.Linker.Test { -// [System.MonoDocumentationNote] -// [System.MonoExtension] -// [System.MonoLimitation] -// [System.MonoNotSupported] -// [System.MonoTODO] + // [System.MonoDocumentationNote] + // [System.MonoExtension] + // [System.MonoLimitation] + // [System.MonoNotSupported] + // [System.MonoTODO] [System.Obsolete] -// [System.Xml.MonoFIX] + // [System.Xml.MonoFIX] [ObjCRuntime.Availability] [ObjCRuntime.Deprecated (ObjCRuntime.PlatformName.MacOSX)] @@ -79,7 +79,7 @@ namespace Xamarin.Mac.Linker.Test { const bool debug = false; #endif - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); @@ -109,11 +109,10 @@ namespace Xamarin.Mac.Linker.Test { CheckPresence (method, "System.Diagnostics.DebuggerStepThroughAttribute", debug); CheckPresence (method, "System.LoaderOptimizationAttribute", true); - var field = type.GetField ("document", BindingFlags.Instance| BindingFlags.NonPublic); + var field = type.GetField ("document", BindingFlags.Instance | BindingFlags.NonPublic); CheckPresence (field, "Foundation.PreserveAttribute", false); CheckPresence (field, "System.Diagnostics.DebuggerBrowsableAttribute", debug); - } - finally { + } finally { Test.Terminate (); } } diff --git a/tests/mmp-regression/link-safe-1/LinkSafeAssembly.cs b/tests/mmp-regression/link-safe-1/LinkSafeAssembly.cs index 2495ea2a2b..c40422ac45 100644 --- a/tests/mmp-regression/link-safe-1/LinkSafeAssembly.cs +++ b/tests/mmp-regression/link-safe-1/LinkSafeAssembly.cs @@ -16,7 +16,7 @@ using ObjCRuntime; [assembly: LinkerSafe] namespace Xamarin.Mac.Linker.Test { - + class SafeToLinkAssembly { static int UnusedProperty { @@ -27,12 +27,12 @@ namespace Xamarin.Mac.Linker.Test { { } - static Type type_stla = typeof(SafeToLinkAssembly); + static Type type_stla = typeof (SafeToLinkAssembly); - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); - + Test.EnsureLinker (true); int pcount = type_stla.GetProperties (BindingFlags.NonPublic | BindingFlags.Static).Length; diff --git a/tests/mmp-regression/system-mono-profile/system-mono-profile.cs b/tests/mmp-regression/system-mono-profile/system-mono-profile.cs index 46145cb930..043660d0da 100644 --- a/tests/mmp-regression/system-mono-profile/system-mono-profile.cs +++ b/tests/mmp-regression/system-mono-profile/system-mono-profile.cs @@ -9,9 +9,9 @@ using AppKit; using ObjCRuntime; namespace Xamarin.Mac.Linker.Test { - + class SystemMono { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); @@ -20,7 +20,7 @@ namespace Xamarin.Mac.Linker.Test { } else { Test.Log.WriteLine ("FAIL: could not find 'output.mlpd'"); } - + Test.Terminate (); } } diff --git a/tests/mmp-regression/system-mono/system-mono.cs b/tests/mmp-regression/system-mono/system-mono.cs index a191991966..471b18adf3 100644 --- a/tests/mmp-regression/system-mono/system-mono.cs +++ b/tests/mmp-regression/system-mono/system-mono.cs @@ -8,9 +8,9 @@ using AppKit; using ObjCRuntime; namespace Xamarin.Mac.Linker.Test { - + class SystemMono { - static void Main (string[] args) + static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/mmptest/src/AOTTests.cs b/tests/mmptest/src/AOTTests.cs index f6e231f510..9cff6bf8c9 100644 --- a/tests/mmptest/src/AOTTests.cs +++ b/tests/mmptest/src/AOTTests.cs @@ -9,13 +9,11 @@ using System.Reflection; using Xamarin.Tests; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class AOTTests - { + public class AOTTests { void ValidateAOTStatus (string tmpDir, Func shouldAOT) - { + { foreach (var file in GetOutputDirInfo (tmpDir).EnumerateFiles ()) { bool shouldBeAOT = shouldAOT (file); Assert.AreEqual (shouldBeAOT, File.Exists (file.FullName + ".dylib"), "{0} should {1}be AOT.", file.FullName, shouldBeAOT ? "" : "not "); @@ -54,7 +52,8 @@ namespace Xamarin.MMP.Tests [TestCase (false)] [TestCase (true)] - public void AOT_SmokeTest (bool useProjectTags) { + public void AOT_SmokeTest (bool useProjectTags) + { MMPTests.RunMMPTest (tmpDir => { TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = GetTestConfig (TestType.Base, useProjectTags) diff --git a/tests/mmptest/src/AssemblyReferencesTests.cs b/tests/mmptest/src/AssemblyReferencesTests.cs index f6f7a45522..16f091869b 100644 --- a/tests/mmptest/src/AssemblyReferencesTests.cs +++ b/tests/mmptest/src/AssemblyReferencesTests.cs @@ -4,11 +4,9 @@ using System.Linq; using System.Text; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class AssemblyReferencesTests - { + public class AssemblyReferencesTests { [Test] public void ShouldNotAllowReference_ToSystemDrawing () { @@ -34,7 +32,7 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { References = " ", TestCode = "var matrix = new OpenTK.Matrix2 ();", - XM45 = full + XM45 = full }; TI.TestUnifiedExecutable (test); }); diff --git a/tests/mmptest/src/BindingProjectNoEmbeddingTests.cs b/tests/mmptest/src/BindingProjectNoEmbeddingTests.cs index 2196e901b8..92ae02959c 100644 --- a/tests/mmptest/src/BindingProjectNoEmbeddingTests.cs +++ b/tests/mmptest/src/BindingProjectNoEmbeddingTests.cs @@ -6,10 +6,8 @@ using System.Text; using NUnit.Framework; using Xamarin.Utils; -namespace Xamarin.MMP.Tests -{ - public class BindingProjectNoEmbeddingTests - { +namespace Xamarin.MMP.Tests { + public class BindingProjectNoEmbeddingTests { static void Touch (string projectPath) => File.SetLastWriteTimeUtc (projectPath, DateTime.UtcNow); static void AssertNoResourceWithName (string tmpDir, string projectName, string resourceName) @@ -120,9 +118,9 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig library = new TI.UnifiedTestConfig (tmpDir) { ProjectName = "UnifiedLibrary" }; library.TestCode = "public class MyClass { public static void Go () { var c = new ExampleBinding.SimpleClass (); c.DoIt (); } }"; - if (useProjectReference) + if (useProjectReference) library.References = $@""; - else + else library.References = $@"{Path.Combine (tmpDir, "bin/Debug", "MobileBinding.dll")}"; TI.GenerateUnifiedLibraryProject (library); @@ -131,9 +129,9 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig project = new TI.UnifiedTestConfig (tmpDir) { ProjectName = "UnifiedExample.csproj" }; project.TestCode = "MyClass.Go ();"; - if (useProjectReference) + if (useProjectReference) project.References = $@""; - else + else project.References = $@"{Path.Combine (tmpDir, "bin/Debug", "UnifiedLibrary.dll")}"; TI.GenerateUnifiedExecutableProject (project); @@ -147,7 +145,7 @@ namespace Xamarin.MMP.Tests MMPTests.RunMMPTest (tmpDir => { var projects = BindingProjectTests.GenerateTestProject (BindingProjectType.Modern, tmpDir); BindingProjectTests.SetNoEmbedding (projects.Item1); - + BindingProjectTests.SetupAndBuildBindingProject (projects.Item1, true); TI.CleanUnifiedProject (Path.Combine (tmpDir, projects.Item1.ProjectName)); diff --git a/tests/mmptest/src/BindingProjectTests.cs b/tests/mmptest/src/BindingProjectTests.cs index 48892fe305..7440846eb9 100644 --- a/tests/mmptest/src/BindingProjectTests.cs +++ b/tests/mmptest/src/BindingProjectTests.cs @@ -6,11 +6,9 @@ using System.Text; using NUnit.Framework; using Xamarin.Utils; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { // There are a mess of different binding project configurations in the wild - public enum BindingProjectType - { + public enum BindingProjectType { Modern, // The ideal Modern - Sets TargetFrameworkVersion and TargetFrameworkIdentifier correclty ModernNoTag, // Sets neither TargetFrameworkVersion nor TargetFrameworkIdentifier Full, // Sets both TargetFrameworkVersion and UseXamMacFullFramework @@ -18,8 +16,7 @@ namespace Xamarin.MMP.Tests FullXamMacTag, // Sets just UseXamMacFullFramework } - public class BindingProjectTests - { + public class BindingProjectTests { internal static string RemoveCSProj (string s) => s.Remove (s.IndexOf (".csproj", StringComparison.InvariantCulture)); internal static (BuildResult BindingBuildResult, OutputText AppTestResult) SetupAndBuildLinkedTestProjects (TI.UnifiedTestConfig binding, TI.UnifiedTestConfig project, string tmpDir, bool useProjectReference, bool setupDefaultNativeReference) @@ -52,7 +49,7 @@ namespace Xamarin.MMP.Tests return TI.BuildProject (projectPath, shouldFail: shouldFail); } - internal static Tuple GenerateTestProject (BindingProjectType type, string tmpDir) + internal static Tuple GenerateTestProject (BindingProjectType type, string tmpDir) { TI.UnifiedTestConfig binding = new TI.UnifiedTestConfig (tmpDir); TI.UnifiedTestConfig project = new TI.UnifiedTestConfig (tmpDir); @@ -79,10 +76,10 @@ namespace Xamarin.MMP.Tests case BindingProjectType.FullXamMacTag: binding.ProjectName = "XM45Binding.csproj"; binding.CustomProjectReplacement = new Tuple ( - "v4.5", + "v4.5", "true"); project.XM45 = true; - break; + break; default: throw new NotImplementedException (); } @@ -131,7 +128,7 @@ namespace Xamarin.MMP.Tests var logs = SetupAndBuildLinkedTestProjects (projects.Item1, projects.Item2, tmpDir, useProjectReference: false, setupDefaultNativeReference: noEmbedding); - Assert.True (logs.BindingBuildResult.BuildOutput.Contains ("csc"), "Bindings project must use csc:\n" + logs.Item1); + Assert.True (logs.BindingBuildResult.BuildOutput.Contains ("csc"), "Bindings project must use csc:\n" + logs.Item1); var bgenInvocation = logs.BindingBuildResult.BuildOutputLines.First (x => x.Contains ("bin/bgen")); Assert.IsTrue (StringUtils.TryParseArguments (bgenInvocation, out var bgenArguments, out var _), "Parse bgen arguments"); @@ -172,7 +169,7 @@ namespace Xamarin.MMP.Tests Assert.True (File.Exists (libPath)); string results = TI.RunAndAssert ("/Library/Frameworks/Mono.framework/Commands/monop", new [] { "--refs", "-r:" + libPath }, "monop"); - string mscorlibLine = results.Split (new char[] { '\n' }).First (x => x.Contains ("mscorlib")); + string mscorlibLine = results.Split (new char [] { '\n' }).First (x => x.Contains ("mscorlib")); string expectedVersion = GetExpectedBCLVersion (type); Assert.True (mscorlibLine.Contains (expectedVersion), $"{mscorlibLine} did not contain expected version {expectedVersion}"); diff --git a/tests/mmptest/src/CodeStrippingTests.cs b/tests/mmptest/src/CodeStrippingTests.cs index e070e1241a..b7f4c907a2 100644 --- a/tests/mmptest/src/CodeStrippingTests.cs +++ b/tests/mmptest/src/CodeStrippingTests.cs @@ -6,10 +6,8 @@ using NUnit.Framework; using Xamarin.Utils; using Xamarin.Tests; -namespace Xamarin.MMP.Tests -{ - public class CodeStrippingTests - { +namespace Xamarin.MMP.Tests { + public class CodeStrippingTests { static Func LipoStripConditional = s => s.Contains ("lipo") && s.Contains ("-extract_family"); static Func LipoStripSkipPosixAndMonoNativeConditional = s => LipoStripConditional (s) && !s.Contains ("libMonoPosixHelper.dylib") && !s.Contains ("libmono-native.dylib"); @@ -31,7 +29,7 @@ namespace Xamarin.MMP.Tests test.CSProjConfig = $"--optimize={(strip.Value ? "+" : "-")}trim-architectures {additionalMMPArgs}"; else if (!string.IsNullOrEmpty (additionalMMPArgs)) test.CSProjConfig = $"{additionalMMPArgs}"; - + return test; } @@ -67,12 +65,11 @@ namespace Xamarin.MMP.Tests [TestCase (false, false, false)] public void ShouldStripMonoPosixHelper (bool? strip, bool debugStrips, bool releaseStrips) { - var posixHelper = Path.Combine (Configuration.SdkRootXM, "SDKs","Xamarin.macOS.sdk", "lib", "libMonoPosixHelper.dylib"); + var posixHelper = Path.Combine (Configuration.SdkRootXM, "SDKs", "Xamarin.macOS.sdk", "lib", "libMonoPosixHelper.dylib"); if (Xamarin.MachO.GetArchitectures (posixHelper).Count < 2) Assert.Ignore ($"libMonoPosixHelper.dylib is not a fat library."); - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { TI.UnifiedTestConfig test = CreateStripTestConfig (strip, tmpDir); // Mono's linker is smart enough to remove libMonoPosixHelper unless used (DeflateStream uses it) test.TestCode = "using (var ms = new System.IO.MemoryStream ()) { using (var gz = new System.IO.Compression.DeflateStream (ms, System.IO.Compression.CompressionMode.Compress)) { }}"; @@ -85,8 +82,7 @@ namespace Xamarin.MMP.Tests [TestCase (false, false, false)] public void ShouldStripUserFramework (bool? strip, bool debugStrips, bool releaseStrips) { - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { var frameworkPath = FrameworkBuilder.CreateFatFramework (tmpDir); TI.UnifiedTestConfig test = CreateStripTestConfig (strip, tmpDir, $"--native-reference={frameworkPath}"); @@ -142,8 +138,7 @@ namespace Xamarin.MMP.Tests [TestCase (true)] public void ThirdPartyLibrary_WithIncorrectBitness_ShouldWarnOnRelease (bool sixtyFourBits) { - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { var frameworkPath = FrameworkBuilder.CreateFatFramework (tmpDir); TI.UnifiedTestConfig test = CreateStripTestConfig (null, tmpDir, $" --native-reference=\"{frameworkPath}\""); @@ -165,8 +160,7 @@ namespace Xamarin.MMP.Tests [TestCase] public void ThirdPartyLibrary_WithCorrectBitness_ShouldNotStripOrWarn () { - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { var frameworkPath = FrameworkBuilder.CreateThinFramework (tmpDir); TI.UnifiedTestConfig test = CreateStripTestConfig (null, tmpDir, $" --native-reference=\"{frameworkPath}\""); diff --git a/tests/mmptest/src/ExtensionTests.cs b/tests/mmptest/src/ExtensionTests.cs index 51073c684d..18e61e8503 100644 --- a/tests/mmptest/src/ExtensionTests.cs +++ b/tests/mmptest/src/ExtensionTests.cs @@ -7,19 +7,16 @@ using System.Text; using NUnit.Framework; using System.Reflection; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class ExtensionTests - { + public class ExtensionTests { [Test] public void TodayExtension_SmokeTest () { if (!PlatformHelpers.CheckSystemVersion (10, 10)) return; - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { TI.CopyDirectory (Path.Combine (TI.FindSourceDirectory (), @"Today"), tmpDir); string project = Path.Combine (tmpDir, "Today/TodayExtensionTest.csproj"); string main = Path.Combine (tmpDir, "Today/TodayViewController.cs"); @@ -35,8 +32,7 @@ namespace Xamarin.MMP.Tests if (!PlatformHelpers.CheckSystemVersion (10, 10)) return; - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { TI.CopyDirectory (Path.Combine (TI.FindSourceDirectory (), @"Finder"), tmpDir); TI.BuildProject (Path.Combine (tmpDir, "Finder/FinderExtensionTest.csproj")); }); @@ -48,8 +44,7 @@ namespace Xamarin.MMP.Tests if (!PlatformHelpers.CheckSystemVersion (10, 10)) return; - MMPTests.RunMMPTest (tmpDir => - { + MMPTests.RunMMPTest (tmpDir => { TI.CopyDirectory (Path.Combine (TI.FindSourceDirectory (), @"Share"), tmpDir); TI.BuildProject (Path.Combine (tmpDir, "Share/ShareExtensionTest.csproj")); }); diff --git a/tests/mmptest/src/Extensions.cs b/tests/mmptest/src/Extensions.cs index 05ce995ce2..882b5f4a41 100644 --- a/tests/mmptest/src/Extensions.cs +++ b/tests/mmptest/src/Extensions.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { public static class EnumerableExtensions { public static IEnumerable FromSingleItem (this T item) { diff --git a/tests/mmptest/src/FrameworkLinksTests.cs b/tests/mmptest/src/FrameworkLinksTests.cs index 561db3a5ff..aaaf1bdebd 100644 --- a/tests/mmptest/src/FrameworkLinksTests.cs +++ b/tests/mmptest/src/FrameworkLinksTests.cs @@ -7,24 +7,22 @@ using System.Text; using NUnit.Framework; using System.Reflection; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class FrameworkLinkTests - { + public class FrameworkLinkTests { const string LinkerEnabledConfig = "Full"; const string StaticRegistrarConfig = "--registrar=static"; enum LinkStatus { Strong, Weak } - Dictionary CalculateFrameworkLinkStatus (string[] clangParts) + Dictionary CalculateFrameworkLinkStatus (string [] clangParts) { var status = new Dictionary (); for (int i = 0; i < clangParts.Length; ++i) { - string currentPart = clangParts[i]; + string currentPart = clangParts [i]; if (currentPart == "-weak_framework" || currentPart == "-framework") { - string name = clangParts[i + 1]; - status[name] = currentPart == "-framework" ? LinkStatus.Strong : LinkStatus.Weak; + string name = clangParts [i + 1]; + status [name] = currentPart == "-framework" ? LinkStatus.Strong : LinkStatus.Weak; } } return status; @@ -33,10 +31,10 @@ namespace Xamarin.MMP.Tests void AssertAppKitLinkage (Dictionary status) { Assert.IsTrue (status.ContainsKey ("AppKit"), "AppKit must have framework reference in clang invocation"); - Assert.AreEqual (LinkStatus.Strong, status["AppKit"], "AppKit must be strong linked"); + Assert.AreEqual (LinkStatus.Strong, status ["AppKit"], "AppKit must be strong linked"); } - void AssertFrameworkMinOSRespected (Dictionary status) + void AssertFrameworkMinOSRespected (Dictionary status) { // Walk rest of frameworks and verify they are weak_framework if newer than 10.9, which is defined in tests/common/mac/Info-Unified.plist foreach (var entry in status) { @@ -45,19 +43,18 @@ namespace Xamarin.MMP.Tests if (currentFramework == null) { // There are a few entries not in Framesworks.cs that we know about switch (entry.Key) { - case "Carbon": - case "CoreGraphics": - case "CoreFoundation": - case "ApplicationServices": - case "GSS": - linkStatus = LinkStatus.Strong; - break; - default: - Assert.Fail ("Unknown entry in AssertFrameworkMinOSRespected - " + entry.Key); - return; + case "Carbon": + case "CoreGraphics": + case "CoreFoundation": + case "ApplicationServices": + case "GSS": + linkStatus = LinkStatus.Strong; + break; + default: + Assert.Fail ("Unknown entry in AssertFrameworkMinOSRespected - " + entry.Key); + return; } - } - else { + } else { linkStatus = currentFramework.Version > SdkVersions.MinOSXVersion ? LinkStatus.Weak : LinkStatus.Strong; } Assert.AreEqual (linkStatus, entry.Value, $"Framework link status of {entry.Key} was {entry.Value} but expected to be {linkStatus}"); @@ -78,11 +75,11 @@ namespace Xamarin.MMP.Tests }); } - void AssertUnlinkedFrameworkStatus (string[] clangParts) + void AssertUnlinkedFrameworkStatus (string [] clangParts) { Dictionary status = CalculateFrameworkLinkStatus (clangParts); - AssertAppKitLinkage (status); + AssertAppKitLinkage (status); // We expect a large number of entires, which will grow as we add more bindings Assert.Greater (status.Count, 20, "Did not found as many framework entries in clang invocation as expected - {0}\n{1}", status.Count, string.Join (" ", clangParts)); @@ -95,7 +92,7 @@ namespace Xamarin.MMP.Tests { MMPTests.RunMMPTest (tmpDir => { // When we link, we should throw away pretty much everything that isn't AppKit. - string[] clangParts = MMPTests.GetUnifiedProjectClangInvocation (tmpDir, LinkerEnabledConfig); + string [] clangParts = MMPTests.GetUnifiedProjectClangInvocation (tmpDir, LinkerEnabledConfig); AssertLinkedFrameworkStatus (clangParts); // Even with static registrar @@ -104,7 +101,7 @@ namespace Xamarin.MMP.Tests }); } - void AssertLinkedFrameworkStatus (string[] clangParts) + void AssertLinkedFrameworkStatus (string [] clangParts) { Dictionary status = CalculateFrameworkLinkStatus (clangParts); diff --git a/tests/mmptest/src/LinkerTests.cs b/tests/mmptest/src/LinkerTests.cs index d3377fc221..0df501a603 100644 --- a/tests/mmptest/src/LinkerTests.cs +++ b/tests/mmptest/src/LinkerTests.cs @@ -7,18 +7,16 @@ using System.Text; using NUnit.Framework; using System.Reflection; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class LinkerTests - { + public class LinkerTests { int GetNumberOfTypesInLibrary (string path) { string output = TI.RunAndAssert ("/Library/Frameworks/Mono.framework/Versions/Current/Commands/monop", new [] { "-r:" + path }, "GetNumberOfTypesInLibrary"); - string[] splitBuildOutput = output.Split (new string[] { Environment.NewLine }, StringSplitOptions.None); + string [] splitBuildOutput = output.Split (new string [] { Environment.NewLine }, StringSplitOptions.None); string outputLine = splitBuildOutput.First (x => x.StartsWith ("Total:")); - string numberSize = outputLine.Split (':')[1]; - string number = numberSize.Split (' ')[1]; + string numberSize = outputLine.Split (':') [1]; + string number = numberSize.Split (' ') [1]; return int.Parse (number); } @@ -26,7 +24,7 @@ namespace Xamarin.MMP.Tests string GetOutputBundlePath (string tmpDir, string name, bool modern) => Path.Combine (tmpDir, "bin/Debug/" + GetAppName (modern) + "/Contents/MonoBundle", name + ".dll"); string GetFrameworkName (bool modern) => modern ? "Xamarin.Mac" : "4.5"; - string GetBaseAssemblyPath (string name, bool modern) => Path.Combine (TI.FindRootDirectory (), "Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/" + GetFrameworkName (modern) + "/", name + ".dll"); + string GetBaseAssemblyPath (string name, bool modern) => Path.Combine (TI.FindRootDirectory (), "Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/" + GetFrameworkName (modern) + "/", name + ".dll"); const string PlatformProjectConfig = "Platform"; @@ -34,7 +32,7 @@ namespace Xamarin.MMP.Tests public void ModernLinkingSDK_WithAllNonProductSkipped_BuildsWithSameNumberOfTypes () { MMPTests.RunMMPTest (tmpDir => { - string[] dependencies = { "mscorlib", "System.Core", "System" }; + string [] dependencies = { "mscorlib", "System.Core", "System" }; string config = "SdkOnly--linkskip=" + dependencies.Aggregate ((arg1, arg2) => arg1 + " --linkskip=" + arg2) + ""; TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = config }; TI.TestUnifiedExecutable (test); @@ -50,7 +48,7 @@ namespace Xamarin.MMP.Tests public void FullLinkingSdk_BuildsWithFewerPlatformTypesOnly () { MMPTests.RunMMPTest (tmpDir => { - string[] nonPlatformDependencies = { "mscorlib", "System.Core", "System" }; + string [] nonPlatformDependencies = { "mscorlib", "System.Core", "System" }; TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = PlatformProjectConfig, XM45 = true }; TI.TestUnifiedExecutable (test); foreach (string dep in nonPlatformDependencies) { @@ -75,7 +73,7 @@ namespace Xamarin.MMP.Tests { MMPTests.RunMMPTest (tmpDir => { TI.UnifiedTestConfig config = new TI.UnifiedTestConfig (tmpDir) { - CSProjConfig = $"--dynamic-symbol-mode={mode}\n", + CSProjConfig = $"--dynamic-symbol-mode={mode}\n", }; var output = TI.TestUnifiedExecutable (config); var build_output = output.BuildResult.BuildOutput; @@ -105,7 +103,7 @@ namespace Xamarin.MMP.Tests [TestCase ("sdkonly", true)] public void Linking_ShouldHandleMixedModeAssemblies (string linker, bool builds_successfully) { - MMPTests.RunMMPTest(tmpDir => { + MMPTests.RunMMPTest (tmpDir => { string libraryPath = Path.Combine (TI.FindSourceDirectory (), "../MixedClassLibrary.dll"); TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { diff --git a/tests/mmptest/src/MMPTest.cs b/tests/mmptest/src/MMPTest.cs index 8271b7b691..f0f4cbd2c7 100644 --- a/tests/mmptest/src/MMPTest.cs +++ b/tests/mmptest/src/MMPTest.cs @@ -10,12 +10,10 @@ using System.Reflection; using Xamarin.Utils; using Xamarin.Tests; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public partial class MMPTests - { - public static void RunMMPTest (Action test, string directoryName = null) + public partial class MMPTests { + public static void RunMMPTest (Action test, string directoryName = null) { test (Cache.CreateTemporaryDirectory (directoryName)); } @@ -26,14 +24,14 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = projectConfig }; var splitBuildOutput = TI.TestUnifiedExecutable (test).BuildResult.BuildOutputLines; string clangInvocation = splitBuildOutput.Single (x => x.Contains ("usr/bin/clang") && x.Contains ("mmacosx-version-min")); - return clangInvocation.Split (new string[] { " " }, StringSplitOptions.None); + return clangInvocation.Split (new string [] { " " }, StringSplitOptions.None); } [Test] public void CollisionsBetweenLibraryNameAndEXE_ShouldFailBuild () { RunMMPTest (tmpDir => { - Action testCore = (projectName, assemblyName, XM45) => { + Action testCore = (projectName, assemblyName, XM45) => { // Build a library with the conflicting name TI.UnifiedTestConfig libConfig = new TI.UnifiedTestConfig (tmpDir) { XM45 = XM45, ProjectName = projectName, AssemblyName = assemblyName }; string csprojTarget = TI.GenerateUnifiedLibraryProject (libConfig); @@ -43,7 +41,7 @@ namespace Xamarin.MMP.Tests string referenceCode = string.Format (@"{0}", Path.Combine (tmpDir, "bin/Debug", assemblyName + ".dll")); TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { XM45 = XM45, References = referenceCode }; - TI.TestUnifiedExecutable (test, shouldFail : true); + TI.TestUnifiedExecutable (test, shouldFail: true); }; // These library assembly names conflict with the exe name testCore ("UnifiedLibrary", "UnifiedExample", false); @@ -55,10 +53,10 @@ namespace Xamarin.MMP.Tests public void CollisionBetweenEXEAndSDKAssembly_ShouldFailBuild () { RunMMPTest (tmpDir => { - Action testCore = (assemblyName, XM45) => { + Action testCore = (assemblyName, XM45) => { // Build a library with the conflicting name TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { XM45 = XM45, AssemblyName = assemblyName }; - TI.TestUnifiedExecutable (test, shouldFail : true); + TI.TestUnifiedExecutable (test, shouldFail: true); }; // These library assembly names conflict with the exe name testCore ("Xamarin.Mac", false); @@ -119,7 +117,7 @@ namespace Xamarin.MMP.Tests string referenceCode = string.Format (@"{0}", Path.Combine (libraryDirectory, "bin/Debug/", $"{libraryName}.dll")); TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { References = referenceCode }; - TI.TestUnifiedExecutable (test); + TI.TestUnifiedExecutable (test); }); } @@ -188,8 +186,7 @@ namespace Xamarin.MMP.Tests public void Dontlink_Allow_ReadonlyAssembly () { string [] sb; - RunMMPTest (tmpDir => - { + RunMMPTest (tmpDir => { // build b.dll string assemblyPath = string.Format ("{0}/b.dll", tmpDir); sb = new [] { "-target:library", "-debug", $"-out:{assemblyPath}", $"{tmpDir}/b.cs" }; @@ -200,8 +197,7 @@ namespace Xamarin.MMP.Tests File.SetAttributes (Path.ChangeExtension (assemblyPath, ".pdb"), FileAttributes.ReadOnly); // build project referencing a.dll - TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) - { + TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { References = string.Format (" {0} ", assemblyPath), TestCode = "System.Console.WriteLine (typeof (B));", }; @@ -215,8 +211,7 @@ namespace Xamarin.MMP.Tests [Test] public void DefaultProject_ShouldPullInMonoPosix_AndNaitveLib () { - RunMMPTest (tmpDir => - { + RunMMPTest (tmpDir => { TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { XM45 = true }; MonoPosixTestCore (tmpDir, test); test.XM45 = false; @@ -261,7 +256,7 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = string.Format ("--machine-config={0}", invalidConfigPath) }; - var testResult = TI.TestUnifiedExecutable (test, shouldFail : true); + var testResult = TI.TestUnifiedExecutable (test, shouldFail: true); testResult.Messages.AssertError (97, $"machine.config file '{invalidConfigPath}' can not be found."); }); } @@ -310,7 +305,7 @@ namespace Xamarin.MMP.Tests Assert.IsTrue (File.Exists (Path.Combine (tmpDir, machineConfigMobileLocation))); string [] text = File.ReadAllLines (Path.Combine (tmpDir, machineConfigMobileLocation)); - Assert.IsTrue (text.Length == 1 && text[0] == configText); + Assert.IsTrue (text.Length == 1 && text [0] == configText); // XM45 test.XM45 = true; @@ -318,7 +313,7 @@ namespace Xamarin.MMP.Tests Assert.IsTrue (File.Exists (Path.Combine (tmpDir, machineConfigXM45Location))); text = File.ReadAllLines (Path.Combine (tmpDir, machineConfigXM45Location)); - Assert.IsTrue (text.Length == 1 && text[0] == configText); + Assert.IsTrue (text.Length == 1 && text [0] == configText); }); } @@ -326,8 +321,7 @@ namespace Xamarin.MMP.Tests public void Unified_FailedBuild_ShouldRequireAnotherBuildNotSkipMMP () { RunMMPTest (tmpDir => { - foreach (bool xm45 in new bool [] {false, true}) - { + foreach (bool xm45 in new bool [] { false, true }) { // First build with a Non-existant file to force us to error inside mmp test TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { CSProjConfig = "--resource=Foo.bar", XM45 = xm45 }; TI.GenerateAndBuildUnifiedExecutable (test, shouldFail: true); @@ -344,20 +338,18 @@ namespace Xamarin.MMP.Tests Assert.IsTrue (secondBuildOutput.Contains ("Building target \"_CompileToNative\" completely"), "Did need to build"); } }); - } + } public const string BundleResourceTemplate = ""; [Test] public void UnifiedWithDepLib_ThatContainsUserResource_ShouldBeRemovedUnderFullLink () { - RunMMPTest (tmpDir => - { + RunMMPTest (tmpDir => { string resoucePath = Path.Combine (tmpDir, "foo.xml"); File.Create (resoucePath); - TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) - { + TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { ProjectName = "UnifiedLibrary", ItemGroup = string.Format (BundleResourceTemplate, resoucePath), }; @@ -379,13 +371,12 @@ namespace Xamarin.MMP.Tests [Test] public void Unified_SideBySideXamMac_ConsoleTest () { - RunMMPTest (tmpDir => - { + RunMMPTest (tmpDir => { string testPath = Path.Combine (TI.FindSourceDirectory (), @"ConsoleXMApp.csproj"); TI.BuildProject (testPath); string exePath = Path.Combine (TI.FindSourceDirectory (), @"bin/Debug/ConsoleXMApp.exe"); var output = TI.RunAndAssert ("/Library/Frameworks/Mono.framework/Commands/mono64", new [] { exePath }, "RunSideBySizeXamMac"); - Assert.IsTrue (output.Split (Environment.NewLine.ToCharArray ()).Any (x => x.Contains ("True")), "Unified_SideBySideXamMac_ConsoleTest run"); + Assert.IsTrue (output.Split (Environment.NewLine.ToCharArray ()).Any (x => x.Contains ("True")), "Unified_SideBySideXamMac_ConsoleTest run"); }); } @@ -507,7 +498,7 @@ namespace Xamarin.MMP.Tests public void Unified_ShouldSupportDynamic () { RunMMPTest (tmpDir => { - TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { + TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { TestCode = @" NSObject o = new NSObject (); dynamic w = o; @@ -598,7 +589,7 @@ namespace Xamarin.MMP.Tests { RunMMPTest (tmpDir => { var test = new TI.UnifiedTestConfig (tmpDir) { - CSProjConfig = $"--optimize={opt}" + + CSProjConfig = $"--optimize={opt}" + "Full", }; // register-protocols requires static registrar which is default in Release @@ -616,7 +607,7 @@ namespace Xamarin.MMP.Tests { RunMMPTest (tmpDir => { var test = new TI.UnifiedTestConfig (tmpDir) { - CSProjConfig = $"--optimize={opt}" + + CSProjConfig = $"--optimize={opt}" + "Full", }; var rv = TI.TestUnifiedExecutable (test, shouldFail: false); @@ -791,7 +782,7 @@ namespace Xamarin.MMP.Tests [Test] public void AssemblyNameWithCommaShouldNotFail () => RunMMPTest (tmpDir => { // Build a library with the conflicting name - TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { XM45 = true, AssemblyName = "UserLikes,ToEnumerate.Mac", ProjectName = "UserLikes,ToEnumerate.Mac" }; + TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { XM45 = true, AssemblyName = "UserLikes,ToEnumerate.Mac", ProjectName = "UserLikes,ToEnumerate.Mac" }; TI.TestUnifiedExecutable (test, shouldFail: false); }); } diff --git a/tests/mmptest/src/MmpTool.cs b/tests/mmptest/src/MmpTool.cs index 2b837f24dd..328229077d 100644 --- a/tests/mmptest/src/MmpTool.cs +++ b/tests/mmptest/src/MmpTool.cs @@ -6,10 +6,8 @@ using Xamarin.Tests; using Xamarin.Utils; -namespace Xamarin -{ - class MmpTool : BundlerTool, IDisposable - { +namespace Xamarin { + class MmpTool : BundlerTool, IDisposable { public string ApplicationName; public string OutputPath; @@ -67,7 +65,7 @@ namespace Xamarin RootAssembly = CompileTestAppExecutable (OutputPath, code, extraArgs, profile, appName, extraCode, usings); } - public override string GetAppAssembliesDirectory() + public override string GetAppAssembliesDirectory () { return Path.Combine (OutputPath, ApplicationName + ".app", "Contents", "MonoBundle"); } diff --git a/tests/mmptest/src/NativeExtensionEmbedding.cs b/tests/mmptest/src/NativeExtensionEmbedding.cs index 6db29ec38a..35ba61b068 100644 --- a/tests/mmptest/src/NativeExtensionEmbedding.cs +++ b/tests/mmptest/src/NativeExtensionEmbedding.cs @@ -4,11 +4,9 @@ using System.Linq; using NUnit.Framework; using Xamarin.Tests; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class NativeExtensionEmbeddingTests - { + public class NativeExtensionEmbeddingTests { [TestCase (true)] [TestCase (false)] public void NativeExtensionEmbedding (bool XM45) @@ -30,7 +28,7 @@ namespace Xamarin.MMP.Tests "; - var config = new TI.UnifiedTestConfig (tmpDir) { XM45 = XM45, ItemGroup = items}; + var config = new TI.UnifiedTestConfig (tmpDir) { XM45 = XM45, ItemGroup = items }; string csprojTarget = TI.GenerateUnifiedExecutableProject (config); TI.BuildProject (csprojTarget); diff --git a/tests/mmptest/src/NativeReferencesTests.cs b/tests/mmptest/src/NativeReferencesTests.cs index 466514ba22..8ed378dacb 100644 --- a/tests/mmptest/src/NativeReferencesTests.cs +++ b/tests/mmptest/src/NativeReferencesTests.cs @@ -9,8 +9,7 @@ using System.Reflection; using Xamarin.Tests; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { public class NativeReferenceTests { public const string ItemGroupTemplate = @"{0}"; public const string NativeReferenceTemplate = @"False{1}"; @@ -125,7 +124,7 @@ namespace Xamarin.MMP.Tests NativeReferenceTestCore (tmpDir, test, "Unified_WithNativeReferences_MissingLibrariesActAsExpected - Nonexistant", null, false); // Test a system dylib. Does not matter which one - test.ItemGroup = CreateSingleNativeRef ( "/System/Library/Frameworks/MapKit.framework/Versions/A/Resources/BridgeSupport/MapKit.dylib", "Dynamic"); + test.ItemGroup = CreateSingleNativeRef ("/System/Library/Frameworks/MapKit.framework/Versions/A/Resources/BridgeSupport/MapKit.dylib", "Dynamic"); NativeReferenceTestCore (tmpDir, test, "Unified_WithNativeReferences_MissingLibrariesActAsExpected - System", null, true); // Test one of the ignored libs @@ -168,8 +167,7 @@ namespace Xamarin.MMP.Tests string filePath = CreateCopyOfSimpleClassInTestDir (tmpDir); // Use absolute path here and in TestDecl to trigger bug - TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) - { + TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { ProjectName = "UnifiedExample.csproj", ItemGroup = CreateSingleNativeRef (filePath, "Dynamic"), TestDecl = string.Format ("[System.Runtime.InteropServices.DllImport (\"{0}\")]public static extern int GetFour ();", filePath), @@ -189,7 +187,7 @@ namespace Xamarin.MMP.Tests TI.UnifiedTestConfig test = new TI.UnifiedTestConfig (tmpDir) { ProjectName = "UnifiedExample.csproj", CSProjConfig = "true", - ItemGroup = CreateItemGroup (new string[] { CreateNativeRefInclude (firstPath, "Dynamic"), CreateNativeRefInclude (secondPath, "Dynamic") }), + ItemGroup = CreateItemGroup (new string [] { CreateNativeRefInclude (firstPath, "Dynamic"), CreateNativeRefInclude (secondPath, "Dynamic") }), }; NativeReferenceTestCore (tmpDir, test, "MultipleNativeReferences_OnlyInvokeMMPOneTime_AndCopyEverythingIn", null, true); }); diff --git a/tests/mmptest/src/PackageReferenceTests.cs b/tests/mmptest/src/PackageReferenceTests.cs index 60f5c8bb72..21681fd521 100644 --- a/tests/mmptest/src/PackageReferenceTests.cs +++ b/tests/mmptest/src/PackageReferenceTests.cs @@ -3,11 +3,9 @@ using System.IO; using System.Linq; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class PackageReferenceTests - { + public class PackageReferenceTests { const string PackageReference = @""; const string TestCode = @"var output = Newtonsoft.Json.JsonConvert.SerializeObject (new int[] { 1, 2, 3 });"; diff --git a/tests/mmptest/src/RegistrarTests.cs b/tests/mmptest/src/RegistrarTests.cs index 3f80c9e436..46ec1838db 100644 --- a/tests/mmptest/src/RegistrarTests.cs +++ b/tests/mmptest/src/RegistrarTests.cs @@ -1,11 +1,9 @@ using System; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class RegistrarTests - { + public class RegistrarTests { [TestCase (false, "x86_64")] [TestCase (true, "x86_64")] public void SmokeTest (bool full, string arch) diff --git a/tests/mmptest/src/RemotingConfigurationTests.cs b/tests/mmptest/src/RemotingConfigurationTests.cs index 60de38bb5e..ebb966bfa8 100644 --- a/tests/mmptest/src/RemotingConfigurationTests.cs +++ b/tests/mmptest/src/RemotingConfigurationTests.cs @@ -3,16 +3,12 @@ using System.IO; using System.Reflection; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ - public partial class MMPTests - { +namespace Xamarin.MMP.Tests { + public partial class MMPTests { void CreateRemotingConfigFile (string path) { - using (Stream stream = Assembly.GetExecutingAssembly ().GetManifestResourceStream ("Xamarin.MMP.Tests.remoting.config")) - { - using (StreamReader reader = new StreamReader (stream)) - { + using (Stream stream = Assembly.GetExecutingAssembly ().GetManifestResourceStream ("Xamarin.MMP.Tests.remoting.config")) { + using (StreamReader reader = new StreamReader (stream)) { string result = reader.ReadToEnd (); File.WriteAllText (path, result); } @@ -30,19 +26,17 @@ namespace Xamarin.MMP.Tests //[Test] Disabled due to https://bugzilla.xamarin.com/show_bug.cgi?id=50230 public void RemotingConfigruation_RemoteConfigTests () { - RunMMPTest (tmpDir => - { + RunMMPTest (tmpDir => { CreateRemotingConfigFile (Path.Combine (tmpDir, "remoting.config")); - var config = new TI.UnifiedTestConfig (tmpDir) - { + var config = new TI.UnifiedTestConfig (tmpDir) { ItemGroup = RemotingConfigCSProjText, TestCode = RemotingTestCode }; TI.TestUnifiedExecutable (config); - config.CSProjConfig ="--machine-config=\"\""; + config.CSProjConfig = "--machine-config=\"\""; TI.TestUnifiedExecutable (config); }); } diff --git a/tests/mmptest/src/SmokeTests.cs b/tests/mmptest/src/SmokeTests.cs index 5a1b6a6ccc..a232faf57f 100644 --- a/tests/mmptest/src/SmokeTests.cs +++ b/tests/mmptest/src/SmokeTests.cs @@ -2,11 +2,9 @@ using System; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class SmokeTests - { + public class SmokeTests { [TestCase (false)] [TestCase (true)] public void Unified_SmokeTest (bool full) diff --git a/tests/mmptest/src/TargetFrameworkDetectionTests.cs b/tests/mmptest/src/TargetFrameworkDetectionTests.cs index 1a94bea384..0c2a57aeea 100644 --- a/tests/mmptest/src/TargetFrameworkDetectionTests.cs +++ b/tests/mmptest/src/TargetFrameworkDetectionTests.cs @@ -6,11 +6,9 @@ using NUnit.Framework; using Xamarin.Tests; using Xamarin.Utils; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class TargetFrameworkDetectionTests - { + public class TargetFrameworkDetectionTests { TargetFramework [] XMTargetFrameworks = { TargetFramework.Xamarin_Mac_2_0_Mobile, TargetFramework.Xamarin_Mac_4_5_Full, TargetFramework.Xamarin_Mac_4_5_System }; string CreateTestExe (string tmpDir) @@ -50,14 +48,14 @@ namespace Xamarin.MMP.Tests string GetXMReference (TargetFramework target) { - switch (target.Profile) { + switch (target.Profile) { case "Mobile": - return $"-a:{Configuration.SdkRootXM}/lib/mono/Xamarin.Mac/Xamarin.Mac.dll"; + return $"-a:{Configuration.SdkRootXM}/lib/mono/Xamarin.Mac/Xamarin.Mac.dll"; case "Full": case "System": - return $"-a:{Configuration.SdkRootXM}/lib/mono/4.5/Xamarin.Mac.dll"; + return $"-a:{Configuration.SdkRootXM}/lib/mono/4.5/Xamarin.Mac.dll"; default: - throw new System.InvalidOperationException (); + throw new System.InvalidOperationException (); } } @@ -87,7 +85,7 @@ namespace Xamarin.MMP.Tests foreach (var targetProfile in XMTargetFrameworks) { string libPath = CreateTestExe (tmpDir); var args = GetTestMMPInvocation (tmpDir, libPath, targetProfile, false); - string buildResults = TI.RunAndAssert (MMPPath, args, "mmp invoke with wrong XM", shouldFail:true); + string buildResults = TI.RunAndAssert (MMPPath, args, "mmp invoke with wrong XM", shouldFail: true); Assert.IsTrue (buildResults.Contains ("1407"), "Did not contains 1407 error expected"); } }); diff --git a/tests/mmptest/src/TargetFrameworkMutateTests.cs b/tests/mmptest/src/TargetFrameworkMutateTests.cs index cdf6f007c1..b850b6fc94 100644 --- a/tests/mmptest/src/TargetFrameworkMutateTests.cs +++ b/tests/mmptest/src/TargetFrameworkMutateTests.cs @@ -3,11 +3,9 @@ using System.Linq; using NUnit.Framework; using Xamarin.Utils; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class TargetFrameworkMutateTests - { + public class TargetFrameworkMutateTests { const string MigrateCSProjTag = "true"; public bool MatchesTFI (string expected, BuildResult buildOutput) diff --git a/tests/mmptest/src/WarningTests.cs b/tests/mmptest/src/WarningTests.cs index 798abcacf6..d61cd040c8 100644 --- a/tests/mmptest/src/WarningTests.cs +++ b/tests/mmptest/src/WarningTests.cs @@ -3,11 +3,9 @@ using System.Collections.Generic; using System.IO; using NUnit.Framework; -namespace Xamarin.MMP.Tests -{ +namespace Xamarin.MMP.Tests { [TestFixture] - public class WarningTests - { + public class WarningTests { [Test] public void MM0135 () { diff --git a/tests/mmptest/src/aot.cs b/tests/mmptest/src/aot.cs index 5da3f0d615..f35ac19ce3 100644 --- a/tests/mmptest/src/aot.cs +++ b/tests/mmptest/src/aot.cs @@ -13,19 +13,16 @@ using Xamarin.Utils; using Mono.Tuner; using MonoMac.Tuner; -namespace Xamarin.MMP.Tests.Unit -{ +namespace Xamarin.MMP.Tests.Unit { [TestFixture] - public class AotTests - { + public class AotTests { const string TestRootDir = "/a/non/sense/dir/"; - class TestFileEnumerator : IFileEnumerator - { + class TestFileEnumerator : IFileEnumerator { public IEnumerable Files { get; } public string RootDir { get; } = TestRootDir; - public TestFileEnumerator (IEnumerable files) + public TestFileEnumerator (IEnumerable files) { Files = files; } @@ -42,8 +39,7 @@ namespace Xamarin.MMP.Tests.Unit void Compile (AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null, bool isRelease = false, bool isModern = false) { - AOTCompiler compiler = new AOTCompiler (options, GetValidAbis (compilerType), compilerType, isModern, isRelease) - { + AOTCompiler compiler = new AOTCompiler (options, GetValidAbis (compilerType), compilerType, isModern, isRelease) { RunCommand = onRunDelegate != null ? onRunDelegate : OnRunCommand, ParallelOptions = new ParallelOptions () { MaxDegreeOfParallelism = 1 }, XamarinMacPrefix = Xamarin.Tests.Configuration.SdkRootXM, @@ -63,7 +59,7 @@ namespace Xamarin.MMP.Tests.Unit int OnRunCommand (string path, IList args, Dictionary env, StringBuilder output, bool suppressPrintOnErrors) { - commandsRun.Add (Tuple.Create >(path, args)); + commandsRun.Add (Tuple.Create> (path, args)); if (path != AOTCompiler.StripCommand) { Assert.AreEqual (TestRootDir, env ["MONO_PATH"], "MONO_PATH should be set to our expected value"); } @@ -86,7 +82,7 @@ namespace Xamarin.MMP.Tests.Unit List GetFiledAOTed (AOTCompilerType compilerType = AOTCompilerType.Bundled64, AOTKind kind = AOTKind.Standard, bool isModern = false, bool expectStripping = false, bool expectSymbolDeletion = false) { - List filesAOTed = new List (); + List filesAOTed = new List (); foreach (var command in commandsRun) { if (expectStripping && command.Item1 == AOTCompiler.StripCommand) @@ -108,9 +104,9 @@ namespace Xamarin.MMP.Tests.Unit Assert.AreNotEqual (aotParts [1], "hybrid", "Aot arg should not contain hybrid"); if (isModern) - Assert.AreEqual (argParts[1], "--runtime=mobile", "Second arg should be --runtime=mobile"); + Assert.AreEqual (argParts [1], "--runtime=mobile", "Second arg should be --runtime=mobile"); else - Assert.AreNotEqual (argParts[1], "--runtime=mobile", "Second arg should not be --runtime=mobile"); + Assert.AreNotEqual (argParts [1], "--runtime=mobile", "Second arg should not be --runtime=mobile"); var fileName = command.Item2 [1]; @@ -126,42 +122,40 @@ namespace Xamarin.MMP.Tests.Unit { return commandsRun.Where (x => x.Item1 == AOTCompiler.StripCommand).SelectMany (x => x.Item2); } - - void AssertFilesStripped (IEnumerable expectedFiles) + + void AssertFilesStripped (IEnumerable expectedFiles) { var filesStripped = GetFilesStripped (); Func getErrorDetails = () => $"\n {FormatDebugList (filesStripped)} \nvs\n {FormatDebugList (expectedFiles)}\n{AllCommandsRun}"; Assert.AreEqual (filesStripped.Count (), expectedFiles.Count (), "Different number of files stripped than expected: " + getErrorDetails ()); - Assert.IsTrue (filesStripped.All (x => expectedFiles.Contains (x)), "Different files stripped than expected: " + getErrorDetails ()); + Assert.IsTrue (filesStripped.All (x => expectedFiles.Contains (x)), "Different files stripped than expected: " + getErrorDetails ()); } - - string AllCommandsRun => "\nCommands Run:\n\t" + String.Join ("\n\t", commandsRun.Select (x => $"{x.Item1} {x.Item2}")); - string FormatDebugList (IEnumerable list) => String.Join (" ", list.Select (x => "\"" + x + "\"")); - void AssertFilesAOTed (IEnumerable expectedFiles, AOTCompilerType compilerType = AOTCompilerType.Bundled64, AOTKind kind = AOTKind.Standard, bool isModern = false, bool expectStripping = false, bool expectSymbolDeletion = false) + string AllCommandsRun => "\nCommands Run:\n\t" + String.Join ("\n\t", commandsRun.Select (x => $"{x.Item1} {x.Item2}")); + string FormatDebugList (IEnumerable list) => String.Join (" ", list.Select (x => "\"" + x + "\"")); + + void AssertFilesAOTed (IEnumerable expectedFiles, AOTCompilerType compilerType = AOTCompilerType.Bundled64, AOTKind kind = AOTKind.Standard, bool isModern = false, bool expectStripping = false, bool expectSymbolDeletion = false) { - List filesAOTed = GetFiledAOTed (compilerType, kind, isModern: isModern, expectStripping: expectStripping, expectSymbolDeletion : expectSymbolDeletion); + List filesAOTed = GetFiledAOTed (compilerType, kind, isModern: isModern, expectStripping: expectStripping, expectSymbolDeletion: expectSymbolDeletion); Func getErrorDetails = () => $"\n {FormatDebugList (filesAOTed)} \nvs\n {FormatDebugList (expectedFiles)}\n{AllCommandsRun}"; Assert.AreEqual (filesAOTed.Count, expectedFiles.Count () * GetValidAbis (compilerType).Count (), "Different number of files AOT than expected: " + getErrorDetails ()); - Assert.IsTrue (filesAOTed.All (x => expectedFiles.Contains (x)), "Different files AOT than expected: " + getErrorDetails ()); + Assert.IsTrue (filesAOTed.All (x => expectedFiles.Contains (x)), "Different files AOT than expected: " + getErrorDetails ()); } void AssertThrowErrorWithCode (Action action, int code) { try { action (); - } - catch (ProductException e) { + } catch (ProductException e) { Assert.AreEqual (e.Code, code, $"Got code {e.Code} but expected {code}"); return; - } - catch (AggregateException e) { + } catch (AggregateException e) { Assert.AreEqual (e.InnerExceptions.Count, 1, "Got AggregateException but more than one exception"); - ProductException innerException = e.InnerExceptions[0] as ProductException; + ProductException innerException = e.InnerExceptions [0] as ProductException; Assert.IsNotNull (innerException, "Got AggregateException but inner not ProductException"); Assert.AreEqual (innerException.Code, code, $"Got code {innerException.Code} but expected {code}"); return; @@ -169,14 +163,14 @@ namespace Xamarin.MMP.Tests.Unit Assert.Fail ($"We should have thrown ProductException with code: {code}"); } - readonly string [] FullAppFileList = { + readonly string [] FullAppFileList = { "Foo Bar.exe", "libMonoPosixHelper.dylib", "mscorlib.dll", "Xamarin.Mac.dll", "System.dll", "System.Core.dll" }; readonly string [] CoreXMFileList = { "mscorlib.dll", "Xamarin.Mac.dll", "System.dll" }; readonly string [] SDKFileList = { "mscorlib.dll", "Xamarin.Mac.dll", "System.dll", "System.Core.dll" }; - IEnumerable GetValidAbis (AOTCompilerType compilerType) + IEnumerable GetValidAbis (AOTCompilerType compilerType) { if (compilerType == AOTCompilerType.Bundled64) { yield return mmp::Xamarin.Abi.x86_64; @@ -209,7 +203,7 @@ namespace Xamarin.MMP.Tests.Unit } [Test] - public void Core_ParsingJustCoreFiles() + public void Core_ParsingJustCoreFiles () { var options = new AOTOptions ("core"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); @@ -220,7 +214,7 @@ namespace Xamarin.MMP.Tests.Unit } [Test] - public void SDK_ParsingJustSDKFiles() + public void SDK_ParsingJustSDKFiles () { var options = new AOTOptions ("sdk"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); @@ -246,8 +240,8 @@ namespace Xamarin.MMP.Tests.Unit { var options = new AOTOptions ("core,+Foo.dll,-Xamarin.Mac.dll"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); - - string [] testFiles = { + + string [] testFiles = { "Foo.dll", "Foo Bar.exe", "libMonoPosixHelper.dylib", "mscorlib.dll", "Xamarin.Mac.dll", "System.dll" }; Compile (options, new TestFileEnumerator (testFiles)); @@ -285,13 +279,13 @@ namespace Xamarin.MMP.Tests.Unit } [Test] - public void ExplicitNegativeWithNoAssemblies_ShouldNoOp() + public void ExplicitNegativeWithNoAssemblies_ShouldNoOp () { var options = new AOTOptions ("-System.dll"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); Compile (options, new TestFileEnumerator (FullAppFileList)); - AssertFilesAOTed (new string [] {}); + AssertFilesAOTed (new string [] { }); } [Test] @@ -306,14 +300,13 @@ namespace Xamarin.MMP.Tests.Unit RunCommandDelegate runThatErrors = (path, args, env, output, suppressPrintOnErrors) => 42; var options = new AOTOptions ("all"); - AssertThrowErrorWithCode (() => Compile (options, new TestFileEnumerator (FullAppFileList), onRunDelegate : runThatErrors), 3001); + AssertThrowErrorWithCode (() => Compile (options, new TestFileEnumerator (FullAppFileList), onRunDelegate: runThatErrors), 3001); } [Test] public void DifferentMonoTypes_ShouldInvokeCorrectMono () { - foreach (var compilerType in new List () { AOTCompilerType.Bundled64, AOTCompilerType.System64 }) - { + foreach (var compilerType in new List () { AOTCompilerType.Bundled64, AOTCompilerType.System64 }) { ClearCommandsRun (); var options = new AOTOptions ("sdk"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); @@ -327,14 +320,14 @@ namespace Xamarin.MMP.Tests.Unit [Test] public void PipeFileName_ShouldNotHybridCompiler () { - foreach (var testCase in new string [] { "+|hybrid.dll", "core,+|hybrid.dll,-Xamarin.Mac.dll" }){ + foreach (var testCase in new string [] { "+|hybrid.dll", "core,+|hybrid.dll,-Xamarin.Mac.dll" }) { ClearCommandsRun (); var options = new AOTOptions (testCase); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); Assert.IsFalse (options.IsHybridAOT, "Should not be IsHybridAOT"); Compile (options, new TestFileEnumerator (new string [] { "|hybrid.dll", "Xamarin.Mac.dll" })); - AssertFilesAOTed (new string [] {"|hybrid.dll"}); + AssertFilesAOTed (new string [] { "|hybrid.dll" }); } } @@ -359,7 +352,7 @@ namespace Xamarin.MMP.Tests.Unit Compile (options, new TestFileEnumerator (FullAppFileList)); var expectedFiles = FullAppFileList.Where (x => x.EndsWith (".exe") || x.EndsWith (".dll")); - AssertFilesAOTed (expectedFiles, kind : AOTKind.Hybrid); + AssertFilesAOTed (expectedFiles, kind: AOTKind.Hybrid); } [Test] @@ -367,10 +360,10 @@ namespace Xamarin.MMP.Tests.Unit { var options = new AOTOptions ("all|hybrid"); - Compile (options, new TestFileEnumerator (FullAppFileList), isRelease : true); + Compile (options, new TestFileEnumerator (FullAppFileList), isRelease: true); var expectedFiles = FullAppFileList.Where (x => x.EndsWith (".exe") || x.EndsWith (".dll")); - AssertFilesAOTed (expectedFiles, kind : AOTKind.Hybrid, expectStripping : true, expectSymbolDeletion : true); + AssertFilesAOTed (expectedFiles, kind: AOTKind.Hybrid, expectStripping: true, expectSymbolDeletion: true); AssertFilesStripped (expectedFiles); } @@ -379,11 +372,11 @@ namespace Xamarin.MMP.Tests.Unit { var options = new AOTOptions ("all"); - Compile (options, new TestFileEnumerator (FullAppFileList), isRelease : true); + Compile (options, new TestFileEnumerator (FullAppFileList), isRelease: true); var expectedFiles = FullAppFileList.Where (x => x.EndsWith (".exe") || x.EndsWith (".dll")); - AssertFilesAOTed (expectedFiles, expectStripping : false, expectSymbolDeletion : true); - AssertFilesStripped (new string [] {}); + AssertFilesAOTed (expectedFiles, expectStripping: false, expectSymbolDeletion: true); + AssertFilesStripped (new string [] { }); } [Test] @@ -393,7 +386,7 @@ namespace Xamarin.MMP.Tests.Unit var options = new AOTOptions ("all|hybrid"); - AssertThrowErrorWithCode (() => Compile (options, new TestFileEnumerator (FullAppFileList), onRunDelegate : runThatErrors, isRelease : true), 3001); + AssertThrowErrorWithCode (() => Compile (options, new TestFileEnumerator (FullAppFileList), onRunDelegate: runThatErrors, isRelease: true), 3001); } [Test] @@ -410,10 +403,10 @@ namespace Xamarin.MMP.Tests.Unit var options = new AOTOptions ("all"); Assert.IsTrue (options.IsAOT, "Should be IsAOT"); - Compile (options, new TestFileEnumerator (FullAppFileList), isModern : true); + Compile (options, new TestFileEnumerator (FullAppFileList), isModern: true); var expectedFiles = FullAppFileList.Where (x => x.EndsWith (".exe") || x.EndsWith (".dll")); - AssertFilesAOTed (expectedFiles, isModern : true); + AssertFilesAOTed (expectedFiles, isModern: true); } } } diff --git a/tests/mono-native/AppDelegate.cs b/tests/mono-native/AppDelegate.cs index abd42975e3..e08e3de278 100644 --- a/tests/mono-native/AppDelegate.cs +++ b/tests/mono-native/AppDelegate.cs @@ -7,8 +7,7 @@ using UIKit; using MonoTouch.NUnit.UI; using NUnit.Framework.Internal; -namespace Mono.Native.Tests -{ +namespace Mono.Native.Tests { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to // application events from iOS. @@ -24,8 +23,7 @@ namespace Mono.Native.Tests try { runner.OpenWriter ("Magic Tap"); runner.Run (runner.LoadedTest as TestSuite); - } - finally { + } finally { runner.CloseWriter (); } return true; @@ -50,7 +48,7 @@ namespace Mono.Native.Tests window.RootViewController = new UINavigationController (runner.GetViewController ()); // make the window visible window.MakeKeyAndVisible (); - + return true; } @@ -83,7 +81,7 @@ namespace Mono.Native.Tests return true; } - static void Main (string[] args) + static void Main (string [] args) { UIApplication.Main (args, null, typeof (AppDelegate)); } diff --git a/tests/mono-native/Introspection.cs b/tests/mono-native/Introspection.cs index 63964eab1b..0af4e827c6 100644 --- a/tests/mono-native/Introspection.cs +++ b/tests/mono-native/Introspection.cs @@ -7,11 +7,9 @@ using System.Runtime.InteropServices; using NUnit.Framework; using ObjCRuntime; -namespace Xamarin.Tests -{ +namespace Xamarin.Tests { [TestFixture] - public class Introspection - { + public class Introspection { public static string RootDirectory => Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location); void AssertShouldExist (string name) diff --git a/tests/mono-native/MacAppDelegate.cs b/tests/mono-native/MacAppDelegate.cs index 2e91a79268..b8b1ef0127 100644 --- a/tests/mono-native/MacAppDelegate.cs +++ b/tests/mono-native/MacAppDelegate.cs @@ -5,11 +5,9 @@ using NUnitLite; using AppKit; using Foundation; -namespace Mono.Native.Tests -{ +namespace Mono.Native.Tests { [Register ("AppDelegate")] - public class MacAppDelegate : NSApplicationDelegate - { + public class MacAppDelegate : NSApplicationDelegate { public override void DidFinishLaunching (NSNotification notification) { } diff --git a/tests/mono-native/MacMain.cs b/tests/mono-native/MacMain.cs index 193f38546b..b2e379ef7d 100644 --- a/tests/mono-native/MacMain.cs +++ b/tests/mono-native/MacMain.cs @@ -1,10 +1,8 @@ using NUnitLite; -namespace mononativetests -{ - public class Application - { - static int Main (string[] args) +namespace mononativetests { + public class Application { + static int Main (string [] args) { return new AutoRun ().Execute (args); } diff --git a/tests/mono-native/Main.cs b/tests/mono-native/Main.cs index 651f29f87a..aaa9fe15ee 100644 --- a/tests/mono-native/Main.cs +++ b/tests/mono-native/Main.cs @@ -4,8 +4,7 @@ using Foundation; #endif using UIKit; -partial class TestRuntime -{ +partial class TestRuntime { public static bool RunAsync (DateTime timeout, Action action, Func check_completed) { #if __WATCHOS__ diff --git a/tests/mono-native/NativePlatformConfig.cs b/tests/mono-native/NativePlatformConfig.cs index 960e29588d..08f3a90561 100644 --- a/tests/mono-native/NativePlatformConfig.cs +++ b/tests/mono-native/NativePlatformConfig.cs @@ -4,16 +4,14 @@ using System.Reflection; using NUnit.Framework; using Mono; -namespace Xamarin.Tests -{ +namespace Xamarin.Tests { [TestFixture] - public class NativePlatformConfig - { + public class NativePlatformConfig { [Test] public void PlatformType () { var type = MonoNativePlatform.GetPlatformType (); - Assert.That ((int)type, Is.GreaterThan (0), "platform type"); + Assert.That ((int) type, Is.GreaterThan (0), "platform type"); var usingCompat = (type & MonoNativePlatformType.MONO_NATIVE_PLATFORM_TYPE_COMPAT) != 0; Assert.AreEqual (MonoNativeConfig.UsingCompat, usingCompat, "using compatibility layer"); diff --git a/tests/mono-native/iOS/mono-native.csproj.template b/tests/mono-native/iOS/mono-native.csproj.template index d91ae2033f..fcb0b2ddca 100644 --- a/tests/mono-native/iOS/mono-native.csproj.template +++ b/tests/mono-native/iOS/mono-native.csproj.template @@ -16,6 +16,8 @@ obj\$(Platform)\$(Configuration)-unified PackageReference ..\.. + latest + true MONO_NATIVE_SYMLINK diff --git a/tests/mono-native/macOS/mono-native.csproj.template b/tests/mono-native/macOS/mono-native.csproj.template index ae18af459b..a4081ec327 100644 --- a/tests/mono-native/macOS/mono-native.csproj.template +++ b/tests/mono-native/macOS/mono-native.csproj.template @@ -1,6 +1,7 @@ + ..\.. Debug AnyCPU {2B174B45-CC6B-443D-870F-6B5394FDE3FD} @@ -12,8 +13,10 @@ 67,168,169,219,414,612,618,649,672 Xamarin.Mac v2.0 - MOBILE;XAMMAC + $(DefineConstants);MOBILE;XAMMAC PackageReference + latest + true false @@ -59,6 +62,12 @@ NativePlatformTest.cs + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/monotouch-test/Foundation/UrlSessionTest.cs b/tests/monotouch-test/Foundation/UrlSessionTest.cs index c5e4d35afe..124cd13bfd 100644 --- a/tests/monotouch-test/Foundation/UrlSessionTest.cs +++ b/tests/monotouch-test/Foundation/UrlSessionTest.cs @@ -26,6 +26,14 @@ namespace MonoTouchFixtures.Foundation { [TestFixture] [Preserve (AllMembers = true)] public class UrlSessionTest { + void AssertTrueOrIgnoreInCI (bool value, string message) + { + if (value) + return; + + TestRuntime.IgnoreInCI ($"This test times out randomly in CI due to bad network: {message}"); + Assert.Fail (message); + } //TODO: TestRuntime.RunAsync is not on mac currently #if !MONOMAC @@ -47,37 +55,62 @@ namespace MonoTouchFixtures.Foundation { var completed = false; var timeout = 30; + Exception ex = null; /* CreateDataTask */ completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { - await session.CreateDataTaskAsync (request); - completed = true; + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + try { + await session.CreateDataTaskAsync (request); + } catch (Exception e) { + ex = e; + } finally { + completed = true; + } }, () => completed), "CreateDataTask a"); + Assert.IsNull (ex, "CreateDataTask a Exception"); completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { - await session.CreateDataTaskAsync (url); - completed = true; + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + try { + await session.CreateDataTaskAsync (url); + } catch (Exception e) { + ex = e; + } finally { + completed = true; + } }, () => completed), "CreateDataTask b"); + Assert.IsNull (ex, "CreateDataTask b Exception"); /* CreateDownloadTask */ completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { - await session.CreateDownloadTaskAsync (request); - completed = true; + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + try { + await session.CreateDownloadTaskAsync (request); + } catch (Exception e) { + ex = e; + } finally { + completed = true; + } }, () => completed), "CreateDownloadTask a"); + Assert.IsNull (ex, "CreateDownloadTask a Exception"); completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { - await session.CreateDownloadTaskAsync (url); - completed = true; + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + try { + await session.CreateDownloadTaskAsync (url); + } catch (Exception e) { + ex = e; + } finally { + completed = true; + } }, () => completed), "CreateDownloadTask b"); + Assert.IsNull (ex, "CreateDownloadTask b Exception"); /* CreateUploadTask */ completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { try { var uploadRequest = new NSMutableUrlRequest (url); uploadRequest.HttpMethod = "POST"; @@ -88,9 +121,10 @@ namespace MonoTouchFixtures.Foundation { completed = true; } }, () => completed), "CreateUploadTask a"); + Assert.IsNull (ex, "CreateUploadTask a Exception"); completed = false; - Assert.IsTrue (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { + AssertTrueOrIgnoreInCI (TestRuntime.RunAsync (DateTime.Now.AddSeconds (timeout), async () => { try { var uploadRequest = new NSMutableUrlRequest (url); uploadRequest.HttpMethod = "POST"; @@ -101,6 +135,7 @@ namespace MonoTouchFixtures.Foundation { completed = true; } }, () => completed), "CreateUploadTask b"); + Assert.IsNull (ex, "CreateUploadTask b Exception"); } [Test] diff --git a/tests/monotouch-test/UIKit/FontTest.cs b/tests/monotouch-test/UIKit/FontTest.cs index 2cec8e8549..3364980715 100644 --- a/tests/monotouch-test/UIKit/FontTest.cs +++ b/tests/monotouch-test/UIKit/FontTest.cs @@ -36,6 +36,13 @@ namespace MonoTouchFixtures.UIKit { Assert.AreEqual (f1.PointSize, (nfloat) 20, "#size"); } + [Test] + public void GetWeight () + { + var weight = UIFontWeight.Semibold; + Assert.AreEqual (weight.GetWeight (), UIFontWeightConstants.Semibold); + } + [Test] public void TestDescriptors () { diff --git a/tests/msbuild/Xamarin.MacDev.Tests/TestHelpers/BuildEngine.cs b/tests/msbuild/Xamarin.MacDev.Tests/TestHelpers/BuildEngine.cs index 3a564b45fa..5946b70745 100644 --- a/tests/msbuild/Xamarin.MacDev.Tests/TestHelpers/BuildEngine.cs +++ b/tests/msbuild/Xamarin.MacDev.Tests/TestHelpers/BuildEngine.cs @@ -258,10 +258,7 @@ namespace Xamarin.Tests { var output = new StringBuilder (); var executable = Configuration.XIBuildPath; var rv = Execution.RunWithStringBuildersAsync (executable, args, Configuration.GetBuildEnvironment (platform), output, output, Console.Out, workingDirectory: Path.GetDirectoryName (project), timeout: TimeSpan.FromMinutes (10)).Result; - return new ExecutionResult { - StandardOutput = output, - StandardError = output, - ExitCode = rv.ExitCode, + return new ExecutionResult (output, output, rv.ExitCode) { BinLogPath = binlog, }; } diff --git a/tests/mtouch/LinkerTests.cs b/tests/mtouch/LinkerTests.cs index 736b1e16eb..ad2d888c2f 100644 --- a/tests/mtouch/LinkerTests.cs +++ b/tests/mtouch/LinkerTests.cs @@ -5,11 +5,9 @@ using NUnit.Framework; using MTouchLinker = Xamarin.Tests.LinkerOption; -namespace Xamarin.Linker -{ +namespace Xamarin.Linker { [TestFixture] - public partial class Preservation - { + public partial class Preservation { [Test] public void PreserveParameterInfoInXml () { diff --git a/tests/mtouch/LocalizationTests.cs b/tests/mtouch/LocalizationTests.cs index 84b1fee3b0..83f0bc8d0c 100644 --- a/tests/mtouch/LocalizationTests.cs +++ b/tests/mtouch/LocalizationTests.cs @@ -11,11 +11,9 @@ using System.Xml.Linq; using System.Linq; using Xamarin.Bundler; -namespace Xamarin.Tests -{ +namespace Xamarin.Tests { [TestFixture] - public class LocalizationTests - { + public class LocalizationTests { [TestCase ("cs-CZ")] [TestCase ("de-DE")] [TestCase ("es-ES")] @@ -40,12 +38,12 @@ namespace Xamarin.Tests var englishError = TranslateError ("en-US", errorCode); var newCultureError = TranslateError (culture, errorCode); Assert.AreNotEqual (englishError, newCultureError, $"\"{errorCode}\" is not translated in {culture}."); - } catch (NullReferenceException){ + } catch (NullReferenceException) { Assert.Fail ($"Error code \"{errorCode}\" was not found"); } catch (AssertionException) { throw; } catch (Exception e) { - Assert.Fail ($"There was an issue obtaining the {culture} translation for {errorCode}. {e.Message}"); + Assert.Fail ($"There was an issue obtaining the {culture} translation for {errorCode}. {e.Message}"); } finally { Thread.CurrentThread.CurrentUICulture = originalUICulture; Thread.CurrentThread.CurrentCulture = originalCulture; @@ -93,7 +91,7 @@ namespace Xamarin.Tests foreach (var errorCodeInfo in typeof (Errors).GetProperties ()) { try { var errorCode = errorCodeInfo.Name; - if (ignoredProperties.Contains(errorCode)) + if (ignoredProperties.Contains (errorCode)) continue; string englishError = TranslateError ("en-US", errorCode); string newCultureError = TranslateError (culture, errorCode); diff --git a/tests/mtouch/MLaunchTool.cs b/tests/mtouch/MLaunchTool.cs index 291b1f6d25..3f436fe461 100644 --- a/tests/mtouch/MLaunchTool.cs +++ b/tests/mtouch/MLaunchTool.cs @@ -4,12 +4,9 @@ using System.Text; using Xamarin.Utils; using Xamarin.Tests; -namespace Xamarin -{ - class MLaunchTool : Tool - { - public enum MLaunchAction - { +namespace Xamarin { + class MLaunchTool : Tool { + public enum MLaunchAction { None, Sim, Dev, diff --git a/tests/mtouch/MTouch.cs b/tests/mtouch/MTouch.cs index 12701d990f..af7093b9b2 100644 --- a/tests/mtouch/MTouch.cs +++ b/tests/mtouch/MTouch.cs @@ -18,7 +18,7 @@ using MTouchRegistrar = Xamarin.Tests.RegistrarOption; namespace Xamarin.Tests { static class TestTarget { - public static string ToolPath { + public static string ToolPath { get { return Path.Combine (Configuration.SdkBinDir, "mtouch"); } @@ -26,16 +26,14 @@ namespace Xamarin.Tests { } } -namespace Xamarin -{ +namespace Xamarin { public enum Target { Sim, Dev } public enum Config { Debug, Release } public enum PackageMdb { Default, WithMdb, WoutMdb } public enum MSym { Default, WithMSym, WoutMSym } [TestFixture] - public class MTouch - { + public class MTouch { [Test] //[TestCase (Profile.iOS)] // tested as part of the watchOS case below, since that builds both for iOS and watchOS. [TestCase (Profile.tvOS)] @@ -234,9 +232,9 @@ public class B : A {} [Test] [TestCase ("code sharing 32-bit", "armv7+llvm", new string [] { "@sdk=framework=Xamarin.Sdk", "@all=staticobject" })] [TestCase ("code sharing 64-bit", "arm64+llvm", new string [] { "@sdk=framework=Xamarin.Sdk", "@all=staticobject" })] - [TestCase ("32-bit", "armv7+llvm", new string [] { } )] + [TestCase ("32-bit", "armv7+llvm", new string [] { })] [TestCase ("64-bit", "arm64+llvm", new string [] { })] - public void CodeSharingLLVM (string name, string abi, string[] assembly_build_targets) + public void CodeSharingLLVM (string name, string abi, string [] assembly_build_targets) { using (var mtouch = new MTouchTool ()) { mtouch.CreateTemporaryApp (); @@ -251,8 +249,7 @@ public class B : A {} mtouch.AssertExecute (MTouchAction.BuildDev, "build"); // Check that --llvm is passed to the AOT compiler for every assembly we AOT. var assemblies_checked = 0; - mtouch.ForAllOutputLines ((line) => - { + mtouch.ForAllOutputLines ((line) => { if (!line.Contains ("arm-darwin-mono-sgen") && !line.Contains ("arm64-darwin-mono-sgen")) return; StringAssert.Contains (" --llvm ", line, "aot command must pass --llvm to the AOT compiler"); @@ -263,10 +260,10 @@ public class B : A {} } [Test] - [TestCase ("single", "", false)] - [TestCase ("dual", "armv7,arm64", false)] - [TestCase ("llvm", "armv7+llvm", false)] - [TestCase ("debug", "", true)] + [TestCase ("single", "", false)] + [TestCase ("dual", "armv7,arm64", false)] + [TestCase ("llvm", "armv7+llvm", false)] + [TestCase ("debug", "", true)] public void RebuildTest (string name, string abi, bool debug) { AssertDeviceAvailable (); @@ -371,18 +368,18 @@ public class B : A {} var max = files.Max ((v) => v.Length); var format = " {0,-" + max + "} {1}"; - foreach (var file in files) { + foreach (var file in files) { Console.WriteLine (format, file, File.GetLastWriteTimeUtc (file).ToString ("HH:mm:ss.fffffff")); } } [Test] - [TestCase ("single", "", false, new string [] { } )] + [TestCase ("single", "", false, new string [] { })] [TestCase ("dual", "armv7,arm64", false, new string [] { })] [TestCase ("llvm", "armv7+llvm", false, new string [] { })] [TestCase ("debug", "", true, new string [] { })] [TestCase ("single-framework", "", false, new string [] { "@sdk=framework=Xamarin.Sdk", "@all=staticobject" })] - public void RebuildTest_WithExtensions (string name, string abi, bool debug, string[] assembly_build_targets) + public void RebuildTest_WithExtensions (string name, string abi, bool debug, string [] assembly_build_targets) { var codeA = "[Foundation.Preserve] public class TestApp1 { static void X () { System.Console.WriteLine (typeof (ObjCRuntime.Runtime).ToString ()); } }"; var codeB = "[Foundation.Preserve] public class TestApp2 { static void X () { System.Console.WriteLine (typeof (ObjCRuntime.Runtime).ToString ()); } }"; @@ -410,7 +407,7 @@ public class B : A {} mtouch.DSym = false; // faster test mtouch.MSym = false; // faster test mtouch.NoStrip = true; // faster test - //mtouch.Verbosity = 20; // Set the mtouch verbosity to something to print the mtouch output to the terminal. This will also enable additional debug output. + //mtouch.Verbosity = 20; // Set the mtouch verbosity to something to print the mtouch output to the terminal. This will also enable additional debug output. System.Action assertSupportsDynamicRegistrar = () => { // Assert that the xamarin_supports_dynamic_registration is identical between the app and the extension. @@ -559,18 +556,18 @@ public class B : A {} [Test] // Simulator - [TestCase (Target.Sim, Config.Release, PackageMdb.Default, MSym.Default, false, false, "")] - [TestCase (Target.Sim, Config.Debug, PackageMdb.Default, MSym.Default, true, false, "")] - [TestCase (Target.Sim, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "")] - [TestCase (Target.Sim, Config.Release, PackageMdb.WithMdb, MSym.Default, true, false, "")] - [TestCase (Target.Sim, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "--nofastsim --nolink")] + [TestCase (Target.Sim, Config.Release, PackageMdb.Default, MSym.Default, false, false, "")] + [TestCase (Target.Sim, Config.Debug, PackageMdb.Default, MSym.Default, true, false, "")] + [TestCase (Target.Sim, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "")] + [TestCase (Target.Sim, Config.Release, PackageMdb.WithMdb, MSym.Default, true, false, "")] + [TestCase (Target.Sim, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "--nofastsim --nolink")] // Device - [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.Default, true, true, "")] - [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.WoutMSym, true, false, "")] - [TestCase (Target.Dev, Config.Release, PackageMdb.Default, MSym.Default, false, true, "--abi:armv7,arm64")] - [TestCase (Target.Dev, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "")] - [TestCase (Target.Dev, Config.Debug, PackageMdb.WoutMdb, MSym.WithMSym, false, true, "")] - [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.Default, true, true, "--abi:armv7+llvm")] + [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.Default, true, true, "")] + [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.WoutMSym, true, false, "")] + [TestCase (Target.Dev, Config.Release, PackageMdb.Default, MSym.Default, false, true, "--abi:armv7,arm64")] + [TestCase (Target.Dev, Config.Debug, PackageMdb.WoutMdb, MSym.Default, false, false, "")] + [TestCase (Target.Dev, Config.Debug, PackageMdb.WoutMdb, MSym.WithMSym, false, true, "")] + [TestCase (Target.Dev, Config.Release, PackageMdb.WithMdb, MSym.Default, true, true, "--abi:armv7+llvm")] public void SymbolicationData (Target target, Config configuration, PackageMdb package_mdb, MSym msym, bool has_mdb, bool has_msym, string extra_mtouch_args) { if (target == Target.Dev) @@ -705,8 +702,8 @@ public class B : A {} { using (var mtouch = new MTouchTool ()) { mtouch.Debug = false; - mtouch.CustomArguments = new string[] { "--debugtrack:true" }; - mtouch.WarnAsError = new int[] { 32 }; + mtouch.CustomArguments = new string [] { "--debugtrack:true" }; + mtouch.WarnAsError = new int [] { 32 }; mtouch.CreateTemporaryApp (); mtouch.AssertExecuteFailure (MTouchAction.BuildSim, "build"); mtouch.AssertError (32, "The option '--debugtrack' is ignored unless '--debug' is also specified."); @@ -786,7 +783,7 @@ public class B : A {} using (var mtouch = new MTouchTool ()) { var app = mtouch.CreateTemporaryAppDirectory (); var testDir = Path.GetDirectoryName (app); - + string exe = Path.Combine (testDir, "testApp.exe"); string dll = Path.Combine (testDir, "testLib.dll"); @@ -804,7 +801,7 @@ public class B : A {} System.Console.WriteLine (new TestLib ()); } }"; - + CompileCSharpCode (dll_profile, dllCode, dll); CompileCSharpCode (exe_profile, exeCode, exe, "-r:" + dll); @@ -1129,7 +1126,7 @@ public class B : A {} } mtouch.Abi = abi; mtouch.Bitcode = mode; - mtouch.WarnAsError = new int[] { 186 }; + mtouch.WarnAsError = new int [] { 186 }; if (Configuration.XcodeVersion.Major >= 14) { Assert.AreEqual (1, mtouch.Execute (MTouchAction.BuildDev)); mtouch.AssertError (186, "Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file."); @@ -1161,15 +1158,15 @@ public class B : A {} apptool.AppExtensions.Add (exttool); apptool.Linker = MTouchLinker.LinkAll; apptool.AssertExecute (MTouchAction.BuildDev, "build app"); - - Assert.IsTrue(Directory.Exists(Path.Combine(apptool.Cache, "3-Build", "Msym")), "App Msym dir"); - Assert.IsFalse(Directory.Exists(Path.Combine(exttool.Cache, "3-Build", "Msym")), "Extenson Msym dir"); - exttool.AssertNoWarnings(); - apptool.AssertNoWarnings(); + + Assert.IsTrue (Directory.Exists (Path.Combine (apptool.Cache, "3-Build", "Msym")), "App Msym dir"); + Assert.IsFalse (Directory.Exists (Path.Combine (exttool.Cache, "3-Build", "Msym")), "Extenson Msym dir"); + exttool.AssertNoWarnings (); + apptool.AssertNoWarnings (); } } } - + [Test] public void MT0095_NotSharedCode () { @@ -1193,15 +1190,15 @@ public class B : A {} apptool.Linker = MTouchLinker.LinkAll; apptool.CustomArguments = new string [] { "--nodevcodeshare" }; apptool.AssertExecute (MTouchAction.BuildDev, "build app"); - - Assert.IsTrue(Directory.Exists(Path.Combine(apptool.Cache, "3-Build", "Msym")), "App Msym dir"); - Assert.IsTrue(Directory.Exists(Path.Combine(exttool.Cache, "3-Build", "Msym")), "Extenson Msym dir"); - exttool.AssertNoWarnings(); - apptool.AssertNoWarnings(); + + Assert.IsTrue (Directory.Exists (Path.Combine (apptool.Cache, "3-Build", "Msym")), "App Msym dir"); + Assert.IsTrue (Directory.Exists (Path.Combine (exttool.Cache, "3-Build", "Msym")), "Extenson Msym dir"); + exttool.AssertNoWarnings (); + apptool.AssertNoWarnings (); } } } - + /* MT0100 is a consistency check, and should never be seen (and as such can never be tested either, since there's no known test cases that would produce it) */ [Test] @@ -1268,7 +1265,7 @@ public class B : A {} mtouch.CreateTemporaryApp (); mtouch.Linker = MTouchLinker.DontLink; // the MT0106 check happens after linking, but before AOT-compiling, so not linking makes the test faster. - mtouch.AssemblyBuildTargets.Add ("@all=staticobject=a/b");; + mtouch.AssemblyBuildTargets.Add ("@all=staticobject=a/b"); ; mtouch.AssertExecuteFailure (MTouchAction.BuildDev, "build"); mtouch.AssertError (106, "The assembly build target name 'a/b' is invalid: the character '/' is not allowed."); @@ -1357,7 +1354,7 @@ public class B : A {} [TestCase ("framework ext", null, new string [] { "@sdk=framework=Xamarin.Sdk" })] [TestCase ("fastdev app", new string [] { "@all=dynamiclibrary" }, null)] [TestCase ("fastdev ext", null, new string [] { "@all=dynamiclibrary" })] - public void MT0113_assemblybuildtarget (string name, string[] extension_abt, string[] app_abt) + public void MT0113_assemblybuildtarget (string name, string [] extension_abt, string [] app_abt) { using (var extension = new MTouchTool ()) { extension.CreateTemporaryServiceExtension (); @@ -2208,8 +2205,7 @@ public class TestApp { public void FastDev_LinkWithTest (Profile profile) { // --fastdev with static registrar and linkwith library - this will fail to build if the linkwith dylib isn't linked with the corresponding native library. - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2235,9 +2231,8 @@ public class TestApp { //[TestCase (Profile.WatchOS)] // needs testing improvement public void FastDev_NoFastSim_NoLink (Profile profile) { - // --sim --nofastsim --nolink --fastdev - using (var mtouch = new MTouchTool () - { + // --sim --nofastsim --nolink --fastdev + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2249,7 +2244,7 @@ public class TestApp { Assert.AreEqual (0, mtouch.Execute (MTouchAction.BuildSim), "build"); } } - + [Test] [TestCase (Profile.iOS)] [TestCase (Profile.tvOS)] @@ -2257,8 +2252,7 @@ public class TestApp { public void FastDev_NoFastSim_LinkAll (Profile profile) { // --sim --nofastsim --fastdev - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2269,7 +2263,7 @@ public class TestApp { Assert.AreEqual (0, mtouch.Execute (MTouchAction.BuildSim), "build"); } } - + [Test] [TestCase (Profile.iOS)] [TestCase (Profile.tvOS)] @@ -2277,8 +2271,7 @@ public class TestApp { public void FastDev_NoFastSim_LinkSDK (Profile profile) { // --sim --nofastsim --linksdkonly --fastdev - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2298,8 +2291,7 @@ public class TestApp { public void FastDev_Sim (Profile profile) { // --sim --fastdev - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2316,8 +2308,7 @@ public class TestApp { //[TestCase (Profile.WatchOS)] // needs testing improvement public void FastDev_LinkAll (Profile profile) { - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2327,7 +2318,7 @@ public class TestApp { Assert.AreEqual (0, mtouch.Execute (MTouchAction.BuildDev), "build"); } } - + [Test] [TestCase (Profile.iOS)] [TestCase (Profile.tvOS)] @@ -2336,8 +2327,7 @@ public class TestApp { { // --fastdev w/no link - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = profile, Debug = true, FastDev = true, @@ -2349,15 +2339,14 @@ public class TestApp { Assert.AreEqual (0, mtouch.Execute (MTouchAction.BuildDev), "build 1"); } } - + [Test] [TestCase (Profile.iOS)] [TestCase (Profile.tvOS)] //[TestCase (Profile.WatchOS)] // needs testing improvement public void FastDev_LinkAll_Then_NoLink (Profile profile) { - using (var mtouch = new MTouchTool - { + using (var mtouch = new MTouchTool { Profile = profile, Debug = true, FastDev = true, @@ -2381,8 +2370,7 @@ public class TestApp { //[TestCase (Profile.WatchOS)] // needs testing improvement public void FastDev_LinkSDK (Profile profile) { - using (var mtouch = new MTouchTool - { + using (var mtouch = new MTouchTool { Profile = profile, Debug = true, FastDev = true, @@ -2400,8 +2388,7 @@ public class TestApp { [Test] public void FastDev_Dual () { - using (var mtouch = new MTouchTool () - { + using (var mtouch = new MTouchTool () { Profile = Profile.iOS, FastDev = true, TargetVer = "10.3", // otherwise 32-bit build isn't possible @@ -2543,11 +2530,11 @@ public class TestApp { mtouch.Profile = Profile.tvOS; mtouch.Abi = abi; mtouch.CreateTemporaryApp (); - + var bin = Path.Combine (mtouch.AppPath, Path.GetFileNameWithoutExtension (mtouch.RootAssembly)); Assert.AreEqual (0, mtouch.Execute (target == Target.Dev ? MTouchAction.BuildDev : MTouchAction.BuildSim), "build"); - VerifyArchitectures (bin, "arch", target == Target.Dev ? "ARM64" : "x86_64"); + VerifyArchitectures (bin, "arch", target == Target.Dev ? "ARM64" : "x86_64"); } } @@ -2669,7 +2656,7 @@ public class TestApp { { if (target == Target.Dev) AssertDeviceAvailable (); - + var testDir = Path.Combine (Configuration.SourceRoot, "tests", subdir, testname); var platform = target == Target.Dev ? "iPhone" : "iPhoneSimulator"; var csproj = Path.Combine (testDir, testname + GetProjectSuffix (profile) + ".csproj"); @@ -2691,7 +2678,7 @@ public class TestApp { // non-linked device build [TestCase (Target.Dev, MTouchLinker.DontLink, MTouchRegistrar.Static, "arm64")] // armv7 Xamarin.iOS.dll don't link builds are not possible anymore because we go over the code size limit, [TestCase (Target.Dev, MTouchLinker.DontLink, MTouchRegistrar.Dynamic, "arm64")] // since this is out of our control we are now forcing this test to arm64. Ref. https://github.com/xamarin/xamarin-macios/issues/5512 - // sdk device build + // sdk device build [TestCase (Target.Dev, MTouchLinker.LinkSdk, MTouchRegistrar.Static, "")] [TestCase (Target.Dev, MTouchLinker.LinkSdk, MTouchRegistrar.Dynamic, "")] // fully linked device build @@ -3058,7 +3045,7 @@ class TestClass { ext.AssertError (2105, "The property TestClass.FilterClauseProperty contains a 'Filter' exception clause, which is currently not supported when compiling for bitcode. This property will throw an exception if called.", "testApp.cs", 19); ext.AssertError (2105, "The property TestClass.FilterClauseProperty contains a 'Filter' exception clause, which is currently not supported when compiling for bitcode. This property will throw an exception if called.", "testApp.cs", 28); ext.AssertErrorCount (3); - + ext.Optimize = new string [] { "remove-unsupported-il-for-bitcode" }; ext.AssertExecuteFailure (MTouchAction.BuildSim); ext.AssertError (2105, "The method TestClass.FilterClause contains a 'Filter' exception clause, which is currently not supported when compiling for bitcode. This method will throw an exception if called.", "testApp.cs", 9); @@ -3199,8 +3186,7 @@ class Test { File.Move (dll, DLL); - Action check = (v) => - { + Action check = (v) => { var msg = new StringBuilder (); int counter = 0; foreach (var file in Directory.EnumerateFiles (app, "*", SearchOption.AllDirectories)) { @@ -3690,7 +3676,7 @@ public partial class NotificationService : UNNotificationServiceExtension mtouch.CreateTemporaryApp (); mtouch.Linker = MTouchLinker.DontLink; mtouch.Debug = true; // makes simlauncher possible, which speeds up the build - mtouch.Optimize = new string [] { "all"}; + mtouch.Optimize = new string [] { "all" }; mtouch.AssertExecute (MTouchAction.BuildSim); mtouch.AssertWarning (2003, "Option '--optimize=remove-uithread-checks' will be ignored since linking is disabled"); mtouch.AssertWarning (2003, "Option '--optimize=dead-code-elimination' will be ignored since linking is disabled"); @@ -4013,8 +3999,7 @@ public class HandlerTest mtouch.AssertExecuteFailure (MTouchAction.BuildSim, "build sim"); mtouch.AssertErrorPattern (2014, "Unable to link assembly .* as it is mixed-mode."); mtouch.AssertErrorCount (1); - } - else { + } else { mtouch.AssertExecute (MTouchAction.BuildSim, "build sim"); mtouch.AssertErrorCount (0); } @@ -4287,7 +4272,7 @@ class C { "/p:_CodeSigningKey=-", }; XBuild.BuildXM (csproj, "Release", "x86", arguments: arguments, timeout: TimeSpan.FromMinutes (15)); - DirectoryAssert.Exists(Path.Combine (Configuration.SourceRoot, "tests", "framework-test", "macOS", "bin", "x86", "Release", "XTest.framework.dSYM")); + DirectoryAssert.Exists (Path.Combine (Configuration.SourceRoot, "tests", "framework-test", "macOS", "bin", "x86", "Release", "XTest.framework.dSYM")); } public void XamarinSdkAdjustLibs () @@ -4321,13 +4306,13 @@ class C { var shared_libraries = ExecutionHelper.Execute ("otool", new [] { "-L", sdk }, hide_output: true); Asserts.DoesNotContain ("Private", shared_libraries, "Private"); - exttool.AssertNoWarnings(); - apptool.AssertNoWarnings(); + exttool.AssertNoWarnings (); + apptool.AssertNoWarnings (); } } } -#region Helper functions + #region Helper functions static void RunUnitTest (Profile profile, string code, string csproj_configuration = "", string [] csproj_references = null, string configuration = "Debug", string platform = "iPhoneSimulator", bool clean_simulator = true) { if (profile != Profile.iOS) @@ -4473,7 +4458,7 @@ public class Dummy { return BundlerTool.CompileTestAppCode (target, targetDirectory, code, new [] { extraArg }, profile, appName); } - static string CreateBindingLibrary (string targetDirectory, string nativeCode, string bindingCode, string linkWith = null, string extraCode = "", string name = "binding", string[] references = null, string arch = "armv7") + static string CreateBindingLibrary (string targetDirectory, string nativeCode, string bindingCode, string linkWith = null, string extraCode = "", string name = "binding", string [] references = null, string arch = "armv7") { var o = CompileNativeLibrary (targetDirectory, nativeCode, name: name, arch: arch); var cs = Path.Combine (targetDirectory, $"{name}Code.cs"); @@ -4559,7 +4544,7 @@ using ObjCRuntime; return o; } - void CompileCSharpCode (Profile profile, string code, string outputPath, params string[] additional_arguments) + void CompileCSharpCode (Profile profile, string code, string outputPath, params string [] additional_arguments) { var tmpFile = Path.GetTempFileName (); try { @@ -4619,7 +4604,7 @@ public class TestApp { compiled_linkwith_apps [profile] = exe; return exe; } - + static void VerifyGC (string file, string message) { var symbols = GetNativeSymbols (file); @@ -4629,7 +4614,7 @@ public class TestApp { } } - static void VerifyArchitectures (string file, string message, params string[] expected) + static void VerifyArchitectures (string file, string message, params string [] expected) { var actual = MachO.GetArchitectures (file).Select ((v) => v.ToString ()).ToArray (); @@ -4664,7 +4649,7 @@ public class TestApp { return v.Substring (idx + 2); }); } - + static bool? is_apfs; public static bool IsAPFS { get { @@ -4682,7 +4667,7 @@ public class TestApp { return; System.Threading.Thread.Sleep (1000); } -#endregion + #endregion } class McsException : Exception { diff --git a/tests/mtouch/MTouchTool.cs b/tests/mtouch/MTouchTool.cs index 72fc4de44d..935dc00237 100644 --- a/tests/mtouch/MTouchTool.cs +++ b/tests/mtouch/MTouchTool.cs @@ -10,18 +10,15 @@ using Xamarin.Utils; using NUnit.Framework; -namespace Xamarin -{ - public enum MTouchAction - { +namespace Xamarin { + public enum MTouchAction { None, BuildDev, BuildSim, LaunchSim, } - public enum MTouchSymbolMode - { + public enum MTouchSymbolMode { Unspecified, Default, Linker, @@ -29,16 +26,14 @@ namespace Xamarin Ignore, } - public enum MTouchBitcode - { + public enum MTouchBitcode { Unspecified, ASMOnly, Full, // LLVMOnly Marker, } - class MTouchTool : BundlerTool, IDisposable - { + class MTouchTool : BundlerTool, IDisposable { #pragma warning disable 649 // These map directly to mtouch options public MTouchAction? Action; // --sim, --dev, --launchsim, etc @@ -79,8 +74,7 @@ namespace Xamarin Profile = Profile.iOS; } - public class DeviceInfo - { + public class DeviceInfo { public string UDID; public string Name; public string CompanionIdentifier; @@ -225,7 +219,7 @@ namespace Xamarin Assert.IsEmpty (failed, message); } - protected override string GetDefaultAbi() + protected override string GetDefaultAbi () { var isDevice = false; @@ -363,7 +357,7 @@ namespace Xamarin if (!string.IsNullOrEmpty (LLVMOptimizations)) sb.Add ($"--llvm-opt={LLVMOptimizations}"); - + if (Bitcode != MTouchBitcode.Unspecified) sb.Add ($"--bitcode:{Bitcode.ToString ().ToLower ()}"); @@ -561,7 +555,7 @@ namespace Xamarin File.WriteAllText (Path.Combine (testDir, appName + ".cs"), CreateCode (code, usings, extraCode)); if (hasPlist) File.WriteAllText (Path.Combine (testDir, "Info.plist"), CreatePlist (Profile, appName)); - } else { + } else { AppPath = app; RootAssembly = CompileTestAppExecutable (testDir, code, extraArgs, Profile, appName, extraCode, usings); @@ -597,7 +591,7 @@ public partial class NotificationService : UNNotificationServiceExtension Extension = true; RootAssembly = MTouch.CompileTestAppLibrary (testDir, code: code, profile: Profile, extraArgs: extraArgs, appName: appName); - var info_plist = + var info_plist = @" @@ -889,7 +883,7 @@ public class IntentHandler : INExtension, IINRidesharingDomainHandling { } public IEnumerable NativeSymbolsInExecutable { - get { + get { return GetNativeSymbolsInExecutable (NativeExecutablePath); } } @@ -904,7 +898,7 @@ public class IntentHandler : INExtension, IINRidesharingDomainHandling { args.Add ("-gUj"); args.Add (executable); IEnumerable rv = ExecutionHelper.Execute ("nm", args, hide_output: true).Split ('\n'); - + rv = rv.Where ((v) => { if (string.IsNullOrEmpty (v)) return false; diff --git a/tests/mtouch/MiscTests.cs b/tests/mtouch/MiscTests.cs index 58c5e32664..c4047b29c6 100644 --- a/tests/mtouch/MiscTests.cs +++ b/tests/mtouch/MiscTests.cs @@ -9,11 +9,9 @@ using Xamarin.Tests; using NUnit.Framework; -namespace Xamarin.Tests -{ +namespace Xamarin.Tests { [TestFixture] - public class Misc - { + public class Misc { [Test] public void InvalidStructOffset () { @@ -22,7 +20,7 @@ namespace Xamarin.Tests var str = "invalid struct offset"; var contents = ASCIIEncoding.ASCII.GetBytes (str); - foreach (var sdk in new string [] { "iphoneos", "iphonesimulator"}) { + foreach (var sdk in new string [] { "iphoneos", "iphonesimulator" }) { foreach (var ext in new string [] { "dylib", "a" }) { var fn = Path.Combine (Configuration.MonoTouchRootDirectory, "SDKs", "MonoTouch." + sdk + ".sdk", "lib", "libmonosgen-2.0." + ext); Assert.IsFalse (Contains (fn, contents), "Found \"{0}\" in {1}", str, fn); @@ -30,7 +28,7 @@ namespace Xamarin.Tests } } - bool Contains (string file, byte[] contents) + bool Contains (string file, byte [] contents) { var pagesize = 4096; var buffer = new byte [pagesize * 1024]; diff --git a/tests/mtouch/MonoNativeTests.cs b/tests/mtouch/MonoNativeTests.cs index 6dfe06576b..47bc1e2c54 100644 --- a/tests/mtouch/MonoNativeTests.cs +++ b/tests/mtouch/MonoNativeTests.cs @@ -32,14 +32,12 @@ using NUnit.Framework; // using ExecutionHelper = Xamarin.Tests.ExecutionHelper; // using MTouchRegistrar = Xamarin.Tests.RegistrarOption; -namespace Xamarin -{ +namespace Xamarin { using Tests; using Utils; [TestFixture] - public class MonoNativeTests - { + public class MonoNativeTests { [Test] public void TestDebugSymlink () { diff --git a/tests/mtouch/RegistrarTest.cs b/tests/mtouch/RegistrarTest.cs index b108a62b3f..61012d4542 100644 --- a/tests/mtouch/RegistrarTest.cs +++ b/tests/mtouch/RegistrarTest.cs @@ -12,11 +12,9 @@ using NUnit.Framework; using MTouchLinker = Xamarin.Tests.LinkerOption; using MTouchRegistrar = Xamarin.Tests.RegistrarOption; -namespace Xamarin -{ +namespace Xamarin { [TestFixture] - public class Registrar - { + public class Registrar { enum R { Static = 4, Dynamic = 8, @@ -290,7 +288,7 @@ class MyObjectErr : NSObject, IFoo1, IFoo2 var xcodeRoot = Configuration.xcode83_root; if (!Directory.Exists (xcodeRoot)) Assert.Ignore ("Xcode 8 ({0}) is required for this test.", xcodeRoot); - + using (var mtouch = new MTouchTool ()) { mtouch.CreateTemporaryCacheDirectory (); mtouch.SdkRoot = xcodeRoot; @@ -387,7 +385,7 @@ class C : NSObject { mtouch.AssertNoWarnings (); } } - + [Test] public void MT4138 () { @@ -740,7 +738,7 @@ public class Category mtouch.AssertNoWarnings (); } } - + [Test] public void MT4159 () { @@ -765,7 +763,7 @@ public class Category } // This list is duplicated in src/ObjCRuntime/Registrar.cs - static readonly char[] invalidSelectorCharacters = { ' ', '\t', '?', '\\', '!', '|', '@', '"', '\'', '%', '&', '/', '(', ')', '=', '^', '[', ']', '{', '}', ',', '.', ';', '-', '\n', '<', '>' }; + static readonly char [] invalidSelectorCharacters = { ' ', '\t', '?', '\\', '!', '|', '@', '"', '\'', '%', '&', '/', '(', ')', '=', '^', '[', ']', '{', '}', ',', '.', ';', '-', '\n', '<', '>' }; [Test] public void MT4160 () @@ -793,7 +791,7 @@ public class Category mtouch.AssertExecuteFailure (MTouchAction.BuildSim, "build"); for (int i = 0; i < testInvalidCharacters.Length; i++) { var c = testInvalidCharacters [i]; - mtouch.AssertError (4160, $"Invalid character '{c}' (0x{((int)c).ToString ("x")}) found in selector 'X{c}' for 'TestInvalidChar.X{i}()'", "testApp.cs", 3 + i * 2); + mtouch.AssertError (4160, $"Invalid character '{c}' (0x{((int) c).ToString ("x")}) found in selector 'X{c}' for 'TestInvalidChar.X{i}()'", "testApp.cs", 3 + i * 2); } } } @@ -897,7 +895,7 @@ public struct FooF { public NSObject Obj; } public enum FutureEnum { } "; - + using (var mtouch = new MTouchTool ()) { mtouch.Profile = profile; mtouch.Linker = linker; @@ -962,7 +960,7 @@ public struct FooF { public NSObject Obj; } public enum FutureEnum { } "; - + using (var mtouch = new MTouchTool ()) { mtouch.Profile = profile; mtouch.Linker = linker; @@ -1028,7 +1026,7 @@ public struct FooF { public NSObject Obj; } public enum FutureEnum { } "; - + using (var mtouch = new MTouchTool ()) { mtouch.IsDotNet = true; mtouch.Profile = profile; diff --git a/tests/mtouch/SdkTest.cs b/tests/mtouch/SdkTest.cs index aa3480829d..e2c5474a15 100644 --- a/tests/mtouch/SdkTest.cs +++ b/tests/mtouch/SdkTest.cs @@ -31,7 +31,7 @@ namespace Xamarin.Linker { [TestFixture] public partial class SdkTest { - + static string UnifiedPath { get { return Path.Combine (Configuration.MonoTouchRootDirectory, "lib/mono/Xamarin.iOS/"); } } static string tvOSPath { get { return Path.Combine (Configuration.MonoTouchRootDirectory, "lib/mono/Xamarin.TVOS/"); } } static string watchOSPath { get { return Path.Combine (Configuration.MonoTouchRootDirectory, "lib/mono/Xamarin.WatchOS/"); } } diff --git a/tests/mtouch/TimingTests.cs b/tests/mtouch/TimingTests.cs index 666cf61508..e40191fe4d 100644 --- a/tests/mtouch/TimingTests.cs +++ b/tests/mtouch/TimingTests.cs @@ -9,12 +9,10 @@ using Xamarin.Tests; using MTouchLinker = Xamarin.Tests.LinkerOption; using MTouchRegistrar = Xamarin.Tests.RegistrarOption; -namespace Xamarin.Profiler -{ +namespace Xamarin.Profiler { [TestFixture (Profile.iOS)] [TestFixture (Profile.tvOS)] - public class TimingTests - { + public class TimingTests { Profile profile; StringBuilder sb; int starsLenght; diff --git a/tests/package-mac-tests.sh b/tests/package-mac-tests.sh index c04a3e48f6..f128f92862 100755 --- a/tests/package-mac-tests.sh +++ b/tests/package-mac-tests.sh @@ -77,7 +77,7 @@ for app in linker/*/*/dotnet/*/bin/*/*/*/*.app */dotnet/*/bin/*/*/*/*.app; do done $CP -p packaged-macos-tests.mk "$DIR/tests" -$CP -p run-with-timeout.sh "$DIR/tests" +$CP -p run-with-timeout.* "$DIR/tests" $CP -p ../Make.config "$DIR" $CP -p ../Make.versions "$DIR" $CP -p test-dependencies.sh "$DIR" diff --git a/tests/packaged-macos-tests.mk b/tests/packaged-macos-tests.mk index 90e7c5fd1d..f49dec576c 100644 --- a/tests/packaged-macos-tests.mk +++ b/tests/packaged-macos-tests.mk @@ -25,9 +25,9 @@ CONFIG?=Debug LAUNCH_ARGUMENTS=--autostart --autoexit # Time test runs out after 5 minutes (300 seconds) -RUN_WITH_TIMEOUT=./run-with-timeout.sh 300 +RUN_WITH_TIMEOUT=./run-with-timeout.csharp 300 # Some tests need a bit more time... (introspection) -RUN_WITH_TIMEOUT_LONGER=./run-with-timeout.sh 600 +RUN_WITH_TIMEOUT_LONGER=./run-with-timeout.csharp 600 .stamp-configure-projects-mac: Makefile xharness/xharness.exe $(Q) $(MAKE) .stamp-xharness-configure diff --git a/tests/perftest/NativeArrayPerf.cs b/tests/perftest/NativeArrayPerf.cs index 7ba8c67418..9c69300177 100644 --- a/tests/perftest/NativeArrayPerf.cs +++ b/tests/perftest/NativeArrayPerf.cs @@ -13,13 +13,13 @@ namespace PerfTest { public class NativeArrays { - NSNumber[] array; + NSNumber [] array; [Params (0, 1, 16, 256, 4096)] public int Length { get; set; } [GlobalSetup] - public void Setup() + public void Setup () { array = new NSNumber [Length]; for (int i = 0; i < Length; i++) diff --git a/tests/perftest/ObjCBridge.cs b/tests/perftest/ObjCBridge.cs index 4c5003d71f..35bd04c604 100644 --- a/tests/perftest/ObjCBridge.cs +++ b/tests/perftest/ObjCBridge.cs @@ -224,7 +224,7 @@ namespace PerfTest { ObjCRegistrarTest obj = new ObjCRegistrarTest (); IntPtr mutablearray_class = Class.GetHandle (typeof (NSMutableArray)); IntPtr nsobject_class = Class.GetHandle (typeof (NSObject)); - NSObject[] managedArray; + NSObject [] managedArray; [Params (0, 1, 100, 10000)] public int ArraySize { get; set; } diff --git a/tests/perftest/TollFreeBridge.cs b/tests/perftest/TollFreeBridge.cs index 8baba0c760..1144054a81 100644 --- a/tests/perftest/TollFreeBridge.cs +++ b/tests/perftest/TollFreeBridge.cs @@ -24,7 +24,7 @@ namespace PerfTest { string s; - public IEnumerable Handles () + public IEnumerable Handles () { yield return new object [] { "nil", IntPtr.Zero }; yield return new object [] { "empty", empty.Handle }; @@ -61,7 +61,7 @@ namespace PerfTest { return s = d; } - public IEnumerable Strings () + public IEnumerable Strings () { yield return new object [] { "empty", "" }; yield return new object [] { "short_7bits", "Bonjour" }; @@ -99,16 +99,16 @@ namespace PerfTest { { yield return new object [] { "null", null }; yield return new object [] { "empty", new NSArray () }; - yield return new object [] { "one", NSArray.FromStrings ("1") }; + yield return new object [] { "one", NSArray.FromStrings ("1") }; yield return new object [] { "few", NSArray.FromStrings ("Bonjour", "Québec", "汉语 漢語", "I'm feeling 🤪 tonight.") }; yield return new object [] { "small_mutable", new NSMutableArray (new NSString ("Québec"), new NSString ("汉语 漢語")) }; var lot = new NSMutableArray (); for (int i = 0; i < 255; i++) // used to fit under the stackalloc limit of the new implementation - lot.Add (new NSString (new string ('!', i) )); + lot.Add (new NSString (new string ('!', i))); yield return new object [] { "lot_mutable", lot }; var large = new NSMutableArray (); for (int i = 0; i < 4096; i++) - large.Add (new NSString (new string ('#', i) )); + large.Add (new NSString (new string ('#', i))); yield return new object [] { "large_mutable", large }; } diff --git a/tests/qa-regression/EndSheet/AppDelegate.cs b/tests/qa-regression/EndSheet/AppDelegate.cs index b61efc2395..8f56abe744 100644 --- a/tests/qa-regression/EndSheet/AppDelegate.cs +++ b/tests/qa-regression/EndSheet/AppDelegate.cs @@ -4,10 +4,8 @@ using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; -namespace EndSheet -{ - public partial class AppDelegate : NSApplicationDelegate - { +namespace EndSheet { + public partial class AppDelegate : NSApplicationDelegate { MainWindowController mainWindowController; public AppDelegate () diff --git a/tests/qa-regression/EndSheet/Main.cs b/tests/qa-regression/EndSheet/Main.cs index fa477f0704..938bfdabdd 100644 --- a/tests/qa-regression/EndSheet/Main.cs +++ b/tests/qa-regression/EndSheet/Main.cs @@ -4,10 +4,8 @@ using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; -namespace EndSheet -{ - class MainClass - { +namespace EndSheet { + class MainClass { static void Main (string [] args) { NSApplication.Init (); diff --git a/tests/qa-regression/EndSheet/MainSheet.cs b/tests/qa-regression/EndSheet/MainSheet.cs index 46d4957544..f28c94f963 100644 --- a/tests/qa-regression/EndSheet/MainSheet.cs +++ b/tests/qa-regression/EndSheet/MainSheet.cs @@ -4,12 +4,10 @@ using System.Linq; using MonoMac.Foundation; using MonoMac.AppKit; -namespace EndSheet -{ - public partial class MainSheet : MonoMac.AppKit.NSWindow - { +namespace EndSheet { + public partial class MainSheet : MonoMac.AppKit.NSWindow { #region Constructors - + // Called when created from unmanaged code public MainSheet (IntPtr handle) : base (handle) { diff --git a/tests/qa-regression/EndSheet/MainSheetController.cs b/tests/qa-regression/EndSheet/MainSheetController.cs index 3ce86918b9..94cad09b4f 100644 --- a/tests/qa-regression/EndSheet/MainSheetController.cs +++ b/tests/qa-regression/EndSheet/MainSheetController.cs @@ -3,10 +3,8 @@ using System; using MonoMac.Foundation; using MonoMac.AppKit; -namespace EndSheet -{ - public partial class MainSheetController : NSWindowController - { +namespace EndSheet { + public partial class MainSheetController : NSWindowController { public MainSheetController (IntPtr handle) : base (handle) { } @@ -19,7 +17,7 @@ namespace EndSheet public MainSheetController () : base ("MainSheet") { } - + public override void AwakeFromNib () { dismissSheetButton.Activated += (sender, e) => { diff --git a/tests/qa-regression/EndSheet/MainWindow.cs b/tests/qa-regression/EndSheet/MainWindow.cs index c848f08fee..cf8b3a5cf2 100644 --- a/tests/qa-regression/EndSheet/MainWindow.cs +++ b/tests/qa-regression/EndSheet/MainWindow.cs @@ -4,12 +4,10 @@ using System.Linq; using MonoMac.Foundation; using MonoMac.AppKit; -namespace EndSheet -{ - public partial class MainWindow : MonoMac.AppKit.NSWindow - { +namespace EndSheet { + public partial class MainWindow : MonoMac.AppKit.NSWindow { #region Constructors - + // Called when created from unmanaged code public MainWindow (IntPtr handle) : base (handle) { diff --git a/tests/qa-regression/EndSheet/MainWindowController.cs b/tests/qa-regression/EndSheet/MainWindowController.cs index b91586f555..6e3958bfdf 100644 --- a/tests/qa-regression/EndSheet/MainWindowController.cs +++ b/tests/qa-regression/EndSheet/MainWindowController.cs @@ -3,10 +3,8 @@ using System; using MonoMac.Foundation; using MonoMac.AppKit; -namespace EndSheet -{ - public partial class MainWindowController : NSWindowController - { +namespace EndSheet { + public partial class MainWindowController : NSWindowController { public MainWindowController (IntPtr handle) : base (handle) { } @@ -19,7 +17,7 @@ namespace EndSheet public MainWindowController () : base ("MainWindow") { } - + public override void AwakeFromNib () { runSheetButton.Activated += (sender, e) => diff --git a/tests/qa-regression/ObjCBlocks/app.cs b/tests/qa-regression/ObjCBlocks/app.cs index c1963e83dc..c23e1c0ddd 100644 --- a/tests/qa-regression/ObjCBlocks/app.cs +++ b/tests/qa-regression/ObjCBlocks/app.cs @@ -6,8 +6,7 @@ using MonoMac.AppKit; using Test; -static class App -{ +static class App { [DllImport ("dl")] static extern IntPtr dlopen (string path, int mode); diff --git a/tests/qa-regression/WebKitDelegateEvents/AppDelegate.cs b/tests/qa-regression/WebKitDelegateEvents/AppDelegate.cs index 18760fee20..c086629a80 100644 --- a/tests/qa-regression/WebKitDelegateEvents/AppDelegate.cs +++ b/tests/qa-regression/WebKitDelegateEvents/AppDelegate.cs @@ -4,10 +4,8 @@ using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; -namespace WebKitDelegateEvents -{ - public partial class AppDelegate : NSApplicationDelegate - { +namespace WebKitDelegateEvents { + public partial class AppDelegate : NSApplicationDelegate { MainWindowController mainWindowController; public AppDelegate () diff --git a/tests/qa-regression/WebKitDelegateEvents/Main.cs b/tests/qa-regression/WebKitDelegateEvents/Main.cs index 090fcfd1c3..36ba344eda 100644 --- a/tests/qa-regression/WebKitDelegateEvents/Main.cs +++ b/tests/qa-regression/WebKitDelegateEvents/Main.cs @@ -4,11 +4,9 @@ using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; -namespace WebKitDelegateEvents -{ - class MainClass - { - static void Main (string[] args) +namespace WebKitDelegateEvents { + class MainClass { + static void Main (string [] args) { NSApplication.Init (); NSApplication.Main (args); diff --git a/tests/qa-regression/WebKitDelegateEvents/MainWindow.cs b/tests/qa-regression/WebKitDelegateEvents/MainWindow.cs index 349ae3f56d..7071b4944c 100644 --- a/tests/qa-regression/WebKitDelegateEvents/MainWindow.cs +++ b/tests/qa-regression/WebKitDelegateEvents/MainWindow.cs @@ -3,10 +3,8 @@ using System; using MonoMac.Foundation; using MonoMac.AppKit; -namespace WebKitDelegateEvents -{ - public partial class MainWindow : NSWindow - { +namespace WebKitDelegateEvents { + public partial class MainWindow : NSWindow { public MainWindow (IntPtr handle) : base (handle) { } diff --git a/tests/qa-regression/WebKitDelegateEvents/MainWindowController.cs b/tests/qa-regression/WebKitDelegateEvents/MainWindowController.cs index a37533795f..f5572921b7 100644 --- a/tests/qa-regression/WebKitDelegateEvents/MainWindowController.cs +++ b/tests/qa-regression/WebKitDelegateEvents/MainWindowController.cs @@ -4,10 +4,8 @@ using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.WebKit; -namespace WebKitDelegateEvents -{ - public partial class MainWindowController : NSWindowController - { +namespace WebKitDelegateEvents { + public partial class MainWindowController : NSWindowController { string currentLocation; public MainWindowController (IntPtr handle) : base (handle) @@ -33,16 +31,14 @@ namespace WebKitDelegateEvents } } - class DomOutlineViewDelegate : NSOutlineViewDelegate - { + class DomOutlineViewDelegate : NSOutlineViewDelegate { public override void SelectionDidChange (NSNotification notification) { Console.WriteLine ("SELECTION CHANGE VIA DELEGATE"); } } - class DomOutlineViewDataSource : NSOutlineViewDataSource - { + class DomOutlineViewDataSource : NSOutlineViewDataSource { WebView webView; DomNodeList GetChildren (NSObject item) diff --git a/tests/run-with-timeout.csharp b/tests/run-with-timeout.csharp new file mode 100755 index 0000000000..e676a95107 --- /dev/null +++ b/tests/run-with-timeout.csharp @@ -0,0 +1,82 @@ +#!/usr/bin/env /Library/Frameworks/Mono.framework/Commands/csharp -s + +// arguments are: + +using System.Diagnostics; +using System.IO; +using System.Threading; +using System.Xml; + +var args = Environment.GetCommandLineArgs (); +var initialArgumentCount = 3; +if (args.Length <= initialArgumentCount + 1 /* 3 default arguments (executable + script + -s) */) { + // first arg is "/Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/4.5/csharp.exe" + // second arg the script itself + // third argument is -s + // then comes the ones we care about + Console.WriteLine ($"Need two arguments (the timeout + the command to launch), got {args.Length - initialArgumentCount} argument(s)"); + Environment.Exit (1); + return; +} + +var launchTimeout = TimeSpan.FromSeconds (10); // must launch within a few seconds. +var argIndex = initialArgumentCount; +var executionTimeout = TimeSpan.FromSeconds (int.Parse (args [argIndex++])); +var commands = args.Skip (argIndex).ToArray (); + +var pid = Process.GetCurrentProcess ().Id; +var maxLaunchAttempts = 10; +var exitCode = -1; +for (var attempt = 0; attempt < maxLaunchAttempts; attempt++) { + var launchTimeoutFile = Path.GetFullPath ($"launch-timeout-sentinel-{pid}-{attempt}.txt"); + var launchTimedOut = new ManualResetEvent (false); + var p = new Process (); + + var launchTimer = new Thread (() => { + if (p.WaitForExit ((int) launchTimeout.TotalMilliseconds)) { + Console.WriteLine ($"App finished before launch timeout triggered."); + } else if (!File.Exists (launchTimeoutFile)) { + Console.WriteLine ($"Launch timed out after {launchTimeout.TotalSeconds} seconds."); + launchTimedOut.Set (); + p.Kill (); + } + }) { + IsBackground = true, + }; + + try { + p.StartInfo.FileName = commands [0]; + p.StartInfo.Arguments = string.Join (" ", commands.Skip (1)); + p.StartInfo.UseShellExecute = false; + p.StartInfo.EnvironmentVariables ["LAUNCH_SENTINEL_FILE"] = launchTimeoutFile; + + Console.WriteLine ($"Launching (attempt #{attempt + 1}):"); + Console.WriteLine ($" {p.StartInfo.FileName} {p.StartInfo.Arguments}"); + + p.Start (); + + launchTimer.Start (); + + if (!p.WaitForExit ((int) executionTimeout.TotalMilliseconds)) { + Console.WriteLine ($"Execution timed out after {executionTimeout.TotalSeconds} seconds."); + p.Kill (); + p.WaitForExit (); + } + + launchTimer.Join (); + + exitCode = p.ExitCode; + + if (launchTimedOut.WaitOne (0)) { + Console.WriteLine ($"Launching again since the launch timeout triggered."); + continue; + } + Console.WriteLine ($"Execution completed with exit code {exitCode}"); + } finally { + File.Delete (launchTimeoutFile); + p.Dispose (); + } + break; +} + +Environment.Exit (exitCode); diff --git a/tests/sampletester/Configuration.cs b/tests/sampletester/Configuration.cs index f1828e107e..5b98c77428 100644 --- a/tests/sampletester/Configuration.cs +++ b/tests/sampletester/Configuration.cs @@ -3,7 +3,7 @@ using System.IO; using System.Reflection; namespace Xamarin.Tests { - public partial class Configuration { + public partial class Configuration { static object lock_obj = new object (); static string sample_root_directory; public static string SampleRootDirectory { diff --git a/tests/sampletester/ProcessHelper.cs b/tests/sampletester/ProcessHelper.cs index a59c8a1b29..cbc2c3d9e4 100644 --- a/tests/sampletester/ProcessHelper.cs +++ b/tests/sampletester/ProcessHelper.cs @@ -14,8 +14,7 @@ using Xamarin; using Xamarin.Tests; using Xamarin.Utils; -public static class ProcessHelper -{ +public static class ProcessHelper { static int counter; static string log_directory; @@ -28,12 +27,12 @@ public static class ProcessHelper } - public static void AssertRunProcess (string filename, string[] arguments, TimeSpan timeout, string workingDirectory, Dictionary environment_variables, string message) + public static void AssertRunProcess (string filename, string [] arguments, TimeSpan timeout, string workingDirectory, Dictionary environment_variables, string message) { AssertRunProcess (filename, arguments, timeout, workingDirectory, environment_variables, message, out _); } - public static void AssertRunProcess (string filename, string[] arguments, TimeSpan timeout, string workingDirectory, Dictionary environment_variables, string message, out string logfile) + public static void AssertRunProcess (string filename, string [] arguments, TimeSpan timeout, string workingDirectory, Dictionary environment_variables, string message, out string logfile) { var exitCode = 0; var output = new List (); diff --git a/tests/sampletester/SampleTester.cs b/tests/sampletester/SampleTester.cs index f93c72fbcd..3b9e2d4610 100644 --- a/tests/sampletester/SampleTester.cs +++ b/tests/sampletester/SampleTester.cs @@ -15,14 +15,14 @@ namespace Samples { public bool BuildSolution; public string KnownFailure; public string CodesignKey; - public string[] DebugConfigurations; - public string[] ReleaseConfigurations; - public string[] Platforms; + public string [] DebugConfigurations; + public string [] ReleaseConfigurations; + public string [] Platforms; // for various reasons (build'ability, compatibility, performance) it can be // better to build a subset of a solution // e.g. `nuget restore` requires removing the projects from the .sln - public string[] RemoveProjects; + public string [] RemoveProjects; } public class SampleTestData { @@ -218,7 +218,7 @@ namespace Samples { Select ((v) => GetProjectInfo (v, Path.Combine (GitHub.CloneRepository (org, repo, hash, default_branch, false), v))). Where ((v) => v.IsApplicable (false)). ToArray (); - + projects [repo] = rv; } return rv; diff --git a/tests/scripted/bug-35786/Main.cs b/tests/scripted/bug-35786/Main.cs index de40dd37af..4e92cf266b 100644 --- a/tests/scripted/bug-35786/Main.cs +++ b/tests/scripted/bug-35786/Main.cs @@ -1,5 +1,4 @@ -class M -{ +class M { static void Main () { System.Console.WriteLine (typeof (UIKit.UIWindow)); diff --git a/tests/scriptingbridge/finder.cs b/tests/scriptingbridge/finder.cs index e8943196ca..ece84bcc9a 100644 --- a/tests/scriptingbridge/finder.cs +++ b/tests/scriptingbridge/finder.cs @@ -2,30 +2,25 @@ using Foundation; using ObjCRuntime; using ScriptingBridge; -namespace Finder -{ - [BaseType (typeof(SBObject))] - interface FinderItem - { +namespace Finder { + [BaseType (typeof (SBObject))] + interface FinderItem { [Export ("name")] string Name { get; } } - [BaseType (typeof(FinderItem))] - interface FinderContainer - { + [BaseType (typeof (FinderItem))] + interface FinderContainer { } - [BaseType (typeof(FinderContainer))] - interface FinderTrashObject - { + [BaseType (typeof (FinderContainer))] + interface FinderTrashObject { [Export ("items")] SBElementArray Items { get; } } - [BaseType (typeof(SBApplication))] - interface FinderApplication - { + [BaseType (typeof (SBApplication))] + interface FinderApplication { [Export ("trash")] FinderTrashObject Trash { get; } } diff --git a/tests/scriptingbridge/test.cs b/tests/scriptingbridge/test.cs index 4eefa0bdf0..01f3c7c044 100644 --- a/tests/scriptingbridge/test.cs +++ b/tests/scriptingbridge/test.cs @@ -3,17 +3,15 @@ using Finder; using AppKit; using ScriptingBridge; -namespace ScriptingBridge.Tests -{ - public static class MainClass - { - static int Main (string[] args) +namespace ScriptingBridge.Tests { + public static class MainClass { + static int Main (string [] args) { FinderApplication app = SBApplication.FromBundleIdentifier ("com.apple.finder"); - if ((int)app.Trash.Items.Count > 0) { - for (int i = 0 ; i < (int)app.Trash.Items.Count ; ++i) { - FinderItem item = app.Trash.Items.GetItem ((nuint)i); + if ((int) app.Trash.Items.Count > 0) { + for (int i = 0; i < (int) app.Trash.Items.Count; ++i) { + FinderItem item = app.Trash.Items.GetItem ((nuint) i); if (item.Name == null) return 0; } diff --git a/tests/templates/TodayContainer/Main.cs b/tests/templates/TodayContainer/Main.cs index bf84d2dc52..d56cfc156f 100644 --- a/tests/templates/TodayContainer/Main.cs +++ b/tests/templates/TodayContainer/Main.cs @@ -8,8 +8,7 @@ using NUnit.Framework; using NUnit.Framework.Internal; [Register ("AppDelegate")] -public partial class AppDelegate : UIApplicationDelegate -{ +public partial class AppDelegate : UIApplicationDelegate { UIWindow window; TouchRunner runner; @@ -26,7 +25,7 @@ public partial class AppDelegate : UIApplicationDelegate return true; } - static void Main (string[] args) + static void Main (string [] args) { UIApplication.Main (args, null, typeof (AppDelegate)); } @@ -42,8 +41,7 @@ public partial class AppDelegate : UIApplicationDelegate // the container app, which will immediately auto-exit (since it only has a single // test). [TestFixture] -class Dummy -{ +class Dummy { [Test] public void Test () { diff --git a/tests/templates/TodayExtension/TodayExtensionMain.cs b/tests/templates/TodayExtension/TodayExtensionMain.cs index 04c48fc72d..80fa62c9e0 100644 --- a/tests/templates/TodayExtension/TodayExtensionMain.cs +++ b/tests/templates/TodayExtension/TodayExtensionMain.cs @@ -10,11 +10,10 @@ using NUnit.Framework.Internal; using NUnit.Framework.Internal.Filters; [Register ("TodayViewController")] -public partial class TodayViewController : UIViewController, INCWidgetProviding -{ +public partial class TodayViewController : UIViewController, INCWidgetProviding { ConsoleRunner runner; - protected TodayViewController (IntPtr handle) : base (handle) {} + protected TodayViewController (IntPtr handle) : base (handle) { } [Export ("widgetPerformUpdateWithCompletionHandler:")] public void WidgetPerformUpdate (Action completionHandler) @@ -22,11 +21,9 @@ public partial class TodayViewController : UIViewController, INCWidgetProviding runner = new ConsoleRunner (); runner.Add (System.Reflection.Assembly.GetExecutingAssembly ()); runner.Filter = new NotFilter (new CategoryExpression ("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingLinqInterpreter").Filter); - System.Threading.ThreadPool.QueueUserWorkItem ((v) => - { + System.Threading.ThreadPool.QueueUserWorkItem ((v) => { runner.LoadSync (); - BeginInvokeOnMainThread (() => - { + BeginInvokeOnMainThread (() => { runner.AutoStart = true; // There's no UI for today extensions (yet), so unless we autostart the tests, there's no way to run them when running from the IDE. runner.AutoRun (); }); diff --git a/tests/templates/WatchContainer/AppDelegate.cs b/tests/templates/WatchContainer/AppDelegate.cs index e0b4ec42b2..b979ae465c 100644 --- a/tests/templates/WatchContainer/AppDelegate.cs +++ b/tests/templates/WatchContainer/AppDelegate.cs @@ -1,13 +1,11 @@ using Foundation; using UIKit; -namespace Container -{ +namespace Container { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to application events from iOS. [Register ("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { + public class AppDelegate : UIApplicationDelegate { // class-level declarations public override UIWindow Window { diff --git a/tests/templates/WatchContainer/Main.cs b/tests/templates/WatchContainer/Main.cs index 4cfa17a9b4..2e72262ced 100644 --- a/tests/templates/WatchContainer/Main.cs +++ b/tests/templates/WatchContainer/Main.cs @@ -1,11 +1,9 @@ using UIKit; -namespace Container -{ - public class Application - { +namespace Container { + public class Application { // This is the main entry point of the application. - static void Main (string[] args) + static void Main (string [] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. diff --git a/tests/templates/WatchContainer/ViewController.cs b/tests/templates/WatchContainer/ViewController.cs index 55a771fbbe..5b4dd7ea87 100644 --- a/tests/templates/WatchContainer/ViewController.cs +++ b/tests/templates/WatchContainer/ViewController.cs @@ -2,10 +2,8 @@ using System; using UIKit; -namespace Container -{ - public partial class ViewController : UIViewController - { +namespace Container { + public partial class ViewController : UIViewController { public ViewController (IntPtr handle) : base (handle) { } diff --git a/tests/templates/WatchExtension/InterfaceController.cs b/tests/templates/WatchExtension/InterfaceController.cs index 38322540ce..9892c5b0ad 100644 --- a/tests/templates/WatchExtension/InterfaceController.cs +++ b/tests/templates/WatchExtension/InterfaceController.cs @@ -7,8 +7,7 @@ using Foundation; using MonoTouch.NUnit.UI; -public static partial class TestLoader -{ +public static partial class TestLoader { static partial void AddTestAssembliesImpl (BaseTouchRunner runner); public static void AddTestAssemblies (BaseTouchRunner runner) @@ -17,11 +16,9 @@ public static partial class TestLoader } } -namespace monotouchtestWatchKitExtension -{ +namespace monotouchtestWatchKitExtension { [Register ("InterfaceController")] - public partial class InterfaceController : WKInterfaceController - { + public partial class InterfaceController : WKInterfaceController { WatchOSRunner runner; bool running; @@ -45,12 +42,10 @@ namespace monotouchtestWatchKitExtension static InterfaceController () { - ObjCRuntime.Runtime.MarshalManagedException += (object sender, ObjCRuntime.MarshalManagedExceptionEventArgs args) => - { + ObjCRuntime.Runtime.MarshalManagedException += (object sender, ObjCRuntime.MarshalManagedExceptionEventArgs args) => { Console.WriteLine ("Managed exception: {0}", args.Exception); }; - ObjCRuntime.Runtime.MarshalObjectiveCException += (object sender, ObjCRuntime.MarshalObjectiveCExceptionEventArgs args) => - { + ObjCRuntime.Runtime.MarshalObjectiveCException += (object sender, ObjCRuntime.MarshalObjectiveCExceptionEventArgs args) => { Console.WriteLine ("Objective-C exception: {0}", args.Exception); }; } @@ -83,11 +78,9 @@ namespace monotouchtestWatchKitExtension runner.ExcludedCategories = new HashSet (excludeCategories); runner.Add (GetType ().Assembly); TestLoader.AddTestAssemblies (runner); - ThreadPool.QueueUserWorkItem ((v) => - { + ThreadPool.QueueUserWorkItem ((v) => { runner.LoadSync (); - BeginInvokeOnMainThread (() => - { + BeginInvokeOnMainThread (() => { lblStatus.SetText (string.Format ("{0} tests", runner.TestCount)); RenderResults (); cmdRun.SetEnabled (true); diff --git a/tests/templates/iOSApp/Main.cs b/tests/templates/iOSApp/Main.cs index ebf01cb4c5..74139494fd 100644 --- a/tests/templates/iOSApp/Main.cs +++ b/tests/templates/iOSApp/Main.cs @@ -8,8 +8,7 @@ using NUnit.Framework; using NUnit.Framework.Internal; [Register ("AppDelegate")] -public partial class AppDelegate : UIApplicationDelegate -{ +public partial class AppDelegate : UIApplicationDelegate { UIWindow window; TouchRunner runner; @@ -26,7 +25,7 @@ public partial class AppDelegate : UIApplicationDelegate return true; } - static void Main (string[] args) + static void Main (string [] args) { UIApplication.Main (args, null, typeof (AppDelegate)); } diff --git a/tests/templates/tvOSApp/Main.cs b/tests/templates/tvOSApp/Main.cs index db5ff1eaa5..825f1b4360 100644 --- a/tests/templates/tvOSApp/Main.cs +++ b/tests/templates/tvOSApp/Main.cs @@ -8,8 +8,7 @@ using NUnit.Framework; using NUnit.Framework.Internal; [Register ("AppDelegate")] -public partial class AppDelegate : UIApplicationDelegate -{ +public partial class AppDelegate : UIApplicationDelegate { UIWindow window; TouchRunner runner; @@ -26,15 +25,14 @@ public partial class AppDelegate : UIApplicationDelegate return true; } - static void Main (string[] args) + static void Main (string [] args) { UIApplication.Main (args, null, typeof (AppDelegate)); } } [TestFixture] -public class SimpleTest -{ +public class SimpleTest { [Test] public void Success () { diff --git a/tests/test-libraries/testgenerator.cs b/tests/test-libraries/testgenerator.cs index cd732f5ddc..5c7119b6c4 100644 --- a/tests/test-libraries/testgenerator.cs +++ b/tests/test-libraries/testgenerator.cs @@ -6,8 +6,7 @@ using System.Text; static class C { [Flags] - enum Architecture - { + enum Architecture { None = 0, X86 = 1, X64 = 2, @@ -50,8 +49,7 @@ static class C { static string [] structs = structs_and_stret.Select ((v) => v.IndexOf (':') >= 0 ? v.Substring (0, v.IndexOf (':')) : v).ToArray (); static Architecture [] strets = structs_and_stret.Select ((v) => v.IndexOf (':') >= 0 ? (Architecture) int.Parse (v.Substring (v.IndexOf (':') + 1)) : Architecture.None).ToArray (); - class BindAsData - { + class BindAsData { public string Managed; public string Native; public string ManagedCondition; @@ -81,7 +79,7 @@ static class C { new BindAsData { Managed = "Boolean", Native = "BOOL", ManagedNewExpression = "true", Map = ".BoolValue" }, new BindAsData { Managed = "NSStreamStatus", Native = "NSStreamStatus", ManagedNewExpression = "NSStreamStatus.Closed", Map = ".UInt64Value", ToNSNumberCastExpression = "(ulong) ", FromNSNumberCastExpression = "(NSStreamStatus) " }, }; - static BindAsData[] bindas_nsvalue = new [] { + static BindAsData [] bindas_nsvalue = new [] { new BindAsData { Managed = "CGAffineTransform", Native = "CGAffineTransform", ManagedCondition = "!__MACOS__", ManagedNewExpression = "new CGAffineTransform (1, 2, 3, 4, 5, 6)", Map = ".CGAffineTransformValue", MapFrom = "FromCGAffineTransform" }, new BindAsData { Managed = "NSRange", Native = "NSRange", ManagedNewExpression = "new NSRange (7, 8)", Map = ".RangeValue", MapFrom = "FromRange" }, new BindAsData { Managed = "CGVector", Native = "CGVector", ManagedCondition = "!__MACOS__", ManagedNewExpression = "new CGVector (9, 10)", Map = ".CGVectorValue", MapFrom = "FromCGVector", MinXcodeVersion = new Version (8, 0) }, @@ -341,7 +339,7 @@ static class C { #define HAVE_MAPKIT "); - + } static void WriteApiDefinition () @@ -375,7 +373,7 @@ namespace Bindings.Test { partial interface ObjCRegistrarTest { "); - + foreach (var s in structs) { w.AppendLine ($"\t\t[Export (\"PS{s}\")]"); w.AppendLine ($"\t\tS{s} PS{s} {{ get; set; }}"); @@ -404,7 +402,7 @@ namespace Bindings.Test { w.AppendLine ($"\t\t[return: BindAs (typeof ({v.Managed}))]"); w.AppendLine ($"\t\t[return: NullAllowed] // This should be the default"); w.AppendLine ($"\t\tNSNumber Get{v.Managed}NumberNonNullable ();"); - + w.AppendLine (); w.AppendLine ($"\t\t[Export (\"set{v.Managed}NumberNonNullable:\")]"); w.AppendLine ($"\t\tvoid Set{v.Managed}NumberNonNullable ([BindAs (typeof ({v.Managed}))] NSNumber value);"); @@ -1070,7 +1068,7 @@ namespace MonoTouchFixtures.ObjCRuntime { w.AppendLine ($"\t\t\t}}"); w.AppendLine ("\t\t}"); - if (v.ManagedCondition != null) + if (v.ManagedCondition != null) w.AppendLine ("#endif"); w.AppendLine (); @@ -1241,7 +1239,7 @@ namespace MonoTouchFixtures.ObjCRuntime { if (v.ManagedCondition != null) w.AppendLine ("#endif"); - + w.AppendLine (); } @@ -1274,7 +1272,7 @@ namespace MonoTouchFixtures.ObjCRuntime { w.AppendLine ($"\t\t\t\tAssert.AreEqual (value.Value, obj.GetSmart{v.Managed}Value (), \"non-nullable get method after setting custom value\");"); w.AppendLine (); - w.AppendLine ($"\t\t\t\tvalue = null;"); + w.AppendLine ($"\t\t\t\tvalue = null;"); w.AppendLine ($"\t\t\t\tobj.SetSmartNullable{v.Managed}Value (value);"); w.AppendLine ($"\t\t\t\tAssert.Throws (() => {{ Console.WriteLine (obj.PSmart{v.Managed}Property); }}, \"null property after setting null value\");"); w.AppendLine ($"\t\t\t\tAssert.Throws (() => {{ Console.WriteLine (obj.GetSmart{v.Managed}Value ()); }}, \"non-nullable method after setting null value\");"); diff --git a/tests/xcframework-test/dotnet/shared.csproj b/tests/xcframework-test/dotnet/shared.csproj index 68673a9ff5..80466ebc6a 100644 --- a/tests/xcframework-test/dotnet/shared.csproj +++ b/tests/xcframework-test/dotnet/shared.csproj @@ -32,5 +32,11 @@ + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/xcframework-test/iOS/AppDelegate.cs b/tests/xcframework-test/iOS/AppDelegate.cs index 9c5065ea97..6cf252b489 100644 --- a/tests/xcframework-test/iOS/AppDelegate.cs +++ b/tests/xcframework-test/iOS/AppDelegate.cs @@ -5,8 +5,7 @@ using System.Collections.Generic; using Foundation; -public partial class AppDelegate -{ +public partial class AppDelegate { public partial IEnumerable GetTestAssemblies () { return new Assembly [] { diff --git a/tests/xcframework-test/macOS/xcframework-test-mac.csproj b/tests/xcframework-test/macOS/xcframework-test-mac.csproj index 2ffee8fa7e..c33c25f5cf 100644 --- a/tests/xcframework-test/macOS/xcframework-test-mac.csproj +++ b/tests/xcframework-test/macOS/xcframework-test-mac.csproj @@ -18,6 +18,8 @@ x86_64 PackageReference + latest + true true @@ -67,6 +69,12 @@ MacMain.cs + + TestRuntime.cs + + + ApplePlatform.cs + diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/RegisterType.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/RegisterType.cs index d07b8374a1..7fe952b89f 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/RegisterType.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/RegisterType.cs @@ -8,25 +8,24 @@ _REPLACE_USING_REPLACE_ namespace Xamarin.iOS.UnitTests { // autogenerated class that uses types from the test assemblies so that // they are aot and not linked away. - public static class RegisterType - { + public static class RegisterType { public static bool IsXUnit = _REPLACE_IS_XUNIT_REPLACE_; - public static Dictionary TypesToRegister = new Dictionary { + public static Dictionary TypesToRegister = new Dictionary { _REPLACE_KEY_VALUES_REPLACE_ }; - public static void RegisterTypes () + public static void RegisterTypes () { // line used to ensure that the runner is not remove by the linker :/ #if MONOMAC Console.WriteLine ($"Got the runner for the linker {typeof(Xunit.Sdk.AllException)}"); #else - Console.WriteLine ($"Got the runner for the linker {typeof(Xunit.Sdk.TypeUtility)}"); + Console.WriteLine ($"Got the runner for the linker {typeof (Xunit.Sdk.TypeUtility)}"); #endif foreach (var a in TypesToRegister.Keys) { // do something with the type, so that it is not removed - var assemblyPath = Path.GetFileName (TypesToRegister[a].Assembly.Location); - Console.WriteLine ($"We are using type {TypesToRegister[a]} from assembly {assemblyPath}"); + var assemblyPath = Path.GetFileName (TypesToRegister [a].Assembly.Location); + Console.WriteLine ($"We are using type {TypesToRegister [a]} from assembly {assemblyPath}"); } } } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/ApplicationOptions.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/ApplicationOptions.cs index c65ee083ee..49032fe249 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/ApplicationOptions.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/ApplicationOptions.cs @@ -5,7 +5,7 @@ using Mono.Options; using Xamarin.iOS.UnitTests; namespace BCLTests { - + public enum XmlMode { Default = 0, Wrapped = 1, @@ -19,7 +19,7 @@ namespace BCLTests { public class ApplicationOptions { static public ApplicationOptions Current = new ApplicationOptions (); - + public ApplicationOptions () { var defaults = NSUserDefaults.StandardUserDefaults; @@ -28,13 +28,13 @@ namespace BCLTests { EnableNetwork = defaults.BoolForKey ("network.enabled"); EnableXml = defaults.BoolForKey ("xml.enabled"); HostName = defaults.StringForKey ("network.host.name"); - HostPort = (int)defaults.IntForKey ("network.host.port"); + HostPort = (int) defaults.IntForKey ("network.host.port"); UseTcpTunnel = defaults.BoolForKey ("execution.usetcptunnel"); Transport = defaults.StringForKey ("network.transport"); SortNames = defaults.BoolForKey ("display.sort"); LogFile = defaults.StringForKey ("log.file"); ResultFile = defaults.StringForKey ("result.file"); - + bool b; if (bool.TryParse (Environment.GetEnvironmentVariable ("NUNIT_AUTOEXIT"), out b)) TerminateAfterExecution = b; @@ -60,7 +60,7 @@ namespace BCLTests { XmlMode = (XmlMode) Enum.Parse (typeof (XmlMode), xml_mode, true); var xml_version = Environment.GetEnvironmentVariable ("NUNIT_XML_VERSION"); if (!string.IsNullOrEmpty (xml_version)) - XmlVersion = (XmlVersion)Enum.Parse (typeof (XmlVersion), xml_version, true); + XmlVersion = (XmlVersion) Enum.Parse (typeof (XmlVersion), xml_version, true); if (!string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("NUNIT_LOG_FILE"))) LogFile = Environment.GetEnvironmentVariable ("NUNIT_LOG_FILE"); @@ -78,14 +78,14 @@ namespace BCLTests { { "logfile=", "A path where output will be saved.", v => LogFile = v }, { "result=", "The path to be used to store the result", v => ResultFile = v}, }; - + try { os.Parse (Environment.GetCommandLineArgs ()); } catch (OptionException oe) { Console.WriteLine ("{0} for options '{1}'", oe.Message, oe.OptionName); } } - + private bool EnableNetwork { get; set; } public XmlMode XmlMode { get; set; } @@ -93,21 +93,21 @@ namespace BCLTests { public XmlVersion XmlVersion { get; set; } = XmlVersion.NUnitV2; public bool EnableXml { get; set; } - + public string HostName { get; private set; } - + public int HostPort { get; private set; } - + public bool UseTcpTunnel { get; set; } = false; public bool AutoStart { get; set; } - + public bool TerminateAfterExecution { get; set; } - + public string Transport { get; set; } = "TCP"; public string LogFile { get; set; } - + public string ResultFile { get; set; } public bool ShowUseNetworkLogger { diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/IgnoreFileParser.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/IgnoreFileParser.cs index 186aa5df36..3f7d73a453 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/IgnoreFileParser.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/IgnoreFileParser.cs @@ -22,13 +22,13 @@ namespace BCLTests { line = line.Remove (pos); } line = line.Trim (); - return line; + return line; } public static async Task> ParseStreamAsync (TextReader textReader) { var ignoredMethods = new List (); string line; - while ((line = await textReader.ReadLineAsync()) != null) { + while ((line = await textReader.ReadLineAsync ()) != null) { // we have to make sure of several things, first, lets // remove any char after the first # which would mean // we have comments: @@ -57,7 +57,7 @@ namespace BCLTests { } return ignoredTests; } - + public static async Task> ParseContentFilesAsync (string contentDir) { var ignoredTests = new List (); @@ -69,7 +69,7 @@ namespace BCLTests { } return ignoredTests; } - + public static async Task> ParseTraitsContentFileAsync (string contentDir, bool isXUnit) { var ignoredTraits = new List (); @@ -84,7 +84,7 @@ namespace BCLTests { } return ignoredTraits; } - + public static IEnumerable ParseTraitsContentFile (string contentDir, bool isXUnit) { var ignoredTraits = new List (); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/Extensions.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/Extensions.cs index bc4a21070b..3246171bc0 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/Extensions.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/Extensions.cs @@ -1,7 +1,5 @@ -namespace Xamarin.iOS.UnitTests -{ - public static partial class Extensions - { +namespace Xamarin.iOS.UnitTests { + public static partial class Extensions { public static string YesNo (this bool b) { return b ? "yes" : "no"; diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/HttpTextWriter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/HttpTextWriter.cs index 43ace16cf3..2f993c4c36 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/HttpTextWriter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/HttpTextWriter.cs @@ -14,9 +14,8 @@ using System.Threading.Tasks; using Foundation; -namespace BCLTests.TestRunner.Core { - class HttpTextWriter : TextWriter - { +namespace BCLTests.TestRunner.Core { + class HttpTextWriter : TextWriter { public string HostName; public int Port; @@ -40,8 +39,7 @@ namespace BCLTests.TestRunner.Core { { var valueWasSet = closed.TrySetResult (true); if (valueWasSet) { - Task.Run (async () => - { + Task.Run (async () => { await finished.Task; base.Close (); }); @@ -54,8 +52,7 @@ namespace BCLTests.TestRunner.Core { var tcs = new TaskCompletionSource (); var request = new NSMutableUrlRequest (url); request.HttpMethod = "POST"; - var rv = NSUrlSession.SharedSession.CreateUploadTask (request, NSData.FromString (uploadData), (NSData data, NSUrlResponse response, NSError error) => - { + var rv = NSUrlSession.SharedSession.CreateUploadTask (request, NSData.FromString (uploadData), (NSData data, NSUrlResponse response, NSError error) => { if (error != null) { Console.WriteLine ("Failed to send data to {0}: {1}", url.AbsoluteString, error); tcs.SetResult (false); @@ -91,14 +88,13 @@ namespace BCLTests.TestRunner.Core { } catch (Exception ex) { Console.WriteLine ("HttpTextWriter failed: {0}", ex); } finally { - finished.SetResult (true); + finished.SetResult (true); } } public void Open () { - new Thread (SendThread) - { + new Thread (SendThread) { IsBackground = true, }.Start (); } @@ -114,7 +110,7 @@ namespace BCLTests.TestRunner.Core { Console.Out.Write (buffer); log.Append (buffer); } - + public override void WriteLine (string value) { Console.Out.WriteLine (value); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/LogWriter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/LogWriter.cs index 7287f25201..4fef4a0b3e 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/LogWriter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/LogWriter.cs @@ -7,42 +7,40 @@ using UIKit; using ObjCRuntime; using Constants = global::ObjCRuntime.Constants; -namespace Xamarin.iOS.UnitTests -{ - public class LogWriter - { +namespace Xamarin.iOS.UnitTests { + public class LogWriter { TextWriter writer; public MinimumLogLevel MinimumLogLevel { get; set; } = MinimumLogLevel.Info; public LogWriter () : this (Console.Out) { } - + public LogWriter (TextWriter w) { writer = w ?? Console.Out; InitLogging (); } - + [System.Runtime.InteropServices.DllImport ("/usr/lib/libobjc.dylib")] static extern IntPtr objc_msgSend (IntPtr receiver, IntPtr selector); - + static string UniqueIdentifier { get { #if !__WATCHOS__ && !MONOMAC IntPtr handle = UIDevice.CurrentDevice.Handle; if (UIDevice.CurrentDevice.RespondsToSelector (new Selector ("uniqueIdentifier"))) - return NSString.FromHandle (objc_msgSend (handle, Selector.GetHandle("uniqueIdentifier"))); + return NSString.FromHandle (objc_msgSend (handle, Selector.GetHandle ("uniqueIdentifier"))); #endif return "unknown"; } } - + public void InitLogging () { #if !__WATCHOS__ && !MONOMAC UIDevice device = UIDevice.CurrentDevice; #endif - + // print some useful info writer.WriteLine ("[Runner executing:\t{0}]", "Run everything"); writer.WriteLine ("[MonoTouch Version:\t{0}]", Constants.Version); @@ -95,7 +93,7 @@ namespace Xamarin.iOS.UnitTests writer.WriteLine (message); writer.Flush (); } - + public void Info (string message) { writer.WriteLine (message); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/MinimumLogLevel.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/MinimumLogLevel.cs index f4c9ae7e48..d275199041 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/MinimumLogLevel.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/MinimumLogLevel.cs @@ -1,9 +1,7 @@ using System; -namespace Xamarin.iOS.UnitTests -{ - public enum MinimumLogLevel - { +namespace Xamarin.iOS.UnitTests { + public enum MinimumLogLevel { Critical, Error, Warning, diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TcpTextWriter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TcpTextWriter.cs index 9a559625c2..5299234d5c 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TcpTextWriter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TcpTextWriter.cs @@ -15,12 +15,12 @@ using UIKit; namespace BCLTests.TestRunner.Core { public class TcpTextWriter : TextWriter { - + TcpClient client; TcpListener server; StreamWriter writer; - - static string SelectHostName (string[] names, int port) + + static string SelectHostName (string [] names, int port) { if (names.Length == 0) return null; @@ -35,26 +35,25 @@ namespace BCLTests.TestRunner.Core { using (var evt = new ManualResetEvent (false)) { for (int i = names.Length - 1; i >= 0; i--) { var name = names [i]; - ThreadPool.QueueUserWorkItem ((v) => - { - try { - var client = new TcpClient (name, port); - using (var writer = new StreamWriter (client.GetStream ())) { - writer.WriteLine ("ping"); - } - lock (lock_obj) { - if (result == null) - result = name; - } - evt.Set (); - } catch (Exception) { - lock (lock_obj) { - failures++; - if (failures == names.Length) - evt.Set (); - } + ThreadPool.QueueUserWorkItem ((v) => { + try { + var client = new TcpClient (name, port); + using (var writer = new StreamWriter (client.GetStream ())) { + writer.WriteLine ("ping"); } - }); + lock (lock_obj) { + if (result == null) + result = name; + } + evt.Set (); + } catch (Exception) { + lock (lock_obj) { + failures++; + if (failures == names.Length) + evt.Set (); + } + } + }); } // Wait for 1 success or all failures @@ -67,7 +66,7 @@ namespace BCLTests.TestRunner.Core { public TcpTextWriter (string hostName, int port, bool isTunnel = false) { if ((port < 0) || (port > ushort.MaxValue)) - throw new ArgumentOutOfRangeException (nameof (port), $"Port must be between 0 and {ushort.MaxValue}" ); + throw new ArgumentOutOfRangeException (nameof (port), $"Port must be between 0 and {ushort.MaxValue}"); if (!isTunnel && hostName == null) throw new ArgumentNullException (nameof (hostName)); @@ -98,17 +97,16 @@ namespace BCLTests.TestRunner.Core { client = new TcpClient (HostName, port); } writer = new StreamWriter (client.GetStream ()); - } - catch { + } catch { #if __IOS__ UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false; #endif throw; } } - + public string HostName { get; private set; } - + public int Port { get; private set; } // we override everything that StreamWriter overrides from TextWriter @@ -122,10 +120,10 @@ namespace BCLTests.TestRunner.Core { #endif writer.Close (); } - + protected override void Dispose (bool disposing) { - writer.Dispose (); + writer.Dispose (); } public override void Flush () @@ -138,13 +136,13 @@ namespace BCLTests.TestRunner.Core { { writer.Write (value); } - - public override void Write (char[] buffer) + + public override void Write (char [] buffer) { - writer.Write (buffer); + writer.Write (buffer); } - - public override void Write (char[] buffer, int index, int count) + + public override void Write (char [] buffer, int index, int count) { writer.Write (buffer, index, count); } @@ -153,7 +151,7 @@ namespace BCLTests.TestRunner.Core { { writer.Write (value); } - + // special extra override to ensure we flush data regularly public override void WriteLine () diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestAssemblyInfo.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestAssemblyInfo.cs index 93858c4b30..e1985d1d3a 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestAssemblyInfo.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestAssemblyInfo.cs @@ -1,10 +1,8 @@ using System; using System.Reflection; -namespace Xamarin.iOS.UnitTests -{ - public class TestAssemblyInfo - { +namespace Xamarin.iOS.UnitTests { + public class TestAssemblyInfo { public Assembly Assembly { get; } public string FullPath { get; } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestCompletionStatus.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestCompletionStatus.cs index 1f7d214beb..eb3c0f3c9c 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestCompletionStatus.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestCompletionStatus.cs @@ -1,7 +1,5 @@ -namespace Xamarin.iOS.UnitTests -{ - public enum TestCompletionStatus - { +namespace Xamarin.iOS.UnitTests { + public enum TestCompletionStatus { Undefined, Passed, Failed, diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestExecutionState.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestExecutionState.cs index a8df82b43a..0ed2a47002 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestExecutionState.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestExecutionState.cs @@ -1,16 +1,14 @@ using System; -namespace Xamarin.iOS.UnitTests -{ - public class TestExecutionState - { +namespace Xamarin.iOS.UnitTests { + public class TestExecutionState { public string TestName { get; internal set; } public TimeSpan Started { get; private set; } = TimeSpan.MinValue; public TimeSpan Finished { get; private set; } = TimeSpan.MinValue; public TestCompletionStatus CompletionStatus { get; set; } = TestCompletionStatus.Undefined; internal TestExecutionState () - {} + { } internal void Start () { diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestFailureInfo.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestFailureInfo.cs index 799e1bcd24..0a7b6adb93 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestFailureInfo.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestFailureInfo.cs @@ -1,15 +1,13 @@ using System; -namespace Xamarin.iOS.UnitTests -{ +namespace Xamarin.iOS.UnitTests { /// /// Contains information about a single test failure. Information is used at the end of the run to print /// summary of failures to logcat as well as put them in the results Bundle. is used /// only to generate unique index when storing information in the Bundle, so must contain /// the test name. /// - public class TestFailureInfo - { + public class TestFailureInfo { /// /// Gets or sets the name of the test. Must not be null or empty (all whitespace isn't allowed either) /// diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelector.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelector.cs index f371375d49..3a175e1c1e 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelector.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelector.cs @@ -1,9 +1,7 @@ using System; -namespace Xamarin.iOS.UnitTests -{ - public class TestRunSelector - { +namespace Xamarin.iOS.UnitTests { + public class TestRunSelector { public string Assembly { get; set; } public string Value { get; set; } public TestRunSelectorType Type { get; set; } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelectorType.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelectorType.cs index 67180421c0..3e8a2395d5 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelectorType.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunSelectorType.cs @@ -1,9 +1,7 @@ using System; -namespace Xamarin.iOS.UnitTests -{ - public enum TestRunSelectorType - { +namespace Xamarin.iOS.UnitTests { + public enum TestRunSelectorType { Assembly, Namespace, Class, diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunner.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunner.cs index 74c3f73aef..43f525a0d7 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunner.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/Core/TestRunner.cs @@ -5,10 +5,8 @@ using System.Reflection; using System.Threading.Tasks; -namespace Xamarin.iOS.UnitTests -{ - public abstract class TestRunner - { +namespace Xamarin.iOS.UnitTests { + public abstract class TestRunner { public enum Jargon { TouchUnit, NUnitV2, diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/ClassOrNamespaceFilter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/ClassOrNamespaceFilter.cs index 7e5552f2ee..fe5fb32567 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/ClassOrNamespaceFilter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/ClassOrNamespaceFilter.cs @@ -5,12 +5,10 @@ using NUnit.Framework.Api; using NUnit.Framework.Internal; using NUnit.Framework.Internal.Filters; -namespace Xamarin.iOS.UnitTests.NUnit -{ - public class ClassOrNamespaceFilter : TestFilter - { +namespace Xamarin.iOS.UnitTests.NUnit { + public class ClassOrNamespaceFilter : TestFilter { bool isClassFilter; - List names; + List names; public ClassOrNamespaceFilter (string name, bool isClassFilter) { @@ -39,7 +37,7 @@ namespace Xamarin.iOS.UnitTests.NUnit throw new ArgumentException ("must not be null or empty", nameof (name)); if (names == null) - names = new List (); + names = new List (); if (names.Contains (name)) return; diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/NUnitTestRunner.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/NUnitTestRunner.cs index 9be9beaa21..26e180e517 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/NUnitTestRunner.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/NUnitTestRunner.cs @@ -15,10 +15,8 @@ using NUnit.Framework.Internal.Filters; using NUnitLite.Runner; using NUnitTest = NUnit.Framework.Internal.Test; -namespace Xamarin.iOS.UnitTests.NUnit -{ - public class NUnitTestRunner : TestRunner, ITestListener - { +namespace Xamarin.iOS.UnitTests.NUnit { + public class NUnitTestRunner : TestRunner, ITestListener { Dictionary builderSettings; TestSuiteResult results; bool runAssemblyByDefault; @@ -138,9 +136,9 @@ namespace Xamarin.iOS.UnitTests.NUnit result.ResultState.Status != TestStatus.Skipped && result.ResultState.Status != TestStatus.Passed && result.ResultState.Status != TestStatus.Inconclusive) { - Logger.OnInfo ($"\t[INFO] {result.Message}"); + Logger.OnInfo ($"\t[INFO] {result.Message}"); } - + // the NUnit API here is quite dirty, turs out that if we had an issue with the // TestFixrtureSetup, the TestFinished method is never called, but we need to be // able to report the errors, so what we can do is, in case of a failed suit, loop @@ -168,11 +166,11 @@ namespace Xamarin.iOS.UnitTests.NUnit } // TestFixtureSetup Failed } } - + string name = result.Test.Name; if (!String.IsNullOrEmpty (name)) Logger.OnInfo ($"{name} : {result.Duration.TotalMilliseconds} ms\n"); - + if (GCAfterEachFixture) GC.Collect (); } else { @@ -212,11 +210,11 @@ namespace Xamarin.iOS.UnitTests.NUnit Logger.OnInfo (sb.ToString ()); string stacktrace = result.StackTrace; if (!string.IsNullOrEmpty (result.StackTrace)) { - string[] lines = stacktrace.Split (new char [] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); + string [] lines = stacktrace.Split (new char [] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); foreach (string line in lines) Logger.OnInfo ($"\t\t{line}"); } - + if (result.ResultState.Status == TestStatus.Failed) { FailureInfos.Add (new TestFailureInfo { TestName = result.Test.FullName, @@ -224,14 +222,14 @@ namespace Xamarin.iOS.UnitTests.NUnit }); } } - + } public void TestOutput (TestOutput testOutput) { if (testOutput == null || String.IsNullOrEmpty (testOutput.Text)) return; - + string kind = testOutput.Type.ToString (); foreach (string l in testOutput.Text.Split ('\n')) { Logger.OnInfo ($" {kind}: {l}"); @@ -255,10 +253,10 @@ namespace Xamarin.iOS.UnitTests.NUnit { if (results == null) return string.Empty; - + string ret = GetResultsFilePath (); - if (string.IsNullOrEmpty (ret)) - return string.Empty; + if (string.IsNullOrEmpty (ret)) + return string.Empty; OutputWriter formatter; switch (jargon) { @@ -272,11 +270,11 @@ namespace Xamarin.iOS.UnitTests.NUnit throw new InvalidOperationException ($"Jargon {jargon} is not supported by this runner."); } - formatter.WriteResultFile (results, ret); + formatter.WriteResultFile (results, ret); - return ret; + return ret; } - + public override void WriteResultsToFile (TextWriter writer, Jargon jargon) { if (results == null) @@ -294,7 +292,7 @@ namespace Xamarin.iOS.UnitTests.NUnit } formatter.WriteResultFile (results, writer); } - + void AppendFilter (ITestFilter filter) { if (filter == null) @@ -308,7 +306,7 @@ namespace Xamarin.iOS.UnitTests.NUnit andFilter = Filter as AndFilter; andFilter.Add (filter); } else { - andFilter = new AndFilter (Filter); + andFilter = new AndFilter (Filter); andFilter.Add (filter); } Filter = andFilter; diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/TestMethodFilter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/TestMethodFilter.cs index d954a56a3f..7822483b8b 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/TestMethodFilter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/TestMethodFilter.cs @@ -5,11 +5,9 @@ using NUnit.Framework.Api; using NUnit.Framework.Internal; using NUnit.Framework.Internal.Filters; -namespace Xamarin.iOS.UnitTests.NUnit -{ - public class TestMethodFilter : TestFilter - { - HashSet methods = new HashSet (); +namespace Xamarin.iOS.UnitTests.NUnit { + public class TestMethodFilter : TestFilter { + HashSet methods = new HashSet (); public TestMethodFilter (string method) { @@ -33,7 +31,7 @@ namespace Xamarin.iOS.UnitTests.NUnit methods.Add (method); } - + public void AddRange (IEnumerable ignoredMethods) { if (methods == null) diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/XmlOutputWriter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/XmlOutputWriter.cs index 755a337511..6a3ab2a0ba 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/XmlOutputWriter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/NUnit/XmlOutputWriter.cs @@ -130,9 +130,9 @@ namespace Xamarin.iOS.UnitTests.NUnit { { xmlWriter.WriteStartElement ("culture-info"); xmlWriter.WriteAttributeString ("current-culture", - CultureInfo.CurrentCulture.ToString ()); + CultureInfo.CurrentCulture.ToString ()); xmlWriter.WriteAttributeString ("current-uiculture", - CultureInfo.CurrentUICulture.ToString ()); + CultureInfo.CurrentUICulture.ToString ()); xmlWriter.WriteEndElement (); xmlWriter.Flush (); } @@ -142,23 +142,23 @@ namespace Xamarin.iOS.UnitTests.NUnit { xmlWriter.WriteStartElement ("environment"); AssemblyName assemblyName = AssemblyHelper.GetAssemblyName (Assembly.GetExecutingAssembly ()); xmlWriter.WriteAttributeString ("nunit-version", - assemblyName.Version.ToString ()); + assemblyName.Version.ToString ()); xmlWriter.WriteAttributeString ("clr-version", - Environment.Version.ToString ()); + Environment.Version.ToString ()); xmlWriter.WriteAttributeString ("os-version", - Environment.OSVersion.ToString ()); + Environment.OSVersion.ToString ()); xmlWriter.WriteAttributeString ("platform", - Environment.OSVersion.Platform.ToString ()); + Environment.OSVersion.Platform.ToString ()); #if !NETCF xmlWriter.WriteAttributeString ("cwd", - Environment.CurrentDirectory); + Environment.CurrentDirectory); #if !SILVERLIGHT xmlWriter.WriteAttributeString ("machine-name", - Environment.MachineName); + Environment.MachineName); xmlWriter.WriteAttributeString ("user", - Environment.UserName); + Environment.UserName); xmlWriter.WriteAttributeString ("user-domain", - Environment.UserDomainName); + Environment.UserDomainName); #endif #endif xmlWriter.WriteEndElement (); @@ -207,15 +207,15 @@ namespace Xamarin.iOS.UnitTests.NUnit { xmlWriter.WriteStartElement ("test-suite"); xmlWriter.WriteAttributeString ("type", suite.TestType); xmlWriter.WriteAttributeString ("name", suite.TestType == "Assembly" - ? result.Test.FullName - : result.Test.Name); + ? result.Test.FullName + : result.Test.Name); } else { xmlWriter.WriteStartElement ("test-case"); xmlWriter.WriteAttributeString ("name", result.Name); } if (test.Properties.ContainsKey (PropertyNames.Description)) { - string description = (string)test.Properties.Get (PropertyNames.Description); + string description = (string) test.Properties.Get (PropertyNames.Description); xmlWriter.WriteAttributeString ("description", description); } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilter.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilter.cs index e4731e453d..9e0f73b6e7 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilter.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilter.cs @@ -1,10 +1,8 @@ using System; using System.Text; -namespace Xamarin.iOS.UnitTests.XUnit -{ - public class XUnitFilter - { +namespace Xamarin.iOS.UnitTests.XUnit { + public class XUnitFilter { public string AssemblyName { get; private set; } public string SelectorName { get; private set; } public string SelectorValue { get; private set; } @@ -15,7 +13,7 @@ namespace Xamarin.iOS.UnitTests.XUnit public static XUnitFilter CreateSingleFilter (string singleTestName, bool exclude, string assemblyName = null) { if (String.IsNullOrEmpty (singleTestName)) - throw new ArgumentException("must not be null or empty", nameof (singleTestName)); + throw new ArgumentException ("must not be null or empty", nameof (singleTestName)); return new XUnitFilter { AssemblyName = assemblyName, @@ -28,7 +26,7 @@ namespace Xamarin.iOS.UnitTests.XUnit public static XUnitFilter CreateAssemblyFilter (string assemblyName, bool exclude) { if (String.IsNullOrEmpty (assemblyName)) - throw new ArgumentException("must not be null or empty", nameof (assemblyName)); + throw new ArgumentException ("must not be null or empty", nameof (assemblyName)); return new XUnitFilter { AssemblyName = assemblyName, @@ -40,7 +38,7 @@ namespace Xamarin.iOS.UnitTests.XUnit public static XUnitFilter CreateNamespaceFilter (string namespaceName, bool exclude, string assemblyName = null) { if (String.IsNullOrEmpty (namespaceName)) - throw new ArgumentException("must not be null or empty", nameof (namespaceName)); + throw new ArgumentException ("must not be null or empty", nameof (namespaceName)); return new XUnitFilter { AssemblyName = assemblyName, @@ -53,7 +51,7 @@ namespace Xamarin.iOS.UnitTests.XUnit public static XUnitFilter CreateClassFilter (string className, bool exclude, string assemblyName = null) { if (String.IsNullOrEmpty (className)) - throw new ArgumentException("must not be null or empty", nameof (className)); + throw new ArgumentException ("must not be null or empty", nameof (className)); return new XUnitFilter { AssemblyName = assemblyName, @@ -66,7 +64,7 @@ namespace Xamarin.iOS.UnitTests.XUnit public static XUnitFilter CreateTraitFilter (string traitName, string traitValue, bool exclude) { if (String.IsNullOrEmpty (traitName)) - throw new ArgumentException("must not be null or empty", nameof (traitName)); + throw new ArgumentException ("must not be null or empty", nameof (traitName)); return new XUnitFilter { AssemblyName = null, @@ -88,29 +86,29 @@ namespace Xamarin.iOS.UnitTests.XUnit sb.Append ($"; AssemblyName: {AssemblyName}"); switch (FilterType) { - case XUnitFilterType.Assembly: - break; + case XUnitFilterType.Assembly: + break; - case XUnitFilterType.Namespace: - AppendDesc ("Namespace", SelectorValue); - break; + case XUnitFilterType.Namespace: + AppendDesc ("Namespace", SelectorValue); + break; - case XUnitFilterType.Single: - AppendDesc ("Method", SelectorValue); - break; + case XUnitFilterType.Single: + AppendDesc ("Method", SelectorValue); + break; - case XUnitFilterType.Trait: - AppendDesc ("Trait name", SelectorName); - AppendDesc ("Trait value", SelectorValue); - break; + case XUnitFilterType.Trait: + AppendDesc ("Trait name", SelectorName); + AppendDesc ("Trait value", SelectorValue); + break; - case XUnitFilterType.TypeName: - AppendDesc ("Class", SelectorValue); - break; + case XUnitFilterType.TypeName: + AppendDesc ("Class", SelectorValue); + break; - default: - sb.Append ("; Unknown filter type"); - break; + default: + sb.Append ("; Unknown filter type"); + break; } sb.Append (']'); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilterType.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilterType.cs index 4cd3021208..2fa05a3f9b 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilterType.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitFilterType.cs @@ -1,9 +1,7 @@ using System; -namespace Xamarin.iOS.UnitTests.XUnit -{ - public enum XUnitFilterType - { +namespace Xamarin.iOS.UnitTests.XUnit { + public enum XUnitFilterType { Trait, TypeName, Assembly, diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitTestRunner.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitTestRunner.cs index beadc67c02..cf964768ef 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitTestRunner.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/common/TestRunner/xUnit/XUnitTestRunner.cs @@ -12,17 +12,14 @@ using System.Xml.Xsl; using Xunit; using Xunit.Abstractions; -namespace Xamarin.iOS.UnitTests.XUnit -{ - public class XsltIdGenerator - { +namespace Xamarin.iOS.UnitTests.XUnit { + public class XsltIdGenerator { // NUnit3 xml does not have schema, there is no much info about it, most examples just have incremental IDs. int seed = 1000; public int GenerateHash (string name) => seed++; } - public class XUnitTestRunner : TestRunner - { + public class XUnitTestRunner : TestRunner { readonly TestMessageSink messageSink; XElement assembliesElement; @@ -48,8 +45,8 @@ namespace Xamarin.iOS.UnitTests.XUnit messageSink.Runner.TestAssemblyExecutionStartingEvent += HandleTestAssemblyExecutionStarting; messageSink.Runner.TestExecutionSummaryEvent += HandleTestExecutionSummary; - messageSink.Execution.AfterTestFinishedEvent += (MessageHandlerArgs args) => HandleEvent ("AfterTestFinishedEvent", args, HandleAfterTestFinished); - messageSink.Execution.AfterTestStartingEvent += (MessageHandlerArgs args) => HandleEvent ("AfterTestStartingEvent", args, HandleAfterTestStarting); + messageSink.Execution.AfterTestFinishedEvent += (MessageHandlerArgs args) => HandleEvent ("AfterTestFinishedEvent", args, HandleAfterTestFinished); + messageSink.Execution.AfterTestStartingEvent += (MessageHandlerArgs args) => HandleEvent ("AfterTestStartingEvent", args, HandleAfterTestStarting); messageSink.Execution.BeforeTestFinishedEvent += (MessageHandlerArgs args) => HandleEvent ("BeforeTestFinishedEvent", args, HandleBeforeTestFinished); messageSink.Execution.BeforeTestStartingEvent += (MessageHandlerArgs args) => HandleEvent ("BeforeTestStartingEvent", args, HandleBeforeTestStarting); messageSink.Execution.TestAssemblyCleanupFailureEvent += (MessageHandlerArgs args) => HandleEvent ("TestAssemblyCleanupFailureEvent", args, HandleTestAssemblyCleanupFailure); @@ -99,7 +96,7 @@ namespace Xamarin.iOS.UnitTests.XUnit filters.AddRange (newFilters); } - void HandleEvent (string name, MessageHandlerArgs args, Action > actualHandler) where T: class, IMessageSinkMessage + void HandleEvent (string name, MessageHandlerArgs args, Action> actualHandler) where T : class, IMessageSinkMessage { try { actualHandler (args); @@ -113,13 +110,13 @@ namespace Xamarin.iOS.UnitTests.XUnit { if (args == null || args.Message == null) return; - + OnDebug ("Test starting"); LogTestDetails (args.Message.Test, log: OnDebug); ReportTestCases (" Associated", args.Message.TestCases, args.Message.TestCase, OnDiagnostic); } - void HandleTestSkipped (MessageHandlerArgs args) + void HandleTestSkipped (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -131,7 +128,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestPassed (MessageHandlerArgs args) + void HandleTestPassed (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -143,7 +140,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestOutput (MessageHandlerArgs args) + void HandleTestOutput (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -151,7 +148,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo (args.Message.Output); } - void HandleTestMethodStarting (MessageHandlerArgs args) + void HandleTestMethodStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -162,7 +159,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestMethodFinished (MessageHandlerArgs args) + void HandleTestMethodFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -174,7 +171,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestMethodCleanupFailure (MessageHandlerArgs args) + void HandleTestMethodCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -186,7 +183,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message, log: OnError); } - void HandleTestFinished (MessageHandlerArgs args) + void HandleTestFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -239,7 +236,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo (sb.ToString ()); } - void HandleTestCollectionStarting (MessageHandlerArgs args) + void HandleTestCollectionStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -250,7 +247,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestCollectionFinished (MessageHandlerArgs args) + void HandleTestCollectionFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -261,18 +258,18 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestCollectionCleanupFailure (MessageHandlerArgs args) + void HandleTestCollectionCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; OnError ("Error during test collection cleanup"); - LogTestCollectionDetails (args.Message.TestCollection, log:OnError); + LogTestCollectionDetails (args.Message.TestCollection, log: OnError); ReportTestCases (" Associated", args.Message.TestCases, log: OnError); LogFailureInformation (args.Message, log: OnError); } - void HandleTestCleanupFailure (MessageHandlerArgs args) + void HandleTestCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -283,7 +280,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message, log: OnError); } - void HandleTestClassStarting (MessageHandlerArgs args) + void HandleTestClassStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -292,18 +289,18 @@ namespace Xamarin.iOS.UnitTests.XUnit LogTestClassDetails (args.Message.TestClass, log: OnDiagnostic); } - void HandleTestClassFinished (MessageHandlerArgs args) + void HandleTestClassFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; - + OnDebug ("Test class finished"); OnInfo ($"{args.Message.TestClass.Class.Name} {args.Message.ExecutionTime} ms"); LogTestClassDetails (args.Message.TestClass, OnDebug); ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestClassDisposeStarting (MessageHandlerArgs args) + void HandleTestClassDisposeStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -313,7 +310,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestClassDisposeFinished (MessageHandlerArgs args) + void HandleTestClassDisposeFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -323,7 +320,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestClassConstructionStarting (MessageHandlerArgs args) + void HandleTestClassConstructionStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -333,7 +330,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, args.Message.TestCase, OnDiagnostic); } - void HandleTestClassConstructionFinished (MessageHandlerArgs args) + void HandleTestClassConstructionFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -343,7 +340,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, args.Message.TestCase, OnDiagnostic); } - void HandleTestClassCleanupFailure (MessageHandlerArgs args) + void HandleTestClassCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -355,7 +352,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message, log: OnError); } - void HandleTestCaseStarting (MessageHandlerArgs args) + void HandleTestCaseStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -365,7 +362,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, args.Message.TestCase, OnDiagnostic); } - void HandleTestCaseFinished (MessageHandlerArgs args) + void HandleTestCaseFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -376,7 +373,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogSummary (args.Message, log: OnDebug); } - void HandleTestCaseCleanupFailure (MessageHandlerArgs args) + void HandleTestCaseCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -387,7 +384,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message, log: OnError); } - void HandleTestAssemblyStarting (MessageHandlerArgs args) + void HandleTestAssemblyStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -398,7 +395,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDebug); } - void HandleTestAssemblyFinished (MessageHandlerArgs args) + void HandleTestAssemblyFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -410,7 +407,7 @@ namespace Xamarin.iOS.UnitTests.XUnit ReportTestCases (" Associated", args.Message.TestCases, log: OnDiagnostic); } - void HandleTestAssemblyCleanupFailure (MessageHandlerArgs args) + void HandleTestAssemblyCleanupFailure (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -421,7 +418,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message, log: OnError); } - void HandleBeforeTestStarting (MessageHandlerArgs args) + void HandleBeforeTestStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -429,7 +426,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnDiagnostic ($"'Before' method for test '{args.Message.Test.DisplayName}' starting"); } - void HandleBeforeTestFinished (MessageHandlerArgs args) + void HandleBeforeTestFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -437,7 +434,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnDiagnostic ($"'Before' method for test '{args.Message.Test.DisplayName}' finished"); } - void HandleAfterTestStarting (MessageHandlerArgs args) + void HandleAfterTestStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -445,7 +442,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnDiagnostic ($"'After' method for test '{args.Message.Test.DisplayName}' starting"); } - void HandleAfterTestFinished (MessageHandlerArgs args) + void HandleAfterTestFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -453,7 +450,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnDiagnostic ($"'After' method for test '{args.Message.Test.DisplayName}' finished"); } - void HandleTestExecutionSummary (MessageHandlerArgs args) + void HandleTestExecutionSummary (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -464,14 +461,14 @@ namespace Xamarin.iOS.UnitTests.XUnit if (args.Message.Summaries == null || args.Message.Summaries.Count == 0) return; - foreach (KeyValuePair summary in args.Message.Summaries) { + foreach (KeyValuePair summary in args.Message.Summaries) { OnInfo (String.Empty); OnInfo ($" Assembly: {summary.Key}"); LogSummary (summary.Value, log: OnDebug); } } - void HandleTestAssemblyExecutionStarting (MessageHandlerArgs args) + void HandleTestAssemblyExecutionStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -479,7 +476,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo ($"Execution starting for assembly {args.Message.Assembly.AssemblyFilename}"); } - void HandleTestAssemblyExecutionFinished (MessageHandlerArgs args) + void HandleTestAssemblyExecutionFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -488,7 +485,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogSummary (args.Message.ExecutionSummary, log: OnDebug); } - void HandleTestAssemblyDiscoveryStarting (MessageHandlerArgs args) + void HandleTestAssemblyDiscoveryStarting (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -497,7 +494,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo ($" Will use AppDomain: {args.Message.AppDomain.YesNo ()}"); } - void HandleTestAssemblyDiscoveryFinished (MessageHandlerArgs args) + void HandleTestAssemblyDiscoveryFinished (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -507,7 +504,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo ($" Test cases to run: {args.Message.TestCasesToRun}"); } - void HandleDiagnosticMessage (MessageHandlerArgs args) + void HandleDiagnosticMessage (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -515,7 +512,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnDiagnostic (args.Message.Message); } - void HandleDiagnosticErrorMessage (MessageHandlerArgs args) + void HandleDiagnosticErrorMessage (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -523,7 +520,7 @@ namespace Xamarin.iOS.UnitTests.XUnit LogFailureInformation (args.Message); } - void HandleDiscoveryCompleteMessage (MessageHandlerArgs args) + void HandleDiscoveryCompleteMessage (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -531,7 +528,7 @@ namespace Xamarin.iOS.UnitTests.XUnit OnInfo ("Discovery complete"); } - void HandleDiscoveryTestCaseMessage (MessageHandlerArgs args) + void HandleDiscoveryTestCaseMessage (MessageHandlerArgs args) { if (args == null || args.Message == null) return; @@ -563,14 +560,14 @@ namespace Xamarin.iOS.UnitTests.XUnit if (testCase == null) return; - EnsureLogger (log)($"{verb} test case: {testCase.DisplayName}"); + EnsureLogger (log) ($"{verb} test case: {testCase.DisplayName}"); } - void LogAssemblyInformation (ITestAssemblyMessage message, Action log = null, StringBuilder sb = null) + void LogAssemblyInformation (ITestAssemblyMessage message, Action log = null, StringBuilder sb = null) { if (message == null) return; - + do_log ($"[Assembly name: {message.TestAssembly.Assembly.Name}]", log, sb); do_log ($"[Assembly path: {message.TestAssembly.Assembly.AssemblyPath}]", OnDiagnostic, sb); } @@ -579,7 +576,7 @@ namespace Xamarin.iOS.UnitTests.XUnit { if (info == null) return; - + string message = ExceptionUtility.CombineMessages (info); do_log ($" Exception messages: {message}", log, sb); @@ -727,7 +724,7 @@ namespace Xamarin.iOS.UnitTests.XUnit foreach (TestAssemblyInfo assemblyInfo in testAssemblies) { if (assemblyInfo == null || assemblyInfo.Assembly == null || !ShouldRunAssembly (assemblyInfo)) continue; - + if (String.IsNullOrEmpty (assemblyInfo.FullPath)) { OnWarning ($"Assembly '{assemblyInfo.Assembly}' cannot be found on the filesystem. xUnit requires access to actual on-disk file."); continue; @@ -769,8 +766,8 @@ namespace Xamarin.iOS.UnitTests.XUnit string filterExtension = Path.GetExtension (filter.AssemblyName); if (String.IsNullOrEmpty (filterExtension) || - (String.Compare (filterExtension, ".exe", StringComparison.OrdinalIgnoreCase) != 0 && - String.Compare (filterExtension, ".dll", StringComparison.OrdinalIgnoreCase) != 0)) { + (String.Compare (filterExtension, ".exe", StringComparison.OrdinalIgnoreCase) != 0 && + String.Compare (filterExtension, ".dll", StringComparison.OrdinalIgnoreCase) != 0)) { string asmName = $"{filter.AssemblyName}.dll"; if (String.Compare (asmName, fileName, StringComparison.Ordinal) == 0) return ReportFilteredAssembly (assemblyInfo, filter); @@ -803,7 +800,7 @@ namespace Xamarin.iOS.UnitTests.XUnit // remove all the empty nodes assembliesElement.Descendants ().Where (e => e.Name == "collection" && !e.Descendants ().Any ()).Remove (); string outputFilePath = GetResultsFilePath (); - var settings = new XmlWriterSettings { Indent = true}; + var settings = new XmlWriterSettings { Indent = true }; using (var xmlWriter = XmlWriter.Create (outputFilePath, settings)) { switch (jargon) { case Jargon.NUnitV2: @@ -817,7 +814,7 @@ namespace Xamarin.iOS.UnitTests.XUnit break; } } - + return outputFilePath; } public override void WriteResultsToFile (TextWriter writer, Jargon jargon) @@ -858,7 +855,7 @@ namespace Xamarin.iOS.UnitTests.XUnit return; using (var xsltStream = GetType ().Assembly.GetManifestResourceStream (name)) { if (xsltStream == null) { - throw new Exception ($"Stream with name {name} cannot be found! We have {GetType ().Assembly.GetManifestResourceNames ()[0]}"); + throw new Exception ($"Stream with name {name} cannot be found! We have {GetType ().Assembly.GetManifestResourceNames () [0]}"); } // add the extension so that we can get the hash from the name of the test // Create an XsltArgumentList. @@ -1056,7 +1053,7 @@ namespace Xamarin.iOS.UnitTests.XUnit if (tests.Any ()) { // create a single filter per test foreach (var t in tests) { - if (t.StartsWith("KLASS:", StringComparison.Ordinal)) { + if (t.StartsWith ("KLASS:", StringComparison.Ordinal)) { var klass = t.Replace ("KLASS:", ""); filters.Add (XUnitFilter.CreateClassFilter (klass, true)); } else if (t.StartsWith ("KLASS32:", StringComparison.Ordinal) && IntPtr.Size == 4) { @@ -1080,7 +1077,7 @@ namespace Xamarin.iOS.UnitTests.XUnit if (categories.Any ()) { foreach (var c in categories) { var traitInfo = c.Split ("="); - filters.Add (XUnitFilter.CreateTraitFilter (traitInfo[0], traitInfo[1], true)); + filters.Add (XUnitFilter.CreateTraitFilter (traitInfo [0], traitInfo [1], true)); } } } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/AppDelegate.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/AppDelegate.cs index 23dbc02a1b..30e9503705 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/AppDelegate.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/AppDelegate.cs @@ -8,8 +8,7 @@ namespace BCLTests { public class AppDelegate : UIApplicationDelegate { // class-level declarations - public override UIWindow Window - { + public override UIWindow Window { get; set; } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/ViewController.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/ViewController.cs index bce5045675..0766b71111 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/ViewController.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/iOSApp/ViewController.cs @@ -15,24 +15,24 @@ namespace BCLTests { public partial class ViewController : UIViewController { internal static IEnumerable GetTestAssemblies () - { + { // var t = Path.GetFileName (typeof (ActivatorCas).Assembly.Location); foreach (var name in RegisterType.TypesToRegister.Keys) { var a = RegisterType.TypesToRegister [name].Assembly; if (a == null) { Console.WriteLine ($"# WARNING: Unable to load assembly {name}."); - continue; + continue; } else { Console.WriteLine ($"Loading assembly: {name}."); } yield return new TestAssemblyInfo (a, name); } - } - - public ViewController () + } + + public ViewController () { } - + protected ViewController (IntPtr handle) : base (handle) { // Note: this .ctor should not contain any initialization logic. @@ -82,7 +82,7 @@ namespace BCLTests { // add category filters if they have been added runner.SkipCategories (categories); - + // if we have ignore files, ignore those tests var skippedTests = await IgnoreFileParser.ParseContentFilesAsync (NSBundle.MainBundle.BundlePath); if (skippedTests.Any ()) { @@ -108,7 +108,7 @@ namespace BCLTests { string resultsFilePath = runner.WriteResultsToFile (jargon); logger.Info ($"Xml result can be found {resultsFilePath}"); } - + logger.Info ($"Tests run: {runner.TotalTests} Passed: {runner.PassedTests} Inconclusive: {runner.InconclusiveTests} Failed: {runner.FailedTests} Ignored: {runner.FilteredTests}"); if (options.TerminateAfterExecution) BeginInvokeOnMainThread (TerminateWithSuccess); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/Assert.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/Assert.cs index 7a1b3124d5..80f3fdd2c9 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/Assert.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/Assert.cs @@ -12,96 +12,96 @@ using NUnit.Framework; using NUnit.Framework.Constraints; namespace MonoTests { -/* - class CategoryAttribute : Attribute - { - public string Category { get; set; } - - public CategoryAttribute (string category) + /* + class CategoryAttribute : Attribute { - this.Category = category; + public string Category { get; set; } + + public CategoryAttribute (string category) + { + this.Category = category; + } } - } -/* - static class Assert - { - public static void AreEqual (object a, object b, string msg) + /* + static class Assert { - NUnit.Framework.Assert.That (a, Is.EqualTo (b), msg); + public static void AreEqual (object a, object b, string msg) + { + NUnit.Framework.Assert.That (a, Is.EqualTo (b), msg); + } + + public static void AreEqual (object a, object b) + { + NUnit.Framework.Assert.That (a, Is.EqualTo (b)); + } + + public static void IsNotNull (object o, string msg) + { + NUnit.Framework.Assert.That (o, Is.Not.Null, msg); + } + + public static void IsNotNull (object o) + { + NUnit.Framework.Assert.That (o, Is.Not.Null); + } + + public static void IsNull (object o, string msg) + { + NUnit.Framework.Assert.That (o, Is.Null, msg); + } + + public static void IsNull (object o) + { + NUnit.Framework.Assert.That (o, Is.Null); + } + + public static void IsTrue (object o, string msg) + { + NUnit.Framework.Assert.That (o, Is.True, msg); + } + + public static void IsTrue (object o) + { + NUnit.Framework.Assert.That (o, Is.True); + } + + public static void IsFalse (object o, string msg) + { + NUnit.Framework.Assert.That (o, Is.False, msg); + } + + public static void IsFalse (object o) + { + NUnit.Framework.Assert.That (o, Is.False); + } + + public static void AreSame (object a, object b) + { + NUnit.Framework.Assert.That (a, Is.SameAs (b)); + } + + public static void AreSame (object a, object b, string msg) + { + NUnit.Framework.Assert.That (a, Is.SameAs (b), msg); + } + + public static void Fail (string msg) + { + NUnit.Framework.Assert.Fail (msg); + } } - - public static void AreEqual (object a, object b) - { - NUnit.Framework.Assert.That (a, Is.EqualTo (b)); - } - - public static void IsNotNull (object o, string msg) - { - NUnit.Framework.Assert.That (o, Is.Not.Null, msg); - } - - public static void IsNotNull (object o) - { - NUnit.Framework.Assert.That (o, Is.Not.Null); - } - - public static void IsNull (object o, string msg) - { - NUnit.Framework.Assert.That (o, Is.Null, msg); - } - - public static void IsNull (object o) - { - NUnit.Framework.Assert.That (o, Is.Null); - } - - public static void IsTrue (object o, string msg) - { - NUnit.Framework.Assert.That (o, Is.True, msg); - } - - public static void IsTrue (object o) - { - NUnit.Framework.Assert.That (o, Is.True); - } - - public static void IsFalse (object o, string msg) - { - NUnit.Framework.Assert.That (o, Is.False, msg); - } - - public static void IsFalse (object o) - { - NUnit.Framework.Assert.That (o, Is.False); - } - - public static void AreSame (object a, object b) - { - NUnit.Framework.Assert.That (a, Is.SameAs (b)); - } - - public static void AreSame (object a, object b, string msg) - { - NUnit.Framework.Assert.That (a, Is.SameAs (b), msg); - } - - public static void Fail (string msg) - { - NUnit.Framework.Assert.Fail (msg); - } - } -*/ + */ // nunit 1.x compatibility public class TestCase { protected virtual void SetUp () { } - + public static void Assert (string msg, bool condition) { NUnit.Framework.Assert.True (condition, msg); } - + public static void AssertEquals (object a, object b) { NUnit.Framework.Assert.That (a, Is.EqualTo (b)); @@ -137,45 +137,45 @@ namespace MonoTests { NUnit.Framework.Assert.Fail (msg); } } - + public class Assertion : TestCase { } - + public class TestFixtureSetUpAttribute : SetUpAttribute { } public class StringAssert { #region StartsWith - static public void StartsWith(string expected, string actual, string message, params object[] args) + static public void StartsWith (string expected, string actual, string message, params object [] args) { - Assert.That(actual, new StartsWithConstraint(expected), message, args); + Assert.That (actual, new StartsWithConstraint (expected), message, args); } - static public void StartsWith(string expected, string actual, string message) + static public void StartsWith (string expected, string actual, string message) { - StartsWith(expected, actual, message, null); + StartsWith (expected, actual, message, null); } - static public void StartsWith(string expected, string actual) + static public void StartsWith (string expected, string actual) { - StartsWith(expected, actual, string.Empty, null); + StartsWith (expected, actual, string.Empty, null); } #endregion #region Contains - static public void Contains(string expected, string actual, string message, params object[] args) + static public void Contains (string expected, string actual, string message, params object [] args) { - Assert.That(actual, new SubstringConstraint(expected), message, args); + Assert.That (actual, new SubstringConstraint (expected), message, args); } - static public void Contains(string expected, string actual, string message) + static public void Contains (string expected, string actual, string message) { - Contains(expected, actual, message, null); + Contains (expected, actual, message, null); } - static public void Contains(string expected, string actual) + static public void Contains (string expected, string actual) { - Contains(expected, actual, string.Empty, null); + Contains (expected, actual, string.Empty, null); } #endregion } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/MacTestMain.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/MacTestMain.cs index 82f4e19549..d254378333 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/MacTestMain.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/macOS/MacTestMain.cs @@ -15,25 +15,23 @@ using System.IO; using NUnit.Framework.Internal.Filters; using System.Threading.Tasks; -namespace Xamarin.Mac.Tests -{ - static class MainClass - { - static Task Main (string[] args) +namespace Xamarin.Mac.Tests { + static class MainClass { + static Task Main (string [] args) { - NSApplication.Init(); + NSApplication.Init (); return RunTests (args); } internal static IEnumerable GetTestAssemblies () - { + { // var t = Path.GetFileName (typeof (ActivatorCas).Assembly.Location); foreach (var name in RegisterType.TypesToRegister.Keys) { var a = RegisterType.TypesToRegister [name].Assembly; yield return new TestAssemblyInfo (a, a.Location); } - } - + } + static async Task RunTests (string [] original_args) { Console.WriteLine ("Running tests"); @@ -42,7 +40,7 @@ namespace Xamarin.Mac.Tests // we generate the logs in two different ways depending if the generate xml flag was // provided. If it was, we will write the xml file to the tcp writer if present, else // we will write the normal console output using the LogWriter - var logger = new LogWriter (Console.Out); + var logger = new LogWriter (Console.Out); logger.MinimumLogLevel = MinimumLogLevel.Info; var testAssemblies = GetTestAssemblies (); var runner = RegisterType.IsXUnit ? (TestRunner) new XUnitTestRunner (logger) : new NUnitTestRunner (logger); @@ -61,7 +59,7 @@ namespace Xamarin.Mac.Tests } logger.Info ($"Xml result can be found {options.LogFile}"); } - + logger.Info ($"Tests run: {runner.TotalTests} Passed: {runner.PassedTests} Inconclusive: {runner.InconclusiveTests} Failed: {runner.FailedTests} Ignored: {runner.FilteredTests}"); return runner.FailedTests != 0 ? 1 : 0; } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/today/TodayExtensionMain.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/today/TodayExtensionMain.cs index af7d860db2..01fb91828b 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/today/TodayExtensionMain.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/today/TodayExtensionMain.cs @@ -13,25 +13,24 @@ using NotificationCenter; using UIKit; [Register ("TodayViewController")] -public partial class TodayViewController : UIViewController, INCWidgetProviding -{ +public partial class TodayViewController : UIViewController, INCWidgetProviding { bool running; TestRunner runner; - protected TodayViewController (IntPtr handle) : base (handle) {} - + protected TodayViewController (IntPtr handle) : base (handle) { } + internal static IEnumerable GetTestAssemblies () - { + { // var t = Path.GetFileName (typeof (ActivatorCas).Assembly.Location); foreach (var name in RegisterType.TypesToRegister.Keys) { var a = Assembly.Load (name); if (a == null) { Console.WriteLine ($"# WARNING: Unable to load assembly {name}."); - continue; + continue; } yield return new TestAssemblyInfo (a, name); } - } + } [Export ("widgetPerformUpdateWithCompletionHandler:")] public void WidgetPerformUpdate (Action completionHandler) @@ -49,7 +48,7 @@ public partial class TodayViewController : UIViewController, INCWidgetProviding var testAssemblies = GetTestAssemblies (); runner = RegisterType.IsXUnit ? (TestRunner) new XUnitTestRunner (logger) : new NUnitTestRunner (logger); var categories = RegisterType.IsXUnit ? - new List { + new List { "failing", "nonmonotests", "outerloop", @@ -75,19 +74,17 @@ public partial class TodayViewController : UIViewController, INCWidgetProviding } // add category filters if they have been added runner.SkipCategories (categories); - + // if we have ignore files, ignore those tests var skippedTests = IgnoreFileParser.ParseContentFiles (NSBundle.MainBundle.BundlePath); if (skippedTests.Any ()) { // ensure that we skip those tests that have been passed via the ignore files runner.SkipTests (skippedTests); } - - ThreadPool.QueueUserWorkItem ((v) => - { - BeginInvokeOnMainThread (async () => - { - await runner.Run (testAssemblies).ConfigureAwait (false);; + + ThreadPool.QueueUserWorkItem ((v) => { + BeginInvokeOnMainThread (async () => { + await runner.Run (testAssemblies).ConfigureAwait (false); ; }); }); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/AppDelegate.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/AppDelegate.cs index 23dbc02a1b..30e9503705 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/AppDelegate.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/AppDelegate.cs @@ -8,8 +8,7 @@ namespace BCLTests { public class AppDelegate : UIApplicationDelegate { // class-level declarations - public override UIWindow Window - { + public override UIWindow Window { get; set; } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/ViewController.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/ViewController.cs index 4aec23bbd2..2e96009f0a 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/ViewController.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/tvOSApp/ViewController.cs @@ -19,22 +19,22 @@ namespace BCLTests { public partial class ViewController : UIViewController { internal static IEnumerable GetTestAssemblies () - { + { // var t = Path.GetFileName (typeof (ActivatorCas).Assembly.Location); foreach (var name in RegisterType.TypesToRegister.Keys) { var a = Assembly.Load (name); if (a == null) { Console.WriteLine ($"# WARNING: Unable to load assembly {name}."); - continue; + continue; } yield return new TestAssemblyInfo (a, name); } - } - - public ViewController () + } + + public ViewController () { } - + protected ViewController (IntPtr handle) : base (handle) { // Note: this .ctor should not contain any initialization logic. @@ -83,7 +83,7 @@ namespace BCLTests { var categories = await IgnoreFileParser.ParseTraitsContentFileAsync (NSBundle.MainBundle.BundlePath, RegisterType.IsXUnit); // add category filters if they have been added runner.SkipCategories (categories); - + // if we have ignore files, ignore those tests var skippedTests = await IgnoreFileParser.ParseContentFilesAsync (NSBundle.MainBundle.BundlePath); if (skippedTests.Any ()) { @@ -95,7 +95,7 @@ namespace BCLTests { Xamarin.iOS.UnitTests.TestRunner.Jargon jargon = Xamarin.iOS.UnitTests.TestRunner.Jargon.NUnitV3; switch (options.XmlVersion) { default: - case XmlVersion.NUnitV2: + case XmlVersion.NUnitV2: jargon = Xamarin.iOS.UnitTests.TestRunner.Jargon.NUnitV2; break; case XmlVersion.NUnitV3: @@ -109,7 +109,7 @@ namespace BCLTests { string resultsFilePath = runner.WriteResultsToFile (jargon); logger.Info ($"Xml result can be found {resultsFilePath}"); } - + logger.Info ($"Tests run: {runner.TotalTests} Passed: {runner.PassedTests} Inconclusive: {runner.InconclusiveTests} Failed: {runner.FailedTests} Ignored: {runner.FilteredTests}"); if (options.TerminateAfterExecution) BeginInvokeOnMainThread (TerminateWithSuccess); diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/AppDelegate.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/AppDelegate.cs index e0b4ec42b2..b979ae465c 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/AppDelegate.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/AppDelegate.cs @@ -1,13 +1,11 @@ using Foundation; using UIKit; -namespace Container -{ +namespace Container { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to application events from iOS. [Register ("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { + public class AppDelegate : UIApplicationDelegate { // class-level declarations public override UIWindow Window { diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/Main.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/Main.cs index 4cfa17a9b4..2e72262ced 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/Main.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/Main.cs @@ -1,11 +1,9 @@ using UIKit; -namespace Container -{ - public class Application - { +namespace Container { + public class Application { // This is the main entry point of the application. - static void Main (string[] args) + static void Main (string [] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/ViewController.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/ViewController.cs index 55a771fbbe..5b4dd7ea87 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/ViewController.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Container/ViewController.cs @@ -2,10 +2,8 @@ using System; using UIKit; -namespace Container -{ - public partial class ViewController : UIViewController - { +namespace Container { + public partial class ViewController : UIViewController { public ViewController (IntPtr handle) : base (handle) { } diff --git a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Extension/InterfaceController.cs b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Extension/InterfaceController.cs index db39ece98e..1afd152a09 100644 --- a/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Extension/InterfaceController.cs +++ b/tests/xharness/TestImporter/Templates/Managed/Resources/src/watchOS/Extension/InterfaceController.cs @@ -18,11 +18,9 @@ using BCLTests.TestRunner.Core; using System.IO; using System.Threading.Tasks; -namespace monotouchtestWatchKitExtension -{ +namespace monotouchtestWatchKitExtension { [Register ("InterfaceController")] - public partial class InterfaceController : WKInterfaceController - { + public partial class InterfaceController : WKInterfaceController { bool running; Xamarin.iOS.UnitTests.TestRunner runner; HttpTextWriter http_writer; @@ -44,7 +42,7 @@ namespace monotouchtestWatchKitExtension [Outlet ("cmdRun")] WatchKit.WKInterfaceButton cmdRun { get; set; } - + [DllImport ("libc")] static extern void exit (int code); protected virtual void TerminateWithSuccess () @@ -56,12 +54,10 @@ namespace monotouchtestWatchKitExtension static InterfaceController () { - ObjCRuntime.Runtime.MarshalManagedException += (object sender, ObjCRuntime.MarshalManagedExceptionEventArgs args) => - { + ObjCRuntime.Runtime.MarshalManagedException += (object sender, ObjCRuntime.MarshalManagedExceptionEventArgs args) => { Console.WriteLine ("Managed exception: {0}", args.Exception); }; - ObjCRuntime.Runtime.MarshalObjectiveCException += (object sender, ObjCRuntime.MarshalObjectiveCExceptionEventArgs args) => - { + ObjCRuntime.Runtime.MarshalObjectiveCException += (object sender, ObjCRuntime.MarshalObjectiveCExceptionEventArgs args) => { Console.WriteLine ("Objective-C exception: {0}", args.Exception); }; } @@ -78,24 +74,24 @@ namespace monotouchtestWatchKitExtension } internal static IEnumerable GetTestAssemblies () - { + { // var t = Path.GetFileName (typeof (ActivatorCas).Assembly.Location); foreach (var name in RegisterType.TypesToRegister.Keys) { var a = Assembly.Load (name); if (a == null) { Console.WriteLine ($"# WARNING: Unable to load assembly {name}."); - continue; + continue; } yield return new TestAssemblyInfo (a, name); } - } - + } + void RunTests () { var options = ApplicationOptions.Current; TextWriter writer = null; if (!string.IsNullOrEmpty (options.HostName) && string.IsNullOrEmpty (options.LogFile)) { - http_writer = new HttpTextWriter () { HostName = options.HostName.Split (',')[0], Port = options.HostPort }; + http_writer = new HttpTextWriter () { HostName = options.HostName.Split (',') [0], Port = options.HostPort }; Console.WriteLine ("Sending results to {0}:{1} using HTTP", http_writer.HostName, http_writer.Port); http_writer.Open (); writer = http_writer; @@ -114,18 +110,16 @@ namespace monotouchtestWatchKitExtension // add category filters if they have been added runner.SkipCategories (categories); - + // if we have ignore files, ignore those tests var skippedTests = IgnoreFileParser.ParseContentFiles (NSBundle.MainBundle.BundlePath); if (skippedTests.Any ()) { // ensure that we skip those tests that have been passed via the ignore files runner.SkipTests (skippedTests); } - - ThreadPool.QueueUserWorkItem ((v) => - { - BeginInvokeOnMainThread (async () => - { + + ThreadPool.QueueUserWorkItem ((v) => { + BeginInvokeOnMainThread (async () => { lblStatus.SetText (string.Format ("{0} tests", runner.TotalTests)); await runner.Run (testAssemblies).ConfigureAwait (false); RenderResults (); @@ -195,8 +189,7 @@ namespace monotouchtestWatchKitExtension } } -class NameStartsWithFilter : NUnit.Framework.Internal.TestFilter -{ +class NameStartsWithFilter : NUnit.Framework.Internal.TestFilter { public char FirstChar; public char LastChar; @@ -208,7 +201,7 @@ class NameStartsWithFilter : NUnit.Framework.Internal.TestFilter var method = test as NUnit.Framework.Internal.TestMethod; if (method != null) return Match (method.Parent); - + var name = !string.IsNullOrEmpty (test.Name) ? test.Name : test.FullName; bool rv; if (string.IsNullOrEmpty (name)) { diff --git a/tests/xharness/xharness.csproj b/tests/xharness/xharness.csproj index 9599a45ac6..823f4cadc0 100644 --- a/tests/xharness/xharness.csproj +++ b/tests/xharness/xharness.csproj @@ -65,7 +65,7 @@ - + diff --git a/tools/autoformat.sh b/tools/autoformat.sh index f0c68a672e..36f6fabb61 100755 --- a/tools/autoformat.sh +++ b/tools/autoformat.sh @@ -38,135 +38,10 @@ dotnet format whitespace "$SRC_DIR/tests/xtro-sharpie/u2ignore/u2ignore.csproj" dotnet format whitespace "$SRC_DIR/tests/xtro-sharpie/u2todo/u2todo.csproj" dotnet format whitespace "$SRC_DIR/tests/xtro-sharpie/xtro-report/xtro-report.csproj" dotnet format whitespace "$SRC_DIR/tests/xtro-sharpie/xtro-sanity/xtro-sanity.csproj" -dotnet format whitespace --folder "$SRC_DIR/tests/common" -dotnet format whitespace --folder "$SRC_DIR/tests/dotnet" -dotnet format whitespace --folder "$SRC_DIR/tests/generator" -dotnet format whitespace --folder "$SRC_DIR/tests/monotouch-test" -dotnet format whitespace --folder "$SRC_DIR/tests/msbuild" -dotnet format whitespace --folder "$SRC_DIR/tests/xtro-sharpie" +dotnet format whitespace --folder "$SRC_DIR/src" +dotnet format whitespace --folder "$SRC_DIR/tests" dotnet format whitespace --folder "$SRC_DIR/tools" -dotnet format whitespace --folder "$SRC_DIR/src/Accelerate" -dotnet format whitespace --folder "$SRC_DIR/src/Accessibility" -dotnet format whitespace --folder "$SRC_DIR/src/Accounts" -dotnet format whitespace --folder "$SRC_DIR/src/AddressBook" -dotnet format whitespace --folder "$SRC_DIR/src/AddressBookUI" -dotnet format whitespace --folder "$SRC_DIR/src/AdSupport/" -dotnet format whitespace --folder "$SRC_DIR/src/AppKit/" -dotnet format whitespace --folder "$SRC_DIR/src/ARKit/" -dotnet format whitespace --folder "$SRC_DIR/src/AssetsLibrary/" -dotnet format whitespace --folder "$SRC_DIR/src/AudioToolbox/" -dotnet format whitespace --folder "$SRC_DIR/src/AudioUnit/" -dotnet format whitespace --folder "$SRC_DIR/src/AuthenticationServices/" -dotnet format whitespace --folder "$SRC_DIR/src/AVFoundation/" -dotnet format whitespace --folder "$SRC_DIR/src/AVKit/" -dotnet format whitespace --folder "$SRC_DIR/src/BackgroundTasks/" -dotnet format whitespace --folder "$SRC_DIR/src/BusinessChat/" -dotnet format whitespace --folder "$SRC_DIR/src/CFNetwork/" -dotnet format whitespace --folder "$SRC_DIR/src/CarPlay/" -dotnet format whitespace --folder "$SRC_DIR/src/Chip/" -dotnet format whitespace --folder "$SRC_DIR/src/ClockKit/" -dotnet format whitespace --folder "$SRC_DIR/src/CloudKit/" -dotnet format whitespace --folder "$SRC_DIR/src/Compression/" -dotnet format whitespace --folder "$SRC_DIR/src/Contacts/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreAnimation/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreBluetooth/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreData/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreFoundation/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreGraphics/" -dotnet format whitespace --folder "$SRC_DIR/src/CoreHaptics" -dotnet format whitespace --folder "$SRC_DIR/src/CoreImage" -dotnet format whitespace --folder "$SRC_DIR/src/CoreLocation" -dotnet format whitespace --folder "$SRC_DIR/src/CoreML" -dotnet format whitespace --folder "$SRC_DIR/src/CoreMedia" -dotnet format whitespace --folder "$SRC_DIR/src/CoreMidi" -dotnet format whitespace --folder "$SRC_DIR/src/CoreMotion" -dotnet format whitespace --folder "$SRC_DIR/src/CoreServices" -dotnet format whitespace --folder "$SRC_DIR/src/CoreTelephony" -dotnet format whitespace --folder "$SRC_DIR/src/CoreText" -dotnet format whitespace --folder "$SRC_DIR/src/CoreVideo" -dotnet format whitespace --folder "$SRC_DIR/src/CoreWlan" -dotnet format whitespace --folder "$SRC_DIR/src/EventKit" -dotnet format whitespace --folder "$SRC_DIR/src/EventKitUI" -dotnet format whitespace --folder "$SRC_DIR/src/ExternalAccessory" -dotnet format whitespace --folder "$SRC_DIR/src/FileProvider" -dotnet format whitespace --folder "$SRC_DIR/src/FinderSync" -dotnet format whitespace --folder "$SRC_DIR/src/Foundation" -dotnet format whitespace --folder "$SRC_DIR/src/GLKit" -dotnet format whitespace --folder "$SRC_DIR/src/GameController" -dotnet format whitespace --folder "$SRC_DIR/src/GameKit" -dotnet format whitespace --folder "$SRC_DIR/src/GameplayKit" -dotnet format whitespace --folder "$SRC_DIR/src/HealthKit" -dotnet format whitespace --folder "$SRC_DIR/src/HomeKit" -dotnet format whitespace --folder "$SRC_DIR/src/iAd" -dotnet format whitespace --folder "$SRC_DIR/src/IOSurface" -dotnet format whitespace --folder "$SRC_DIR/src/ImageCaptureCore" -dotnet format whitespace --folder "$SRC_DIR/src/ImageIO" -dotnet format whitespace --folder "$SRC_DIR/src/ImageKit" -dotnet format whitespace --folder "$SRC_DIR/src/Intents" -dotnet format whitespace --folder "$SRC_DIR/src/iTunesLibrary" -dotnet format whitespace --folder "$SRC_DIR/src/JavaScriptCore" -dotnet format whitespace --folder "$SRC_DIR/src/LocalAuthentication" -dotnet format whitespace --folder "$SRC_DIR/src/MLCompute" -dotnet format whitespace --folder "$SRC_DIR/src/MapKit" -dotnet format whitespace --folder "$SRC_DIR/src/MediaAccessibility" -dotnet format whitespace --folder "$SRC_DIR/src/MediaLibrary" -dotnet format whitespace --folder "$SRC_DIR/src/MediaPlayer" -dotnet format whitespace --folder "$SRC_DIR/src/MediaToolbox" -dotnet format whitespace --folder "$SRC_DIR/src/MessageUI" -dotnet format whitespace --folder "$SRC_DIR/src/Metal" -dotnet format whitespace --folder "$SRC_DIR/src/MetalKit" -dotnet format whitespace --folder "$SRC_DIR/src/MetalPerformanceShaders" -dotnet format whitespace --folder "$SRC_DIR/src/MobileCoreServices" -dotnet format whitespace --folder "$SRC_DIR/src/ModelIO" -dotnet format whitespace --folder "$SRC_DIR/src/MultipeerConnectivity" -dotnet format whitespace --folder "$SRC_DIR/src/NaturalLanguage" -dotnet format whitespace --folder "$SRC_DIR/src/NearbyInteraction" -dotnet format whitespace --folder "$SRC_DIR/src/Network" -dotnet format whitespace --folder "$SRC_DIR/src/NetworkExtension" -dotnet format whitespace --folder "$SRC_DIR/src/NotificationCenter" -dotnet format whitespace --folder "$SRC_DIR/src/SceneKit" -dotnet format whitespace --folder "$SRC_DIR/src/OpenGL" -dotnet format whitespace --folder "$SRC_DIR/src/PassKit" -dotnet format whitespace --folder "$SRC_DIR/src/PdfKit" -dotnet format whitespace --folder "$SRC_DIR/src/Photos" -dotnet format whitespace --folder "$SRC_DIR/src/PhotosUI" -dotnet format whitespace --folder "$SRC_DIR/src/PrintCore" -dotnet format whitespace --folder "$SRC_DIR/src/QTKit" -dotnet format whitespace --folder "$SRC_DIR/src/QuickLookUI" -dotnet format whitespace --folder "$SRC_DIR/src/ReplayKit" -dotnet format whitespace --folder "$SRC_DIR/src/SafariServices" -dotnet format whitespace --folder "$SRC_DIR/src/ScreenCaptureKit" -dotnet format whitespace --folder "$SRC_DIR/src/ScriptingBridge" -dotnet format whitespace --folder "$SRC_DIR/src/SearchKit" -dotnet format whitespace --folder "$SRC_DIR/src/Security" -dotnet format whitespace --folder "$SRC_DIR/src/SensorKit" -dotnet format whitespace --folder "$SRC_DIR/src/Social" -dotnet format whitespace --folder "$SRC_DIR/src/SpriteKit" -dotnet format whitespace --folder "$SRC_DIR/src/StoreKit" -dotnet format whitespace --folder "$SRC_DIR/src/SystemConfiguration" -dotnet format whitespace --folder "$SRC_DIR/src/TVServices" -dotnet format whitespace --folder "$SRC_DIR/src/UIKit" -dotnet format whitespace --folder "$SRC_DIR/src/VideoToolbox" -dotnet format whitespace --folder "$SRC_DIR/src/Vision" -dotnet format whitespace --folder "$SRC_DIR/src/WKWebKit" -dotnet format whitespace --folder "$SRC_DIR/src/WatchConnectivity" -dotnet format whitespace --folder "$SRC_DIR/src/WatchKit" -dotnet format whitespace --folder "$SRC_DIR/src/WebKit" -dotnet format whitespace --folder "$SRC_DIR/src/BackgroundAssets" -dotnet format whitespace --folder "$SRC_DIR/src/CoreSpotlight" -dotnet format whitespace --folder "$SRC_DIR/src/MetalPerformanceShadersGraph" -dotnet format whitespace --folder "$SRC_DIR/src/MetricKit" -dotnet format whitespace --folder "$SRC_DIR/src/NativeTypes" -dotnet format whitespace --folder "$SRC_DIR/src/ObjCRuntime" -dotnet format whitespace --folder "$SRC_DIR/src/OpenGLES" -dotnet format whitespace --folder "$SRC_DIR/src/SharedWithYouCore" -dotnet format whitespace --folder "$SRC_DIR/src/Simd" -dotnet format whitespace --folder "$SRC_DIR/src/System.ComponentModel" -dotnet format whitespace --folder "$SRC_DIR/src/System.Drawing" -dotnet format whitespace --folder "$SRC_DIR/src/System.Net.Http" -dotnet format whitespace --folder "$SRC_DIR/src/VideoSubscriberAccount" -dotnet format whitespace --folder "$SRC_DIR/src/XKit" # dotnet format "$SRC_DIR/[...]" # add more projects here... diff --git a/tools/devops/automation/templates/build/api-diff-process-results.yml b/tools/devops/automation/templates/build/api-diff-process-results.yml index 9cf0906443..65ff4228cf 100644 --- a/tools/devops/automation/templates/build/api-diff-process-results.yml +++ b/tools/devops/automation/templates/build/api-diff-process-results.yml @@ -37,6 +37,13 @@ steps: gci env: | format-table -autosize -wrap displayName: 'Show Environment' +- pwsh: | + if (Test-Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Artifacts" -PathType Container) { + Remove-Item -Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Artifacts" -Force -Recurse + } + displayName: "Remove artifacts" + condition: always() + # Download the change detection artifact - task: DownloadPipelineArtifact@2 displayName: 'Download change detection artifacts' diff --git a/tools/devops/automation/templates/common/download-artifacts.yml b/tools/devops/automation/templates/common/download-artifacts.yml index 232bd1d8e2..327e0b2bd0 100644 --- a/tools/devops/automation/templates/common/download-artifacts.yml +++ b/tools/devops/automation/templates/common/download-artifacts.yml @@ -11,6 +11,13 @@ parameters: steps: +- pwsh: | + if (Test-Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Reports" -PathType Container) { + Remove-Item -Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Reports" -Force -Recurse + } + displayName: "Remove artifacts" + condition: always() + - ${{ if eq(parameters.runTests, true) }}: # Download the Html Report that was added by the tests job. - task: DownloadPipelineArtifact@2 diff --git a/tools/devops/automation/templates/mac/build.yml b/tools/devops/automation/templates/mac/build.yml index df1faf6ad6..b65d55e699 100644 --- a/tools/devops/automation/templates/mac/build.yml +++ b/tools/devops/automation/templates/mac/build.yml @@ -128,6 +128,12 @@ steps: timeoutInMinutes: 30 enabled: false +- bash: | + sudo rm -Rf $(Build.SourcesDirectory)/package + sudo rm -Rf $(Build.SourcesDirectory)/artifacts + displayName: "Remove artifacts" + condition: always() + - task: DownloadPipelineArtifact@2 displayName: Download not notarized build inputs: diff --git a/tools/devops/automation/templates/release/publish-nugets.yml b/tools/devops/automation/templates/release/publish-nugets.yml index eea3d8b616..2cbf76747d 100644 --- a/tools/devops/automation/templates/release/publish-nugets.yml +++ b/tools/devops/automation/templates/release/publish-nugets.yml @@ -18,6 +18,12 @@ steps: ${{ else }}: VAR_NAME: 'NUGET_PRIVATE_FEED' +- bash: | + sudo rm -Rf $(Build.SourcesDirectory)/package + sudo rm -Rf $(Build.SourcesDirectory)/vsi-msi-nugets + displayName: "Remove artifacts" + condition: always() + - task: DownloadPipelineArtifact@2 inputs: artifactName: nuget-signed diff --git a/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml b/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml index fa666be8de..1741ba33d6 100644 --- a/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml +++ b/tools/devops/automation/templates/sign-and-notarized/dotnet-signing.yml @@ -45,6 +45,11 @@ jobs: repositoryAlias: ${{ parameters.repositoryAlias }} commit: ${{ parameters.commit }} + - bash: | + sudo rm -Rf $(Build.SourcesDirectory)/package + displayName: "Remove artifacts" + condition: always() + - task: DownloadPipelineArtifact@2 displayName: Download not notarized build inputs: diff --git a/tools/devops/automation/templates/sign-and-notarized/funnel.yml b/tools/devops/automation/templates/sign-and-notarized/funnel.yml index 26ef3ee81f..d780d187e2 100644 --- a/tools/devops/automation/templates/sign-and-notarized/funnel.yml +++ b/tools/devops/automation/templates/sign-and-notarized/funnel.yml @@ -79,6 +79,13 @@ jobs: - checkout: release-scripts clean: true + - bash: | + sudo rm -Rf $(Build.SourcesDirectory)/package + sudo rm -Rf $(Build.SourcesDirectory)/classic-*-signed + sudo rm -Rf $(Build.SourcesDirectory)/package-internal + displayName: "Remove artifacts" + condition: always() + - bash: | mkdir -p $(Build.SourcesDirectory)/package/notarized displayName: 'Create target directories.' diff --git a/tools/devops/automation/templates/sign-and-notarized/sign-and-notarized.yml b/tools/devops/automation/templates/sign-and-notarized/sign-and-notarized.yml index e82b1cac9e..50343d0b4d 100644 --- a/tools/devops/automation/templates/sign-and-notarized/sign-and-notarized.yml +++ b/tools/devops/automation/templates/sign-and-notarized/sign-and-notarized.yml @@ -42,6 +42,11 @@ steps: - ${{ each pair in step }}: ${{ pair.key }}: ${{ pair.value }} +- bash: | + sudo rm -Rf $(Build.SourcesDirectory)/package + displayName: "Remove artifacts" + condition: always() + - task: DownloadPipelineArtifact@2 displayName: Download not notarized build inputs: diff --git a/tools/devops/automation/templates/sign-and-notarized/upload-azure.yml b/tools/devops/automation/templates/sign-and-notarized/upload-azure.yml index 9acfe280b4..1140ceeb4f 100644 --- a/tools/devops/automation/templates/sign-and-notarized/upload-azure.yml +++ b/tools/devops/automation/templates/sign-and-notarized/upload-azure.yml @@ -37,6 +37,13 @@ steps: - checkout: yaml-templates clean: true +- pwsh: | + if (Test-Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/artifacts" -PathType Container) { + Remove-Item -Path "$Env:BUILD_SOURCESDIRECTORY/artifacts" -Force -Recurse + } + displayName: "Remove artifacts" + condition: always() + # Download the Html Report that was added by the tests job. - task: DownloadPipelineArtifact@2 displayName: Download packages diff --git a/tools/devops/automation/templates/tests/download-artifacts.yml b/tools/devops/automation/templates/tests/download-artifacts.yml index 23fc03152b..e7b91e770b 100644 --- a/tools/devops/automation/templates/tests/download-artifacts.yml +++ b/tools/devops/automation/templates/tests/download-artifacts.yml @@ -22,6 +22,13 @@ parameters: steps: +- pwsh: | + if (Test-Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Reports" -PathType Container) { + Remove-Item -Path "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY/Reports" -Force -Recurse + } + displayName: "Remove artifacts" + condition: always() + - ${{ if eq(parameters.runTests, true) }}: - ${{ if eq(parameters.downloadHtmlReport, true) }}: # Download the Html Report that was added by the tests job. diff --git a/tools/mtouch/TranslatedAssemblies/Errors.cs.resx b/tools/mtouch/TranslatedAssemblies/Errors.cs.resx index ed93034ce3..948e49ac96 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.cs.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.cs.resx @@ -751,7 +751,7 @@ Možnost {0} nemůže při použití CoreCLR přebírat hodnotu {1}. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode je povolený, ale bitcode se v Xcode 14+ nepodporuje a je zakázaný. Zakažte prosím bitcode odebráním vlastnosti MtouchEnableBitcode ze souboru projektu. Nepovedlo se zkopírovat sestavení {0} do {1}: {2} @@ -1747,20 +1747,20 @@ Nelze vytvořit instanci typu {0}. - Při pokusu o vyvolání funkce {0} došlo k výjimce: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Při ověřování kódu statického registrátora pro {0} došlo k výjimce: {1}. 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + Sestavení {0} bylo od vytvoření aplikace změněno a byl zrušena platnost vygenerovaného kódu statického registrátora. MVID načteného sestavení je {1}, zatímco MVID pro sestavení, kterému vygenerovaný kód statického registrátora odpovídá, je {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.de.resx b/tools/mtouch/TranslatedAssemblies/Errors.de.resx index 82cad3b59b..d3fd283db2 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.de.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.de.resx @@ -751,7 +751,7 @@ Bei Verwendung von CoreCLR kann die Option "{0}" nicht den Wert "{1}" annehmen. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode ist aktiviert, Bitcode wird jedoch in Xcode 14 und höher nicht unterstützt und wurde deaktiviert. Deaktivieren Sie Bitcode, indem Sie die Eigenschaft "MtouchEnableBitcode" aus der Projektdatei entfernen. Die Assembly "{0}" konnte nicht in "{1}" kopiert werden: {2} @@ -1747,20 +1747,20 @@ Es kann keine Instanz des Typs {0}erstellt werden. - Ausnahme beim Aufrufen der Funktion {0}: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Beim Überprüfen des statischen Registrierungscodes ist eine Ausnahme aufgetreten für: {0}:{1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + Die Assembly {0} wurde geändert, seit die App erstellt wurde, wodurch der generierte statische Registrierungscode ungültig wird. Die MVID für die geladene Assembly ist {1}, während die MVID für die Assembly, der der generierte statische Registrierungscode entspricht, {2}ist. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.es.resx b/tools/mtouch/TranslatedAssemblies/Errors.es.resx index 76c1435561..e3d027d240 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.es.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.es.resx @@ -751,7 +751,7 @@ La opción "{0}" no puede tomar el valor "{1}" cuando se usa CoreCLR. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode está habilitado, pero bitcode no se admite en Xcode 14+ y se ha deshabilitado. Deshabilite bitcode quitando la propiedad "MtouchEnableBitcode" del archivo del proyecto. No se pudo copiar el ensamblado "{0}" en "{1}": {2} @@ -1747,20 +1747,20 @@ No se puede crear una instancia de tipo {0}. - Excepción al intentar invocar la función {0}: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Excepción al validar el código del registrador estático para {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + El ensamblado {0} se ha modificado desde que se compiló la aplicación, lo que invalida el código de registrador estático generado. El MVID del ensamblado cargado es {1}, mientras que el MVID del ensamblado al que corresponde el código del registrador estático generado es {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.fr.resx b/tools/mtouch/TranslatedAssemblies/Errors.fr.resx index 2d90796d4e..69315e6365 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.fr.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.fr.resx @@ -751,7 +751,7 @@ L’option « {0} » ne peut pas prendre la valeur « {1} » lorsque CoreCLR est utilisé. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode est activé, mais bitcode n’est pas pris en charge dans Xcode 14+ et a été désactivé. Désactivez bitcode en supprimant la propriété 'MtouchEnableBitcode' du fichier projet. Impossible de copier l'assembly '{0}' vers '{1}' : {2} @@ -1747,20 +1747,20 @@ Impossible de créer une instance du type {0}. - Une exception s’est produite lors de la tentative d’appel de la fonction {0} : {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Une exception s’est produite lors de la validation du code de bureau d’enregistrement statique pour {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + L’assembly {0} a été modifié depuis la création de l’application, invalidant ainsi le code du bureau d’enregistrement statique généré. Le MVID de l’assembly chargé est {1}, tandis que le MVID pour l’assembly auquel correspond le code de bureau d’enregistrement statique généré est {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.it.resx b/tools/mtouch/TranslatedAssemblies/Errors.it.resx index 9aec503c34..71746a6957 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.it.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.it.resx @@ -751,7 +751,7 @@ Quando si usa CoreCLR, l'opzione '{0}' non può accettare il valore '{1}'. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Il bitcode è abilitato, ma non è supportato in Xcode 14+ ed è stato disabilitato. Disabilitare bitcode rimuovendo la proprietà 'MtouchEnableBitcode' dal file di progetto. Non è stato possibile copiare l'assembly '{0}' in '{1}': {2} @@ -1747,20 +1747,20 @@ Impossibile creare un'istanza del tipo di {0}. - È stata rilevata un'eccezione durante un tentativo di richiamare la funzione {0}: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Si è verificata un’eccezione durante la convalida del codice del registrar statico per {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + L'assembly {0} è stato modificato dopo la compilazione dell'app, invalidando il codice del registrar statico generato. L'oggetto MVID per l'assembly caricato è {1}, mentre il valore MVID per l'assembly a cui corrisponde il codice del registrar statico generato è {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.ja.resx b/tools/mtouch/TranslatedAssemblies/Errors.ja.resx index 49b1d59b86..b13c0a8f91 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.ja.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.ja.resx @@ -751,7 +751,7 @@ CoreCLR を使用している場合、オプション '{0}' は値 '{1}' を取得できません。 - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + ビットコードは有効になっていますが、Xcode 14 以降では Bitcode がサポートされていないため、無効になっています。プロジェクト ファイルから 'MtouchEnableBitcode' プロパティを削除して、ビットコードを無効にしてください。 アセンブリ '{0}' を '{1}' にコピーできませんでした: {2} @@ -1748,20 +1748,20 @@ 型 {0} のインスタンスを作成できません。 - 関数 {0} の呼び出し中に例外が発生しました: {1}。 + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + {0} の静的レジストラー コードの検証中に次の例外が発生しました: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + アセンブリ {0} は、アプリのビルド後に変更されたため、生成された静的レジストラー コードを無効化します。読み込まれたアセンブリの MVID は {1} ですが、生成された静的レジストラー コードが対応するのは {2} です。 \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.ko.resx b/tools/mtouch/TranslatedAssemblies/Errors.ko.resx index aae5c24aa5..b10e67af53 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.ko.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.ko.resx @@ -751,7 +751,7 @@ '{0}' 옵션은 CoreCLR을 사용할 때 '{1}' 값을 가져올 수 없습니다. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + 비트코드는 활성화되었지만 비트코드는 Xcode 14+에서 지원되지 않으며 비활성화되었습니다. 프로젝트 파일에서 'MtouchEnableBitcode' 속성을 제거하여 비트코드를 비활성화하세요. '{0}' 어셈블리를 '{1}'(으)로 복사할 수 없습니다. {2} @@ -1747,20 +1747,20 @@ {0} 형식의 인스턴스를 만들 수 없습니다. - 함수 {0}: {1}을(를) 호출하는 동안 예외가 발생했습니다. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + {0}에 대한 정적 등록 기관 코드의 유효성을 검사하는 동안 예외가 발생했습니다. {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + 앱이 빌드된 이후 어셈블리 {0}이(가) 수정되어 생성된 정적 등록 대행자 코드가 무효화되었습니다. 로드된 어셈블리의 MVID는 {1}이고 생성된 정적 등록 대행자 코드가 해당하는 어셈블리의 MVID는 {2}입니다. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.pl.resx b/tools/mtouch/TranslatedAssemblies/Errors.pl.resx index 37cc2924c4..d0b71ba9ba 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.pl.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.pl.resx @@ -751,7 +751,7 @@ Opcja "{0}" nie może przyjmować wartości "{1}" podczas korzystania z repozytorium CoreCLR. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Kod bitowy jest włączony, ale kod bitowy nie jest obsługiwany w środowisku Xcode 14+ i został wyłączony. Wyłącz kod bitowy, usuwając właściwość „MtouchEnableBitcode” z pliku projektu. Nie można skopiować zestawu „{0}” do lokalizacji „{1}”: {2} @@ -1747,20 +1747,20 @@ Nie można utworzyć wystąpienia typu {0}. - Wystąpił wyjątek podczas próby wywołania funkcji {0}: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Wystąpił wyjątek podczas weryfikowania kodu rejestratora statycznego dla {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + Zestaw {0} został zmodyfikowany od czasu utworzenia aplikacji, unieważniając wygenerowany kod rejestratora statycznego. MVID dla załadowanego zestawu jest {1}, a MVID dla zestawu, któremu odpowiada wygenerowany kod statycznego rejestratora, to {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.pt-BR.resx b/tools/mtouch/TranslatedAssemblies/Errors.pt-BR.resx index 707f33b9f6..624385bb9a 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.pt-BR.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.pt-BR.resx @@ -751,7 +751,7 @@ A opção '{0}' não pode assumir o valor '{1}' ao usar CoreCLR. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + O bitcode está habilitado, mas o bitcode não é suportado no Xcode 14+ e foi desabilitado. Desabilite o bitcode removendo a propriedade 'MtouchEnableBitcode' do arquivo de projeto. Não foi possível copiar o assembly '{0}' para '{1}': {2} @@ -1747,20 +1747,20 @@ Não foi possível criar uma instância do tipo {0}. - Ocorreu uma exceção ao tentar invocar a função {0}: {1} + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Ocorreu uma exceção ao validar o código do registrador estático para {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + O assembly {0} foi modificado desde que o aplicativo foi criado, invalidando o código do registrador estático gerado. O MVID para o assembly carregado é {1}, enquanto o MVID para o assembly ao qual o código do registrador estático gerado corresponde é {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.ru.resx b/tools/mtouch/TranslatedAssemblies/Errors.ru.resx index 89b2c72a4a..5f1c57ac02 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.ru.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.ru.resx @@ -751,7 +751,7 @@ Параметр '{0}' не может иметь значение '{1}' при использовании CoreCLR. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode включен, но bitcode не поддерживается в Xcode 14+ и был отключен. Отключите bitcode, удалив свойство "MtouchEnableBitcode" из файла проекта. Не удалось скопировать сборку "{0}" в "{1}": {2}. @@ -1747,20 +1747,20 @@ Невозможно создать экземпляр типа {0}. - Возникло исключение при попытке вызвать функцию {0}: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + Произошло исключение при проверке кода статического регистратора для {0}: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + Сборка {0} была изменена с момента сборки приложения, что аннулирует созданный код статического регистратора. MVID для загруженной сборки — {1}, в то время как MVID для сборки, которой соответствует созданный код статического регистратора — {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.tr.resx b/tools/mtouch/TranslatedAssemblies/Errors.tr.resx index c8d9621cd1..fdf30183ec 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.tr.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.tr.resx @@ -751,7 +751,7 @@ CoreCLR kullanılırken '{0}' seçeneği '{1}' değerini alamaz. - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + Bitcode etkinleştirildi, ancak bitcode Xcode 14+'ta desteklenmiyor ve devre dışı bırakıldı. Lütfen 'MtouchEnableBitcode' özelliğini proje dosyasından kaldırarak bitcode'ı devre dışı bırakın. '{0}' bütünleştirilmiş kodu '{1}' konumuna kopyalanamadı: {2} @@ -1747,20 +1747,20 @@ {0} türünde örnek oluşturulamıyor. - {0} işlevi çağrılmaya çalışılırken özel durum oluştu: {1}. + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + {0} derlemesinin statik kaydedici kodu doğrulanırken bir özel durum oluştu: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + Derleme {0}, uygulama oluşturulduktan sonra değiştirildi ve bunun sonucunda, oluşturulan statik kaydedici kodu geçersiz kılındı. Yüklenen derlemenin MVID'si {1} iken oluşturulan statik kaydedici kodunun karşılık geldiği derlemenin MVID'si {2}. \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.zh-Hans.resx b/tools/mtouch/TranslatedAssemblies/Errors.zh-Hans.resx index ddb9365982..5ca5560deb 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.zh-Hans.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.zh-Hans.resx @@ -751,7 +751,7 @@ 使用 CoreCLR 时,选项“{0}”无法取值“{1}”。 - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + 已启用 Bitcode,但 Xcode 14+ 中不支持 Bitcode,并且已将其禁用。请通过从项目文件中删除 “MtouchEnableBitcode” 属性来禁用 Bitcode。 无法将程序集 "{0}" 复制到 "{1}": {2} @@ -1747,20 +1747,20 @@ 无法创建类型 {0} 的实例。 - 尝试调用函数 {0} 时发生异常:{1}。 + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + 验证 {0} 的静态注册器代码时发生异常: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + 自生成应用以来,已对程序集 {0} 进行了修改,从而使生成的静态注册器代码无效。已加载程序集的 MVID 为 {1},而生成的静态注册器代码对应的程序集的 MVID 为 {2}。 \ No newline at end of file diff --git a/tools/mtouch/TranslatedAssemblies/Errors.zh-Hant.resx b/tools/mtouch/TranslatedAssemblies/Errors.zh-Hant.resx index d4a24bcf43..e520853a1c 100644 --- a/tools/mtouch/TranslatedAssemblies/Errors.zh-Hant.resx +++ b/tools/mtouch/TranslatedAssemblies/Errors.zh-Hant.resx @@ -751,7 +751,7 @@ 使用 CoreCLR 時,選項 '{0}' 不能採用值 '{1}'。 - Bitcode is enabled, but bitcode is not supported in Xcode 14+ and has been disabled. Please disable bitcode by removing the 'MtouchEnableBitcode' property from the project file. + 已啟用 Bitcode,但 Xcode 14+ 中不支援 Bitcode,已停用。請從專案檔移除 'MtouchEnableBitcode' 屬性,以停用 Bitcode。 無法將組件 '{0}' 複製到 '{1}': {2} @@ -1747,20 +1747,20 @@ 無法建立 {0} 類型的執行個體。 - 嘗試叫用函數 {0} 時發生例外狀況: {1}。 + An exception occurred while trying to invoke the function {0}: {1} 0: name of function 1: exception info - An exception occurred while validating the static registrar code for {0}: {1} + 驗證 {0} 的靜態登錄器程式碼時發生例外狀況: {1} 0: name of an assembly 1: exception info - The assembly {0} has been modified since the app was built, invalidating the generated static registrar code. The MVID for the loaded assembly is {1}, while the MVID for the assembly the generated static registrar code corresponds to is {2}. + 自從建置應用程式後,組件 {0} 已經修改,這會使產生的靜態登錄器程式碼失效。載入之組件的 MVID 為 {1},而產生之靜態登錄器程式碼對應之組件的 MVID 為 {2}。 \ No newline at end of file