@@ -39,6 +39,11 @@ partial interface HMHomeManager {
3939 [ Protocolize ]
4040 HMHomeManagerDelegate Delegate { get ; set ; }
4141
42+ [ Deprecated ( PlatformName . MacOSX , 13 , 0 , message : "No longer supported." ) ]
43+ [ Deprecated ( PlatformName . iOS , 16 , 1 , message : "No longer supported." ) ]
44+ [ Deprecated ( PlatformName . MacCatalyst , 16 , 1 , message : "No longer supported." ) ]
45+ [ Deprecated ( PlatformName . WatchOS , 9 , 1 , message : "No longer supported." ) ]
46+ [ Deprecated ( PlatformName . TvOS , 16 , 1 , message : "No longer supported." ) ]
4247 [ NullAllowed , Export ( "primaryHome" , ArgumentSemantic . Retain ) ]
4348 HMHome PrimaryHome { get ; }
4449
@@ -47,6 +52,9 @@ partial interface HMHomeManager {
4752
4853 [ NoTV ]
4954 [ NoWatch ]
55+ [ Deprecated ( PlatformName . MacOSX , 13 , 0 , message : "No longer supported." ) ]
56+ [ Deprecated ( PlatformName . iOS , 16 , 1 , message : "No longer supported." ) ]
57+ [ Deprecated ( PlatformName . MacCatalyst , 16 , 1 , message : "No longer supported." ) ]
5058 [ Async ]
5159 [ Export ( "updatePrimaryHome:completionHandler:" ) ]
5260 void UpdatePrimaryHome ( HMHome home , Action < NSError > completion ) ;
@@ -166,6 +174,11 @@ partial interface HMAccessory {
166174 [ NullAllowed , Export ( "firmwareVersion" ) ]
167175 string FirmwareVersion { get ; }
168176
177+ [ NullAllowed ]
178+ [ Mac ( 13 , 0 ) , iOS ( 16 , 1 ) , MacCatalyst ( 16 , 1 ) , Watch ( 9 , 1 ) , TV ( 16 , 1 ) ]
179+ [ Export ( "matterNodeID" , ArgumentSemantic . Copy ) ]
180+ NSNumber MatterNodeId { get ; }
181+
169182 [ NoTV ]
170183 [ NoWatch ]
171184 [ Async ]
@@ -537,7 +550,6 @@ partial interface HMCharacteristicWriteAction {
537550
538551 [ NoTV ]
539552 [ NoWatch ]
540- [ DesignatedInitializer ]
541553 [ Export ( "initWithCharacteristic:targetValue:" ) ]
542554#if XAMCORE_3_0
543555 NativeHandle Constructor ( HMCharacteristic characteristic , INSCopying targetValue ) ;
@@ -774,6 +786,15 @@ partial interface HMHome {
774786 [ Export ( "homeAccessControlForUser:" ) ]
775787 HMHomeAccessControl GetHomeAccessControl ( HMUser user ) ;
776788
789+ // @interface Matter (HMHome)
790+ [ TV ( 16 , 1 ) , iOS ( 16 , 1 ) , MacCatalyst ( 16 , 1 ) , Watch ( 9 , 1 ) ]
791+ [ Export ( "matterControllerID" ) ]
792+ string MatterControllerId { get ; }
793+
794+ [ TV ( 16 , 1 ) , iOS ( 16 , 1 ) , MacCatalyst ( 16 , 1 ) , Watch ( 9 , 1 ) ]
795+ [ Export ( "matterControllerXPCConnectBlock" , ArgumentSemantic . Strong ) ]
796+ Func < NSXpcConnection > MatterControllerXPCConnectBlock { get ; }
797+
777798 // constants
778799
779800 [ MacCatalyst ( 14 , 0 ) ]
@@ -1921,77 +1942,6 @@ interface HMAccessControl {
19211942
19221943 }
19231944
1924- [ iOS ( 15 , 2 ) , Watch ( 8 , 3 ) , TV ( 15 , 2 ) , MacCatalyst ( 15 , 2 ) ]
1925- [ BaseType ( typeof ( NSObject ) ) ]
1926- [ DisableDefaultCtor ]
1927- interface HMMatterHome : NSCopying , NSSecureCoding
1928- {
1929- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1930- [ Export ( "uuid" , ArgumentSemantic . Strong ) ]
1931- NSUuid Uuid { get ; }
1932-
1933- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1934- [ Export ( "name" , ArgumentSemantic . Strong ) ]
1935- string Name { get ; }
1936-
1937- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1938- [ Export ( "initWithUUID:name:" ) ]
1939- [ DesignatedInitializer ]
1940- NativeHandle Constructor ( NSUuid uuid , string name ) ;
1941- }
1942-
1943- delegate void HMFetchRoomHandler ( HMMatterRoom [ ] rooms , NSError error ) ;
1944-
1945- [ iOS ( 15 , 2 ) , Watch ( 8 , 3 ) , TV ( 15 , 2 ) , MacCatalyst ( 15 , 2 ) ]
1946- [ BaseType ( typeof ( NSObject ) ) ]
1947- interface HMMatterRequestHandler : NSExtensionRequestHandling
1948- {
1949- [ Async ]
1950- [ Export ( "fetchRoomsInHome:completion:" ) ]
1951- void FetchRooms ( HMMatterHome home , HMFetchRoomHandler completion ) ;
1952-
1953- [ Async ]
1954- [ Export ( "pairAccessoryInHome:onboardingPayload:completion:" ) ]
1955- void PairAccessory ( HMMatterHome home , string onboardingPayload , Action < NSError > completion ) ;
1956-
1957- [ Async ]
1958- [ Export ( "configureAccessoryWithName:room:completion:" ) ]
1959- void ConfigureAccessory ( string accessoryName , HMMatterRoom accessoryRoom , Action < NSError > completion ) ;
1960- }
1961-
1962- [ iOS ( 15 , 2 ) , Watch ( 8 , 3 ) , TV ( 15 , 2 ) , MacCatalyst ( 15 , 2 ) ]
1963- [ BaseType ( typeof ( NSObject ) ) ]
1964- [ DisableDefaultCtor ]
1965- interface HMMatterRoom : NSCopying , NSSecureCoding
1966- {
1967- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1968- [ Export ( "uuid" , ArgumentSemantic . Strong ) ]
1969- NSUuid Uuid { get ; }
1970-
1971- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1972- [ Export ( "name" , ArgumentSemantic . Strong ) ]
1973- string Name { get ; }
1974-
1975- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1976- [ Export ( "initWithUUID:name:" ) ]
1977- [ DesignatedInitializer ]
1978- NativeHandle Constructor ( NSUuid uuid , string name ) ;
1979- }
1980-
1981- [ iOS ( 15 , 2 ) , Watch ( 8 , 3 ) , TV ( 15 , 2 ) , MacCatalyst ( 15 , 2 ) ]
1982- [ BaseType ( typeof ( NSObject ) ) ]
1983- [ DisableDefaultCtor ]
1984- interface HMMatterTopology : NSCopying , NSSecureCoding
1985- {
1986- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1987- [ Export ( "initWithHomes:" ) ]
1988- NativeHandle Constructor ( HMMatterHome [ ] homes ) ;
1989-
1990- [ Wrap ( "true ? throw new InvalidOperationException (Constants.RemovedFromHomeKit) : false" , IsVirtual = true ) ]
1991- [ Export ( "homes" , ArgumentSemantic . Copy ) ]
1992- HMMatterHome [ ] Homes { get ; }
1993- }
1994-
19951945 [ NoWatch , NoTV , NoMacCatalyst , NoMac , iOS ( 15 , 4 ) ]
19961946 [ BaseType ( typeof ( NSObject ) ) ]
19971947 interface HMAccessorySetupRequest : NSCopying {
0 commit comments