I think the API is in C in both the platforms.
There are plenty of higher level cross platform implementations made with C++.
I'm not very knowledgeable on the topic; so, I won't suggest a 'best'...