SetMessageCallback

globalmapper.SetMessageCallback(function aCallbackFunc) None[source]

Note

The aCallbackFunc parameter cannot be a class method or a static method – it must be a function.

Sets the function to call to display error and warning messages generated during SDK operations. If a message callback is provided, a message dialog will not be shown, instead the callback function will be called with the error or warning message that would have been displayed. The callback is then free to do whatever it wants, including just ignore the message, in which case the error code will still be returned from the function generating the message like normal.

Parameters:

aCallbackFunc (function) – The callback function to use to display error and warning messages

Returns:

Nothing

Return type:

None