Skip to content

Commit 2e83697

Browse files
authored
[AVRouting] Update bindings to Xcode 26 beta 1-5. (#23436)
1 parent 8911caf commit 2e83697

File tree

9 files changed

+31
-17
lines changed

9 files changed

+31
-17
lines changed

src/avrouting.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,29 @@ interface AVCustomRoutingEvent {
135135
[Export ("route")]
136136
AVCustomDeviceRoute Route { get; }
137137
}
138+
139+
[TV (26, 0), MacCatalyst (26, 0), NoMac, iOS (26, 0)]
140+
[BaseType (typeof (NSObject))]
141+
[DisableDefaultCtor]
142+
interface AVRoutingPlaybackArbiter {
143+
[Static]
144+
[Export ("sharedRoutingPlaybackArbiter")]
145+
AVRoutingPlaybackArbiter SharedInstance { get; }
146+
147+
[TV (26, 0), NoMacCatalyst, NoMac, NoiOS]
148+
[NullAllowed]
149+
[Export ("preferredParticipantForNonMixableAudioRoutes", ArgumentSemantic.Weak)]
150+
IAVRoutingPlaybackParticipant PreferredParticipantForNonMixableAudioRoutes { get; set; }
151+
152+
[TV (26, 0), MacCatalyst (26, 0), NoMac, iOS (26, 0)]
153+
[NullAllowed, Export ("preferredParticipantForExternalPlayback", ArgumentSemantic.Weak)]
154+
IAVRoutingPlaybackParticipant PreferredParticipantForExternalPlayback { get; set; }
155+
}
156+
157+
interface IAVRoutingPlaybackParticipant { }
158+
159+
[TV (26, 0), MacCatalyst (26, 0), NoMac, iOS (26, 0)]
160+
[Protocol (BackwardsCompatibleCodeGeneration = false)]
161+
interface AVRoutingPlaybackParticipant {
162+
}
138163
}

src/build/dotnet/generator-frameworks.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ partial class Frameworks {
303303
"AuthenticationServices",
304304
"AVFoundation",
305305
"AVKit",
306+
"AVRouting",
306307
"BackgroundAssets",
307308
"BackgroundTasks",
308309
"BrowserEngineKit",

src/frameworks.sources

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,6 +2206,7 @@ TVOS_FRAMEWORKS = \
22062206
AppTrackingTransparency \
22072207
AudioToolbox \
22082208
AudioUnit \
2209+
AVRouting \
22092210
BackgroundAssets \
22102211
BackgroundTasks \
22112212
BrowserEngineKit \

src/rsp/dotnet/tvos-defines-dotnet.rsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
-d:HAS_AUTHENTICATIONSERVICES
88
-d:HAS_AVFOUNDATION
99
-d:HAS_AVKIT
10+
-d:HAS_AVROUTING
1011
-d:HAS_BACKGROUNDASSETS
1112
-d:HAS_BACKGROUNDTASKS
1213
-d:HAS_BROWSERENGINEKIT

tests/dotnet/UnitTests/ProjectTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,6 +3124,7 @@ public void AppendRuntimeIdentifierToOutputPath_DisableDirectoryBuildProps (Appl
31243124
"/System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices",
31253125
"/System/Library/Frameworks/AVFoundation.framework/AVFoundation",
31263126
"/System/Library/Frameworks/AVKit.framework/AVKit",
3127+
"/System/Library/Frameworks/AVRouting.framework/AVRouting",
31273128
"/System/Library/Frameworks/BackgroundAssets.framework/BackgroundAssets",
31283129
"/System/Library/Frameworks/BackgroundTasks.framework/BackgroundTasks",
31293130
"/System/Library/Frameworks/CFNetwork.framework/CFNetwork",

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVRouting.todo

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-AVRouting.todo

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVRouting.todo

Lines changed: 0 additions & 7 deletions
This file was deleted.

tools/common/Frameworks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ public static Frameworks TVOSFrameworks {
590590
{ "BackgroundAssets", "BackgroundAssets", 18, 4 },
591591
{ "MetalFX", "MetalFX", new Version (18, 4), NotAvailableInSimulator },
592592
{ "SecurityUI", "SecurityUI", 18, 4 },
593+
594+
{ "AVRouting", "AVRouting", 26, 0 },
593595
};
594596
}
595597
return tvos_frameworks;

0 commit comments

Comments
 (0)