This commit is contained in:
Rolf Bjarne Kvinge 2022-12-07 08:07:44 +01:00
Родитель 684c664740 669070c6ad
Коммит 90c4972db1
435 изменённых файлов: 38701 добавлений и 35520 удалений

18
.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<<EOF" >> 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
})
}

Просмотреть файл

@ -10,10 +10,13 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-emsdk -->
<add key="darc-pub-dotnet-emsdk-d71ea7c" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-d71ea7cb/nuget/v3/index.json" />
<add key="darc-pub-dotnet-emsdk-d71ea7c-1" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-d71ea7cb-1/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-emsdk -->
<!-- Begin: Package sources from dotnet-aspnetcore -->
<!-- End: Package sources from dotnet-aspnetcore -->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-pub-dotnet-runtime-4f15a5c" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-4f15a5cf/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-runtime -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" protocolVersion="3" />
@ -34,6 +37,8 @@
<add key="darc-pub-dotnet-runtime-f2980ae" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-f2980ae1/nuget/v3/index.json" />
<!-- And a 6.0.12 feed -->
<add key="darc-pub-dotnet-runtime-15d285f" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-15d285f3/nuget/v3/index.json" />
<!-- Add a 6.0.13 feed -->
<add key="darc-pub-dotnet-runtime-de84cf9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-d5edd29b-1/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />

Просмотреть файл

@ -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."
}

Просмотреть файл

@ -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."
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 dune application Mac Catalyst .NET",
"symbols/bundleId/description": "Remplace CFBundleIdentifier dans Info.plist",
"symbols/minOSVersion/description": "Remplace SupportedOSPlatformVersion dans le fichier projet"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 をオーバーライドします"
}

Просмотреть файл

@ -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 재정의"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 в файле проекта"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 dune bibliothèque de liaisons Mac Catalyst .NET"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 バインド ライブラリを作成するためのプロジェクト"
}

Просмотреть файл

@ -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 바인딩 라이브러리를 만들기 위한 프로젝트"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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 绑定库的项目"
}

Просмотреть файл

@ -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 繫結程式庫的專案"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "iOS Controller",
"name": "iOS-Controller",
"description": "iOS-Controllerklasse",
"symbols/namespace/description": "Namespace für den generierten Code"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -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é"
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "iOS Controller",
"name": "iOS コントローラー",
"description": "iOS コントローラー クラス",
"symbols/namespace/description": "生成されたコードの名前空間"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "iOS Controller",
"name": "iOS 컨트롤러",
"description": "iOS 컨트롤러 클래스",
"symbols/namespace/description": "생성된 코드의 네임스페이스"
}

Просмотреть файл

@ -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."
}

Просмотреть файл

@ -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"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Майкрософт",
"name": "iOS Controller",
"name": "Контроллер iOS",
"description": "Класс контроллера iOS",
"symbols/namespace/description": "пространство имен для созданного кода"
}

Просмотреть файл

@ -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ı"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "iOS Controller",
"name": "iOS 控制器",
"description": "iOS 控制器类",
"symbols/namespace/description": "生成的代码的命名空间"
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"author": "Microsoft",
"name": "iOS Controller",
"name": "iOS 控制器",
"description": "iOS 控制器類別",
"symbols/namespace/description": "適用於產生之程式碼的命名空間"
}

Просмотреть файл

@ -12,7 +12,7 @@
"shortName": "ios-storyboard",
"sourceName": "Storyboard1",
"primaryOutputs": [
{ "path": "Stortboard1.storyboard" }
{ "path": "Storyboard1.storyboard" }
],
"defaultName": "Storyboard1"
}

Просмотреть файл

@ -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 ($" <WorkloadPackages Include=\"$(NuGetPackagePath)\\Microsoft.NET.Sdk.{platform}.Manifest*.nupkg\" Version=\"{version}\" />");
writer.WriteLine ($" <WorkloadPackages Include=\"$(NuGetPackagePath)\\Microsoft.NET.Sdk.{platform}.Manifest*.nupkg\" Version=\"{version}\" SupportsMachineArch=\"true\" />");
}
foreach (var entry in platforms) {
var platform = entry.Item1;

2
external/Xamarin.MacDev поставляемый

@ -1 +1 @@
Subproject commit 33502e15ba3fa75b68a4a4c303b56ede374dc5ff
Subproject commit ac2647b6436972218f07555487abb564506c9eb5

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Neznámá vlastnost {0} s hodnotou {1}.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Neplatná hodnota {0} pro nárok {1} typu {2} zadaná ve skupině položek CustomEntitlements. Neočekávala se vůbec žádná hodnota.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Neplatná hodnota {0} pro nárok {1} typu {2} zadaná ve skupině položek CustomEntitlements. Očekávala se hodnota true nebo false.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Neznámý typ {0} pro nárok {1} zadaný ve skupině položek CustomEntitlements Očekávala se hodnota Remove, Boolean, String nebo StringArray.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Neočekávané rozšíření{0}pro nativní odkaz{1}v manifestu{2}</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Unbekannte Eigenschaft „{0}“ mit dem Wert „{1}“.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>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.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>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.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Unbekannter Typ „{0}“ für die Berechtigung „{1}“, die in der CustomEntitlements-Elementgruppe angegeben ist. „Remove“, „Boolean“, „String“ oder „StringArray“ wurden erwartet.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Unerwartete Erweiterung "{0}" für systemeigenen Verweis "{1}" im Manifest "{2}".</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Propiedad desconocida \"{0}\" con el valor \"{1}\".</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>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.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>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".</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Tipo desconocido "{0}" para el derecho "{1}" especificado en el grupo de elementos CustomEntitlements. Se esperaba "Remove", "Boolean", "String" o "StringArray".</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Extensión inesperada '{0}' para la referencia nativa '{1}' en el manifiesto '{2}'.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Propriété inconnue '{0}' avec la valeur '{1}'.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Valeur «{0}» non valide pour le droit «{1}» de type «{2}» spécifié dans le groupe déléments CustomEntitlements. Aucune valeur attendue.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Valeur «{0}» non valide pour le droit «{1}» de type «{2}» spécifié dans le groupe déléments CustomEntitlements. 'true' ou 'false' attendu.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Type inconnu '{0}' pour le droit '{1}' spécifié dans le groupe déléments CustomEntitlements. 'Remove', 'Boolean', 'String' ou 'StringArray' attendu.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Extension inattendue '{0}' pour la référence native '{1}' dans le manifeste '{2}'.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Proprietà sconosciuta '{0}' con valore '{1}'.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Valore non valido '{0}' per l'entitlement '{1}' di tipo '{2}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: nessun valore.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Valore non valido '{0}' per l'entitlement '{1}' di tipo '{2}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: 'true' o 'false'.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Tipo sconosciuto '{0}' per l'entitlement '{1}' specificato nel gruppo di elementi CustomEntitlements. Valore previsto: 'Remove', 'Boolean', 'String' o 'StringArray'.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Estensione imprevista '{0}' per il riferimento nativo '{1}' nel manifesto '{2}'.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>値 '{1}' のプロパティ '{0}' が不明です。</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>CustomEntitlements アイテム グループで指定された '{2}' 種類のエンタイトルメント '{1}' の値 '{0}' が無効です。値がないことが必要です。</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>CustomEntitlements アイテム グループで指定された '{2}' 種類のエンタイトルメント '{1}' の値 '{0}' が無効です。'true' または 'false' であることが必要です。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>CustomEntitlements アイテム グループで指定されたエンタイトルメント '{1}' の不明な種類 '{0}'。'Remove'、'Boolean'、'String'、または 'StringArray' が必要です。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>マニフェスト '{2}' のネイティブ参照 '{1}' に予期しない拡張機能 '{0}'。</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>알 수 없는 속성 '{0}'과(와) 값 '{1}'입니다.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>CustomEntitlements 항목 그룹에 지정된 '{2}' 유형의 인타이틀먼트 '{1}'에 대한 값 '{0}'이(가) 잘못되었습니다. 값이 전혀 필요되지 않습니다.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>CustomEntitlements 항목 그룹에 지정된 '{2}' 유형의 인타이틀먼트 '{1}'에 대한 값 '{0}'이(가) 잘못되었습니다. 'true' 또는 'false'가 필요합니다.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>CustomEntitlements 항목 그룹에 지정된 인타이틀먼트 '{1}'에 대해 알 수 없는 유형 '{0}'. 'Remove', 'Boolean', 'String' 또는 'StringArray'가 필요합니다.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>매니페스트 '{2}'의 네이티브 참조 '{1}'에 대한 예기치 않은 확장 '{0}'.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Nieznana właściwość „{0}“ z wartością „{1}“.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Nieprawidłowa wartość „{0}” dla uprawnienia „{1}” typu „{2}” określona w grupie elementów CustomEntitlements. Nie oczekiwano żadnej wartości.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Nieprawidłowa wartość „{0}” dla uprawnienia „{1}” typu „{2}” określona w grupie elementów CustomEntitlements. Oczekiwano wartości „true” lub „false”.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Nieznany typ „{0}” dla uprawnienia „{1}” określony w grupie elementów CustomEntitlements. Oczekiwano instrukcji „Remove”, „Boolean”, „String” lub „StringArray”.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Nieoczekiwane rozszerzenie „{0}” dla natywnego odwołania „{1}” w manifeście „{2}”.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Propriedade desconhecida '{0}' com valor '{1}'.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Valor '{0}' inválido para o direito '{1}' do tipo '{2}' especificado no grupo de itens CustomEntitlements. Nenhum valor esperado.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Valor '{0}' inválido para o direito '{1}' do tipo '{2}' especificado no grupo de itens CustomEntitlements. Esperado 'true' ou 'false'.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Tipo '{0}' desconhecido para o direito '{1}' especificado no grupo de itens CustomEntitlements. Esperado 'Remove', 'Boolean', 'String' ou 'StringArray'.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Extensão inesperada '{0}' para referência nativa '{1}' no manifesto '{2}'.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>Неизвестное свойство \"{0}\" со значением \"{1}\".</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>Недопустимое значение "{0}" для объема обслуживания "{1}" типа "{2}", указанного в группе элементов CustomEntitlements. Ожидается отсутствие значения.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>Недопустимое значение "{0}" для объема обслуживания "{1}" типа "{2}", указанного в группе элементов CustomEntitlements. Ожидается ИСТИНА или ЛОЖЬ.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>Неизвестный тип "{0}" для объема обслуживания "{1}", указанного в группе элементов CustomEntitlements. Ожидается "Remove", "Boolean", "String" или "StringArray".</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>Непредвиденное расширение "{0}" для собственной ссылки "{1}" в манифесте "{2}".</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>'{0}' değerine sahip bilinmeyen özellik '{1}'.</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>'{2}' türündeki '{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' değeri geçersiz. Hiçbir değer beklenmiyordu.</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>'{2}' türündeki '{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' değeri geçersiz. 'true' veya 'false' bekleniyordu.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>'{1}' yetkilendirmesi için CustomEntitlements öğe grubunda belirtilen '{0}' türü bilinmiyor. 'Remove', 'Boolean', 'String' veya 'StringArray' bekleniyordu.</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>'{2}' bildiriminde '{1}' yerel başvurusu için beklenmeyen '{0}' uzantısı.</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>值为“{1}”的未知属性“{0}”。</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>在 CustomEntitlements 项组中为类型为“{2}”的权利“{1}”指定的值“{0}”无效。根本不应为任何值。</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>在 CustomEntitlements 项组中为类型为“{2}”的权利“{1}”指定的值“{0}”无效。应为 “true” 或 “false”。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>在 CustomEntitlements 项组中指定的权利“{1}”的类型“{0}”未知。应为 “Remove”、“Boolean”、“String” 或“StringArray”。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>清单“{2}”中本机引用“{1}”的意外扩展“{0}”。</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -1148,13 +1148,13 @@
<value>值為 '{1}' 的未知屬性'{0}'。</value>
</data>
<data name="E7102" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected no value at all.</value>
<value>CustomEntitlements 項目群組中指定之類型為 '{2}' 之權利 '{1}' 的值 '{0}' 無效。預期沒有任何值。</value>
<comment>
Don't translate: CustomEntitlements (name of option in project file)
</comment>
</data>
<data name="E7103" xml:space="preserve">
<value>Invalid value '{0}' for the entitlement '{1}' of type '{2}' specified in the CustomEntitlements item group. Expected 'true' or 'false'.</value>
<value>CustomEntitlements 項目群組中指定之類型為 '{2}' 之權利 '{1}' 的值 '{0}' 無效。必須是 'true' 或 'false'。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1162,7 +1162,7 @@
</comment>
</data>
<data name="E7104" xml:space="preserve">
<value>Unknown type '{0}' for the entitlement '{1}' specified in the CustomEntitlements item group. Expected 'Remove', 'Boolean', 'String', or 'StringArray'.</value>
<value>CustomEntitlements 項目群組中指定之權利 '{1}' 的未知類型 '{0}'。必須是 'Remove'、'Boolean'、'String' 或 'StringArray'。</value>
<comment>
Don't translate:
* CustomEntitlements (name of option in project file)
@ -1170,7 +1170,7 @@
</comment>
</data>
<data name="W7105" xml:space="preserve">
<value>Unexpected extension '{0}' for native reference '{1}' in manifest '{2}'.</value>
<value>在資訊清單 '{2}' 中的原生參考 '{1}' 發生非預期的延伸模組 '{0}'。</value>
<comment>
{0}: file extension
{1}: path to a file

Просмотреть файл

@ -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;
}

Просмотреть файл

@ -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);
}
}

Просмотреть файл

@ -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;
}
}

Просмотреть файл

@ -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;
}
}

Просмотреть файл

@ -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;
}
}

Просмотреть файл

@ -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<T> : IEnumerator<T>
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);
unsafe {
count = NSFastEnumerator.objc_msgSend (collection.Handle, Selector.GetHandle ("countByEnumeratingWithState:objects:count:"), state, &state->array1, (nuint) NSFastEnumerationState.ArrayLength);
if (!started) {
started = true;
mutationValue = Marshal.ReadIntPtr (state.mutationsPtr);
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<T> implementation
public T Current {
public unsafe T Current {
get {
return Runtime.GetINativeObject<T> (Marshal.ReadIntPtr (state.itemsPtr, IntPtr.Size * (int) current), false);
IntPtr ptr;
unsafe {
ptr = state->itemsPtr [(int) current];
}
return Runtime.GetINativeObject<T> (ptr, false);
}
}
#endregion

Просмотреть файл

@ -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);
}

Просмотреть файл

@ -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<double, NSString> valueDescriptionProvider);
NativeHandle Constructor (string title, double lowerBound, double upperBound, [NullAllowed] NSNumber [] gridlinePositions, Func<double, NSString> valueDescriptionProvider);
[Export ("initWithAttributedTitle:lowerBound:upperBound:gridlinePositions:valueDescriptionProvider:")]
[DesignatedInitializer]
NativeHandle Constructor (NSAttributedString attributedTitle, double lowerBound, double upperBound, [NullAllowed] NSNumber[] gridlinePositions, Func<double, NSString> valueDescriptionProvider);
NativeHandle Constructor (NSAttributedString attributedTitle, double lowerBound, double upperBound, [NullAllowed] NSNumber [] gridlinePositions, Func<double, NSString> 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 {

Просмотреть файл

@ -45,7 +45,8 @@ namespace Accounts {
NSString ErrorDomain { get; }
#endif
[iOS (7,0)][NoMac]
[iOS (7, 0)]
[NoMac]
[Export ("userFullName")]
string UserFullName { get; }
}
@ -105,7 +106,7 @@ namespace Accounts {
[Export ("renewCredentialsForAccount:completion:")]
[Async]
void RenewCredentials (ACAccount account, Action<ACAccountCredentialRenewResult,NSError> completionHandler);
void RenewCredentials (ACAccount account, Action<ACAccountCredentialRenewResult, NSError> completionHandler);
[Protected]
[Export ("requestAccessToAccountsWithType:options:completion:")]
@ -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; }
}
@ -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")]

Просмотреть файл

@ -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; }
@ -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,7 +168,7 @@ 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; }
@ -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.")]

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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 ();

Просмотреть файл

@ -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 {

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -47,19 +47,19 @@ namespace AssetsLibrary {
[Export ("writeImageDataToSavedPhotosAlbum:metadata:completionBlock:")]
[Async]
void WriteImageToSavedPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteImageToSavedPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("writeImageToSavedPhotosAlbum:metadata:completionBlock:")]
[Async]
void WriteImageToSavedPhotosAlbum (CGImage imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteImageToSavedPhotosAlbum (CGImage imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("writeImageToSavedPhotosAlbum:orientation:completionBlock:")]
[Async]
void WriteImageToSavedPhotosAlbum (CGImage imageData, ALAssetOrientation orientation, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteImageToSavedPhotosAlbum (CGImage imageData, ALAssetOrientation orientation, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("writeVideoAtPathToSavedPhotosAlbum:completionBlock:")]
[Async]
void WriteVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Field ("ALAssetsLibraryChangedNotification")]
[Notification]
@ -155,19 +155,19 @@ namespace AssetsLibrary {
[Export ("writeModifiedImageDataToSavedPhotosAlbum:metadata:completionBlock:")]
[Async]
void WriteModifiedImageToSavedToPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteModifiedImageToSavedToPhotosAlbum (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("writeModifiedVideoAtPathToSavedPhotosAlbum:completionBlock:")]
[Async]
void WriteModifiedVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void WriteModifiedVideoToSavedPhotosAlbum (NSUrl videoPathURL, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("setImageData:metadata:completionBlock:")]
[Async]
void SetImageData (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void SetImageData (NSData imageData, NSDictionary metadata, [NullAllowed] Action<NSUrl, NSError> completionBlock);
[Export ("setVideoAtPath:completionBlock:")]
[Async]
void SetVideoAtPath (NSUrl videoPathURL, [NullAllowed] Action<NSUrl,NSError> completionBlock);
void SetVideoAtPath (NSUrl videoPathURL, [NullAllowed] Action<NSUrl, NSError> completionBlock);
}
[BaseType (typeof (NSObject))]

Просмотреть файл

@ -41,14 +41,14 @@ 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);
@ -57,9 +57,9 @@ namespace AudioUnit {
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)]
@ -208,7 +208,7 @@ namespace AudioUnit {
}
[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; }
@ -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<NSString, NSObject> 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);
@ -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);
@ -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]

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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,7 +28,7 @@ namespace AutomaticAssessmentConfiguration {
}
[iOS (14, 0)]
[MacCatalyst (14,0)]
[MacCatalyst (14, 0)]
[Native]
enum AEAutocorrectMode : long {
None = 0,
@ -36,8 +36,8 @@ namespace AutomaticAssessmentConfiguration {
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<AEAssessmentApplication, AEAssessmentParticipantConfiguration> 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; }
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -50,15 +50,14 @@ 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 classs methods is unsupported and results in undefined behavior.
#endif
interface AVPictureInPictureController
{
interface AVPictureInPictureController {
[Static]
[Export ("isPictureInPictureSupported")]
bool IsPictureInPictureSupported { get; }
@ -66,7 +65,7 @@ namespace AVKit {
[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);
@ -96,12 +95,12 @@ namespace AVKit {
[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; }
@ -120,32 +119,31 @@ 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 {}
interface IAVPictureInPictureControllerDelegate { }
[iOS (9,0), Mac (10,15), TV (14,0)]
[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);
@ -166,7 +164,7 @@ namespace AVKit {
}
[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<NSString, NSObject> PixelBufferAttributes { get; set; }
[NoiOS, TV (13,0), NoWatch]
[NoiOS, TV (13, 0), NoWatch]
[NullAllowed, Export ("customOverlayViewController", ArgumentSemantic.Strong)]
UIViewController CustomOverlayViewController { get; set; }
@ -294,53 +294,52 @@ 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);
@ -369,116 +368,128 @@ namespace AVKit {
[Export ("playerViewController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")]
void RestoreUserInterfaceForPictureInPicture (AVPlayerViewController playerViewController, Action<bool> 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<bool> completion);
[TV (13,0), NoiOS, NoWatch, NoMac]
[TV (13, 0), NoiOS, NoWatch, NoMac]
[Export ("playerViewController:skipToPreviousChannel:"), EventArgs ("AVPlayerViewSkipToPreviousChannel")]
void SkipToPreviousChannel (AVPlayerViewController playerViewController, Action<bool> 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<bool> 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<bool, AVAudioSessionRouteSelection> 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; }
@ -545,41 +556,41 @@ 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,34 +699,34 @@ 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);
@ -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 {
@ -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<bool> 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);

Просмотреть файл

@ -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; }

Просмотреть файл

@ -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 {
[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<BADownload> 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<bool, NSError> 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; }

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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 {

Просмотреть файл

@ -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<NSError> completion);
[iOS (11,0)]
[iOS (11, 0)]
[Async]
[Export ("requestTransactionWithActions:completion:")]
void RequestTransaction (CXAction[] actions, Action<NSError> completion);
void RequestTransaction (CXAction [] actions, Action<NSError> completion);
[iOS (11,0)]
[iOS (11, 0)]
[Async]
[Export ("requestTransactionWithAction:completion:")]
void RequestTransaction (CXAction action, Action<NSError> 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<CXCallDirectoryEnabledStatus, NSError> 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<NSError> 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);

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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; }
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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<CLSContext, NSError> 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<NSError> 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<CLSActivity, NSError> 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 {

Просмотреть файл

@ -19,7 +19,7 @@ using NativeHandle = System.IntPtr;
namespace ClockKit {
[Watch (7,0)]
[Watch (7, 0)]
[ErrorDomain ("CLKWatchFaceLibraryErrorDomain")]
[Native]
public enum CLKWatchFaceLibraryErrorCode : long {
@ -81,7 +81,7 @@ namespace ClockKit {
void GetTimelineAnimationBehavior (CLKComplication complication, Action<CLKComplicationTimelineAnimationBehavior> handler);
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (6,0)]
[Watch (6, 0)]
[Export ("getAlwaysOnTemplateForComplication:withHandler:")]
void GetAlwaysOnTemplate (CLKComplication complication, Action<CLKComplicationTemplate> handler);
@ -116,19 +116,19 @@ namespace ClockKit {
void GetPlaceholderTemplate (CLKComplication complication, Action<CLKComplicationTemplate> handler);
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[Export ("getLocalizableSampleTemplateForComplication:withHandler:")]
void GetLocalizableSampleTemplate (CLKComplication complication, Action<CLKComplicationTemplate> handler);
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (7, 0)]
[Export ("getComplicationDescriptorsWithHandler:")]
void GetComplicationDescriptors (Action<CLKComplicationDescriptor[]> handler);
void GetComplicationDescriptors (Action<CLKComplicationDescriptor []> 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,7 +761,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeSimpleText {
@ -779,7 +779,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeSimpleImage {
@ -797,7 +797,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeRingText {
@ -821,7 +821,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeRingImage {
@ -845,7 +845,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeStackText {
@ -869,7 +869,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeStackImage {
@ -893,7 +893,7 @@ namespace ClockKit {
}
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Use WidgetKit instead.")]
[Watch (3,0)]
[Watch (3, 0)]
[BaseType (typeof (CLKComplicationTemplate))]
interface CLKComplicationTemplateExtraLargeColumnsText {
@ -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] // <quote>An abstract superclass for all the circular graphic templates.</quote>
[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)]
@ -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] // <quote>An abstract superclass that...</quote>
[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<CLKComplicationWidgetMigrationConfiguration> 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; }

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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]

Просмотреть файл

@ -92,16 +92,19 @@ namespace CoreAnimation {
[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]
@ -109,7 +112,10 @@ namespace CoreAnimation {
CAConstraintLayoutManager LayoutManager { get; }
}
[NoiOS][NoTV][NoWatch][MacCatalyst (13, 1)]
[NoiOS]
[NoTV]
[NoWatch]
[MacCatalyst (13, 1)]
[BaseType (typeof (NSObject))]
interface CAConstraint : NSSecureCoding {
[Export ("attribute")]
@ -143,7 +149,8 @@ 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:")]
@ -167,32 +174,39 @@ namespace CoreAnimation {
[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; }
[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")]
@ -272,25 +287,31 @@ namespace CoreAnimation {
[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")]
@ -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; }
@ -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")]
@ -522,7 +549,10 @@ 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; }
@ -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
@ -661,35 +717,47 @@ namespace CoreAnimation {
[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; }
}
@ -699,7 +767,8 @@ namespace CoreAnimation {
[Export ("layer"), New, Static]
CALayer Create ();
[Static][Export ("fadeDuration")]
[Static]
[Export ("fadeDuration")]
double FadeDuration { get; }
[Export ("levelsOfDetail")]
@ -795,10 +864,12 @@ namespace CoreAnimation {
[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; }
@ -978,7 +1052,7 @@ namespace CoreAnimation {
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);
@ -1063,7 +1140,8 @@ namespace CoreAnimation {
ICAAnimationDelegate Delegate { get; set; }
#endif
[Export ("delegate", ArgumentSemantic.Strong)][NullAllowed]
[Export ("delegate", ArgumentSemantic.Strong)]
[NullAllowed]
NSObject WeakDelegate { get; set; }
[Export ("removedOnCompletion")]
@ -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
@ -1209,26 +1290,35 @@ namespace CoreAnimation {
[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")]
@ -1250,7 +1340,7 @@ namespace CoreAnimation {
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,14 +1349,17 @@ 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
@ -1277,7 +1370,8 @@ namespace CoreAnimation {
[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
@ -1311,7 +1405,8 @@ namespace CoreAnimation {
[Export ("endProgress")]
float EndProgress { get; set; } /* float, not CGFloat */
[Export ("filter", ArgumentSemantic.Strong)][NullAllowed]
[Export ("filter", ArgumentSemantic.Strong)]
[NullAllowed]
NSObject Filter { get; set; }
}
@ -1405,7 +1500,8 @@ namespace CoreAnimation {
CALayer Create ();
[NullAllowed] // by default this property is null
[Export ("colors", ArgumentSemantic.Copy)][Internal]
[Export ("colors", ArgumentSemantic.Copy)]
[Internal]
IntPtr _Colors { get; set; }
[NullAllowed] // by default this property is null
@ -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,7 +1564,8 @@ namespace CoreAnimation {
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface CAMediaTimingFunction : NSSecureCoding {
[Export ("functionWithName:")][Static]
[Export ("functionWithName:")]
[Static]
CAMediaTimingFunction FromName (NSString name);
[Static]
@ -1477,19 +1578,19 @@ namespace CoreAnimation {
[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; }
}
@ -1537,15 +1638,17 @@ namespace CoreAnimation {
}
[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);
@ -1662,7 +1765,7 @@ namespace CoreAnimation {
[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)]
@ -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,7 +1808,7 @@ 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 */
@ -1797,12 +1901,12 @@ namespace CoreAnimation {
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 {
@ -1828,7 +1932,10 @@ namespace CoreAnimation {
[Field ("kCAEmitterBehaviorAttractor")]
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; }
@ -1851,38 +1958,44 @@ namespace CoreAnimation {
[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 {

Просмотреть файл

@ -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,32 +157,32 @@ 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 {
@ -196,9 +199,9 @@ 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 {
@ -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:")]

Просмотреть файл

@ -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; }
}
[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 {
@ -135,12 +138,12 @@ namespace CoreBluetooth {
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);
[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 <CBUUID, NSData> ServiceData { get; set; }
NSDictionary<CBUUID, NSData> 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]
@ -365,16 +370,16 @@ namespace CoreBluetooth {
[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")]
@ -392,21 +397,21 @@ namespace CoreBluetooth {
[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 {
@ -422,8 +427,8 @@ namespace CoreBluetooth {
[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; }
@ -435,8 +440,8 @@ namespace CoreBluetooth {
CBService Service { get; }
}
[Watch (4,0)]
[Mac (10,9)]
[Watch (4, 0)]
[Mac (10, 9)]
[BaseType (typeof (CBCharacteristic))]
[DisableDefaultCtor]
interface CBMutableCharacteristic {
@ -466,12 +471,12 @@ 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 {
@ -485,8 +490,8 @@ namespace CoreBluetooth {
CBCharacteristic Characteristic { get; }
}
[Watch (4,0)]
[Mac (10,9)]
[Watch (4, 0)]
[Mac (10, 9)]
[BaseType (typeof (CBDescriptor))]
[DisableDefaultCtor]
interface CBMutableDescriptor {
@ -499,8 +504,8 @@ 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)]
@ -508,8 +513,8 @@ namespace CoreBluetooth {
[NullAllowed]
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]
@ -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);
@ -646,25 +656,29 @@ namespace CoreBluetooth {
[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; }
@ -686,8 +700,8 @@ namespace CoreBluetooth {
}
[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]
@ -733,7 +747,7 @@ namespace CoreBluetooth {
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 {
@ -852,26 +870,29 @@ namespace CoreBluetooth {
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 {
@ -1038,7 +1069,10 @@ namespace CoreBluetooth {
}
// 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; }
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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,10 +130,9 @@ 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 <os/log.h>.
Default = 0x00,
Info = 0x01,

Просмотреть файл

@ -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")]
@ -354,7 +429,7 @@ namespace CoreGraphics {
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 {
// <quote>The following CGPDFTagProperty keys are to be paired with CFStringRef values</quote>
@ -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 {

Просмотреть файл

@ -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]
@ -144,7 +144,8 @@ namespace CoreHaptics {
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.")]

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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,7 +69,7 @@ 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 {
@ -107,21 +109,21 @@ namespace CoreLocation {
[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
[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)]
[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; }
[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; }
@ -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,27 +177,27 @@ 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; }
@ -202,13 +205,14 @@ namespace CoreLocation {
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; }
[Export ("delegate", ArgumentSemantic.Assign)][NullAllowed]
[Export ("delegate", ArgumentSemantic.Assign)]
[NullAllowed]
NSObject WeakDelegate { get; set; }
[Export ("distanceFilter", ArgumentSemantic.Assign)]
@ -221,7 +225,7 @@ namespace CoreLocation {
CLLocation Location { get; }
// __WATCHOS_PROHIBITED removed in Xcode 8.0 beta 2, assuming it's valid for 3.0+
[Watch (3,0)]
[Watch (3, 0)]
[NoTV]
[Export ("startUpdatingLocation")]
void StartUpdatingLocation ();
@ -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; }
[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,158 +341,178 @@ 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; }
[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<CLBeaconIdentityConstraint> 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<NSError> 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<NSData, NSError> 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);
}
@ -484,70 +520,80 @@ namespace CoreLocation {
[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);
[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)]
[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,7 +633,7 @@ namespace CoreLocation {
[Static]
partial interface CLLocationDistance {
[Mac (10,14)]
[Mac (10, 14)]
[Field ("CLLocationDistanceMax")]
double MaxDistance { get; }
@ -596,14 +645,14 @@ namespace CoreLocation {
[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; }
[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; }
@ -611,23 +660,23 @@ namespace CoreLocation {
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,31 +686,31 @@ 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")]
@ -689,17 +738,17 @@ namespace CoreLocation {
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<NSString, NSObject> 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);

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше