Can network extension be written in any programming language

Hi,


In WWDC 2019 confrence for 'System Extensions and DriverKit' speaker said at 5:50 record time tyhat the system extensions can be written in any programming language, including C, C++ or Swift. Can you please confirm if the Network extensions for NEAppProxyProvider and NEFilterDataProvider be written in C++ programming language? If not what did the speaker meant, please clarify.


WWDC reference:

https://developer.apple.com/videos/play/wwdc2019/702


Thanks

Accepted Reply

The NE provider API is defined in terms of Objective-C objects, and thus you can use it from any language that can interface with Objective-C. That includes Objective-C, Swift, and Objective-C++. If you have a C++ code based that you want to reuse, the traditional approach is to write a small layer of Objective-C++ to take care of interfacing with the system and then keep the rest of your code in standard C++.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

The NE provider API is defined in terms of Objective-C objects, and thus you can use it from any language that can interface with Objective-C. That includes Objective-C, Swift, and Objective-C++. If you have a C++ code based that you want to reuse, the traditional approach is to write a small layer of Objective-C++ to take care of interfacing with the system and then keep the rest of your code in standard C++.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"