Platforms to show: All Mac Windows Linux Cross-Platform
Back to DeclareCallBackMBS class.
DeclareCallBackMBS.AllowAsync as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
For MacOS/iOS only.
Asynchronous callbacks have no chance to return a value as the call to the Xojo event happens later and the C function returns before the Xojo event is started.
Synchronous callbacks would let the callback wait for the Xojo main thread to react to the event and then return the result back.
AllowAsync is set to true automatically for callbacks with void as return automatically.
(Read and Write property)
DeclareCallBackMBS.CallCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We call how often the callback is called.
(Read only property)
DeclareCallBackMBS.FunctionPtr as Ptr
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Pass this to the C functions to pass a callback function pointer.
(Read only property)
DeclareCallBackMBS.Name as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can set this to later read value in debugging.
(Read and Write property)
DeclareCallBackMBS.ParameterCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We currently limit this to 32 parameters.
(Read only property)
DeclareCallBackMBS.Signature as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
DeclareCallBackMBS.SignatureParameters as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
DeclareCallBackMBS.SignatureReturn as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
DeclareCallBackMBS.Tag as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | DynamicDeclares | MBS Util Plugin | 20.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Store whatever you need to keep referenced.
(Read and Write property)
The items on this page are in the following plugins: MBS Util Plugin.