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
Whether the callbacks are allowed to go asynchronously.

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
The call counter.

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
The function pointer for the callback.

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
The name of the callback.

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
Queries number of parameters.

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
The signature used to initialize this object.

(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
The signature part for the parameters.

(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
The signature part for the return value.

(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
The tag value.

Store whatever you need to keep referenced.
(Read and Write property)

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


The biggest plugin in space...