In this article I want to introduce you the new functionalities from the MBS Xojo Plugins in version 23.4.
Also in this release we have something new for MongoDB. We updated our SSL support for our MongoDB plugin. We switched to using OpenSSL as the transport encryption for the MongoDB library for macOS and iOS. The SSLLibrary function tells you which SSL library is in use. You can use MongoSSLOptionsMBS class to specify SSL options in addition to putting them into the connection string. To check about possible reasons for connection problems, we got a new trace logging functionality with Trace property in MongoClientMBS class. And by regularly calling ping method you can check whether the connection is alive and keep it open.
For the classes CURLMBS, CURLNMBS and CURLSMBS we have 2 new methods each. When we work with URLs, we mostly need the absolute URL. The new method ProcessRelativeURL now offers us the possibility to convert a relative URL into an absolute URL by additionally specifying the base URL.
With the second new method RemoveAll we can remove all curl handlers at once. So that we don't have to take the way over a loop with RemoveCURL. This makes our work easier and the code remains clearer.
The new Methode OpenPath from the SerialPortMBS class, opens a special file, device or pipe. That you define in the parameters. This allows you to e.g. open a pipe on Windows and communicate with another application.
With the new method importNode from the XMLDocumentMBS class, you can import a node from one document into another. To do this, the node is cloned in the source document and then inserted into the new document. Previously you always had to do this manually, from now on the plugin will do it for you automatically.
In the last release we already discussed the topic DPartNode. Starting from the last release you can add the Document Part metadata in the PDF document. Now we give you with the new method DeleteDPartNode from the DynaPDFMBS class the possibility to delete a DPartNode and the attached structure.
New functionalities for Mac
The MBS Xojo Plugins in version 23.4 offers some more new features for Mac users
Surely you already know the function from your iPad, iPhone or Mac, that you can split your screen. So you can view different applications side by side. We want to make this function available to you now for your applications under Mac. For this purpose we have added the controls NSSplitViewControlMBS and DesktopNSSplitViewControlMBS to the plugin. These provide you various events with which you can work in your application. With the class NSSplitViewMBS you can define with addArrangedSubview Methode several splits of your screen.
We have two new methods in the PHPickerConfigurationMBS class for working with the photo picker. The picker can show us the photos of the photo library in a panel, from which we can choose. With the new method DisabledCapabilities you can set and get which Capabilities of the picker should be disabled. Here we can set or get a combination of the following values:
|CapabilitiesNone||0||No specified capabilities|
|CapabilitiesSearch||1||The search bar|
|CapabilitiesStagingArea||2||The staging area|
|CapabilitiesCollectionNavigation||4||The sidebar or the albums tab|
|CapabilitiesSelectionActions||8||The "Cancel" and the "Add" (if possible) button|
|CapabilitiesSensitivityAnalysisIntervention||16||Show intervention UI explaining potential risks for kids or teens if a sensitive asset is selected. Analysis and intervention will only be performed if "Communications Safety" is enabled in ScreenTime|
Also new is the Mode method with which we can set and query the mode of the PhotoPicker.
New functionalities for Windows
Last but not least we offer some more new features for Windows users
With the new release we rewrote the WindowsPowerStateMBS class, so it is now possible that you can monitor Windows various information of the laptop power. With the event BatteryCapacityChanged you can track the current charge level. If the charge changes, the event fires and gives you back the current charge level. With the event LidSwitchStateChanged you can monitor when the laptop lid is opened or closed. If the laptop lid is closed we get a 0 back and if it is opened we get a 1. With the event PowerSourceChanged you can detect if the power supply changes. We can detect if the power is coming from a power supply, if it is coming from the built-in battery or if an external power source like a powerbank is connected. Matching these events we also have the methods ListenForBatteryCapacityChanged, ListenForLidSwitchStateChanged and ListenForPowerSourceChanged with which we register our events in the program. If something has changed in the power setting, we can detect this with the new event WindowsPowerStateMBS.
Also in the WebView2 section there are two new methods for the DesktopWebView2ControlMBS and WebView2ControlMBS classes. With the SetVirtualHostNameToFolderMapping method we set a mapping between a virtual host name and a folder path to make available to web sites via that host name. With the ClearVirtualHostNameToFolderMapping we can remove it again.
The Bluetooth LE classes got updated to support pairing with new WindowsDeviceInformationPairingMBS class. Here you can also Query informations like the protection level.
We hope you will also find some interesting new features. We wish you a lot of fun with MBS Xojo Plugins version 23.4. If you have any Ideas for new cool features, need a license or have any questions, please contact us.