19
19
namespace PdfKit {
20
20
public partial class PdfAnnotation {
21
21
22
- #if NET
23
22
[ SupportedOSPlatform ( "macos" ) ]
24
23
[ SupportedOSPlatform ( "ios" ) ]
25
24
[ SupportedOSPlatform ( "maccatalyst" ) ]
26
- [ UnsupportedOSPlatform ( "tvos" ) ]
27
- #endif
25
+ [ SupportedOSPlatform ( "tvos18.2" ) ]
28
26
public bool SetValue < T > ( T value , PdfAnnotationKey key ) where T : class , INativeObject
29
27
{
30
28
if ( value is null )
@@ -33,12 +31,10 @@ public bool SetValue<T> (T value, PdfAnnotationKey key) where T : class, INative
33
31
return _SetValue ( value . Handle , key . GetConstant ( ) ! ) ;
34
32
}
35
33
36
- #if NET
37
34
[ SupportedOSPlatform ( "macos" ) ]
38
35
[ SupportedOSPlatform ( "ios" ) ]
39
36
[ SupportedOSPlatform ( "maccatalyst" ) ]
40
- [ UnsupportedOSPlatform ( "tvos" ) ]
41
- #endif
37
+ [ SupportedOSPlatform ( "tvos18.2" ) ]
42
38
public bool SetValue ( string str , PdfAnnotationKey key )
43
39
{
44
40
var nstr = CFString . CreateNative ( str ) ;
@@ -49,33 +45,24 @@ public bool SetValue (string str, PdfAnnotationKey key)
49
45
}
50
46
}
51
47
52
- #if NET
53
48
[ SupportedOSPlatform ( "macos" ) ]
54
49
[ SupportedOSPlatform ( "ios" ) ]
55
50
[ SupportedOSPlatform ( "maccatalyst" ) ]
56
- [ UnsupportedOSPlatform ( "tvos" ) ]
57
- #endif
51
+ [ SupportedOSPlatform ( "tvos18.2" ) ]
58
52
public T GetValue < T > ( PdfAnnotationKey key ) where T : class , INativeObject
59
53
{
60
54
return Runtime . GetINativeObject < T > ( _GetValue ( key . GetConstant ( ) ! ) , true ) ! ;
61
55
}
62
56
63
57
public PdfAnnotationKey AnnotationType {
64
- #if NET
65
58
get { return PdfAnnotationKeyExtensions . GetValue ( Type ! ) ; }
66
59
set { Type = value . GetConstant ( ) ! ; }
67
- #else
68
- get { return PdfAnnotationKeyExtensions . GetValue ( ( NSString ) Type ) ; }
69
- set { Type = value . GetConstant ( ) ; }
70
- #endif
71
60
}
72
61
73
- #if NET
74
62
[ SupportedOSPlatform ( "macos" ) ]
75
63
[ SupportedOSPlatform ( "ios" ) ]
76
64
[ SupportedOSPlatform ( "maccatalyst" ) ]
77
- [ UnsupportedOSPlatform ( "tvos" ) ]
78
- #endif
65
+ [ SupportedOSPlatform ( "tvos18.2" ) ]
79
66
public CGPoint [ ] QuadrilateralPoints {
80
67
get {
81
68
return NSArray . ArrayFromHandleFunc < CGPoint > ( _QuadrilateralPoints , ( v ) => {
0 commit comments