Skip to content

[AVFoundation] Add missing types and categories. - #2694

Closed
mandel-macaque wants to merge 2 commits into
dotnet:xcode9from
mandel-macaque:missing-avfoundation-take-3
Closed

[AVFoundation] Add missing types and categories.#2694
mandel-macaque wants to merge 2 commits into
dotnet:xcode9from
mandel-macaque:missing-avfoundation-take-3

Conversation

@mandel-macaque

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/avfoundation.cs Outdated
}

[TV (11,0), NoWatch, Mac (10,13), iOS (11,0)]
[Protocol, Model]

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.

The documentation isn't very clear about how this is used, so IMHO it would be best to remove [Model] (and [BaseType]) for now.

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

Comment thread src/avfoundation.cs

[Abstract]
[Export ("requestMediaDataWhenReadyOnQueue:usingBlock:")]
void RequestMediaData (DispatchQueue queue, Action block);

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.

let us not use block as parameter name here, maybe handler?

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.

Hander is a valid choice, there are a lot of occurences of completionHandler or completion in our bindings but I don't think that's relevant here because of how the API works.

I would also suggest inputHandler based on this comment in the doc: "The block should append media data to the input" (https://developer.apple.com/documentation/avfoundation/avassetwriterinput/1387508-requestmediadatawhenreadyonqueue).

Comment thread src/avfoundation.cs
[NullAllowed, Export ("error")]
NSError Error { get; }

[Mac (10, 13)]

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.

This is not needed, the whole class is already [Mac (10, 13)]

Comment thread src/avfoundation.cs

[Async]
[Export ("addPeriodicTimeObserverForInterval:queue:usingBlock:")]
NSObject AddPeriodicTimeObserver (CMTime interval, [NullAllowed] DispatchQueue queue, Action<CMTime> block);

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.

same, do not use block

Comment thread src/avfoundation.cs
NSObject AddPeriodicTimeObserver (CMTime interval, [NullAllowed] DispatchQueue queue, Action<CMTime> block);

[Export ("addBoundaryTimeObserverForTimes:queue:usingBlock:")]
NSObject AddBoundaryTimeObserver (NSValue[] times, [NullAllowed] DispatchQueue queue, Action block);

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.

same, do not use block

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@spouliot spouliot added the do-not-merge Do not merge this pull request label Sep 14, 2017

@VincentDondain VincentDondain left a comment

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.

LGTM after Alex's comments are addressed.

@spouliot spouliot left a comment

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.

please rebase this PR on xcode9.1 branch, thanks!

@mandel-macaque

Copy link
Copy Markdown
Contributor Author

Closing branch since a new one with the new bindings for 9.1 will take over this work.

@mandel-macaque

Copy link
Copy Markdown
Contributor Author

New PR against Xcode9.1: #2919

mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Aug 23, 2023
Bump maccore to bing the changes for governance and some others:

* Merge 'xcode15' into 'main'. (dotnet#2690)
* [Submission] Add NotaryTool Task (dotnet#2689)
* [XmlDocSync] Remove the XmlDocSync reference from the project. (dotnet#2693)
* [mlaunch] Refactor project structure (dotnet#2694)
* [certificates] Update la_dev_apple.p12, la_distr_apple.p12 and la_mac_installer_distr.p12 (dotnet#2697)
* [Governance] Update the false positives files based on the last runs. (dotnet#2698)

Full idff: https://github.com/xamarin/maccore/compare/fd15821e6780a7439df467c69eb511a046adfa06...63fd14954ca3328219c5f79c754f0b329091535c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Do not merge this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants