Skip to content

[arkit] Add ARBlendShapeLocationOptions strong dictionary - #2696

Merged
spouliot merged 2 commits into
dotnet:xcode9from
VincentDondain:arkit-gm-part2
Sep 14, 2017
Merged

[arkit] Add ARBlendShapeLocationOptions strong dictionary#2696
spouliot merged 2 commits into
dotnet:xcode9from
VincentDondain:arkit-gm-part2

Conversation

@VincentDondain

@VincentDondain VincentDondain commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

I chose to not transform those ARBlendShapeLocation constants ([Field]) into a smart enum because a strong dictionary is what the APIs need most.

Comment thread src/arkit.cs
[Export ("initWithBlendShapes:")]
IntPtr Constructor (NSDictionary<NSString, NSNumber> blendShapes);
*/
IntPtr Constructor (NSDictionary blendShapes);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this cast needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's trying to use NSObjectFlag otherwise.

Comment thread src/arkit.cs
float NoseSneerRight { get; set; }
}

[iOS (11,0)]

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.

Use [Internal] so this leaves us the option to expose it as a smart enum later (at the cost of extra manual code or generator changes).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes good idea, thanks.

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@spouliot
spouliot merged commit c64c6e1 into dotnet:xcode9 Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants