setCallback method

void setCallback(
  1. MyCallbackFunction callback
)

Implementation

void setCallback(MyCallbackFunction callback) {
  _callback = callback;
}