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
Function: Whether the callbacks are allowed to go asynchronously.
Notes:
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
Function: The call counter.
Notes:
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
Function: The function pointer for the callback.
Notes:
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
Function: The name of the callback.
Notes:
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
Function: Queries number of parameters.
Notes:
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
Function: The signature used to initialize this object.
Notes: (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
Function: The signature part for the parameters.
Notes: (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
Function: The signature part for the return value.
Notes: (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
Function: The tag value.
Notes:
Store whatever you need to keep referenced.
(Read and Write property)

The items on this page are in the following plugins: MBS Util Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...