Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mediaplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ interface MPNowPlayingInfoCenter {
[Field ("MPNowPlayingInfoPropertyIsLiveStream")]
NSString PropertyIsLiveStream { get; }

[iOS (10,3)]
[iOS (10,3)][Mac (10, 12, 3)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor no spaces between the versions for consistency (:

[Field ("MPNowPlayingInfoPropertyAssetURL")]
NSString PropertyAssetUrl { get; }
}
Expand Down
18 changes: 18 additions & 0 deletions src/modelio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ interface MDLAsset : NSCopying
[Wrap ("GetComponent (new Protocol (type))")]
IMDLComponent GetComponent (Type type);

[iOS (10,3), TV (10,2), Mac (10,12,4)]
[Export ("objectForKeyedSubscript:")]
[return: NullAllowed]
IMDLComponent GetObject (Protocol key);

[iOS (10,3), TV (10,2), Mac (10,12,4)]
[Export ("setObject:forKeyedSubscript:")]
void SetObject ([NullAllowed] IMDLComponent obj, Protocol key);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check with @VincentDondain (or his PR) IIRC there was a reason for those not being there

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was about to comment: see #1601 (comment)

[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
Expand Down Expand Up @@ -1088,6 +1097,15 @@ interface MDLObject : MDLNamed
[Static]
[Export ("objectWithSCNNode:bufferAllocator:")]
MDLObject FromNode (SCNNode node, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator);

[iOS (10,3), TV (10,2), Mac (10,12,4)]
[Export ("objectForKeyedSubscript:")]
[return: NullAllowed]
IMDLComponent GetObject (Protocol key);

[iOS (10,3), TV (10,2), Mac (10,12,4)]
[Export ("setObject:forKeyedSubscript:")]
void SetObject ([NullAllowed] IMDLComponent obj, Protocol key);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

}

[iOS (9,0), Mac (10,11, onlyOn64 : true)]
Expand Down
40 changes: 31 additions & 9 deletions src/spritekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ partial interface SKNode : NSCoding, NSCopying {
[Export ("obstaclesFromSpriteTextures:accuracy:")]
GKPolygonObstacle[] ObstaclesFromSpriteTextures (SKNode[] sprites, float accuracy);

#if !XAMCORE_4_0
[Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[iOS (9,0),Mac(10,11)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if !XAMCORE_4_0
[Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[iOS (9,0),Mac(10,11)]
Expand Down Expand Up @@ -383,6 +385,10 @@ partial interface SKEffectNode : SKWarpable {
[Export ("shader", ArgumentSemantic.Retain)]
SKShader Shader { get; set; }

[iOS (10,0), Mac (10, 12)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if XAMCORE_4_0
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
Expand Down Expand Up @@ -730,13 +736,17 @@ partial interface SKSpriteNode : SKWarpable {
[Export ("scaleToSize:")]
void ScaleTo (CGSize size);

[iOS (10,0), Mac (10, 12)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if XAMCORE_4_0
[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We check those are runtime so, in general ours are better than Apple.
When/if updating them we need to dig up the truth about the API availability. That means, minimally confirming the new values as correct.

[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
SKAttributeValue GetValue (string key);

[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
#endif
Expand Down Expand Up @@ -964,13 +974,17 @@ partial interface SKEmitterNode {
[Export ("particleRenderOrder", ArgumentSemantic.Assign)]
SKParticleRenderOrder ParticleRenderOrder { get; set; }

[iOS (10,0), Mac (10, 12)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if XAMCORE_4_0
[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
SKAttributeValue GetValue (string key);

[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
#endif
Expand Down Expand Up @@ -1093,13 +1107,17 @@ partial interface SKShapeNode {
[Export ("lineLength")]
nfloat LineLength { get; }

[iOS (10,0), Mac (10, 12)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if XAMCORE_4_0
[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
SKAttributeValue GetValue (string key);

[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
#endif
Expand Down Expand Up @@ -3048,13 +3066,17 @@ interface SKTileMapNode : NSCopying, NSCoding
SKTileMapNode[] FromTileSet (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, GKNoiseMap noiseMap, NSNumber[] thresholds);
#endif

[iOS (10,0), Mac (10, 12)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; }

#if XAMCORE_4_0
[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
SKAttributeValue GetValue (string key);

[iOS (9,0), Mac(10,11)]
[iOS (10,0), Mac(10,12)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
#endif
Expand Down